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