libctf: look for BSD versus GNU qsort_r signatures
[deliverable/binutils-gdb.git] / libctf / configure
CommitLineData
0e65dfba
NA
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libctf library 1.2.0-pre.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_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
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# 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
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 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'`
456
457# 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
464
465 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 |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 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; }
487
488 # 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
492 # 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
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498}
499
500ECHO_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';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if 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
522 as_ln_s='ln -s'
523 # ... 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'
533 fi
534else
535 as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='libctf library'
579PACKAGE_TARNAME='libctf-library'
580PACKAGE_VERSION='1.2.0-pre'
581PACKAGE_STRING='libctf library 1.2.0-pre'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585ac_unique_file="ctf-impl.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600# include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605# include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_header_list=
6b22174f 623ac_func_list=
0e65dfba
NA
624ac_subst_vars='am__EXEEXT_FALSE
625am__EXEEXT_TRUE
626LTLIBOBJS
627LIBOBJS
6b22174f
NA
628NEED_CTF_QSORT_R_FALSE
629NEED_CTF_QSORT_R_TRUE
a0486bac
JM
630zlibinc
631zlibdir
0e65dfba
NA
632ac_libctf_warn_cflags
633MAINT
634MAINTAINER_MODE_FALSE
635MAINTAINER_MODE_TRUE
636WERROR
637WARN_PEDANTIC
638c_warn
639warn
640ac_ct_AR
641AR
642RANLIB
643AM_BACKSLASH
644AM_DEFAULT_VERBOSITY
645AM_DEFAULT_V
646AM_V
647am__fastdepCC_FALSE
648am__fastdepCC_TRUE
649CCDEPMODE
650am__nodep
651AMDEPBACKSLASH
652AMDEP_FALSE
653AMDEP_TRUE
654am__quote
655am__include
656DEPDIR
657am__untar
658am__tar
659AMTAR
660am__leading_dot
661SET_MAKE
662AWK
663mkdir_p
664MKDIR_P
665INSTALL_STRIP_PROGRAM
666STRIP
667install_sh
668MAKEINFO
669AUTOHEADER
670AUTOMAKE
671AUTOCONF
672ACLOCAL
673VERSION
674PACKAGE
675CYGPATH_W
676am__isrc
677INSTALL_DATA
678INSTALL_SCRIPT
679INSTALL_PROGRAM
680EGREP
681GREP
682CPP
683OBJEXT
684EXEEXT
685ac_ct_CC
686CPPFLAGS
687LDFLAGS
688CFLAGS
689CC
690target_alias
691host_alias
692build_alias
693LIBS
694ECHO_T
695ECHO_N
696ECHO_C
697DEFS
698mandir
699localedir
700libdir
701psdir
702pdfdir
703dvidir
704htmldir
705infodir
706docdir
707oldincludedir
708includedir
709localstatedir
710sharedstatedir
711sysconfdir
712datadir
713datarootdir
714libexecdir
715sbindir
716bindir
717program_transform_name
718prefix
719exec_prefix
720PACKAGE_URL
721PACKAGE_BUGREPORT
722PACKAGE_STRING
723PACKAGE_VERSION
724PACKAGE_TARNAME
725PACKAGE_NAME
726PATH_SEPARATOR
727SHELL'
728ac_subst_files=''
729ac_user_opts='
730enable_option_checking
731enable_dependency_tracking
732enable_silent_rules
733enable_largefile
734enable_werror_always
735enable_maintainer_mode
a0486bac 736with_system_zlib
0e65dfba
NA
737'
738 ac_precious_vars='build_alias
739host_alias
740target_alias
741CC
742CFLAGS
743LDFLAGS
744LIBS
745CPPFLAGS
746CPP'
747
748
749# Initialize some variables set by options.
750ac_init_help=
751ac_init_version=false
752ac_unrecognized_opts=
753ac_unrecognized_sep=
754# The variables have the same names as the options, with
755# dashes changed to underlines.
756cache_file=/dev/null
757exec_prefix=NONE
758no_create=
759no_recursion=
760prefix=NONE
761program_prefix=NONE
762program_suffix=NONE
763program_transform_name=s,x,x,
764silent=
765site=
766srcdir=
767verbose=
768x_includes=NONE
769x_libraries=NONE
770
771# Installation directory options.
772# These are left unexpanded so users can "make install exec_prefix=/foo"
773# and all the variables that are supposed to be based on exec_prefix
774# by default will actually change.
775# Use braces instead of parens because sh, perl, etc. also accept them.
776# (The list follows the same order as the GNU Coding Standards.)
777bindir='${exec_prefix}/bin'
778sbindir='${exec_prefix}/sbin'
779libexecdir='${exec_prefix}/libexec'
780datarootdir='${prefix}/share'
781datadir='${datarootdir}'
782sysconfdir='${prefix}/etc'
783sharedstatedir='${prefix}/com'
784localstatedir='${prefix}/var'
785includedir='${prefix}/include'
786oldincludedir='/usr/include'
787docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788infodir='${datarootdir}/info'
789htmldir='${docdir}'
790dvidir='${docdir}'
791pdfdir='${docdir}'
792psdir='${docdir}'
793libdir='${exec_prefix}/lib'
794localedir='${datarootdir}/locale'
795mandir='${datarootdir}/man'
796
797ac_prev=
798ac_dashdash=
799for ac_option
800do
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
806 fi
807
808 case $ac_option in
809 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *=) ac_optarg= ;;
811 *) ac_optarg=yes ;;
812 esac
813
814 # Accept the important Cygnus configure options, so we can diagnose typos.
815
816 case $ac_dashdash$ac_option in
817 --)
818 ac_dashdash=yes ;;
819
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 ac_prev=bindir ;;
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823 bindir=$ac_optarg ;;
824
825 -build | --build | --buil | --bui | --bu)
826 ac_prev=build_alias ;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias=$ac_optarg ;;
829
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file=$ac_optarg ;;
836
837 --config-cache | -C)
838 cache_file=config.cache ;;
839
840 -datadir | --datadir | --datadi | --datad)
841 ac_prev=datadir ;;
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir=$ac_optarg ;;
844
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
851
852 -disable-* | --disable-*)
853 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856 as_fn_error $? "invalid feature name: $ac_useropt"
857 ac_useropt_orig=$ac_useropt
858 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859 case $ac_user_opts in
860 *"
861"enable_$ac_useropt"
862"*) ;;
863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
864 ac_unrecognized_sep=', ';;
865 esac
866 eval enable_$ac_useropt=no ;;
867
868 -docdir | --docdir | --docdi | --doc | --do)
869 ac_prev=docdir ;;
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871 docdir=$ac_optarg ;;
872
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874 ac_prev=dvidir ;;
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876 dvidir=$ac_optarg ;;
877
878 -enable-* | --enable-*)
879 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 as_fn_error $? "invalid feature name: $ac_useropt"
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
886 *"
887"enable_$ac_useropt"
888"*) ;;
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
891 esac
892 eval enable_$ac_useropt=\$ac_optarg ;;
893
894 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
895 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
896 | --exec | --exe | --ex)
897 ac_prev=exec_prefix ;;
898 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
899 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
900 | --exec=* | --exe=* | --ex=*)
901 exec_prefix=$ac_optarg ;;
902
903 -gas | --gas | --ga | --g)
904 # Obsolete; use --with-gas.
905 with_gas=yes ;;
906
907 -help | --help | --hel | --he | -h)
908 ac_init_help=long ;;
909 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
910 ac_init_help=recursive ;;
911 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
912 ac_init_help=short ;;
913
914 -host | --host | --hos | --ho)
915 ac_prev=host_alias ;;
916 -host=* | --host=* | --hos=* | --ho=*)
917 host_alias=$ac_optarg ;;
918
919 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
920 ac_prev=htmldir ;;
921 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
922 | --ht=*)
923 htmldir=$ac_optarg ;;
924
925 -includedir | --includedir | --includedi | --included | --include \
926 | --includ | --inclu | --incl | --inc)
927 ac_prev=includedir ;;
928 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
929 | --includ=* | --inclu=* | --incl=* | --inc=*)
930 includedir=$ac_optarg ;;
931
932 -infodir | --infodir | --infodi | --infod | --info | --inf)
933 ac_prev=infodir ;;
934 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
935 infodir=$ac_optarg ;;
936
937 -libdir | --libdir | --libdi | --libd)
938 ac_prev=libdir ;;
939 -libdir=* | --libdir=* | --libdi=* | --libd=*)
940 libdir=$ac_optarg ;;
941
942 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
943 | --libexe | --libex | --libe)
944 ac_prev=libexecdir ;;
945 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
946 | --libexe=* | --libex=* | --libe=*)
947 libexecdir=$ac_optarg ;;
948
949 -localedir | --localedir | --localedi | --localed | --locale)
950 ac_prev=localedir ;;
951 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
952 localedir=$ac_optarg ;;
953
954 -localstatedir | --localstatedir | --localstatedi | --localstated \
955 | --localstate | --localstat | --localsta | --localst | --locals)
956 ac_prev=localstatedir ;;
957 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
958 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
959 localstatedir=$ac_optarg ;;
960
961 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
962 ac_prev=mandir ;;
963 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
964 mandir=$ac_optarg ;;
965
966 -nfp | --nfp | --nf)
967 # Obsolete; use --without-fp.
968 with_fp=no ;;
969
970 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
971 | --no-cr | --no-c | -n)
972 no_create=yes ;;
973
974 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
975 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
976 no_recursion=yes ;;
977
978 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
979 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
980 | --oldin | --oldi | --old | --ol | --o)
981 ac_prev=oldincludedir ;;
982 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
983 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
984 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
985 oldincludedir=$ac_optarg ;;
986
987 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
988 ac_prev=prefix ;;
989 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
990 prefix=$ac_optarg ;;
991
992 -program-prefix | --program-prefix | --program-prefi | --program-pref \
993 | --program-pre | --program-pr | --program-p)
994 ac_prev=program_prefix ;;
995 -program-prefix=* | --program-prefix=* | --program-prefi=* \
996 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
997 program_prefix=$ac_optarg ;;
998
999 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1000 | --program-suf | --program-su | --program-s)
1001 ac_prev=program_suffix ;;
1002 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1003 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1004 program_suffix=$ac_optarg ;;
1005
1006 -program-transform-name | --program-transform-name \
1007 | --program-transform-nam | --program-transform-na \
1008 | --program-transform-n | --program-transform- \
1009 | --program-transform | --program-transfor \
1010 | --program-transfo | --program-transf \
1011 | --program-trans | --program-tran \
1012 | --progr-tra | --program-tr | --program-t)
1013 ac_prev=program_transform_name ;;
1014 -program-transform-name=* | --program-transform-name=* \
1015 | --program-transform-nam=* | --program-transform-na=* \
1016 | --program-transform-n=* | --program-transform-=* \
1017 | --program-transform=* | --program-transfor=* \
1018 | --program-transfo=* | --program-transf=* \
1019 | --program-trans=* | --program-tran=* \
1020 | --progr-tra=* | --program-tr=* | --program-t=*)
1021 program_transform_name=$ac_optarg ;;
1022
1023 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1024 ac_prev=pdfdir ;;
1025 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1026 pdfdir=$ac_optarg ;;
1027
1028 -psdir | --psdir | --psdi | --psd | --ps)
1029 ac_prev=psdir ;;
1030 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1031 psdir=$ac_optarg ;;
1032
1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034 | -silent | --silent | --silen | --sile | --sil)
1035 silent=yes ;;
1036
1037 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038 ac_prev=sbindir ;;
1039 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040 | --sbi=* | --sb=*)
1041 sbindir=$ac_optarg ;;
1042
1043 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045 | --sharedst | --shareds | --shared | --share | --shar \
1046 | --sha | --sh)
1047 ac_prev=sharedstatedir ;;
1048 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051 | --sha=* | --sh=*)
1052 sharedstatedir=$ac_optarg ;;
1053
1054 -site | --site | --sit)
1055 ac_prev=site ;;
1056 -site=* | --site=* | --sit=*)
1057 site=$ac_optarg ;;
1058
1059 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060 ac_prev=srcdir ;;
1061 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062 srcdir=$ac_optarg ;;
1063
1064 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065 | --syscon | --sysco | --sysc | --sys | --sy)
1066 ac_prev=sysconfdir ;;
1067 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069 sysconfdir=$ac_optarg ;;
1070
1071 -target | --target | --targe | --targ | --tar | --ta | --t)
1072 ac_prev=target_alias ;;
1073 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074 target_alias=$ac_optarg ;;
1075
1076 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1077 verbose=yes ;;
1078
1079 -version | --version | --versio | --versi | --vers | -V)
1080 ac_init_version=: ;;
1081
1082 -with-* | --with-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error $? "invalid package name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1090 *"
1091"with_$ac_useropt"
1092"*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval with_$ac_useropt=\$ac_optarg ;;
1097
1098 -without-* | --without-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error $? "invalid package name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1106 *"
1107"with_$ac_useropt"
1108"*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval with_$ac_useropt=no ;;
1113
1114 --x)
1115 # Obsolete; use --with-x.
1116 with_x=yes ;;
1117
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1124
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1131
1132 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1133Try \`$0 --help' for more information"
1134 ;;
1135
1136 *=*)
1137 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138 # Reject names that are not valid shell variable names.
1139 case $ac_envvar in #(
1140 '' | [0-9]* | *[!_$as_cr_alnum]* )
1141 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1142 esac
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1145
1146 *)
1147 # FIXME: should be removed in autoconf 3.0.
1148 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1152 ;;
1153
1154 esac
1155done
1156
1157if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 as_fn_error $? "missing argument to $ac_option"
1160fi
1161
1162if test -n "$ac_unrecognized_opts"; then
1163 case $enable_option_checking in
1164 no) ;;
1165 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1166 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167 esac
1168fi
1169
1170# Check all directory arguments for consistency.
1171for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172 datadir sysconfdir sharedstatedir localstatedir includedir \
1173 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174 libdir localedir mandir
1175do
1176 eval ac_val=\$$ac_var
1177 # Remove trailing slashes.
1178 case $ac_val in
1179 */ )
1180 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181 eval $ac_var=\$ac_val;;
1182 esac
1183 # Be sure to have absolute directory names.
1184 case $ac_val in
1185 [\\/$]* | ?:[\\/]* ) continue;;
1186 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187 esac
1188 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1189done
1190
1191# There might be people who depend on the old broken behavior: `$host'
1192# used to hold the argument of --host etc.
1193# FIXME: To remove some day.
1194build=$build_alias
1195host=$host_alias
1196target=$target_alias
1197
1198# FIXME: To remove some day.
1199if test "x$host_alias" != x; then
1200 if test "x$build_alias" = x; then
1201 cross_compiling=maybe
1202 elif test "x$build_alias" != "x$host_alias"; then
1203 cross_compiling=yes
1204 fi
1205fi
1206
1207ac_tool_prefix=
1208test -n "$host_alias" && ac_tool_prefix=$host_alias-
1209
1210test "$silent" = yes && exec 6>/dev/null
1211
1212
1213ac_pwd=`pwd` && test -n "$ac_pwd" &&
1214ac_ls_di=`ls -di .` &&
1215ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1216 as_fn_error $? "working directory cannot be determined"
1217test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218 as_fn_error $? "pwd does not report name of working directory"
1219
1220
1221# Find the source files, if location was not specified.
1222if test -z "$srcdir"; then
1223 ac_srcdir_defaulted=yes
1224 # Try the directory containing this script, then the parent directory.
1225 ac_confdir=`$as_dirname -- "$as_myself" ||
1226$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1227 X"$as_myself" : 'X\(//\)[^/]' \| \
1228 X"$as_myself" : 'X\(//\)$' \| \
1229 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1230$as_echo X"$as_myself" |
1231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1232 s//\1/
1233 q
1234 }
1235 /^X\(\/\/\)[^/].*/{
1236 s//\1/
1237 q
1238 }
1239 /^X\(\/\/\)$/{
1240 s//\1/
1241 q
1242 }
1243 /^X\(\/\).*/{
1244 s//\1/
1245 q
1246 }
1247 s/.*/./; q'`
1248 srcdir=$ac_confdir
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1250 srcdir=..
1251 fi
1252else
1253 ac_srcdir_defaulted=no
1254fi
1255if test ! -r "$srcdir/$ac_unique_file"; then
1256 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1257 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1258fi
1259ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1260ac_abs_confdir=`(
1261 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1262 pwd)`
1263# When building in place, set srcdir=.
1264if test "$ac_abs_confdir" = "$ac_pwd"; then
1265 srcdir=.
1266fi
1267# Remove unnecessary trailing slashes from srcdir.
1268# Double slashes in file names in object file debugging info
1269# mess up M-x gdb in Emacs.
1270case $srcdir in
1271*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1272esac
1273for ac_var in $ac_precious_vars; do
1274 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_env_${ac_var}_value=\$${ac_var}
1276 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1278done
1279
1280#
1281# Report the --help message.
1282#
1283if test "$ac_init_help" = "long"; then
1284 # Omit some internal or obsolete options to make the list less imposing.
1285 # This message is too long to be a string in the A/UX 3.1 sh.
1286 cat <<_ACEOF
1287\`configure' configures libctf library 1.2.0-pre to adapt to many kinds of systems.
1288
1289Usage: $0 [OPTION]... [VAR=VALUE]...
1290
1291To assign environment variables (e.g., CC, CFLAGS...), specify them as
1292VAR=VALUE. See below for descriptions of some of the useful variables.
1293
1294Defaults for the options are specified in brackets.
1295
1296Configuration:
1297 -h, --help display this help and exit
1298 --help=short display options specific to this package
1299 --help=recursive display the short help of all the included packages
1300 -V, --version display version information and exit
1301 -q, --quiet, --silent do not print \`checking ...' messages
1302 --cache-file=FILE cache test results in FILE [disabled]
1303 -C, --config-cache alias for \`--cache-file=config.cache'
1304 -n, --no-create do not create output files
1305 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1306
1307Installation directories:
1308 --prefix=PREFIX install architecture-independent files in PREFIX
1309 [$ac_default_prefix]
1310 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1311 [PREFIX]
1312
1313By default, \`make install' will install all the files in
1314\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1315an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1316for instance \`--prefix=\$HOME'.
1317
1318For better control, use the options below.
1319
1320Fine tuning of the installation directories:
1321 --bindir=DIR user executables [EPREFIX/bin]
1322 --sbindir=DIR system admin executables [EPREFIX/sbin]
1323 --libexecdir=DIR program executables [EPREFIX/libexec]
1324 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1325 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1326 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1327 --libdir=DIR object code libraries [EPREFIX/lib]
1328 --includedir=DIR C header files [PREFIX/include]
1329 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1330 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1331 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1332 --infodir=DIR info documentation [DATAROOTDIR/info]
1333 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1334 --mandir=DIR man documentation [DATAROOTDIR/man]
1335 --docdir=DIR documentation root [DATAROOTDIR/doc/libctf-library]
1336 --htmldir=DIR html documentation [DOCDIR]
1337 --dvidir=DIR dvi documentation [DOCDIR]
1338 --pdfdir=DIR pdf documentation [DOCDIR]
1339 --psdir=DIR ps documentation [DOCDIR]
1340_ACEOF
1341
1342 cat <<\_ACEOF
1343
1344Program names:
1345 --program-prefix=PREFIX prepend PREFIX to installed program names
1346 --program-suffix=SUFFIX append SUFFIX to installed program names
1347 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1348_ACEOF
1349fi
1350
1351if test -n "$ac_init_help"; then
1352 case $ac_init_help in
1353 short | recursive ) echo "Configuration of libctf library 1.2.0-pre:";;
1354 esac
1355 cat <<\_ACEOF
1356
1357Optional Features:
1358 --disable-option-checking ignore unrecognized --enable/--with options
1359 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1360 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1361 --enable-dependency-tracking
1362 do not reject slow dependency extractors
1363 --disable-dependency-tracking
1364 speeds up one-time build
1365 --enable-silent-rules less verbose build output (undo: "make V=1")
1366 --disable-silent-rules verbose build output (undo: "make V=0")
1367 --disable-largefile omit support for large files
1368 --enable-werror-always enable -Werror despite compiler version
1369 --enable-maintainer-mode
1370 enable make rules and dependencies not useful (and
1371 sometimes confusing) to the casual installer
1372
a0486bac
JM
1373Optional Packages:
1374 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1375 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1376 --with-system-zlib use installed libz
1377
0e65dfba
NA
1378Some influential environment variables:
1379 CC C compiler command
1380 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir>
1383 LIBS libraries to pass to the linker, e.g. -l<library>
1384 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir>
1386 CPP C preprocessor
1387
1388Use these variables to override the choices made by `configure' or to help
1389it to find libraries and programs with nonstandard names/locations.
1390
1391Report bugs to the package provider.
1392_ACEOF
1393ac_status=$?
1394fi
1395
1396if test "$ac_init_help" = "recursive"; then
1397 # If there are subdirs, report their specific --help.
1398 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399 test -d "$ac_dir" ||
1400 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1401 continue
1402 ac_builddir=.
1403
1404case "$ac_dir" in
1405.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406*)
1407 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1413 esac ;;
1414esac
1415ac_abs_top_builddir=$ac_pwd
1416ac_abs_builddir=$ac_pwd$ac_dir_suffix
1417# for backward compatibility:
1418ac_top_builddir=$ac_top_build_prefix
1419
1420case $srcdir in
1421 .) # We are building in place.
1422 ac_srcdir=.
1423 ac_top_srcdir=$ac_top_builddir_sub
1424 ac_abs_top_srcdir=$ac_pwd ;;
1425 [\\/]* | ?:[\\/]* ) # Absolute name.
1426 ac_srcdir=$srcdir$ac_dir_suffix;
1427 ac_top_srcdir=$srcdir
1428 ac_abs_top_srcdir=$srcdir ;;
1429 *) # Relative name.
1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1433esac
1434ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435
1436 cd "$ac_dir" || { ac_status=$?; continue; }
1437 # Check for guested configure.
1438 if test -f "$ac_srcdir/configure.gnu"; then
1439 echo &&
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
1442 echo &&
1443 $SHELL "$ac_srcdir/configure" --help=recursive
1444 else
1445 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446 fi || ac_status=$?
1447 cd "$ac_pwd" || { ac_status=$?; break; }
1448 done
1449fi
1450
1451test -n "$ac_init_help" && exit $ac_status
1452if $ac_init_version; then
1453 cat <<\_ACEOF
1454libctf library configure 1.2.0-pre
1455generated by GNU Autoconf 2.69
1456
1457Copyright (C) 2012 Free Software Foundation, Inc.
1458This configure script is free software; the Free Software Foundation
1459gives unlimited permission to copy, distribute and modify it.
1460_ACEOF
1461 exit
1462fi
1463
1464## ------------------------ ##
1465## Autoconf initialization. ##
1466## ------------------------ ##
1467
1468# ac_fn_c_try_compile LINENO
1469# --------------------------
1470# Try to compile conftest.$ac_ext, and return whether this succeeded.
1471ac_fn_c_try_compile ()
1472{
1473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474 rm -f conftest.$ac_objext
1475 if { { ac_try="$ac_compile"
1476case "(($ac_try" in
1477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478 *) ac_try_echo=$ac_try;;
1479esac
1480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481$as_echo "$ac_try_echo"; } >&5
1482 (eval "$ac_compile") 2>conftest.err
1483 ac_status=$?
1484 if test -s conftest.err; then
1485 grep -v '^ *+' conftest.err >conftest.er1
1486 cat conftest.er1 >&5
1487 mv -f conftest.er1 conftest.err
1488 fi
1489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1490 test $ac_status = 0; } && {
1491 test -z "$ac_c_werror_flag" ||
1492 test ! -s conftest.err
1493 } && test -s conftest.$ac_objext; then :
1494 ac_retval=0
1495else
1496 $as_echo "$as_me: failed program was:" >&5
1497sed 's/^/| /' conftest.$ac_ext >&5
1498
1499 ac_retval=1
1500fi
1501 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1502 as_fn_set_status $ac_retval
1503
1504} # ac_fn_c_try_compile
1505
1506# ac_fn_c_try_cpp LINENO
1507# ----------------------
1508# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1509ac_fn_c_try_cpp ()
1510{
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 if { { ac_try="$ac_cpp conftest.$ac_ext"
1513case "(($ac_try" in
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1516esac
1517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518$as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1520 ac_status=$?
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1525 fi
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } > conftest.i && {
1528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1530 }; then :
1531 ac_retval=0
1532else
1533 $as_echo "$as_me: failed program was:" >&5
1534sed 's/^/| /' conftest.$ac_ext >&5
1535
1536 ac_retval=1
1537fi
1538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539 as_fn_set_status $ac_retval
1540
1541} # ac_fn_c_try_cpp
1542
1543# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1544# -------------------------------------------------------
1545# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1546# the include files in INCLUDES and setting the cache variable VAR
1547# accordingly.
1548ac_fn_c_check_header_mongrel ()
1549{
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 if eval \${$3+:} false; then :
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1553$as_echo_n "checking for $2... " >&6; }
1554if eval \${$3+:} false; then :
1555 $as_echo_n "(cached) " >&6
1556fi
1557eval ac_res=\$$3
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1559$as_echo "$ac_res" >&6; }
1560else
1561 # Is the header compilable?
1562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1563$as_echo_n "checking $2 usability... " >&6; }
1564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1565/* end confdefs.h. */
1566$4
1567#include <$2>
1568_ACEOF
1569if ac_fn_c_try_compile "$LINENO"; then :
1570 ac_header_compiler=yes
1571else
1572 ac_header_compiler=no
1573fi
1574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1576$as_echo "$ac_header_compiler" >&6; }
1577
1578# Is the header present?
1579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1580$as_echo_n "checking $2 presence... " >&6; }
1581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1582/* end confdefs.h. */
1583#include <$2>
1584_ACEOF
1585if ac_fn_c_try_cpp "$LINENO"; then :
1586 ac_header_preproc=yes
1587else
1588 ac_header_preproc=no
1589fi
1590rm -f conftest.err conftest.i conftest.$ac_ext
1591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1592$as_echo "$ac_header_preproc" >&6; }
1593
1594# So? What about this header?
1595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1596 yes:no: )
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1598$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1600$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1601 ;;
1602 no:yes:* )
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1604$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1606$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1608$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1610$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1612$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1613 ;;
1614esac
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616$as_echo_n "checking for $2... " >&6; }
1617if eval \${$3+:} false; then :
1618 $as_echo_n "(cached) " >&6
1619else
1620 eval "$3=\$ac_header_compiler"
1621fi
1622eval ac_res=\$$3
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624$as_echo "$ac_res" >&6; }
1625fi
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627
1628} # ac_fn_c_check_header_mongrel
1629
1630# ac_fn_c_try_run LINENO
1631# ----------------------
1632# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1633# that executables *can* be run.
1634ac_fn_c_try_run ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_link"
1638case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641esac
1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643$as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_link") 2>&5
1645 ac_status=$?
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1648 { { case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651esac
1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653$as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_try") 2>&5
1655 ac_status=$?
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; }; }; then :
1658 ac_retval=0
1659else
1660 $as_echo "$as_me: program exited with status $ac_status" >&5
1661 $as_echo "$as_me: failed program was:" >&5
1662sed 's/^/| /' conftest.$ac_ext >&5
1663
1664 ac_retval=$ac_status
1665fi
1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status $ac_retval
1669
1670} # ac_fn_c_try_run
1671
1672# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1673# -------------------------------------------------------
1674# Tests whether HEADER exists and can be compiled using the include files in
1675# INCLUDES, setting the cache variable VAR accordingly.
1676ac_fn_c_check_header_compile ()
1677{
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680$as_echo_n "checking for $2... " >&6; }
1681if eval \${$3+:} false; then :
1682 $as_echo_n "(cached) " >&6
1683else
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685/* end confdefs.h. */
1686$4
1687#include <$2>
1688_ACEOF
1689if ac_fn_c_try_compile "$LINENO"; then :
1690 eval "$3=yes"
1691else
1692 eval "$3=no"
1693fi
1694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695fi
1696eval ac_res=\$$3
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698$as_echo "$ac_res" >&6; }
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700
1701} # ac_fn_c_check_header_compile
1702
1703# ac_fn_c_try_link LINENO
1704# -----------------------
1705# Try to link conftest.$ac_ext, and return whether this succeeded.
1706ac_fn_c_try_link ()
1707{
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext conftest$ac_exeext
1710 if { { ac_try="$ac_link"
1711case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>conftest.err
1718 ac_status=$?
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1723 fi
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest$ac_exeext && {
1729 test "$cross_compiling" = yes ||
1730 test -x conftest$ac_exeext
1731 }; then :
1732 ac_retval=0
1733else
1734 $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=1
1738fi
1739 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1740 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1741 # interfere with the next link command; also delete a directory that is
1742 # left behind by Apple's compiler. We do this before executing the actions.
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1746
1747} # ac_fn_c_try_link
1748
1749# ac_fn_c_check_func LINENO FUNC VAR
1750# ----------------------------------
1751# Tests whether FUNC exists, setting the cache variable VAR accordingly
1752ac_fn_c_check_func ()
1753{
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756$as_echo_n "checking for $2... " >&6; }
1757if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1759else
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761/* end confdefs.h. */
1762/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1764#define $2 innocuous_$2
1765
1766/* System header to define __stub macros and hopefully few prototypes,
1767 which can conflict with char $2 (); below.
1768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1769 <limits.h> exists even on freestanding compilers. */
1770
1771#ifdef __STDC__
1772# include <limits.h>
1773#else
1774# include <assert.h>
1775#endif
1776
1777#undef $2
1778
1779/* Override any GCC internal prototype to avoid an error.
1780 Use char because int might match the return type of a GCC
1781 builtin and then its argument prototype would still apply. */
1782#ifdef __cplusplus
1783extern "C"
1784#endif
1785char $2 ();
1786/* The GNU C library defines this for functions which it implements
1787 to always fail with ENOSYS. Some functions are actually named
1788 something starting with __ and the normal name is an alias. */
1789#if defined __stub_$2 || defined __stub___$2
1790choke me
1791#endif
1792
1793int
1794main ()
1795{
1796return $2 ();
1797 ;
1798 return 0;
1799}
1800_ACEOF
1801if ac_fn_c_try_link "$LINENO"; then :
1802 eval "$3=yes"
1803else
1804 eval "$3=no"
1805fi
1806rm -f core conftest.err conftest.$ac_objext \
1807 conftest$ac_exeext conftest.$ac_ext
1808fi
1809eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811$as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813
1814} # ac_fn_c_check_func
1815cat >config.log <<_ACEOF
1816This file contains any messages produced by compilers while
1817running configure, to aid debugging if configure makes a mistake.
1818
1819It was created by libctf library $as_me 1.2.0-pre, which was
1820generated by GNU Autoconf 2.69. Invocation command line was
1821
1822 $ $0 $@
1823
1824_ACEOF
1825exec 5>>config.log
1826{
1827cat <<_ASUNAME
1828## --------- ##
1829## Platform. ##
1830## --------- ##
1831
1832hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1833uname -m = `(uname -m) 2>/dev/null || echo unknown`
1834uname -r = `(uname -r) 2>/dev/null || echo unknown`
1835uname -s = `(uname -s) 2>/dev/null || echo unknown`
1836uname -v = `(uname -v) 2>/dev/null || echo unknown`
1837
1838/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1839/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1840
1841/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1842/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1843/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1844/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1845/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1846/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1847/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1848
1849_ASUNAME
1850
1851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852for as_dir in $PATH
1853do
1854 IFS=$as_save_IFS
1855 test -z "$as_dir" && as_dir=.
1856 $as_echo "PATH: $as_dir"
1857 done
1858IFS=$as_save_IFS
1859
1860} >&5
1861
1862cat >&5 <<_ACEOF
1863
1864
1865## ----------- ##
1866## Core tests. ##
1867## ----------- ##
1868
1869_ACEOF
1870
1871
1872# Keep a trace of the command line.
1873# Strip out --no-create and --no-recursion so they do not pile up.
1874# Strip out --silent because we don't want to record it for future runs.
1875# Also quote any args containing shell meta-characters.
1876# Make two passes to allow for proper duplicate-argument suppression.
1877ac_configure_args=
1878ac_configure_args0=
1879ac_configure_args1=
1880ac_must_keep_next=false
1881for ac_pass in 1 2
1882do
1883 for ac_arg
1884 do
1885 case $ac_arg in
1886 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1888 | -silent | --silent | --silen | --sile | --sil)
1889 continue ;;
1890 *\'*)
1891 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1892 esac
1893 case $ac_pass in
1894 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1895 2)
1896 as_fn_append ac_configure_args1 " '$ac_arg'"
1897 if test $ac_must_keep_next = true; then
1898 ac_must_keep_next=false # Got value, back to normal.
1899 else
1900 case $ac_arg in
1901 *=* | --config-cache | -C | -disable-* | --disable-* \
1902 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1903 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1904 | -with-* | --with-* | -without-* | --without-* | --x)
1905 case "$ac_configure_args0 " in
1906 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1907 esac
1908 ;;
1909 -* ) ac_must_keep_next=true ;;
1910 esac
1911 fi
1912 as_fn_append ac_configure_args " '$ac_arg'"
1913 ;;
1914 esac
1915 done
1916done
1917{ ac_configure_args0=; unset ac_configure_args0;}
1918{ ac_configure_args1=; unset ac_configure_args1;}
1919
1920# When interrupted or exit'd, cleanup temporary files, and complete
1921# config.log. We remove comments because anyway the quotes in there
1922# would cause problems or look ugly.
1923# WARNING: Use '\'' to represent an apostrophe within the trap.
1924# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1925trap 'exit_status=$?
1926 # Save into config.log some information that might help in debugging.
1927 {
1928 echo
1929
1930 $as_echo "## ---------------- ##
1931## Cache variables. ##
1932## ---------------- ##"
1933 echo
1934 # The following way of writing the cache mishandles newlines in values,
1935(
1936 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1937 eval ac_val=\$$ac_var
1938 case $ac_val in #(
1939 *${as_nl}*)
1940 case $ac_var in #(
1941 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1942$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1943 esac
1944 case $ac_var in #(
1945 _ | IFS | as_nl) ;; #(
1946 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1947 *) { eval $ac_var=; unset $ac_var;} ;;
1948 esac ;;
1949 esac
1950 done
1951 (set) 2>&1 |
1952 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1953 *${as_nl}ac_space=\ *)
1954 sed -n \
1955 "s/'\''/'\''\\\\'\'''\''/g;
1956 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1957 ;; #(
1958 *)
1959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1960 ;;
1961 esac |
1962 sort
1963)
1964 echo
1965
1966 $as_echo "## ----------------- ##
1967## Output variables. ##
1968## ----------------- ##"
1969 echo
1970 for ac_var in $ac_subst_vars
1971 do
1972 eval ac_val=\$$ac_var
1973 case $ac_val in
1974 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1975 esac
1976 $as_echo "$ac_var='\''$ac_val'\''"
1977 done | sort
1978 echo
1979
1980 if test -n "$ac_subst_files"; then
1981 $as_echo "## ------------------- ##
1982## File substitutions. ##
1983## ------------------- ##"
1984 echo
1985 for ac_var in $ac_subst_files
1986 do
1987 eval ac_val=\$$ac_var
1988 case $ac_val in
1989 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990 esac
1991 $as_echo "$ac_var='\''$ac_val'\''"
1992 done | sort
1993 echo
1994 fi
1995
1996 if test -s confdefs.h; then
1997 $as_echo "## ----------- ##
1998## confdefs.h. ##
1999## ----------- ##"
2000 echo
2001 cat confdefs.h
2002 echo
2003 fi
2004 test "$ac_signal" != 0 &&
2005 $as_echo "$as_me: caught signal $ac_signal"
2006 $as_echo "$as_me: exit $exit_status"
2007 } >&5
2008 rm -f core *.core core.conftest.* &&
2009 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2010 exit $exit_status
2011' 0
2012for ac_signal in 1 2 13 15; do
2013 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2014done
2015ac_signal=0
2016
2017# confdefs.h avoids OS command line length limits that DEFS can exceed.
2018rm -f -r conftest* confdefs.h
2019
2020$as_echo "/* confdefs.h */" > confdefs.h
2021
2022# Predefined preprocessor variables.
2023
2024cat >>confdefs.h <<_ACEOF
2025#define PACKAGE_NAME "$PACKAGE_NAME"
2026_ACEOF
2027
2028cat >>confdefs.h <<_ACEOF
2029#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2030_ACEOF
2031
2032cat >>confdefs.h <<_ACEOF
2033#define PACKAGE_VERSION "$PACKAGE_VERSION"
2034_ACEOF
2035
2036cat >>confdefs.h <<_ACEOF
2037#define PACKAGE_STRING "$PACKAGE_STRING"
2038_ACEOF
2039
2040cat >>confdefs.h <<_ACEOF
2041#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2042_ACEOF
2043
2044cat >>confdefs.h <<_ACEOF
2045#define PACKAGE_URL "$PACKAGE_URL"
2046_ACEOF
2047
2048
2049# Let the site file select an alternate cache file if it wants to.
2050# Prefer an explicitly selected file to automatically selected ones.
2051ac_site_file1=NONE
2052ac_site_file2=NONE
2053if test -n "$CONFIG_SITE"; then
2054 # We do not want a PATH search for config.site.
2055 case $CONFIG_SITE in #((
2056 -*) ac_site_file1=./$CONFIG_SITE;;
2057 */*) ac_site_file1=$CONFIG_SITE;;
2058 *) ac_site_file1=./$CONFIG_SITE;;
2059 esac
2060elif test "x$prefix" != xNONE; then
2061 ac_site_file1=$prefix/share/config.site
2062 ac_site_file2=$prefix/etc/config.site
2063else
2064 ac_site_file1=$ac_default_prefix/share/config.site
2065 ac_site_file2=$ac_default_prefix/etc/config.site
2066fi
2067for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2068do
2069 test "x$ac_site_file" = xNONE && continue
2070 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2072$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2073 sed 's/^/| /' "$ac_site_file" >&5
2074 . "$ac_site_file" \
2075 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077as_fn_error $? "failed to load site script $ac_site_file
2078See \`config.log' for more details" "$LINENO" 5; }
2079 fi
2080done
2081
2082if test -r "$cache_file"; then
2083 # Some versions of bash will fail to source /dev/null (special files
2084 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2085 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2087$as_echo "$as_me: loading cache $cache_file" >&6;}
2088 case $cache_file in
2089 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2090 *) . "./$cache_file";;
2091 esac
2092 fi
2093else
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2095$as_echo "$as_me: creating cache $cache_file" >&6;}
2096 >$cache_file
2097fi
2098
2099as_fn_append ac_header_list " stdlib.h"
2100as_fn_append ac_header_list " unistd.h"
2101as_fn_append ac_header_list " sys/param.h"
6b22174f 2102as_fn_append ac_func_list " qsort_r"
0e65dfba
NA
2103# Check that the precious variables saved in the cache have kept the same
2104# value.
2105ac_cache_corrupted=false
2106for ac_var in $ac_precious_vars; do
2107 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2108 eval ac_new_set=\$ac_env_${ac_var}_set
2109 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2110 eval ac_new_val=\$ac_env_${ac_var}_value
2111 case $ac_old_set,$ac_new_set in
2112 set,)
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2114$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2115 ac_cache_corrupted=: ;;
2116 ,set)
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2118$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2119 ac_cache_corrupted=: ;;
2120 ,);;
2121 *)
2122 if test "x$ac_old_val" != "x$ac_new_val"; then
2123 # differences in whitespace do not lead to failure.
2124 ac_old_val_w=`echo x $ac_old_val`
2125 ac_new_val_w=`echo x $ac_new_val`
2126 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2128$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2129 ac_cache_corrupted=:
2130 else
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2132$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2133 eval $ac_var=\$ac_old_val
2134 fi
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2136$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2138$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2139 fi;;
2140 esac
2141 # Pass precious variables to config.status.
2142 if test "$ac_new_set" = set; then
2143 case $ac_new_val in
2144 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2145 *) ac_arg=$ac_var=$ac_new_val ;;
2146 esac
2147 case " $ac_configure_args " in
2148 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2149 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2150 esac
2151 fi
2152done
2153if $ac_cache_corrupted; then
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2157$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2158 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2159fi
2160## -------------------- ##
2161## Main body of script. ##
2162## -------------------- ##
2163
2164ac_ext=c
2165ac_cpp='$CPP $CPPFLAGS'
2166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2168ac_compiler_gnu=$ac_cv_c_compiler_gnu
2169
2170
2171
2172
2173
2174
2175
2176ac_aux_dir=
2177for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2178 if test -f "$ac_dir/install-sh"; then
2179 ac_aux_dir=$ac_dir
2180 ac_install_sh="$ac_aux_dir/install-sh -c"
2181 break
2182 elif test -f "$ac_dir/install.sh"; then
2183 ac_aux_dir=$ac_dir
2184 ac_install_sh="$ac_aux_dir/install.sh -c"
2185 break
2186 elif test -f "$ac_dir/shtool"; then
2187 ac_aux_dir=$ac_dir
2188 ac_install_sh="$ac_aux_dir/shtool install -c"
2189 break
2190 fi
2191done
2192if test -z "$ac_aux_dir"; then
2193 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2194fi
2195
2196# These three variables are undocumented and unsupported,
2197# and are intended to be withdrawn in a future Autoconf release.
2198# They can cause serious problems if a builder's source tree is in a directory
2199# whose full name contains unusual characters.
2200ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2201ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2202ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2203
2204
2205# Expand $ac_aux_dir to an absolute path.
2206am_aux_dir=`cd "$ac_aux_dir" && pwd`
2207
2208ac_ext=c
2209ac_cpp='$CPP $CPPFLAGS'
2210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2212ac_compiler_gnu=$ac_cv_c_compiler_gnu
2213if test -n "$ac_tool_prefix"; then
2214 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2215set dummy ${ac_tool_prefix}gcc; ac_word=$2
2216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2217$as_echo_n "checking for $ac_word... " >&6; }
2218if ${ac_cv_prog_CC+:} false; then :
2219 $as_echo_n "(cached) " >&6
2220else
2221 if test -n "$CC"; then
2222 ac_cv_prog_CC="$CC" # Let the user override the test.
2223else
2224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225for as_dir in $PATH
2226do
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2231 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 break 2
2234 fi
2235done
2236 done
2237IFS=$as_save_IFS
2238
2239fi
2240fi
2241CC=$ac_cv_prog_CC
2242if test -n "$CC"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2244$as_echo "$CC" >&6; }
2245else
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2247$as_echo "no" >&6; }
2248fi
2249
2250
2251fi
2252if test -z "$ac_cv_prog_CC"; then
2253 ac_ct_CC=$CC
2254 # Extract the first word of "gcc", so it can be a program name with args.
2255set dummy gcc; ac_word=$2
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2257$as_echo_n "checking for $ac_word... " >&6; }
2258if ${ac_cv_prog_ac_ct_CC+:} false; then :
2259 $as_echo_n "(cached) " >&6
2260else
2261 if test -n "$ac_ct_CC"; then
2262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2263else
2264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265for as_dir in $PATH
2266do
2267 IFS=$as_save_IFS
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2271 ac_cv_prog_ac_ct_CC="gcc"
2272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 break 2
2274 fi
2275done
2276 done
2277IFS=$as_save_IFS
2278
2279fi
2280fi
2281ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282if test -n "$ac_ct_CC"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2284$as_echo "$ac_ct_CC" >&6; }
2285else
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2287$as_echo "no" >&6; }
2288fi
2289
2290 if test "x$ac_ct_CC" = x; then
2291 CC=""
2292 else
2293 case $cross_compiling:$ac_tool_warned in
2294yes:)
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2297ac_tool_warned=yes ;;
2298esac
2299 CC=$ac_ct_CC
2300 fi
2301else
2302 CC="$ac_cv_prog_CC"
2303fi
2304
2305if test -z "$CC"; then
2306 if test -n "$ac_tool_prefix"; then
2307 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2308set dummy ${ac_tool_prefix}cc; ac_word=$2
2309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2310$as_echo_n "checking for $ac_word... " >&6; }
2311if ${ac_cv_prog_CC+:} false; then :
2312 $as_echo_n "(cached) " >&6
2313else
2314 if test -n "$CC"; then
2315 ac_cv_prog_CC="$CC" # Let the user override the test.
2316else
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2324 ac_cv_prog_CC="${ac_tool_prefix}cc"
2325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2327 fi
2328done
2329 done
2330IFS=$as_save_IFS
2331
2332fi
2333fi
2334CC=$ac_cv_prog_CC
2335if test -n "$CC"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2337$as_echo "$CC" >&6; }
2338else
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2340$as_echo "no" >&6; }
2341fi
2342
2343
2344 fi
2345fi
2346if test -z "$CC"; then
2347 # Extract the first word of "cc", so it can be a program name with args.
2348set dummy cc; ac_word=$2
2349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2350$as_echo_n "checking for $ac_word... " >&6; }
2351if ${ac_cv_prog_CC+:} false; then :
2352 $as_echo_n "(cached) " >&6
2353else
2354 if test -n "$CC"; then
2355 ac_cv_prog_CC="$CC" # Let the user override the test.
2356else
2357 ac_prog_rejected=no
2358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359for as_dir in $PATH
2360do
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2366 ac_prog_rejected=yes
2367 continue
2368 fi
2369 ac_cv_prog_CC="cc"
2370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 break 2
2372 fi
2373done
2374 done
2375IFS=$as_save_IFS
2376
2377if test $ac_prog_rejected = yes; then
2378 # We found a bogon in the path, so make sure we never use it.
2379 set dummy $ac_cv_prog_CC
2380 shift
2381 if test $# != 0; then
2382 # We chose a different compiler from the bogus one.
2383 # However, it has the same basename, so the bogon will be chosen
2384 # first if we set CC to just the basename; use the full file name.
2385 shift
2386 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2387 fi
2388fi
2389fi
2390fi
2391CC=$ac_cv_prog_CC
2392if test -n "$CC"; then
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2394$as_echo "$CC" >&6; }
2395else
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2397$as_echo "no" >&6; }
2398fi
2399
2400
2401fi
2402if test -z "$CC"; then
2403 if test -n "$ac_tool_prefix"; then
2404 for ac_prog in cl.exe
2405 do
2406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2407set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2409$as_echo_n "checking for $ac_word... " >&6; }
2410if ${ac_cv_prog_CC+:} false; then :
2411 $as_echo_n "(cached) " >&6
2412else
2413 if test -n "$CC"; then
2414 ac_cv_prog_CC="$CC" # Let the user override the test.
2415else
2416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417for as_dir in $PATH
2418do
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2423 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 break 2
2426 fi
2427done
2428 done
2429IFS=$as_save_IFS
2430
2431fi
2432fi
2433CC=$ac_cv_prog_CC
2434if test -n "$CC"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2436$as_echo "$CC" >&6; }
2437else
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2439$as_echo "no" >&6; }
2440fi
2441
2442
2443 test -n "$CC" && break
2444 done
2445fi
2446if test -z "$CC"; then
2447 ac_ct_CC=$CC
2448 for ac_prog in cl.exe
2449do
2450 # Extract the first word of "$ac_prog", so it can be a program name with args.
2451set dummy $ac_prog; ac_word=$2
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453$as_echo_n "checking for $ac_word... " >&6; }
2454if ${ac_cv_prog_ac_ct_CC+:} false; then :
2455 $as_echo_n "(cached) " >&6
2456else
2457 if test -n "$ac_ct_CC"; then
2458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2459else
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467 ac_cv_prog_ac_ct_CC="$ac_prog"
2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2470 fi
2471done
2472 done
2473IFS=$as_save_IFS
2474
2475fi
2476fi
2477ac_ct_CC=$ac_cv_prog_ac_ct_CC
2478if test -n "$ac_ct_CC"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2480$as_echo "$ac_ct_CC" >&6; }
2481else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483$as_echo "no" >&6; }
2484fi
2485
2486
2487 test -n "$ac_ct_CC" && break
2488done
2489
2490 if test "x$ac_ct_CC" = x; then
2491 CC=""
2492 else
2493 case $cross_compiling:$ac_tool_warned in
2494yes:)
2495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2497ac_tool_warned=yes ;;
2498esac
2499 CC=$ac_ct_CC
2500 fi
2501fi
2502
2503fi
2504
2505
2506test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508as_fn_error $? "no acceptable C compiler found in \$PATH
2509See \`config.log' for more details" "$LINENO" 5; }
2510
2511# Provide some information about the compiler.
2512$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2513set X $ac_compile
2514ac_compiler=$2
2515for ac_option in --version -v -V -qversion; do
2516 { { ac_try="$ac_compiler $ac_option >&5"
2517case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520esac
2521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2522$as_echo "$ac_try_echo"; } >&5
2523 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2524 ac_status=$?
2525 if test -s conftest.err; then
2526 sed '10a\
2527... rest of stderr output deleted ...
2528 10q' conftest.err >conftest.er1
2529 cat conftest.er1 >&5
2530 fi
2531 rm -f conftest.er1 conftest.err
2532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2533 test $ac_status = 0; }
2534done
2535
2536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2537/* end confdefs.h. */
2538
2539int
2540main ()
2541{
2542
2543 ;
2544 return 0;
2545}
2546_ACEOF
2547ac_clean_files_save=$ac_clean_files
2548ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2549# Try to create an executable without -o first, disregard a.out.
2550# It will help us diagnose broken compilers, and finding out an intuition
2551# of exeext.
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2553$as_echo_n "checking whether the C compiler works... " >&6; }
2554ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2555
2556# The possible output files:
2557ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2558
2559ac_rmfiles=
2560for ac_file in $ac_files
2561do
2562 case $ac_file in
2563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2564 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2565 esac
2566done
2567rm -f $ac_rmfiles
2568
2569if { { ac_try="$ac_link_default"
2570case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2573esac
2574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2575$as_echo "$ac_try_echo"; } >&5
2576 (eval "$ac_link_default") 2>&5
2577 ac_status=$?
2578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2579 test $ac_status = 0; }; then :
2580 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2581# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2582# in a Makefile. We should not override ac_cv_exeext if it was cached,
2583# so that the user can short-circuit this test for compilers unknown to
2584# Autoconf.
2585for ac_file in $ac_files ''
2586do
2587 test -f "$ac_file" || continue
2588 case $ac_file in
2589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2590 ;;
2591 [ab].out )
2592 # We found the default executable, but exeext='' is most
2593 # certainly right.
2594 break;;
2595 *.* )
2596 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2597 then :; else
2598 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2599 fi
2600 # We set ac_cv_exeext here because the later test for it is not
2601 # safe: cross compilers may not add the suffix if given an `-o'
2602 # argument, so we may need to know it at that point already.
2603 # Even if this section looks crufty: it has the advantage of
2604 # actually working.
2605 break;;
2606 * )
2607 break;;
2608 esac
2609done
2610test "$ac_cv_exeext" = no && ac_cv_exeext=
2611
2612else
2613 ac_file=''
2614fi
2615if test -z "$ac_file"; then :
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617$as_echo "no" >&6; }
2618$as_echo "$as_me: failed program was:" >&5
2619sed 's/^/| /' conftest.$ac_ext >&5
2620
2621{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623as_fn_error 77 "C compiler cannot create executables
2624See \`config.log' for more details" "$LINENO" 5; }
2625else
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627$as_echo "yes" >&6; }
2628fi
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2630$as_echo_n "checking for C compiler default output file name... " >&6; }
2631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2632$as_echo "$ac_file" >&6; }
2633ac_exeext=$ac_cv_exeext
2634
2635rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2636ac_clean_files=$ac_clean_files_save
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2638$as_echo_n "checking for suffix of executables... " >&6; }
2639if { { ac_try="$ac_link"
2640case "(($ac_try" in
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2643esac
2644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2645$as_echo "$ac_try_echo"; } >&5
2646 (eval "$ac_link") 2>&5
2647 ac_status=$?
2648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2649 test $ac_status = 0; }; then :
2650 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2651# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2652# work properly (i.e., refer to `conftest.exe'), while it won't with
2653# `rm'.
2654for ac_file in conftest.exe conftest conftest.*; do
2655 test -f "$ac_file" || continue
2656 case $ac_file in
2657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2658 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2659 break;;
2660 * ) break;;
2661 esac
2662done
2663else
2664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2667See \`config.log' for more details" "$LINENO" 5; }
2668fi
2669rm -f conftest conftest$ac_cv_exeext
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2671$as_echo "$ac_cv_exeext" >&6; }
2672
2673rm -f conftest.$ac_ext
2674EXEEXT=$ac_cv_exeext
2675ac_exeext=$EXEEXT
2676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677/* end confdefs.h. */
2678#include <stdio.h>
2679int
2680main ()
2681{
2682FILE *f = fopen ("conftest.out", "w");
2683 return ferror (f) || fclose (f) != 0;
2684
2685 ;
2686 return 0;
2687}
2688_ACEOF
2689ac_clean_files="$ac_clean_files conftest.out"
2690# Check that the compiler produces executables we can run. If not, either
2691# the compiler is broken, or we cross compile.
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2693$as_echo_n "checking whether we are cross compiling... " >&6; }
2694if test "$cross_compiling" != yes; then
2695 { { ac_try="$ac_link"
2696case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699esac
2700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701$as_echo "$ac_try_echo"; } >&5
2702 (eval "$ac_link") 2>&5
2703 ac_status=$?
2704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2705 test $ac_status = 0; }
2706 if { ac_try='./conftest$ac_cv_exeext'
2707 { { case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710esac
2711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2712$as_echo "$ac_try_echo"; } >&5
2713 (eval "$ac_try") 2>&5
2714 ac_status=$?
2715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2716 test $ac_status = 0; }; }; then
2717 cross_compiling=no
2718 else
2719 if test "$cross_compiling" = maybe; then
2720 cross_compiling=yes
2721 else
2722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724as_fn_error $? "cannot run C compiled programs.
2725If you meant to cross compile, use \`--host'.
2726See \`config.log' for more details" "$LINENO" 5; }
2727 fi
2728 fi
2729fi
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2731$as_echo "$cross_compiling" >&6; }
2732
2733rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2734ac_clean_files=$ac_clean_files_save
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2736$as_echo_n "checking for suffix of object files... " >&6; }
2737if ${ac_cv_objext+:} false; then :
2738 $as_echo_n "(cached) " >&6
2739else
2740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741/* end confdefs.h. */
2742
2743int
2744main ()
2745{
2746
2747 ;
2748 return 0;
2749}
2750_ACEOF
2751rm -f conftest.o conftest.obj
2752if { { ac_try="$ac_compile"
2753case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2756esac
2757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2758$as_echo "$ac_try_echo"; } >&5
2759 (eval "$ac_compile") 2>&5
2760 ac_status=$?
2761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2762 test $ac_status = 0; }; then :
2763 for ac_file in conftest.o conftest.obj conftest.*; do
2764 test -f "$ac_file" || continue;
2765 case $ac_file in
2766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2767 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2768 break;;
2769 esac
2770done
2771else
2772 $as_echo "$as_me: failed program was:" >&5
2773sed 's/^/| /' conftest.$ac_ext >&5
2774
2775{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2777as_fn_error $? "cannot compute suffix of object files: cannot compile
2778See \`config.log' for more details" "$LINENO" 5; }
2779fi
2780rm -f conftest.$ac_cv_objext conftest.$ac_ext
2781fi
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2783$as_echo "$ac_cv_objext" >&6; }
2784OBJEXT=$ac_cv_objext
2785ac_objext=$OBJEXT
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2787$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2788if ${ac_cv_c_compiler_gnu+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790else
2791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2792/* end confdefs.h. */
2793
2794int
2795main ()
2796{
2797#ifndef __GNUC__
2798 choke me
2799#endif
2800
2801 ;
2802 return 0;
2803}
2804_ACEOF
2805if ac_fn_c_try_compile "$LINENO"; then :
2806 ac_compiler_gnu=yes
2807else
2808 ac_compiler_gnu=no
2809fi
2810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811ac_cv_c_compiler_gnu=$ac_compiler_gnu
2812
2813fi
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2815$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2816if test $ac_compiler_gnu = yes; then
2817 GCC=yes
2818else
2819 GCC=
2820fi
2821ac_test_CFLAGS=${CFLAGS+set}
2822ac_save_CFLAGS=$CFLAGS
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2824$as_echo_n "checking whether $CC accepts -g... " >&6; }
2825if ${ac_cv_prog_cc_g+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827else
2828 ac_save_c_werror_flag=$ac_c_werror_flag
2829 ac_c_werror_flag=yes
2830 ac_cv_prog_cc_g=no
2831 CFLAGS="-g"
2832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833/* end confdefs.h. */
2834
2835int
2836main ()
2837{
2838
2839 ;
2840 return 0;
2841}
2842_ACEOF
2843if ac_fn_c_try_compile "$LINENO"; then :
2844 ac_cv_prog_cc_g=yes
2845else
2846 CFLAGS=""
2847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848/* end confdefs.h. */
2849
2850int
2851main ()
2852{
2853
2854 ;
2855 return 0;
2856}
2857_ACEOF
2858if ac_fn_c_try_compile "$LINENO"; then :
2859
2860else
2861 ac_c_werror_flag=$ac_save_c_werror_flag
2862 CFLAGS="-g"
2863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864/* end confdefs.h. */
2865
2866int
2867main ()
2868{
2869
2870 ;
2871 return 0;
2872}
2873_ACEOF
2874if ac_fn_c_try_compile "$LINENO"; then :
2875 ac_cv_prog_cc_g=yes
2876fi
2877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2878fi
2879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880fi
2881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2882 ac_c_werror_flag=$ac_save_c_werror_flag
2883fi
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2885$as_echo "$ac_cv_prog_cc_g" >&6; }
2886if test "$ac_test_CFLAGS" = set; then
2887 CFLAGS=$ac_save_CFLAGS
2888elif test $ac_cv_prog_cc_g = yes; then
2889 if test "$GCC" = yes; then
2890 CFLAGS="-g -O2"
2891 else
2892 CFLAGS="-g"
2893 fi
2894else
2895 if test "$GCC" = yes; then
2896 CFLAGS="-O2"
2897 else
2898 CFLAGS=
2899 fi
2900fi
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2902$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2903if ${ac_cv_prog_cc_c89+:} false; then :
2904 $as_echo_n "(cached) " >&6
2905else
2906 ac_cv_prog_cc_c89=no
2907ac_save_CC=$CC
2908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2909/* end confdefs.h. */
2910#include <stdarg.h>
2911#include <stdio.h>
2912struct stat;
2913/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2914struct buf { int x; };
2915FILE * (*rcsopen) (struct buf *, struct stat *, int);
2916static char *e (p, i)
2917 char **p;
2918 int i;
2919{
2920 return p[i];
2921}
2922static char *f (char * (*g) (char **, int), char **p, ...)
2923{
2924 char *s;
2925 va_list v;
2926 va_start (v,p);
2927 s = g (p, va_arg (v,int));
2928 va_end (v);
2929 return s;
2930}
2931
2932/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2933 function prototypes and stuff, but not '\xHH' hex character constants.
2934 These don't provoke an error unfortunately, instead are silently treated
2935 as 'x'. The following induces an error, until -std is added to get
2936 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2937 array size at least. It's necessary to write '\x00'==0 to get something
2938 that's true only with -std. */
2939int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2940
2941/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2942 inside strings and character constants. */
2943#define FOO(x) 'x'
2944int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2945
2946int test (int i, double x);
2947struct s1 {int (*f) (int a);};
2948struct s2 {int (*f) (double a);};
2949int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2950int argc;
2951char **argv;
2952int
2953main ()
2954{
2955return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2956 ;
2957 return 0;
2958}
2959_ACEOF
2960for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2961 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2962do
2963 CC="$ac_save_CC $ac_arg"
2964 if ac_fn_c_try_compile "$LINENO"; then :
2965 ac_cv_prog_cc_c89=$ac_arg
2966fi
2967rm -f core conftest.err conftest.$ac_objext
2968 test "x$ac_cv_prog_cc_c89" != "xno" && break
2969done
2970rm -f conftest.$ac_ext
2971CC=$ac_save_CC
2972
2973fi
2974# AC_CACHE_VAL
2975case "x$ac_cv_prog_cc_c89" in
2976 x)
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2978$as_echo "none needed" >&6; } ;;
2979 xno)
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2981$as_echo "unsupported" >&6; } ;;
2982 *)
2983 CC="$CC $ac_cv_prog_cc_c89"
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2985$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2986esac
2987if test "x$ac_cv_prog_cc_c89" != xno; then :
2988
2989fi
2990
2991ac_ext=c
2992ac_cpp='$CPP $CPPFLAGS'
2993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2995ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996
2997ac_ext=c
2998ac_cpp='$CPP $CPPFLAGS'
2999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3003$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3004if ${am_cv_prog_cc_c_o+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006else
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008/* end confdefs.h. */
3009
3010int
3011main ()
3012{
3013
3014 ;
3015 return 0;
3016}
3017_ACEOF
3018 # Make sure it works both with $CC and with simple cc.
3019 # Following AC_PROG_CC_C_O, we do the test twice because some
3020 # compilers refuse to overwrite an existing .o file with -o,
3021 # though they will create one.
3022 am_cv_prog_cc_c_o=yes
3023 for am_i in 1 2; do
3024 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3025 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } \
3029 && test -f conftest2.$ac_objext; then
3030 : OK
3031 else
3032 am_cv_prog_cc_c_o=no
3033 break
3034 fi
3035 done
3036 rm -f core conftest*
3037 unset am_i
3038fi
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3040$as_echo "$am_cv_prog_cc_c_o" >&6; }
3041if test "$am_cv_prog_cc_c_o" != yes; then
3042 # Losing compiler, so override with the script.
3043 # FIXME: It is wrong to rewrite CC.
3044 # But if we don't then we get into trouble of one sort or another.
3045 # A longer-term fix would be to have automake use am__CC in this case,
3046 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3047 CC="$am_aux_dir/compile $CC"
3048fi
3049ac_ext=c
3050ac_cpp='$CPP $CPPFLAGS'
3051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054
3055
3056
3057ac_ext=c
3058ac_cpp='$CPP $CPPFLAGS'
3059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3063$as_echo_n "checking how to run the C preprocessor... " >&6; }
3064# On Suns, sometimes $CPP names a directory.
3065if test -n "$CPP" && test -d "$CPP"; then
3066 CPP=
3067fi
3068if test -z "$CPP"; then
3069 if ${ac_cv_prog_CPP+:} false; then :
3070 $as_echo_n "(cached) " >&6
3071else
3072 # Double quotes because CPP needs to be expanded
3073 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3074 do
3075 ac_preproc_ok=false
3076for ac_c_preproc_warn_flag in '' yes
3077do
3078 # Use a header file that comes with gcc, so configuring glibc
3079 # with a fresh cross-compiler works.
3080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3081 # <limits.h> exists even on freestanding compilers.
3082 # On the NeXT, cc -E runs the code through the compiler's parser,
3083 # not just through cpp. "Syntax error" is here to catch this case.
3084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085/* end confdefs.h. */
3086#ifdef __STDC__
3087# include <limits.h>
3088#else
3089# include <assert.h>
3090#endif
3091 Syntax error
3092_ACEOF
3093if ac_fn_c_try_cpp "$LINENO"; then :
3094
3095else
3096 # Broken: fails on valid input.
3097continue
3098fi
3099rm -f conftest.err conftest.i conftest.$ac_ext
3100
3101 # OK, works on sane cases. Now check whether nonexistent headers
3102 # can be detected and how.
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104/* end confdefs.h. */
3105#include <ac_nonexistent.h>
3106_ACEOF
3107if ac_fn_c_try_cpp "$LINENO"; then :
3108 # Broken: success on invalid input.
3109continue
3110else
3111 # Passes both tests.
3112ac_preproc_ok=:
3113break
3114fi
3115rm -f conftest.err conftest.i conftest.$ac_ext
3116
3117done
3118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3119rm -f conftest.i conftest.err conftest.$ac_ext
3120if $ac_preproc_ok; then :
3121 break
3122fi
3123
3124 done
3125 ac_cv_prog_CPP=$CPP
3126
3127fi
3128 CPP=$ac_cv_prog_CPP
3129else
3130 ac_cv_prog_CPP=$CPP
3131fi
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3133$as_echo "$CPP" >&6; }
3134ac_preproc_ok=false
3135for ac_c_preproc_warn_flag in '' yes
3136do
3137 # Use a header file that comes with gcc, so configuring glibc
3138 # with a fresh cross-compiler works.
3139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3140 # <limits.h> exists even on freestanding compilers.
3141 # On the NeXT, cc -E runs the code through the compiler's parser,
3142 # not just through cpp. "Syntax error" is here to catch this case.
3143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3144/* end confdefs.h. */
3145#ifdef __STDC__
3146# include <limits.h>
3147#else
3148# include <assert.h>
3149#endif
3150 Syntax error
3151_ACEOF
3152if ac_fn_c_try_cpp "$LINENO"; then :
3153
3154else
3155 # Broken: fails on valid input.
3156continue
3157fi
3158rm -f conftest.err conftest.i conftest.$ac_ext
3159
3160 # OK, works on sane cases. Now check whether nonexistent headers
3161 # can be detected and how.
3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163/* end confdefs.h. */
3164#include <ac_nonexistent.h>
3165_ACEOF
3166if ac_fn_c_try_cpp "$LINENO"; then :
3167 # Broken: success on invalid input.
3168continue
3169else
3170 # Passes both tests.
3171ac_preproc_ok=:
3172break
3173fi
3174rm -f conftest.err conftest.i conftest.$ac_ext
3175
3176done
3177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3178rm -f conftest.i conftest.err conftest.$ac_ext
3179if $ac_preproc_ok; then :
3180
3181else
3182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3185See \`config.log' for more details" "$LINENO" 5; }
3186fi
3187
3188ac_ext=c
3189ac_cpp='$CPP $CPPFLAGS'
3190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3192ac_compiler_gnu=$ac_cv_c_compiler_gnu
3193
3194
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3196$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3197if ${ac_cv_path_GREP+:} false; then :
3198 $as_echo_n "(cached) " >&6
3199else
3200 if test -z "$GREP"; then
3201 ac_path_GREP_found=false
3202 # Loop through the user's path and test for each of PROGNAME-LIST
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3205do
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
3208 for ac_prog in grep ggrep; do
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3211 as_fn_executable_p "$ac_path_GREP" || continue
3212# Check for GNU ac_path_GREP and select it if it is found.
3213 # Check for GNU $ac_path_GREP
3214case `"$ac_path_GREP" --version 2>&1` in
3215*GNU*)
3216 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3217*)
3218 ac_count=0
3219 $as_echo_n 0123456789 >"conftest.in"
3220 while :
3221 do
3222 cat "conftest.in" "conftest.in" >"conftest.tmp"
3223 mv "conftest.tmp" "conftest.in"
3224 cp "conftest.in" "conftest.nl"
3225 $as_echo 'GREP' >> "conftest.nl"
3226 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3228 as_fn_arith $ac_count + 1 && ac_count=$as_val
3229 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3230 # Best one so far, save it but keep looking for a better one
3231 ac_cv_path_GREP="$ac_path_GREP"
3232 ac_path_GREP_max=$ac_count
3233 fi
3234 # 10*(2^10) chars as input seems more than enough
3235 test $ac_count -gt 10 && break
3236 done
3237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3238esac
3239
3240 $ac_path_GREP_found && break 3
3241 done
3242 done
3243 done
3244IFS=$as_save_IFS
3245 if test -z "$ac_cv_path_GREP"; then
3246 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3247 fi
3248else
3249 ac_cv_path_GREP=$GREP
3250fi
3251
3252fi
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3254$as_echo "$ac_cv_path_GREP" >&6; }
3255 GREP="$ac_cv_path_GREP"
3256
3257
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3259$as_echo_n "checking for egrep... " >&6; }
3260if ${ac_cv_path_EGREP+:} false; then :
3261 $as_echo_n "(cached) " >&6
3262else
3263 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3264 then ac_cv_path_EGREP="$GREP -E"
3265 else
3266 if test -z "$EGREP"; then
3267 ac_path_EGREP_found=false
3268 # Loop through the user's path and test for each of PROGNAME-LIST
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3271do
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3274 for ac_prog in egrep; do
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3277 as_fn_executable_p "$ac_path_EGREP" || continue
3278# Check for GNU ac_path_EGREP and select it if it is found.
3279 # Check for GNU $ac_path_EGREP
3280case `"$ac_path_EGREP" --version 2>&1` in
3281*GNU*)
3282 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3283*)
3284 ac_count=0
3285 $as_echo_n 0123456789 >"conftest.in"
3286 while :
3287 do
3288 cat "conftest.in" "conftest.in" >"conftest.tmp"
3289 mv "conftest.tmp" "conftest.in"
3290 cp "conftest.in" "conftest.nl"
3291 $as_echo 'EGREP' >> "conftest.nl"
3292 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3294 as_fn_arith $ac_count + 1 && ac_count=$as_val
3295 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3296 # Best one so far, save it but keep looking for a better one
3297 ac_cv_path_EGREP="$ac_path_EGREP"
3298 ac_path_EGREP_max=$ac_count
3299 fi
3300 # 10*(2^10) chars as input seems more than enough
3301 test $ac_count -gt 10 && break
3302 done
3303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3304esac
3305
3306 $ac_path_EGREP_found && break 3
3307 done
3308 done
3309 done
3310IFS=$as_save_IFS
3311 if test -z "$ac_cv_path_EGREP"; then
3312 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3313 fi
3314else
3315 ac_cv_path_EGREP=$EGREP
3316fi
3317
3318 fi
3319fi
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3321$as_echo "$ac_cv_path_EGREP" >&6; }
3322 EGREP="$ac_cv_path_EGREP"
3323
3324
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3326$as_echo_n "checking for ANSI C header files... " >&6; }
3327if ${ac_cv_header_stdc+:} false; then :
3328 $as_echo_n "(cached) " >&6
3329else
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331/* end confdefs.h. */
3332#include <stdlib.h>
3333#include <stdarg.h>
3334#include <string.h>
3335#include <float.h>
3336
3337int
3338main ()
3339{
3340
3341 ;
3342 return 0;
3343}
3344_ACEOF
3345if ac_fn_c_try_compile "$LINENO"; then :
3346 ac_cv_header_stdc=yes
3347else
3348 ac_cv_header_stdc=no
3349fi
3350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351
3352if test $ac_cv_header_stdc = yes; then
3353 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355/* end confdefs.h. */
3356#include <string.h>
3357
3358_ACEOF
3359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3360 $EGREP "memchr" >/dev/null 2>&1; then :
3361
3362else
3363 ac_cv_header_stdc=no
3364fi
3365rm -f conftest*
3366
3367fi
3368
3369if test $ac_cv_header_stdc = yes; then
3370 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372/* end confdefs.h. */
3373#include <stdlib.h>
3374
3375_ACEOF
3376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3377 $EGREP "free" >/dev/null 2>&1; then :
3378
3379else
3380 ac_cv_header_stdc=no
3381fi
3382rm -f conftest*
3383
3384fi
3385
3386if test $ac_cv_header_stdc = yes; then
3387 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3388 if test "$cross_compiling" = yes; then :
3389 :
3390else
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392/* end confdefs.h. */
3393#include <ctype.h>
3394#include <stdlib.h>
3395#if ((' ' & 0x0FF) == 0x020)
3396# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3397# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3398#else
3399# define ISLOWER(c) \
3400 (('a' <= (c) && (c) <= 'i') \
3401 || ('j' <= (c) && (c) <= 'r') \
3402 || ('s' <= (c) && (c) <= 'z'))
3403# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3404#endif
3405
3406#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3407int
3408main ()
3409{
3410 int i;
3411 for (i = 0; i < 256; i++)
3412 if (XOR (islower (i), ISLOWER (i))
3413 || toupper (i) != TOUPPER (i))
3414 return 2;
3415 return 0;
3416}
3417_ACEOF
3418if ac_fn_c_try_run "$LINENO"; then :
3419
3420else
3421 ac_cv_header_stdc=no
3422fi
3423rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3424 conftest.$ac_objext conftest.beam conftest.$ac_ext
3425fi
3426
3427fi
3428fi
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3430$as_echo "$ac_cv_header_stdc" >&6; }
3431if test $ac_cv_header_stdc = yes; then
3432
3433$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3434
3435fi
3436
3437# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3438for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3439 inttypes.h stdint.h unistd.h
3440do :
3441 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3442ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3443"
3444if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3445 cat >>confdefs.h <<_ACEOF
3446#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3447_ACEOF
3448
3449fi
3450
3451done
3452
3453
3454
3455 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3456if test "x$ac_cv_header_minix_config_h" = xyes; then :
3457 MINIX=yes
3458else
3459 MINIX=
3460fi
3461
3462
3463 if test "$MINIX" = yes; then
3464
3465$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3466
3467
3468$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3469
3470
3471$as_echo "#define _MINIX 1" >>confdefs.h
3472
3473 fi
3474
3475
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3477$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3478if ${ac_cv_safe_to_define___extensions__+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480else
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482/* end confdefs.h. */
3483
3484# define __EXTENSIONS__ 1
3485 $ac_includes_default
3486int
3487main ()
3488{
3489
3490 ;
3491 return 0;
3492}
3493_ACEOF
3494if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_cv_safe_to_define___extensions__=yes
3496else
3497 ac_cv_safe_to_define___extensions__=no
3498fi
3499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500fi
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3502$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3503 test $ac_cv_safe_to_define___extensions__ = yes &&
3504 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3505
3506 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3507
3508 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3509
3510 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3511
3512 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3513
3514
3515am__api_version='1.15'
3516
3517# Find a good install program. We prefer a C program (faster),
3518# so one script is as good as another. But avoid the broken or
3519# incompatible versions:
3520# SysV /etc/install, /usr/sbin/install
3521# SunOS /usr/etc/install
3522# IRIX /sbin/install
3523# AIX /bin/install
3524# AmigaOS /C/install, which installs bootblocks on floppy discs
3525# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3526# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3527# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3528# OS/2's system install, which has a completely different semantic
3529# ./install, which can be erroneously created by make from ./install.sh.
3530# Reject install programs that cannot install multiple files.
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3532$as_echo_n "checking for a BSD-compatible install... " >&6; }
3533if test -z "$INSTALL"; then
3534if ${ac_cv_path_install+:} false; then :
3535 $as_echo_n "(cached) " >&6
3536else
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538for as_dir in $PATH
3539do
3540 IFS=$as_save_IFS
3541 test -z "$as_dir" && as_dir=.
3542 # Account for people who put trailing slashes in PATH elements.
3543case $as_dir/ in #((
3544 ./ | .// | /[cC]/* | \
3545 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3546 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3547 /usr/ucb/* ) ;;
3548 *)
3549 # OSF1 and SCO ODT 3.0 have their own names for install.
3550 # Don't use installbsd from OSF since it installs stuff as root
3551 # by default.
3552 for ac_prog in ginstall scoinst install; do
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3555 if test $ac_prog = install &&
3556 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3557 # AIX install. It has an incompatible calling convention.
3558 :
3559 elif test $ac_prog = install &&
3560 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3561 # program-specific install script used by HP pwplus--don't use.
3562 :
3563 else
3564 rm -rf conftest.one conftest.two conftest.dir
3565 echo one > conftest.one
3566 echo two > conftest.two
3567 mkdir conftest.dir
3568 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3569 test -s conftest.one && test -s conftest.two &&
3570 test -s conftest.dir/conftest.one &&
3571 test -s conftest.dir/conftest.two
3572 then
3573 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3574 break 3
3575 fi
3576 fi
3577 fi
3578 done
3579 done
3580 ;;
3581esac
3582
3583 done
3584IFS=$as_save_IFS
3585
3586rm -rf conftest.one conftest.two conftest.dir
3587
3588fi
3589 if test "${ac_cv_path_install+set}" = set; then
3590 INSTALL=$ac_cv_path_install
3591 else
3592 # As a last resort, use the slow shell script. Don't cache a
3593 # value for INSTALL within a source directory, because that will
3594 # break other packages using the cache if that directory is
3595 # removed, or if the value is a relative name.
3596 INSTALL=$ac_install_sh
3597 fi
3598fi
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3600$as_echo "$INSTALL" >&6; }
3601
3602# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3603# It thinks the first close brace ends the variable substitution.
3604test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3605
3606test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3607
3608test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3609
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3611$as_echo_n "checking whether build environment is sane... " >&6; }
3612# Reject unsafe characters in $srcdir or the absolute working directory
3613# name. Accept space and tab only in the latter.
3614am_lf='
3615'
3616case `pwd` in
3617 *[\\\"\#\$\&\'\`$am_lf]*)
3618 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3619esac
3620case $srcdir in
3621 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3622 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3623esac
3624
3625# Do 'set' in a subshell so we don't clobber the current shell's
3626# arguments. Must try -L first in case configure is actually a
3627# symlink; some systems play weird games with the mod time of symlinks
3628# (eg FreeBSD returns the mod time of the symlink's containing
3629# directory).
3630if (
3631 am_has_slept=no
3632 for am_try in 1 2; do
3633 echo "timestamp, slept: $am_has_slept" > conftest.file
3634 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3635 if test "$*" = "X"; then
3636 # -L didn't work.
3637 set X `ls -t "$srcdir/configure" conftest.file`
3638 fi
3639 if test "$*" != "X $srcdir/configure conftest.file" \
3640 && test "$*" != "X conftest.file $srcdir/configure"; then
3641
3642 # If neither matched, then we have a broken ls. This can happen
3643 # if, for instance, CONFIG_SHELL is bash and it inherits a
3644 # broken ls alias from the environment. This has actually
3645 # happened. Such a system could not be considered "sane".
3646 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3647 alias in your environment" "$LINENO" 5
3648 fi
3649 if test "$2" = conftest.file || test $am_try -eq 2; then
3650 break
3651 fi
3652 # Just in case.
3653 sleep 1
3654 am_has_slept=yes
3655 done
3656 test "$2" = conftest.file
3657 )
3658then
3659 # Ok.
3660 :
3661else
3662 as_fn_error $? "newly created file is older than distributed files!
3663Check your system clock" "$LINENO" 5
3664fi
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3666$as_echo "yes" >&6; }
3667# If we didn't sleep, we still need to ensure time stamps of config.status and
3668# generated files are strictly newer.
3669am_sleep_pid=
3670if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3671 ( sleep 1 ) &
3672 am_sleep_pid=$!
3673fi
3674
3675rm -f conftest.file
3676
3677test "$program_prefix" != NONE &&
3678 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3679# Use a double $ so make ignores it.
3680test "$program_suffix" != NONE &&
3681 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3682# Double any \ or $.
3683# By default was `s,x,x', remove it if useless.
3684ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3685program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3686
3687if test x"${MISSING+set}" != xset; then
3688 case $am_aux_dir in
3689 *\ * | *\ *)
3690 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3691 *)
3692 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3693 esac
3694fi
3695# Use eval to expand $SHELL
3696if eval "$MISSING --is-lightweight"; then
3697 am_missing_run="$MISSING "
3698else
3699 am_missing_run=
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3701$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3702fi
3703
3704if test x"${install_sh+set}" != xset; then
3705 case $am_aux_dir in
3706 *\ * | *\ *)
3707 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3708 *)
3709 install_sh="\${SHELL} $am_aux_dir/install-sh"
3710 esac
3711fi
3712
3713# Installed binaries are usually stripped using 'strip' when the user
3714# run "make install-strip". However 'strip' might not be the right
3715# tool to use in cross-compilation environments, therefore Automake
3716# will honor the 'STRIP' environment variable to overrule this program.
3717if test "$cross_compiling" != no; then
3718 if test -n "$ac_tool_prefix"; then
3719 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3720set dummy ${ac_tool_prefix}strip; ac_word=$2
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722$as_echo_n "checking for $ac_word... " >&6; }
3723if ${ac_cv_prog_STRIP+:} false; then :
3724 $as_echo_n "(cached) " >&6
3725else
3726 if test -n "$STRIP"; then
3727 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3728else
3729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730for as_dir in $PATH
3731do
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3739 fi
3740done
3741 done
3742IFS=$as_save_IFS
3743
3744fi
3745fi
3746STRIP=$ac_cv_prog_STRIP
3747if test -n "$STRIP"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3749$as_echo "$STRIP" >&6; }
3750else
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752$as_echo "no" >&6; }
3753fi
3754
3755
3756fi
3757if test -z "$ac_cv_prog_STRIP"; then
3758 ac_ct_STRIP=$STRIP
3759 # Extract the first word of "strip", so it can be a program name with args.
3760set dummy strip; ac_word=$2
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762$as_echo_n "checking for $ac_word... " >&6; }
3763if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3764 $as_echo_n "(cached) " >&6
3765else
3766 if test -n "$ac_ct_STRIP"; then
3767 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3768else
3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH
3771do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_ac_ct_STRIP="strip"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 break 2
3779 fi
3780done
3781 done
3782IFS=$as_save_IFS
3783
3784fi
3785fi
3786ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3787if test -n "$ac_ct_STRIP"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3789$as_echo "$ac_ct_STRIP" >&6; }
3790else
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792$as_echo "no" >&6; }
3793fi
3794
3795 if test "x$ac_ct_STRIP" = x; then
3796 STRIP=":"
3797 else
3798 case $cross_compiling:$ac_tool_warned in
3799yes:)
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3802ac_tool_warned=yes ;;
3803esac
3804 STRIP=$ac_ct_STRIP
3805 fi
3806else
3807 STRIP="$ac_cv_prog_STRIP"
3808fi
3809
3810fi
3811INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3812
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3814$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3815if test -z "$MKDIR_P"; then
3816 if ${ac_cv_path_mkdir+:} false; then :
3817 $as_echo_n "(cached) " >&6
3818else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3821do
3822 IFS=$as_save_IFS
3823 test -z "$as_dir" && as_dir=.
3824 for ac_prog in mkdir gmkdir; do
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3827 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3828 'mkdir (GNU coreutils) '* | \
3829 'mkdir (coreutils) '* | \
3830 'mkdir (fileutils) '4.1*)
3831 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3832 break 3;;
3833 esac
3834 done
3835 done
3836 done
3837IFS=$as_save_IFS
3838
3839fi
3840
3841 test -d ./--version && rmdir ./--version
3842 if test "${ac_cv_path_mkdir+set}" = set; then
3843 MKDIR_P="$ac_cv_path_mkdir -p"
3844 else
3845 # As a last resort, use the slow shell script. Don't cache a
3846 # value for MKDIR_P within a source directory, because that will
3847 # break other packages using the cache if that directory is
3848 # removed, or if the value is a relative name.
3849 MKDIR_P="$ac_install_sh -d"
3850 fi
3851fi
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3853$as_echo "$MKDIR_P" >&6; }
3854
3855for ac_prog in gawk mawk nawk awk
3856do
3857 # Extract the first word of "$ac_prog", so it can be a program name with args.
3858set dummy $ac_prog; ac_word=$2
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860$as_echo_n "checking for $ac_word... " >&6; }
3861if ${ac_cv_prog_AWK+:} false; then :
3862 $as_echo_n "(cached) " >&6
3863else
3864 if test -n "$AWK"; then
3865 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3866else
3867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868for as_dir in $PATH
3869do
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3874 ac_cv_prog_AWK="$ac_prog"
3875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 break 2
3877 fi
3878done
3879 done
3880IFS=$as_save_IFS
3881
3882fi
3883fi
3884AWK=$ac_cv_prog_AWK
3885if test -n "$AWK"; then
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3887$as_echo "$AWK" >&6; }
3888else
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890$as_echo "no" >&6; }
3891fi
3892
3893
3894 test -n "$AWK" && break
3895done
3896
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3898$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3899set x ${MAKE-make}
3900ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3901if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3902 $as_echo_n "(cached) " >&6
3903else
3904 cat >conftest.make <<\_ACEOF
3905SHELL = /bin/sh
3906all:
3907 @echo '@@@%%%=$(MAKE)=@@@%%%'
3908_ACEOF
3909# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3910case `${MAKE-make} -f conftest.make 2>/dev/null` in
3911 *@@@%%%=?*=@@@%%%*)
3912 eval ac_cv_prog_make_${ac_make}_set=yes;;
3913 *)
3914 eval ac_cv_prog_make_${ac_make}_set=no;;
3915esac
3916rm -f conftest.make
3917fi
3918if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3920$as_echo "yes" >&6; }
3921 SET_MAKE=
3922else
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924$as_echo "no" >&6; }
3925 SET_MAKE="MAKE=${MAKE-make}"
3926fi
3927
3928rm -rf .tst 2>/dev/null
3929mkdir .tst 2>/dev/null
3930if test -d .tst; then
3931 am__leading_dot=.
3932else
3933 am__leading_dot=_
3934fi
3935rmdir .tst 2>/dev/null
3936
3937DEPDIR="${am__leading_dot}deps"
3938
3939ac_config_commands="$ac_config_commands depfiles"
3940
3941
3942am_make=${MAKE-make}
3943cat > confinc << 'END'
3944am__doit:
3945 @echo this is the am__doit target
3946.PHONY: am__doit
3947END
3948# If we don't find an include directive, just comment out the code.
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3950$as_echo_n "checking for style of include used by $am_make... " >&6; }
3951am__include="#"
3952am__quote=
3953_am_result=none
3954# First try GNU make style include.
3955echo "include confinc" > confmf
3956# Ignore all kinds of additional output from 'make'.
3957case `$am_make -s -f confmf 2> /dev/null` in #(
3958*the\ am__doit\ target*)
3959 am__include=include
3960 am__quote=
3961 _am_result=GNU
3962 ;;
3963esac
3964# Now try BSD make style include.
3965if test "$am__include" = "#"; then
3966 echo '.include "confinc"' > confmf
3967 case `$am_make -s -f confmf 2> /dev/null` in #(
3968 *the\ am__doit\ target*)
3969 am__include=.include
3970 am__quote="\""
3971 _am_result=BSD
3972 ;;
3973 esac
3974fi
3975
3976
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3978$as_echo "$_am_result" >&6; }
3979rm -f confinc confmf
3980
3981# Check whether --enable-dependency-tracking was given.
3982if test "${enable_dependency_tracking+set}" = set; then :
3983 enableval=$enable_dependency_tracking;
3984fi
3985
3986if test "x$enable_dependency_tracking" != xno; then
3987 am_depcomp="$ac_aux_dir/depcomp"
3988 AMDEPBACKSLASH='\'
3989 am__nodep='_no'
3990fi
3991 if test "x$enable_dependency_tracking" != xno; then
3992 AMDEP_TRUE=
3993 AMDEP_FALSE='#'
3994else
3995 AMDEP_TRUE='#'
3996 AMDEP_FALSE=
3997fi
3998
3999
4000# Check whether --enable-silent-rules was given.
4001if test "${enable_silent_rules+set}" = set; then :
4002 enableval=$enable_silent_rules;
4003fi
4004
4005case $enable_silent_rules in # (((
4006 yes) AM_DEFAULT_VERBOSITY=0;;
4007 no) AM_DEFAULT_VERBOSITY=1;;
4008 *) AM_DEFAULT_VERBOSITY=1;;
4009esac
4010am_make=${MAKE-make}
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4012$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4013if ${am_cv_make_support_nested_variables+:} false; then :
4014 $as_echo_n "(cached) " >&6
4015else
4016 if $as_echo 'TRUE=$(BAR$(V))
4017BAR0=false
4018BAR1=true
4019V=1
4020am__doit:
4021 @$(TRUE)
4022.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4023 am_cv_make_support_nested_variables=yes
4024else
4025 am_cv_make_support_nested_variables=no
4026fi
4027fi
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4029$as_echo "$am_cv_make_support_nested_variables" >&6; }
4030if test $am_cv_make_support_nested_variables = yes; then
4031 AM_V='$(V)'
4032 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4033else
4034 AM_V=$AM_DEFAULT_VERBOSITY
4035 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4036fi
4037AM_BACKSLASH='\'
4038
4039if test "`cd $srcdir && pwd`" != "`pwd`"; then
4040 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4041 # is not polluted with repeated "-I."
4042 am__isrc=' -I$(srcdir)'
4043 # test to see if srcdir already configured
4044 if test -f $srcdir/config.status; then
4045 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4046 fi
4047fi
4048
4049# test whether we have cygpath
4050if test -z "$CYGPATH_W"; then
4051 if (cygpath --version) >/dev/null 2>/dev/null; then
4052 CYGPATH_W='cygpath -w'
4053 else
4054 CYGPATH_W=echo
4055 fi
4056fi
4057
4058
4059# Define the identity of the package.
4060 PACKAGE='libctf-library'
4061 VERSION='1.2.0-pre'
4062
4063
4064cat >>confdefs.h <<_ACEOF
4065#define PACKAGE "$PACKAGE"
4066_ACEOF
4067
4068
4069cat >>confdefs.h <<_ACEOF
4070#define VERSION "$VERSION"
4071_ACEOF
4072
4073# Some tools Automake needs.
4074
4075ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4076
4077
4078AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4079
4080
4081AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4082
4083
4084AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4085
4086
4087MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4088
4089# For better backward compatibility. To be removed once Automake 1.9.x
4090# dies out for good. For more background, see:
4091# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4092# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4093mkdir_p='$(MKDIR_P)'
4094
4095# We need awk for the "check" target (and possibly the TAP driver). The
4096# system "awk" is bad on some platforms.
4097# Always define AMTAR for backward compatibility. Yes, it's still used
4098# in the wild :-( We should find a proper way to deprecate it ...
4099AMTAR='$${TAR-tar}'
4100
4101
4102# We'll loop over all known methods to create a tar archive until one works.
4103_am_tools='gnutar pax cpio none'
4104
4105am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4106
4107
4108
4109
4110
4111depcc="$CC" am_compiler_list=
4112
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4114$as_echo_n "checking dependency style of $depcc... " >&6; }
4115if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117else
4118 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4119 # We make a subdir and do the tests there. Otherwise we can end up
4120 # making bogus files that we don't know about and never remove. For
4121 # instance it was reported that on HP-UX the gcc test will end up
4122 # making a dummy file named 'D' -- because '-MD' means "put the output
4123 # in D".
4124 rm -rf conftest.dir
4125 mkdir conftest.dir
4126 # Copy depcomp to subdir because otherwise we won't find it if we're
4127 # using a relative directory.
4128 cp "$am_depcomp" conftest.dir
4129 cd conftest.dir
4130 # We will build objects and dependencies in a subdirectory because
4131 # it helps to detect inapplicable dependency modes. For instance
4132 # both Tru64's cc and ICC support -MD to output dependencies as a
4133 # side effect of compilation, but ICC will put the dependencies in
4134 # the current directory while Tru64 will put them in the object
4135 # directory.
4136 mkdir sub
4137
4138 am_cv_CC_dependencies_compiler_type=none
4139 if test "$am_compiler_list" = ""; then
4140 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4141 fi
4142 am__universal=false
4143 case " $depcc " in #(
4144 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4145 esac
4146
4147 for depmode in $am_compiler_list; do
4148 # Setup a source with many dependencies, because some compilers
4149 # like to wrap large dependency lists on column 80 (with \), and
4150 # we should not choose a depcomp mode which is confused by this.
4151 #
4152 # We need to recreate these files for each test, as the compiler may
4153 # overwrite some of them when testing with obscure command lines.
4154 # This happens at least with the AIX C compiler.
4155 : > sub/conftest.c
4156 for i in 1 2 3 4 5 6; do
4157 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4158 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4159 # Solaris 10 /bin/sh.
4160 echo '/* dummy */' > sub/conftst$i.h
4161 done
4162 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4163
4164 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4165 # mode. It turns out that the SunPro C++ compiler does not properly
4166 # handle '-M -o', and we need to detect this. Also, some Intel
4167 # versions had trouble with output in subdirs.
4168 am__obj=sub/conftest.${OBJEXT-o}
4169 am__minus_obj="-o $am__obj"
4170 case $depmode in
4171 gcc)
4172 # This depmode causes a compiler race in universal mode.
4173 test "$am__universal" = false || continue
4174 ;;
4175 nosideeffect)
4176 # After this tag, mechanisms are not by side-effect, so they'll
4177 # only be used when explicitly requested.
4178 if test "x$enable_dependency_tracking" = xyes; then
4179 continue
4180 else
4181 break
4182 fi
4183 ;;
4184 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4185 # This compiler won't grok '-c -o', but also, the minuso test has
4186 # not run yet. These depmodes are late enough in the game, and
4187 # so weak that their functioning should not be impacted.
4188 am__obj=conftest.${OBJEXT-o}
4189 am__minus_obj=
4190 ;;
4191 none) break ;;
4192 esac
4193 if depmode=$depmode \
4194 source=sub/conftest.c object=$am__obj \
4195 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4196 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4197 >/dev/null 2>conftest.err &&
4198 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4199 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4200 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4201 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4202 # icc doesn't choke on unknown options, it will just issue warnings
4203 # or remarks (even with -Werror). So we grep stderr for any message
4204 # that says an option was ignored or not supported.
4205 # When given -MP, icc 7.0 and 7.1 complain thusly:
4206 # icc: Command line warning: ignoring option '-M'; no argument required
4207 # The diagnosis changed in icc 8.0:
4208 # icc: Command line remark: option '-MP' not supported
4209 if (grep 'ignoring option' conftest.err ||
4210 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4211 am_cv_CC_dependencies_compiler_type=$depmode
4212 break
4213 fi
4214 fi
4215 done
4216
4217 cd ..
4218 rm -rf conftest.dir
4219else
4220 am_cv_CC_dependencies_compiler_type=none
4221fi
4222
4223fi
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4225$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4226CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4227
4228 if
4229 test "x$enable_dependency_tracking" != xno \
4230 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4231 am__fastdepCC_TRUE=
4232 am__fastdepCC_FALSE='#'
4233else
4234 am__fastdepCC_TRUE='#'
4235 am__fastdepCC_FALSE=
4236fi
4237
4238
4239
4240# POSIX will say in a future version that running "rm -f" with no argument
4241# is OK; and we want to be able to make that assumption in our Makefile
4242# recipes. So use an aggressive probe to check that the usage we want is
4243# actually supported "in the wild" to an acceptable degree.
4244# See automake bug#10828.
4245# To make any issue more visible, cause the running configure to be aborted
4246# by default if the 'rm' program in use doesn't match our expectations; the
4247# user can still override this though.
4248if rm -f && rm -fr && rm -rf; then : OK; else
4249 cat >&2 <<'END'
4250Oops!
4251
4252Your 'rm' program seems unable to run without file operands specified
4253on the command line, even when the '-f' option is present. This is contrary
4254to the behaviour of most rm programs out there, and not conforming with
4255the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4256
4257Please tell bug-automake@gnu.org about your system, including the value
4258of your $PATH and any error possibly output before this message. This
4259can help us improve future automake versions.
4260
4261END
4262 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4263 echo 'Configuration will proceed anyway, since you have set the' >&2
4264 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4265 echo >&2
4266 else
4267 cat >&2 <<'END'
4268Aborting the configuration process, to ensure you take notice of the issue.
4269
4270You can download and install GNU coreutils to get an 'rm' implementation
4271that behaves properly: <http://www.gnu.org/software/coreutils/>.
4272
4273If you want to complete the configuration process using your problematic
4274'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4275to "yes", and re-run configure.
4276
4277END
4278 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4279 fi
4280fi
4281
4282
4283# Checks for programs.
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4285$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4286set x ${MAKE-make}
4287ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4288if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4289 $as_echo_n "(cached) " >&6
4290else
4291 cat >conftest.make <<\_ACEOF
4292SHELL = /bin/sh
4293all:
4294 @echo '@@@%%%=$(MAKE)=@@@%%%'
4295_ACEOF
4296# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4297case `${MAKE-make} -f conftest.make 2>/dev/null` in
4298 *@@@%%%=?*=@@@%%%*)
4299 eval ac_cv_prog_make_${ac_make}_set=yes;;
4300 *)
4301 eval ac_cv_prog_make_${ac_make}_set=no;;
4302esac
4303rm -f conftest.make
4304fi
4305if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4307$as_echo "yes" >&6; }
4308 SET_MAKE=
4309else
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311$as_echo "no" >&6; }
4312 SET_MAKE="MAKE=${MAKE-make}"
4313fi
4314
4315ac_ext=c
4316ac_cpp='$CPP $CPPFLAGS'
4317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320if test -n "$ac_tool_prefix"; then
4321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4322set dummy ${ac_tool_prefix}gcc; ac_word=$2
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324$as_echo_n "checking for $ac_word... " >&6; }
4325if ${ac_cv_prog_CC+:} false; then :
4326 $as_echo_n "(cached) " >&6
4327else
4328 if test -n "$CC"; then
4329 ac_cv_prog_CC="$CC" # Let the user override the test.
4330else
4331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332for as_dir in $PATH
4333do
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4341 fi
4342done
4343 done
4344IFS=$as_save_IFS
4345
4346fi
4347fi
4348CC=$ac_cv_prog_CC
4349if test -n "$CC"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4351$as_echo "$CC" >&6; }
4352else
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354$as_echo "no" >&6; }
4355fi
4356
4357
4358fi
4359if test -z "$ac_cv_prog_CC"; then
4360 ac_ct_CC=$CC
4361 # Extract the first word of "gcc", so it can be a program name with args.
4362set dummy gcc; ac_word=$2
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364$as_echo_n "checking for $ac_word... " >&6; }
4365if ${ac_cv_prog_ac_ct_CC+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367else
4368 if test -n "$ac_ct_CC"; then
4369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4370else
4371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372for as_dir in $PATH
4373do
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4378 ac_cv_prog_ac_ct_CC="gcc"
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 break 2
4381 fi
4382done
4383 done
4384IFS=$as_save_IFS
4385
4386fi
4387fi
4388ac_ct_CC=$ac_cv_prog_ac_ct_CC
4389if test -n "$ac_ct_CC"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4391$as_echo "$ac_ct_CC" >&6; }
4392else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394$as_echo "no" >&6; }
4395fi
4396
4397 if test "x$ac_ct_CC" = x; then
4398 CC=""
4399 else
4400 case $cross_compiling:$ac_tool_warned in
4401yes:)
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4404ac_tool_warned=yes ;;
4405esac
4406 CC=$ac_ct_CC
4407 fi
4408else
4409 CC="$ac_cv_prog_CC"
4410fi
4411
4412if test -z "$CC"; then
4413 if test -n "$ac_tool_prefix"; then
4414 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4415set dummy ${ac_tool_prefix}cc; ac_word=$2
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417$as_echo_n "checking for $ac_word... " >&6; }
4418if ${ac_cv_prog_CC+:} false; then :
4419 $as_echo_n "(cached) " >&6
4420else
4421 if test -n "$CC"; then
4422 ac_cv_prog_CC="$CC" # Let the user override the test.
4423else
4424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in $PATH
4426do
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 ac_cv_prog_CC="${ac_tool_prefix}cc"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4434 fi
4435done
4436 done
4437IFS=$as_save_IFS
4438
4439fi
4440fi
4441CC=$ac_cv_prog_CC
4442if test -n "$CC"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4444$as_echo "$CC" >&6; }
4445else
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447$as_echo "no" >&6; }
4448fi
4449
4450
4451 fi
4452fi
4453if test -z "$CC"; then
4454 # Extract the first word of "cc", so it can be a program name with args.
4455set dummy cc; ac_word=$2
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457$as_echo_n "checking for $ac_word... " >&6; }
4458if ${ac_cv_prog_CC+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460else
4461 if test -n "$CC"; then
4462 ac_cv_prog_CC="$CC" # Let the user override the test.
4463else
4464 ac_prog_rejected=no
4465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH
4467do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4473 ac_prog_rejected=yes
4474 continue
4475 fi
4476 ac_cv_prog_CC="cc"
4477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 break 2
4479 fi
4480done
4481 done
4482IFS=$as_save_IFS
4483
4484if test $ac_prog_rejected = yes; then
4485 # We found a bogon in the path, so make sure we never use it.
4486 set dummy $ac_cv_prog_CC
4487 shift
4488 if test $# != 0; then
4489 # We chose a different compiler from the bogus one.
4490 # However, it has the same basename, so the bogon will be chosen
4491 # first if we set CC to just the basename; use the full file name.
4492 shift
4493 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4494 fi
4495fi
4496fi
4497fi
4498CC=$ac_cv_prog_CC
4499if test -n "$CC"; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4501$as_echo "$CC" >&6; }
4502else
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504$as_echo "no" >&6; }
4505fi
4506
4507
4508fi
4509if test -z "$CC"; then
4510 if test -n "$ac_tool_prefix"; then
4511 for ac_prog in cl.exe
4512 do
4513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4514set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516$as_echo_n "checking for $ac_word... " >&6; }
4517if ${ac_cv_prog_CC+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519else
4520 if test -n "$CC"; then
4521 ac_cv_prog_CC="$CC" # Let the user override the test.
4522else
4523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH
4525do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4533 fi
4534done
4535 done
4536IFS=$as_save_IFS
4537
4538fi
4539fi
4540CC=$ac_cv_prog_CC
4541if test -n "$CC"; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4543$as_echo "$CC" >&6; }
4544else
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546$as_echo "no" >&6; }
4547fi
4548
4549
4550 test -n "$CC" && break
4551 done
4552fi
4553if test -z "$CC"; then
4554 ac_ct_CC=$CC
4555 for ac_prog in cl.exe
4556do
4557 # Extract the first word of "$ac_prog", so it can be a program name with args.
4558set dummy $ac_prog; ac_word=$2
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560$as_echo_n "checking for $ac_word... " >&6; }
4561if ${ac_cv_prog_ac_ct_CC+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563else
4564 if test -n "$ac_ct_CC"; then
4565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4566else
4567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH
4569do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574 ac_cv_prog_ac_ct_CC="$ac_prog"
4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 break 2
4577 fi
4578done
4579 done
4580IFS=$as_save_IFS
4581
4582fi
4583fi
4584ac_ct_CC=$ac_cv_prog_ac_ct_CC
4585if test -n "$ac_ct_CC"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4587$as_echo "$ac_ct_CC" >&6; }
4588else
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590$as_echo "no" >&6; }
4591fi
4592
4593
4594 test -n "$ac_ct_CC" && break
4595done
4596
4597 if test "x$ac_ct_CC" = x; then
4598 CC=""
4599 else
4600 case $cross_compiling:$ac_tool_warned in
4601yes:)
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4604ac_tool_warned=yes ;;
4605esac
4606 CC=$ac_ct_CC
4607 fi
4608fi
4609
4610fi
4611
4612
4613test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4615as_fn_error $? "no acceptable C compiler found in \$PATH
4616See \`config.log' for more details" "$LINENO" 5; }
4617
4618# Provide some information about the compiler.
4619$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4620set X $ac_compile
4621ac_compiler=$2
4622for ac_option in --version -v -V -qversion; do
4623 { { ac_try="$ac_compiler $ac_option >&5"
4624case "(($ac_try" in
4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626 *) ac_try_echo=$ac_try;;
4627esac
4628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4629$as_echo "$ac_try_echo"; } >&5
4630 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4631 ac_status=$?
4632 if test -s conftest.err; then
4633 sed '10a\
4634... rest of stderr output deleted ...
4635 10q' conftest.err >conftest.er1
4636 cat conftest.er1 >&5
4637 fi
4638 rm -f conftest.er1 conftest.err
4639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4640 test $ac_status = 0; }
4641done
4642
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4644$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4645if ${ac_cv_c_compiler_gnu+:} false; then :
4646 $as_echo_n "(cached) " >&6
4647else
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649/* end confdefs.h. */
4650
4651int
4652main ()
4653{
4654#ifndef __GNUC__
4655 choke me
4656#endif
4657
4658 ;
4659 return 0;
4660}
4661_ACEOF
4662if ac_fn_c_try_compile "$LINENO"; then :
4663 ac_compiler_gnu=yes
4664else
4665 ac_compiler_gnu=no
4666fi
4667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668ac_cv_c_compiler_gnu=$ac_compiler_gnu
4669
4670fi
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4672$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4673if test $ac_compiler_gnu = yes; then
4674 GCC=yes
4675else
4676 GCC=
4677fi
4678ac_test_CFLAGS=${CFLAGS+set}
4679ac_save_CFLAGS=$CFLAGS
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4681$as_echo_n "checking whether $CC accepts -g... " >&6; }
4682if ${ac_cv_prog_cc_g+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684else
4685 ac_save_c_werror_flag=$ac_c_werror_flag
4686 ac_c_werror_flag=yes
4687 ac_cv_prog_cc_g=no
4688 CFLAGS="-g"
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690/* end confdefs.h. */
4691
4692int
4693main ()
4694{
4695
4696 ;
4697 return 0;
4698}
4699_ACEOF
4700if ac_fn_c_try_compile "$LINENO"; then :
4701 ac_cv_prog_cc_g=yes
4702else
4703 CFLAGS=""
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705/* end confdefs.h. */
4706
4707int
4708main ()
4709{
4710
4711 ;
4712 return 0;
4713}
4714_ACEOF
4715if ac_fn_c_try_compile "$LINENO"; then :
4716
4717else
4718 ac_c_werror_flag=$ac_save_c_werror_flag
4719 CFLAGS="-g"
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721/* end confdefs.h. */
4722
4723int
4724main ()
4725{
4726
4727 ;
4728 return 0;
4729}
4730_ACEOF
4731if ac_fn_c_try_compile "$LINENO"; then :
4732 ac_cv_prog_cc_g=yes
4733fi
4734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735fi
4736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737fi
4738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 ac_c_werror_flag=$ac_save_c_werror_flag
4740fi
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4742$as_echo "$ac_cv_prog_cc_g" >&6; }
4743if test "$ac_test_CFLAGS" = set; then
4744 CFLAGS=$ac_save_CFLAGS
4745elif test $ac_cv_prog_cc_g = yes; then
4746 if test "$GCC" = yes; then
4747 CFLAGS="-g -O2"
4748 else
4749 CFLAGS="-g"
4750 fi
4751else
4752 if test "$GCC" = yes; then
4753 CFLAGS="-O2"
4754 else
4755 CFLAGS=
4756 fi
4757fi
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4759$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4760if ${ac_cv_prog_cc_c89+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762else
4763 ac_cv_prog_cc_c89=no
4764ac_save_CC=$CC
4765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766/* end confdefs.h. */
4767#include <stdarg.h>
4768#include <stdio.h>
4769struct stat;
4770/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4771struct buf { int x; };
4772FILE * (*rcsopen) (struct buf *, struct stat *, int);
4773static char *e (p, i)
4774 char **p;
4775 int i;
4776{
4777 return p[i];
4778}
4779static char *f (char * (*g) (char **, int), char **p, ...)
4780{
4781 char *s;
4782 va_list v;
4783 va_start (v,p);
4784 s = g (p, va_arg (v,int));
4785 va_end (v);
4786 return s;
4787}
4788
4789/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4790 function prototypes and stuff, but not '\xHH' hex character constants.
4791 These don't provoke an error unfortunately, instead are silently treated
4792 as 'x'. The following induces an error, until -std is added to get
4793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4794 array size at least. It's necessary to write '\x00'==0 to get something
4795 that's true only with -std. */
4796int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4797
4798/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4799 inside strings and character constants. */
4800#define FOO(x) 'x'
4801int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4802
4803int test (int i, double x);
4804struct s1 {int (*f) (int a);};
4805struct s2 {int (*f) (double a);};
4806int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4807int argc;
4808char **argv;
4809int
4810main ()
4811{
4812return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4813 ;
4814 return 0;
4815}
4816_ACEOF
4817for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4819do
4820 CC="$ac_save_CC $ac_arg"
4821 if ac_fn_c_try_compile "$LINENO"; then :
4822 ac_cv_prog_cc_c89=$ac_arg
4823fi
4824rm -f core conftest.err conftest.$ac_objext
4825 test "x$ac_cv_prog_cc_c89" != "xno" && break
4826done
4827rm -f conftest.$ac_ext
4828CC=$ac_save_CC
4829
4830fi
4831# AC_CACHE_VAL
4832case "x$ac_cv_prog_cc_c89" in
4833 x)
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4835$as_echo "none needed" >&6; } ;;
4836 xno)
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4838$as_echo "unsupported" >&6; } ;;
4839 *)
4840 CC="$CC $ac_cv_prog_cc_c89"
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4842$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4843esac
4844if test "x$ac_cv_prog_cc_c89" != xno; then :
4845
4846fi
4847
4848ac_ext=c
4849ac_cpp='$CPP $CPPFLAGS'
4850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852ac_compiler_gnu=$ac_cv_c_compiler_gnu
4853
4854ac_ext=c
4855ac_cpp='$CPP $CPPFLAGS'
4856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4860$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4861if ${am_cv_prog_cc_c_o+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863else
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865/* end confdefs.h. */
4866
4867int
4868main ()
4869{
4870
4871 ;
4872 return 0;
4873}
4874_ACEOF
4875 # Make sure it works both with $CC and with simple cc.
4876 # Following AC_PROG_CC_C_O, we do the test twice because some
4877 # compilers refuse to overwrite an existing .o file with -o,
4878 # though they will create one.
4879 am_cv_prog_cc_c_o=yes
4880 for am_i in 1 2; do
4881 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4882 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } \
4886 && test -f conftest2.$ac_objext; then
4887 : OK
4888 else
4889 am_cv_prog_cc_c_o=no
4890 break
4891 fi
4892 done
4893 rm -f core conftest*
4894 unset am_i
4895fi
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4897$as_echo "$am_cv_prog_cc_c_o" >&6; }
4898if test "$am_cv_prog_cc_c_o" != yes; then
4899 # Losing compiler, so override with the script.
4900 # FIXME: It is wrong to rewrite CC.
4901 # But if we don't then we get into trouble of one sort or another.
4902 # A longer-term fix would be to have automake use am__CC in this case,
4903 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4904 CC="$am_aux_dir/compile $CC"
4905fi
4906ac_ext=c
4907ac_cpp='$CPP $CPPFLAGS'
4908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911
4912
4913if test -n "$ac_tool_prefix"; then
4914 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4915set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917$as_echo_n "checking for $ac_word... " >&6; }
4918if ${ac_cv_prog_RANLIB+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920else
4921 if test -n "$RANLIB"; then
4922 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4923else
4924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925for as_dir in $PATH
4926do
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4931 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4934 fi
4935done
4936 done
4937IFS=$as_save_IFS
4938
4939fi
4940fi
4941RANLIB=$ac_cv_prog_RANLIB
4942if test -n "$RANLIB"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4944$as_echo "$RANLIB" >&6; }
4945else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947$as_echo "no" >&6; }
4948fi
4949
4950
4951fi
4952if test -z "$ac_cv_prog_RANLIB"; then
4953 ac_ct_RANLIB=$RANLIB
4954 # Extract the first word of "ranlib", so it can be a program name with args.
4955set dummy ranlib; ac_word=$2
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957$as_echo_n "checking for $ac_word... " >&6; }
4958if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960else
4961 if test -n "$ac_ct_RANLIB"; then
4962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4963else
4964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965for as_dir in $PATH
4966do
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971 ac_cv_prog_ac_ct_RANLIB="ranlib"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4974 fi
4975done
4976 done
4977IFS=$as_save_IFS
4978
4979fi
4980fi
4981ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4982if test -n "$ac_ct_RANLIB"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4984$as_echo "$ac_ct_RANLIB" >&6; }
4985else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987$as_echo "no" >&6; }
4988fi
4989
4990 if test "x$ac_ct_RANLIB" = x; then
4991 RANLIB=":"
4992 else
4993 case $cross_compiling:$ac_tool_warned in
4994yes:)
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4997ac_tool_warned=yes ;;
4998esac
4999 RANLIB=$ac_ct_RANLIB
5000 fi
5001else
5002 RANLIB="$ac_cv_prog_RANLIB"
5003fi
5004
5005if test -n "$ac_tool_prefix"; then
5006 for ac_prog in ar lib "link -lib"
5007 do
5008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5009set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011$as_echo_n "checking for $ac_word... " >&6; }
5012if ${ac_cv_prog_AR+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014else
5015 if test -n "$AR"; then
5016 ac_cv_prog_AR="$AR" # Let the user override the test.
5017else
5018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019for as_dir in $PATH
5020do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029done
5030 done
5031IFS=$as_save_IFS
5032
5033fi
5034fi
5035AR=$ac_cv_prog_AR
5036if test -n "$AR"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5038$as_echo "$AR" >&6; }
5039else
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041$as_echo "no" >&6; }
5042fi
5043
5044
5045 test -n "$AR" && break
5046 done
5047fi
5048if test -z "$AR"; then
5049 ac_ct_AR=$AR
5050 for ac_prog in ar lib "link -lib"
5051do
5052 # Extract the first word of "$ac_prog", so it can be a program name with args.
5053set dummy $ac_prog; ac_word=$2
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055$as_echo_n "checking for $ac_word... " >&6; }
5056if ${ac_cv_prog_ac_ct_AR+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058else
5059 if test -n "$ac_ct_AR"; then
5060 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5061else
5062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063for as_dir in $PATH
5064do
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5069 ac_cv_prog_ac_ct_AR="$ac_prog"
5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 break 2
5072 fi
5073done
5074 done
5075IFS=$as_save_IFS
5076
5077fi
5078fi
5079ac_ct_AR=$ac_cv_prog_ac_ct_AR
5080if test -n "$ac_ct_AR"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5082$as_echo "$ac_ct_AR" >&6; }
5083else
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085$as_echo "no" >&6; }
5086fi
5087
5088
5089 test -n "$ac_ct_AR" && break
5090done
5091
5092 if test "x$ac_ct_AR" = x; then
5093 AR="false"
5094 else
5095 case $cross_compiling:$ac_tool_warned in
5096yes:)
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5099ac_tool_warned=yes ;;
5100esac
5101 AR=$ac_ct_AR
5102 fi
5103fi
5104
5105: ${AR=ar}
5106
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5108$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5109if ${am_cv_ar_interface+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111else
5112 ac_ext=c
5113ac_cpp='$CPP $CPPFLAGS'
5114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116ac_compiler_gnu=$ac_cv_c_compiler_gnu
5117
5118 am_cv_ar_interface=ar
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120/* end confdefs.h. */
5121int some_variable = 0;
5122_ACEOF
5123if ac_fn_c_try_compile "$LINENO"; then :
5124 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5126 (eval $am_ar_try) 2>&5
5127 ac_status=$?
5128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5129 test $ac_status = 0; }
5130 if test "$ac_status" -eq 0; then
5131 am_cv_ar_interface=ar
5132 else
5133 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5135 (eval $am_ar_try) 2>&5
5136 ac_status=$?
5137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5138 test $ac_status = 0; }
5139 if test "$ac_status" -eq 0; then
5140 am_cv_ar_interface=lib
5141 else
5142 am_cv_ar_interface=unknown
5143 fi
5144 fi
5145 rm -f conftest.lib libconftest.a
5146
5147fi
5148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149 ac_ext=c
5150ac_cpp='$CPP $CPPFLAGS'
5151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153ac_compiler_gnu=$ac_cv_c_compiler_gnu
5154
5155fi
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5157$as_echo "$am_cv_ar_interface" >&6; }
5158
5159case $am_cv_ar_interface in
5160ar)
5161 ;;
5162lib)
5163 # Microsoft lib, so override with the ar-lib wrapper script.
5164 # FIXME: It is wrong to rewrite AR.
5165 # But if we don't then we get into trouble of one sort or another.
5166 # A longer-term fix would be to have automake use am__AR in this case,
5167 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5168 # similar.
5169 AR="$am_aux_dir/ar-lib $AR"
5170 ;;
5171unknown)
5172 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5173 ;;
5174esac
5175
5176
5177# Check whether --enable-largefile was given.
5178if test "${enable_largefile+set}" = set; then :
5179 enableval=$enable_largefile;
5180fi
5181
5182if test "$enable_largefile" != no; then
5183
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5185$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5186if ${ac_cv_sys_largefile_CC+:} false; then :
5187 $as_echo_n "(cached) " >&6
5188else
5189 ac_cv_sys_largefile_CC=no
5190 if test "$GCC" != yes; then
5191 ac_save_CC=$CC
5192 while :; do
5193 # IRIX 6.2 and later do not support large files by default,
5194 # so use the C compiler's -n32 option if that helps.
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196/* end confdefs.h. */
5197#include <sys/types.h>
5198 /* Check that off_t can represent 2**63 - 1 correctly.
5199 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5200 since some C++ compilers masquerading as C compilers
5201 incorrectly reject 9223372036854775807. */
5202#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5203 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5204 && LARGE_OFF_T % 2147483647 == 1)
5205 ? 1 : -1];
5206int
5207main ()
5208{
5209
5210 ;
5211 return 0;
5212}
5213_ACEOF
5214 if ac_fn_c_try_compile "$LINENO"; then :
5215 break
5216fi
5217rm -f core conftest.err conftest.$ac_objext
5218 CC="$CC -n32"
5219 if ac_fn_c_try_compile "$LINENO"; then :
5220 ac_cv_sys_largefile_CC=' -n32'; break
5221fi
5222rm -f core conftest.err conftest.$ac_objext
5223 break
5224 done
5225 CC=$ac_save_CC
5226 rm -f conftest.$ac_ext
5227 fi
5228fi
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5230$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5231 if test "$ac_cv_sys_largefile_CC" != no; then
5232 CC=$CC$ac_cv_sys_largefile_CC
5233 fi
5234
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5236$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5237if ${ac_cv_sys_file_offset_bits+:} false; then :
5238 $as_echo_n "(cached) " >&6
5239else
5240 while :; do
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242/* end confdefs.h. */
5243#include <sys/types.h>
5244 /* Check that off_t can represent 2**63 - 1 correctly.
5245 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5246 since some C++ compilers masquerading as C compilers
5247 incorrectly reject 9223372036854775807. */
5248#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5250 && LARGE_OFF_T % 2147483647 == 1)
5251 ? 1 : -1];
5252int
5253main ()
5254{
5255
5256 ;
5257 return 0;
5258}
5259_ACEOF
5260if ac_fn_c_try_compile "$LINENO"; then :
5261 ac_cv_sys_file_offset_bits=no; break
5262fi
5263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265/* end confdefs.h. */
5266#define _FILE_OFFSET_BITS 64
5267#include <sys/types.h>
5268 /* Check that off_t can represent 2**63 - 1 correctly.
5269 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5270 since some C++ compilers masquerading as C compilers
5271 incorrectly reject 9223372036854775807. */
5272#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5273 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5274 && LARGE_OFF_T % 2147483647 == 1)
5275 ? 1 : -1];
5276int
5277main ()
5278{
5279
5280 ;
5281 return 0;
5282}
5283_ACEOF
5284if ac_fn_c_try_compile "$LINENO"; then :
5285 ac_cv_sys_file_offset_bits=64; break
5286fi
5287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 ac_cv_sys_file_offset_bits=unknown
5289 break
5290done
5291fi
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5293$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5294case $ac_cv_sys_file_offset_bits in #(
5295 no | unknown) ;;
5296 *)
5297cat >>confdefs.h <<_ACEOF
5298#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5299_ACEOF
5300;;
5301esac
5302rm -rf conftest*
5303 if test $ac_cv_sys_file_offset_bits = unknown; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5305$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5306if ${ac_cv_sys_large_files+:} false; then :
5307 $as_echo_n "(cached) " >&6
5308else
5309 while :; do
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311/* end confdefs.h. */
5312#include <sys/types.h>
5313 /* Check that off_t can represent 2**63 - 1 correctly.
5314 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5315 since some C++ compilers masquerading as C compilers
5316 incorrectly reject 9223372036854775807. */
5317#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5318 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5319 && LARGE_OFF_T % 2147483647 == 1)
5320 ? 1 : -1];
5321int
5322main ()
5323{
5324
5325 ;
5326 return 0;
5327}
5328_ACEOF
5329if ac_fn_c_try_compile "$LINENO"; then :
5330 ac_cv_sys_large_files=no; break
5331fi
5332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334/* end confdefs.h. */
5335#define _LARGE_FILES 1
5336#include <sys/types.h>
5337 /* Check that off_t can represent 2**63 - 1 correctly.
5338 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5339 since some C++ compilers masquerading as C compilers
5340 incorrectly reject 9223372036854775807. */
5341#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5342 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5343 && LARGE_OFF_T % 2147483647 == 1)
5344 ? 1 : -1];
5345int
5346main ()
5347{
5348
5349 ;
5350 return 0;
5351}
5352_ACEOF
5353if ac_fn_c_try_compile "$LINENO"; then :
5354 ac_cv_sys_large_files=1; break
5355fi
5356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357 ac_cv_sys_large_files=unknown
5358 break
5359done
5360fi
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5362$as_echo "$ac_cv_sys_large_files" >&6; }
5363case $ac_cv_sys_large_files in #(
5364 no | unknown) ;;
5365 *)
5366cat >>confdefs.h <<_ACEOF
5367#define _LARGE_FILES $ac_cv_sys_large_files
5368_ACEOF
5369;;
5370esac
5371rm -rf conftest*
5372 fi
5373
5374
5375fi
5376
5377
5378MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5379for ac_prog in aclocal
5380do
5381 # Extract the first word of "$ac_prog", so it can be a program name with args.
5382set dummy $ac_prog; ac_word=$2
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384$as_echo_n "checking for $ac_word... " >&6; }
5385if ${ac_cv_prog_ACLOCAL+:} false; then :
5386 $as_echo_n "(cached) " >&6
5387else
5388 if test -n "$ACLOCAL"; then
5389 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
5390else
5391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392for as_dir in $PATH
5393do
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398 ac_cv_prog_ACLOCAL="$ac_prog"
5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5401 fi
5402done
5403 done
5404IFS=$as_save_IFS
5405
5406fi
5407fi
5408ACLOCAL=$ac_cv_prog_ACLOCAL
5409if test -n "$ACLOCAL"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
5411$as_echo "$ACLOCAL" >&6; }
5412else
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414$as_echo "no" >&6; }
5415fi
5416
5417
5418 test -n "$ACLOCAL" && break
5419done
5420test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
5421
5422for ac_prog in autoconf
5423do
5424 # Extract the first word of "$ac_prog", so it can be a program name with args.
5425set dummy $ac_prog; ac_word=$2
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427$as_echo_n "checking for $ac_word... " >&6; }
5428if ${ac_cv_prog_AUTOCONF+:} false; then :
5429 $as_echo_n "(cached) " >&6
5430else
5431 if test -n "$AUTOCONF"; then
5432 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5433else
5434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435for as_dir in $PATH
5436do
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_prog_AUTOCONF="$ac_prog"
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5444 fi
5445done
5446 done
5447IFS=$as_save_IFS
5448
5449fi
5450fi
5451AUTOCONF=$ac_cv_prog_AUTOCONF
5452if test -n "$AUTOCONF"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5454$as_echo "$AUTOCONF" >&6; }
5455else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457$as_echo "no" >&6; }
5458fi
5459
5460
5461 test -n "$AUTOCONF" && break
5462done
5463test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
5464
5465for ac_prog in autoheader
5466do
5467 # Extract the first word of "$ac_prog", so it can be a program name with args.
5468set dummy $ac_prog; ac_word=$2
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470$as_echo_n "checking for $ac_word... " >&6; }
5471if ${ac_cv_prog_AUTOHEADER+:} false; then :
5472 $as_echo_n "(cached) " >&6
5473else
5474 if test -n "$AUTOHEADER"; then
5475 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
5476else
5477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478for as_dir in $PATH
5479do
5480 IFS=$as_save_IFS
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484 ac_cv_prog_AUTOHEADER="$ac_prog"
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 break 2
5487 fi
5488done
5489 done
5490IFS=$as_save_IFS
5491
5492fi
5493fi
5494AUTOHEADER=$ac_cv_prog_AUTOHEADER
5495if test -n "$AUTOHEADER"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
5497$as_echo "$AUTOHEADER" >&6; }
5498else
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500$as_echo "no" >&6; }
5501fi
5502
5503
5504 test -n "$AUTOHEADER" && break
5505done
5506test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
5507
5508
5509# Figure out what compiler warnings we can enable.
5510# See config/warnings.m4 for details.
5511
5512ac_ext=c
5513ac_cpp='$CPP $CPPFLAGS'
5514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5516ac_compiler_gnu=$ac_cv_c_compiler_gnu
5517
5518warn=
5519save_CFLAGS="$CFLAGS"
5520for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
5521 -Wmissing-format-attribute; do
5522 # Do the check with the no- prefix removed since gcc silently
5523 # accepts any -Wno-* option on purpose
5524 case $real_option in
5525 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5526 *) option=$real_option ;;
5527 esac
5528 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5531$as_echo_n "checking whether $CC supports $option... " >&6; }
5532if eval \${$as_acx_Woption+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534else
5535 CFLAGS="$option"
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537/* end confdefs.h. */
5538
5539int
5540main ()
5541{
5542
5543 ;
5544 return 0;
5545}
5546_ACEOF
5547if ac_fn_c_try_compile "$LINENO"; then :
5548 eval "$as_acx_Woption=yes"
5549else
5550 eval "$as_acx_Woption=no"
5551fi
5552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553
5554fi
5555eval ac_res=\$$as_acx_Woption
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5557$as_echo "$ac_res" >&6; }
5558 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5559 warn="$warn${warn:+ }$real_option"
5560fi
5561 done
5562CFLAGS="$save_CFLAGS"
5563ac_ext=c
5564ac_cpp='$CPP $CPPFLAGS'
5565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5567ac_compiler_gnu=$ac_cv_c_compiler_gnu
5568
5569
5570ac_ext=c
5571ac_cpp='$CPP $CPPFLAGS'
5572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574ac_compiler_gnu=$ac_cv_c_compiler_gnu
5575
5576c_warn=
5577save_CFLAGS="$CFLAGS"
5578for real_option in -Wstrict-prototypes -Wmissing-prototypes \
5579 -Wold-style-definition; do
5580 # Do the check with the no- prefix removed since gcc silently
5581 # accepts any -Wno-* option on purpose
5582 case $real_option in
5583 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5584 *) option=$real_option ;;
5585 esac
5586 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5587
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5589$as_echo_n "checking whether $CC supports $option... " >&6; }
5590if eval \${$as_acx_Woption+:} false; then :
5591 $as_echo_n "(cached) " >&6
5592else
5593 CFLAGS="$option"
5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595/* end confdefs.h. */
5596
5597int
5598main ()
5599{
5600
5601 ;
5602 return 0;
5603}
5604_ACEOF
5605if ac_fn_c_try_compile "$LINENO"; then :
5606 eval "$as_acx_Woption=yes"
5607else
5608 eval "$as_acx_Woption=no"
5609fi
5610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611
5612fi
5613eval ac_res=\$$as_acx_Woption
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5615$as_echo "$ac_res" >&6; }
5616 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5617 c_warn="$c_warn${c_warn:+ }$real_option"
5618fi
5619 done
5620CFLAGS="$save_CFLAGS"
5621ac_ext=c
5622ac_cpp='$CPP $CPPFLAGS'
5623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625ac_compiler_gnu=$ac_cv_c_compiler_gnu
5626
5627
5628ac_ext=c
5629ac_cpp='$CPP $CPPFLAGS'
5630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632ac_compiler_gnu=$ac_cv_c_compiler_gnu
5633
5634WARN_PEDANTIC=
5635# Do the check with the no- prefix removed from the warning options
5636# since gcc silently accepts any -Wno-* option on purpose
5637if test "$GCC" = yes; then :
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
5639$as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
5640if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
5641 $as_echo_n "(cached) " >&6
5642else
5643 save_CFLAGS="$CFLAGS"
5644CFLAGS="-pedantic -Wlong-long"
5645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646/* end confdefs.h. */
5647
5648int
5649main ()
5650{
5651
5652 ;
5653 return 0;
5654}
5655_ACEOF
5656if ac_fn_c_try_compile "$LINENO"; then :
5657 acx_cv_prog_cc_pedantic__Wlong_long=yes
5658else
5659 acx_cv_prog_cc_pedantic__Wlong_long=no
5660fi
5661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662CFLAGS="$save_CFLAGS"
5663fi
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
5665$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
5666if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
5667 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
5668fi
5669
5670fi
5671ac_ext=c
5672ac_cpp='$CPP $CPPFLAGS'
5673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5675ac_compiler_gnu=$ac_cv_c_compiler_gnu
5676
5677
5678
5679# Only enable with --enable-werror-always until existing warnings are
5680# corrected.
5681ac_ext=c
5682ac_cpp='$CPP $CPPFLAGS'
5683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5685ac_compiler_gnu=$ac_cv_c_compiler_gnu
5686
5687WERROR=
5688# Check whether --enable-werror-always was given.
5689if test "${enable_werror_always+set}" = set; then :
5690 enableval=$enable_werror_always;
5691else
5692 enable_werror_always=no
5693fi
5694
5695if test $enable_werror_always = yes; then :
5696 WERROR="$WERROR${WERROR:+ }-Werror"
5697fi
5698
5699ac_ext=c
5700ac_cpp='$CPP $CPPFLAGS'
5701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703ac_compiler_gnu=$ac_cv_c_compiler_gnu
5704
5705
5706
5707
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5709$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5710 # Check whether --enable-maintainer-mode was given.
5711if test "${enable_maintainer_mode+set}" = set; then :
5712 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5713else
5714 USE_MAINTAINER_MODE=no
5715fi
5716
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5718$as_echo "$USE_MAINTAINER_MODE" >&6; }
5719 if test $USE_MAINTAINER_MODE = yes; then
5720 MAINTAINER_MODE_TRUE=
5721 MAINTAINER_MODE_FALSE='#'
5722else
5723 MAINTAINER_MODE_TRUE='#'
5724 MAINTAINER_MODE_FALSE=
5725fi
5726
5727 MAINT=$MAINTAINER_MODE_TRUE
5728
5729
5730ac_ext=c
5731ac_cpp='$CPP $CPPFLAGS'
5732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5734ac_compiler_gnu=$ac_cv_c_compiler_gnu
5735
5736ac_libctf_warn_cflags=
5737save_CFLAGS="$CFLAGS"
5738for real_option in -Wall; do
5739 # Do the check with the no- prefix removed since gcc silently
5740 # accepts any -Wno-* option on purpose
5741 case $real_option in
5742 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5743 *) option=$real_option ;;
5744 esac
5745 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5746
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5748$as_echo_n "checking whether $CC supports $option... " >&6; }
5749if eval \${$as_acx_Woption+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751else
5752 CFLAGS="$option"
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754/* end confdefs.h. */
5755
5756int
5757main ()
5758{
5759
5760 ;
5761 return 0;
5762}
5763_ACEOF
5764if ac_fn_c_try_compile "$LINENO"; then :
5765 eval "$as_acx_Woption=yes"
5766else
5767 eval "$as_acx_Woption=no"
5768fi
5769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770
5771fi
5772eval ac_res=\$$as_acx_Woption
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5774$as_echo "$ac_res" >&6; }
5775 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5776 ac_libctf_warn_cflags="$ac_libctf_warn_cflags${ac_libctf_warn_cflags:+ }$real_option"
5777fi
5778 done
5779CFLAGS="$save_CFLAGS"
5780ac_ext=c
5781ac_cpp='$CPP $CPPFLAGS'
5782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784ac_compiler_gnu=$ac_cv_c_compiler_gnu
5785
5786
5787
5788
5789
5790
5791 for ac_header in $ac_header_list
5792do :
5793 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5794ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5795"
5796if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5797 cat >>confdefs.h <<_ACEOF
5798#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5799_ACEOF
5800
5801fi
5802
5803done
5804
5805
5806
5807
5808
5809
5810
5811
5812for ac_func in getpagesize
5813do :
5814 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5815if test "x$ac_cv_func_getpagesize" = xyes; then :
5816 cat >>confdefs.h <<_ACEOF
5817#define HAVE_GETPAGESIZE 1
5818_ACEOF
5819
5820fi
5821done
5822
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5824$as_echo_n "checking for working mmap... " >&6; }
5825if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
5826 $as_echo_n "(cached) " >&6
5827else
5828 if test "$cross_compiling" = yes; then :
5829 ac_cv_func_mmap_fixed_mapped=no
5830else
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832/* end confdefs.h. */
5833$ac_includes_default
5834/* malloc might have been renamed as rpl_malloc. */
5835#undef malloc
5836
5837/* Thanks to Mike Haertel and Jim Avera for this test.
5838 Here is a matrix of mmap possibilities:
5839 mmap private not fixed
5840 mmap private fixed at somewhere currently unmapped
5841 mmap private fixed at somewhere already mapped
5842 mmap shared not fixed
5843 mmap shared fixed at somewhere currently unmapped
5844 mmap shared fixed at somewhere already mapped
5845 For private mappings, we should verify that changes cannot be read()
5846 back from the file, nor mmap's back from the file at a different
5847 address. (There have been systems where private was not correctly
5848 implemented like the infamous i386 svr4.0, and systems where the
5849 VM page cache was not coherent with the file system buffer cache
5850 like early versions of FreeBSD and possibly contemporary NetBSD.)
5851 For shared mappings, we should conversely verify that changes get
5852 propagated back to all the places they're supposed to be.
5853
5854 Grep wants private fixed already mapped.
5855 The main things grep needs to know about mmap are:
5856 * does it exist and is it safe to write into the mmap'd area
5857 * how to use it (BSD variants) */
5858
5859#include <fcntl.h>
5860#include <sys/mman.h>
5861
5862#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5863char *malloc ();
5864#endif
5865
5866/* This mess was copied from the GNU getpagesize.h. */
5867#ifndef HAVE_GETPAGESIZE
5868# ifdef _SC_PAGESIZE
5869# define getpagesize() sysconf(_SC_PAGESIZE)
5870# else /* no _SC_PAGESIZE */
5871# ifdef HAVE_SYS_PARAM_H
5872# include <sys/param.h>
5873# ifdef EXEC_PAGESIZE
5874# define getpagesize() EXEC_PAGESIZE
5875# else /* no EXEC_PAGESIZE */
5876# ifdef NBPG
5877# define getpagesize() NBPG * CLSIZE
5878# ifndef CLSIZE
5879# define CLSIZE 1
5880# endif /* no CLSIZE */
5881# else /* no NBPG */
5882# ifdef NBPC
5883# define getpagesize() NBPC
5884# else /* no NBPC */
5885# ifdef PAGESIZE
5886# define getpagesize() PAGESIZE
5887# endif /* PAGESIZE */
5888# endif /* no NBPC */
5889# endif /* no NBPG */
5890# endif /* no EXEC_PAGESIZE */
5891# else /* no HAVE_SYS_PARAM_H */
5892# define getpagesize() 8192 /* punt totally */
5893# endif /* no HAVE_SYS_PARAM_H */
5894# endif /* no _SC_PAGESIZE */
5895
5896#endif /* no HAVE_GETPAGESIZE */
5897
5898int
5899main ()
5900{
5901 char *data, *data2, *data3;
5902 const char *cdata2;
5903 int i, pagesize;
5904 int fd, fd2;
5905
5906 pagesize = getpagesize ();
5907
5908 /* First, make a file with some known garbage in it. */
5909 data = (char *) malloc (pagesize);
5910 if (!data)
5911 return 1;
5912 for (i = 0; i < pagesize; ++i)
5913 *(data + i) = rand ();
5914 umask (0);
5915 fd = creat ("conftest.mmap", 0600);
5916 if (fd < 0)
5917 return 2;
5918 if (write (fd, data, pagesize) != pagesize)
5919 return 3;
5920 close (fd);
5921
5922 /* Next, check that the tail of a page is zero-filled. File must have
5923 non-zero length, otherwise we risk SIGBUS for entire page. */
5924 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
5925 if (fd2 < 0)
5926 return 4;
5927 cdata2 = "";
5928 if (write (fd2, cdata2, 1) != 1)
5929 return 5;
5930 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
5931 if (data2 == MAP_FAILED)
5932 return 6;
5933 for (i = 0; i < pagesize; ++i)
5934 if (*(data2 + i))
5935 return 7;
5936 close (fd2);
5937 if (munmap (data2, pagesize))
5938 return 8;
5939
5940 /* Next, try to mmap the file at a fixed address which already has
5941 something else allocated at it. If we can, also make sure that
5942 we see the same garbage. */
5943 fd = open ("conftest.mmap", O_RDWR);
5944 if (fd < 0)
5945 return 9;
5946 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5947 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5948 return 10;
5949 for (i = 0; i < pagesize; ++i)
5950 if (*(data + i) != *(data2 + i))
5951 return 11;
5952
5953 /* Finally, make sure that changes to the mapped area do not
5954 percolate back to the file as seen by read(). (This is a bug on
5955 some variants of i386 svr4.0.) */
5956 for (i = 0; i < pagesize; ++i)
5957 *(data2 + i) = *(data2 + i) + 1;
5958 data3 = (char *) malloc (pagesize);
5959 if (!data3)
5960 return 12;
5961 if (read (fd, data3, pagesize) != pagesize)
5962 return 13;
5963 for (i = 0; i < pagesize; ++i)
5964 if (*(data + i) != *(data3 + i))
5965 return 14;
5966 close (fd);
5967 return 0;
5968}
5969_ACEOF
5970if ac_fn_c_try_run "$LINENO"; then :
5971 ac_cv_func_mmap_fixed_mapped=yes
5972else
5973 ac_cv_func_mmap_fixed_mapped=no
5974fi
5975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5976 conftest.$ac_objext conftest.beam conftest.$ac_ext
5977fi
5978
5979fi
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
5981$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5982if test $ac_cv_func_mmap_fixed_mapped = yes; then
5983
5984$as_echo "#define HAVE_MMAP 1" >>confdefs.h
5985
5986fi
5987rm -f conftest.mmap conftest.txt
5988
9698cf9b
NA
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5990$as_echo_n "checking for library containing dlopen... " >&6; }
5991if ${ac_cv_search_dlopen+:} false; then :
5992 $as_echo_n "(cached) " >&6
5993else
5994 ac_func_search_save_LIBS=$LIBS
5995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996/* end confdefs.h. */
5997
5998/* Override any GCC internal prototype to avoid an error.
5999 Use char because int might match the return type of a GCC
6000 builtin and then its argument prototype would still apply. */
6001#ifdef __cplusplus
6002extern "C"
6003#endif
6004char dlopen ();
6005int
6006main ()
6007{
6008return dlopen ();
6009 ;
6010 return 0;
6011}
6012_ACEOF
6013for ac_lib in '' dl; do
6014 if test -z "$ac_lib"; then
6015 ac_res="none required"
6016 else
6017 ac_res=-l$ac_lib
6018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6019 fi
6020 if ac_fn_c_try_link "$LINENO"; then :
6021 ac_cv_search_dlopen=$ac_res
6022fi
6023rm -f core conftest.err conftest.$ac_objext \
6024 conftest$ac_exeext
6025 if ${ac_cv_search_dlopen+:} false; then :
6026 break
6027fi
6028done
6029if ${ac_cv_search_dlopen+:} false; then :
6030
6031else
6032 ac_cv_search_dlopen=no
6033fi
6034rm conftest.$ac_ext
6035LIBS=$ac_func_search_save_LIBS
6036fi
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
6038$as_echo "$ac_cv_search_dlopen" >&6; }
6039ac_res=$ac_cv_search_dlopen
6040if test "$ac_res" != no; then :
6041 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6042
6043fi
6044
6045
a0486bac
JM
6046 # Use the system's zlib library.
6047 zlibdir="-L\$(top_builddir)/../zlib"
6048 zlibinc="-I\$(top_srcdir)/../zlib"
6049
6050# Check whether --with-system-zlib was given.
6051if test "${with_system_zlib+set}" = set; then :
6052 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
6053 zlibdir=
6054 zlibinc=
6055 fi
6056
6057fi
6058
6059
6060
6061
6062
9698cf9b
NA
6063# Similar to GDB_AC_CHECK_BFD.
6064OLD_CFLAGS=$CFLAGS
6065OLD_LDFLAGS=$LDFLAGS
6066OLD_LIBS=$LIBS
6067# Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
6068# points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
6069# always want our bfd.
6070CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
6071ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
6072LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
6073intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
6074LIBS="-lbfd -liberty -lz $intl $LIBS"
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
6076$as_echo_n "checking for ELF support in BFD... " >&6; }
6077if ${ac_cv_libctf_bfd_elf+:} false; then :
6078 $as_echo_n "(cached) " >&6
6079else
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081/* end confdefs.h. */
6082#include <stdlib.h>
6083 #include "bfd.h"
6084 #include "elf-bfd.h"
6085int
6086main ()
6087{
6088(void) bfd_section_from_elf_index (NULL, 0);
6089 return 0;
6090 ;
6091 return 0;
6092}
6093_ACEOF
6094if ac_fn_c_try_link "$LINENO"; then :
6095 ac_cv_libctf_bfd_elf=yes
6096else
6097 ac_cv_libctf_bfd_elf=no
6098fi
6099rm -f core conftest.err conftest.$ac_objext \
6100 conftest$ac_exeext conftest.$ac_ext
6101fi
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_bfd_elf" >&5
6103$as_echo "$ac_cv_libctf_bfd_elf" >&6; }
6104CFLAGS=$OLD_CFLAGS
6105LDFLAGS=$OLD_LDFLAGS
6106LIBS=$OLD_LIBS
6107
6108if test $ac_cv_libctf_bfd_elf = yes; then
6109
6110$as_echo "#define HAVE_BFD_ELF 1" >>confdefs.h
6111
6112fi
6113
a0486bac
JM
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6115$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6116if ${ac_cv_c_bigendian+:} false; then :
6117 $as_echo_n "(cached) " >&6
6118else
6119 ac_cv_c_bigendian=unknown
6120 # See if we're dealing with a universal compiler.
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122/* end confdefs.h. */
6123#ifndef __APPLE_CC__
6124 not a universal capable compiler
6125 #endif
6126 typedef int dummy;
6127
6128_ACEOF
6129if ac_fn_c_try_compile "$LINENO"; then :
6130
6131 # Check for potential -arch flags. It is not universal unless
6132 # there are at least two -arch flags with different values.
6133 ac_arch=
6134 ac_prev=
6135 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6136 if test -n "$ac_prev"; then
6137 case $ac_word in
6138 i?86 | x86_64 | ppc | ppc64)
6139 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6140 ac_arch=$ac_word
6141 else
6142 ac_cv_c_bigendian=universal
6143 break
6144 fi
6145 ;;
6146 esac
6147 ac_prev=
6148 elif test "x$ac_word" = "x-arch"; then
6149 ac_prev=arch
6150 fi
6151 done
6152fi
6153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 if test $ac_cv_c_bigendian = unknown; then
6155 # See if sys/param.h defines the BYTE_ORDER macro.
6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157/* end confdefs.h. */
6158#include <sys/types.h>
6159 #include <sys/param.h>
6160
6161int
6162main ()
6163{
6164#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6165 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6166 && LITTLE_ENDIAN)
6167 bogus endian macros
6168 #endif
6169
6170 ;
6171 return 0;
6172}
6173_ACEOF
6174if ac_fn_c_try_compile "$LINENO"; then :
6175 # It does; now see whether it defined to BIG_ENDIAN or not.
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177/* end confdefs.h. */
6178#include <sys/types.h>
6179 #include <sys/param.h>
6180
6181int
6182main ()
6183{
6184#if BYTE_ORDER != BIG_ENDIAN
6185 not big endian
6186 #endif
6187
6188 ;
6189 return 0;
6190}
6191_ACEOF
6192if ac_fn_c_try_compile "$LINENO"; then :
6193 ac_cv_c_bigendian=yes
6194else
6195 ac_cv_c_bigendian=no
6196fi
6197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198fi
6199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 fi
6201 if test $ac_cv_c_bigendian = unknown; then
6202 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204/* end confdefs.h. */
6205#include <limits.h>
6206
6207int
6208main ()
6209{
6210#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6211 bogus endian macros
6212 #endif
6213
6214 ;
6215 return 0;
6216}
6217_ACEOF
6218if ac_fn_c_try_compile "$LINENO"; then :
6219 # It does; now see whether it defined to _BIG_ENDIAN or not.
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221/* end confdefs.h. */
6222#include <limits.h>
6223
6224int
6225main ()
6226{
6227#ifndef _BIG_ENDIAN
6228 not big endian
6229 #endif
6230
6231 ;
6232 return 0;
6233}
6234_ACEOF
6235if ac_fn_c_try_compile "$LINENO"; then :
6236 ac_cv_c_bigendian=yes
6237else
6238 ac_cv_c_bigendian=no
6239fi
6240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241fi
6242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243 fi
6244 if test $ac_cv_c_bigendian = unknown; then
6245 # Compile a test program.
6246 if test "$cross_compiling" = yes; then :
6247 # Try to guess by grepping values from an object file.
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249/* end confdefs.h. */
6250short int ascii_mm[] =
6251 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6252 short int ascii_ii[] =
6253 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6254 int use_ascii (int i) {
6255 return ascii_mm[i] + ascii_ii[i];
6256 }
6257 short int ebcdic_ii[] =
6258 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6259 short int ebcdic_mm[] =
6260 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6261 int use_ebcdic (int i) {
6262 return ebcdic_mm[i] + ebcdic_ii[i];
6263 }
6264 extern int foo;
6265
6266int
6267main ()
6268{
6269return use_ascii (foo) == use_ebcdic (foo);
6270 ;
6271 return 0;
6272}
6273_ACEOF
6274if ac_fn_c_try_compile "$LINENO"; then :
6275 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6276 ac_cv_c_bigendian=yes
6277 fi
6278 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6279 if test "$ac_cv_c_bigendian" = unknown; then
6280 ac_cv_c_bigendian=no
6281 else
6282 # finding both strings is unlikely to happen, but who knows?
6283 ac_cv_c_bigendian=unknown
6284 fi
6285 fi
6286fi
6287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288else
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290/* end confdefs.h. */
6291$ac_includes_default
6292int
6293main ()
6294{
6295
6296 /* Are we little or big endian? From Harbison&Steele. */
6297 union
6298 {
6299 long int l;
6300 char c[sizeof (long int)];
6301 } u;
6302 u.l = 1;
6303 return u.c[sizeof (long int) - 1] == 1;
6304
6305 ;
6306 return 0;
6307}
6308_ACEOF
6309if ac_fn_c_try_run "$LINENO"; then :
6310 ac_cv_c_bigendian=no
6311else
6312 ac_cv_c_bigendian=yes
6313fi
6314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6315 conftest.$ac_objext conftest.beam conftest.$ac_ext
6316fi
6317
6318 fi
6319fi
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6321$as_echo "$ac_cv_c_bigendian" >&6; }
6322 case $ac_cv_c_bigendian in #(
6323 yes)
6324 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6325;; #(
6326 no)
6327 ;; #(
6328 universal)
6329
6330$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6331
6332 ;; #(
6333 *)
6334 as_fn_error $? "unknown endianness
6335 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6336 esac
6337
6338for ac_header in byteswap.h endian.h
0e65dfba 6339do :
a0486bac
JM
6340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6341ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6342if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
0e65dfba 6343 cat >>confdefs.h <<_ACEOF
a0486bac 6344#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
0e65dfba
NA
6345_ACEOF
6346
6347fi
6348
6349done
6350
6351for ac_func in pread
6352do :
6353 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
6354if test "x$ac_cv_func_pread" = xyes; then :
6355 cat >>confdefs.h <<_ACEOF
6356#define HAVE_PREAD 1
6357_ACEOF
6358
6359fi
6360done
6361
6b22174f
NA
6362
6363
6364
6365
6366 for ac_func in $ac_func_list
6367do :
6368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6369ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6370if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6371 cat >>confdefs.h <<_ACEOF
6372#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6373_ACEOF
6374
a0486bac 6375fi
6b22174f 6376done
a0486bac 6377
6b22174f
NA
6378
6379
6380
6381if test $ac_cv_func_qsort_r = yes; then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qsort_r signature" >&5
6383$as_echo_n "checking for qsort_r signature... " >&6; }
6384if ${ac_cv_libctf_qsort_r_signature+:} false; then :
6385 $as_echo_n "(cached) " >&6
6386else
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388/* end confdefs.h. */
6389#undef qsort_r
6390 #include <stdlib.h>
6391 void qsort_r (void *, size_t, size_t,
6392 int (*) (void const *, void const *,
6393 void *),
6394 void *);
6395 void (*p) (void *, size_t, size_t,
6396 int (*) (void const *, void const *,
6397 void *),
6398 void *) = qsort_r;
6399
6400int
6401main ()
6402{
6403
6404 ;
6405 return 0;
6406}
a0486bac 6407_ACEOF
6b22174f
NA
6408if ac_fn_c_try_link "$LINENO"; then :
6409 ac_cv_libctf_qsort_r_signature=GNU
6410else
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412/* end confdefs.h. */
6413#undef qsort_r
6414 #include <stdlib.h>
6415 void qsort_r (void *, size_t, size_t, void *,
6416 int (*) (void *,
6417 void const *,
6418 void const *));
6419 void (*p) (void *, size_t, size_t, void *,
6420 int (*) (void *, void const *,
6421 void const *)) = qsort_r;
6422
6423int
6424main ()
6425{
a0486bac 6426
6b22174f
NA
6427 ;
6428 return 0;
6429}
6430_ACEOF
6431if ac_fn_c_try_link "$LINENO"; then :
6432 ac_cv_libctf_qsort_r_signature=BSD
6433else
6434 ac_cv_libctf_qsort_r_signature=unknown
6435fi
6436rm -f core conftest.err conftest.$ac_objext \
6437 conftest$ac_exeext conftest.$ac_ext
6438fi
6439rm -f core conftest.err conftest.$ac_objext \
6440 conftest$ac_exeext conftest.$ac_ext
6441fi
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_qsort_r_signature" >&5
6443$as_echo "$ac_cv_libctf_qsort_r_signature" >&6; }
6444fi
6445
6446case x$ac_cv_libctf_qsort_r_signature in
6447 xGNU)
6448$as_echo "#define HAVE_QSORT_R_ARG_LAST 1" >>confdefs.h
6449;;
6450 xBSD)
6451$as_echo "#define HAVE_QSORT_R_COMPAR_LAST 1" >>confdefs.h
6452;;
6453 *) ac_cv_libctf_qsort_r_signature=unknown;;
a0486bac
JM
6454esac
6455
6b22174f
NA
6456 if test "${ac_cv_libctf_qsort_r_signature}" = unknown; then
6457 NEED_CTF_QSORT_R_TRUE=
6458 NEED_CTF_QSORT_R_FALSE='#'
6459else
6460 NEED_CTF_QSORT_R_TRUE='#'
6461 NEED_CTF_QSORT_R_FALSE=
6462fi
6463
0e65dfba
NA
6464
6465ac_config_files="$ac_config_files Makefile"
6466
6467ac_config_headers="$ac_config_headers config.h"
6468
6469cat >confcache <<\_ACEOF
6470# This file is a shell script that caches the results of configure
6471# tests run on this system so they can be shared between configure
6472# scripts and configure runs, see configure's option --config-cache.
6473# It is not useful on other systems. If it contains results you don't
6474# want to keep, you may remove or edit it.
6475#
6476# config.status only pays attention to the cache file if you give it
6477# the --recheck option to rerun configure.
6478#
6479# `ac_cv_env_foo' variables (set or unset) will be overridden when
6480# loading this file, other *unset* `ac_cv_foo' will be assigned the
6481# following values.
6482
6483_ACEOF
6484
6485# The following way of writing the cache mishandles newlines in values,
6486# but we know of no workaround that is simple, portable, and efficient.
6487# So, we kill variables containing newlines.
6488# Ultrix sh set writes to stderr and can't be redirected directly,
6489# and sets the high bit in the cache file unless we assign to the vars.
6490(
6491 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6492 eval ac_val=\$$ac_var
6493 case $ac_val in #(
6494 *${as_nl}*)
6495 case $ac_var in #(
6496 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6497$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6498 esac
6499 case $ac_var in #(
6500 _ | IFS | as_nl) ;; #(
6501 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6502 *) { eval $ac_var=; unset $ac_var;} ;;
6503 esac ;;
6504 esac
6505 done
6506
6507 (set) 2>&1 |
6508 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6509 *${as_nl}ac_space=\ *)
6510 # `set' does not quote correctly, so add quotes: double-quote
6511 # substitution turns \\\\ into \\, and sed turns \\ into \.
6512 sed -n \
6513 "s/'/'\\\\''/g;
6514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6515 ;; #(
6516 *)
6517 # `set' quotes correctly as required by POSIX, so do not add quotes.
6518 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6519 ;;
6520 esac |
6521 sort
6522) |
6523 sed '
6524 /^ac_cv_env_/b end
6525 t clear
6526 :clear
6527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6528 t end
6529 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6530 :end' >>confcache
6531if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6532 if test -w "$cache_file"; then
6533 if test "x$cache_file" != "x/dev/null"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6535$as_echo "$as_me: updating cache $cache_file" >&6;}
6536 if test ! -f "$cache_file" || test -h "$cache_file"; then
6537 cat confcache >"$cache_file"
6538 else
6539 case $cache_file in #(
6540 */* | ?:*)
6541 mv -f confcache "$cache_file"$$ &&
6542 mv -f "$cache_file"$$ "$cache_file" ;; #(
6543 *)
6544 mv -f confcache "$cache_file" ;;
6545 esac
6546 fi
6547 fi
6548 else
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6550$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6551 fi
6552fi
6553rm -f confcache
6554
6555test "x$prefix" = xNONE && prefix=$ac_default_prefix
6556# Let make expand exec_prefix.
6557test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6558
6559DEFS=-DHAVE_CONFIG_H
6560
6561ac_libobjs=
6562ac_ltlibobjs=
6563U=
6564for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6565 # 1. Remove the extension, and $U if already installed.
6566 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6567 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6568 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6569 # will be set to the directory where LIBOBJS objects are built.
6570 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6571 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6572done
6573LIBOBJS=$ac_libobjs
6574
6575LTLIBOBJS=$ac_ltlibobjs
6576
6577
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6579$as_echo_n "checking that generated files are newer than configure... " >&6; }
6580 if test -n "$am_sleep_pid"; then
6581 # Hide warnings about reused PIDs.
6582 wait $am_sleep_pid 2>/dev/null
6583 fi
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
6585$as_echo "done" >&6; }
6586if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6587 as_fn_error $? "conditional \"AMDEP\" was never defined.
6588Usually this means the macro was only invoked conditionally." "$LINENO" 5
6589fi
6590if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6591 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6592Usually this means the macro was only invoked conditionally." "$LINENO" 5
6593fi
6594 if test -n "$EXEEXT"; then
6595 am__EXEEXT_TRUE=
6596 am__EXEEXT_FALSE='#'
6597else
6598 am__EXEEXT_TRUE='#'
6599 am__EXEEXT_FALSE=
6600fi
6601
6602if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6603 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
6604Usually this means the macro was only invoked conditionally." "$LINENO" 5
6605fi
6606
6b22174f
NA
6607if test -z "${NEED_CTF_QSORT_R_TRUE}" && test -z "${NEED_CTF_QSORT_R_FALSE}"; then
6608 as_fn_error $? "conditional \"NEED_CTF_QSORT_R\" was never defined.
6609Usually this means the macro was only invoked conditionally." "$LINENO" 5
6610fi
a0486bac 6611
0e65dfba
NA
6612: "${CONFIG_STATUS=./config.status}"
6613ac_write_fail=0
6614ac_clean_files_save=$ac_clean_files
6615ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6617$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6618as_write_fail=0
6619cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6620#! $SHELL
6621# Generated by $as_me.
6622# Run this file to recreate the current configuration.
6623# Compiler output produced by configure, useful for debugging
6624# configure, is in config.log if it exists.
6625
6626debug=false
6627ac_cs_recheck=false
6628ac_cs_silent=false
6629
6630SHELL=\${CONFIG_SHELL-$SHELL}
6631export SHELL
6632_ASEOF
6633cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6634## -------------------- ##
6635## M4sh Initialization. ##
6636## -------------------- ##
6637
6638# Be more Bourne compatible
6639DUALCASE=1; export DUALCASE # for MKS sh
6640if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6641 emulate sh
6642 NULLCMD=:
6643 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6644 # is contrary to our usage. Disable this feature.
6645 alias -g '${1+"$@"}'='"$@"'
6646 setopt NO_GLOB_SUBST
6647else
6648 case `(set -o) 2>/dev/null` in #(
6649 *posix*) :
6650 set -o posix ;; #(
6651 *) :
6652 ;;
6653esac
6654fi
6655
6656
6657as_nl='
6658'
6659export as_nl
6660# Printing a long string crashes Solaris 7 /usr/bin/printf.
6661as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6662as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6663as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6664# Prefer a ksh shell builtin over an external printf program on Solaris,
6665# but without wasting forks for bash or zsh.
6666if test -z "$BASH_VERSION$ZSH_VERSION" \
6667 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6668 as_echo='print -r --'
6669 as_echo_n='print -rn --'
6670elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6671 as_echo='printf %s\n'
6672 as_echo_n='printf %s'
6673else
6674 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6675 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6676 as_echo_n='/usr/ucb/echo -n'
6677 else
6678 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6679 as_echo_n_body='eval
6680 arg=$1;
6681 case $arg in #(
6682 *"$as_nl"*)
6683 expr "X$arg" : "X\\(.*\\)$as_nl";
6684 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6685 esac;
6686 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6687 '
6688 export as_echo_n_body
6689 as_echo_n='sh -c $as_echo_n_body as_echo'
6690 fi
6691 export as_echo_body
6692 as_echo='sh -c $as_echo_body as_echo'
6693fi
6694
6695# The user is always right.
6696if test "${PATH_SEPARATOR+set}" != set; then
6697 PATH_SEPARATOR=:
6698 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6699 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6700 PATH_SEPARATOR=';'
6701 }
6702fi
6703
6704
6705# IFS
6706# We need space, tab and new line, in precisely that order. Quoting is
6707# there to prevent editors from complaining about space-tab.
6708# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6709# splitting by setting IFS to empty value.)
6710IFS=" "" $as_nl"
6711
6712# Find who we are. Look in the path if we contain no directory separator.
6713as_myself=
6714case $0 in #((
6715 *[\\/]* ) as_myself=$0 ;;
6716 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
6721 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6722 done
6723IFS=$as_save_IFS
6724
6725 ;;
6726esac
6727# We did not find ourselves, most probably we were run as `sh COMMAND'
6728# in which case we are not to be found in the path.
6729if test "x$as_myself" = x; then
6730 as_myself=$0
6731fi
6732if test ! -f "$as_myself"; then
6733 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6734 exit 1
6735fi
6736
6737# Unset variables that we do not need and which cause bugs (e.g. in
6738# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6739# suppresses any "Segmentation fault" message there. '((' could
6740# trigger a bug in pdksh 5.2.14.
6741for as_var in BASH_ENV ENV MAIL MAILPATH
6742do eval test x\${$as_var+set} = xset \
6743 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6744done
6745PS1='$ '
6746PS2='> '
6747PS4='+ '
6748
6749# NLS nuisances.
6750LC_ALL=C
6751export LC_ALL
6752LANGUAGE=C
6753export LANGUAGE
6754
6755# CDPATH.
6756(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6757
6758
6759# as_fn_error STATUS ERROR [LINENO LOG_FD]
6760# ----------------------------------------
6761# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6762# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6763# script with STATUS, using 1 if that was 0.
6764as_fn_error ()
6765{
6766 as_status=$1; test $as_status -eq 0 && as_status=1
6767 if test "$4"; then
6768 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6769 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6770 fi
6771 $as_echo "$as_me: error: $2" >&2
6772 as_fn_exit $as_status
6773} # as_fn_error
6774
6775
6776# as_fn_set_status STATUS
6777# -----------------------
6778# Set $? to STATUS, without forking.
6779as_fn_set_status ()
6780{
6781 return $1
6782} # as_fn_set_status
6783
6784# as_fn_exit STATUS
6785# -----------------
6786# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6787as_fn_exit ()
6788{
6789 set +e
6790 as_fn_set_status $1
6791 exit $1
6792} # as_fn_exit
6793
6794# as_fn_unset VAR
6795# ---------------
6796# Portably unset VAR.
6797as_fn_unset ()
6798{
6799 { eval $1=; unset $1;}
6800}
6801as_unset=as_fn_unset
6802# as_fn_append VAR VALUE
6803# ----------------------
6804# Append the text in VALUE to the end of the definition contained in VAR. Take
6805# advantage of any shell optimizations that allow amortized linear growth over
6806# repeated appends, instead of the typical quadratic growth present in naive
6807# implementations.
6808if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6809 eval 'as_fn_append ()
6810 {
6811 eval $1+=\$2
6812 }'
6813else
6814 as_fn_append ()
6815 {
6816 eval $1=\$$1\$2
6817 }
6818fi # as_fn_append
6819
6820# as_fn_arith ARG...
6821# ------------------
6822# Perform arithmetic evaluation on the ARGs, and store the result in the
6823# global $as_val. Take advantage of shells that can avoid forks. The arguments
6824# must be portable across $(()) and expr.
6825if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6826 eval 'as_fn_arith ()
6827 {
6828 as_val=$(( $* ))
6829 }'
6830else
6831 as_fn_arith ()
6832 {
6833 as_val=`expr "$@" || test $? -eq 1`
6834 }
6835fi # as_fn_arith
6836
6837
6838if expr a : '\(a\)' >/dev/null 2>&1 &&
6839 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6840 as_expr=expr
6841else
6842 as_expr=false
6843fi
6844
6845if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6846 as_basename=basename
6847else
6848 as_basename=false
6849fi
6850
6851if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6852 as_dirname=dirname
6853else
6854 as_dirname=false
6855fi
6856
6857as_me=`$as_basename -- "$0" ||
6858$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6859 X"$0" : 'X\(//\)$' \| \
6860 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6861$as_echo X/"$0" |
6862 sed '/^.*\/\([^/][^/]*\)\/*$/{
6863 s//\1/
6864 q
6865 }
6866 /^X\/\(\/\/\)$/{
6867 s//\1/
6868 q
6869 }
6870 /^X\/\(\/\).*/{
6871 s//\1/
6872 q
6873 }
6874 s/.*/./; q'`
6875
6876# Avoid depending upon Character Ranges.
6877as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6878as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6879as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6880as_cr_digits='0123456789'
6881as_cr_alnum=$as_cr_Letters$as_cr_digits
6882
6883ECHO_C= ECHO_N= ECHO_T=
6884case `echo -n x` in #(((((
6885-n*)
6886 case `echo 'xy\c'` in
6887 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6888 xy) ECHO_C='\c';;
6889 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6890 ECHO_T=' ';;
6891 esac;;
6892*)
6893 ECHO_N='-n';;
6894esac
6895
6896rm -f conf$$ conf$$.exe conf$$.file
6897if test -d conf$$.dir; then
6898 rm -f conf$$.dir/conf$$.file
6899else
6900 rm -f conf$$.dir
6901 mkdir conf$$.dir 2>/dev/null
6902fi
6903if (echo >conf$$.file) 2>/dev/null; then
6904 if ln -s conf$$.file conf$$ 2>/dev/null; then
6905 as_ln_s='ln -s'
6906 # ... but there are two gotchas:
6907 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6908 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6909 # In both cases, we have to default to `cp -pR'.
6910 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6911 as_ln_s='cp -pR'
6912 elif ln conf$$.file conf$$ 2>/dev/null; then
6913 as_ln_s=ln
6914 else
6915 as_ln_s='cp -pR'
6916 fi
6917else
6918 as_ln_s='cp -pR'
6919fi
6920rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6921rmdir conf$$.dir 2>/dev/null
6922
6923
6924# as_fn_mkdir_p
6925# -------------
6926# Create "$as_dir" as a directory, including parents if necessary.
6927as_fn_mkdir_p ()
6928{
6929
6930 case $as_dir in #(
6931 -*) as_dir=./$as_dir;;
6932 esac
6933 test -d "$as_dir" || eval $as_mkdir_p || {
6934 as_dirs=
6935 while :; do
6936 case $as_dir in #(
6937 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6938 *) as_qdir=$as_dir;;
6939 esac
6940 as_dirs="'$as_qdir' $as_dirs"
6941 as_dir=`$as_dirname -- "$as_dir" ||
6942$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6943 X"$as_dir" : 'X\(//\)[^/]' \| \
6944 X"$as_dir" : 'X\(//\)$' \| \
6945 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6946$as_echo X"$as_dir" |
6947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6948 s//\1/
6949 q
6950 }
6951 /^X\(\/\/\)[^/].*/{
6952 s//\1/
6953 q
6954 }
6955 /^X\(\/\/\)$/{
6956 s//\1/
6957 q
6958 }
6959 /^X\(\/\).*/{
6960 s//\1/
6961 q
6962 }
6963 s/.*/./; q'`
6964 test -d "$as_dir" && break
6965 done
6966 test -z "$as_dirs" || eval "mkdir $as_dirs"
6967 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6968
6969
6970} # as_fn_mkdir_p
6971if mkdir -p . 2>/dev/null; then
6972 as_mkdir_p='mkdir -p "$as_dir"'
6973else
6974 test -d ./-p && rmdir ./-p
6975 as_mkdir_p=false
6976fi
6977
6978
6979# as_fn_executable_p FILE
6980# -----------------------
6981# Test if FILE is an executable regular file.
6982as_fn_executable_p ()
6983{
6984 test -f "$1" && test -x "$1"
6985} # as_fn_executable_p
6986as_test_x='test -x'
6987as_executable_p=as_fn_executable_p
6988
6989# Sed expression to map a string onto a valid CPP name.
6990as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6991
6992# Sed expression to map a string onto a valid variable name.
6993as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6994
6995
6996exec 6>&1
6997## ----------------------------------- ##
6998## Main body of $CONFIG_STATUS script. ##
6999## ----------------------------------- ##
7000_ASEOF
7001test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7002
7003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7004# Save the log message, to keep $0 and so on meaningful, and to
7005# report actual input values of CONFIG_FILES etc. instead of their
7006# values after options handling.
7007ac_log="
7008This file was extended by libctf library $as_me 1.2.0-pre, which was
7009generated by GNU Autoconf 2.69. Invocation command line was
7010
7011 CONFIG_FILES = $CONFIG_FILES
7012 CONFIG_HEADERS = $CONFIG_HEADERS
7013 CONFIG_LINKS = $CONFIG_LINKS
7014 CONFIG_COMMANDS = $CONFIG_COMMANDS
7015 $ $0 $@
7016
7017on `(hostname || uname -n) 2>/dev/null | sed 1q`
7018"
7019
7020_ACEOF
7021
7022case $ac_config_files in *"
7023"*) set x $ac_config_files; shift; ac_config_files=$*;;
7024esac
7025
7026case $ac_config_headers in *"
7027"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7028esac
7029
7030
7031cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7032# Files that config.status was made for.
7033config_files="$ac_config_files"
7034config_headers="$ac_config_headers"
7035config_commands="$ac_config_commands"
7036
7037_ACEOF
7038
7039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7040ac_cs_usage="\
7041\`$as_me' instantiates files and other configuration actions
7042from templates according to the current configuration. Unless the files
7043and actions are specified as TAGs, all are instantiated by default.
7044
7045Usage: $0 [OPTION]... [TAG]...
7046
7047 -h, --help print this help, then exit
7048 -V, --version print version number and configuration settings, then exit
7049 --config print configuration, then exit
7050 -q, --quiet, --silent
7051 do not print progress messages
7052 -d, --debug don't remove temporary files
7053 --recheck update $as_me by reconfiguring in the same conditions
7054 --file=FILE[:TEMPLATE]
7055 instantiate the configuration file FILE
7056 --header=FILE[:TEMPLATE]
7057 instantiate the configuration header FILE
7058
7059Configuration files:
7060$config_files
7061
7062Configuration headers:
7063$config_headers
7064
7065Configuration commands:
7066$config_commands
7067
7068Report bugs to the package provider."
7069
7070_ACEOF
7071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7072ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7073ac_cs_version="\\
7074libctf library config.status 1.2.0-pre
7075configured by $0, generated by GNU Autoconf 2.69,
7076 with options \\"\$ac_cs_config\\"
7077
7078Copyright (C) Free Software Foundation, Inc.
7079This config.status script is free software; the Free Software Foundation
7080gives unlimited permission to copy, distribute and modify it."
7081
7082ac_pwd='$ac_pwd'
7083srcdir='$srcdir'
7084INSTALL='$INSTALL'
7085MKDIR_P='$MKDIR_P'
7086AWK='$AWK'
7087test -n "\$AWK" || AWK=awk
7088_ACEOF
7089
7090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7091# The default lists apply if the user does not specify any file.
7092ac_need_defaults=:
7093while test $# != 0
7094do
7095 case $1 in
7096 --*=?*)
7097 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7098 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7099 ac_shift=:
7100 ;;
7101 --*=)
7102 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7103 ac_optarg=
7104 ac_shift=:
7105 ;;
7106 *)
7107 ac_option=$1
7108 ac_optarg=$2
7109 ac_shift=shift
7110 ;;
7111 esac
7112
7113 case $ac_option in
7114 # Handling of the options.
7115 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7116 ac_cs_recheck=: ;;
7117 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7118 $as_echo "$ac_cs_version"; exit ;;
7119 --config | --confi | --conf | --con | --co | --c )
7120 $as_echo "$ac_cs_config"; exit ;;
7121 --debug | --debu | --deb | --de | --d | -d )
7122 debug=: ;;
7123 --file | --fil | --fi | --f )
7124 $ac_shift
7125 case $ac_optarg in
7126 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7127 '') as_fn_error $? "missing file argument" ;;
7128 esac
7129 as_fn_append CONFIG_FILES " '$ac_optarg'"
7130 ac_need_defaults=false;;
7131 --header | --heade | --head | --hea )
7132 $ac_shift
7133 case $ac_optarg in
7134 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7135 esac
7136 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7137 ac_need_defaults=false;;
7138 --he | --h)
7139 # Conflict between --help and --header
7140 as_fn_error $? "ambiguous option: \`$1'
7141Try \`$0 --help' for more information.";;
7142 --help | --hel | -h )
7143 $as_echo "$ac_cs_usage"; exit ;;
7144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7146 ac_cs_silent=: ;;
7147
7148 # This is an error.
7149 -*) as_fn_error $? "unrecognized option: \`$1'
7150Try \`$0 --help' for more information." ;;
7151
7152 *) as_fn_append ac_config_targets " $1"
7153 ac_need_defaults=false ;;
7154
7155 esac
7156 shift
7157done
7158
7159ac_configure_extra_args=
7160
7161if $ac_cs_silent; then
7162 exec 6>/dev/null
7163 ac_configure_extra_args="$ac_configure_extra_args --silent"
7164fi
7165
7166_ACEOF
7167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7168if \$ac_cs_recheck; then
7169 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7170 shift
7171 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7172 CONFIG_SHELL='$SHELL'
7173 export CONFIG_SHELL
7174 exec "\$@"
7175fi
7176
7177_ACEOF
7178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7179exec 5>>config.log
7180{
7181 echo
7182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7183## Running $as_me. ##
7184_ASBOX
7185 $as_echo "$ac_log"
7186} >&5
7187
7188_ACEOF
7189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7190#
7191# INIT-COMMANDS
7192#
7193AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7194
7195_ACEOF
7196
7197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7198
7199# Handling of arguments.
7200for ac_config_target in $ac_config_targets
7201do
7202 case $ac_config_target in
7203 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7204 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7205 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7206
7207 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7208 esac
7209done
7210
7211
7212# If the user did not use the arguments to specify the items to instantiate,
7213# then the envvar interface is used. Set only those that are not.
7214# We use the long form for the default assignment because of an extremely
7215# bizarre bug on SunOS 4.1.3.
7216if $ac_need_defaults; then
7217 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7218 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7219 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7220fi
7221
7222# Have a temporary directory for convenience. Make it in the build tree
7223# simply because there is no reason against having it here, and in addition,
7224# creating and moving files from /tmp can sometimes cause problems.
7225# Hook for its removal unless debugging.
7226# Note that there is a small window in which the directory will not be cleaned:
7227# after its creation but before its name has been assigned to `$tmp'.
7228$debug ||
7229{
7230 tmp= ac_tmp=
7231 trap 'exit_status=$?
7232 : "${ac_tmp:=$tmp}"
7233 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7234' 0
7235 trap 'as_fn_exit 1' 1 2 13 15
7236}
7237# Create a (secure) tmp directory for tmp files.
7238
7239{
7240 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7241 test -d "$tmp"
7242} ||
7243{
7244 tmp=./conf$$-$RANDOM
7245 (umask 077 && mkdir "$tmp")
7246} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7247ac_tmp=$tmp
7248
7249# Set up the scripts for CONFIG_FILES section.
7250# No need to generate them if there are no CONFIG_FILES.
7251# This happens for instance with `./config.status config.h'.
7252if test -n "$CONFIG_FILES"; then
7253
7254
7255ac_cr=`echo X | tr X '\015'`
7256# On cygwin, bash can eat \r inside `` if the user requested igncr.
7257# But we know of no other shell where ac_cr would be empty at this
7258# point, so we can use a bashism as a fallback.
7259if test "x$ac_cr" = x; then
7260 eval ac_cr=\$\'\\r\'
7261fi
7262ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7263if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7264 ac_cs_awk_cr='\\r'
7265else
7266 ac_cs_awk_cr=$ac_cr
7267fi
7268
7269echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7270_ACEOF
7271
7272
7273{
7274 echo "cat >conf$$subs.awk <<_ACEOF" &&
7275 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7276 echo "_ACEOF"
7277} >conf$$subs.sh ||
7278 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7279ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7280ac_delim='%!_!# '
7281for ac_last_try in false false false false false :; do
7282 . ./conf$$subs.sh ||
7283 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7284
7285 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7286 if test $ac_delim_n = $ac_delim_num; then
7287 break
7288 elif $ac_last_try; then
7289 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7290 else
7291 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7292 fi
7293done
7294rm -f conf$$subs.sh
7295
7296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7297cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7298_ACEOF
7299sed -n '
7300h
7301s/^/S["/; s/!.*/"]=/
7302p
7303g
7304s/^[^!]*!//
7305:repl
7306t repl
7307s/'"$ac_delim"'$//
7308t delim
7309:nl
7310h
7311s/\(.\{148\}\)..*/\1/
7312t more1
7313s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7314p
7315n
7316b repl
7317:more1
7318s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7319p
7320g
7321s/.\{148\}//
7322t nl
7323:delim
7324h
7325s/\(.\{148\}\)..*/\1/
7326t more2
7327s/["\\]/\\&/g; s/^/"/; s/$/"/
7328p
7329b
7330:more2
7331s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7332p
7333g
7334s/.\{148\}//
7335t delim
7336' <conf$$subs.awk | sed '
7337/^[^""]/{
7338 N
7339 s/\n//
7340}
7341' >>$CONFIG_STATUS || ac_write_fail=1
7342rm -f conf$$subs.awk
7343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7344_ACAWK
7345cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7346 for (key in S) S_is_set[key] = 1
7347 FS = "\a"
7348
7349}
7350{
7351 line = $ 0
7352 nfields = split(line, field, "@")
7353 substed = 0
7354 len = length(field[1])
7355 for (i = 2; i < nfields; i++) {
7356 key = field[i]
7357 keylen = length(key)
7358 if (S_is_set[key]) {
7359 value = S[key]
7360 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7361 len += length(value) + length(field[++i])
7362 substed = 1
7363 } else
7364 len += 1 + keylen
7365 }
7366
7367 print line
7368}
7369
7370_ACAWK
7371_ACEOF
7372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7373if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7374 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7375else
7376 cat
7377fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7378 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7379_ACEOF
7380
7381# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7382# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7383# trailing colons and then remove the whole line if VPATH becomes empty
7384# (actually we leave an empty line to preserve line numbers).
7385if test "x$srcdir" = x.; then
7386 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7387h
7388s///
7389s/^/:/
7390s/[ ]*$/:/
7391s/:\$(srcdir):/:/g
7392s/:\${srcdir}:/:/g
7393s/:@srcdir@:/:/g
7394s/^:*//
7395s/:*$//
7396x
7397s/\(=[ ]*\).*/\1/
7398G
7399s/\n//
7400s/^[^=]*=[ ]*$//
7401}'
7402fi
7403
7404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7405fi # test -n "$CONFIG_FILES"
7406
7407# Set up the scripts for CONFIG_HEADERS section.
7408# No need to generate them if there are no CONFIG_HEADERS.
7409# This happens for instance with `./config.status Makefile'.
7410if test -n "$CONFIG_HEADERS"; then
7411cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7412BEGIN {
7413_ACEOF
7414
7415# Transform confdefs.h into an awk script `defines.awk', embedded as
7416# here-document in config.status, that substitutes the proper values into
7417# config.h.in to produce config.h.
7418
7419# Create a delimiter string that does not exist in confdefs.h, to ease
7420# handling of long lines.
7421ac_delim='%!_!# '
7422for ac_last_try in false false :; do
7423 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7424 if test -z "$ac_tt"; then
7425 break
7426 elif $ac_last_try; then
7427 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7428 else
7429 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7430 fi
7431done
7432
7433# For the awk script, D is an array of macro values keyed by name,
7434# likewise P contains macro parameters if any. Preserve backslash
7435# newline sequences.
7436
7437ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7438sed -n '
7439s/.\{148\}/&'"$ac_delim"'/g
7440t rset
7441:rset
7442s/^[ ]*#[ ]*define[ ][ ]*/ /
7443t def
7444d
7445:def
7446s/\\$//
7447t bsnl
7448s/["\\]/\\&/g
7449s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7450D["\1"]=" \3"/p
7451s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7452d
7453:bsnl
7454s/["\\]/\\&/g
7455s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7456D["\1"]=" \3\\\\\\n"\\/p
7457t cont
7458s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7459t cont
7460d
7461:cont
7462n
7463s/.\{148\}/&'"$ac_delim"'/g
7464t clear
7465:clear
7466s/\\$//
7467t bsnlc
7468s/["\\]/\\&/g; s/^/"/; s/$/"/p
7469d
7470:bsnlc
7471s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7472b cont
7473' <confdefs.h | sed '
7474s/'"$ac_delim"'/"\\\
7475"/g' >>$CONFIG_STATUS || ac_write_fail=1
7476
7477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7478 for (key in D) D_is_set[key] = 1
7479 FS = "\a"
7480}
7481/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7482 line = \$ 0
7483 split(line, arg, " ")
7484 if (arg[1] == "#") {
7485 defundef = arg[2]
7486 mac1 = arg[3]
7487 } else {
7488 defundef = substr(arg[1], 2)
7489 mac1 = arg[2]
7490 }
7491 split(mac1, mac2, "(") #)
7492 macro = mac2[1]
7493 prefix = substr(line, 1, index(line, defundef) - 1)
7494 if (D_is_set[macro]) {
7495 # Preserve the white space surrounding the "#".
7496 print prefix "define", macro P[macro] D[macro]
7497 next
7498 } else {
7499 # Replace #undef with comments. This is necessary, for example,
7500 # in the case of _POSIX_SOURCE, which is predefined and required
7501 # on some systems where configure will not decide to define it.
7502 if (defundef == "undef") {
7503 print "/*", prefix defundef, macro, "*/"
7504 next
7505 }
7506 }
7507}
7508{ print }
7509_ACAWK
7510_ACEOF
7511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7512 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7513fi # test -n "$CONFIG_HEADERS"
7514
7515
7516eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7517shift
7518for ac_tag
7519do
7520 case $ac_tag in
7521 :[FHLC]) ac_mode=$ac_tag; continue;;
7522 esac
7523 case $ac_mode$ac_tag in
7524 :[FHL]*:*);;
7525 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7526 :[FH]-) ac_tag=-:-;;
7527 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7528 esac
7529 ac_save_IFS=$IFS
7530 IFS=:
7531 set x $ac_tag
7532 IFS=$ac_save_IFS
7533 shift
7534 ac_file=$1
7535 shift
7536
7537 case $ac_mode in
7538 :L) ac_source=$1;;
7539 :[FH])
7540 ac_file_inputs=
7541 for ac_f
7542 do
7543 case $ac_f in
7544 -) ac_f="$ac_tmp/stdin";;
7545 *) # Look for the file first in the build tree, then in the source tree
7546 # (if the path is not absolute). The absolute path cannot be DOS-style,
7547 # because $ac_f cannot contain `:'.
7548 test -f "$ac_f" ||
7549 case $ac_f in
7550 [\\/$]*) false;;
7551 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7552 esac ||
7553 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7554 esac
7555 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7556 as_fn_append ac_file_inputs " '$ac_f'"
7557 done
7558
7559 # Let's still pretend it is `configure' which instantiates (i.e., don't
7560 # use $as_me), people would be surprised to read:
7561 # /* config.h. Generated by config.status. */
7562 configure_input='Generated from '`
7563 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7564 `' by configure.'
7565 if test x"$ac_file" != x-; then
7566 configure_input="$ac_file. $configure_input"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7568$as_echo "$as_me: creating $ac_file" >&6;}
7569 fi
7570 # Neutralize special characters interpreted by sed in replacement strings.
7571 case $configure_input in #(
7572 *\&* | *\|* | *\\* )
7573 ac_sed_conf_input=`$as_echo "$configure_input" |
7574 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7575 *) ac_sed_conf_input=$configure_input;;
7576 esac
7577
7578 case $ac_tag in
7579 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7581 esac
7582 ;;
7583 esac
7584
7585 ac_dir=`$as_dirname -- "$ac_file" ||
7586$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7587 X"$ac_file" : 'X\(//\)[^/]' \| \
7588 X"$ac_file" : 'X\(//\)$' \| \
7589 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7590$as_echo X"$ac_file" |
7591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7592 s//\1/
7593 q
7594 }
7595 /^X\(\/\/\)[^/].*/{
7596 s//\1/
7597 q
7598 }
7599 /^X\(\/\/\)$/{
7600 s//\1/
7601 q
7602 }
7603 /^X\(\/\).*/{
7604 s//\1/
7605 q
7606 }
7607 s/.*/./; q'`
7608 as_dir="$ac_dir"; as_fn_mkdir_p
7609 ac_builddir=.
7610
7611case "$ac_dir" in
7612.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7613*)
7614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7615 # A ".." for each directory in $ac_dir_suffix.
7616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7617 case $ac_top_builddir_sub in
7618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7620 esac ;;
7621esac
7622ac_abs_top_builddir=$ac_pwd
7623ac_abs_builddir=$ac_pwd$ac_dir_suffix
7624# for backward compatibility:
7625ac_top_builddir=$ac_top_build_prefix
7626
7627case $srcdir in
7628 .) # We are building in place.
7629 ac_srcdir=.
7630 ac_top_srcdir=$ac_top_builddir_sub
7631 ac_abs_top_srcdir=$ac_pwd ;;
7632 [\\/]* | ?:[\\/]* ) # Absolute name.
7633 ac_srcdir=$srcdir$ac_dir_suffix;
7634 ac_top_srcdir=$srcdir
7635 ac_abs_top_srcdir=$srcdir ;;
7636 *) # Relative name.
7637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7638 ac_top_srcdir=$ac_top_build_prefix$srcdir
7639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7640esac
7641ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7642
7643
7644 case $ac_mode in
7645 :F)
7646 #
7647 # CONFIG_FILE
7648 #
7649
7650 case $INSTALL in
7651 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7652 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7653 esac
7654 ac_MKDIR_P=$MKDIR_P
7655 case $MKDIR_P in
7656 [\\/$]* | ?:[\\/]* ) ;;
7657 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7658 esac
7659_ACEOF
7660
7661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7662# If the template does not know about datarootdir, expand it.
7663# FIXME: This hack should be removed a few years after 2.60.
7664ac_datarootdir_hack=; ac_datarootdir_seen=
7665ac_sed_dataroot='
7666/datarootdir/ {
7667 p
7668 q
7669}
7670/@datadir@/p
7671/@docdir@/p
7672/@infodir@/p
7673/@localedir@/p
7674/@mandir@/p'
7675case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7676*datarootdir*) ac_datarootdir_seen=yes;;
7677*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7679$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7680_ACEOF
7681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7682 ac_datarootdir_hack='
7683 s&@datadir@&$datadir&g
7684 s&@docdir@&$docdir&g
7685 s&@infodir@&$infodir&g
7686 s&@localedir@&$localedir&g
7687 s&@mandir@&$mandir&g
7688 s&\\\${datarootdir}&$datarootdir&g' ;;
7689esac
7690_ACEOF
7691
7692# Neutralize VPATH when `$srcdir' = `.'.
7693# Shell code in configure.ac might set extrasub.
7694# FIXME: do we really want to maintain this feature?
7695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7696ac_sed_extra="$ac_vpsub
7697$extrasub
7698_ACEOF
7699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7700:t
7701/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7702s|@configure_input@|$ac_sed_conf_input|;t t
7703s&@top_builddir@&$ac_top_builddir_sub&;t t
7704s&@top_build_prefix@&$ac_top_build_prefix&;t t
7705s&@srcdir@&$ac_srcdir&;t t
7706s&@abs_srcdir@&$ac_abs_srcdir&;t t
7707s&@top_srcdir@&$ac_top_srcdir&;t t
7708s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7709s&@builddir@&$ac_builddir&;t t
7710s&@abs_builddir@&$ac_abs_builddir&;t t
7711s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7712s&@INSTALL@&$ac_INSTALL&;t t
7713s&@MKDIR_P@&$ac_MKDIR_P&;t t
7714$ac_datarootdir_hack
7715"
7716eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7717 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7718
7719test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7720 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7721 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7722 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7724which seems to be undefined. Please make sure it is defined" >&5
7725$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7726which seems to be undefined. Please make sure it is defined" >&2;}
7727
7728 rm -f "$ac_tmp/stdin"
7729 case $ac_file in
7730 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7731 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7732 esac \
7733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7734 ;;
7735 :H)
7736 #
7737 # CONFIG_HEADER
7738 #
7739 if test x"$ac_file" != x-; then
7740 {
7741 $as_echo "/* $configure_input */" \
7742 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7743 } >"$ac_tmp/config.h" \
7744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7745 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7747$as_echo "$as_me: $ac_file is unchanged" >&6;}
7748 else
7749 rm -f "$ac_file"
7750 mv "$ac_tmp/config.h" "$ac_file" \
7751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7752 fi
7753 else
7754 $as_echo "/* $configure_input */" \
7755 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7756 || as_fn_error $? "could not create -" "$LINENO" 5
7757 fi
7758# Compute "$ac_file"'s index in $config_headers.
7759_am_arg="$ac_file"
7760_am_stamp_count=1
7761for _am_header in $config_headers :; do
7762 case $_am_header in
7763 $_am_arg | $_am_arg:* )
7764 break ;;
7765 * )
7766 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7767 esac
7768done
7769echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7770$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7771 X"$_am_arg" : 'X\(//\)[^/]' \| \
7772 X"$_am_arg" : 'X\(//\)$' \| \
7773 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7774$as_echo X"$_am_arg" |
7775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7776 s//\1/
7777 q
7778 }
7779 /^X\(\/\/\)[^/].*/{
7780 s//\1/
7781 q
7782 }
7783 /^X\(\/\/\)$/{
7784 s//\1/
7785 q
7786 }
7787 /^X\(\/\).*/{
7788 s//\1/
7789 q
7790 }
7791 s/.*/./; q'`/stamp-h$_am_stamp_count
7792 ;;
7793
7794 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7795$as_echo "$as_me: executing $ac_file commands" >&6;}
7796 ;;
7797 esac
7798
7799
7800 case $ac_file$ac_mode in
7801 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7802 # Older Autoconf quotes --file arguments for eval, but not when files
7803 # are listed without --file. Let's play safe and only enable the eval
7804 # if we detect the quoting.
7805 case $CONFIG_FILES in
7806 *\'*) eval set x "$CONFIG_FILES" ;;
7807 *) set x $CONFIG_FILES ;;
7808 esac
7809 shift
7810 for mf
7811 do
7812 # Strip MF so we end up with the name of the file.
7813 mf=`echo "$mf" | sed -e 's/:.*$//'`
7814 # Check whether this is an Automake generated Makefile or not.
7815 # We used to match only the files named 'Makefile.in', but
7816 # some people rename them; so instead we look at the file content.
7817 # Grep'ing the first line is not enough: some people post-process
7818 # each Makefile.in and add a new line on top of each file to say so.
7819 # Grep'ing the whole file is not good either: AIX grep has a line
7820 # limit of 2048, but all sed's we know have understand at least 4000.
7821 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7822 dirpart=`$as_dirname -- "$mf" ||
7823$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7824 X"$mf" : 'X\(//\)[^/]' \| \
7825 X"$mf" : 'X\(//\)$' \| \
7826 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7827$as_echo X"$mf" |
7828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7829 s//\1/
7830 q
7831 }
7832 /^X\(\/\/\)[^/].*/{
7833 s//\1/
7834 q
7835 }
7836 /^X\(\/\/\)$/{
7837 s//\1/
7838 q
7839 }
7840 /^X\(\/\).*/{
7841 s//\1/
7842 q
7843 }
7844 s/.*/./; q'`
7845 else
7846 continue
7847 fi
7848 # Extract the definition of DEPDIR, am__include, and am__quote
7849 # from the Makefile without running 'make'.
7850 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7851 test -z "$DEPDIR" && continue
7852 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7853 test -z "$am__include" && continue
7854 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7855 # Find all dependency output files, they are included files with
7856 # $(DEPDIR) in their names. We invoke sed twice because it is the
7857 # simplest approach to changing $(DEPDIR) to its actual value in the
7858 # expansion.
7859 for file in `sed -n "
7860 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7861 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
7862 # Make sure the directory exists.
7863 test -f "$dirpart/$file" && continue
7864 fdir=`$as_dirname -- "$file" ||
7865$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7866 X"$file" : 'X\(//\)[^/]' \| \
7867 X"$file" : 'X\(//\)$' \| \
7868 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7869$as_echo X"$file" |
7870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7871 s//\1/
7872 q
7873 }
7874 /^X\(\/\/\)[^/].*/{
7875 s//\1/
7876 q
7877 }
7878 /^X\(\/\/\)$/{
7879 s//\1/
7880 q
7881 }
7882 /^X\(\/\).*/{
7883 s//\1/
7884 q
7885 }
7886 s/.*/./; q'`
7887 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7888 # echo "creating $dirpart/$file"
7889 echo '# dummy' > "$dirpart/$file"
7890 done
7891 done
7892}
7893 ;;
7894
7895 esac
7896done # for ac_tag
7897
7898
7899as_fn_exit 0
7900_ACEOF
7901ac_clean_files=$ac_clean_files_save
7902
7903test $ac_write_fail = 0 ||
7904 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7905
7906
7907# configure is writing to config.log, and then calls config.status.
7908# config.status does its own redirection, appending to config.log.
7909# Unfortunately, on DOS this fails, as config.log is still kept open
7910# by configure, so config.status won't be able to write to it; its
7911# output is simply discarded. So we exec the FD to /dev/null,
7912# effectively closing config.log, so it can be properly (re)opened and
7913# appended to by config.status. When coming back to configure, we
7914# need to make the FD available again.
7915if test "$no_create" != yes; then
7916 ac_cs_success=:
7917 ac_config_status_args=
7918 test "$silent" = yes &&
7919 ac_config_status_args="$ac_config_status_args --quiet"
7920 exec 5>/dev/null
7921 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7922 exec 5>>config.log
7923 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7924 # would make configure fail if this is the last instruction.
7925 $ac_cs_success || as_fn_exit 1
7926fi
7927if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7929$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7930fi
7931
This page took 0.320524 seconds and 4 git commands to generate.