blob: 776159d850f9bd3a3bf07edf73be07361e4b335a [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
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $w" >&5
4816$as_echo_n "checking whether ${CC-c} accepts $w... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004817 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. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004825int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004826_ACEOF
4827if ac_fn_c_try_compile "$LINENO"; then :
4828 WERROR="$w"
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4830$as_echo "yes" >&6; }
4831else
4832 CFLAGS="$save_cflags"
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834$as_echo "no" >&6; }
4835fi
4836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 fi
4838done
4839
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts -fPIC" >&5
4841$as_echo_n "checking whether ${CC-c} accepts -fPIC... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004842save_cflags="$CFLAGS"
4843if test "x$CFLAGS" = "x"; then :
4844 CFLAGS="-fPIC"
4845else
4846 CFLAGS="$CFLAGS -fPIC"
4847fi
4848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004850int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004851_ACEOF
4852if ac_fn_c_try_compile "$LINENO"; then :
4853 if test "x$supported_cflags" = "x"; then :
4854 supported_cflags="-fPIC"
4855else
4856 supported_cflags="$supported_cflags -fPIC"
4857fi
4858 if test "x$LDFLAGS" = "x"; then :
4859 LDFLAGS="-fPIC"
4860else
4861 LDFLAGS="$LDFLAGS -fPIC"
4862fi
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4864$as_echo "yes" >&6; }
4865else
4866 CFLAGS="$save_cflags"
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868$as_echo "no" >&6; }
4869fi
4870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871
4872if test "$EMPTY_CFLAGS" = "yes"; then
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004873 for f in -Wall -pedantic -Wstrict-prototypes; do
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4875$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004876 save_cflags="$CFLAGS"
4877 if test "x$CFLAGS" = "x"; then :
4878 CFLAGS="$f"
4879else
4880 CFLAGS="$CFLAGS $f"
4881fi
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004884int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004885_ACEOF
4886if ac_fn_c_try_compile "$LINENO"; then :
4887 if test "x$supported_cflags" = "x"; then :
4888 supported_cflags="$f"
4889else
4890 supported_cflags="$supported_cflags $f"
4891fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4893$as_echo "yes" >&6; }
4894else
4895 CFLAGS="$save_cflags"
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897$as_echo "no" >&6; }
4898fi
4899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 done
4901
4902 OOPT=""
4903 for f in -O4 -O3; do
4904 if test "x$OOPT" = "x"; then
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4906$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004907 save_cflags="$CFLAGS"
4908 if test "x$CFLAGS" = "x"; then :
4909 CFLAGS="$f"
4910else
4911 CFLAGS="$CFLAGS $f"
4912fi
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004915int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004916_ACEOF
4917if ac_fn_c_try_compile "$LINENO"; then :
4918 if test "x$supported_cflags" = "x"; then :
4919 supported_cflags="$f"
4920else
4921 supported_cflags="$supported_cflags $f"
4922fi
4923 OOPT="$f"
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4925$as_echo "yes" >&6; }
4926else
4927 CFLAGS="$save_cflags"
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929$as_echo "no" >&6; }
4930fi
4931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932 fi
4933 done
4934
4935 for f in -fexpensive-optimizations -funroll-loops; do
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4937$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004938 save_cflags="$CFLAGS"
4939 if test "x$CFLAGS" = "x"; then :
4940 CFLAGS="$f"
4941else
4942 CFLAGS="$CFLAGS $f"
4943fi
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004946int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004947_ACEOF
4948if ac_fn_c_try_compile "$LINENO"; then :
4949 if test "x$supported_cflags" = "x"; then :
4950 supported_cflags="$f"
4951else
4952 supported_cflags="$supported_cflags $f"
4953fi
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4955$as_echo "yes" >&6; }
4956else
4957 CFLAGS="$save_cflags"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959$as_echo "no" >&6; }
4960fi
4961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 done
4963fi
4964
4965for f in -Wno-language-extension-token; do
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4967$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004968 save_cflags="$CFLAGS"
4969 testf=$(echo "$f" | $SED 's|-Wno-\(.*\)|-W\1|g')
4970 if test "x$CFLAGS" = "x"; then :
4971 CFLAGS="$testf"
4972else
4973 CFLAGS="$CFLAGS $testf"
4974fi
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004977int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004978_ACEOF
4979if ac_fn_c_try_compile "$LINENO"; then :
4980 if test "x$supported_cflags" = "x"; then :
4981 supported_cflags="$f"
4982else
4983 supported_cflags="$supported_cflags $f"
4984fi
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4986$as_echo "yes" >&6; }
4987else
4988 CFLAGS="$save_cflags"
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990$as_echo "no" >&6; }
4991fi
4992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993done
4994
4995CFLAGS="$supported_cflags"
jfigusc7e66e32013-05-08 11:32:55 -04004996
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4998$as_echo_n "checking for ANSI C header files... " >&6; }
4999if ${ac_cv_header_stdc+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001else
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003/* end confdefs.h. */
5004#include <stdlib.h>
5005#include <stdarg.h>
5006#include <string.h>
5007#include <float.h>
5008
5009int
5010main ()
5011{
5012
5013 ;
5014 return 0;
5015}
5016_ACEOF
5017if ac_fn_c_try_compile "$LINENO"; then :
5018 ac_cv_header_stdc=yes
5019else
5020 ac_cv_header_stdc=no
5021fi
5022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023
5024if test $ac_cv_header_stdc = yes; then
5025 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027/* end confdefs.h. */
5028#include <string.h>
5029
5030_ACEOF
5031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5032 $EGREP "memchr" >/dev/null 2>&1; then :
5033
5034else
5035 ac_cv_header_stdc=no
5036fi
5037rm -f conftest*
5038
5039fi
5040
5041if test $ac_cv_header_stdc = yes; then
5042 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044/* end confdefs.h. */
5045#include <stdlib.h>
5046
5047_ACEOF
5048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5049 $EGREP "free" >/dev/null 2>&1; then :
5050
5051else
5052 ac_cv_header_stdc=no
5053fi
5054rm -f conftest*
5055
5056fi
5057
5058if test $ac_cv_header_stdc = yes; then
5059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5060 if test "$cross_compiling" = yes; then :
5061 :
5062else
5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064/* end confdefs.h. */
5065#include <ctype.h>
5066#include <stdlib.h>
5067#if ((' ' & 0x0FF) == 0x020)
5068# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5069# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5070#else
5071# define ISLOWER(c) \
5072 (('a' <= (c) && (c) <= 'i') \
5073 || ('j' <= (c) && (c) <= 'r') \
5074 || ('s' <= (c) && (c) <= 'z'))
5075# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5076#endif
5077
5078#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5079int
5080main ()
5081{
5082 int i;
5083 for (i = 0; i < 256; i++)
5084 if (XOR (islower (i), ISLOWER (i))
5085 || toupper (i) != TOUPPER (i))
5086 return 2;
5087 return 0;
5088}
5089_ACEOF
5090if ac_fn_c_try_run "$LINENO"; then :
5091
5092else
5093 ac_cv_header_stdc=no
5094fi
5095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5096 conftest.$ac_objext conftest.beam conftest.$ac_ext
5097fi
5098
5099fi
5100fi
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5102$as_echo "$ac_cv_header_stdc" >&6; }
5103if test $ac_cv_header_stdc = yes; then
5104
5105$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5106
5107fi
5108
Idar Tollefsen600ad962017-01-26 11:24:51 +01005109for 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 -04005110do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005111 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5112ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5113"
5114if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
jfigusc7e66e32013-05-08 11:32:55 -04005115 cat >>confdefs.h <<_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005116#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
jfigusc7e66e32013-05-08 11:32:55 -04005117_ACEOF
5118
5119fi
5120
5121done
5122
5123
5124for ac_header in sys/socket.h netinet/in.h arpa/inet.h
5125do :
5126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005127ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5128"
jfigusc7e66e32013-05-08 11:32:55 -04005129if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5130 cat >>confdefs.h <<_ACEOF
5131#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5132_ACEOF
5133
5134fi
5135
5136done
5137
5138for ac_header in windows.h
5139do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005140 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5141"
jfigusc7e66e32013-05-08 11:32:55 -04005142if test "x$ac_cv_header_windows_h" = xyes; then :
5143 cat >>confdefs.h <<_ACEOF
5144#define HAVE_WINDOWS_H 1
5145_ACEOF
5146 for ac_header in winsock2.h
5147do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005148 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default
5149"
jfigusc7e66e32013-05-08 11:32:55 -04005150if test "x$ac_cv_header_winsock2_h" = xyes; then :
5151 cat >>confdefs.h <<_ACEOF
5152#define HAVE_WINSOCK2_H 1
5153_ACEOF
5154
5155fi
5156
5157done
5158
5159fi
5160
5161done
5162
5163
jfigusc7e66e32013-05-08 11:32:55 -04005164ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
5165if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005166
David McGrewfec49dd2005-09-23 19:34:11 +00005167cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005168#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005169_ACEOF
5170
5171
5172fi
jfigusc7e66e32013-05-08 11:32:55 -04005173ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5174if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005175
5176cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005177#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005178_ACEOF
5179
5180
5181fi
jfigusc7e66e32013-05-08 11:32:55 -04005182ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5183if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005184
5185cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005186#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005187_ACEOF
5188
5189
5190fi
jfigusc7e66e32013-05-08 11:32:55 -04005191ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5192if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005193
5194cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005195#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005196_ACEOF
5197
5198
5199fi
jfigusc7e66e32013-05-08 11:32:55 -04005200ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5201if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005202
5203cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005204#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005205_ACEOF
5206
5207
5208fi
jfigusc7e66e32013-05-08 11:32:55 -04005209ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5210if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005211
5212cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005213#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005214_ACEOF
5215
5216
5217fi
jfigusc7e66e32013-05-08 11:32:55 -04005218ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5219if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005220
5221cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005222#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005223_ACEOF
5224
5225
5226fi
5227
jfigusc7e66e32013-05-08 11:32:55 -04005228# The cast to long int works around a bug in the HP C Compiler
5229# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5230# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5231# This bug is HP SR number 8606223364.
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
5233$as_echo_n "checking size of unsigned long... " >&6; }
5234if ${ac_cv_sizeof_unsigned_long+:} false; then :
5235 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005236else
jfigusc7e66e32013-05-08 11:32:55 -04005237 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 +00005238
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005239else
5240 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04005241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5243as_fn_error 77 "cannot compute sizeof (unsigned long)
5244See \`config.log' for more details" "$LINENO" 5; }
5245 else
5246 ac_cv_sizeof_unsigned_long=0
5247 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005248fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005249
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005250fi
jfigusc7e66e32013-05-08 11:32:55 -04005251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
5252$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005253
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005254
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005255
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005256cat >>confdefs.h <<_ACEOF
5257#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
5258_ACEOF
5259
David McGrewfec49dd2005-09-23 19:34:11 +00005260
jfigusc7e66e32013-05-08 11:32:55 -04005261# The cast to long int works around a bug in the HP C Compiler
5262# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5263# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5264# This bug is HP SR number 8606223364.
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
5266$as_echo_n "checking size of unsigned long long... " >&6; }
5267if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
5268 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00005269else
jfigusc7e66e32013-05-08 11:32:55 -04005270 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 +00005271
David McGrewfec49dd2005-09-23 19:34:11 +00005272else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005273 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04005274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5276as_fn_error 77 "cannot compute sizeof (unsigned long long)
5277See \`config.log' for more details" "$LINENO" 5; }
5278 else
5279 ac_cv_sizeof_unsigned_long_long=0
5280 fi
David McGrewfec49dd2005-09-23 19:34:11 +00005281fi
5282
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005283fi
jfigusc7e66e32013-05-08 11:32:55 -04005284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
5285$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005286
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005287
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005288
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005289cat >>confdefs.h <<_ACEOF
5290#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00005291_ACEOF
5292
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005293
Cullen Jennings235513a2005-09-21 22:51:36 +00005294
jfigusc7e66e32013-05-08 11:32:55 -04005295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5296$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5297if ${ac_cv_c_const+:} false; then :
5298 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005299else
jfigusc7e66e32013-05-08 11:32:55 -04005300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005301/* end confdefs.h. */
5302
5303int
5304main ()
5305{
jfigusc7e66e32013-05-08 11:32:55 -04005306
Cullen Jennings235513a2005-09-21 22:51:36 +00005307#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04005308 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00005309 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04005310 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00005311 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04005312 char const *const *pcpcc;
5313 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00005314 /* NEC SVR4.0.2 mips cc rejects this. */
5315 struct point {int x, y;};
5316 static struct point const zero = {0,0};
5317 /* AIX XL C 1.02.0.0 rejects this.
5318 It does not let you subtract one const X* pointer from another in
5319 an arm of an if-expression whose if-part is not a constant
5320 expression */
5321 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04005322 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00005323 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04005324 ++pcpcc;
5325 ppc = (char**) pcpcc;
5326 pcpcc = (char const *const *) ppc;
5327 { /* SCO 3.2v4 cc rejects this sort of thing. */
5328 char tx;
5329 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00005330 char const *s = 0 ? (char *) 0 : (char const *) 0;
5331
5332 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04005333 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00005334 }
5335 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5336 int x[] = {25, 17};
5337 const int *foo = &x[0];
5338 ++foo;
5339 }
5340 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5341 typedef const int *iptr;
5342 iptr p = 0;
5343 ++p;
5344 }
jfigusc7e66e32013-05-08 11:32:55 -04005345 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00005346 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04005347 struct s { int j; const int *ap[3]; } bx;
5348 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00005349 }
5350 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5351 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04005352 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00005353 }
jfigusc7e66e32013-05-08 11:32:55 -04005354 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00005355#endif
5356
5357 ;
5358 return 0;
5359}
5360_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005361if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005362 ac_cv_c_const=yes
5363else
jfigusc7e66e32013-05-08 11:32:55 -04005364 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00005365fi
jfigusc7e66e32013-05-08 11:32:55 -04005366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005367fi
jfigusc7e66e32013-05-08 11:32:55 -04005368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5369$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005370if test $ac_cv_c_const = no; then
5371
jfigusc7e66e32013-05-08 11:32:55 -04005372$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005373
5374fi
5375
jfigusc7e66e32013-05-08 11:32:55 -04005376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5377$as_echo_n "checking for inline... " >&6; }
5378if ${ac_cv_c_inline+:} false; then :
5379 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005380else
5381 ac_cv_c_inline=no
5382for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04005383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005384/* end confdefs.h. */
5385#ifndef __cplusplus
5386typedef int foo_t;
5387static $ac_kw foo_t static_foo () {return 0; }
5388$ac_kw foo_t foo () {return 0; }
5389#endif
5390
5391_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005392if ac_fn_c_try_compile "$LINENO"; then :
5393 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00005394fi
jfigusc7e66e32013-05-08 11:32:55 -04005395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00005397done
5398
5399fi
jfigusc7e66e32013-05-08 11:32:55 -04005400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5401$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00005402
Cullen Jennings235513a2005-09-21 22:51:36 +00005403case $ac_cv_c_inline in
5404 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00005405 *)
5406 case $ac_cv_c_inline in
5407 no) ac_val=;;
5408 *) ac_val=$ac_cv_c_inline;;
5409 esac
5410 cat >>confdefs.h <<_ACEOF
5411#ifndef __cplusplus
5412#define inline $ac_val
5413#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00005414_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00005415 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005416esac
5417
jfigusc7e66e32013-05-08 11:32:55 -04005418ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5419if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005420
Cullen Jennings235513a2005-09-21 22:51:36 +00005421else
5422
5423cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005424#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00005425_ACEOF
5426
5427fi
5428
5429
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00005430for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04005431do :
5432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5433ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5434if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005435 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005436#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00005437_ACEOF
5438
5439fi
5440done
5441
5442
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005443if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04005444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5445$as_echo_n "checking for socket in -lsocket... " >&6; }
5446if ${ac_cv_lib_socket_socket+:} false; then :
5447 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00005448else
5449 ac_check_lib_save_LIBS=$LIBS
5450LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04005451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00005452/* end confdefs.h. */
5453
jfigusc7e66e32013-05-08 11:32:55 -04005454/* Override any GCC internal prototype to avoid an error.
5455 Use char because int might match the return type of a GCC
5456 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00005457#ifdef __cplusplus
5458extern "C"
5459#endif
David McGrewb67061f2005-09-28 14:23:06 +00005460char socket ();
5461int
5462main ()
5463{
jfigusc7e66e32013-05-08 11:32:55 -04005464return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00005465 ;
5466 return 0;
5467}
5468_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005469if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00005470 ac_cv_lib_socket_socket=yes
5471else
jfigusc7e66e32013-05-08 11:32:55 -04005472 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00005473fi
jfigusc7e66e32013-05-08 11:32:55 -04005474rm -f core conftest.err conftest.$ac_objext \
5475 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00005476LIBS=$ac_check_lib_save_LIBS
5477fi
jfigusc7e66e32013-05-08 11:32:55 -04005478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5479$as_echo "$ac_cv_lib_socket_socket" >&6; }
5480if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00005481 cat >>confdefs.h <<_ACEOF
5482#define HAVE_LIBSOCKET 1
5483_ACEOF
5484
5485 LIBS="-lsocket $LIBS"
5486
5487fi
5488
jfigusc7e66e32013-05-08 11:32:55 -04005489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
5490$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005491 SAVELIBS="$LIBS"
5492 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04005493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005494/* end confdefs.h. */
5495
5496#include <winsock2.h>
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02005497int main(void)
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005498{
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02005499 int fd = socket(0, 0, 0);
5500 if (fd < 0)
5501 return -1;
5502 else
5503 return 0;
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005504}
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02005505
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005506_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005507if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005508 ac_cv_func_socket=yes
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02005509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
jfigusc7e66e32013-05-08 11:32:55 -04005510$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005511else
jfigusc7e66e32013-05-08 11:32:55 -04005512 LIBS="$SAVELIBS"
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02005513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
jfigusc7e66e32013-05-08 11:32:55 -04005514$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005515fi
jfigusc7e66e32013-05-08 11:32:55 -04005516rm -f core conftest.err conftest.$ac_objext \
5517 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005518fi
David McGrewb67061f2005-09-28 14:23:06 +00005519
Pascal Bühler75918862017-02-19 18:33:50 +01005520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug logging in all modules" >&5
5521$as_echo_n "checking whether to enable debug logging in all modules... " >&6; }
5522# Check whether --enable-debug-logging was given.
5523if test "${enable_debug_logging+set}" = set; then :
5524 enableval=$enable_debug_logging;
David McGrewb67061f2005-09-28 14:23:06 +00005525else
Pascal Bühler75918862017-02-19 18:33:50 +01005526 enable_debug_logging=no
jfigusc7e66e32013-05-08 11:32:55 -04005527fi
5528
Pascal Bühler75918862017-02-19 18:33:50 +01005529if test "$enable_debug_logging" = "yes"; then
David McGrewb67061f2005-09-28 14:23:06 +00005530
Pascal Bühler75918862017-02-19 18:33:50 +01005531$as_echo "#define ENABLE_DEBUG_LOGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005532
5533fi
Pascal Bühler75918862017-02-19 18:33:50 +01005534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_logging" >&5
5535$as_echo "$enable_debug_logging" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005536
Idar Tollefsen600ad962017-01-26 11:24:51 +01005537
5538
5539
5540
5541
5542
5543
5544if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5545 if test -n "$ac_tool_prefix"; then
5546 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5547set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549$as_echo_n "checking for $ac_word... " >&6; }
5550if ${ac_cv_path_PKG_CONFIG+:} false; then :
5551 $as_echo_n "(cached) " >&6
5552else
5553 case $PKG_CONFIG in
5554 [\\/]* | ?:[\\/]*)
5555 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5556 ;;
5557 *)
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559for as_dir in $PATH
5560do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5565 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 break 2
5568 fi
5569done
5570 done
5571IFS=$as_save_IFS
5572
5573 ;;
5574esac
5575fi
5576PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5577if test -n "$PKG_CONFIG"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5579$as_echo "$PKG_CONFIG" >&6; }
5580else
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582$as_echo "no" >&6; }
5583fi
5584
5585
5586fi
5587if test -z "$ac_cv_path_PKG_CONFIG"; then
5588 ac_pt_PKG_CONFIG=$PKG_CONFIG
5589 # Extract the first word of "pkg-config", so it can be a program name with args.
5590set dummy 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_ac_pt_PKG_CONFIG+:} false; then :
5594 $as_echo_n "(cached) " >&6
5595else
5596 case $ac_pt_PKG_CONFIG in
5597 [\\/]* | ?:[\\/]*)
5598 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_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_ac_pt_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
5619ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5620if test -n "$ac_pt_PKG_CONFIG"; then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5622$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5623else
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625$as_echo "no" >&6; }
5626fi
5627
5628 if test "x$ac_pt_PKG_CONFIG" = x; then
5629 PKG_CONFIG=""
5630 else
5631 case $cross_compiling:$ac_tool_warned in
5632yes:)
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5635ac_tool_warned=yes ;;
5636esac
5637 PKG_CONFIG=$ac_pt_PKG_CONFIG
5638 fi
5639else
5640 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5641fi
5642
5643fi
5644if test -n "$PKG_CONFIG"; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005645 _pkg_min_version=0.9.0
Idar Tollefsen600ad962017-01-26 11:24:51 +01005646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5647$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5648 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5650$as_echo "yes" >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653$as_echo "no" >&6; }
5654 PKG_CONFIG=""
5655 fi
5656fi
Pascal Bühlerac872e72017-02-09 14:55:27 +01005657if test "x$PKG_CONFIG" != "x"; then :
5658 PKG_CONFIG="$PKG_CONFIG --static"
5659fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005660
jfigusc7e66e32013-05-08 11:32:55 -04005661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
5662$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
5663# Check whether --enable-openssl was given.
5664if test "${enable_openssl+set}" = set; then :
5665 enableval=$enable_openssl;
5666else
5667 enable_openssl=no
5668fi
jfigusa14b5a02013-03-29 12:24:12 -04005669
jfigus2b486652014-07-24 15:01:41 -04005670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
5671$as_echo "$enable_openssl" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04005672if test "$enable_openssl" = "yes"; then
jfigus038d2cf2015-05-11 14:10:11 -04005673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user specified OpenSSL directory" >&5
5674$as_echo_n "checking for user specified OpenSSL directory... " >&6; }
5675
5676# Check whether --with-openssl-dir was given.
5677if test "${with_openssl_dir+set}" = set; then :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005678 withval=$with_openssl_dir; if test "x$PKG_CONFIG" != "x" && test -f $with_openssl_dir/lib/pkgconfig/libcrypto.pc; then
5679 if test "x$PKG_CONFIG_PATH" = "x"; then
5680 export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig"
5681 else
5682 export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig:$PKG_CONFIG_PATH"
5683 fi
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
5685$as_echo "$with_openssl_dir" >&6; }
5686 elif test -d $with_openssl_dir/lib; then
5687 CFLAGS="$CFLAGS -I$with_openssl_dir/include"
5688 if test "x$LDFLAGS" = "x"; then
5689 LDFLAGS="-L$with_openssl_dir/lib"
5690 else
5691 LDFLAGS="$LDFLAGS -L$with_openssl_dir/lib"
5692 fi
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
5694$as_echo "$with_openssl_dir" >&6; }
5695 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
5697$as_echo "invalid" >&6; }
5698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5700as_fn_error $? "Invalid OpenSSL location: $with_openssl_dir
5701See \`config.log' for more details" "$LINENO" 5; }
5702 fi
jfigus038d2cf2015-05-11 14:10:11 -04005703else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705$as_echo "no" >&6; }
jfigus038d2cf2015-05-11 14:10:11 -04005706fi
5707
5708
Idar Tollefsen600ad962017-01-26 11:24:51 +01005709 if test "x$PKG_CONFIG" != "x"; then
Cullen Jenningse1de50f2013-05-22 12:27:28 -06005710
Idar Tollefsen600ad962017-01-26 11:24:51 +01005711pkg_failed=no
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
5713$as_echo_n "checking for crypto... " >&6; }
5714
5715if test -n "$crypto_CFLAGS"; then
5716 pkg_cv_crypto_CFLAGS="$crypto_CFLAGS"
5717 elif test -n "$PKG_CONFIG"; then
5718 if test -n "$PKG_CONFIG" && \
Pascal Bühlerac872e72017-02-09 14:55:27 +01005719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.1\""; } >&5
5720 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.1") 2>&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005721 ac_status=$?
5722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5723 test $ac_status = 0; }; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005724 pkg_cv_crypto_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1.0.1" 2>/dev/null`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005725 test "x$?" != "x0" && pkg_failed=yes
5726else
5727 pkg_failed=yes
5728fi
5729 else
5730 pkg_failed=untried
5731fi
5732if test -n "$crypto_LIBS"; then
5733 pkg_cv_crypto_LIBS="$crypto_LIBS"
5734 elif test -n "$PKG_CONFIG"; then
5735 if test -n "$PKG_CONFIG" && \
Pascal Bühlerac872e72017-02-09 14:55:27 +01005736 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.1\""; } >&5
5737 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.1") 2>&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005738 ac_status=$?
5739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5740 test $ac_status = 0; }; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005741 pkg_cv_crypto_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1.0.1" 2>/dev/null`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005742 test "x$?" != "x0" && pkg_failed=yes
5743else
5744 pkg_failed=yes
5745fi
5746 else
5747 pkg_failed=untried
5748fi
5749
5750
5751
5752if test $pkg_failed = yes; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754$as_echo "no" >&6; }
5755
5756if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5757 _pkg_short_errors_supported=yes
5758else
5759 _pkg_short_errors_supported=no
5760fi
5761 if test $_pkg_short_errors_supported = yes; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005762 crypto_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1.0.1" 2>&1`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005763 else
Pascal Bühlerac872e72017-02-09 14:55:27 +01005764 crypto_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1.0.1" 2>&1`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005765 fi
5766 # Put the nasty error message in config.log where it belongs
5767 echo "$crypto_PKG_ERRORS" >&5
5768
Pascal Bühlerac872e72017-02-09 14:55:27 +01005769 as_fn_error $? "Package requirements (libcrypto >= 1.0.1) were not met:
Idar Tollefsen600ad962017-01-26 11:24:51 +01005770
5771$crypto_PKG_ERRORS
5772
5773Consider adjusting the PKG_CONFIG_PATH environment variable if you
5774installed software in a non-standard prefix.
5775
5776Alternatively, you may set the environment variables crypto_CFLAGS
5777and crypto_LIBS to avoid the need to call pkg-config.
5778See the pkg-config man page for more details." "$LINENO" 5
5779elif test $pkg_failed = untried; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781$as_echo "no" >&6; }
5782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5784as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5785is in your PATH or set the PKG_CONFIG environment variable to the full
5786path to pkg-config.
5787
5788Alternatively, you may set the environment variables crypto_CFLAGS
5789and crypto_LIBS to avoid the need to call pkg-config.
5790See the pkg-config man page for more details.
5791
5792To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5793See \`config.log' for more details" "$LINENO" 5; }
5794else
5795 crypto_CFLAGS=$pkg_cv_crypto_CFLAGS
5796 crypto_LIBS=$pkg_cv_crypto_LIBS
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5798$as_echo "yes" >&6; }
5799 CFLAGS="$CFLAGS $crypto_CFLAGS"
5800 LIBS="$crypto_LIBS $LIBS"
5801fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005802 else
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
jfigusb5fad5f2015-02-26 12:25:08 -05005804$as_echo_n "checking for dlopen in -ldl... " >&6; }
5805if ${ac_cv_lib_dl_dlopen+:} false; then :
5806 $as_echo_n "(cached) " >&6
5807else
5808 ac_check_lib_save_LIBS=$LIBS
5809LIBS="-ldl $LIBS"
5810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811/* end confdefs.h. */
5812
5813/* Override any GCC internal prototype to avoid an error.
5814 Use char because int might match the return type of a GCC
5815 builtin and then its argument prototype would still apply. */
5816#ifdef __cplusplus
5817extern "C"
5818#endif
5819char dlopen ();
5820int
5821main ()
5822{
5823return dlopen ();
5824 ;
5825 return 0;
5826}
5827_ACEOF
5828if ac_fn_c_try_link "$LINENO"; then :
5829 ac_cv_lib_dl_dlopen=yes
5830else
5831 ac_cv_lib_dl_dlopen=no
5832fi
5833rm -f core conftest.err conftest.$ac_objext \
5834 conftest$ac_exeext conftest.$ac_ext
5835LIBS=$ac_check_lib_save_LIBS
5836fi
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5838$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5839if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5840 cat >>confdefs.h <<_ACEOF
5841#define HAVE_LIBDL 1
5842_ACEOF
5843
5844 LIBS="-ldl $LIBS"
5845
5846else
jfigus13fd6942015-03-02 09:09:13 -05005847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdl" >&5
5848$as_echo "$as_me: WARNING: can't find libdl" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005849fi
5850
Idar Tollefsen600ad962017-01-26 11:24:51 +01005851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
jfigusb5fad5f2015-02-26 12:25:08 -05005852$as_echo_n "checking for inflate in -lz... " >&6; }
5853if ${ac_cv_lib_z_inflate+:} false; then :
5854 $as_echo_n "(cached) " >&6
5855else
5856 ac_check_lib_save_LIBS=$LIBS
5857LIBS="-lz $LIBS"
5858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h. */
5860
5861/* Override any GCC internal prototype to avoid an error.
5862 Use char because int might match the return type of a GCC
5863 builtin and then its argument prototype would still apply. */
5864#ifdef __cplusplus
5865extern "C"
5866#endif
5867char inflate ();
5868int
5869main ()
5870{
5871return inflate ();
5872 ;
5873 return 0;
5874}
5875_ACEOF
5876if ac_fn_c_try_link "$LINENO"; then :
5877 ac_cv_lib_z_inflate=yes
5878else
5879 ac_cv_lib_z_inflate=no
5880fi
5881rm -f core conftest.err conftest.$ac_objext \
5882 conftest$ac_exeext conftest.$ac_ext
5883LIBS=$ac_check_lib_save_LIBS
5884fi
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
5886$as_echo "$ac_cv_lib_z_inflate" >&6; }
5887if test "x$ac_cv_lib_z_inflate" = xyes; then :
5888 cat >>confdefs.h <<_ACEOF
5889#define HAVE_LIBZ 1
5890_ACEOF
5891
5892 LIBS="-lz $LIBS"
5893
5894else
jfigus13fd6942015-03-02 09:09:13 -05005895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz" >&5
5896$as_echo "$as_me: WARNING: can't find libz" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005897fi
5898
Idar Tollefsen600ad962017-01-26 11:24:51 +01005899 fi
5900
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_EncryptInit" >&5
5902$as_echo_n "checking for library containing EVP_EncryptInit... " >&6; }
5903if ${ac_cv_search_EVP_EncryptInit+:} false; then :
jfigusc7e66e32013-05-08 11:32:55 -04005904 $as_echo_n "(cached) " >&6
5905else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005906 ac_func_search_save_LIBS=$LIBS
jfigusc7e66e32013-05-08 11:32:55 -04005907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908/* end confdefs.h. */
5909
5910/* Override any GCC internal prototype to avoid an error.
5911 Use char because int might match the return type of a GCC
5912 builtin and then its argument prototype would still apply. */
5913#ifdef __cplusplus
5914extern "C"
5915#endif
5916char EVP_EncryptInit ();
5917int
5918main ()
5919{
5920return EVP_EncryptInit ();
5921 ;
5922 return 0;
5923}
5924_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005925for ac_lib in '' crypto; do
5926 if test -z "$ac_lib"; then
5927 ac_res="none required"
5928 else
5929 ac_res=-l$ac_lib
5930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5931 fi
5932 if ac_fn_c_try_link "$LINENO"; then :
5933 ac_cv_search_EVP_EncryptInit=$ac_res
jfigusc7e66e32013-05-08 11:32:55 -04005934fi
5935rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005936 conftest$ac_exeext
5937 if ${ac_cv_search_EVP_EncryptInit+:} false; then :
5938 break
jfigusc7e66e32013-05-08 11:32:55 -04005939fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005940done
5941if ${ac_cv_search_EVP_EncryptInit+:} false; then :
jfigusc7e66e32013-05-08 11:32:55 -04005942
Idar Tollefsen600ad962017-01-26 11:24:51 +01005943else
5944 ac_cv_search_EVP_EncryptInit=no
5945fi
5946rm conftest.$ac_ext
5947LIBS=$ac_func_search_save_LIBS
5948fi
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_EncryptInit" >&5
5950$as_echo "$ac_cv_search_EVP_EncryptInit" >&6; }
5951ac_res=$ac_cv_search_EVP_EncryptInit
5952if test "$ac_res" != no; then :
5953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04005954
5955else
5956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01005958as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigus5b22e372013-05-09 09:23:26 -04005959See \`config.log' for more details" "$LINENO" 5; }
5960fi
5961
Idar Tollefsen600ad962017-01-26 11:24:51 +01005962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_ctr" >&5
5963$as_echo_n "checking for library containing EVP_aes_128_ctr... " >&6; }
5964if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
jfigus5b22e372013-05-09 09:23:26 -04005965 $as_echo_n "(cached) " >&6
5966else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005967 ac_func_search_save_LIBS=$LIBS
jfigus5b22e372013-05-09 09:23:26 -04005968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969/* end confdefs.h. */
5970
5971/* Override any GCC internal prototype to avoid an error.
5972 Use char because int might match the return type of a GCC
5973 builtin and then its argument prototype would still apply. */
5974#ifdef __cplusplus
5975extern "C"
5976#endif
5977char EVP_aes_128_ctr ();
5978int
5979main ()
5980{
5981return EVP_aes_128_ctr ();
5982 ;
5983 return 0;
5984}
5985_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005986for ac_lib in '' crypto; do
5987 if test -z "$ac_lib"; then
5988 ac_res="none required"
5989 else
5990 ac_res=-l$ac_lib
5991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5992 fi
5993 if ac_fn_c_try_link "$LINENO"; then :
5994 ac_cv_search_EVP_aes_128_ctr=$ac_res
jfigus5b22e372013-05-09 09:23:26 -04005995fi
5996rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005997 conftest$ac_exeext
5998 if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
5999 break
jfigus5b22e372013-05-09 09:23:26 -04006000fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01006001done
6002if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
jfigus5b22e372013-05-09 09:23:26 -04006003
Idar Tollefsen600ad962017-01-26 11:24:51 +01006004else
6005 ac_cv_search_EVP_aes_128_ctr=no
6006fi
6007rm conftest.$ac_ext
6008LIBS=$ac_func_search_save_LIBS
6009fi
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_ctr" >&5
6011$as_echo "$ac_cv_search_EVP_aes_128_ctr" >&6; }
6012ac_res=$ac_cv_search_EVP_aes_128_ctr
6013if test "$ac_res" != no; then :
6014 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus5b22e372013-05-09 09:23:26 -04006015
6016else
6017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01006019as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04006020See \`config.log' for more details" "$LINENO" 5; }
6021fi
6022
Idar Tollefsen600ad962017-01-26 11:24:51 +01006023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_gcm" >&5
6024$as_echo_n "checking for library containing EVP_aes_128_gcm... " >&6; }
6025if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
jfigus7882dd92013-08-02 16:08:23 -04006026 $as_echo_n "(cached) " >&6
6027else
Idar Tollefsen600ad962017-01-26 11:24:51 +01006028 ac_func_search_save_LIBS=$LIBS
jfigus7882dd92013-08-02 16:08:23 -04006029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030/* end confdefs.h. */
6031
6032/* Override any GCC internal prototype to avoid an error.
6033 Use char because int might match the return type of a GCC
6034 builtin and then its argument prototype would still apply. */
6035#ifdef __cplusplus
6036extern "C"
6037#endif
6038char EVP_aes_128_gcm ();
6039int
6040main ()
6041{
6042return EVP_aes_128_gcm ();
6043 ;
6044 return 0;
6045}
6046_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01006047for ac_lib in '' crypto; do
6048 if test -z "$ac_lib"; then
6049 ac_res="none required"
6050 else
6051 ac_res=-l$ac_lib
6052 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6053 fi
6054 if ac_fn_c_try_link "$LINENO"; then :
6055 ac_cv_search_EVP_aes_128_gcm=$ac_res
jfigus7882dd92013-08-02 16:08:23 -04006056fi
6057rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01006058 conftest$ac_exeext
6059 if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
6060 break
jfigus7882dd92013-08-02 16:08:23 -04006061fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01006062done
6063if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
jfigus7882dd92013-08-02 16:08:23 -04006064
Idar Tollefsen600ad962017-01-26 11:24:51 +01006065else
6066 ac_cv_search_EVP_aes_128_gcm=no
6067fi
6068rm conftest.$ac_ext
6069LIBS=$ac_func_search_save_LIBS
6070fi
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_gcm" >&5
6072$as_echo "$ac_cv_search_EVP_aes_128_gcm" >&6; }
6073ac_res=$ac_cv_search_EVP_aes_128_gcm
6074if test "$ac_res" != no; then :
6075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus7882dd92013-08-02 16:08:23 -04006076
6077else
6078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01006080as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigus7882dd92013-08-02 16:08:23 -04006081See \`config.log' for more details" "$LINENO" 5; }
6082fi
6083
jfigusc7e66e32013-05-08 11:32:55 -04006084
Idar Tollefsen600ad962017-01-26 11:24:51 +01006085
jfigusc7e66e32013-05-08 11:32:55 -04006086$as_echo "#define OPENSSL 1" >>confdefs.h
6087
jfigus7882dd92013-08-02 16:08:23 -04006088 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04006089 HMAC_OBJS=crypto/hash/hmac_ossl.o
6090 USE_OPENSSL=1
6091
jfigus038d2cf2015-05-11 14:10:11 -04006092
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL KDF algorithm" >&5
6094$as_echo_n "checking whether to leverage OpenSSL KDF algorithm... " >&6; }
6095 # Check whether --enable-openssl-kdf was given.
6096if test "${enable_openssl_kdf+set}" = set; then :
6097 enableval=$enable_openssl_kdf;
6098else
6099 enable_openssl_kdf=no
6100fi
6101
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl_kdf" >&5
6103$as_echo "$enable_openssl_kdf" >&6; }
6104 if test "$enable_openssl_kdf" = "yes"; then
Idar Tollefsen600ad962017-01-26 11:24:51 +01006105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kdf_srtp" >&5
6106$as_echo_n "checking for library containing kdf_srtp... " >&6; }
6107if ${ac_cv_search_kdf_srtp+:} false; then :
jfigus038d2cf2015-05-11 14:10:11 -04006108 $as_echo_n "(cached) " >&6
6109else
Idar Tollefsen600ad962017-01-26 11:24:51 +01006110 ac_func_search_save_LIBS=$LIBS
jfigus038d2cf2015-05-11 14:10:11 -04006111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112/* end confdefs.h. */
6113
6114/* Override any GCC internal prototype to avoid an error.
6115 Use char because int might match the return type of a GCC
6116 builtin and then its argument prototype would still apply. */
6117#ifdef __cplusplus
6118extern "C"
6119#endif
6120char kdf_srtp ();
6121int
6122main ()
6123{
6124return kdf_srtp ();
6125 ;
6126 return 0;
6127}
6128_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01006129for ac_lib in '' crypto; do
6130 if test -z "$ac_lib"; then
6131 ac_res="none required"
6132 else
6133 ac_res=-l$ac_lib
6134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6135 fi
6136 if ac_fn_c_try_link "$LINENO"; then :
6137 ac_cv_search_kdf_srtp=$ac_res
jfigus038d2cf2015-05-11 14:10:11 -04006138fi
6139rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01006140 conftest$ac_exeext
6141 if ${ac_cv_search_kdf_srtp+:} false; then :
6142 break
jfigus038d2cf2015-05-11 14:10:11 -04006143fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01006144done
6145if ${ac_cv_search_kdf_srtp+:} false; then :
jfigus038d2cf2015-05-11 14:10:11 -04006146
Idar Tollefsen600ad962017-01-26 11:24:51 +01006147else
6148 ac_cv_search_kdf_srtp=no
6149fi
6150rm conftest.$ac_ext
6151LIBS=$ac_func_search_save_LIBS
6152fi
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kdf_srtp" >&5
6154$as_echo "$ac_cv_search_kdf_srtp" >&6; }
6155ac_res=$ac_cv_search_kdf_srtp
6156if test "$ac_res" != no; then :
6157 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus038d2cf2015-05-11 14:10:11 -04006158
6159else
6160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6162as_fn_error $? "can't find openssl KDF lib
6163See \`config.log' for more details" "$LINENO" 5; }
6164fi
6165
6166
6167$as_echo "#define OPENSSL_KDF 1" >>confdefs.h
6168
6169 fi
jfigusc7e66e32013-05-08 11:32:55 -04006170else
jfigusa3127b82014-11-19 14:46:52 -05006171 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o"
jfigusc7e66e32013-05-08 11:32:55 -04006172 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
6173fi
6174
6175
6176
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
6178$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
6179if ${ac_cv_lib_pcap_pcap_create+:} false; then :
6180 $as_echo_n "(cached) " >&6
6181else
6182 ac_check_lib_save_LIBS=$LIBS
6183LIBS="-lpcap $LIBS"
6184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185/* end confdefs.h. */
6186
6187/* Override any GCC internal prototype to avoid an error.
6188 Use char because int might match the return type of a GCC
6189 builtin and then its argument prototype would still apply. */
6190#ifdef __cplusplus
6191extern "C"
6192#endif
6193char pcap_create ();
6194int
6195main ()
6196{
6197return pcap_create ();
6198 ;
6199 return 0;
6200}
6201_ACEOF
6202if ac_fn_c_try_link "$LINENO"; then :
6203 ac_cv_lib_pcap_pcap_create=yes
6204else
6205 ac_cv_lib_pcap_pcap_create=no
6206fi
6207rm -f core conftest.err conftest.$ac_objext \
6208 conftest$ac_exeext conftest.$ac_ext
6209LIBS=$ac_check_lib_save_LIBS
6210fi
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
6212$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
6213if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Idar Tollefsen600ad962017-01-26 11:24:51 +01006214 LIBS="-lpcap $LIBS"
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006215
Bernardo Torresb3c51422014-10-14 12:40:09 -03006216$as_echo "#define HAVE_PCAP 1" >>confdefs.h
6217
Idar Tollefsen600ad962017-01-26 11:24:51 +01006218 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006219
6220fi
6221
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006222
Pascal Bühler75918862017-02-19 18:33:50 +01006223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to redirect logging to stdout" >&5
6224$as_echo_n "checking whether to redirect logging to stdout... " >&6; }
6225# Check whether --enable-log-stdout was given.
6226if test "${enable_log_stdout+set}" = set; then :
6227 enableval=$enable_log_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00006228else
Pascal Bühler75918862017-02-19 18:33:50 +01006229 enable_log_stdout=no
jfigusc7e66e32013-05-08 11:32:55 -04006230fi
6231
Pascal Bühler75918862017-02-19 18:33:50 +01006232if test "$enable_log_stdout" = "yes"; then
David McGrewb67061f2005-09-28 14:23:06 +00006233
jfigusc7e66e32013-05-08 11:32:55 -04006234$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00006235
6236fi
Pascal Bühler75918862017-02-19 18:33:50 +01006237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_stdout" >&5
6238$as_echo "$enable_log_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00006239
Pascal Bühler75918862017-02-19 18:33:50 +01006240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking wheather to use a file for logging" >&5
6241$as_echo_n "checking wheather to use a file for logging... " >&6; }
6242
6243# Check whether --with-log-file was given.
6244if test "${with_log_file+set}" = set; then :
6245 withval=$with_log_file; case x$with_log_file in #(
6246 x) :
6247 valid_with_log_file="no" ;; #(
6248 xyes) :
6249 valid_with_log_file="no" ;; #(
6250 *) :
6251 valid_with_error_file="yes" ;;
6252esac
6253 if test "$valid_with_log_file" = "no"; then :
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
6255$as_echo "invalid" >&6; }
6256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6258as_fn_error $? "Invalid value for --with-log-file: \"$with_log_file\"
6259See \`config.log' for more details" "$LINENO" 5; }
David McGrewb67061f2005-09-28 14:23:06 +00006260else
Pascal Bühler75918862017-02-19 18:33:50 +01006261
6262cat >>confdefs.h <<_ACEOF
6263#define ERR_REPORTING_FILE "$with_log_file"
6264_ACEOF
6265
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using log file: \"$with_log_file\"" >&5
6267$as_echo "using log file: \"$with_log_file\"" >&6; }
6268fi
6269else
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271$as_echo "no" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04006272fi
6273
David McGrewb67061f2005-09-28 14:23:06 +00006274
Pascal Bühler75918862017-02-19 18:33:50 +01006275if test "$enable_log_stdout" = "yes" && test "x$with_log_file" != "x"; then :
6276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6278as_fn_error $? "Can only use one of --enable-log-stdout and --with-log-file; they are mutually exclusive
6279See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00006280fi
David McGrewb67061f2005-09-28 14:23:06 +00006281
jfigusc7e66e32013-05-08 11:32:55 -04006282ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00006283
6284
Idar Tollefsen600ad962017-01-26 11:24:51 +01006285ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile libsrtp2.pc"
jfigusc7e66e32013-05-08 11:32:55 -04006286
Cullen Jennings235513a2005-09-21 22:51:36 +00006287cat >confcache <<\_ACEOF
6288# This file is a shell script that caches the results of configure
6289# tests run on this system so they can be shared between configure
6290# scripts and configure runs, see configure's option --config-cache.
6291# It is not useful on other systems. If it contains results you don't
6292# want to keep, you may remove or edit it.
6293#
6294# config.status only pays attention to the cache file if you give it
6295# the --recheck option to rerun configure.
6296#
6297# `ac_cv_env_foo' variables (set or unset) will be overridden when
6298# loading this file, other *unset* `ac_cv_foo' will be assigned the
6299# following values.
6300
6301_ACEOF
6302
6303# The following way of writing the cache mishandles newlines in values,
6304# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04006305# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00006306# Ultrix sh set writes to stderr and can't be redirected directly,
6307# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04006308(
6309 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6310 eval ac_val=\$$ac_var
6311 case $ac_val in #(
6312 *${as_nl}*)
6313 case $ac_var in #(
6314 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6315$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6316 esac
6317 case $ac_var in #(
6318 _ | IFS | as_nl) ;; #(
6319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6320 *) { eval $ac_var=; unset $ac_var;} ;;
6321 esac ;;
6322 esac
6323 done
6324
Cullen Jennings235513a2005-09-21 22:51:36 +00006325 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04006326 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6327 *${as_nl}ac_space=\ *)
6328 # `set' does not quote correctly, so add quotes: double-quote
6329 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00006330 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00006331 "s/'/'\\\\''/g;
6332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04006333 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00006334 *)
6335 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04006336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00006337 ;;
jfigusc7e66e32013-05-08 11:32:55 -04006338 esac |
6339 sort
6340) |
Cullen Jennings235513a2005-09-21 22:51:36 +00006341 sed '
jfigusc7e66e32013-05-08 11:32:55 -04006342 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00006343 t clear
jfigusc7e66e32013-05-08 11:32:55 -04006344 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00006345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6346 t end
jfigusc7e66e32013-05-08 11:32:55 -04006347 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6348 :end' >>confcache
6349if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6350 if test -w "$cache_file"; then
6351 if test "x$cache_file" != "x/dev/null"; then
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6353$as_echo "$as_me: updating cache $cache_file" >&6;}
6354 if test ! -f "$cache_file" || test -h "$cache_file"; then
6355 cat confcache >"$cache_file"
6356 else
6357 case $cache_file in #(
6358 */* | ?:*)
6359 mv -f confcache "$cache_file"$$ &&
6360 mv -f "$cache_file"$$ "$cache_file" ;; #(
6361 *)
6362 mv -f confcache "$cache_file" ;;
6363 esac
6364 fi
6365 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006366 else
jfigusc7e66e32013-05-08 11:32:55 -04006367 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6368$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006369 fi
6370fi
6371rm -f confcache
6372
6373test "x$prefix" = xNONE && prefix=$ac_default_prefix
6374# Let make expand exec_prefix.
6375test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6376
Cullen Jennings235513a2005-09-21 22:51:36 +00006377DEFS=-DHAVE_CONFIG_H
6378
6379ac_libobjs=
6380ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04006381U=
Cullen Jennings235513a2005-09-21 22:51:36 +00006382for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6383 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04006384 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6385 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6386 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6387 # will be set to the directory where LIBOBJS objects are built.
6388 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6389 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00006390done
6391LIBOBJS=$ac_libobjs
6392
6393LTLIBOBJS=$ac_ltlibobjs
6394
6395
6396
jfigusc7e66e32013-05-08 11:32:55 -04006397
6398: "${CONFIG_STATUS=./config.status}"
6399ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00006400ac_clean_files_save=$ac_clean_files
6401ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04006402{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6403$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6404as_write_fail=0
6405cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006406#! $SHELL
6407# Generated by $as_me.
6408# Run this file to recreate the current configuration.
6409# Compiler output produced by configure, useful for debugging
6410# configure, is in config.log if it exists.
6411
6412debug=false
6413ac_cs_recheck=false
6414ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04006415
Cullen Jennings235513a2005-09-21 22:51:36 +00006416SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04006417export SHELL
6418_ASEOF
6419cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6420## -------------------- ##
6421## M4sh Initialization. ##
6422## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00006423
jfigusc7e66e32013-05-08 11:32:55 -04006424# Be more Bourne compatible
6425DUALCASE=1; export DUALCASE # for MKS sh
6426if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00006427 emulate sh
6428 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04006429 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00006430 # is contrary to our usage. Disable this feature.
6431 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04006432 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00006433else
jfigusc7e66e32013-05-08 11:32:55 -04006434 case `(set -o) 2>/dev/null` in #(
6435 *posix*) :
6436 set -o posix ;; #(
6437 *) :
6438 ;;
6439esac
Cullen Jennings235513a2005-09-21 22:51:36 +00006440fi
6441
6442
jfigusc7e66e32013-05-08 11:32:55 -04006443as_nl='
6444'
6445export as_nl
6446# Printing a long string crashes Solaris 7 /usr/bin/printf.
6447as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6448as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6449as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6450# Prefer a ksh shell builtin over an external printf program on Solaris,
6451# but without wasting forks for bash or zsh.
6452if test -z "$BASH_VERSION$ZSH_VERSION" \
6453 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6454 as_echo='print -r --'
6455 as_echo_n='print -rn --'
6456elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6457 as_echo='printf %s\n'
6458 as_echo_n='printf %s'
6459else
6460 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6461 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6462 as_echo_n='/usr/ucb/echo -n'
6463 else
6464 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6465 as_echo_n_body='eval
6466 arg=$1;
6467 case $arg in #(
6468 *"$as_nl"*)
6469 expr "X$arg" : "X\\(.*\\)$as_nl";
6470 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6471 esac;
6472 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6473 '
6474 export as_echo_n_body
6475 as_echo_n='sh -c $as_echo_n_body as_echo'
6476 fi
6477 export as_echo_body
6478 as_echo='sh -c $as_echo_body as_echo'
6479fi
6480
6481# The user is always right.
6482if test "${PATH_SEPARATOR+set}" != set; then
6483 PATH_SEPARATOR=:
6484 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6485 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6486 PATH_SEPARATOR=';'
6487 }
6488fi
6489
6490
6491# IFS
6492# We need space, tab and new line, in precisely that order. Quoting is
6493# there to prevent editors from complaining about space-tab.
6494# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6495# splitting by setting IFS to empty value.)
6496IFS=" "" $as_nl"
6497
6498# Find who we are. Look in the path if we contain no directory separator.
6499as_myself=
6500case $0 in #((
6501 *[\\/]* ) as_myself=$0 ;;
6502 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6508 done
6509IFS=$as_save_IFS
6510
6511 ;;
6512esac
6513# We did not find ourselves, most probably we were run as `sh COMMAND'
6514# in which case we are not to be found in the path.
6515if test "x$as_myself" = x; then
6516 as_myself=$0
6517fi
6518if test ! -f "$as_myself"; then
6519 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6520 exit 1
6521fi
6522
6523# Unset variables that we do not need and which cause bugs (e.g. in
6524# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6525# suppresses any "Segmentation fault" message there. '((' could
6526# trigger a bug in pdksh 5.2.14.
6527for as_var in BASH_ENV ENV MAIL MAILPATH
6528do eval test x\${$as_var+set} = xset \
6529 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6530done
Cullen Jennings235513a2005-09-21 22:51:36 +00006531PS1='$ '
6532PS2='> '
6533PS4='+ '
6534
6535# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04006536LC_ALL=C
6537export LC_ALL
6538LANGUAGE=C
6539export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04006540
jfigusc7e66e32013-05-08 11:32:55 -04006541# CDPATH.
6542(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6543
6544
6545# as_fn_error STATUS ERROR [LINENO LOG_FD]
6546# ----------------------------------------
6547# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6548# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6549# script with STATUS, using 1 if that was 0.
6550as_fn_error ()
6551{
6552 as_status=$1; test $as_status -eq 0 && as_status=1
6553 if test "$4"; then
6554 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6555 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6556 fi
6557 $as_echo "$as_me: error: $2" >&2
6558 as_fn_exit $as_status
6559} # as_fn_error
6560
6561
6562# as_fn_set_status STATUS
6563# -----------------------
6564# Set $? to STATUS, without forking.
6565as_fn_set_status ()
6566{
6567 return $1
6568} # as_fn_set_status
6569
6570# as_fn_exit STATUS
6571# -----------------
6572# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6573as_fn_exit ()
6574{
6575 set +e
6576 as_fn_set_status $1
6577 exit $1
6578} # as_fn_exit
6579
6580# as_fn_unset VAR
6581# ---------------
6582# Portably unset VAR.
6583as_fn_unset ()
6584{
6585 { eval $1=; unset $1;}
6586}
6587as_unset=as_fn_unset
6588# as_fn_append VAR VALUE
6589# ----------------------
6590# Append the text in VALUE to the end of the definition contained in VAR. Take
6591# advantage of any shell optimizations that allow amortized linear growth over
6592# repeated appends, instead of the typical quadratic growth present in naive
6593# implementations.
6594if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6595 eval 'as_fn_append ()
6596 {
6597 eval $1+=\$2
6598 }'
6599else
6600 as_fn_append ()
6601 {
6602 eval $1=\$$1\$2
6603 }
6604fi # as_fn_append
6605
6606# as_fn_arith ARG...
6607# ------------------
6608# Perform arithmetic evaluation on the ARGs, and store the result in the
6609# global $as_val. Take advantage of shells that can avoid forks. The arguments
6610# must be portable across $(()) and expr.
6611if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6612 eval 'as_fn_arith ()
6613 {
6614 as_val=$(( $* ))
6615 }'
6616else
6617 as_fn_arith ()
6618 {
6619 as_val=`expr "$@" || test $? -eq 1`
6620 }
6621fi # as_fn_arith
6622
6623
6624if expr a : '\(a\)' >/dev/null 2>&1 &&
6625 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006626 as_expr=expr
6627else
6628 as_expr=false
6629fi
6630
jfigusc7e66e32013-05-08 11:32:55 -04006631if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006632 as_basename=basename
6633else
6634 as_basename=false
6635fi
6636
jfigusc7e66e32013-05-08 11:32:55 -04006637if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6638 as_dirname=dirname
6639else
6640 as_dirname=false
6641fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006642
jfigusc7e66e32013-05-08 11:32:55 -04006643as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006644$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6645 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006646 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6647$as_echo X/"$0" |
6648 sed '/^.*\/\([^/][^/]*\)\/*$/{
6649 s//\1/
6650 q
6651 }
6652 /^X\/\(\/\/\)$/{
6653 s//\1/
6654 q
6655 }
6656 /^X\/\(\/\).*/{
6657 s//\1/
6658 q
6659 }
6660 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006661
Cullen Jennings235513a2005-09-21 22:51:36 +00006662# Avoid depending upon Character Ranges.
6663as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6664as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6665as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6666as_cr_digits='0123456789'
6667as_cr_alnum=$as_cr_Letters$as_cr_digits
6668
jfigusc7e66e32013-05-08 11:32:55 -04006669ECHO_C= ECHO_N= ECHO_T=
6670case `echo -n x` in #(((((
6671-n*)
6672 case `echo 'xy\c'` in
6673 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6674 xy) ECHO_C='\c';;
6675 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6676 ECHO_T=' ';;
6677 esac;;
6678*)
6679 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00006680esac
6681
Cullen Jennings235513a2005-09-21 22:51:36 +00006682rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04006683if test -d conf$$.dir; then
6684 rm -f conf$$.dir/conf$$.file
6685else
6686 rm -f conf$$.dir
6687 mkdir conf$$.dir 2>/dev/null
6688fi
6689if (echo >conf$$.file) 2>/dev/null; then
6690 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006691 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04006692 # ... but there are two gotchas:
6693 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6694 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6695 # In both cases, we have to default to `cp -pR'.
6696 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6697 as_ln_s='cp -pR'
6698 elif ln conf$$.file conf$$ 2>/dev/null; then
6699 as_ln_s=ln
6700 else
6701 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006702 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006703else
jfigusc7e66e32013-05-08 11:32:55 -04006704 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006705fi
jfigusc7e66e32013-05-08 11:32:55 -04006706rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6707rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00006708
jfigusc7e66e32013-05-08 11:32:55 -04006709
6710# as_fn_mkdir_p
6711# -------------
6712# Create "$as_dir" as a directory, including parents if necessary.
6713as_fn_mkdir_p ()
6714{
6715
6716 case $as_dir in #(
6717 -*) as_dir=./$as_dir;;
6718 esac
6719 test -d "$as_dir" || eval $as_mkdir_p || {
6720 as_dirs=
6721 while :; do
6722 case $as_dir in #(
6723 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6724 *) as_qdir=$as_dir;;
6725 esac
6726 as_dirs="'$as_qdir' $as_dirs"
6727 as_dir=`$as_dirname -- "$as_dir" ||
6728$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6729 X"$as_dir" : 'X\(//\)[^/]' \| \
6730 X"$as_dir" : 'X\(//\)$' \| \
6731 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6732$as_echo X"$as_dir" |
6733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6734 s//\1/
6735 q
6736 }
6737 /^X\(\/\/\)[^/].*/{
6738 s//\1/
6739 q
6740 }
6741 /^X\(\/\/\)$/{
6742 s//\1/
6743 q
6744 }
6745 /^X\(\/\).*/{
6746 s//\1/
6747 q
6748 }
6749 s/.*/./; q'`
6750 test -d "$as_dir" && break
6751 done
6752 test -z "$as_dirs" || eval "mkdir $as_dirs"
6753 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6754
6755
6756} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006757if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04006758 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00006759else
David McGrewfec49dd2005-09-23 19:34:11 +00006760 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00006761 as_mkdir_p=false
6762fi
6763
jfigusc7e66e32013-05-08 11:32:55 -04006764
6765# as_fn_executable_p FILE
6766# -----------------------
6767# Test if FILE is an executable regular file.
6768as_fn_executable_p ()
6769{
6770 test -f "$1" && test -x "$1"
6771} # as_fn_executable_p
6772as_test_x='test -x'
6773as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006774
6775# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00006776as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006777
6778# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00006779as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006780
6781
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006782exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04006783## ----------------------------------- ##
6784## Main body of $CONFIG_STATUS script. ##
6785## ----------------------------------- ##
6786_ASEOF
6787test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006788
jfigusc7e66e32013-05-08 11:32:55 -04006789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6790# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00006791# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04006792# values after options handling.
6793ac_log="
Pascal Bühler34acba62017-01-19 10:57:30 +01006794This file was extended by libsrtp2 $as_me 2.1.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04006795generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00006796
6797 CONFIG_FILES = $CONFIG_FILES
6798 CONFIG_HEADERS = $CONFIG_HEADERS
6799 CONFIG_LINKS = $CONFIG_LINKS
6800 CONFIG_COMMANDS = $CONFIG_COMMANDS
6801 $ $0 $@
6802
jfigusc7e66e32013-05-08 11:32:55 -04006803on `(hostname || uname -n) 2>/dev/null | sed 1q`
6804"
6805
Cullen Jennings235513a2005-09-21 22:51:36 +00006806_ACEOF
6807
jfigusc7e66e32013-05-08 11:32:55 -04006808case $ac_config_files in *"
6809"*) set x $ac_config_files; shift; ac_config_files=$*;;
6810esac
6811
6812case $ac_config_headers in *"
6813"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6814esac
6815
6816
6817cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006818# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04006819config_files="$ac_config_files"
6820config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00006821
jfigusc7e66e32013-05-08 11:32:55 -04006822_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006823
jfigusc7e66e32013-05-08 11:32:55 -04006824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006825ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04006826\`$as_me' instantiates files and other configuration actions
6827from templates according to the current configuration. Unless the files
6828and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00006829
jfigusc7e66e32013-05-08 11:32:55 -04006830Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00006831
6832 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04006833 -V, --version print version number and configuration settings, then exit
6834 --config print configuration, then exit
6835 -q, --quiet, --silent
6836 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00006837 -d, --debug don't remove temporary files
6838 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04006839 --file=FILE[:TEMPLATE]
6840 instantiate the configuration file FILE
6841 --header=FILE[:TEMPLATE]
6842 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00006843
6844Configuration files:
6845$config_files
6846
6847Configuration headers:
6848$config_headers
6849
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02006850Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006851
jfigusc7e66e32013-05-08 11:32:55 -04006852_ACEOF
6853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6854ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00006855ac_cs_version="\\
Pascal Bühler34acba62017-01-19 10:57:30 +01006856libsrtp2 config.status 2.1.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04006857configured by $0, generated by GNU Autoconf 2.69,
6858 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00006859
jfigusc7e66e32013-05-08 11:32:55 -04006860Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00006861This config.status script is free software; the Free Software Foundation
6862gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04006863
6864ac_pwd='$ac_pwd'
6865srcdir='$srcdir'
6866INSTALL='$INSTALL'
6867test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00006868_ACEOF
6869
jfigusc7e66e32013-05-08 11:32:55 -04006870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6871# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00006872ac_need_defaults=:
6873while test $# != 0
6874do
6875 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04006876 --*=?*)
6877 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6878 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006879 ac_shift=:
6880 ;;
jfigusc7e66e32013-05-08 11:32:55 -04006881 --*=)
6882 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6883 ac_optarg=
6884 ac_shift=:
6885 ;;
6886 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00006887 ac_option=$1
6888 ac_optarg=$2
6889 ac_shift=shift
6890 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006891 esac
6892
6893 case $ac_option in
6894 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00006895 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6896 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04006897 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6898 $as_echo "$ac_cs_version"; exit ;;
6899 --config | --confi | --conf | --con | --co | --c )
6900 $as_echo "$ac_cs_config"; exit ;;
6901 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00006902 debug=: ;;
6903 --file | --fil | --fi | --f )
6904 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006905 case $ac_optarg in
6906 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6907 '') as_fn_error $? "missing file argument" ;;
6908 esac
6909 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006910 ac_need_defaults=false;;
6911 --header | --heade | --head | --hea )
6912 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006913 case $ac_optarg in
6914 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6915 esac
6916 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006917 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04006918 --he | --h)
6919 # Conflict between --help and --header
6920 as_fn_error $? "ambiguous option: \`$1'
6921Try \`$0 --help' for more information.";;
6922 --help | --hel | -h )
6923 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006924 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6925 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6926 ac_cs_silent=: ;;
6927
6928 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04006929 -*) as_fn_error $? "unrecognized option: \`$1'
6930Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006931
jfigusc7e66e32013-05-08 11:32:55 -04006932 *) as_fn_append ac_config_targets " $1"
6933 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006934
6935 esac
6936 shift
6937done
6938
6939ac_configure_extra_args=
6940
6941if $ac_cs_silent; then
6942 exec 6>/dev/null
6943 ac_configure_extra_args="$ac_configure_extra_args --silent"
6944fi
6945
6946_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006948if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04006949 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6950 shift
6951 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6952 CONFIG_SHELL='$SHELL'
6953 export CONFIG_SHELL
6954 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00006955fi
6956
6957_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6959exec 5>>config.log
6960{
6961 echo
6962 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6963## Running $as_me. ##
6964_ASBOX
6965 $as_echo "$ac_log"
6966} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006967
jfigusc7e66e32013-05-08 11:32:55 -04006968_ACEOF
6969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6970_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006971
jfigusc7e66e32013-05-08 11:32:55 -04006972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006973
jfigusc7e66e32013-05-08 11:32:55 -04006974# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00006975for ac_config_target in $ac_config_targets
6976do
jfigusc7e66e32013-05-08 11:32:55 -04006977 case $ac_config_target in
6978 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
6979 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6980 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
6981 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Idar Tollefsen600ad962017-01-26 11:24:51 +01006982 "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04006983
6984 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006985 esac
6986done
6987
jfigusc7e66e32013-05-08 11:32:55 -04006988
Cullen Jennings235513a2005-09-21 22:51:36 +00006989# If the user did not use the arguments to specify the items to instantiate,
6990# then the envvar interface is used. Set only those that are not.
6991# We use the long form for the default assignment because of an extremely
6992# bizarre bug on SunOS 4.1.3.
6993if $ac_need_defaults; then
6994 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6995 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6996fi
6997
6998# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04006999# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00007000# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04007001# Hook for its removal unless debugging.
7002# Note that there is a small window in which the directory will not be cleaned:
7003# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00007004$debug ||
7005{
jfigusc7e66e32013-05-08 11:32:55 -04007006 tmp= ac_tmp=
7007 trap 'exit_status=$?
7008 : "${ac_tmp:=$tmp}"
7009 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7010' 0
7011 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00007012}
Cullen Jennings235513a2005-09-21 22:51:36 +00007013# Create a (secure) tmp directory for tmp files.
7014
7015{
jfigusc7e66e32013-05-08 11:32:55 -04007016 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7017 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00007018} ||
7019{
jfigusc7e66e32013-05-08 11:32:55 -04007020 tmp=./conf$$-$RANDOM
7021 (umask 077 && mkdir "$tmp")
7022} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7023ac_tmp=$tmp
7024
7025# Set up the scripts for CONFIG_FILES section.
7026# No need to generate them if there are no CONFIG_FILES.
7027# This happens for instance with `./config.status config.h'.
7028if test -n "$CONFIG_FILES"; then
7029
7030
7031ac_cr=`echo X | tr X '\015'`
7032# On cygwin, bash can eat \r inside `` if the user requested igncr.
7033# But we know of no other shell where ac_cr would be empty at this
7034# point, so we can use a bashism as a fallback.
7035if test "x$ac_cr" = x; then
7036 eval ac_cr=\$\'\\r\'
7037fi
7038ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7039if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7040 ac_cs_awk_cr='\\r'
7041else
7042 ac_cs_awk_cr=$ac_cr
7043fi
7044
7045echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7046_ACEOF
7047
7048
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007049{
jfigusc7e66e32013-05-08 11:32:55 -04007050 echo "cat >conf$$subs.awk <<_ACEOF" &&
7051 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7052 echo "_ACEOF"
7053} >conf$$subs.sh ||
7054 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7055ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7056ac_delim='%!_!# '
7057for ac_last_try in false false false false false :; do
7058 . ./conf$$subs.sh ||
7059 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7060
7061 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7062 if test $ac_delim_n = $ac_delim_num; then
7063 break
7064 elif $ac_last_try; then
7065 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7066 else
7067 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7068 fi
7069done
7070rm -f conf$$subs.sh
7071
7072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7073cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7074_ACEOF
7075sed -n '
7076h
7077s/^/S["/; s/!.*/"]=/
7078p
7079g
7080s/^[^!]*!//
7081:repl
7082t repl
7083s/'"$ac_delim"'$//
7084t delim
7085:nl
7086h
7087s/\(.\{148\}\)..*/\1/
7088t more1
7089s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7090p
7091n
7092b repl
7093:more1
7094s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7095p
7096g
7097s/.\{148\}//
7098t nl
7099:delim
7100h
7101s/\(.\{148\}\)..*/\1/
7102t more2
7103s/["\\]/\\&/g; s/^/"/; s/$/"/
7104p
7105b
7106:more2
7107s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7108p
7109g
7110s/.\{148\}//
7111t delim
7112' <conf$$subs.awk | sed '
7113/^[^""]/{
7114 N
7115 s/\n//
7116}
7117' >>$CONFIG_STATUS || ac_write_fail=1
7118rm -f conf$$subs.awk
7119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7120_ACAWK
7121cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7122 for (key in S) S_is_set[key] = 1
7123 FS = ""
7124
7125}
7126{
7127 line = $ 0
7128 nfields = split(line, field, "@")
7129 substed = 0
7130 len = length(field[1])
7131 for (i = 2; i < nfields; i++) {
7132 key = field[i]
7133 keylen = length(key)
7134 if (S_is_set[key]) {
7135 value = S[key]
7136 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7137 len += length(value) + length(field[++i])
7138 substed = 1
7139 } else
7140 len += 1 + keylen
7141 }
7142
7143 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007144}
jfigusa14b5a02013-03-29 12:24:12 -04007145
jfigusc7e66e32013-05-08 11:32:55 -04007146_ACAWK
7147_ACEOF
7148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7149if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7150 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7151else
7152 cat
7153fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7154 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04007155_ACEOF
7156
jfigusc7e66e32013-05-08 11:32:55 -04007157# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7158# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7159# trailing colons and then remove the whole line if VPATH becomes empty
7160# (actually we leave an empty line to preserve line numbers).
7161if test "x$srcdir" = x.; then
7162 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7163h
7164s///
7165s/^/:/
7166s/[ ]*$/:/
7167s/:\$(srcdir):/:/g
7168s/:\${srcdir}:/:/g
7169s/:@srcdir@:/:/g
7170s/^:*//
7171s/:*$//
7172x
7173s/\(=[ ]*\).*/\1/
7174G
7175s/\n//
7176s/^[^=]*=[ ]*$//
7177}'
7178fi
jfigusa14b5a02013-03-29 12:24:12 -04007179
jfigusc7e66e32013-05-08 11:32:55 -04007180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007181fi # test -n "$CONFIG_FILES"
7182
jfigusc7e66e32013-05-08 11:32:55 -04007183# Set up the scripts for CONFIG_HEADERS section.
7184# No need to generate them if there are no CONFIG_HEADERS.
7185# This happens for instance with `./config.status Makefile'.
7186if test -n "$CONFIG_HEADERS"; then
7187cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7188BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00007189_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007190
7191# Transform confdefs.h into an awk script `defines.awk', embedded as
7192# here-document in config.status, that substitutes the proper values into
7193# config.h.in to produce config.h.
7194
7195# Create a delimiter string that does not exist in confdefs.h, to ease
7196# handling of long lines.
7197ac_delim='%!_!# '
7198for ac_last_try in false false :; do
7199 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7200 if test -z "$ac_tt"; then
7201 break
7202 elif $ac_last_try; then
7203 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7204 else
7205 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7206 fi
7207done
7208
7209# For the awk script, D is an array of macro values keyed by name,
7210# likewise P contains macro parameters if any. Preserve backslash
7211# newline sequences.
7212
7213ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7214sed -n '
7215s/.\{148\}/&'"$ac_delim"'/g
7216t rset
7217:rset
7218s/^[ ]*#[ ]*define[ ][ ]*/ /
7219t def
7220d
7221:def
7222s/\\$//
7223t bsnl
7224s/["\\]/\\&/g
7225s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7226D["\1"]=" \3"/p
7227s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7228d
7229:bsnl
7230s/["\\]/\\&/g
7231s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7232D["\1"]=" \3\\\\\\n"\\/p
7233t cont
7234s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7235t cont
7236d
7237:cont
7238n
7239s/.\{148\}/&'"$ac_delim"'/g
7240t clear
7241:clear
7242s/\\$//
7243t bsnlc
7244s/["\\]/\\&/g; s/^/"/; s/$/"/p
7245d
7246:bsnlc
7247s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7248b cont
7249' <confdefs.h | sed '
7250s/'"$ac_delim"'/"\\\
7251"/g' >>$CONFIG_STATUS || ac_write_fail=1
7252
7253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7254 for (key in D) D_is_set[key] = 1
7255 FS = ""
7256}
7257/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7258 line = \$ 0
7259 split(line, arg, " ")
7260 if (arg[1] == "#") {
7261 defundef = arg[2]
7262 mac1 = arg[3]
7263 } else {
7264 defundef = substr(arg[1], 2)
7265 mac1 = arg[2]
7266 }
7267 split(mac1, mac2, "(") #)
7268 macro = mac2[1]
7269 prefix = substr(line, 1, index(line, defundef) - 1)
7270 if (D_is_set[macro]) {
7271 # Preserve the white space surrounding the "#".
7272 print prefix "define", macro P[macro] D[macro]
7273 next
7274 } else {
7275 # Replace #undef with comments. This is necessary, for example,
7276 # in the case of _POSIX_SOURCE, which is predefined and required
7277 # on some systems where configure will not decide to define it.
7278 if (defundef == "undef") {
7279 print "/*", prefix defundef, macro, "*/"
7280 next
7281 }
7282 }
7283}
7284{ print }
7285_ACAWK
7286_ACEOF
7287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7288 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7289fi # test -n "$CONFIG_HEADERS"
7290
7291
7292eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7293shift
7294for ac_tag
7295do
7296 case $ac_tag in
7297 :[FHLC]) ac_mode=$ac_tag; continue;;
7298 esac
7299 case $ac_mode$ac_tag in
7300 :[FHL]*:*);;
7301 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7302 :[FH]-) ac_tag=-:-;;
7303 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7304 esac
7305 ac_save_IFS=$IFS
7306 IFS=:
7307 set x $ac_tag
7308 IFS=$ac_save_IFS
7309 shift
7310 ac_file=$1
7311 shift
7312
7313 case $ac_mode in
7314 :L) ac_source=$1;;
7315 :[FH])
7316 ac_file_inputs=
7317 for ac_f
7318 do
7319 case $ac_f in
7320 -) ac_f="$ac_tmp/stdin";;
7321 *) # Look for the file first in the build tree, then in the source tree
7322 # (if the path is not absolute). The absolute path cannot be DOS-style,
7323 # because $ac_f cannot contain `:'.
7324 test -f "$ac_f" ||
7325 case $ac_f in
7326 [\\/$]*) false;;
7327 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7328 esac ||
7329 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7330 esac
7331 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7332 as_fn_append ac_file_inputs " '$ac_f'"
7333 done
7334
7335 # Let's still pretend it is `configure' which instantiates (i.e., don't
7336 # use $as_me), people would be surprised to read:
7337 # /* config.h. Generated by config.status. */
7338 configure_input='Generated from '`
7339 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7340 `' by configure.'
7341 if test x"$ac_file" != x-; then
7342 configure_input="$ac_file. $configure_input"
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7344$as_echo "$as_me: creating $ac_file" >&6;}
7345 fi
7346 # Neutralize special characters interpreted by sed in replacement strings.
7347 case $configure_input in #(
7348 *\&* | *\|* | *\\* )
7349 ac_sed_conf_input=`$as_echo "$configure_input" |
7350 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7351 *) ac_sed_conf_input=$configure_input;;
7352 esac
7353
7354 case $ac_tag in
7355 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7356 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7357 esac
7358 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007359 esac
7360
jfigusc7e66e32013-05-08 11:32:55 -04007361 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00007362$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00007363 X"$ac_file" : 'X\(//\)[^/]' \| \
7364 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04007365 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7366$as_echo X"$ac_file" |
7367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7368 s//\1/
7369 q
7370 }
7371 /^X\(\/\/\)[^/].*/{
7372 s//\1/
7373 q
7374 }
7375 /^X\(\/\/\)$/{
7376 s//\1/
7377 q
7378 }
7379 /^X\(\/\).*/{
7380 s//\1/
7381 q
7382 }
7383 s/.*/./; q'`
7384 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00007385 ac_builddir=.
7386
jfigusc7e66e32013-05-08 11:32:55 -04007387case "$ac_dir" in
7388.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7389*)
7390 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7391 # A ".." for each directory in $ac_dir_suffix.
7392 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7393 case $ac_top_builddir_sub in
7394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7396 esac ;;
7397esac
7398ac_abs_top_builddir=$ac_pwd
7399ac_abs_builddir=$ac_pwd$ac_dir_suffix
7400# for backward compatibility:
7401ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00007402
7403case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04007404 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00007405 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04007406 ac_top_srcdir=$ac_top_builddir_sub
7407 ac_abs_top_srcdir=$ac_pwd ;;
7408 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00007409 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04007410 ac_top_srcdir=$srcdir
7411 ac_abs_top_srcdir=$srcdir ;;
7412 *) # Relative name.
7413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7414 ac_top_srcdir=$ac_top_build_prefix$srcdir
7415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007416esac
jfigusc7e66e32013-05-08 11:32:55 -04007417ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00007418
Cullen Jennings235513a2005-09-21 22:51:36 +00007419
jfigusc7e66e32013-05-08 11:32:55 -04007420 case $ac_mode in
7421 :F)
7422 #
7423 # CONFIG_FILE
7424 #
Cullen Jennings235513a2005-09-21 22:51:36 +00007425
David McGrewb67061f2005-09-28 14:23:06 +00007426 case $INSTALL in
7427 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04007428 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00007429 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007430_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007431
7432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7433# If the template does not know about datarootdir, expand it.
7434# FIXME: This hack should be removed a few years after 2.60.
7435ac_datarootdir_hack=; ac_datarootdir_seen=
7436ac_sed_dataroot='
7437/datarootdir/ {
7438 p
7439 q
7440}
7441/@datadir@/p
7442/@docdir@/p
7443/@infodir@/p
7444/@localedir@/p
7445/@mandir@/p'
7446case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7447*datarootdir*) ac_datarootdir_seen=yes;;
7448*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7450$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7451_ACEOF
7452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7453 ac_datarootdir_hack='
7454 s&@datadir@&$datadir&g
7455 s&@docdir@&$docdir&g
7456 s&@infodir@&$infodir&g
7457 s&@localedir@&$localedir&g
7458 s&@mandir@&$mandir&g
7459 s&\\\${datarootdir}&$datarootdir&g' ;;
7460esac
7461_ACEOF
7462
7463# Neutralize VPATH when `$srcdir' = `.'.
7464# Shell code in configure.ac might set extrasub.
7465# FIXME: do we really want to maintain this feature?
7466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7467ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00007468$extrasub
7469_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007471:t
7472/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04007473s|@configure_input@|$ac_sed_conf_input|;t t
7474s&@top_builddir@&$ac_top_builddir_sub&;t t
7475s&@top_build_prefix@&$ac_top_build_prefix&;t t
7476s&@srcdir@&$ac_srcdir&;t t
7477s&@abs_srcdir@&$ac_abs_srcdir&;t t
7478s&@top_srcdir@&$ac_top_srcdir&;t t
7479s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7480s&@builddir@&$ac_builddir&;t t
7481s&@abs_builddir@&$ac_abs_builddir&;t t
7482s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7483s&@INSTALL@&$ac_INSTALL&;t t
7484$ac_datarootdir_hack
7485"
7486eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7487 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00007488
jfigusc7e66e32013-05-08 11:32:55 -04007489test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7490 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7491 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7492 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7494which seems to be undefined. Please make sure it is defined" >&5
7495$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7496which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007497
jfigusc7e66e32013-05-08 11:32:55 -04007498 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007499 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04007500 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7501 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7502 esac \
7503 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7504 ;;
7505 :H)
7506 #
7507 # CONFIG_HEADER
7508 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007509 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04007510 {
7511 $as_echo "/* $configure_input */" \
7512 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7513 } >"$ac_tmp/config.h" \
7514 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7515 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7517$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007518 else
jfigusc7e66e32013-05-08 11:32:55 -04007519 rm -f "$ac_file"
7520 mv "$ac_tmp/config.h" "$ac_file" \
7521 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007522 fi
7523 else
jfigusc7e66e32013-05-08 11:32:55 -04007524 $as_echo "/* $configure_input */" \
7525 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7526 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007527 fi
jfigusc7e66e32013-05-08 11:32:55 -04007528 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007529
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007530
jfigusc7e66e32013-05-08 11:32:55 -04007531 esac
7532
7533done # for ac_tag
7534
7535
7536as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007537_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007538ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04007539
jfigusc7e66e32013-05-08 11:32:55 -04007540test $ac_write_fail = 0 ||
7541 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7542
Cullen Jennings235513a2005-09-21 22:51:36 +00007543
7544# configure is writing to config.log, and then calls config.status.
7545# config.status does its own redirection, appending to config.log.
7546# Unfortunately, on DOS this fails, as config.log is still kept open
7547# by configure, so config.status won't be able to write to it; its
7548# output is simply discarded. So we exec the FD to /dev/null,
7549# effectively closing config.log, so it can be properly (re)opened and
7550# appended to by config.status. When coming back to configure, we
7551# need to make the FD available again.
7552if test "$no_create" != yes; then
7553 ac_cs_success=:
7554 ac_config_status_args=
7555 test "$silent" = yes &&
7556 ac_config_status_args="$ac_config_status_args --quiet"
7557 exec 5>/dev/null
7558 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7559 exec 5>>config.log
7560 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7561 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04007562 $ac_cs_success || as_fn_exit 1
7563fi
7564if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7566$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007567fi
7568
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00007569
7570# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04007571as_dir=crypto/cipher; as_fn_mkdir_p
7572as_dir=crypto/hash; as_fn_mkdir_p
7573as_dir=crypto/kernel; as_fn_mkdir_p
7574as_dir=crypto/math; as_fn_mkdir_p
7575as_dir=crypto/replay; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007576as_dir=crypto/test; as_fn_mkdir_p
7577as_dir=doc; as_fn_mkdir_p
7578as_dir=srtp; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007579as_dir=test; as_fn_mkdir_p