blob: ef3cb25e6b2c217ab061012015c8ff0fbc3eb4bd [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
jfigusc7e66e32013-05-08 11:32:55 -04003# Generated by GNU Autoconf 2.69.
Cullen Jennings235513a2005-09-21 22:51:36 +00004#
jfigusc7e66e32013-05-08 11:32:55 -04005#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
Cullen Jennings235513a2005-09-21 22:51:36 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
jfigusc7e66e32013-05-08 11:32:55 -040011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +000014
jfigusc7e66e32013-05-08 11:32:55 -040015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +000018 emulate sh
19 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -040020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +000021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -040023 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +000024else
jfigusc7e66e32013-05-08 11:32:55 -040025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
Cullen Jennings235513a2005-09-21 22:51:36 +000031fi
32
33
jfigusc7e66e32013-05-08 11:32:55 -040034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
Cullen Jennings235513a2005-09-21 22:51:36 +0000122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -0400127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -0400131
jfigusc7e66e32013-05-08 11:32:55 -0400132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000421 as_expr=expr
422else
423 as_expr=false
424fi
425
jfigusc7e66e32013-05-08 11:32:55 -0400426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000427 as_basename=basename
428else
429 as_basename=false
430fi
431
jfigusc7e66e32013-05-08 11:32:55 -0400432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000437
jfigusc7e66e32013-05-08 11:32:55 -0400438as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +0000439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -0400441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000456
Cullen Jennings235513a2005-09-21 22:51:36 +0000457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
Cullen Jennings235513a2005-09-21 22:51:36 +0000464
jfigusc7e66e32013-05-08 11:32:55 -0400465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
Cullen Jennings235513a2005-09-21 22:51:36 +0000474 sed '
jfigusc7e66e32013-05-08 11:32:55 -0400475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
Cullen Jennings235513a2005-09-21 22:51:36 +0000479 N
jfigusc7e66e32013-05-08 11:32:55 -0400480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Cullen Jennings235513a2005-09-21 22:51:36 +0000482 t loop
jfigusc7e66e32013-05-08 11:32:55 -0400483 s/-\n.*//
Cullen Jennings235513a2005-09-21 22:51:36 +0000484 ' >$as_me.lineno &&
jfigusc7e66e32013-05-08 11:32:55 -0400485 chmod +x "$as_me.lineno" ||
486 { $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 +0000487
jfigusc7e66e32013-05-08 11:32:55 -0400488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
Cullen Jennings235513a2005-09-21 22:51:36 +0000492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
jfigusc7e66e32013-05-08 11:32:55 -0400494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
Cullen Jennings235513a2005-09-21 22:51:36 +0000496 # Exit status is that of the last command.
497 exit
498}
499
jfigusc7e66e32013-05-08 11:32:55 -0400500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000511esac
512
Cullen Jennings235513a2005-09-21 22:51:36 +0000513rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -0400514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -0600522 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -0400523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000533 fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000534else
jfigusc7e66e32013-05-08 11:32:55 -0400535 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000536fi
jfigusc7e66e32013-05-08 11:32:55 -0400537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +0000539
540if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -0400541 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +0000542else
David McGrewfec49dd2005-09-23 19:34:11 +0000543 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +0000544 as_mkdir_p=false
545fi
546
jfigusc7e66e32013-05-08 11:32:55 -0400547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +0000549
550# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +0000551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000552
553# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +0000554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000555
556
jfigusc7e66e32013-05-08 11:32:55 -0400557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
Cullen Jennings235513a2005-09-21 22:51:36 +0000559
560# Name of the host.
jfigusc7e66e32013-05-08 11:32:55 -0400561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Cullen Jennings235513a2005-09-21 22:51:36 +0000562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
Cullen Jennings235513a2005-09-21 22:51:36 +0000565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
jfigusc7e66e32013-05-08 11:32:55 -0400569ac_clean_files=
Cullen Jennings235513a2005-09-21 22:51:36 +0000570ac_config_libobj_dir=.
jfigusc7e66e32013-05-08 11:32:55 -0400571LIBOBJS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
jfigusc7e66e32013-05-08 11:32:55 -0400583PACKAGE_URL=
Cullen Jennings235513a2005-09-21 22:51:36 +0000584
585ac_unique_file="srtp"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -0400589#ifdef HAVE_SYS_TYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000590# include <sys/types.h>
591#endif
jfigusc7e66e32013-05-08 11:32:55 -0400592#ifdef HAVE_SYS_STAT_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000593# include <sys/stat.h>
594#endif
jfigusc7e66e32013-05-08 11:32:55 -0400595#ifdef STDC_HEADERS
Cullen Jennings235513a2005-09-21 22:51:36 +0000596# include <stdlib.h>
597# include <stddef.h>
598#else
jfigusc7e66e32013-05-08 11:32:55 -0400599# ifdef HAVE_STDLIB_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000600# include <stdlib.h>
601# endif
602#endif
jfigusc7e66e32013-05-08 11:32:55 -0400603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000605# include <memory.h>
606# endif
607# include <string.h>
608#endif
jfigusc7e66e32013-05-08 11:32:55 -0400609#ifdef HAVE_STRINGS_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000610# include <strings.h>
611#endif
jfigusc7e66e32013-05-08 11:32:55 -0400612#ifdef HAVE_INTTYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000613# include <inttypes.h>
Cullen Jennings235513a2005-09-21 22:51:36 +0000614#endif
jfigusc7e66e32013-05-08 11:32:55 -0400615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000619# include <unistd.h>
620#endif"
621
jfigusc7e66e32013-05-08 11:32:55 -0400622ac_subst_vars='LTLIBOBJS
623LIBOBJS
624GDOI_OBJS
625HMAC_OBJS
626RNG_EXTRA_OBJS
627RNG_OBJS
628AES_ICM_OBJS
629USE_OPENSSL
630EXE
631host_os
632host_vendor
633host_cpu
634host
635build_os
636build_vendor
637build_cpu
638build
639EGREP
640GREP
641CPP
642INSTALL_DATA
643INSTALL_SCRIPT
644INSTALL_PROGRAM
645OBJEXT
646EXEEXT
647ac_ct_CC
648CPPFLAGS
649LDFLAGS
650CFLAGS
651CC
652RANLIB
653target_alias
654host_alias
655build_alias
656LIBS
657ECHO_T
658ECHO_N
659ECHO_C
660DEFS
661mandir
662localedir
663libdir
664psdir
665pdfdir
666dvidir
667htmldir
668infodir
669docdir
670oldincludedir
671includedir
672localstatedir
673sharedstatedir
674sysconfdir
675datadir
676datarootdir
677libexecdir
678sbindir
679bindir
680program_transform_name
681prefix
682exec_prefix
683PACKAGE_URL
684PACKAGE_BUGREPORT
685PACKAGE_STRING
686PACKAGE_VERSION
687PACKAGE_TARNAME
688PACKAGE_NAME
689PATH_SEPARATOR
690SHELL'
Cullen Jennings235513a2005-09-21 22:51:36 +0000691ac_subst_files=''
jfigusc7e66e32013-05-08 11:32:55 -0400692ac_user_opts='
693enable_option_checking
694enable_kernel_linux
695enable_debug
696enable_generic_aesicm
697enable_openssl
698enable_syslog
699enable_stdout
700enable_console
701enable_gdoi
702'
703 ac_precious_vars='build_alias
704host_alias
705target_alias
706CC
707CFLAGS
708LDFLAGS
709LIBS
710CPPFLAGS
711CPP'
712
Cullen Jennings235513a2005-09-21 22:51:36 +0000713
714# Initialize some variables set by options.
715ac_init_help=
716ac_init_version=false
jfigusc7e66e32013-05-08 11:32:55 -0400717ac_unrecognized_opts=
718ac_unrecognized_sep=
Cullen Jennings235513a2005-09-21 22:51:36 +0000719# The variables have the same names as the options, with
720# dashes changed to underlines.
721cache_file=/dev/null
722exec_prefix=NONE
723no_create=
724no_recursion=
725prefix=NONE
726program_prefix=NONE
727program_suffix=NONE
728program_transform_name=s,x,x,
729silent=
730site=
731srcdir=
732verbose=
733x_includes=NONE
734x_libraries=NONE
735
736# Installation directory options.
737# These are left unexpanded so users can "make install exec_prefix=/foo"
738# and all the variables that are supposed to be based on exec_prefix
739# by default will actually change.
740# Use braces instead of parens because sh, perl, etc. also accept them.
jfigusc7e66e32013-05-08 11:32:55 -0400741# (The list follows the same order as the GNU Coding Standards.)
Cullen Jennings235513a2005-09-21 22:51:36 +0000742bindir='${exec_prefix}/bin'
743sbindir='${exec_prefix}/sbin'
744libexecdir='${exec_prefix}/libexec'
jfigusc7e66e32013-05-08 11:32:55 -0400745datarootdir='${prefix}/share'
746datadir='${datarootdir}'
Cullen Jennings235513a2005-09-21 22:51:36 +0000747sysconfdir='${prefix}/etc'
748sharedstatedir='${prefix}/com'
749localstatedir='${prefix}/var'
Cullen Jennings235513a2005-09-21 22:51:36 +0000750includedir='${prefix}/include'
751oldincludedir='/usr/include'
jfigusc7e66e32013-05-08 11:32:55 -0400752docdir='${datarootdir}/doc/${PACKAGE}'
753infodir='${datarootdir}/info'
754htmldir='${docdir}'
755dvidir='${docdir}'
756pdfdir='${docdir}'
757psdir='${docdir}'
758libdir='${exec_prefix}/lib'
759localedir='${datarootdir}/locale'
760mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000761
762ac_prev=
jfigusc7e66e32013-05-08 11:32:55 -0400763ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000764for ac_option
765do
766 # If the previous option needs an argument, assign it.
767 if test -n "$ac_prev"; then
jfigusc7e66e32013-05-08 11:32:55 -0400768 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000769 ac_prev=
770 continue
771 fi
772
jfigusc7e66e32013-05-08 11:32:55 -0400773 case $ac_option in
774 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
775 *=) ac_optarg= ;;
776 *) ac_optarg=yes ;;
777 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000778
779 # Accept the important Cygnus configure options, so we can diagnose typos.
780
jfigusc7e66e32013-05-08 11:32:55 -0400781 case $ac_dashdash$ac_option in
782 --)
783 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000784
785 -bindir | --bindir | --bindi | --bind | --bin | --bi)
786 ac_prev=bindir ;;
787 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
788 bindir=$ac_optarg ;;
789
790 -build | --build | --buil | --bui | --bu)
791 ac_prev=build_alias ;;
792 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
793 build_alias=$ac_optarg ;;
794
795 -cache-file | --cache-file | --cache-fil | --cache-fi \
796 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
797 ac_prev=cache_file ;;
798 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
799 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
800 cache_file=$ac_optarg ;;
801
802 --config-cache | -C)
803 cache_file=config.cache ;;
804
jfigusc7e66e32013-05-08 11:32:55 -0400805 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000806 ac_prev=datadir ;;
jfigusc7e66e32013-05-08 11:32:55 -0400807 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000808 datadir=$ac_optarg ;;
809
jfigusc7e66e32013-05-08 11:32:55 -0400810 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
811 | --dataroo | --dataro | --datar)
812 ac_prev=datarootdir ;;
813 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
814 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
815 datarootdir=$ac_optarg ;;
816
Cullen Jennings235513a2005-09-21 22:51:36 +0000817 -disable-* | --disable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400818 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000819 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400820 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
821 as_fn_error $? "invalid feature name: $ac_useropt"
822 ac_useropt_orig=$ac_useropt
823 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
824 case $ac_user_opts in
825 *"
826"enable_$ac_useropt"
827"*) ;;
828 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
829 ac_unrecognized_sep=', ';;
830 esac
831 eval enable_$ac_useropt=no ;;
832
833 -docdir | --docdir | --docdi | --doc | --do)
834 ac_prev=docdir ;;
835 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
836 docdir=$ac_optarg ;;
837
838 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
839 ac_prev=dvidir ;;
840 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
841 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000842
843 -enable-* | --enable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400844 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000845 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400846 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
847 as_fn_error $? "invalid feature name: $ac_useropt"
848 ac_useropt_orig=$ac_useropt
849 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
850 case $ac_user_opts in
851 *"
852"enable_$ac_useropt"
853"*) ;;
854 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
855 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000856 esac
jfigusc7e66e32013-05-08 11:32:55 -0400857 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000858
859 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
860 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
861 | --exec | --exe | --ex)
862 ac_prev=exec_prefix ;;
863 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
864 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
865 | --exec=* | --exe=* | --ex=*)
866 exec_prefix=$ac_optarg ;;
867
868 -gas | --gas | --ga | --g)
869 # Obsolete; use --with-gas.
870 with_gas=yes ;;
871
872 -help | --help | --hel | --he | -h)
873 ac_init_help=long ;;
874 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
875 ac_init_help=recursive ;;
876 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
877 ac_init_help=short ;;
878
879 -host | --host | --hos | --ho)
880 ac_prev=host_alias ;;
881 -host=* | --host=* | --hos=* | --ho=*)
882 host_alias=$ac_optarg ;;
883
jfigusc7e66e32013-05-08 11:32:55 -0400884 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
885 ac_prev=htmldir ;;
886 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
887 | --ht=*)
888 htmldir=$ac_optarg ;;
889
Cullen Jennings235513a2005-09-21 22:51:36 +0000890 -includedir | --includedir | --includedi | --included | --include \
891 | --includ | --inclu | --incl | --inc)
892 ac_prev=includedir ;;
893 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
894 | --includ=* | --inclu=* | --incl=* | --inc=*)
895 includedir=$ac_optarg ;;
896
897 -infodir | --infodir | --infodi | --infod | --info | --inf)
898 ac_prev=infodir ;;
899 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
900 infodir=$ac_optarg ;;
901
902 -libdir | --libdir | --libdi | --libd)
903 ac_prev=libdir ;;
904 -libdir=* | --libdir=* | --libdi=* | --libd=*)
905 libdir=$ac_optarg ;;
906
907 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
908 | --libexe | --libex | --libe)
909 ac_prev=libexecdir ;;
910 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
911 | --libexe=* | --libex=* | --libe=*)
912 libexecdir=$ac_optarg ;;
913
jfigusc7e66e32013-05-08 11:32:55 -0400914 -localedir | --localedir | --localedi | --localed | --locale)
915 ac_prev=localedir ;;
916 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
917 localedir=$ac_optarg ;;
918
Cullen Jennings235513a2005-09-21 22:51:36 +0000919 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusc7e66e32013-05-08 11:32:55 -0400920 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000921 ac_prev=localstatedir ;;
922 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusc7e66e32013-05-08 11:32:55 -0400923 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000924 localstatedir=$ac_optarg ;;
925
926 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
927 ac_prev=mandir ;;
928 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
929 mandir=$ac_optarg ;;
930
931 -nfp | --nfp | --nf)
932 # Obsolete; use --without-fp.
933 with_fp=no ;;
934
935 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936 | --no-cr | --no-c | -n)
937 no_create=yes ;;
938
939 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
940 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
941 no_recursion=yes ;;
942
943 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
944 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
945 | --oldin | --oldi | --old | --ol | --o)
946 ac_prev=oldincludedir ;;
947 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
948 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
949 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
950 oldincludedir=$ac_optarg ;;
951
952 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
953 ac_prev=prefix ;;
954 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
955 prefix=$ac_optarg ;;
956
957 -program-prefix | --program-prefix | --program-prefi | --program-pref \
958 | --program-pre | --program-pr | --program-p)
959 ac_prev=program_prefix ;;
960 -program-prefix=* | --program-prefix=* | --program-prefi=* \
961 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
962 program_prefix=$ac_optarg ;;
963
964 -program-suffix | --program-suffix | --program-suffi | --program-suff \
965 | --program-suf | --program-su | --program-s)
966 ac_prev=program_suffix ;;
967 -program-suffix=* | --program-suffix=* | --program-suffi=* \
968 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
969 program_suffix=$ac_optarg ;;
970
971 -program-transform-name | --program-transform-name \
972 | --program-transform-nam | --program-transform-na \
973 | --program-transform-n | --program-transform- \
974 | --program-transform | --program-transfor \
975 | --program-transfo | --program-transf \
976 | --program-trans | --program-tran \
977 | --progr-tra | --program-tr | --program-t)
978 ac_prev=program_transform_name ;;
979 -program-transform-name=* | --program-transform-name=* \
980 | --program-transform-nam=* | --program-transform-na=* \
981 | --program-transform-n=* | --program-transform-=* \
982 | --program-transform=* | --program-transfor=* \
983 | --program-transfo=* | --program-transf=* \
984 | --program-trans=* | --program-tran=* \
985 | --progr-tra=* | --program-tr=* | --program-t=*)
986 program_transform_name=$ac_optarg ;;
987
jfigusc7e66e32013-05-08 11:32:55 -0400988 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
989 ac_prev=pdfdir ;;
990 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
991 pdfdir=$ac_optarg ;;
992
993 -psdir | --psdir | --psdi | --psd | --ps)
994 ac_prev=psdir ;;
995 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
996 psdir=$ac_optarg ;;
997
Cullen Jennings235513a2005-09-21 22:51:36 +0000998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
999 | -silent | --silent | --silen | --sile | --sil)
1000 silent=yes ;;
1001
1002 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1003 ac_prev=sbindir ;;
1004 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1005 | --sbi=* | --sb=*)
1006 sbindir=$ac_optarg ;;
1007
1008 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1009 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1010 | --sharedst | --shareds | --shared | --share | --shar \
1011 | --sha | --sh)
1012 ac_prev=sharedstatedir ;;
1013 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1014 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1015 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1016 | --sha=* | --sh=*)
1017 sharedstatedir=$ac_optarg ;;
1018
1019 -site | --site | --sit)
1020 ac_prev=site ;;
1021 -site=* | --site=* | --sit=*)
1022 site=$ac_optarg ;;
1023
1024 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1025 ac_prev=srcdir ;;
1026 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1027 srcdir=$ac_optarg ;;
1028
1029 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1030 | --syscon | --sysco | --sysc | --sys | --sy)
1031 ac_prev=sysconfdir ;;
1032 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1033 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1034 sysconfdir=$ac_optarg ;;
1035
1036 -target | --target | --targe | --targ | --tar | --ta | --t)
1037 ac_prev=target_alias ;;
1038 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1039 target_alias=$ac_optarg ;;
1040
1041 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1042 verbose=yes ;;
1043
1044 -version | --version | --versio | --versi | --vers | -V)
1045 ac_init_version=: ;;
1046
1047 -with-* | --with-*)
jfigusc7e66e32013-05-08 11:32:55 -04001048 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001049 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error $? "invalid package name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1055 *"
1056"with_$ac_useropt"
1057"*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001060 esac
jfigusc7e66e32013-05-08 11:32:55 -04001061 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001062
1063 -without-* | --without-*)
jfigusc7e66e32013-05-08 11:32:55 -04001064 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001065 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 as_fn_error $? "invalid package name: $ac_useropt"
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1071 *"
1072"with_$ac_useropt"
1073"*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001078
1079 --x)
1080 # Obsolete; use --with-x.
1081 with_x=yes ;;
1082
1083 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084 | --x-incl | --x-inc | --x-in | --x-i)
1085 ac_prev=x_includes ;;
1086 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1088 x_includes=$ac_optarg ;;
1089
1090 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092 ac_prev=x_libraries ;;
1093 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1095 x_libraries=$ac_optarg ;;
1096
jfigusc7e66e32013-05-08 11:32:55 -04001097 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1098Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001099 ;;
1100
1101 *=*)
1102 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1103 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001104 case $ac_envvar in #(
1105 '' | [0-9]* | *[!_$as_cr_alnum]* )
1106 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1107 esac
1108 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001109 export $ac_envvar ;;
1110
1111 *)
1112 # FIXME: should be removed in autoconf 3.0.
jfigusc7e66e32013-05-08 11:32:55 -04001113 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusc7e66e32013-05-08 11:32:55 -04001115 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001117 ;;
1118
1119 esac
1120done
1121
1122if test -n "$ac_prev"; then
1123 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusc7e66e32013-05-08 11:32:55 -04001124 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001125fi
1126
jfigusc7e66e32013-05-08 11:32:55 -04001127if test -n "$ac_unrecognized_opts"; then
1128 case $enable_option_checking in
1129 no) ;;
1130 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1131 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001132 esac
jfigusc7e66e32013-05-08 11:32:55 -04001133fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001134
jfigusc7e66e32013-05-08 11:32:55 -04001135# Check all directory arguments for consistency.
1136for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137 datadir sysconfdir sharedstatedir localstatedir includedir \
1138 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139 libdir localedir mandir
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001140do
jfigusc7e66e32013-05-08 11:32:55 -04001141 eval ac_val=\$$ac_var
1142 # Remove trailing slashes.
jfigusa14b5a02013-03-29 12:24:12 -04001143 case $ac_val in
jfigusc7e66e32013-05-08 11:32:55 -04001144 */ )
1145 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1146 eval $ac_var=\$ac_val;;
jfigusa14b5a02013-03-29 12:24:12 -04001147 esac
jfigusc7e66e32013-05-08 11:32:55 -04001148 # Be sure to have absolute directory names.
1149 case $ac_val in
1150 [\\/$]* | ?:[\\/]* ) continue;;
1151 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1152 esac
1153 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001154done
1155
1156# There might be people who depend on the old broken behavior: `$host'
1157# used to hold the argument of --host etc.
1158# FIXME: To remove some day.
1159build=$build_alias
1160host=$host_alias
1161target=$target_alias
1162
1163# FIXME: To remove some day.
1164if test "x$host_alias" != x; then
1165 if test "x$build_alias" = x; then
1166 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001167 elif test "x$build_alias" != "x$host_alias"; then
1168 cross_compiling=yes
1169 fi
1170fi
1171
1172ac_tool_prefix=
1173test -n "$host_alias" && ac_tool_prefix=$host_alias-
1174
1175test "$silent" = yes && exec 6>/dev/null
1176
1177
jfigusc7e66e32013-05-08 11:32:55 -04001178ac_pwd=`pwd` && test -n "$ac_pwd" &&
1179ac_ls_di=`ls -di .` &&
1180ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1181 as_fn_error $? "working directory cannot be determined"
1182test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1183 as_fn_error $? "pwd does not report name of working directory"
1184
1185
Cullen Jennings235513a2005-09-21 22:51:36 +00001186# Find the source files, if location was not specified.
1187if test -z "$srcdir"; then
1188 ac_srcdir_defaulted=yes
jfigusc7e66e32013-05-08 11:32:55 -04001189 # Try the directory containing this script, then the parent directory.
1190 ac_confdir=`$as_dirname -- "$as_myself" ||
1191$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1192 X"$as_myself" : 'X\(//\)[^/]' \| \
1193 X"$as_myself" : 'X\(//\)$' \| \
1194 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1195$as_echo X"$as_myself" |
1196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1197 s//\1/
1198 q
1199 }
1200 /^X\(\/\/\)[^/].*/{
1201 s//\1/
1202 q
1203 }
1204 /^X\(\/\/\)$/{
1205 s//\1/
1206 q
1207 }
1208 /^X\(\/\).*/{
1209 s//\1/
1210 q
1211 }
1212 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001213 srcdir=$ac_confdir
jfigusc7e66e32013-05-08 11:32:55 -04001214 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001215 srcdir=..
1216 fi
1217else
1218 ac_srcdir_defaulted=no
1219fi
jfigusc7e66e32013-05-08 11:32:55 -04001220if test ! -r "$srcdir/$ac_unique_file"; then
1221 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1222 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001223fi
jfigusc7e66e32013-05-08 11:32:55 -04001224ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1225ac_abs_confdir=`(
1226 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1227 pwd)`
1228# When building in place, set srcdir=.
1229if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 srcdir=.
1231fi
1232# Remove unnecessary trailing slashes from srcdir.
1233# Double slashes in file names in object file debugging info
1234# mess up M-x gdb in Emacs.
1235case $srcdir in
1236*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237esac
1238for ac_var in $ac_precious_vars; do
1239 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_env_${ac_var}_value=\$${ac_var}
1241 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1243done
Cullen Jennings235513a2005-09-21 22:51:36 +00001244
1245#
1246# Report the --help message.
1247#
1248if test "$ac_init_help" = "long"; then
1249 # Omit some internal or obsolete options to make the list less imposing.
1250 # This message is too long to be a string in the A/UX 3.1 sh.
1251 cat <<_ACEOF
1252\`configure' configures this package to adapt to many kinds of systems.
1253
1254Usage: $0 [OPTION]... [VAR=VALUE]...
1255
1256To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257VAR=VALUE. See below for descriptions of some of the useful variables.
1258
1259Defaults for the options are specified in brackets.
1260
1261Configuration:
1262 -h, --help display this help and exit
1263 --help=short display options specific to this package
1264 --help=recursive display the short help of all the included packages
1265 -V, --version display version information and exit
jfigusc7e66e32013-05-08 11:32:55 -04001266 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001267 --cache-file=FILE cache test results in FILE [disabled]
1268 -C, --config-cache alias for \`--cache-file=config.cache'
1269 -n, --no-create do not create output files
1270 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271
Cullen Jennings235513a2005-09-21 22:51:36 +00001272Installation directories:
1273 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001274 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001276 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001277
1278By default, \`make install' will install all the files in
1279\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281for instance \`--prefix=\$HOME'.
1282
1283For better control, use the options below.
1284
1285Fine tuning of the installation directories:
jfigusc7e66e32013-05-08 11:32:55 -04001286 --bindir=DIR user executables [EPREFIX/bin]
1287 --sbindir=DIR system admin executables [EPREFIX/sbin]
1288 --libexecdir=DIR program executables [EPREFIX/libexec]
1289 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292 --libdir=DIR object code libraries [EPREFIX/lib]
1293 --includedir=DIR C header files [PREFIX/include]
1294 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1295 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297 --infodir=DIR info documentation [DATAROOTDIR/info]
1298 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299 --mandir=DIR man documentation [DATAROOTDIR/man]
1300 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1301 --htmldir=DIR html documentation [DOCDIR]
1302 --dvidir=DIR dvi documentation [DOCDIR]
1303 --pdfdir=DIR pdf documentation [DOCDIR]
1304 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001305_ACEOF
1306
1307 cat <<\_ACEOF
1308
1309System types:
1310 --build=BUILD configure for building on BUILD [guessed]
1311 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1312_ACEOF
1313fi
1314
1315if test -n "$ac_init_help"; then
1316
1317 cat <<\_ACEOF
1318
1319Optional Features:
jfigusc7e66e32013-05-08 11:32:55 -04001320 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001321 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1322 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Marcus Sundberg64536cc2005-10-03 15:23:13 +00001323 --enable-kernel-linux build library to run in Linux kernel context
David McGrewb67061f2005-09-28 14:23:06 +00001324 --disable-debug do not compile in dynamic debugging system
1325 --enable-generic-aesicm compile in changes for ISMAcryp
jfigusc7e66e32013-05-08 11:32:55 -04001326 --enable-openssl compile in OpenSSL crypto engine
David McGrewb67061f2005-09-28 14:23:06 +00001327 --enable-syslog use syslog for error reporting
1328 --disable-stdout don't use stdout for error reporting
1329 --enable-console use /dev/console for error reporting
1330 --enable-gdoi enable GDOI key management
Cullen Jennings235513a2005-09-21 22:51:36 +00001331
1332Some influential environment variables:
1333 CC C compiler command
1334 CFLAGS C compiler flags
1335 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1336 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001337 LIBS libraries to pass to the linker, e.g. -l<library>
1338 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1339 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001340 CPP C preprocessor
1341
1342Use these variables to override the choices made by `configure' or to help
1343it to find libraries and programs with nonstandard names/locations.
1344
jfigusc7e66e32013-05-08 11:32:55 -04001345Report bugs to the package provider.
Cullen Jennings235513a2005-09-21 22:51:36 +00001346_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001347ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001348fi
1349
1350if test "$ac_init_help" = "recursive"; then
1351 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001352 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001353 test -d "$ac_dir" ||
1354 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1355 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001356 ac_builddir=.
1357
jfigusc7e66e32013-05-08 11:32:55 -04001358case "$ac_dir" in
1359.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1360*)
1361 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1362 # A ".." for each directory in $ac_dir_suffix.
1363 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1364 case $ac_top_builddir_sub in
1365 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1366 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1367 esac ;;
1368esac
1369ac_abs_top_builddir=$ac_pwd
1370ac_abs_builddir=$ac_pwd$ac_dir_suffix
1371# for backward compatibility:
1372ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001373
1374case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001375 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001376 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001377 ac_top_srcdir=$ac_top_builddir_sub
1378 ac_abs_top_srcdir=$ac_pwd ;;
1379 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001380 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001381 ac_top_srcdir=$srcdir
1382 ac_abs_top_srcdir=$srcdir ;;
1383 *) # Relative name.
1384 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1385 ac_top_srcdir=$ac_top_build_prefix$srcdir
1386 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001387esac
jfigusc7e66e32013-05-08 11:32:55 -04001388ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001389
jfigusc7e66e32013-05-08 11:32:55 -04001390 cd "$ac_dir" || { ac_status=$?; continue; }
1391 # Check for guested configure.
1392 if test -f "$ac_srcdir/configure.gnu"; then
1393 echo &&
1394 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1395 elif test -f "$ac_srcdir/configure"; then
1396 echo &&
1397 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001398 else
jfigusc7e66e32013-05-08 11:32:55 -04001399 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1400 fi || ac_status=$?
1401 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001402 done
1403fi
1404
jfigusc7e66e32013-05-08 11:32:55 -04001405test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001406if $ac_init_version; then
1407 cat <<\_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001408configure
1409generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001410
jfigusc7e66e32013-05-08 11:32:55 -04001411Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001412This configure script is free software; the Free Software Foundation
1413gives unlimited permission to copy, distribute and modify it.
1414_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001415 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001416fi
jfigusc7e66e32013-05-08 11:32:55 -04001417
1418## ------------------------ ##
1419## Autoconf initialization. ##
1420## ------------------------ ##
1421
1422# ac_fn_c_try_compile LINENO
1423# --------------------------
1424# Try to compile conftest.$ac_ext, and return whether this succeeded.
1425ac_fn_c_try_compile ()
1426{
1427 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1428 rm -f conftest.$ac_objext
1429 if { { ac_try="$ac_compile"
1430case "(($ac_try" in
1431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1432 *) ac_try_echo=$ac_try;;
1433esac
1434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1435$as_echo "$ac_try_echo"; } >&5
1436 (eval "$ac_compile") 2>conftest.err
1437 ac_status=$?
1438 if test -s conftest.err; then
1439 grep -v '^ *+' conftest.err >conftest.er1
1440 cat conftest.er1 >&5
1441 mv -f conftest.er1 conftest.err
1442 fi
1443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1444 test $ac_status = 0; } && {
1445 test -z "$ac_c_werror_flag" ||
1446 test ! -s conftest.err
1447 } && test -s conftest.$ac_objext; then :
1448 ac_retval=0
1449else
1450 $as_echo "$as_me: failed program was:" >&5
1451sed 's/^/| /' conftest.$ac_ext >&5
1452
1453 ac_retval=1
1454fi
1455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1456 as_fn_set_status $ac_retval
1457
1458} # ac_fn_c_try_compile
1459
1460# ac_fn_c_try_run LINENO
1461# ----------------------
1462# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1463# that executables *can* be run.
1464ac_fn_c_try_run ()
1465{
1466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1467 if { { ac_try="$ac_link"
1468case "(($ac_try" in
1469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1470 *) ac_try_echo=$ac_try;;
1471esac
1472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1473$as_echo "$ac_try_echo"; } >&5
1474 (eval "$ac_link") 2>&5
1475 ac_status=$?
1476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1477 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1478 { { case "(($ac_try" in
1479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1480 *) ac_try_echo=$ac_try;;
1481esac
1482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1483$as_echo "$ac_try_echo"; } >&5
1484 (eval "$ac_try") 2>&5
1485 ac_status=$?
1486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1487 test $ac_status = 0; }; }; then :
1488 ac_retval=0
1489else
1490 $as_echo "$as_me: program exited with status $ac_status" >&5
1491 $as_echo "$as_me: failed program was:" >&5
1492sed 's/^/| /' conftest.$ac_ext >&5
1493
1494 ac_retval=$ac_status
1495fi
1496 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1497 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1498 as_fn_set_status $ac_retval
1499
1500} # ac_fn_c_try_run
1501
1502# ac_fn_c_try_cpp LINENO
1503# ----------------------
1504# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1505ac_fn_c_try_cpp ()
1506{
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 if { { ac_try="$ac_cpp conftest.$ac_ext"
1509case "(($ac_try" in
1510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1511 *) ac_try_echo=$ac_try;;
1512esac
1513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1514$as_echo "$ac_try_echo"; } >&5
1515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1516 ac_status=$?
1517 if test -s conftest.err; then
1518 grep -v '^ *+' conftest.err >conftest.er1
1519 cat conftest.er1 >&5
1520 mv -f conftest.er1 conftest.err
1521 fi
1522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1523 test $ac_status = 0; } > conftest.i && {
1524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1525 test ! -s conftest.err
1526 }; then :
1527 ac_retval=0
1528else
1529 $as_echo "$as_me: failed program was:" >&5
1530sed 's/^/| /' conftest.$ac_ext >&5
1531
1532 ac_retval=1
1533fi
1534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1535 as_fn_set_status $ac_retval
1536
1537} # ac_fn_c_try_cpp
1538
1539# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1540# -------------------------------------------------------
1541# Tests whether HEADER exists and can be compiled using the include files in
1542# INCLUDES, setting the cache variable VAR accordingly.
1543ac_fn_c_check_header_compile ()
1544{
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1547$as_echo_n "checking for $2... " >&6; }
1548if eval \${$3+:} false; then :
1549 $as_echo_n "(cached) " >&6
1550else
1551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1552/* end confdefs.h. */
1553$4
1554#include <$2>
1555_ACEOF
1556if ac_fn_c_try_compile "$LINENO"; then :
1557 eval "$3=yes"
1558else
1559 eval "$3=no"
1560fi
1561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1562fi
1563eval ac_res=\$$3
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1565$as_echo "$ac_res" >&6; }
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567
1568} # ac_fn_c_check_header_compile
1569
1570# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1571# -------------------------------------------------------
1572# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1573# the include files in INCLUDES and setting the cache variable VAR
1574# accordingly.
1575ac_fn_c_check_header_mongrel ()
1576{
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 if eval \${$3+:} false; then :
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1580$as_echo_n "checking for $2... " >&6; }
1581if eval \${$3+:} false; then :
1582 $as_echo_n "(cached) " >&6
1583fi
1584eval ac_res=\$$3
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1586$as_echo "$ac_res" >&6; }
1587else
1588 # Is the header compilable?
1589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1590$as_echo_n "checking $2 usability... " >&6; }
1591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592/* end confdefs.h. */
1593$4
1594#include <$2>
1595_ACEOF
1596if ac_fn_c_try_compile "$LINENO"; then :
1597 ac_header_compiler=yes
1598else
1599 ac_header_compiler=no
1600fi
1601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1603$as_echo "$ac_header_compiler" >&6; }
1604
1605# Is the header present?
1606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1607$as_echo_n "checking $2 presence... " >&6; }
1608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609/* end confdefs.h. */
1610#include <$2>
1611_ACEOF
1612if ac_fn_c_try_cpp "$LINENO"; then :
1613 ac_header_preproc=yes
1614else
1615 ac_header_preproc=no
1616fi
1617rm -f conftest.err conftest.i conftest.$ac_ext
1618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1619$as_echo "$ac_header_preproc" >&6; }
1620
1621# So? What about this header?
1622case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1623 yes:no: )
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1625$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1627$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1628 ;;
1629 no:yes:* )
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1631$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1633$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1635$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1637$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1639$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1640 ;;
1641esac
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643$as_echo_n "checking for $2... " >&6; }
1644if eval \${$3+:} false; then :
1645 $as_echo_n "(cached) " >&6
1646else
1647 eval "$3=\$ac_header_compiler"
1648fi
1649eval ac_res=\$$3
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651$as_echo "$ac_res" >&6; }
1652fi
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654
1655} # ac_fn_c_check_header_mongrel
1656
1657# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1658# -------------------------------------------
1659# Tests whether TYPE exists after having included INCLUDES, setting cache
1660# variable VAR accordingly.
1661ac_fn_c_check_type ()
1662{
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665$as_echo_n "checking for $2... " >&6; }
1666if eval \${$3+:} false; then :
1667 $as_echo_n "(cached) " >&6
1668else
1669 eval "$3=no"
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671/* end confdefs.h. */
1672$4
1673int
1674main ()
1675{
1676if (sizeof ($2))
1677 return 0;
1678 ;
1679 return 0;
1680}
1681_ACEOF
1682if ac_fn_c_try_compile "$LINENO"; then :
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684/* end confdefs.h. */
1685$4
1686int
1687main ()
1688{
1689if (sizeof (($2)))
1690 return 0;
1691 ;
1692 return 0;
1693}
1694_ACEOF
1695if ac_fn_c_try_compile "$LINENO"; then :
1696
1697else
1698 eval "$3=yes"
1699fi
1700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1701fi
1702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1703fi
1704eval ac_res=\$$3
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706$as_echo "$ac_res" >&6; }
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708
1709} # ac_fn_c_check_type
1710
1711# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1712# --------------------------------------------
1713# Tries to find the compile-time value of EXPR in a program that includes
1714# INCLUDES, setting VAR accordingly. Returns whether the value could be
1715# computed
1716ac_fn_c_compute_int ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if test "$cross_compiling" = yes; then
1720 # Depending upon the size, compute the lo and hi bounds.
1721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722/* end confdefs.h. */
1723$4
1724int
1725main ()
1726{
1727static int test_array [1 - 2 * !(($2) >= 0)];
1728test_array [0] = 0;
1729return test_array [0];
1730
1731 ;
1732 return 0;
1733}
1734_ACEOF
1735if ac_fn_c_try_compile "$LINENO"; then :
1736 ac_lo=0 ac_mid=0
1737 while :; do
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h. */
1740$4
1741int
1742main ()
1743{
1744static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1745test_array [0] = 0;
1746return test_array [0];
1747
1748 ;
1749 return 0;
1750}
1751_ACEOF
1752if ac_fn_c_try_compile "$LINENO"; then :
1753 ac_hi=$ac_mid; break
1754else
1755 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1756 if test $ac_lo -le $ac_mid; then
1757 ac_lo= ac_hi=
1758 break
1759 fi
1760 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1761fi
1762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1763 done
1764else
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h. */
1767$4
1768int
1769main ()
1770{
1771static int test_array [1 - 2 * !(($2) < 0)];
1772test_array [0] = 0;
1773return test_array [0];
1774
1775 ;
1776 return 0;
1777}
1778_ACEOF
1779if ac_fn_c_try_compile "$LINENO"; then :
1780 ac_hi=-1 ac_mid=-1
1781 while :; do
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783/* end confdefs.h. */
1784$4
1785int
1786main ()
1787{
1788static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1789test_array [0] = 0;
1790return test_array [0];
1791
1792 ;
1793 return 0;
1794}
1795_ACEOF
1796if ac_fn_c_try_compile "$LINENO"; then :
1797 ac_lo=$ac_mid; break
1798else
1799 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1800 if test $ac_mid -le $ac_hi; then
1801 ac_lo= ac_hi=
1802 break
1803 fi
1804 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1805fi
1806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 done
1808else
1809 ac_lo= ac_hi=
1810fi
1811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812fi
1813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814# Binary search between lo and hi bounds.
1815while test "x$ac_lo" != "x$ac_hi"; do
1816 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818/* end confdefs.h. */
1819$4
1820int
1821main ()
1822{
1823static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1824test_array [0] = 0;
1825return test_array [0];
1826
1827 ;
1828 return 0;
1829}
1830_ACEOF
1831if ac_fn_c_try_compile "$LINENO"; then :
1832 ac_hi=$ac_mid
1833else
1834 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1835fi
1836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837done
1838case $ac_lo in #((
1839?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1840'') ac_retval=1 ;;
1841esac
1842 else
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844/* end confdefs.h. */
1845$4
1846static long int longval () { return $2; }
1847static unsigned long int ulongval () { return $2; }
1848#include <stdio.h>
1849#include <stdlib.h>
1850int
1851main ()
1852{
1853
1854 FILE *f = fopen ("conftest.val", "w");
1855 if (! f)
1856 return 1;
1857 if (($2) < 0)
1858 {
1859 long int i = longval ();
1860 if (i != ($2))
1861 return 1;
1862 fprintf (f, "%ld", i);
1863 }
1864 else
1865 {
1866 unsigned long int i = ulongval ();
1867 if (i != ($2))
1868 return 1;
1869 fprintf (f, "%lu", i);
1870 }
1871 /* Do not output a trailing newline, as this causes \r\n confusion
1872 on some platforms. */
1873 return ferror (f) || fclose (f) != 0;
1874
1875 ;
1876 return 0;
1877}
1878_ACEOF
1879if ac_fn_c_try_run "$LINENO"; then :
1880 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1881else
1882 ac_retval=1
1883fi
1884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1885 conftest.$ac_objext conftest.beam conftest.$ac_ext
1886rm -f conftest.val
1887
1888 fi
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 as_fn_set_status $ac_retval
1891
1892} # ac_fn_c_compute_int
1893
1894# ac_fn_c_try_link LINENO
1895# -----------------------
1896# Try to link conftest.$ac_ext, and return whether this succeeded.
1897ac_fn_c_try_link ()
1898{
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext conftest$ac_exeext
1901 if { { ac_try="$ac_link"
1902case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905esac
1906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907$as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_link") 2>conftest.err
1909 ac_status=$?
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1914 fi
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_c_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest$ac_exeext && {
1920 test "$cross_compiling" = yes ||
1921 test -x conftest$ac_exeext
1922 }; then :
1923 ac_retval=0
1924else
1925 $as_echo "$as_me: failed program was:" >&5
1926sed 's/^/| /' conftest.$ac_ext >&5
1927
1928 ac_retval=1
1929fi
1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932 # interfere with the next link command; also delete a directory that is
1933 # left behind by Apple's compiler. We do this before executing the actions.
1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1937
1938} # ac_fn_c_try_link
1939
1940# ac_fn_c_check_func LINENO FUNC VAR
1941# ----------------------------------
1942# Tests whether FUNC exists, setting the cache variable VAR accordingly
1943ac_fn_c_check_func ()
1944{
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947$as_echo_n "checking for $2... " >&6; }
1948if eval \${$3+:} false; then :
1949 $as_echo_n "(cached) " >&6
1950else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h. */
1953/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1955#define $2 innocuous_$2
1956
1957/* System header to define __stub macros and hopefully few prototypes,
1958 which can conflict with char $2 (); below.
1959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1960 <limits.h> exists even on freestanding compilers. */
1961
1962#ifdef __STDC__
1963# include <limits.h>
1964#else
1965# include <assert.h>
1966#endif
1967
1968#undef $2
1969
1970/* Override any GCC internal prototype to avoid an error.
1971 Use char because int might match the return type of a GCC
1972 builtin and then its argument prototype would still apply. */
1973#ifdef __cplusplus
1974extern "C"
1975#endif
1976char $2 ();
1977/* The GNU C library defines this for functions which it implements
1978 to always fail with ENOSYS. Some functions are actually named
1979 something starting with __ and the normal name is an alias. */
1980#if defined __stub_$2 || defined __stub___$2
1981choke me
1982#endif
1983
1984int
1985main ()
1986{
1987return $2 ();
1988 ;
1989 return 0;
1990}
1991_ACEOF
1992if ac_fn_c_try_link "$LINENO"; then :
1993 eval "$3=yes"
1994else
1995 eval "$3=no"
1996fi
1997rm -f core conftest.err conftest.$ac_objext \
1998 conftest$ac_exeext conftest.$ac_ext
1999fi
2000eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002$as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004
2005} # ac_fn_c_check_func
2006cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002007This file contains any messages produced by compilers while
2008running configure, to aid debugging if configure makes a mistake.
2009
2010It was created by $as_me, which was
jfigusc7e66e32013-05-08 11:32:55 -04002011generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00002012
2013 $ $0 $@
2014
2015_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002016exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00002017{
2018cat <<_ASUNAME
2019## --------- ##
2020## Platform. ##
2021## --------- ##
2022
2023hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2024uname -m = `(uname -m) 2>/dev/null || echo unknown`
2025uname -r = `(uname -r) 2>/dev/null || echo unknown`
2026uname -s = `(uname -s) 2>/dev/null || echo unknown`
2027uname -v = `(uname -v) 2>/dev/null || echo unknown`
2028
2029/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2030/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2031
2032/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2033/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2034/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04002035/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00002036/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2037/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2038/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2039
2040_ASUNAME
2041
2042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043for as_dir in $PATH
2044do
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002047 $as_echo "PATH: $as_dir"
2048 done
2049IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002050
2051} >&5
2052
2053cat >&5 <<_ACEOF
2054
2055
2056## ----------- ##
2057## Core tests. ##
2058## ----------- ##
2059
2060_ACEOF
2061
2062
2063# Keep a trace of the command line.
2064# Strip out --no-create and --no-recursion so they do not pile up.
2065# Strip out --silent because we don't want to record it for future runs.
2066# Also quote any args containing shell meta-characters.
2067# Make two passes to allow for proper duplicate-argument suppression.
2068ac_configure_args=
2069ac_configure_args0=
2070ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002071ac_must_keep_next=false
2072for ac_pass in 1 2
2073do
2074 for ac_arg
2075 do
2076 case $ac_arg in
2077 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2079 | -silent | --silent | --silen | --sile | --sil)
2080 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002081 *\'*)
2082 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002083 esac
2084 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002085 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002086 2)
jfigusc7e66e32013-05-08 11:32:55 -04002087 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002088 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002089 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002090 else
David McGrewfec49dd2005-09-23 19:34:11 +00002091 case $ac_arg in
2092 *=* | --config-cache | -C | -disable-* | --disable-* \
2093 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2094 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2095 | -with-* | --with-* | -without-* | --without-* | --x)
2096 case "$ac_configure_args0 " in
2097 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2098 esac
2099 ;;
2100 -* ) ac_must_keep_next=true ;;
2101 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002102 fi
jfigusc7e66e32013-05-08 11:32:55 -04002103 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002104 ;;
2105 esac
2106 done
2107done
jfigusc7e66e32013-05-08 11:32:55 -04002108{ ac_configure_args0=; unset ac_configure_args0;}
2109{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002110
2111# When interrupted or exit'd, cleanup temporary files, and complete
2112# config.log. We remove comments because anyway the quotes in there
2113# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002114# WARNING: Use '\'' to represent an apostrophe within the trap.
2115# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002116trap 'exit_status=$?
2117 # Save into config.log some information that might help in debugging.
2118 {
2119 echo
2120
jfigusc7e66e32013-05-08 11:32:55 -04002121 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002122## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002123## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002124 echo
2125 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002126(
2127 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2128 eval ac_val=\$$ac_var
2129 case $ac_val in #(
2130 *${as_nl}*)
2131 case $ac_var in #(
2132 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2133$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2134 esac
2135 case $ac_var in #(
2136 _ | IFS | as_nl) ;; #(
2137 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2138 *) { eval $ac_var=; unset $ac_var;} ;;
2139 esac ;;
2140 esac
2141 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002142 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002143 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2144 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002145 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002146 "s/'\''/'\''\\\\'\'''\''/g;
2147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2148 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002149 *)
jfigusc7e66e32013-05-08 11:32:55 -04002150 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002151 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002152 esac |
2153 sort
2154)
Cullen Jennings235513a2005-09-21 22:51:36 +00002155 echo
2156
jfigusc7e66e32013-05-08 11:32:55 -04002157 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002158## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002159## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002160 echo
2161 for ac_var in $ac_subst_vars
2162 do
jfigusc7e66e32013-05-08 11:32:55 -04002163 eval ac_val=\$$ac_var
2164 case $ac_val in
2165 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2166 esac
2167 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002168 done | sort
2169 echo
2170
2171 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002172 $as_echo "## ------------------- ##
2173## File substitutions. ##
2174## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002175 echo
2176 for ac_var in $ac_subst_files
2177 do
jfigusc7e66e32013-05-08 11:32:55 -04002178 eval ac_val=\$$ac_var
2179 case $ac_val in
2180 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2181 esac
2182 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002183 done | sort
2184 echo
2185 fi
2186
2187 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002188 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002189## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002190## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002191 echo
jfigusc7e66e32013-05-08 11:32:55 -04002192 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002193 echo
2194 fi
2195 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002196 $as_echo "$as_me: caught signal $ac_signal"
2197 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002198 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002199 rm -f core *.core core.conftest.* &&
2200 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002201 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002202' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002203for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002204 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002205done
2206ac_signal=0
2207
2208# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002209rm -f -r conftest* confdefs.h
2210
2211$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002212
2213# Predefined preprocessor variables.
2214
2215cat >>confdefs.h <<_ACEOF
2216#define PACKAGE_NAME "$PACKAGE_NAME"
2217_ACEOF
2218
Cullen Jennings235513a2005-09-21 22:51:36 +00002219cat >>confdefs.h <<_ACEOF
2220#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2221_ACEOF
2222
Cullen Jennings235513a2005-09-21 22:51:36 +00002223cat >>confdefs.h <<_ACEOF
2224#define PACKAGE_VERSION "$PACKAGE_VERSION"
2225_ACEOF
2226
Cullen Jennings235513a2005-09-21 22:51:36 +00002227cat >>confdefs.h <<_ACEOF
2228#define PACKAGE_STRING "$PACKAGE_STRING"
2229_ACEOF
2230
Cullen Jennings235513a2005-09-21 22:51:36 +00002231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2233_ACEOF
2234
jfigusc7e66e32013-05-08 11:32:55 -04002235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_URL "$PACKAGE_URL"
2237_ACEOF
2238
Cullen Jennings235513a2005-09-21 22:51:36 +00002239
2240# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002241# Prefer an explicitly selected file to automatically selected ones.
2242ac_site_file1=NONE
2243ac_site_file2=NONE
2244if test -n "$CONFIG_SITE"; then
2245 # We do not want a PATH search for config.site.
2246 case $CONFIG_SITE in #((
2247 -*) ac_site_file1=./$CONFIG_SITE;;
2248 */*) ac_site_file1=$CONFIG_SITE;;
2249 *) ac_site_file1=./$CONFIG_SITE;;
2250 esac
2251elif test "x$prefix" != xNONE; then
2252 ac_site_file1=$prefix/share/config.site
2253 ac_site_file2=$prefix/etc/config.site
2254else
2255 ac_site_file1=$ac_default_prefix/share/config.site
2256 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002257fi
jfigusc7e66e32013-05-08 11:32:55 -04002258for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2259do
2260 test "x$ac_site_file" = xNONE && continue
2261 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2263$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002264 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002265 . "$ac_site_file" \
2266 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2268as_fn_error $? "failed to load site script $ac_site_file
2269See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002270 fi
2271done
2272
2273if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002274 # Some versions of bash will fail to source /dev/null (special files
2275 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2276 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2278$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002279 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002280 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2281 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002282 esac
2283 fi
2284else
jfigusc7e66e32013-05-08 11:32:55 -04002285 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2286$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002287 >$cache_file
2288fi
2289
2290# Check that the precious variables saved in the cache have kept the same
2291# value.
2292ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002293for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002294 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2295 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002296 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2297 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002298 case $ac_old_set,$ac_new_set in
2299 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2301$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 +00002302 ac_cache_corrupted=: ;;
2303 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2305$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002306 ac_cache_corrupted=: ;;
2307 ,);;
2308 *)
2309 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002310 # differences in whitespace do not lead to failure.
2311 ac_old_val_w=`echo x $ac_old_val`
2312 ac_new_val_w=`echo x $ac_new_val`
2313 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2315$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2316 ac_cache_corrupted=:
2317 else
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2319$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2320 eval $ac_var=\$ac_old_val
2321 fi
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2323$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2325$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002326 fi;;
2327 esac
2328 # Pass precious variables to config.status.
2329 if test "$ac_new_set" = set; then
2330 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002331 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002332 *) ac_arg=$ac_var=$ac_new_val ;;
2333 esac
2334 case " $ac_configure_args " in
2335 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002336 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002337 esac
2338 fi
2339done
2340if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2344$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2345 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002346fi
jfigusc7e66e32013-05-08 11:32:55 -04002347## -------------------- ##
2348## Main body of script. ##
2349## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002350
2351ac_ext=c
2352ac_cpp='$CPP $CPPFLAGS'
2353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356
2357
2358
David McGrewb67061f2005-09-28 14:23:06 +00002359if test -z "$CFLAGS"; then
2360 CFLAGS="-Wall -O4 -fexpensive-optimizations -funroll-loops"
2361fi
2362
Cullen Jennings235513a2005-09-21 22:51:36 +00002363if test -n "$ac_tool_prefix"; then
2364 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2365set dummy ${ac_tool_prefix}ranlib; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2367$as_echo_n "checking for $ac_word... " >&6; }
2368if ${ac_cv_prog_RANLIB+:} false; then :
2369 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002370else
2371 if test -n "$RANLIB"; then
2372 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2373else
2374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375for as_dir in $PATH
2376do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002381 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
jfigusc7e66e32013-05-08 11:32:55 -04002382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002383 break 2
2384 fi
2385done
jfigusc7e66e32013-05-08 11:32:55 -04002386 done
2387IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002388
2389fi
2390fi
2391RANLIB=$ac_cv_prog_RANLIB
2392if test -n "$RANLIB"; then
jfigusc7e66e32013-05-08 11:32:55 -04002393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2394$as_echo "$RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002395else
jfigusc7e66e32013-05-08 11:32:55 -04002396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2397$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002398fi
2399
jfigusc7e66e32013-05-08 11:32:55 -04002400
Cullen Jennings235513a2005-09-21 22:51:36 +00002401fi
2402if test -z "$ac_cv_prog_RANLIB"; then
2403 ac_ct_RANLIB=$RANLIB
2404 # Extract the first word of "ranlib", so it can be a program name with args.
2405set dummy ranlib; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2407$as_echo_n "checking for $ac_word... " >&6; }
2408if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2409 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002410else
2411 if test -n "$ac_ct_RANLIB"; then
2412 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2413else
2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415for as_dir in $PATH
2416do
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002421 ac_cv_prog_ac_ct_RANLIB="ranlib"
jfigusc7e66e32013-05-08 11:32:55 -04002422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002423 break 2
2424 fi
2425done
jfigusc7e66e32013-05-08 11:32:55 -04002426 done
2427IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002428
Cullen Jennings235513a2005-09-21 22:51:36 +00002429fi
2430fi
2431ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2432if test -n "$ac_ct_RANLIB"; then
jfigusc7e66e32013-05-08 11:32:55 -04002433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2434$as_echo "$ac_ct_RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002435else
jfigusc7e66e32013-05-08 11:32:55 -04002436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2437$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002438fi
2439
jfigusc7e66e32013-05-08 11:32:55 -04002440 if test "x$ac_ct_RANLIB" = x; then
2441 RANLIB=":"
2442 else
2443 case $cross_compiling:$ac_tool_warned in
2444yes:)
2445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2447ac_tool_warned=yes ;;
2448esac
2449 RANLIB=$ac_ct_RANLIB
2450 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002451else
2452 RANLIB="$ac_cv_prog_RANLIB"
2453fi
2454
2455ac_ext=c
2456ac_cpp='$CPP $CPPFLAGS'
2457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2459ac_compiler_gnu=$ac_cv_c_compiler_gnu
2460if test -n "$ac_tool_prefix"; then
2461 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2462set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2464$as_echo_n "checking for $ac_word... " >&6; }
2465if ${ac_cv_prog_CC+:} false; then :
2466 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002467else
2468 if test -n "$CC"; then
2469 ac_cv_prog_CC="$CC" # Let the user override the test.
2470else
2471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472for as_dir in $PATH
2473do
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002478 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002480 break 2
2481 fi
2482done
jfigusc7e66e32013-05-08 11:32:55 -04002483 done
2484IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002485
2486fi
2487fi
2488CC=$ac_cv_prog_CC
2489if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2491$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002492else
jfigusc7e66e32013-05-08 11:32:55 -04002493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2494$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002495fi
2496
jfigusc7e66e32013-05-08 11:32:55 -04002497
Cullen Jennings235513a2005-09-21 22:51:36 +00002498fi
2499if test -z "$ac_cv_prog_CC"; then
2500 ac_ct_CC=$CC
2501 # Extract the first word of "gcc", so it can be a program name with args.
2502set dummy gcc; 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_ac_ct_CC+:} false; then :
2506 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002507else
2508 if test -n "$ac_ct_CC"; then
2509 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
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
2528ac_ct_CC=$ac_cv_prog_ac_ct_CC
2529if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2531$as_echo "$ac_ct_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 if test "x$ac_ct_CC" = x; then
2538 CC=""
2539 else
2540 case $cross_compiling:$ac_tool_warned in
2541yes:)
2542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2544ac_tool_warned=yes ;;
2545esac
2546 CC=$ac_ct_CC
2547 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002548else
2549 CC="$ac_cv_prog_CC"
2550fi
2551
2552if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002553 if test -n "$ac_tool_prefix"; then
2554 # 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 +00002555set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557$as_echo_n "checking for $ac_word... " >&6; }
2558if ${ac_cv_prog_CC+:} false; then :
2559 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002560else
2561 if test -n "$CC"; then
2562 ac_cv_prog_CC="$CC" # Let the user override the test.
2563else
2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002571 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002573 break 2
2574 fi
2575done
jfigusc7e66e32013-05-08 11:32:55 -04002576 done
2577IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002578
2579fi
2580fi
2581CC=$ac_cv_prog_CC
2582if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2584$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002585else
jfigusc7e66e32013-05-08 11:32:55 -04002586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002588fi
2589
jfigusc7e66e32013-05-08 11:32:55 -04002590
Cullen Jennings235513a2005-09-21 22:51:36 +00002591 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002592fi
2593if test -z "$CC"; then
2594 # Extract the first word of "cc", so it can be a program name with args.
2595set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597$as_echo_n "checking for $ac_word... " >&6; }
2598if ${ac_cv_prog_CC+:} false; then :
2599 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002600else
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2603else
2604 ac_prog_rejected=no
2605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002612 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2613 ac_prog_rejected=yes
2614 continue
2615 fi
2616 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002618 break 2
2619 fi
2620done
jfigusc7e66e32013-05-08 11:32:55 -04002621 done
2622IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002623
2624if test $ac_prog_rejected = yes; then
2625 # We found a bogon in the path, so make sure we never use it.
2626 set dummy $ac_cv_prog_CC
2627 shift
2628 if test $# != 0; then
2629 # We chose a different compiler from the bogus one.
2630 # However, it has the same basename, so the bogon will be chosen
2631 # first if we set CC to just the basename; use the full file name.
2632 shift
2633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2634 fi
2635fi
2636fi
2637fi
2638CC=$ac_cv_prog_CC
2639if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2641$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002642else
jfigusc7e66e32013-05-08 11:32:55 -04002643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002645fi
2646
jfigusc7e66e32013-05-08 11:32:55 -04002647
Cullen Jennings235513a2005-09-21 22:51:36 +00002648fi
2649if test -z "$CC"; then
2650 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002651 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002652 do
2653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2654set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656$as_echo_n "checking for $ac_word... " >&6; }
2657if ${ac_cv_prog_CC+:} false; then :
2658 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002659else
2660 if test -n "$CC"; then
2661 ac_cv_prog_CC="$CC" # Let the user override the test.
2662else
2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002672 break 2
2673 fi
2674done
jfigusc7e66e32013-05-08 11:32:55 -04002675 done
2676IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002677
2678fi
2679fi
2680CC=$ac_cv_prog_CC
2681if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2683$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002684else
jfigusc7e66e32013-05-08 11:32:55 -04002685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002687fi
2688
jfigusc7e66e32013-05-08 11:32:55 -04002689
Cullen Jennings235513a2005-09-21 22:51:36 +00002690 test -n "$CC" && break
2691 done
2692fi
2693if test -z "$CC"; then
2694 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002695 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002696do
2697 # Extract the first word of "$ac_prog", so it can be a program name with args.
2698set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700$as_echo_n "checking for $ac_word... " >&6; }
2701if ${ac_cv_prog_ac_ct_CC+:} false; then :
2702 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002703else
2704 if test -n "$ac_ct_CC"; then
2705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2706else
2707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708for as_dir in $PATH
2709do
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002714 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002716 break 2
2717 fi
2718done
jfigusc7e66e32013-05-08 11:32:55 -04002719 done
2720IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002721
2722fi
2723fi
2724ac_ct_CC=$ac_cv_prog_ac_ct_CC
2725if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2727$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002728else
jfigusc7e66e32013-05-08 11:32:55 -04002729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002731fi
2732
jfigusc7e66e32013-05-08 11:32:55 -04002733
Cullen Jennings235513a2005-09-21 22:51:36 +00002734 test -n "$ac_ct_CC" && break
2735done
2736
jfigusc7e66e32013-05-08 11:32:55 -04002737 if test "x$ac_ct_CC" = x; then
2738 CC=""
2739 else
2740 case $cross_compiling:$ac_tool_warned in
2741yes:)
2742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2744ac_tool_warned=yes ;;
2745esac
2746 CC=$ac_ct_CC
2747 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002748fi
2749
2750fi
2751
2752
jfigusc7e66e32013-05-08 11:32:55 -04002753test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755as_fn_error $? "no acceptable C compiler found in \$PATH
2756See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002757
2758# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002759$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2760set X $ac_compile
2761ac_compiler=$2
2762for ac_option in --version -v -V -qversion; do
2763 { { ac_try="$ac_compiler $ac_option >&5"
2764case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2767esac
2768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2769$as_echo "$ac_try_echo"; } >&5
2770 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002771 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002772 if test -s conftest.err; then
2773 sed '10a\
2774... rest of stderr output deleted ...
2775 10q' conftest.err >conftest.er1
2776 cat conftest.er1 >&5
2777 fi
2778 rm -f conftest.er1 conftest.err
2779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2780 test $ac_status = 0; }
2781done
Cullen Jennings235513a2005-09-21 22:51:36 +00002782
jfigusc7e66e32013-05-08 11:32:55 -04002783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002784/* end confdefs.h. */
2785
2786int
2787main ()
2788{
2789
2790 ;
2791 return 0;
2792}
2793_ACEOF
2794ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002795ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002796# Try to create an executable without -o first, disregard a.out.
2797# It will help us diagnose broken compilers, and finding out an intuition
2798# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2800$as_echo_n "checking whether the C compiler works... " >&6; }
2801ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002802
jfigusc7e66e32013-05-08 11:32:55 -04002803# The possible output files:
2804ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2805
2806ac_rmfiles=
2807for ac_file in $ac_files
2808do
2809 case $ac_file in
2810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2811 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2812 esac
2813done
2814rm -f $ac_rmfiles
2815
2816if { { ac_try="$ac_link_default"
2817case "(($ac_try" in
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2820esac
2821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2822$as_echo "$ac_try_echo"; } >&5
2823 (eval "$ac_link_default") 2>&5
2824 ac_status=$?
2825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2826 test $ac_status = 0; }; then :
2827 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2828# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2829# in a Makefile. We should not override ac_cv_exeext if it was cached,
2830# so that the user can short-circuit this test for compilers unknown to
2831# Autoconf.
2832for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002833do
2834 test -f "$ac_file" || continue
2835 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002837 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002838 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002839 # We found the default executable, but exeext='' is most
2840 # certainly right.
2841 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002842 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002843 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2844 then :; else
2845 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2846 fi
2847 # We set ac_cv_exeext here because the later test for it is not
2848 # safe: cross compilers may not add the suffix if given an `-o'
2849 # argument, so we may need to know it at that point already.
2850 # Even if this section looks crufty: it has the advantage of
2851 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002852 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002853 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002854 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002855 esac
2856done
jfigusc7e66e32013-05-08 11:32:55 -04002857test "$ac_cv_exeext" = no && ac_cv_exeext=
2858
Cullen Jennings235513a2005-09-21 22:51:36 +00002859else
jfigusc7e66e32013-05-08 11:32:55 -04002860 ac_file=''
2861fi
2862if test -z "$ac_file"; then :
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864$as_echo "no" >&6; }
2865$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002866sed 's/^/| /' conftest.$ac_ext >&5
2867
jfigusc7e66e32013-05-08 11:32:55 -04002868{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2870as_fn_error 77 "C compiler cannot create executables
2871See \`config.log' for more details" "$LINENO" 5; }
2872else
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2874$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002875fi
jfigusc7e66e32013-05-08 11:32:55 -04002876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2877$as_echo_n "checking for C compiler default output file name... " >&6; }
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2879$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002880ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002881
jfigusc7e66e32013-05-08 11:32:55 -04002882rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002883ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2885$as_echo_n "checking for suffix of executables... " >&6; }
2886if { { ac_try="$ac_link"
2887case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890esac
2891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2892$as_echo "$ac_try_echo"; } >&5
2893 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002894 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2896 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002897 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2898# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2899# work properly (i.e., refer to `conftest.exe'), while it won't with
2900# `rm'.
2901for ac_file in conftest.exe conftest conftest.*; do
2902 test -f "$ac_file" || continue
2903 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002905 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002906 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002907 * ) break;;
2908 esac
2909done
2910else
jfigusc7e66e32013-05-08 11:32:55 -04002911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2913as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2914See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002915fi
jfigusc7e66e32013-05-08 11:32:55 -04002916rm -f conftest conftest$ac_cv_exeext
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2918$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002919
2920rm -f conftest.$ac_ext
2921EXEEXT=$ac_cv_exeext
2922ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2924/* end confdefs.h. */
2925#include <stdio.h>
2926int
2927main ()
2928{
2929FILE *f = fopen ("conftest.out", "w");
2930 return ferror (f) || fclose (f) != 0;
2931
2932 ;
2933 return 0;
2934}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002935_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002936ac_clean_files="$ac_clean_files conftest.out"
2937# Check that the compiler produces executables we can run. If not, either
2938# the compiler is broken, or we cross compile.
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2940$as_echo_n "checking whether we are cross compiling... " >&6; }
2941if test "$cross_compiling" != yes; then
2942 { { ac_try="$ac_link"
2943case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946esac
2947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2948$as_echo "$ac_try_echo"; } >&5
2949 (eval "$ac_link") 2>&5
2950 ac_status=$?
2951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2952 test $ac_status = 0; }
2953 if { ac_try='./conftest$ac_cv_exeext'
2954 { { case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959$as_echo "$ac_try_echo"; } >&5
2960 (eval "$ac_try") 2>&5
2961 ac_status=$?
2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }; }; then
2964 cross_compiling=no
2965 else
2966 if test "$cross_compiling" = maybe; then
2967 cross_compiling=yes
2968 else
2969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971as_fn_error $? "cannot run C compiled programs.
2972If you meant to cross compile, use \`--host'.
2973See \`config.log' for more details" "$LINENO" 5; }
2974 fi
2975 fi
2976fi
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2978$as_echo "$cross_compiling" >&6; }
2979
2980rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2981ac_clean_files=$ac_clean_files_save
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2983$as_echo_n "checking for suffix of object files... " >&6; }
2984if ${ac_cv_objext+:} false; then :
2985 $as_echo_n "(cached) " >&6
2986else
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002988/* end confdefs.h. */
2989
2990int
2991main ()
2992{
2993
2994 ;
2995 return 0;
2996}
2997_ACEOF
2998rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04002999if { { ac_try="$ac_compile"
3000case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003esac
3004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005$as_echo "$ac_try_echo"; } >&5
3006 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003007 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04003008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009 test $ac_status = 0; }; then :
3010 for ac_file in conftest.o conftest.obj conftest.*; do
3011 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00003012 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04003013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003014 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3015 break;;
3016 esac
3017done
3018else
jfigusc7e66e32013-05-08 11:32:55 -04003019 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003020sed 's/^/| /' conftest.$ac_ext >&5
3021
jfigusc7e66e32013-05-08 11:32:55 -04003022{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024as_fn_error $? "cannot compute suffix of object files: cannot compile
3025See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003026fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003027rm -f conftest.$ac_cv_objext conftest.$ac_ext
3028fi
jfigusc7e66e32013-05-08 11:32:55 -04003029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3030$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003031OBJEXT=$ac_cv_objext
3032ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04003033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3034$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3035if ${ac_cv_c_compiler_gnu+:} false; then :
3036 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003037else
jfigusc7e66e32013-05-08 11:32:55 -04003038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003039/* end confdefs.h. */
3040
3041int
3042main ()
3043{
3044#ifndef __GNUC__
3045 choke me
3046#endif
3047
3048 ;
3049 return 0;
3050}
3051_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003052if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003053 ac_compiler_gnu=yes
3054else
jfigusc7e66e32013-05-08 11:32:55 -04003055 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003056fi
jfigusc7e66e32013-05-08 11:32:55 -04003057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003058ac_cv_c_compiler_gnu=$ac_compiler_gnu
3059
3060fi
jfigusc7e66e32013-05-08 11:32:55 -04003061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3062$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3063if test $ac_compiler_gnu = yes; then
3064 GCC=yes
3065else
3066 GCC=
3067fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003068ac_test_CFLAGS=${CFLAGS+set}
3069ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04003070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3071$as_echo_n "checking whether $CC accepts -g... " >&6; }
3072if ${ac_cv_prog_cc_g+:} false; then :
3073 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003074else
jfigusc7e66e32013-05-08 11:32:55 -04003075 ac_save_c_werror_flag=$ac_c_werror_flag
3076 ac_c_werror_flag=yes
3077 ac_cv_prog_cc_g=no
3078 CFLAGS="-g"
3079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003080/* end confdefs.h. */
3081
3082int
3083main ()
3084{
3085
3086 ;
3087 return 0;
3088}
3089_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003090if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003091 ac_cv_prog_cc_g=yes
3092else
jfigusc7e66e32013-05-08 11:32:55 -04003093 CFLAGS=""
3094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00003096
jfigusc7e66e32013-05-08 11:32:55 -04003097int
3098main ()
3099{
3100
3101 ;
3102 return 0;
3103}
3104_ACEOF
3105if ac_fn_c_try_compile "$LINENO"; then :
3106
3107else
3108 ac_c_werror_flag=$ac_save_c_werror_flag
3109 CFLAGS="-g"
3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111/* end confdefs.h. */
3112
3113int
3114main ()
3115{
3116
3117 ;
3118 return 0;
3119}
3120_ACEOF
3121if ac_fn_c_try_compile "$LINENO"; then :
3122 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003123fi
jfigusc7e66e32013-05-08 11:32:55 -04003124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003125fi
jfigusc7e66e32013-05-08 11:32:55 -04003126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127fi
3128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 ac_c_werror_flag=$ac_save_c_werror_flag
3130fi
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3132$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003133if test "$ac_test_CFLAGS" = set; then
3134 CFLAGS=$ac_save_CFLAGS
3135elif test $ac_cv_prog_cc_g = yes; then
3136 if test "$GCC" = yes; then
3137 CFLAGS="-g -O2"
3138 else
3139 CFLAGS="-g"
3140 fi
3141else
3142 if test "$GCC" = yes; then
3143 CFLAGS="-O2"
3144 else
3145 CFLAGS=
3146 fi
3147fi
jfigusc7e66e32013-05-08 11:32:55 -04003148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3149$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3150if ${ac_cv_prog_cc_c89+:} false; then :
3151 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003152else
jfigusc7e66e32013-05-08 11:32:55 -04003153 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003154ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003156/* end confdefs.h. */
3157#include <stdarg.h>
3158#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003159struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003160/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3161struct buf { int x; };
3162FILE * (*rcsopen) (struct buf *, struct stat *, int);
3163static char *e (p, i)
3164 char **p;
3165 int i;
3166{
3167 return p[i];
3168}
3169static char *f (char * (*g) (char **, int), char **p, ...)
3170{
3171 char *s;
3172 va_list v;
3173 va_start (v,p);
3174 s = g (p, va_arg (v,int));
3175 va_end (v);
3176 return s;
3177}
David McGrewfec49dd2005-09-23 19:34:11 +00003178
3179/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3180 function prototypes and stuff, but not '\xHH' hex character constants.
3181 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003182 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003183 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3184 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003185 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003186int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3187
jfigusc7e66e32013-05-08 11:32:55 -04003188/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3189 inside strings and character constants. */
3190#define FOO(x) 'x'
3191int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3192
Cullen Jennings235513a2005-09-21 22:51:36 +00003193int test (int i, double x);
3194struct s1 {int (*f) (int a);};
3195struct s2 {int (*f) (double a);};
3196int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3197int argc;
3198char **argv;
3199int
3200main ()
3201{
3202return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3203 ;
3204 return 0;
3205}
3206_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003207for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3208 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003209do
3210 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003211 if ac_fn_c_try_compile "$LINENO"; then :
3212 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003213fi
jfigusc7e66e32013-05-08 11:32:55 -04003214rm -f core conftest.err conftest.$ac_objext
3215 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003216done
jfigusc7e66e32013-05-08 11:32:55 -04003217rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003218CC=$ac_save_CC
3219
3220fi
jfigusc7e66e32013-05-08 11:32:55 -04003221# AC_CACHE_VAL
3222case "x$ac_cv_prog_cc_c89" in
3223 x)
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3225$as_echo "none needed" >&6; } ;;
3226 xno)
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3228$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003229 *)
jfigusc7e66e32013-05-08 11:32:55 -04003230 CC="$CC $ac_cv_prog_cc_c89"
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3232$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003233esac
jfigusc7e66e32013-05-08 11:32:55 -04003234if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003235
3236fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003237
Cullen Jennings235513a2005-09-21 22:51:36 +00003238ac_ext=c
3239ac_cpp='$CPP $CPPFLAGS'
3240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243
David McGrewb67061f2005-09-28 14:23:06 +00003244ac_aux_dir=
jfigusc7e66e32013-05-08 11:32:55 -04003245for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3246 if test -f "$ac_dir/install-sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003247 ac_aux_dir=$ac_dir
3248 ac_install_sh="$ac_aux_dir/install-sh -c"
3249 break
jfigusc7e66e32013-05-08 11:32:55 -04003250 elif test -f "$ac_dir/install.sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003251 ac_aux_dir=$ac_dir
3252 ac_install_sh="$ac_aux_dir/install.sh -c"
3253 break
jfigusc7e66e32013-05-08 11:32:55 -04003254 elif test -f "$ac_dir/shtool"; then
David McGrewb67061f2005-09-28 14:23:06 +00003255 ac_aux_dir=$ac_dir
3256 ac_install_sh="$ac_aux_dir/shtool install -c"
3257 break
3258 fi
3259done
3260if test -z "$ac_aux_dir"; then
jfigusc7e66e32013-05-08 11:32:55 -04003261 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
David McGrewb67061f2005-09-28 14:23:06 +00003262fi
jfigusc7e66e32013-05-08 11:32:55 -04003263
3264# These three variables are undocumented and unsupported,
3265# and are intended to be withdrawn in a future Autoconf release.
3266# They can cause serious problems if a builder's source tree is in a directory
3267# whose full name contains unusual characters.
3268ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3269ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3270ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3271
Cullen Jennings235513a2005-09-21 22:51:36 +00003272
David McGrewb67061f2005-09-28 14:23:06 +00003273# Find a good install program. We prefer a C program (faster),
3274# so one script is as good as another. But avoid the broken or
3275# incompatible versions:
3276# SysV /etc/install, /usr/sbin/install
3277# SunOS /usr/etc/install
3278# IRIX /sbin/install
3279# AIX /bin/install
3280# AmigaOS /C/install, which installs bootblocks on floppy discs
3281# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3282# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3283# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3284# OS/2's system install, which has a completely different semantic
3285# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04003286# Reject install programs that cannot install multiple files.
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3288$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00003289if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04003290if ${ac_cv_path_install+:} false; then :
3291 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003292else
David McGrewb67061f2005-09-28 14:23:06 +00003293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294for as_dir in $PATH
3295do
3296 IFS=$as_save_IFS
3297 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04003298 # Account for people who put trailing slashes in PATH elements.
3299case $as_dir/ in #((
3300 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00003301 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04003302 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00003303 /usr/ucb/* ) ;;
3304 *)
3305 # OSF1 and SCO ODT 3.0 have their own names for install.
3306 # Don't use installbsd from OSF since it installs stuff as root
3307 # by default.
3308 for ac_prog in ginstall scoinst install; do
3309 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04003310 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00003311 if test $ac_prog = install &&
3312 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3313 # AIX install. It has an incompatible calling convention.
3314 :
3315 elif test $ac_prog = install &&
3316 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3317 # program-specific install script used by HP pwplus--don't use.
3318 :
3319 else
jfigusc7e66e32013-05-08 11:32:55 -04003320 rm -rf conftest.one conftest.two conftest.dir
3321 echo one > conftest.one
3322 echo two > conftest.two
3323 mkdir conftest.dir
3324 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3325 test -s conftest.one && test -s conftest.two &&
3326 test -s conftest.dir/conftest.one &&
3327 test -s conftest.dir/conftest.two
3328 then
3329 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3330 break 3
3331 fi
David McGrewb67061f2005-09-28 14:23:06 +00003332 fi
3333 fi
3334 done
3335 done
3336 ;;
3337esac
Cullen Jennings235513a2005-09-21 22:51:36 +00003338
jfigusc7e66e32013-05-08 11:32:55 -04003339 done
3340IFS=$as_save_IFS
3341
3342rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00003343
3344fi
David McGrewb67061f2005-09-28 14:23:06 +00003345 if test "${ac_cv_path_install+set}" = set; then
3346 INSTALL=$ac_cv_path_install
3347 else
jfigusc7e66e32013-05-08 11:32:55 -04003348 # As a last resort, use the slow shell script. Don't cache a
3349 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00003350 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04003351 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00003352 INSTALL=$ac_install_sh
3353 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003354fi
jfigusc7e66e32013-05-08 11:32:55 -04003355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3356$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003357
David McGrewb67061f2005-09-28 14:23:06 +00003358# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3359# It thinks the first close brace ends the variable substitution.
3360test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00003361
David McGrewb67061f2005-09-28 14:23:06 +00003362test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3363
3364test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00003365
3366
3367
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003368ac_ext=c
3369ac_cpp='$CPP $CPPFLAGS'
3370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372ac_compiler_gnu=$ac_cv_c_compiler_gnu
jfigusc7e66e32013-05-08 11:32:55 -04003373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3374$as_echo_n "checking how to run the C preprocessor... " >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003375# On Suns, sometimes $CPP names a directory.
3376if test -n "$CPP" && test -d "$CPP"; then
3377 CPP=
3378fi
3379if test -z "$CPP"; then
jfigusc7e66e32013-05-08 11:32:55 -04003380 if ${ac_cv_prog_CPP+:} false; then :
3381 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003382else
3383 # Double quotes because CPP needs to be expanded
3384 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3385 do
3386 ac_preproc_ok=false
3387for ac_c_preproc_warn_flag in '' yes
3388do
3389 # Use a header file that comes with gcc, so configuring glibc
3390 # with a fresh cross-compiler works.
3391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3392 # <limits.h> exists even on freestanding compilers.
3393 # On the NeXT, cc -E runs the code through the compiler's parser,
3394 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04003395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003396/* end confdefs.h. */
3397#ifdef __STDC__
3398# include <limits.h>
3399#else
3400# include <assert.h>
3401#endif
3402 Syntax error
3403_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003404if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003405
jfigusc7e66e32013-05-08 11:32:55 -04003406else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003407 # Broken: fails on valid input.
3408continue
3409fi
jfigusc7e66e32013-05-08 11:32:55 -04003410rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003411
jfigusc7e66e32013-05-08 11:32:55 -04003412 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003413 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04003414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003415/* end confdefs.h. */
3416#include <ac_nonexistent.h>
3417_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003418if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003419 # Broken: success on invalid input.
3420continue
3421else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003422 # Passes both tests.
3423ac_preproc_ok=:
3424break
3425fi
jfigusc7e66e32013-05-08 11:32:55 -04003426rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003427
3428done
3429# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04003430rm -f conftest.i conftest.err conftest.$ac_ext
3431if $ac_preproc_ok; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003432 break
3433fi
3434
3435 done
3436 ac_cv_prog_CPP=$CPP
3437
3438fi
3439 CPP=$ac_cv_prog_CPP
3440else
3441 ac_cv_prog_CPP=$CPP
3442fi
jfigusc7e66e32013-05-08 11:32:55 -04003443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3444$as_echo "$CPP" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003445ac_preproc_ok=false
3446for ac_c_preproc_warn_flag in '' yes
3447do
3448 # Use a header file that comes with gcc, so configuring glibc
3449 # with a fresh cross-compiler works.
3450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451 # <limits.h> exists even on freestanding compilers.
3452 # On the NeXT, cc -E runs the code through the compiler's parser,
3453 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04003454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003455/* end confdefs.h. */
3456#ifdef __STDC__
3457# include <limits.h>
3458#else
3459# include <assert.h>
3460#endif
3461 Syntax error
3462_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003463if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003464
jfigusc7e66e32013-05-08 11:32:55 -04003465else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003466 # Broken: fails on valid input.
3467continue
3468fi
jfigusc7e66e32013-05-08 11:32:55 -04003469rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003470
jfigusc7e66e32013-05-08 11:32:55 -04003471 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003472 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04003473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003474/* end confdefs.h. */
3475#include <ac_nonexistent.h>
3476_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003477if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003478 # Broken: success on invalid input.
3479continue
3480else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003481 # Passes both tests.
3482ac_preproc_ok=:
3483break
3484fi
jfigusc7e66e32013-05-08 11:32:55 -04003485rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003486
3487done
3488# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04003489rm -f conftest.i conftest.err conftest.$ac_ext
3490if $ac_preproc_ok; then :
3491
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003492else
jfigusc7e66e32013-05-08 11:32:55 -04003493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3496See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003497fi
3498
3499ac_ext=c
3500ac_cpp='$CPP $CPPFLAGS'
3501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504
3505
jfigusc7e66e32013-05-08 11:32:55 -04003506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3507$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3508if ${ac_cv_path_GREP+:} false; then :
3509 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003510else
jfigusc7e66e32013-05-08 11:32:55 -04003511 if test -z "$GREP"; then
3512 ac_path_GREP_found=false
3513 # Loop through the user's path and test for each of PROGNAME-LIST
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3516do
3517 IFS=$as_save_IFS
3518 test -z "$as_dir" && as_dir=.
3519 for ac_prog in grep ggrep; do
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3522 as_fn_executable_p "$ac_path_GREP" || continue
3523# Check for GNU ac_path_GREP and select it if it is found.
3524 # Check for GNU $ac_path_GREP
3525case `"$ac_path_GREP" --version 2>&1` in
3526*GNU*)
3527 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3528*)
3529 ac_count=0
3530 $as_echo_n 0123456789 >"conftest.in"
3531 while :
3532 do
3533 cat "conftest.in" "conftest.in" >"conftest.tmp"
3534 mv "conftest.tmp" "conftest.in"
3535 cp "conftest.in" "conftest.nl"
3536 $as_echo 'GREP' >> "conftest.nl"
3537 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3539 as_fn_arith $ac_count + 1 && ac_count=$as_val
3540 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3541 # Best one so far, save it but keep looking for a better one
3542 ac_cv_path_GREP="$ac_path_GREP"
3543 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003544 fi
jfigusc7e66e32013-05-08 11:32:55 -04003545 # 10*(2^10) chars as input seems more than enough
3546 test $ac_count -gt 10 && break
3547 done
3548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3549esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003550
jfigusc7e66e32013-05-08 11:32:55 -04003551 $ac_path_GREP_found && break 3
3552 done
3553 done
3554 done
3555IFS=$as_save_IFS
3556 if test -z "$ac_cv_path_GREP"; then
3557 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3558 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003559else
jfigusc7e66e32013-05-08 11:32:55 -04003560 ac_cv_path_GREP=$GREP
3561fi
3562
3563fi
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3565$as_echo "$ac_cv_path_GREP" >&6; }
3566 GREP="$ac_cv_path_GREP"
3567
3568
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3570$as_echo_n "checking for egrep... " >&6; }
3571if ${ac_cv_path_EGREP+:} false; then :
3572 $as_echo_n "(cached) " >&6
3573else
3574 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3575 then ac_cv_path_EGREP="$GREP -E"
3576 else
3577 if test -z "$EGREP"; then
3578 ac_path_EGREP_found=false
3579 # Loop through the user's path and test for each of PROGNAME-LIST
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3582do
3583 IFS=$as_save_IFS
3584 test -z "$as_dir" && as_dir=.
3585 for ac_prog in egrep; do
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3588 as_fn_executable_p "$ac_path_EGREP" || continue
3589# Check for GNU ac_path_EGREP and select it if it is found.
3590 # Check for GNU $ac_path_EGREP
3591case `"$ac_path_EGREP" --version 2>&1` in
3592*GNU*)
3593 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3594*)
3595 ac_count=0
3596 $as_echo_n 0123456789 >"conftest.in"
3597 while :
3598 do
3599 cat "conftest.in" "conftest.in" >"conftest.tmp"
3600 mv "conftest.tmp" "conftest.in"
3601 cp "conftest.in" "conftest.nl"
3602 $as_echo 'EGREP' >> "conftest.nl"
3603 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3605 as_fn_arith $ac_count + 1 && ac_count=$as_val
3606 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3607 # Best one so far, save it but keep looking for a better one
3608 ac_cv_path_EGREP="$ac_path_EGREP"
3609 ac_path_EGREP_max=$ac_count
3610 fi
3611 # 10*(2^10) chars as input seems more than enough
3612 test $ac_count -gt 10 && break
3613 done
3614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3615esac
3616
3617 $ac_path_EGREP_found && break 3
3618 done
3619 done
3620 done
3621IFS=$as_save_IFS
3622 if test -z "$ac_cv_path_EGREP"; then
3623 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3624 fi
3625else
3626 ac_cv_path_EGREP=$EGREP
3627fi
3628
3629 fi
3630fi
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3632$as_echo "$ac_cv_path_EGREP" >&6; }
3633 EGREP="$ac_cv_path_EGREP"
3634
3635
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3637$as_echo_n "checking for ANSI C header files... " >&6; }
3638if ${ac_cv_header_stdc+:} false; then :
3639 $as_echo_n "(cached) " >&6
3640else
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003642/* end confdefs.h. */
3643#include <stdlib.h>
3644#include <stdarg.h>
3645#include <string.h>
3646#include <float.h>
3647
3648int
3649main ()
3650{
3651
3652 ;
3653 return 0;
3654}
3655_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003656if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003657 ac_cv_header_stdc=yes
3658else
jfigusc7e66e32013-05-08 11:32:55 -04003659 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04003660fi
jfigusc7e66e32013-05-08 11:32:55 -04003661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003662
3663if test $ac_cv_header_stdc = yes; then
3664 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003666/* end confdefs.h. */
3667#include <string.h>
3668
3669_ACEOF
3670if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003671 $EGREP "memchr" >/dev/null 2>&1; then :
3672
jfigusa14b5a02013-03-29 12:24:12 -04003673else
3674 ac_cv_header_stdc=no
3675fi
3676rm -f conftest*
3677
3678fi
3679
3680if test $ac_cv_header_stdc = yes; then
3681 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003683/* end confdefs.h. */
3684#include <stdlib.h>
3685
3686_ACEOF
3687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003688 $EGREP "free" >/dev/null 2>&1; then :
3689
jfigusa14b5a02013-03-29 12:24:12 -04003690else
3691 ac_cv_header_stdc=no
3692fi
3693rm -f conftest*
3694
3695fi
3696
3697if test $ac_cv_header_stdc = yes; then
3698 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04003699 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04003700 :
3701else
jfigusc7e66e32013-05-08 11:32:55 -04003702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003703/* end confdefs.h. */
3704#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04003705#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04003706#if ((' ' & 0x0FF) == 0x020)
3707# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3708# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3709#else
3710# define ISLOWER(c) \
3711 (('a' <= (c) && (c) <= 'i') \
3712 || ('j' <= (c) && (c) <= 'r') \
3713 || ('s' <= (c) && (c) <= 'z'))
3714# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3715#endif
3716
3717#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3718int
3719main ()
3720{
3721 int i;
3722 for (i = 0; i < 256; i++)
3723 if (XOR (islower (i), ISLOWER (i))
3724 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04003725 return 2;
3726 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04003727}
3728_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003729if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003730
jfigusc7e66e32013-05-08 11:32:55 -04003731else
3732 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003733fi
jfigusc7e66e32013-05-08 11:32:55 -04003734rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3735 conftest.$ac_objext conftest.beam conftest.$ac_ext
3736fi
3737
jfigusa14b5a02013-03-29 12:24:12 -04003738fi
3739fi
jfigusc7e66e32013-05-08 11:32:55 -04003740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3741$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04003742if test $ac_cv_header_stdc = yes; then
3743
jfigusc7e66e32013-05-08 11:32:55 -04003744$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04003745
3746fi
3747
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003748# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003749for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3750 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04003751do :
3752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3753ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3754"
3755if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003756 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003757#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003758_ACEOF
3759
3760fi
3761
3762done
3763
3764
jfigusc7e66e32013-05-08 11:32:55 -04003765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3766$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3767if ${ac_cv_c_bigendian+:} false; then :
3768 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003769else
jfigusc7e66e32013-05-08 11:32:55 -04003770 ac_cv_c_bigendian=unknown
3771 # See if we're dealing with a universal compiler.
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003773/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003774#ifndef __APPLE_CC__
3775 not a universal capable compiler
3776 #endif
3777 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003778
jfigusc7e66e32013-05-08 11:32:55 -04003779_ACEOF
3780if ac_fn_c_try_compile "$LINENO"; then :
3781
3782 # Check for potential -arch flags. It is not universal unless
3783 # there are at least two -arch flags with different values.
3784 ac_arch=
3785 ac_prev=
3786 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3787 if test -n "$ac_prev"; then
3788 case $ac_word in
3789 i?86 | x86_64 | ppc | ppc64)
3790 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3791 ac_arch=$ac_word
3792 else
3793 ac_cv_c_bigendian=universal
3794 break
3795 fi
3796 ;;
3797 esac
3798 ac_prev=
3799 elif test "x$ac_word" = "x-arch"; then
3800 ac_prev=arch
3801 fi
3802 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003803fi
jfigusc7e66e32013-05-08 11:32:55 -04003804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 if test $ac_cv_c_bigendian = unknown; then
3806 # See if sys/param.h defines the BYTE_ORDER macro.
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003808/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003809#include <sys/types.h>
3810 #include <sys/param.h>
3811
3812int
3813main ()
3814{
3815#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3816 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3817 && LITTLE_ENDIAN)
3818 bogus endian macros
3819 #endif
3820
3821 ;
3822 return 0;
3823}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003824_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003825if ac_fn_c_try_compile "$LINENO"; then :
3826 # It does; now see whether it defined to BIG_ENDIAN or not.
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003828/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003829#include <sys/types.h>
3830 #include <sys/param.h>
3831
3832int
3833main ()
3834{
3835#if BYTE_ORDER != BIG_ENDIAN
3836 not big endian
3837 #endif
3838
3839 ;
3840 return 0;
3841}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003842_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003843if ac_fn_c_try_compile "$LINENO"; then :
3844 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003845else
jfigusc7e66e32013-05-08 11:32:55 -04003846 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003847fi
jfigusc7e66e32013-05-08 11:32:55 -04003848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849fi
3850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 fi
3852 if test $ac_cv_c_bigendian = unknown; then
3853 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003855/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003856#include <limits.h>
3857
3858int
3859main ()
3860{
3861#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3862 bogus endian macros
3863 #endif
3864
3865 ;
3866 return 0;
3867}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003868_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003869if ac_fn_c_try_compile "$LINENO"; then :
3870 # It does; now see whether it defined to _BIG_ENDIAN or not.
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003872/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003873#include <limits.h>
3874
3875int
3876main ()
3877{
3878#ifndef _BIG_ENDIAN
3879 not big endian
3880 #endif
3881
3882 ;
3883 return 0;
3884}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003885_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003886if ac_fn_c_try_compile "$LINENO"; then :
3887 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003888else
jfigusc7e66e32013-05-08 11:32:55 -04003889 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003890fi
jfigusc7e66e32013-05-08 11:32:55 -04003891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892fi
3893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 fi
3895 if test $ac_cv_c_bigendian = unknown; then
3896 # Compile a test program.
3897 if test "$cross_compiling" = yes; then :
3898 # Try to guess by grepping values from an object file.
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003900/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003901short int ascii_mm[] =
3902 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3903 short int ascii_ii[] =
3904 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3905 int use_ascii (int i) {
3906 return ascii_mm[i] + ascii_ii[i];
3907 }
3908 short int ebcdic_ii[] =
3909 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3910 short int ebcdic_mm[] =
3911 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3912 int use_ebcdic (int i) {
3913 return ebcdic_mm[i] + ebcdic_ii[i];
3914 }
3915 extern int foo;
3916
3917int
3918main ()
3919{
3920return use_ascii (foo) == use_ebcdic (foo);
3921 ;
3922 return 0;
3923}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003924_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003925if ac_fn_c_try_compile "$LINENO"; then :
3926 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3927 ac_cv_c_bigendian=yes
3928 fi
3929 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3930 if test "$ac_cv_c_bigendian" = unknown; then
3931 ac_cv_c_bigendian=no
3932 else
3933 # finding both strings is unlikely to happen, but who knows?
3934 ac_cv_c_bigendian=unknown
3935 fi
3936 fi
3937fi
3938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003939else
jfigusc7e66e32013-05-08 11:32:55 -04003940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003941/* end confdefs.h. */
3942$ac_includes_default
3943int
3944main ()
3945{
jfigusc7e66e32013-05-08 11:32:55 -04003946
3947 /* Are we little or big endian? From Harbison&Steele. */
3948 union
3949 {
3950 long int l;
3951 char c[sizeof (long int)];
3952 } u;
3953 u.l = 1;
3954 return u.c[sizeof (long int) - 1] == 1;
3955
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003956 ;
3957 return 0;
3958}
3959_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003960if ac_fn_c_try_run "$LINENO"; then :
3961 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003962else
jfigusc7e66e32013-05-08 11:32:55 -04003963 ac_cv_c_bigendian=yes
3964fi
3965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3966 conftest.$ac_objext conftest.beam conftest.$ac_ext
3967fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003968
jfigusc7e66e32013-05-08 11:32:55 -04003969 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003970fi
jfigusc7e66e32013-05-08 11:32:55 -04003971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3972$as_echo "$ac_cv_c_bigendian" >&6; }
3973 case $ac_cv_c_bigendian in #(
3974 yes)
3975 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3976;; #(
3977 no)
3978 ;; #(
3979 universal)
3980
3981$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3982
3983 ;; #(
3984 *)
3985 as_fn_error $? "unknown endianness
3986 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3987 esac
3988
3989
3990# Make sure we can run config.sub.
3991$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3992 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3993
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3995$as_echo_n "checking build system type... " >&6; }
3996if ${ac_cv_build+:} false; then :
3997 $as_echo_n "(cached) " >&6
3998else
3999 ac_build_alias=$build_alias
4000test "x$ac_build_alias" = x &&
4001 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4002test "x$ac_build_alias" = x &&
4003 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4004ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4005 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4006
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004007fi
jfigusc7e66e32013-05-08 11:32:55 -04004008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4009$as_echo "$ac_cv_build" >&6; }
4010case $ac_cv_build in
4011*-*-*) ;;
4012*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4013esac
4014build=$ac_cv_build
4015ac_save_IFS=$IFS; IFS='-'
4016set x $ac_cv_build
4017shift
4018build_cpu=$1
4019build_vendor=$2
4020shift; shift
4021# Remember, the first character of IFS is used to create $*,
4022# except with old shells:
4023build_os=$*
4024IFS=$ac_save_IFS
4025case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4026
4027
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4029$as_echo_n "checking host system type... " >&6; }
4030if ${ac_cv_host+:} false; then :
4031 $as_echo_n "(cached) " >&6
4032else
4033 if test "x$host_alias" = x; then
4034 ac_cv_host=$ac_cv_build
4035else
4036 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4037 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4038fi
4039
4040fi
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4042$as_echo "$ac_cv_host" >&6; }
4043case $ac_cv_host in
4044*-*-*) ;;
4045*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4046esac
4047host=$ac_cv_host
4048ac_save_IFS=$IFS; IFS='-'
4049set x $ac_cv_host
4050shift
4051host_cpu=$1
4052host_vendor=$2
4053shift; shift
4054# Remember, the first character of IFS is used to create $*,
4055# except with old shells:
4056host_os=$*
4057IFS=$ac_save_IFS
4058case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4059
4060
4061
4062case $host_cpu in
4063 i*86 | x86_64 )
4064
4065$as_echo "#define CPU_CISC 1" >>confdefs.h
4066
4067
4068$as_echo "#define HAVE_X86 1" >>confdefs.h
4069;;
4070 * )
4071 # CPU_RISC is only supported for big endian machines.
4072 if test "$ac_cv_c_bigendian" = "yes"; then
4073
4074$as_echo "#define CPU_RISC 1" >>confdefs.h
4075
4076 else
4077 $as_echo "#define CPU_CISC 1" >>confdefs.h
4078
4079 fi
4080 ;;
4081esac
4082
4083case $host_os in
4084 *cygwin*|*mingw* )
4085 EXE=.exe
4086 HOST_IS_WINDOWS=yes
4087 ;;
4088 * )
4089 EXE=""
4090 ;;
4091esac
4092 # define executable suffix; this is needed for `make clean'
4093
4094
4095# Check whether --enable-kernel-linux was given.
4096if test "${enable_kernel_linux+set}" = set; then :
4097 enableval=$enable_kernel_linux;
4098else
4099 enable_kernel_linux=no
4100fi
4101
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build for Linux kernel context" >&5
4103$as_echo_n "checking whether to build for Linux kernel context... " >&6; }
4104if test "$enable_kernel_linux" = "yes"; then
4105
4106$as_echo "#define SRTP_KERNEL 1" >>confdefs.h
4107
4108
4109$as_echo "#define SRTP_KERNEL_LINUX 1" >>confdefs.h
4110
4111fi
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_kernel_linux" >&5
4113$as_echo "$enable_kernel_linux" >&6; }
4114
4115if test "$cross_compiling" != yes -a "$HOST_IS_WINDOWS" != yes; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
4117$as_echo_n "checking for /dev/urandom... " >&6; }
4118if ${ac_cv_file__dev_urandom+:} false; then :
4119 $as_echo_n "(cached) " >&6
4120else
4121 test "$cross_compiling" = yes &&
4122 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4123if test -r "/dev/urandom"; then
4124 ac_cv_file__dev_urandom=yes
4125else
4126 ac_cv_file__dev_urandom=no
4127fi
4128fi
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
4130$as_echo "$ac_cv_file__dev_urandom" >&6; }
4131if test "x$ac_cv_file__dev_urandom" = xyes; then :
4132 DEV_URANDOM=/dev/urandom
4133else
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
4135$as_echo_n "checking for /dev/random... " >&6; }
4136if ${ac_cv_file__dev_random+:} false; then :
4137 $as_echo_n "(cached) " >&6
4138else
4139 test "$cross_compiling" = yes &&
4140 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4141if test -r "/dev/random"; then
4142 ac_cv_file__dev_random=yes
4143else
4144 ac_cv_file__dev_random=no
4145fi
4146fi
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
4148$as_echo "$ac_cv_file__dev_random" >&6; }
4149if test "x$ac_cv_file__dev_random" = xyes; then :
4150 DEV_URANDOM=/dev/random
4151fi
4152
4153fi
4154
4155fi
4156
4157
4158
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4160$as_echo_n "checking for ANSI C header files... " >&6; }
4161if ${ac_cv_header_stdc+:} false; then :
4162 $as_echo_n "(cached) " >&6
4163else
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165/* end confdefs.h. */
4166#include <stdlib.h>
4167#include <stdarg.h>
4168#include <string.h>
4169#include <float.h>
4170
4171int
4172main ()
4173{
4174
4175 ;
4176 return 0;
4177}
4178_ACEOF
4179if ac_fn_c_try_compile "$LINENO"; then :
4180 ac_cv_header_stdc=yes
4181else
4182 ac_cv_header_stdc=no
4183fi
4184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185
4186if test $ac_cv_header_stdc = yes; then
4187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189/* end confdefs.h. */
4190#include <string.h>
4191
4192_ACEOF
4193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4194 $EGREP "memchr" >/dev/null 2>&1; then :
4195
4196else
4197 ac_cv_header_stdc=no
4198fi
4199rm -f conftest*
4200
4201fi
4202
4203if test $ac_cv_header_stdc = yes; then
4204 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206/* end confdefs.h. */
4207#include <stdlib.h>
4208
4209_ACEOF
4210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4211 $EGREP "free" >/dev/null 2>&1; then :
4212
4213else
4214 ac_cv_header_stdc=no
4215fi
4216rm -f conftest*
4217
4218fi
4219
4220if test $ac_cv_header_stdc = yes; then
4221 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4222 if test "$cross_compiling" = yes; then :
4223 :
4224else
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226/* end confdefs.h. */
4227#include <ctype.h>
4228#include <stdlib.h>
4229#if ((' ' & 0x0FF) == 0x020)
4230# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4231# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4232#else
4233# define ISLOWER(c) \
4234 (('a' <= (c) && (c) <= 'i') \
4235 || ('j' <= (c) && (c) <= 'r') \
4236 || ('s' <= (c) && (c) <= 'z'))
4237# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4238#endif
4239
4240#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4241int
4242main ()
4243{
4244 int i;
4245 for (i = 0; i < 256; i++)
4246 if (XOR (islower (i), ISLOWER (i))
4247 || toupper (i) != TOUPPER (i))
4248 return 2;
4249 return 0;
4250}
4251_ACEOF
4252if ac_fn_c_try_run "$LINENO"; then :
4253
4254else
4255 ac_cv_header_stdc=no
4256fi
4257rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4258 conftest.$ac_objext conftest.beam conftest.$ac_ext
4259fi
4260
4261fi
4262fi
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4264$as_echo "$ac_cv_header_stdc" >&6; }
4265if test $ac_cv_header_stdc = yes; then
4266
4267$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4268
4269fi
4270
4271for ac_header in stdlib.h
4272do :
4273 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4274if test "x$ac_cv_header_stdlib_h" = xyes; then :
4275 cat >>confdefs.h <<_ACEOF
4276#define HAVE_STDLIB_H 1
4277_ACEOF
4278
4279fi
4280
4281done
4282
4283for ac_header in unistd.h
4284do :
4285 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4286if test "x$ac_cv_header_unistd_h" = xyes; then :
4287 cat >>confdefs.h <<_ACEOF
4288#define HAVE_UNISTD_H 1
4289_ACEOF
4290
4291fi
4292
4293done
4294
4295for ac_header in byteswap.h
4296do :
4297 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
4298if test "x$ac_cv_header_byteswap_h" = xyes; then :
4299 cat >>confdefs.h <<_ACEOF
4300#define HAVE_BYTESWAP_H 1
4301_ACEOF
4302
4303fi
4304
4305done
4306
4307for ac_header in stdint.h
4308do :
4309 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4310if test "x$ac_cv_header_stdint_h" = xyes; then :
4311 cat >>confdefs.h <<_ACEOF
4312#define HAVE_STDINT_H 1
4313_ACEOF
4314
4315fi
4316
4317done
4318
4319for ac_header in sys/uio.h
4320do :
4321 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
4322if test "x$ac_cv_header_sys_uio_h" = xyes; then :
4323 cat >>confdefs.h <<_ACEOF
4324#define HAVE_SYS_UIO_H 1
4325_ACEOF
4326
4327fi
4328
4329done
4330
4331for ac_header in inttypes.h
4332do :
4333 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4334if test "x$ac_cv_header_inttypes_h" = xyes; then :
4335 cat >>confdefs.h <<_ACEOF
4336#define HAVE_INTTYPES_H 1
4337_ACEOF
4338
4339fi
4340
4341done
4342
4343for ac_header in sys/types.h
4344do :
4345 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4346if test "x$ac_cv_header_sys_types_h" = xyes; then :
4347 cat >>confdefs.h <<_ACEOF
4348#define HAVE_SYS_TYPES_H 1
4349_ACEOF
4350
4351fi
4352
4353done
4354
4355for ac_header in machine/types.h
4356do :
4357 ac_fn_c_check_header_mongrel "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "$ac_includes_default"
4358if test "x$ac_cv_header_machine_types_h" = xyes; then :
4359 cat >>confdefs.h <<_ACEOF
4360#define HAVE_MACHINE_TYPES_H 1
4361_ACEOF
4362
4363fi
4364
4365done
4366
4367for ac_header in sys/int_types.h
4368do :
4369 ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default"
4370if test "x$ac_cv_header_sys_int_types_h" = xyes; then :
4371 cat >>confdefs.h <<_ACEOF
4372#define HAVE_SYS_INT_TYPES_H 1
4373_ACEOF
4374
4375fi
4376
4377done
4378
4379
4380for ac_header in sys/socket.h netinet/in.h arpa/inet.h
4381do :
4382 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4383ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4384if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4385 cat >>confdefs.h <<_ACEOF
4386#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4387_ACEOF
4388
4389fi
4390
4391done
4392
4393for ac_header in windows.h
4394do :
4395 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
4396if test "x$ac_cv_header_windows_h" = xyes; then :
4397 cat >>confdefs.h <<_ACEOF
4398#define HAVE_WINDOWS_H 1
4399_ACEOF
4400 for ac_header in winsock2.h
4401do :
4402 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4403if test "x$ac_cv_header_winsock2_h" = xyes; then :
4404 cat >>confdefs.h <<_ACEOF
4405#define HAVE_WINSOCK2_H 1
4406_ACEOF
4407
4408fi
4409
4410done
4411
4412fi
4413
4414done
4415
4416
4417for ac_header in syslog.h
4418do :
4419 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
4420if test "x$ac_cv_header_syslog_h" = xyes; then :
4421 cat >>confdefs.h <<_ACEOF
4422#define HAVE_SYSLOG_H 1
4423_ACEOF
4424
4425fi
4426
4427done
4428
4429
4430ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4431if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004432
David McGrewfec49dd2005-09-23 19:34:11 +00004433cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004434#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004435_ACEOF
4436
4437
4438fi
jfigusc7e66e32013-05-08 11:32:55 -04004439ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4440if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004441
4442cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004443#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004444_ACEOF
4445
4446
4447fi
jfigusc7e66e32013-05-08 11:32:55 -04004448ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4449if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004450
4451cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004452#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004453_ACEOF
4454
4455
4456fi
jfigusc7e66e32013-05-08 11:32:55 -04004457ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4458if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004459
4460cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004461#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004462_ACEOF
4463
4464
4465fi
jfigusc7e66e32013-05-08 11:32:55 -04004466ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4467if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004468
4469cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004470#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004471_ACEOF
4472
4473
4474fi
jfigusc7e66e32013-05-08 11:32:55 -04004475ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4476if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004477
4478cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004479#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004480_ACEOF
4481
4482
4483fi
jfigusc7e66e32013-05-08 11:32:55 -04004484ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4485if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004486
4487cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004488#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004489_ACEOF
4490
4491
4492fi
4493
jfigusc7e66e32013-05-08 11:32:55 -04004494# The cast to long int works around a bug in the HP C Compiler
4495# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4496# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4497# This bug is HP SR number 8606223364.
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4499$as_echo_n "checking size of unsigned long... " >&6; }
4500if ${ac_cv_sizeof_unsigned_long+:} false; then :
4501 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004502else
jfigusc7e66e32013-05-08 11:32:55 -04004503 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 +00004504
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004505else
4506 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4509as_fn_error 77 "cannot compute sizeof (unsigned long)
4510See \`config.log' for more details" "$LINENO" 5; }
4511 else
4512 ac_cv_sizeof_unsigned_long=0
4513 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004514fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004515
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004516fi
jfigusc7e66e32013-05-08 11:32:55 -04004517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4518$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004519
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004520
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004521
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004522cat >>confdefs.h <<_ACEOF
4523#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4524_ACEOF
4525
David McGrewfec49dd2005-09-23 19:34:11 +00004526
jfigusc7e66e32013-05-08 11:32:55 -04004527# The cast to long int works around a bug in the HP C Compiler
4528# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4529# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4530# This bug is HP SR number 8606223364.
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
4532$as_echo_n "checking size of unsigned long long... " >&6; }
4533if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
4534 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00004535else
jfigusc7e66e32013-05-08 11:32:55 -04004536 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 +00004537
David McGrewfec49dd2005-09-23 19:34:11 +00004538else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004539 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4542as_fn_error 77 "cannot compute sizeof (unsigned long long)
4543See \`config.log' for more details" "$LINENO" 5; }
4544 else
4545 ac_cv_sizeof_unsigned_long_long=0
4546 fi
David McGrewfec49dd2005-09-23 19:34:11 +00004547fi
4548
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004549fi
jfigusc7e66e32013-05-08 11:32:55 -04004550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
4551$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004552
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004553
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004554
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004555cat >>confdefs.h <<_ACEOF
4556#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00004557_ACEOF
4558
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004559
Cullen Jennings235513a2005-09-21 22:51:36 +00004560
jfigusc7e66e32013-05-08 11:32:55 -04004561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4562$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4563if ${ac_cv_c_const+:} false; then :
4564 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004565else
jfigusc7e66e32013-05-08 11:32:55 -04004566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004567/* end confdefs.h. */
4568
4569int
4570main ()
4571{
jfigusc7e66e32013-05-08 11:32:55 -04004572
Cullen Jennings235513a2005-09-21 22:51:36 +00004573#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04004574 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00004575 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04004576 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00004577 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04004578 char const *const *pcpcc;
4579 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00004580 /* NEC SVR4.0.2 mips cc rejects this. */
4581 struct point {int x, y;};
4582 static struct point const zero = {0,0};
4583 /* AIX XL C 1.02.0.0 rejects this.
4584 It does not let you subtract one const X* pointer from another in
4585 an arm of an if-expression whose if-part is not a constant
4586 expression */
4587 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04004588 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00004589 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04004590 ++pcpcc;
4591 ppc = (char**) pcpcc;
4592 pcpcc = (char const *const *) ppc;
4593 { /* SCO 3.2v4 cc rejects this sort of thing. */
4594 char tx;
4595 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00004596 char const *s = 0 ? (char *) 0 : (char const *) 0;
4597
4598 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04004599 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004600 }
4601 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4602 int x[] = {25, 17};
4603 const int *foo = &x[0];
4604 ++foo;
4605 }
4606 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4607 typedef const int *iptr;
4608 iptr p = 0;
4609 ++p;
4610 }
jfigusc7e66e32013-05-08 11:32:55 -04004611 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00004612 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04004613 struct s { int j; const int *ap[3]; } bx;
4614 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00004615 }
4616 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4617 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04004618 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004619 }
jfigusc7e66e32013-05-08 11:32:55 -04004620 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00004621#endif
4622
4623 ;
4624 return 0;
4625}
4626_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004627if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004628 ac_cv_c_const=yes
4629else
jfigusc7e66e32013-05-08 11:32:55 -04004630 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00004631fi
jfigusc7e66e32013-05-08 11:32:55 -04004632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004633fi
jfigusc7e66e32013-05-08 11:32:55 -04004634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4635$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004636if test $ac_cv_c_const = no; then
4637
jfigusc7e66e32013-05-08 11:32:55 -04004638$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004639
4640fi
4641
jfigusc7e66e32013-05-08 11:32:55 -04004642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4643$as_echo_n "checking for inline... " >&6; }
4644if ${ac_cv_c_inline+:} false; then :
4645 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004646else
4647 ac_cv_c_inline=no
4648for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04004649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004650/* end confdefs.h. */
4651#ifndef __cplusplus
4652typedef int foo_t;
4653static $ac_kw foo_t static_foo () {return 0; }
4654$ac_kw foo_t foo () {return 0; }
4655#endif
4656
4657_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004658if ac_fn_c_try_compile "$LINENO"; then :
4659 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00004660fi
jfigusc7e66e32013-05-08 11:32:55 -04004661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00004663done
4664
4665fi
jfigusc7e66e32013-05-08 11:32:55 -04004666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4667$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00004668
Cullen Jennings235513a2005-09-21 22:51:36 +00004669case $ac_cv_c_inline in
4670 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004671 *)
4672 case $ac_cv_c_inline in
4673 no) ac_val=;;
4674 *) ac_val=$ac_cv_c_inline;;
4675 esac
4676 cat >>confdefs.h <<_ACEOF
4677#ifndef __cplusplus
4678#define inline $ac_val
4679#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00004680_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00004681 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00004682esac
4683
jfigusc7e66e32013-05-08 11:32:55 -04004684ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4685if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004686
Cullen Jennings235513a2005-09-21 22:51:36 +00004687else
4688
4689cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004690#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00004691_ACEOF
4692
4693fi
4694
4695
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00004696for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04004697do :
4698 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4699ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4700if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004701 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004702#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00004703_ACEOF
4704
4705fi
4706done
4707
4708
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004709if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04004710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4711$as_echo_n "checking for socket in -lsocket... " >&6; }
4712if ${ac_cv_lib_socket_socket+:} false; then :
4713 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00004714else
4715 ac_check_lib_save_LIBS=$LIBS
4716LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04004717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004718/* end confdefs.h. */
4719
jfigusc7e66e32013-05-08 11:32:55 -04004720/* Override any GCC internal prototype to avoid an error.
4721 Use char because int might match the return type of a GCC
4722 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00004723#ifdef __cplusplus
4724extern "C"
4725#endif
David McGrewb67061f2005-09-28 14:23:06 +00004726char socket ();
4727int
4728main ()
4729{
jfigusc7e66e32013-05-08 11:32:55 -04004730return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00004731 ;
4732 return 0;
4733}
4734_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004735if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00004736 ac_cv_lib_socket_socket=yes
4737else
jfigusc7e66e32013-05-08 11:32:55 -04004738 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00004739fi
jfigusc7e66e32013-05-08 11:32:55 -04004740rm -f core conftest.err conftest.$ac_objext \
4741 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004742LIBS=$ac_check_lib_save_LIBS
4743fi
jfigusc7e66e32013-05-08 11:32:55 -04004744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4745$as_echo "$ac_cv_lib_socket_socket" >&6; }
4746if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00004747 cat >>confdefs.h <<_ACEOF
4748#define HAVE_LIBSOCKET 1
4749_ACEOF
4750
4751 LIBS="-lsocket $LIBS"
4752
4753fi
4754
jfigusc7e66e32013-05-08 11:32:55 -04004755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
4756$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004757 SAVELIBS="$LIBS"
4758 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04004759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004760/* end confdefs.h. */
4761
4762#include <winsock2.h>
4763
4764int
4765main ()
4766{
4767
4768socket(0, 0, 0);
4769
4770 ;
4771 return 0;
4772}
4773_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004774if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004775 ac_cv_func_socket=yes
jfigusc7e66e32013-05-08 11:32:55 -04004776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4777$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004778else
jfigusc7e66e32013-05-08 11:32:55 -04004779 LIBS="$SAVELIBS"
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004782fi
jfigusc7e66e32013-05-08 11:32:55 -04004783rm -f core conftest.err conftest.$ac_objext \
4784 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004785fi
David McGrewb67061f2005-09-28 14:23:06 +00004786
jfigusc7e66e32013-05-08 11:32:55 -04004787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5
4788$as_echo_n "checking whether to compile in debugging... " >&6; }
4789# Check whether --enable-debug was given.
4790if test "${enable_debug+set}" = set; then :
4791 enableval=$enable_debug;
David McGrewb67061f2005-09-28 14:23:06 +00004792else
4793 enable_debug=yes
jfigusc7e66e32013-05-08 11:32:55 -04004794fi
4795
David McGrewb67061f2005-09-28 14:23:06 +00004796if test "$enable_debug" = "yes"; then
4797
jfigusc7e66e32013-05-08 11:32:55 -04004798$as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004799
4800fi
jfigusc7e66e32013-05-08 11:32:55 -04004801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
4802$as_echo "$enable_debug" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004803
jfigusc7e66e32013-05-08 11:32:55 -04004804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5
4805$as_echo_n "checking whether to use ISMAcryp code... " >&6; }
4806# Check whether --enable-generic-aesicm was given.
4807if test "${enable_generic_aesicm+set}" = set; then :
4808 enableval=$enable_generic_aesicm;
David McGrewb67061f2005-09-28 14:23:06 +00004809else
4810 enable_generic_aesicm=no
jfigusc7e66e32013-05-08 11:32:55 -04004811fi
4812
David McGrewb67061f2005-09-28 14:23:06 +00004813if test "$enable_generic_aesicm" = "yes"; then
4814
jfigusc7e66e32013-05-08 11:32:55 -04004815$as_echo "#define GENERIC_AESICM 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04004816
jfigusa14b5a02013-03-29 12:24:12 -04004817fi
jfigusc7e66e32013-05-08 11:32:55 -04004818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5
4819$as_echo "$enable_generic_aesicm" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04004820
jfigusc7e66e32013-05-08 11:32:55 -04004821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
4822$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
4823# Check whether --enable-openssl was given.
4824if test "${enable_openssl+set}" = set; then :
4825 enableval=$enable_openssl;
4826else
4827 enable_openssl=no
4828fi
jfigusa14b5a02013-03-29 12:24:12 -04004829
jfigusc7e66e32013-05-08 11:32:55 -04004830if test "$enable_openssl" = "yes"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
4832$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
4833if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
4834 $as_echo_n "(cached) " >&6
4835else
4836 ac_check_lib_save_LIBS=$LIBS
4837LIBS="-lcrypto $LIBS"
4838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839/* end confdefs.h. */
4840
4841/* Override any GCC internal prototype to avoid an error.
4842 Use char because int might match the return type of a GCC
4843 builtin and then its argument prototype would still apply. */
4844#ifdef __cplusplus
4845extern "C"
4846#endif
4847char EVP_EncryptInit ();
4848int
4849main ()
4850{
4851return EVP_EncryptInit ();
4852 ;
4853 return 0;
4854}
4855_ACEOF
4856if ac_fn_c_try_link "$LINENO"; then :
4857 ac_cv_lib_crypto_EVP_EncryptInit=yes
4858else
4859 ac_cv_lib_crypto_EVP_EncryptInit=no
4860fi
4861rm -f core conftest.err conftest.$ac_objext \
4862 conftest$ac_exeext conftest.$ac_ext
4863LIBS=$ac_check_lib_save_LIBS
4864fi
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
4866$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
4867if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
4868 cat >>confdefs.h <<_ACEOF
4869#define HAVE_LIBCRYPTO 1
4870_ACEOF
4871
4872 LIBS="-lcrypto $LIBS"
4873
4874else
4875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4876$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jfigus5b22e372013-05-09 09:23:26 -04004877as_fn_error $? "can't find openssl >1.0.1 crypto lib
4878See \`config.log' for more details" "$LINENO" 5; }
4879fi
4880
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_ctr in -lcrypto" >&5
4882$as_echo_n "checking for EVP_aes_128_ctr in -lcrypto... " >&6; }
4883if ${ac_cv_lib_crypto_EVP_aes_128_ctr+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885else
4886 ac_check_lib_save_LIBS=$LIBS
4887LIBS="-lcrypto $LIBS"
4888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889/* end confdefs.h. */
4890
4891/* Override any GCC internal prototype to avoid an error.
4892 Use char because int might match the return type of a GCC
4893 builtin and then its argument prototype would still apply. */
4894#ifdef __cplusplus
4895extern "C"
4896#endif
4897char EVP_aes_128_ctr ();
4898int
4899main ()
4900{
4901return EVP_aes_128_ctr ();
4902 ;
4903 return 0;
4904}
4905_ACEOF
4906if ac_fn_c_try_link "$LINENO"; then :
4907 ac_cv_lib_crypto_EVP_aes_128_ctr=yes
4908else
4909 ac_cv_lib_crypto_EVP_aes_128_ctr=no
4910fi
4911rm -f core conftest.err conftest.$ac_objext \
4912 conftest$ac_exeext conftest.$ac_ext
4913LIBS=$ac_check_lib_save_LIBS
4914fi
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_ctr" >&5
4916$as_echo "$ac_cv_lib_crypto_EVP_aes_128_ctr" >&6; }
4917if test "x$ac_cv_lib_crypto_EVP_aes_128_ctr" = xyes; then :
4918 cat >>confdefs.h <<_ACEOF
4919#define HAVE_LIBCRYPTO 1
4920_ACEOF
4921
4922 LIBS="-lcrypto $LIBS"
4923
4924else
4925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4927as_fn_error $? "can't find openssl >1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04004928See \`config.log' for more details" "$LINENO" 5; }
4929fi
4930
4931
4932$as_echo "#define OPENSSL 1" >>confdefs.h
4933
4934 AES_ICM_OBJS=crypto/cipher/aes_icm_ossl.o
4935 RNG_OBJS=rand_source_ossl.o
4936 HMAC_OBJS=crypto/hash/hmac_ossl.o
4937 USE_OPENSSL=1
4938
4939else
4940 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o crypto/cipher/aes_cbc.o"
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random device to use" >&5
4942$as_echo_n "checking which random device to use... " >&6; }
4943 if test "$enable_kernel_linux" = "yes"; then
4944 RNG_OBJS=rand_linux_kernel.o
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux kernel builtin" >&5
4946$as_echo "Linux kernel builtin" >&6; }
4947 else
4948 RNG_OBJS=rand_source.o
4949 if test -n "$DEV_URANDOM"; then
4950
4951cat >>confdefs.h <<_ACEOF
4952#define DEV_URANDOM "$DEV_URANDOM"
4953_ACEOF
4954
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_URANDOM" >&5
4956$as_echo "$DEV_URANDOM" >&6; }
4957 else
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: standard rand() function..." >&5
4959$as_echo "standard rand() function..." >&6; }
4960 fi
4961 fi
4962 RNG_EXTRA_OBJS="crypto/rng/prng.o crypto/rng/ctr_prng.o"
4963 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
4964fi
4965
4966
4967
4968
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
4970$as_echo "$enable_openssl" >&6; }
4971
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use syslog for error reporting" >&5
4973$as_echo_n "checking whether to use syslog for error reporting... " >&6; }
4974# Check whether --enable-syslog was given.
4975if test "${enable_syslog+set}" = set; then :
4976 enableval=$enable_syslog;
David McGrewb67061f2005-09-28 14:23:06 +00004977else
4978 enable_syslog=no
jfigusc7e66e32013-05-08 11:32:55 -04004979fi
4980
David McGrewb67061f2005-09-28 14:23:06 +00004981if test "$enable_syslog" = "yes"; then
4982
jfigusc7e66e32013-05-08 11:32:55 -04004983$as_echo "#define USE_SYSLOG 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004984
4985fi
jfigusc7e66e32013-05-08 11:32:55 -04004986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_syslog" >&5
4987$as_echo "$enable_syslog" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004988
jfigusc7e66e32013-05-08 11:32:55 -04004989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5
4990$as_echo_n "checking whether to use stdout for error reporting... " >&6; }
4991# Check whether --enable-stdout was given.
4992if test "${enable_stdout+set}" = set; then :
4993 enableval=$enable_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00004994else
4995 enable_stdout=yes
jfigusc7e66e32013-05-08 11:32:55 -04004996fi
4997
David McGrewb67061f2005-09-28 14:23:06 +00004998if test "$enable_stdout" = "yes"; then
4999
jfigusc7e66e32013-05-08 11:32:55 -04005000$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005001
5002fi
jfigusc7e66e32013-05-08 11:32:55 -04005003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5
5004$as_echo "$enable_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005005
jfigusc7e66e32013-05-08 11:32:55 -04005006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5
5007$as_echo_n "checking whether to use /dev/console for error reporting... " >&6; }
5008# Check whether --enable-console was given.
5009if test "${enable_console+set}" = set; then :
5010 enableval=$enable_console;
David McGrewb67061f2005-09-28 14:23:06 +00005011else
5012 enable_console=no
jfigusc7e66e32013-05-08 11:32:55 -04005013fi
5014
David McGrewb67061f2005-09-28 14:23:06 +00005015if test "$enable_console" = "yes"; then
5016
jfigusc7e66e32013-05-08 11:32:55 -04005017$as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h
David McGrewb67061f2005-09-28 14:23:06 +00005018
5019
jfigusc7e66e32013-05-08 11:32:55 -04005020$as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005021
5022fi
jfigusc7e66e32013-05-08 11:32:55 -04005023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5
5024$as_echo "$enable_console" >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00005025
jfigusc7e66e32013-05-08 11:32:55 -04005026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GDOI key management" >&5
5027$as_echo_n "checking whether to use GDOI key management... " >&6; }
5028# Check whether --enable-gdoi was given.
5029if test "${enable_gdoi+set}" = set; then :
5030 enableval=$enable_gdoi;
David McGrewb67061f2005-09-28 14:23:06 +00005031else
5032 enable_gdoi=no
jfigusc7e66e32013-05-08 11:32:55 -04005033fi
5034
David McGrewb67061f2005-09-28 14:23:06 +00005035if test "$enable_gdoi" = "yes"; then
5036
jfigusc7e66e32013-05-08 11:32:55 -04005037$as_echo "#define SRTP_GDOI 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005038
5039 GDOI_OBJS=gdoi/srtp+gdoi.o
5040
5041fi
jfigusc7e66e32013-05-08 11:32:55 -04005042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gdoi" >&5
5043$as_echo "$enable_gdoi" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005044
jfigusc7e66e32013-05-08 11:32:55 -04005045ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00005046
5047
jfigusc7e66e32013-05-08 11:32:55 -04005048ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile"
5049
Cullen Jennings235513a2005-09-21 22:51:36 +00005050cat >confcache <<\_ACEOF
5051# This file is a shell script that caches the results of configure
5052# tests run on this system so they can be shared between configure
5053# scripts and configure runs, see configure's option --config-cache.
5054# It is not useful on other systems. If it contains results you don't
5055# want to keep, you may remove or edit it.
5056#
5057# config.status only pays attention to the cache file if you give it
5058# the --recheck option to rerun configure.
5059#
5060# `ac_cv_env_foo' variables (set or unset) will be overridden when
5061# loading this file, other *unset* `ac_cv_foo' will be assigned the
5062# following values.
5063
5064_ACEOF
5065
5066# The following way of writing the cache mishandles newlines in values,
5067# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04005068# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00005069# Ultrix sh set writes to stderr and can't be redirected directly,
5070# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04005071(
5072 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5073 eval ac_val=\$$ac_var
5074 case $ac_val in #(
5075 *${as_nl}*)
5076 case $ac_var in #(
5077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5078$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5079 esac
5080 case $ac_var in #(
5081 _ | IFS | as_nl) ;; #(
5082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5083 *) { eval $ac_var=; unset $ac_var;} ;;
5084 esac ;;
5085 esac
5086 done
5087
Cullen Jennings235513a2005-09-21 22:51:36 +00005088 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04005089 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5090 *${as_nl}ac_space=\ *)
5091 # `set' does not quote correctly, so add quotes: double-quote
5092 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00005093 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005094 "s/'/'\\\\''/g;
5095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04005096 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00005097 *)
5098 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04005099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005100 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005101 esac |
5102 sort
5103) |
Cullen Jennings235513a2005-09-21 22:51:36 +00005104 sed '
jfigusc7e66e32013-05-08 11:32:55 -04005105 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00005106 t clear
jfigusc7e66e32013-05-08 11:32:55 -04005107 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00005108 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5109 t end
jfigusc7e66e32013-05-08 11:32:55 -04005110 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5111 :end' >>confcache
5112if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5113 if test -w "$cache_file"; then
5114 if test "x$cache_file" != "x/dev/null"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5116$as_echo "$as_me: updating cache $cache_file" >&6;}
5117 if test ! -f "$cache_file" || test -h "$cache_file"; then
5118 cat confcache >"$cache_file"
5119 else
5120 case $cache_file in #(
5121 */* | ?:*)
5122 mv -f confcache "$cache_file"$$ &&
5123 mv -f "$cache_file"$$ "$cache_file" ;; #(
5124 *)
5125 mv -f confcache "$cache_file" ;;
5126 esac
5127 fi
5128 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005129 else
jfigusc7e66e32013-05-08 11:32:55 -04005130 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5131$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00005132 fi
5133fi
5134rm -f confcache
5135
5136test "x$prefix" = xNONE && prefix=$ac_default_prefix
5137# Let make expand exec_prefix.
5138test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5139
Cullen Jennings235513a2005-09-21 22:51:36 +00005140DEFS=-DHAVE_CONFIG_H
5141
5142ac_libobjs=
5143ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04005144U=
Cullen Jennings235513a2005-09-21 22:51:36 +00005145for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5146 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04005147 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5148 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5149 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5150 # will be set to the directory where LIBOBJS objects are built.
5151 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5152 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00005153done
5154LIBOBJS=$ac_libobjs
5155
5156LTLIBOBJS=$ac_ltlibobjs
5157
5158
5159
jfigusc7e66e32013-05-08 11:32:55 -04005160
5161: "${CONFIG_STATUS=./config.status}"
5162ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00005163ac_clean_files_save=$ac_clean_files
5164ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04005165{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5166$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5167as_write_fail=0
5168cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005169#! $SHELL
5170# Generated by $as_me.
5171# Run this file to recreate the current configuration.
5172# Compiler output produced by configure, useful for debugging
5173# configure, is in config.log if it exists.
5174
5175debug=false
5176ac_cs_recheck=false
5177ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04005178
Cullen Jennings235513a2005-09-21 22:51:36 +00005179SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04005180export SHELL
5181_ASEOF
5182cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5183## -------------------- ##
5184## M4sh Initialization. ##
5185## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00005186
jfigusc7e66e32013-05-08 11:32:55 -04005187# Be more Bourne compatible
5188DUALCASE=1; export DUALCASE # for MKS sh
5189if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005190 emulate sh
5191 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04005192 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00005193 # is contrary to our usage. Disable this feature.
5194 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04005195 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00005196else
jfigusc7e66e32013-05-08 11:32:55 -04005197 case `(set -o) 2>/dev/null` in #(
5198 *posix*) :
5199 set -o posix ;; #(
5200 *) :
5201 ;;
5202esac
Cullen Jennings235513a2005-09-21 22:51:36 +00005203fi
5204
5205
jfigusc7e66e32013-05-08 11:32:55 -04005206as_nl='
5207'
5208export as_nl
5209# Printing a long string crashes Solaris 7 /usr/bin/printf.
5210as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5211as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5212as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5213# Prefer a ksh shell builtin over an external printf program on Solaris,
5214# but without wasting forks for bash or zsh.
5215if test -z "$BASH_VERSION$ZSH_VERSION" \
5216 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5217 as_echo='print -r --'
5218 as_echo_n='print -rn --'
5219elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5220 as_echo='printf %s\n'
5221 as_echo_n='printf %s'
5222else
5223 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5224 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5225 as_echo_n='/usr/ucb/echo -n'
5226 else
5227 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5228 as_echo_n_body='eval
5229 arg=$1;
5230 case $arg in #(
5231 *"$as_nl"*)
5232 expr "X$arg" : "X\\(.*\\)$as_nl";
5233 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5234 esac;
5235 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5236 '
5237 export as_echo_n_body
5238 as_echo_n='sh -c $as_echo_n_body as_echo'
5239 fi
5240 export as_echo_body
5241 as_echo='sh -c $as_echo_body as_echo'
5242fi
5243
5244# The user is always right.
5245if test "${PATH_SEPARATOR+set}" != set; then
5246 PATH_SEPARATOR=:
5247 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5248 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5249 PATH_SEPARATOR=';'
5250 }
5251fi
5252
5253
5254# IFS
5255# We need space, tab and new line, in precisely that order. Quoting is
5256# there to prevent editors from complaining about space-tab.
5257# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5258# splitting by setting IFS to empty value.)
5259IFS=" "" $as_nl"
5260
5261# Find who we are. Look in the path if we contain no directory separator.
5262as_myself=
5263case $0 in #((
5264 *[\\/]* ) as_myself=$0 ;;
5265 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266for as_dir in $PATH
5267do
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5271 done
5272IFS=$as_save_IFS
5273
5274 ;;
5275esac
5276# We did not find ourselves, most probably we were run as `sh COMMAND'
5277# in which case we are not to be found in the path.
5278if test "x$as_myself" = x; then
5279 as_myself=$0
5280fi
5281if test ! -f "$as_myself"; then
5282 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5283 exit 1
5284fi
5285
5286# Unset variables that we do not need and which cause bugs (e.g. in
5287# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5288# suppresses any "Segmentation fault" message there. '((' could
5289# trigger a bug in pdksh 5.2.14.
5290for as_var in BASH_ENV ENV MAIL MAILPATH
5291do eval test x\${$as_var+set} = xset \
5292 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5293done
Cullen Jennings235513a2005-09-21 22:51:36 +00005294PS1='$ '
5295PS2='> '
5296PS4='+ '
5297
5298# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04005299LC_ALL=C
5300export LC_ALL
5301LANGUAGE=C
5302export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04005303
jfigusc7e66e32013-05-08 11:32:55 -04005304# CDPATH.
5305(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5306
5307
5308# as_fn_error STATUS ERROR [LINENO LOG_FD]
5309# ----------------------------------------
5310# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5311# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5312# script with STATUS, using 1 if that was 0.
5313as_fn_error ()
5314{
5315 as_status=$1; test $as_status -eq 0 && as_status=1
5316 if test "$4"; then
5317 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5318 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5319 fi
5320 $as_echo "$as_me: error: $2" >&2
5321 as_fn_exit $as_status
5322} # as_fn_error
5323
5324
5325# as_fn_set_status STATUS
5326# -----------------------
5327# Set $? to STATUS, without forking.
5328as_fn_set_status ()
5329{
5330 return $1
5331} # as_fn_set_status
5332
5333# as_fn_exit STATUS
5334# -----------------
5335# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5336as_fn_exit ()
5337{
5338 set +e
5339 as_fn_set_status $1
5340 exit $1
5341} # as_fn_exit
5342
5343# as_fn_unset VAR
5344# ---------------
5345# Portably unset VAR.
5346as_fn_unset ()
5347{
5348 { eval $1=; unset $1;}
5349}
5350as_unset=as_fn_unset
5351# as_fn_append VAR VALUE
5352# ----------------------
5353# Append the text in VALUE to the end of the definition contained in VAR. Take
5354# advantage of any shell optimizations that allow amortized linear growth over
5355# repeated appends, instead of the typical quadratic growth present in naive
5356# implementations.
5357if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5358 eval 'as_fn_append ()
5359 {
5360 eval $1+=\$2
5361 }'
5362else
5363 as_fn_append ()
5364 {
5365 eval $1=\$$1\$2
5366 }
5367fi # as_fn_append
5368
5369# as_fn_arith ARG...
5370# ------------------
5371# Perform arithmetic evaluation on the ARGs, and store the result in the
5372# global $as_val. Take advantage of shells that can avoid forks. The arguments
5373# must be portable across $(()) and expr.
5374if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5375 eval 'as_fn_arith ()
5376 {
5377 as_val=$(( $* ))
5378 }'
5379else
5380 as_fn_arith ()
5381 {
5382 as_val=`expr "$@" || test $? -eq 1`
5383 }
5384fi # as_fn_arith
5385
5386
5387if expr a : '\(a\)' >/dev/null 2>&1 &&
5388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005389 as_expr=expr
5390else
5391 as_expr=false
5392fi
5393
jfigusc7e66e32013-05-08 11:32:55 -04005394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005395 as_basename=basename
5396else
5397 as_basename=false
5398fi
5399
jfigusc7e66e32013-05-08 11:32:55 -04005400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5401 as_dirname=dirname
5402else
5403 as_dirname=false
5404fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005405
jfigusc7e66e32013-05-08 11:32:55 -04005406as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00005407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5408 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04005409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5410$as_echo X/"$0" |
5411 sed '/^.*\/\([^/][^/]*\)\/*$/{
5412 s//\1/
5413 q
5414 }
5415 /^X\/\(\/\/\)$/{
5416 s//\1/
5417 q
5418 }
5419 /^X\/\(\/\).*/{
5420 s//\1/
5421 q
5422 }
5423 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005424
Cullen Jennings235513a2005-09-21 22:51:36 +00005425# Avoid depending upon Character Ranges.
5426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5429as_cr_digits='0123456789'
5430as_cr_alnum=$as_cr_Letters$as_cr_digits
5431
jfigusc7e66e32013-05-08 11:32:55 -04005432ECHO_C= ECHO_N= ECHO_T=
5433case `echo -n x` in #(((((
5434-n*)
5435 case `echo 'xy\c'` in
5436 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5437 xy) ECHO_C='\c';;
5438 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5439 ECHO_T=' ';;
5440 esac;;
5441*)
5442 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00005443esac
5444
Cullen Jennings235513a2005-09-21 22:51:36 +00005445rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04005446if test -d conf$$.dir; then
5447 rm -f conf$$.dir/conf$$.file
5448else
5449 rm -f conf$$.dir
5450 mkdir conf$$.dir 2>/dev/null
5451fi
5452if (echo >conf$$.file) 2>/dev/null; then
5453 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005454 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04005455 # ... but there are two gotchas:
5456 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5457 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5458 # In both cases, we have to default to `cp -pR'.
5459 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5460 as_ln_s='cp -pR'
5461 elif ln conf$$.file conf$$ 2>/dev/null; then
5462 as_ln_s=ln
5463 else
5464 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005465 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005466else
jfigusc7e66e32013-05-08 11:32:55 -04005467 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005468fi
jfigusc7e66e32013-05-08 11:32:55 -04005469rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5470rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00005471
jfigusc7e66e32013-05-08 11:32:55 -04005472
5473# as_fn_mkdir_p
5474# -------------
5475# Create "$as_dir" as a directory, including parents if necessary.
5476as_fn_mkdir_p ()
5477{
5478
5479 case $as_dir in #(
5480 -*) as_dir=./$as_dir;;
5481 esac
5482 test -d "$as_dir" || eval $as_mkdir_p || {
5483 as_dirs=
5484 while :; do
5485 case $as_dir in #(
5486 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5487 *) as_qdir=$as_dir;;
5488 esac
5489 as_dirs="'$as_qdir' $as_dirs"
5490 as_dir=`$as_dirname -- "$as_dir" ||
5491$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5492 X"$as_dir" : 'X\(//\)[^/]' \| \
5493 X"$as_dir" : 'X\(//\)$' \| \
5494 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5495$as_echo X"$as_dir" |
5496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5497 s//\1/
5498 q
5499 }
5500 /^X\(\/\/\)[^/].*/{
5501 s//\1/
5502 q
5503 }
5504 /^X\(\/\/\)$/{
5505 s//\1/
5506 q
5507 }
5508 /^X\(\/\).*/{
5509 s//\1/
5510 q
5511 }
5512 s/.*/./; q'`
5513 test -d "$as_dir" && break
5514 done
5515 test -z "$as_dirs" || eval "mkdir $as_dirs"
5516 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5517
5518
5519} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005520if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04005521 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00005522else
David McGrewfec49dd2005-09-23 19:34:11 +00005523 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00005524 as_mkdir_p=false
5525fi
5526
jfigusc7e66e32013-05-08 11:32:55 -04005527
5528# as_fn_executable_p FILE
5529# -----------------------
5530# Test if FILE is an executable regular file.
5531as_fn_executable_p ()
5532{
5533 test -f "$1" && test -x "$1"
5534} # as_fn_executable_p
5535as_test_x='test -x'
5536as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005537
5538# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00005539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005540
5541# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00005542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005543
5544
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005545exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04005546## ----------------------------------- ##
5547## Main body of $CONFIG_STATUS script. ##
5548## ----------------------------------- ##
5549_ASEOF
5550test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005551
jfigusc7e66e32013-05-08 11:32:55 -04005552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5553# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00005554# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04005555# values after options handling.
5556ac_log="
Cullen Jennings235513a2005-09-21 22:51:36 +00005557This file was extended by $as_me, which was
jfigusc7e66e32013-05-08 11:32:55 -04005558generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00005559
5560 CONFIG_FILES = $CONFIG_FILES
5561 CONFIG_HEADERS = $CONFIG_HEADERS
5562 CONFIG_LINKS = $CONFIG_LINKS
5563 CONFIG_COMMANDS = $CONFIG_COMMANDS
5564 $ $0 $@
5565
jfigusc7e66e32013-05-08 11:32:55 -04005566on `(hostname || uname -n) 2>/dev/null | sed 1q`
5567"
5568
Cullen Jennings235513a2005-09-21 22:51:36 +00005569_ACEOF
5570
jfigusc7e66e32013-05-08 11:32:55 -04005571case $ac_config_files in *"
5572"*) set x $ac_config_files; shift; ac_config_files=$*;;
5573esac
5574
5575case $ac_config_headers in *"
5576"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5577esac
5578
5579
5580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005581# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04005582config_files="$ac_config_files"
5583config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00005584
jfigusc7e66e32013-05-08 11:32:55 -04005585_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005586
jfigusc7e66e32013-05-08 11:32:55 -04005587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005588ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04005589\`$as_me' instantiates files and other configuration actions
5590from templates according to the current configuration. Unless the files
5591and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00005592
jfigusc7e66e32013-05-08 11:32:55 -04005593Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00005594
5595 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04005596 -V, --version print version number and configuration settings, then exit
5597 --config print configuration, then exit
5598 -q, --quiet, --silent
5599 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00005600 -d, --debug don't remove temporary files
5601 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04005602 --file=FILE[:TEMPLATE]
5603 instantiate the configuration file FILE
5604 --header=FILE[:TEMPLATE]
5605 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00005606
5607Configuration files:
5608$config_files
5609
5610Configuration headers:
5611$config_headers
5612
jfigusc7e66e32013-05-08 11:32:55 -04005613Report bugs to the package provider."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005614
jfigusc7e66e32013-05-08 11:32:55 -04005615_ACEOF
5616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5617ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00005618ac_cs_version="\\
5619config.status
jfigusc7e66e32013-05-08 11:32:55 -04005620configured by $0, generated by GNU Autoconf 2.69,
5621 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00005622
jfigusc7e66e32013-05-08 11:32:55 -04005623Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00005624This config.status script is free software; the Free Software Foundation
5625gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04005626
5627ac_pwd='$ac_pwd'
5628srcdir='$srcdir'
5629INSTALL='$INSTALL'
5630test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00005631_ACEOF
5632
jfigusc7e66e32013-05-08 11:32:55 -04005633cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5634# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00005635ac_need_defaults=:
5636while test $# != 0
5637do
5638 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04005639 --*=?*)
5640 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5641 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005642 ac_shift=:
5643 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005644 --*=)
5645 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5646 ac_optarg=
5647 ac_shift=:
5648 ;;
5649 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00005650 ac_option=$1
5651 ac_optarg=$2
5652 ac_shift=shift
5653 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005654 esac
5655
5656 case $ac_option in
5657 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00005658 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5659 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04005660 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5661 $as_echo "$ac_cs_version"; exit ;;
5662 --config | --confi | --conf | --con | --co | --c )
5663 $as_echo "$ac_cs_config"; exit ;;
5664 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00005665 debug=: ;;
5666 --file | --fil | --fi | --f )
5667 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005668 case $ac_optarg in
5669 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5670 '') as_fn_error $? "missing file argument" ;;
5671 esac
5672 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005673 ac_need_defaults=false;;
5674 --header | --heade | --head | --hea )
5675 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005676 case $ac_optarg in
5677 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5678 esac
5679 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005680 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04005681 --he | --h)
5682 # Conflict between --help and --header
5683 as_fn_error $? "ambiguous option: \`$1'
5684Try \`$0 --help' for more information.";;
5685 --help | --hel | -h )
5686 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5688 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5689 ac_cs_silent=: ;;
5690
5691 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04005692 -*) as_fn_error $? "unrecognized option: \`$1'
5693Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005694
jfigusc7e66e32013-05-08 11:32:55 -04005695 *) as_fn_append ac_config_targets " $1"
5696 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005697
5698 esac
5699 shift
5700done
5701
5702ac_configure_extra_args=
5703
5704if $ac_cs_silent; then
5705 exec 6>/dev/null
5706 ac_configure_extra_args="$ac_configure_extra_args --silent"
5707fi
5708
5709_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005711if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04005712 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5713 shift
5714 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5715 CONFIG_SHELL='$SHELL'
5716 export CONFIG_SHELL
5717 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00005718fi
5719
5720_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5722exec 5>>config.log
5723{
5724 echo
5725 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5726## Running $as_me. ##
5727_ASBOX
5728 $as_echo "$ac_log"
5729} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005730
jfigusc7e66e32013-05-08 11:32:55 -04005731_ACEOF
5732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5733_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005734
jfigusc7e66e32013-05-08 11:32:55 -04005735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005736
jfigusc7e66e32013-05-08 11:32:55 -04005737# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00005738for ac_config_target in $ac_config_targets
5739do
jfigusc7e66e32013-05-08 11:32:55 -04005740 case $ac_config_target in
5741 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
5742 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5743 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
5744 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5745
5746 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005747 esac
5748done
5749
jfigusc7e66e32013-05-08 11:32:55 -04005750
Cullen Jennings235513a2005-09-21 22:51:36 +00005751# If the user did not use the arguments to specify the items to instantiate,
5752# then the envvar interface is used. Set only those that are not.
5753# We use the long form for the default assignment because of an extremely
5754# bizarre bug on SunOS 4.1.3.
5755if $ac_need_defaults; then
5756 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5757 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5758fi
5759
5760# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04005761# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00005762# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04005763# Hook for its removal unless debugging.
5764# Note that there is a small window in which the directory will not be cleaned:
5765# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00005766$debug ||
5767{
jfigusc7e66e32013-05-08 11:32:55 -04005768 tmp= ac_tmp=
5769 trap 'exit_status=$?
5770 : "${ac_tmp:=$tmp}"
5771 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5772' 0
5773 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00005774}
Cullen Jennings235513a2005-09-21 22:51:36 +00005775# Create a (secure) tmp directory for tmp files.
5776
5777{
jfigusc7e66e32013-05-08 11:32:55 -04005778 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5779 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00005780} ||
5781{
jfigusc7e66e32013-05-08 11:32:55 -04005782 tmp=./conf$$-$RANDOM
5783 (umask 077 && mkdir "$tmp")
5784} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5785ac_tmp=$tmp
5786
5787# Set up the scripts for CONFIG_FILES section.
5788# No need to generate them if there are no CONFIG_FILES.
5789# This happens for instance with `./config.status config.h'.
5790if test -n "$CONFIG_FILES"; then
5791
5792
5793ac_cr=`echo X | tr X '\015'`
5794# On cygwin, bash can eat \r inside `` if the user requested igncr.
5795# But we know of no other shell where ac_cr would be empty at this
5796# point, so we can use a bashism as a fallback.
5797if test "x$ac_cr" = x; then
5798 eval ac_cr=\$\'\\r\'
5799fi
5800ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5801if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5802 ac_cs_awk_cr='\\r'
5803else
5804 ac_cs_awk_cr=$ac_cr
5805fi
5806
5807echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5808_ACEOF
5809
5810
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005811{
jfigusc7e66e32013-05-08 11:32:55 -04005812 echo "cat >conf$$subs.awk <<_ACEOF" &&
5813 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5814 echo "_ACEOF"
5815} >conf$$subs.sh ||
5816 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5817ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5818ac_delim='%!_!# '
5819for ac_last_try in false false false false false :; do
5820 . ./conf$$subs.sh ||
5821 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5822
5823 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5824 if test $ac_delim_n = $ac_delim_num; then
5825 break
5826 elif $ac_last_try; then
5827 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5828 else
5829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5830 fi
5831done
5832rm -f conf$$subs.sh
5833
5834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5835cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5836_ACEOF
5837sed -n '
5838h
5839s/^/S["/; s/!.*/"]=/
5840p
5841g
5842s/^[^!]*!//
5843:repl
5844t repl
5845s/'"$ac_delim"'$//
5846t delim
5847:nl
5848h
5849s/\(.\{148\}\)..*/\1/
5850t more1
5851s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5852p
5853n
5854b repl
5855:more1
5856s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5857p
5858g
5859s/.\{148\}//
5860t nl
5861:delim
5862h
5863s/\(.\{148\}\)..*/\1/
5864t more2
5865s/["\\]/\\&/g; s/^/"/; s/$/"/
5866p
5867b
5868:more2
5869s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5870p
5871g
5872s/.\{148\}//
5873t delim
5874' <conf$$subs.awk | sed '
5875/^[^""]/{
5876 N
5877 s/\n//
5878}
5879' >>$CONFIG_STATUS || ac_write_fail=1
5880rm -f conf$$subs.awk
5881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5882_ACAWK
5883cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5884 for (key in S) S_is_set[key] = 1
5885 FS = ""
5886
5887}
5888{
5889 line = $ 0
5890 nfields = split(line, field, "@")
5891 substed = 0
5892 len = length(field[1])
5893 for (i = 2; i < nfields; i++) {
5894 key = field[i]
5895 keylen = length(key)
5896 if (S_is_set[key]) {
5897 value = S[key]
5898 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5899 len += length(value) + length(field[++i])
5900 substed = 1
5901 } else
5902 len += 1 + keylen
5903 }
5904
5905 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005906}
jfigusa14b5a02013-03-29 12:24:12 -04005907
jfigusc7e66e32013-05-08 11:32:55 -04005908_ACAWK
5909_ACEOF
5910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5911if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5912 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5913else
5914 cat
5915fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5916 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04005917_ACEOF
5918
jfigusc7e66e32013-05-08 11:32:55 -04005919# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5920# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5921# trailing colons and then remove the whole line if VPATH becomes empty
5922# (actually we leave an empty line to preserve line numbers).
5923if test "x$srcdir" = x.; then
5924 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5925h
5926s///
5927s/^/:/
5928s/[ ]*$/:/
5929s/:\$(srcdir):/:/g
5930s/:\${srcdir}:/:/g
5931s/:@srcdir@:/:/g
5932s/^:*//
5933s/:*$//
5934x
5935s/\(=[ ]*\).*/\1/
5936G
5937s/\n//
5938s/^[^=]*=[ ]*$//
5939}'
5940fi
jfigusa14b5a02013-03-29 12:24:12 -04005941
jfigusc7e66e32013-05-08 11:32:55 -04005942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005943fi # test -n "$CONFIG_FILES"
5944
jfigusc7e66e32013-05-08 11:32:55 -04005945# Set up the scripts for CONFIG_HEADERS section.
5946# No need to generate them if there are no CONFIG_HEADERS.
5947# This happens for instance with `./config.status Makefile'.
5948if test -n "$CONFIG_HEADERS"; then
5949cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5950BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00005951_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005952
5953# Transform confdefs.h into an awk script `defines.awk', embedded as
5954# here-document in config.status, that substitutes the proper values into
5955# config.h.in to produce config.h.
5956
5957# Create a delimiter string that does not exist in confdefs.h, to ease
5958# handling of long lines.
5959ac_delim='%!_!# '
5960for ac_last_try in false false :; do
5961 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5962 if test -z "$ac_tt"; then
5963 break
5964 elif $ac_last_try; then
5965 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5966 else
5967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5968 fi
5969done
5970
5971# For the awk script, D is an array of macro values keyed by name,
5972# likewise P contains macro parameters if any. Preserve backslash
5973# newline sequences.
5974
5975ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5976sed -n '
5977s/.\{148\}/&'"$ac_delim"'/g
5978t rset
5979:rset
5980s/^[ ]*#[ ]*define[ ][ ]*/ /
5981t def
5982d
5983:def
5984s/\\$//
5985t bsnl
5986s/["\\]/\\&/g
5987s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5988D["\1"]=" \3"/p
5989s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5990d
5991:bsnl
5992s/["\\]/\\&/g
5993s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5994D["\1"]=" \3\\\\\\n"\\/p
5995t cont
5996s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5997t cont
5998d
5999:cont
6000n
6001s/.\{148\}/&'"$ac_delim"'/g
6002t clear
6003:clear
6004s/\\$//
6005t bsnlc
6006s/["\\]/\\&/g; s/^/"/; s/$/"/p
6007d
6008:bsnlc
6009s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6010b cont
6011' <confdefs.h | sed '
6012s/'"$ac_delim"'/"\\\
6013"/g' >>$CONFIG_STATUS || ac_write_fail=1
6014
6015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6016 for (key in D) D_is_set[key] = 1
6017 FS = ""
6018}
6019/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6020 line = \$ 0
6021 split(line, arg, " ")
6022 if (arg[1] == "#") {
6023 defundef = arg[2]
6024 mac1 = arg[3]
6025 } else {
6026 defundef = substr(arg[1], 2)
6027 mac1 = arg[2]
6028 }
6029 split(mac1, mac2, "(") #)
6030 macro = mac2[1]
6031 prefix = substr(line, 1, index(line, defundef) - 1)
6032 if (D_is_set[macro]) {
6033 # Preserve the white space surrounding the "#".
6034 print prefix "define", macro P[macro] D[macro]
6035 next
6036 } else {
6037 # Replace #undef with comments. This is necessary, for example,
6038 # in the case of _POSIX_SOURCE, which is predefined and required
6039 # on some systems where configure will not decide to define it.
6040 if (defundef == "undef") {
6041 print "/*", prefix defundef, macro, "*/"
6042 next
6043 }
6044 }
6045}
6046{ print }
6047_ACAWK
6048_ACEOF
6049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6050 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6051fi # test -n "$CONFIG_HEADERS"
6052
6053
6054eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6055shift
6056for ac_tag
6057do
6058 case $ac_tag in
6059 :[FHLC]) ac_mode=$ac_tag; continue;;
6060 esac
6061 case $ac_mode$ac_tag in
6062 :[FHL]*:*);;
6063 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6064 :[FH]-) ac_tag=-:-;;
6065 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6066 esac
6067 ac_save_IFS=$IFS
6068 IFS=:
6069 set x $ac_tag
6070 IFS=$ac_save_IFS
6071 shift
6072 ac_file=$1
6073 shift
6074
6075 case $ac_mode in
6076 :L) ac_source=$1;;
6077 :[FH])
6078 ac_file_inputs=
6079 for ac_f
6080 do
6081 case $ac_f in
6082 -) ac_f="$ac_tmp/stdin";;
6083 *) # Look for the file first in the build tree, then in the source tree
6084 # (if the path is not absolute). The absolute path cannot be DOS-style,
6085 # because $ac_f cannot contain `:'.
6086 test -f "$ac_f" ||
6087 case $ac_f in
6088 [\\/$]*) false;;
6089 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6090 esac ||
6091 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6092 esac
6093 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6094 as_fn_append ac_file_inputs " '$ac_f'"
6095 done
6096
6097 # Let's still pretend it is `configure' which instantiates (i.e., don't
6098 # use $as_me), people would be surprised to read:
6099 # /* config.h. Generated by config.status. */
6100 configure_input='Generated from '`
6101 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6102 `' by configure.'
6103 if test x"$ac_file" != x-; then
6104 configure_input="$ac_file. $configure_input"
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6106$as_echo "$as_me: creating $ac_file" >&6;}
6107 fi
6108 # Neutralize special characters interpreted by sed in replacement strings.
6109 case $configure_input in #(
6110 *\&* | *\|* | *\\* )
6111 ac_sed_conf_input=`$as_echo "$configure_input" |
6112 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6113 *) ac_sed_conf_input=$configure_input;;
6114 esac
6115
6116 case $ac_tag in
6117 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6118 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6119 esac
6120 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006121 esac
6122
jfigusc7e66e32013-05-08 11:32:55 -04006123 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006124$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006125 X"$ac_file" : 'X\(//\)[^/]' \| \
6126 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006127 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6128$as_echo X"$ac_file" |
6129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6130 s//\1/
6131 q
6132 }
6133 /^X\(\/\/\)[^/].*/{
6134 s//\1/
6135 q
6136 }
6137 /^X\(\/\/\)$/{
6138 s//\1/
6139 q
6140 }
6141 /^X\(\/\).*/{
6142 s//\1/
6143 q
6144 }
6145 s/.*/./; q'`
6146 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006147 ac_builddir=.
6148
jfigusc7e66e32013-05-08 11:32:55 -04006149case "$ac_dir" in
6150.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6151*)
6152 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6153 # A ".." for each directory in $ac_dir_suffix.
6154 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6155 case $ac_top_builddir_sub in
6156 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6157 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6158 esac ;;
6159esac
6160ac_abs_top_builddir=$ac_pwd
6161ac_abs_builddir=$ac_pwd$ac_dir_suffix
6162# for backward compatibility:
6163ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00006164
6165case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04006166 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00006167 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04006168 ac_top_srcdir=$ac_top_builddir_sub
6169 ac_abs_top_srcdir=$ac_pwd ;;
6170 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00006171 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04006172 ac_top_srcdir=$srcdir
6173 ac_abs_top_srcdir=$srcdir ;;
6174 *) # Relative name.
6175 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6176 ac_top_srcdir=$ac_top_build_prefix$srcdir
6177 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006178esac
jfigusc7e66e32013-05-08 11:32:55 -04006179ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00006180
Cullen Jennings235513a2005-09-21 22:51:36 +00006181
jfigusc7e66e32013-05-08 11:32:55 -04006182 case $ac_mode in
6183 :F)
6184 #
6185 # CONFIG_FILE
6186 #
Cullen Jennings235513a2005-09-21 22:51:36 +00006187
David McGrewb67061f2005-09-28 14:23:06 +00006188 case $INSTALL in
6189 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04006190 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00006191 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006192_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006193
6194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6195# If the template does not know about datarootdir, expand it.
6196# FIXME: This hack should be removed a few years after 2.60.
6197ac_datarootdir_hack=; ac_datarootdir_seen=
6198ac_sed_dataroot='
6199/datarootdir/ {
6200 p
6201 q
6202}
6203/@datadir@/p
6204/@docdir@/p
6205/@infodir@/p
6206/@localedir@/p
6207/@mandir@/p'
6208case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6209*datarootdir*) ac_datarootdir_seen=yes;;
6210*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6212$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6213_ACEOF
6214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6215 ac_datarootdir_hack='
6216 s&@datadir@&$datadir&g
6217 s&@docdir@&$docdir&g
6218 s&@infodir@&$infodir&g
6219 s&@localedir@&$localedir&g
6220 s&@mandir@&$mandir&g
6221 s&\\\${datarootdir}&$datarootdir&g' ;;
6222esac
6223_ACEOF
6224
6225# Neutralize VPATH when `$srcdir' = `.'.
6226# Shell code in configure.ac might set extrasub.
6227# FIXME: do we really want to maintain this feature?
6228cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6229ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00006230$extrasub
6231_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006233:t
6234/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04006235s|@configure_input@|$ac_sed_conf_input|;t t
6236s&@top_builddir@&$ac_top_builddir_sub&;t t
6237s&@top_build_prefix@&$ac_top_build_prefix&;t t
6238s&@srcdir@&$ac_srcdir&;t t
6239s&@abs_srcdir@&$ac_abs_srcdir&;t t
6240s&@top_srcdir@&$ac_top_srcdir&;t t
6241s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6242s&@builddir@&$ac_builddir&;t t
6243s&@abs_builddir@&$ac_abs_builddir&;t t
6244s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6245s&@INSTALL@&$ac_INSTALL&;t t
6246$ac_datarootdir_hack
6247"
6248eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6249 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00006250
jfigusc7e66e32013-05-08 11:32:55 -04006251test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6252 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6253 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6254 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6256which seems to be undefined. Please make sure it is defined" >&5
6257$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6258which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006259
jfigusc7e66e32013-05-08 11:32:55 -04006260 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006261 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04006262 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6263 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6264 esac \
6265 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6266 ;;
6267 :H)
6268 #
6269 # CONFIG_HEADER
6270 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006271 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04006272 {
6273 $as_echo "/* $configure_input */" \
6274 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6275 } >"$ac_tmp/config.h" \
6276 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6277 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6279$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006280 else
jfigusc7e66e32013-05-08 11:32:55 -04006281 rm -f "$ac_file"
6282 mv "$ac_tmp/config.h" "$ac_file" \
6283 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006284 fi
6285 else
jfigusc7e66e32013-05-08 11:32:55 -04006286 $as_echo "/* $configure_input */" \
6287 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6288 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006289 fi
jfigusc7e66e32013-05-08 11:32:55 -04006290 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006291
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006292
jfigusc7e66e32013-05-08 11:32:55 -04006293 esac
6294
6295done # for ac_tag
6296
6297
6298as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006299_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006300ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04006301
jfigusc7e66e32013-05-08 11:32:55 -04006302test $ac_write_fail = 0 ||
6303 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6304
Cullen Jennings235513a2005-09-21 22:51:36 +00006305
6306# configure is writing to config.log, and then calls config.status.
6307# config.status does its own redirection, appending to config.log.
6308# Unfortunately, on DOS this fails, as config.log is still kept open
6309# by configure, so config.status won't be able to write to it; its
6310# output is simply discarded. So we exec the FD to /dev/null,
6311# effectively closing config.log, so it can be properly (re)opened and
6312# appended to by config.status. When coming back to configure, we
6313# need to make the FD available again.
6314if test "$no_create" != yes; then
6315 ac_cs_success=:
6316 ac_config_status_args=
6317 test "$silent" = yes &&
6318 ac_config_status_args="$ac_config_status_args --quiet"
6319 exec 5>/dev/null
6320 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6321 exec 5>>config.log
6322 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6323 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04006324 $ac_cs_success || as_fn_exit 1
6325fi
6326if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6328$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006329fi
6330
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00006331
6332# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04006333as_dir=crypto/ae_xfm; as_fn_mkdir_p
6334as_dir=crypto/cipher; as_fn_mkdir_p
6335as_dir=crypto/hash; as_fn_mkdir_p
6336as_dir=crypto/kernel; as_fn_mkdir_p
6337as_dir=crypto/math; as_fn_mkdir_p
6338as_dir=crypto/replay; as_fn_mkdir_p
6339as_dir=crypto/rng; as_fn_mkdir_p
6340as_dir=crypto/test; as_fn_mkdir_p
6341as_dir=doc; as_fn_mkdir_p
6342as_dir=srtp; as_fn_mkdir_p
6343as_dir=tables; as_fn_mkdir_p
6344as_dir=test; as_fn_mkdir_p