gdb/
[deliverable/binutils-gdb.git] / gdb / gnulib / configure
CommitLineData
c971b7fa
PA
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
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.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233 fi
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376else
377 as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484else
485 as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527exec 7<&0 </dev/null 6>&1
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
538ac_clean_files=
539ac_config_libobj_dir=.
540LIBOBJS=
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
552PACKAGE_URL=
553
554ac_unique_file="import/dummy.c"
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
558#ifdef HAVE_SYS_TYPES_H
559# include <sys/types.h>
560#endif
561#ifdef HAVE_SYS_STAT_H
562# include <sys/stat.h>
563#endif
564#ifdef STDC_HEADERS
565# include <stdlib.h>
566# include <stddef.h>
567#else
568# ifdef HAVE_STDLIB_H
569# include <stdlib.h>
570# endif
571#endif
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
578#ifdef HAVE_STRINGS_H
579# include <strings.h>
580#endif
581#ifdef HAVE_INTTYPES_H
582# include <inttypes.h>
583#endif
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
588# include <unistd.h>
589#endif"
590
591gl_header_list=
592gl_func_list=
593ac_subst_vars='am__EXEEXT_FALSE
594am__EXEEXT_TRUE
595gltests_LTLIBOBJS
596gltests_LIBOBJS
597gl_LTLIBOBJS
598gl_LIBOBJS
599LTLIBOBJS
600LIBOBJS
601LN_S
602am__fastdepCC_FALSE
603am__fastdepCC_TRUE
604CCDEPMODE
605AMDEPBACKSLASH
606AMDEP_FALSE
607AMDEP_TRUE
608am__quote
609am__include
610DEPDIR
611am__untar
612am__tar
613AMTAR
614am__leading_dot
615SET_MAKE
616AWK
617mkdir_p
618MKDIR_P
619INSTALL_STRIP_PROGRAM
620STRIP
621install_sh
622MAKEINFO
623AUTOHEADER
624AUTOMAKE
625AUTOCONF
626ACLOCAL
627VERSION
628PACKAGE
629CYGPATH_W
630am__isrc
631INSTALL_DATA
632INSTALL_SCRIPT
633INSTALL_PROGRAM
634LIBGNU_LTLIBDEPS
635LIBGNU_LIBDEPS
636gltests_WITNESS
637NEXT_AS_FIRST_DIRECTIVE_STRING_H
638NEXT_STRING_H
639NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
640NEXT_STDDEF_H
641GL_GENERATE_STDDEF_H_FALSE
642GL_GENERATE_STDDEF_H_TRUE
643STDDEF_H
644HAVE_WCHAR_T
645REPLACE_NULL
646UNDEFINE_STRTOK_R
647REPLACE_STRTOK_R
648REPLACE_STRSIGNAL
649REPLACE_STRNLEN
650REPLACE_STRNDUP
651REPLACE_STRNCAT
652REPLACE_STRERROR_R
653REPLACE_STRERROR
654REPLACE_STRCHRNUL
655REPLACE_STRCASESTR
656REPLACE_STRSTR
657REPLACE_STRDUP
658REPLACE_STPNCPY
659REPLACE_MEMMEM
660REPLACE_MEMCHR
661HAVE_STRVERSCMP
662HAVE_DECL_STRSIGNAL
663HAVE_DECL_STRERROR_R
664HAVE_DECL_STRTOK_R
665HAVE_STRCASESTR
666HAVE_STRSEP
667HAVE_STRPBRK
668HAVE_DECL_STRNLEN
669HAVE_DECL_STRNDUP
670HAVE_DECL_STRDUP
671HAVE_STRCHRNUL
672HAVE_STPNCPY
673HAVE_STPCPY
674HAVE_RAWMEMCHR
675HAVE_DECL_MEMRCHR
676HAVE_MEMPCPY
677HAVE_DECL_MEMMEM
678HAVE_MEMCHR
679HAVE_FFSLL
680HAVE_FFSL
681HAVE_MBSLEN
682GNULIB_STRVERSCMP
683GNULIB_STRSIGNAL
684GNULIB_STRERROR_R
685GNULIB_STRERROR
686GNULIB_MBSTOK_R
687GNULIB_MBSSEP
688GNULIB_MBSSPN
689GNULIB_MBSPBRK
690GNULIB_MBSCSPN
691GNULIB_MBSCASESTR
692GNULIB_MBSPCASECMP
693GNULIB_MBSNCASECMP
694GNULIB_MBSCASECMP
695GNULIB_MBSSTR
696GNULIB_MBSRCHR
697GNULIB_MBSCHR
698GNULIB_MBSNLEN
699GNULIB_MBSLEN
700GNULIB_STRTOK_R
701GNULIB_STRCASESTR
702GNULIB_STRSTR
703GNULIB_STRSEP
704GNULIB_STRPBRK
705GNULIB_STRNLEN
706GNULIB_STRNDUP
707GNULIB_STRNCAT
708GNULIB_STRDUP
709GNULIB_STRCHRNUL
710GNULIB_STPNCPY
711GNULIB_STPCPY
712GNULIB_RAWMEMCHR
713GNULIB_MEMRCHR
714GNULIB_MEMPCPY
715GNULIB_MEMMEM
716GNULIB_MEMCHR
717GNULIB_FFSLL
718GNULIB_FFSL
719NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
720NEXT_INTTYPES_H
721UINT64_MAX_EQ_ULONG_MAX
722UINT32_MAX_LT_UINTMAX_MAX
723PRIPTR_PREFIX
724PRI_MACROS_BROKEN
725INT64_MAX_EQ_LONG_MAX
726INT32_MAX_LT_INTMAX_MAX
727REPLACE_STRTOIMAX
728HAVE_DECL_STRTOUMAX
729HAVE_DECL_STRTOIMAX
730HAVE_DECL_IMAXDIV
731HAVE_DECL_IMAXABS
732GNULIB_STRTOUMAX
733GNULIB_STRTOIMAX
734GNULIB_IMAXDIV
735GNULIB_IMAXABS
736GL_GENERATE_STDINT_H_FALSE
737GL_GENERATE_STDINT_H_TRUE
738STDINT_H
739WINT_T_SUFFIX
740WCHAR_T_SUFFIX
741SIG_ATOMIC_T_SUFFIX
742SIZE_T_SUFFIX
743PTRDIFF_T_SUFFIX
744HAVE_SIGNED_WINT_T
745HAVE_SIGNED_WCHAR_T
746HAVE_SIGNED_SIG_ATOMIC_T
747BITSIZEOF_WINT_T
748BITSIZEOF_WCHAR_T
749BITSIZEOF_SIG_ATOMIC_T
750BITSIZEOF_SIZE_T
751BITSIZEOF_PTRDIFF_T
752APPLE_UNIVERSAL_BUILD
753HAVE_SYS_BITYPES_H
754HAVE_SYS_INTTYPES_H
755HAVE_STDINT_H
756NEXT_AS_FIRST_DIRECTIVE_STDINT_H
757NEXT_STDINT_H
758PRAGMA_COLUMNS
759PRAGMA_SYSTEM_HEADER
760INCLUDE_NEXT_AS_FIRST_DIRECTIVE
761INCLUDE_NEXT
762HAVE_SYS_TYPES_H
763HAVE_INTTYPES_H
764HAVE_WCHAR_H
765HAVE_UNSIGNED_LONG_LONG_INT
766HAVE_LONG_LONG_INT
767GL_COND_LIBTOOL_FALSE
768GL_COND_LIBTOOL_TRUE
769target_os
770target_vendor
771target_cpu
772target
773RANLIB
774ARFLAGS
775AR
776EGREP
777GREP
778CPP
779host_os
780host_vendor
781host_cpu
782host
783build_os
784build_vendor
785build_cpu
786build
787OBJEXT
788EXEEXT
789ac_ct_CC
790CPPFLAGS
791LDFLAGS
792CFLAGS
793CC
794MAINT
795MAINTAINER_MODE_FALSE
796MAINTAINER_MODE_TRUE
797target_alias
798host_alias
799build_alias
800LIBS
801ECHO_T
802ECHO_N
803ECHO_C
804DEFS
805mandir
806localedir
807libdir
808psdir
809pdfdir
810dvidir
811htmldir
812infodir
813docdir
814oldincludedir
815includedir
816localstatedir
817sharedstatedir
818sysconfdir
819datadir
820datarootdir
821libexecdir
822sbindir
823bindir
824program_transform_name
825prefix
826exec_prefix
827PACKAGE_URL
828PACKAGE_BUGREPORT
829PACKAGE_STRING
830PACKAGE_VERSION
831PACKAGE_TARNAME
832PACKAGE_NAME
833PATH_SEPARATOR
834SHELL'
835ac_subst_files=''
836ac_user_opts='
837enable_option_checking
838enable_maintainer_mode
839enable_dependency_tracking
840'
841 ac_precious_vars='build_alias
842host_alias
843target_alias
844CC
845CFLAGS
846LDFLAGS
847LIBS
848CPPFLAGS
849CPP'
850
851
852# Initialize some variables set by options.
853ac_init_help=
854ac_init_version=false
855ac_unrecognized_opts=
856ac_unrecognized_sep=
857# The variables have the same names as the options, with
858# dashes changed to underlines.
859cache_file=/dev/null
860exec_prefix=NONE
861no_create=
862no_recursion=
863prefix=NONE
864program_prefix=NONE
865program_suffix=NONE
866program_transform_name=s,x,x,
867silent=
868site=
869srcdir=
870verbose=
871x_includes=NONE
872x_libraries=NONE
873
874# Installation directory options.
875# These are left unexpanded so users can "make install exec_prefix=/foo"
876# and all the variables that are supposed to be based on exec_prefix
877# by default will actually change.
878# Use braces instead of parens because sh, perl, etc. also accept them.
879# (The list follows the same order as the GNU Coding Standards.)
880bindir='${exec_prefix}/bin'
881sbindir='${exec_prefix}/sbin'
882libexecdir='${exec_prefix}/libexec'
883datarootdir='${prefix}/share'
884datadir='${datarootdir}'
885sysconfdir='${prefix}/etc'
886sharedstatedir='${prefix}/com'
887localstatedir='${prefix}/var'
888includedir='${prefix}/include'
889oldincludedir='/usr/include'
890docdir='${datarootdir}/doc/${PACKAGE}'
891infodir='${datarootdir}/info'
892htmldir='${docdir}'
893dvidir='${docdir}'
894pdfdir='${docdir}'
895psdir='${docdir}'
896libdir='${exec_prefix}/lib'
897localedir='${datarootdir}/locale'
898mandir='${datarootdir}/man'
899
900ac_prev=
901ac_dashdash=
902for ac_option
903do
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
907 ac_prev=
908 continue
909 fi
910
911 case $ac_option in
912 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 *) ac_optarg=yes ;;
914 esac
915
916 # Accept the important Cygnus configure options, so we can diagnose typos.
917
918 case $ac_dashdash$ac_option in
919 --)
920 ac_dashdash=yes ;;
921
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
923 ac_prev=bindir ;;
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 bindir=$ac_optarg ;;
926
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
931
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
938
939 --config-cache | -C)
940 cache_file=config.cache ;;
941
942 -datadir | --datadir | --datadi | --datad)
943 ac_prev=datadir ;;
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
946
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
953
954 -disable-* | --disable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963"enable_$ac_useropt"
964"*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=no ;;
969
970 -docdir | --docdir | --docdi | --doc | --do)
971 ac_prev=docdir ;;
972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 docdir=$ac_optarg ;;
974
975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976 ac_prev=dvidir ;;
977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 dvidir=$ac_optarg ;;
979
980 -enable-* | --enable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error "invalid feature name: $ac_useropt"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989"enable_$ac_useropt"
990"*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=\$ac_optarg ;;
995
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1004
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1007 with_gas=yes ;;
1008
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1015
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1020
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 ac_prev=htmldir ;;
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 | --ht=*)
1025 htmldir=$ac_optarg ;;
1026
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1033
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 ac_prev=infodir ;;
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1038
1039 -libdir | --libdir | --libdi | --libd)
1040 ac_prev=libdir ;;
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1043
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1050
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1055
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1062
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 ac_prev=mandir ;;
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1067
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1070 with_fp=no ;;
1071
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1074 no_create=yes ;;
1075
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 no_recursion=yes ;;
1079
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1088
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 ac_prev=prefix ;;
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1093
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1100
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1107
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1124
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 ac_prev=pdfdir ;;
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1129
1130 -psdir | --psdir | --psdi | --psd | --ps)
1131 ac_prev=psdir ;;
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 psdir=$ac_optarg ;;
1134
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 silent=yes ;;
1138
1139 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1140 ac_prev=sbindir ;;
1141 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1142 | --sbi=* | --sb=*)
1143 sbindir=$ac_optarg ;;
1144
1145 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1146 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1147 | --sharedst | --shareds | --shared | --share | --shar \
1148 | --sha | --sh)
1149 ac_prev=sharedstatedir ;;
1150 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1151 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1152 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1153 | --sha=* | --sh=*)
1154 sharedstatedir=$ac_optarg ;;
1155
1156 -site | --site | --sit)
1157 ac_prev=site ;;
1158 -site=* | --site=* | --sit=*)
1159 site=$ac_optarg ;;
1160
1161 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1162 ac_prev=srcdir ;;
1163 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1164 srcdir=$ac_optarg ;;
1165
1166 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1167 | --syscon | --sysco | --sysc | --sys | --sy)
1168 ac_prev=sysconfdir ;;
1169 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1170 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1171 sysconfdir=$ac_optarg ;;
1172
1173 -target | --target | --targe | --targ | --tar | --ta | --t)
1174 ac_prev=target_alias ;;
1175 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1176 target_alias=$ac_optarg ;;
1177
1178 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 verbose=yes ;;
1180
1181 -version | --version | --versio | --versi | --vers | -V)
1182 ac_init_version=: ;;
1183
1184 -with-* | --with-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1192 *"
1193"with_$ac_useropt"
1194"*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=\$ac_optarg ;;
1199
1200 -without-* | --without-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error "invalid package name: $ac_useropt"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209"with_$ac_useropt"
1210"*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=no ;;
1215
1216 --x)
1217 # Obsolete; use --with-x.
1218 with_x=yes ;;
1219
1220 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1221 | --x-incl | --x-inc | --x-in | --x-i)
1222 ac_prev=x_includes ;;
1223 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1224 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1225 x_includes=$ac_optarg ;;
1226
1227 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1228 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1229 ac_prev=x_libraries ;;
1230 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1231 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1232 x_libraries=$ac_optarg ;;
1233
1234 -*) as_fn_error "unrecognized option: \`$ac_option'
1235Try \`$0 --help' for more information."
1236 ;;
1237
1238 *=*)
1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240 # Reject names that are not valid shell variable names.
1241 case $ac_envvar in #(
1242 '' | [0-9]* | *[!_$as_cr_alnum]* )
1243 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1244 esac
1245 eval $ac_envvar=\$ac_optarg
1246 export $ac_envvar ;;
1247
1248 *)
1249 # FIXME: should be removed in autoconf 3.0.
1250 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1253 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1254 ;;
1255
1256 esac
1257done
1258
1259if test -n "$ac_prev"; then
1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1261 as_fn_error "missing argument to $ac_option"
1262fi
1263
1264if test -n "$ac_unrecognized_opts"; then
1265 case $enable_option_checking in
1266 no) ;;
1267 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1268 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269 esac
1270fi
1271
1272# Check all directory arguments for consistency.
1273for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274 datadir sysconfdir sharedstatedir localstatedir includedir \
1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276 libdir localedir mandir
1277do
1278 eval ac_val=\$$ac_var
1279 # Remove trailing slashes.
1280 case $ac_val in
1281 */ )
1282 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1283 eval $ac_var=\$ac_val;;
1284 esac
1285 # Be sure to have absolute directory names.
1286 case $ac_val in
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 esac
1290 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1291done
1292
1293# There might be people who depend on the old broken behavior: `$host'
1294# used to hold the argument of --host etc.
1295# FIXME: To remove some day.
1296build=$build_alias
1297host=$host_alias
1298target=$target_alias
1299
1300# FIXME: To remove some day.
1301if test "x$host_alias" != x; then
1302 if test "x$build_alias" = x; then
1303 cross_compiling=maybe
1304 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305 If a cross compiler is detected then cross compile mode will be used." >&2
1306 elif test "x$build_alias" != "x$host_alias"; then
1307 cross_compiling=yes
1308 fi
1309fi
1310
1311ac_tool_prefix=
1312test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314test "$silent" = yes && exec 6>/dev/null
1315
1316
1317ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318ac_ls_di=`ls -di .` &&
1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320 as_fn_error "working directory cannot be determined"
1321test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 as_fn_error "pwd does not report name of working directory"
1323
1324
1325# Find the source files, if location was not specified.
1326if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$as_myself" ||
1330$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$as_myself" : 'X\(//\)[^/]' \| \
1332 X"$as_myself" : 'X\(//\)$' \| \
1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334$as_echo X"$as_myself" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)[^/].*/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\).*/{
1348 s//\1/
1349 q
1350 }
1351 s/.*/./; q'`
1352 srcdir=$ac_confdir
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 srcdir=..
1355 fi
1356else
1357 ac_srcdir_defaulted=no
1358fi
1359if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1362fi
1363ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364ac_abs_confdir=`(
1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1366 pwd)`
1367# When building in place, set srcdir=.
1368if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 srcdir=.
1370fi
1371# Remove unnecessary trailing slashes from srcdir.
1372# Double slashes in file names in object file debugging info
1373# mess up M-x gdb in Emacs.
1374case $srcdir in
1375*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376esac
1377for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382done
1383
1384#
1385# Report the --help message.
1386#
1387if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1390 cat <<_ACEOF
1391\`configure' configures this package to adapt to many kinds of systems.
1392
1393Usage: $0 [OPTION]... [VAR=VALUE]...
1394
1395To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396VAR=VALUE. See below for descriptions of some of the useful variables.
1397
1398Defaults for the options are specified in brackets.
1399
1400Configuration:
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1410
1411Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 [PREFIX]
1416
1417By default, \`make install' will install all the files in
1418\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420for instance \`--prefix=\$HOME'.
1421
1422For better control, use the options below.
1423
1424Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444_ACEOF
1445
1446 cat <<\_ACEOF
1447
1448Program names:
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452
1453System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 --target=TARGET configure for building compilers for TARGET [HOST]
1457_ACEOF
1458fi
1459
1460if test -n "$ac_init_help"; then
1461
1462 cat <<\_ACEOF
1463
1464Optional Features:
1465 --disable-option-checking ignore unrecognized --enable/--with options
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1468 --enable-maintainer-mode enable make rules and dependencies not useful
1469 (and sometimes confusing) to the casual installer
1470 --disable-dependency-tracking speeds up one-time build
1471 --enable-dependency-tracking do not reject slow dependency extractors
1472
1473Some influential environment variables:
1474 CC C compiler command
1475 CFLAGS C compiler flags
1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1477 nonstandard directory <lib dir>
1478 LIBS libraries to pass to the linker, e.g. -l<library>
1479 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1480 you have headers in a nonstandard directory <include dir>
1481 CPP C preprocessor
1482
1483Use these variables to override the choices made by `configure' or to help
1484it to find libraries and programs with nonstandard names/locations.
1485
1486Report bugs to the package provider.
1487_ACEOF
1488ac_status=$?
1489fi
1490
1491if test "$ac_init_help" = "recursive"; then
1492 # If there are subdirs, report their specific --help.
1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494 test -d "$ac_dir" ||
1495 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496 continue
1497 ac_builddir=.
1498
1499case "$ac_dir" in
1500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501*)
1502 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 esac ;;
1509esac
1510ac_abs_top_builddir=$ac_pwd
1511ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512# for backward compatibility:
1513ac_top_builddir=$ac_top_build_prefix
1514
1515case $srcdir in
1516 .) # We are building in place.
1517 ac_srcdir=.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1524 *) # Relative name.
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528esac
1529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure" --help=recursive
1539 else
1540 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 fi || ac_status=$?
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1543 done
1544fi
1545
1546test -n "$ac_init_help" && exit $ac_status
1547if $ac_init_version; then
1548 cat <<\_ACEOF
1549configure
1550generated by GNU Autoconf 2.64
1551
1552Copyright (C) 2009 Free Software Foundation, Inc.
1553This configure script is free software; the Free Software Foundation
1554gives unlimited permission to copy, distribute and modify it.
1555_ACEOF
1556 exit
1557fi
1558
1559## ------------------------ ##
1560## Autoconf initialization. ##
1561## ------------------------ ##
1562
1563# ac_fn_c_try_compile LINENO
1564# --------------------------
1565# Try to compile conftest.$ac_ext, and return whether this succeeded.
1566ac_fn_c_try_compile ()
1567{
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext
1570 if { { ac_try="$ac_compile"
1571case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574esac
1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576$as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_compile") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1583 fi
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest.$ac_objext; then :
1589 ac_retval=0
1590else
1591 $as_echo "$as_me: failed program was:" >&5
1592sed 's/^/| /' conftest.$ac_ext >&5
1593
1594 ac_retval=1
1595fi
1596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1597 return $ac_retval
1598
1599} # ac_fn_c_try_compile
1600
1601# ac_fn_c_try_cpp LINENO
1602# ----------------------
1603# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1604ac_fn_c_try_cpp ()
1605{
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 if { { ac_try="$ac_cpp conftest.$ac_ext"
1608case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613$as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1615 ac_status=$?
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1620 fi
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } >/dev/null && {
1623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1624 test ! -s conftest.err
1625 }; then :
1626 ac_retval=0
1627else
1628 $as_echo "$as_me: failed program was:" >&5
1629sed 's/^/| /' conftest.$ac_ext >&5
1630
1631 ac_retval=1
1632fi
1633 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1634 return $ac_retval
1635
1636} # ac_fn_c_try_cpp
1637
1638# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1639# -------------------------------------------------------
1640# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1641# the include files in INCLUDES and setting the cache variable VAR
1642# accordingly.
1643ac_fn_c_check_header_mongrel ()
1644{
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648$as_echo_n "checking for $2... " >&6; }
1649if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1650 $as_echo_n "(cached) " >&6
1651fi
1652eval ac_res=\$$3
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654$as_echo "$ac_res" >&6; }
1655else
1656 # Is the header compilable?
1657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1658$as_echo_n "checking $2 usability... " >&6; }
1659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660/* end confdefs.h. */
1661$4
1662#include <$2>
1663_ACEOF
1664if ac_fn_c_try_compile "$LINENO"; then :
1665 ac_header_compiler=yes
1666else
1667 ac_header_compiler=no
1668fi
1669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1671$as_echo "$ac_header_compiler" >&6; }
1672
1673# Is the header present?
1674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1675$as_echo_n "checking $2 presence... " >&6; }
1676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677/* end confdefs.h. */
1678#include <$2>
1679_ACEOF
1680if ac_fn_c_try_cpp "$LINENO"; then :
1681 ac_header_preproc=yes
1682else
1683 ac_header_preproc=no
1684fi
1685rm -f conftest.err conftest.$ac_ext
1686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1687$as_echo "$ac_header_preproc" >&6; }
1688
1689# So? What about this header?
1690case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1691 yes:no: )
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1693$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1695$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1696 ;;
1697 no:yes:* )
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1699$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1701$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1703$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1705$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1707$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1708 ;;
1709esac
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711$as_echo_n "checking for $2... " >&6; }
1712if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1713 $as_echo_n "(cached) " >&6
1714else
1715 eval "$3=\$ac_header_compiler"
1716fi
1717eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719$as_echo "$ac_res" >&6; }
1720fi
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722
1723} # ac_fn_c_check_header_mongrel
1724
1725# ac_fn_c_try_run LINENO
1726# ----------------------
1727# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728# that executables *can* be run.
1729ac_fn_c_try_run ()
1730{
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_link"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743 { { case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_try") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; }; }; then :
1753 ac_retval=0
1754else
1755 $as_echo "$as_me: program exited with status $ac_status" >&5
1756 $as_echo "$as_me: failed program was:" >&5
1757sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=$ac_status
1760fi
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763 return $ac_retval
1764
1765} # ac_fn_c_try_run
1766
1767# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1768# -------------------------------------------------------
1769# Tests whether HEADER exists and can be compiled using the include files in
1770# INCLUDES, setting the cache variable VAR accordingly.
1771ac_fn_c_check_header_compile ()
1772{
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775$as_echo_n "checking for $2... " >&6; }
1776if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1778else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780/* end confdefs.h. */
1781$4
1782#include <$2>
1783_ACEOF
1784if ac_fn_c_try_compile "$LINENO"; then :
1785 eval "$3=yes"
1786else
1787 eval "$3=no"
1788fi
1789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790fi
1791eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793$as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795
1796} # ac_fn_c_check_header_compile
1797
1798# ac_fn_c_try_link LINENO
1799# -----------------------
1800# Try to link conftest.$ac_ext, and return whether this succeeded.
1801ac_fn_c_try_link ()
1802{
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext conftest$ac_exeext
1805 if { { ac_try="$ac_link"
1806case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811$as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1818 fi
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest$ac_exeext && {
1824 test "$cross_compiling" = yes ||
1825 $as_test_x conftest$ac_exeext
1826 }; then :
1827 ac_retval=0
1828else
1829 $as_echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=1
1833fi
1834 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1835 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1836 # interfere with the next link command; also delete a directory that is
1837 # left behind by Apple's compiler. We do this before executing the actions.
1838 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840 return $ac_retval
1841
1842} # ac_fn_c_try_link
1843
1844# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1845# --------------------------------------------
1846# Tries to find the compile-time value of EXPR in a program that includes
1847# INCLUDES, setting VAR accordingly. Returns whether the value could be
1848# computed
1849ac_fn_c_compute_int ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if test "$cross_compiling" = yes; then
1853 # Depending upon the size, compute the lo and hi bounds.
1854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855/* end confdefs.h. */
1856$4
1857int
1858main ()
1859{
1860static int test_array [1 - 2 * !(($2) >= 0)];
1861test_array [0] = 0
1862
1863 ;
1864 return 0;
1865}
1866_ACEOF
1867if ac_fn_c_try_compile "$LINENO"; then :
1868 ac_lo=0 ac_mid=0
1869 while :; do
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h. */
1872$4
1873int
1874main ()
1875{
1876static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1877test_array [0] = 0
1878
1879 ;
1880 return 0;
1881}
1882_ACEOF
1883if ac_fn_c_try_compile "$LINENO"; then :
1884 ac_hi=$ac_mid; break
1885else
1886 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1887 if test $ac_lo -le $ac_mid; then
1888 ac_lo= ac_hi=
1889 break
1890 fi
1891 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1892fi
1893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894 done
1895else
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h. */
1898$4
1899int
1900main ()
1901{
1902static int test_array [1 - 2 * !(($2) < 0)];
1903test_array [0] = 0
1904
1905 ;
1906 return 0;
1907}
1908_ACEOF
1909if ac_fn_c_try_compile "$LINENO"; then :
1910 ac_hi=-1 ac_mid=-1
1911 while :; do
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h. */
1914$4
1915int
1916main ()
1917{
1918static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1919test_array [0] = 0
1920
1921 ;
1922 return 0;
1923}
1924_ACEOF
1925if ac_fn_c_try_compile "$LINENO"; then :
1926 ac_lo=$ac_mid; break
1927else
1928 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1929 if test $ac_mid -le $ac_hi; then
1930 ac_lo= ac_hi=
1931 break
1932 fi
1933 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1934fi
1935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 done
1937else
1938 ac_lo= ac_hi=
1939fi
1940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941fi
1942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943# Binary search between lo and hi bounds.
1944while test "x$ac_lo" != "x$ac_hi"; do
1945 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h. */
1948$4
1949int
1950main ()
1951{
1952static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1953test_array [0] = 0
1954
1955 ;
1956 return 0;
1957}
1958_ACEOF
1959if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_hi=$ac_mid
1961else
1962 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1963fi
1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965done
1966case $ac_lo in #((
1967?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1968'') ac_retval=1 ;;
1969esac
1970 else
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h. */
1973$4
1974static long int longval () { return $2; }
1975static unsigned long int ulongval () { return $2; }
1976#include <stdio.h>
1977#include <stdlib.h>
1978int
1979main ()
1980{
1981
1982 FILE *f = fopen ("conftest.val", "w");
1983 if (! f)
1984 return 1;
1985 if (($2) < 0)
1986 {
1987 long int i = longval ();
1988 if (i != ($2))
1989 return 1;
1990 fprintf (f, "%ld", i);
1991 }
1992 else
1993 {
1994 unsigned long int i = ulongval ();
1995 if (i != ($2))
1996 return 1;
1997 fprintf (f, "%lu", i);
1998 }
1999 /* Do not output a trailing newline, as this causes \r\n confusion
2000 on some platforms. */
2001 return ferror (f) || fclose (f) != 0;
2002
2003 ;
2004 return 0;
2005}
2006_ACEOF
2007if ac_fn_c_try_run "$LINENO"; then :
2008 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2009else
2010 ac_retval=1
2011fi
2012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2013 conftest.$ac_objext conftest.beam conftest.$ac_ext
2014rm -f conftest.val
2015
2016 fi
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018 return $ac_retval
2019
2020} # ac_fn_c_compute_int
2021
2022# ac_fn_c_check_func LINENO FUNC VAR
2023# ----------------------------------
2024# Tests whether FUNC exists, setting the cache variable VAR accordingly
2025ac_fn_c_check_func ()
2026{
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029$as_echo_n "checking for $2... " >&6; }
2030if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2031 $as_echo_n "(cached) " >&6
2032else
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034/* end confdefs.h. */
2035/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2037#define $2 innocuous_$2
2038
2039/* System header to define __stub macros and hopefully few prototypes,
2040 which can conflict with char $2 (); below.
2041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2042 <limits.h> exists even on freestanding compilers. */
2043
2044#ifdef __STDC__
2045# include <limits.h>
2046#else
2047# include <assert.h>
2048#endif
2049
2050#undef $2
2051
2052/* Override any GCC internal prototype to avoid an error.
2053 Use char because int might match the return type of a GCC
2054 builtin and then its argument prototype would still apply. */
2055#ifdef __cplusplus
2056extern "C"
2057#endif
2058char $2 ();
2059/* The GNU C library defines this for functions which it implements
2060 to always fail with ENOSYS. Some functions are actually named
2061 something starting with __ and the normal name is an alias. */
2062#if defined __stub_$2 || defined __stub___$2
2063choke me
2064#endif
2065
2066int
2067main ()
2068{
2069return $2 ();
2070 ;
2071 return 0;
2072}
2073_ACEOF
2074if ac_fn_c_try_link "$LINENO"; then :
2075 eval "$3=yes"
2076else
2077 eval "$3=no"
2078fi
2079rm -f core conftest.err conftest.$ac_objext \
2080 conftest$ac_exeext conftest.$ac_ext
2081fi
2082eval ac_res=\$$3
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084$as_echo "$ac_res" >&6; }
2085 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086
2087} # ac_fn_c_check_func
2088
2089# ac_fn_c_check_decl LINENO SYMBOL VAR
2090# ------------------------------------
2091# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2092ac_fn_c_check_decl ()
2093{
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2096$as_echo_n "checking whether $2 is declared... " >&6; }
2097if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2098 $as_echo_n "(cached) " >&6
2099else
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h. */
2102$4
2103int
2104main ()
2105{
2106#ifndef $2
2107 (void) $2;
2108#endif
2109
2110 ;
2111 return 0;
2112}
2113_ACEOF
2114if ac_fn_c_try_compile "$LINENO"; then :
2115 eval "$3=yes"
2116else
2117 eval "$3=no"
2118fi
2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120fi
2121eval ac_res=\$$3
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123$as_echo "$ac_res" >&6; }
2124 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2125
2126} # ac_fn_c_check_decl
2127cat >config.log <<_ACEOF
2128This file contains any messages produced by compilers while
2129running configure, to aid debugging if configure makes a mistake.
2130
2131It was created by $as_me, which was
2132generated by GNU Autoconf 2.64. Invocation command line was
2133
2134 $ $0 $@
2135
2136_ACEOF
2137exec 5>>config.log
2138{
2139cat <<_ASUNAME
2140## --------- ##
2141## Platform. ##
2142## --------- ##
2143
2144hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2145uname -m = `(uname -m) 2>/dev/null || echo unknown`
2146uname -r = `(uname -r) 2>/dev/null || echo unknown`
2147uname -s = `(uname -s) 2>/dev/null || echo unknown`
2148uname -v = `(uname -v) 2>/dev/null || echo unknown`
2149
2150/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2151/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2152
2153/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2154/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2155/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2156/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2157/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2158/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2159/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2160
2161_ASUNAME
2162
2163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164for as_dir in $PATH
2165do
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 $as_echo "PATH: $as_dir"
2169 done
2170IFS=$as_save_IFS
2171
2172} >&5
2173
2174cat >&5 <<_ACEOF
2175
2176
2177## ----------- ##
2178## Core tests. ##
2179## ----------- ##
2180
2181_ACEOF
2182
2183
2184# Keep a trace of the command line.
2185# Strip out --no-create and --no-recursion so they do not pile up.
2186# Strip out --silent because we don't want to record it for future runs.
2187# Also quote any args containing shell meta-characters.
2188# Make two passes to allow for proper duplicate-argument suppression.
2189ac_configure_args=
2190ac_configure_args0=
2191ac_configure_args1=
2192ac_must_keep_next=false
2193for ac_pass in 1 2
2194do
2195 for ac_arg
2196 do
2197 case $ac_arg in
2198 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2200 | -silent | --silent | --silen | --sile | --sil)
2201 continue ;;
2202 *\'*)
2203 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2204 esac
2205 case $ac_pass in
2206 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2207 2)
2208 as_fn_append ac_configure_args1 " '$ac_arg'"
2209 if test $ac_must_keep_next = true; then
2210 ac_must_keep_next=false # Got value, back to normal.
2211 else
2212 case $ac_arg in
2213 *=* | --config-cache | -C | -disable-* | --disable-* \
2214 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2215 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2216 | -with-* | --with-* | -without-* | --without-* | --x)
2217 case "$ac_configure_args0 " in
2218 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2219 esac
2220 ;;
2221 -* ) ac_must_keep_next=true ;;
2222 esac
2223 fi
2224 as_fn_append ac_configure_args " '$ac_arg'"
2225 ;;
2226 esac
2227 done
2228done
2229{ ac_configure_args0=; unset ac_configure_args0;}
2230{ ac_configure_args1=; unset ac_configure_args1;}
2231
2232# When interrupted or exit'd, cleanup temporary files, and complete
2233# config.log. We remove comments because anyway the quotes in there
2234# would cause problems or look ugly.
2235# WARNING: Use '\'' to represent an apostrophe within the trap.
2236# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2237trap 'exit_status=$?
2238 # Save into config.log some information that might help in debugging.
2239 {
2240 echo
2241
2242 cat <<\_ASBOX
2243## ---------------- ##
2244## Cache variables. ##
2245## ---------------- ##
2246_ASBOX
2247 echo
2248 # The following way of writing the cache mishandles newlines in values,
2249(
2250 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2251 eval ac_val=\$$ac_var
2252 case $ac_val in #(
2253 *${as_nl}*)
2254 case $ac_var in #(
2255 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2256$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2257 esac
2258 case $ac_var in #(
2259 _ | IFS | as_nl) ;; #(
2260 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2261 *) { eval $ac_var=; unset $ac_var;} ;;
2262 esac ;;
2263 esac
2264 done
2265 (set) 2>&1 |
2266 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2267 *${as_nl}ac_space=\ *)
2268 sed -n \
2269 "s/'\''/'\''\\\\'\'''\''/g;
2270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2271 ;; #(
2272 *)
2273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2274 ;;
2275 esac |
2276 sort
2277)
2278 echo
2279
2280 cat <<\_ASBOX
2281## ----------------- ##
2282## Output variables. ##
2283## ----------------- ##
2284_ASBOX
2285 echo
2286 for ac_var in $ac_subst_vars
2287 do
2288 eval ac_val=\$$ac_var
2289 case $ac_val in
2290 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2291 esac
2292 $as_echo "$ac_var='\''$ac_val'\''"
2293 done | sort
2294 echo
2295
2296 if test -n "$ac_subst_files"; then
2297 cat <<\_ASBOX
2298## ------------------- ##
2299## File substitutions. ##
2300## ------------------- ##
2301_ASBOX
2302 echo
2303 for ac_var in $ac_subst_files
2304 do
2305 eval ac_val=\$$ac_var
2306 case $ac_val in
2307 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2308 esac
2309 $as_echo "$ac_var='\''$ac_val'\''"
2310 done | sort
2311 echo
2312 fi
2313
2314 if test -s confdefs.h; then
2315 cat <<\_ASBOX
2316## ----------- ##
2317## confdefs.h. ##
2318## ----------- ##
2319_ASBOX
2320 echo
2321 cat confdefs.h
2322 echo
2323 fi
2324 test "$ac_signal" != 0 &&
2325 $as_echo "$as_me: caught signal $ac_signal"
2326 $as_echo "$as_me: exit $exit_status"
2327 } >&5
2328 rm -f core *.core core.conftest.* &&
2329 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2330 exit $exit_status
2331' 0
2332for ac_signal in 1 2 13 15; do
2333 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2334done
2335ac_signal=0
2336
2337# confdefs.h avoids OS command line length limits that DEFS can exceed.
2338rm -f -r conftest* confdefs.h
2339
2340$as_echo "/* confdefs.h */" > confdefs.h
2341
2342# Predefined preprocessor variables.
2343
2344cat >>confdefs.h <<_ACEOF
2345#define PACKAGE_NAME "$PACKAGE_NAME"
2346_ACEOF
2347
2348cat >>confdefs.h <<_ACEOF
2349#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2350_ACEOF
2351
2352cat >>confdefs.h <<_ACEOF
2353#define PACKAGE_VERSION "$PACKAGE_VERSION"
2354_ACEOF
2355
2356cat >>confdefs.h <<_ACEOF
2357#define PACKAGE_STRING "$PACKAGE_STRING"
2358_ACEOF
2359
2360cat >>confdefs.h <<_ACEOF
2361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2362_ACEOF
2363
2364cat >>confdefs.h <<_ACEOF
2365#define PACKAGE_URL "$PACKAGE_URL"
2366_ACEOF
2367
2368
2369# Let the site file select an alternate cache file if it wants to.
2370# Prefer an explicitly selected file to automatically selected ones.
2371ac_site_file1=NONE
2372ac_site_file2=NONE
2373if test -n "$CONFIG_SITE"; then
2374 ac_site_file1=$CONFIG_SITE
2375elif test "x$prefix" != xNONE; then
2376 ac_site_file1=$prefix/share/config.site
2377 ac_site_file2=$prefix/etc/config.site
2378else
2379 ac_site_file1=$ac_default_prefix/share/config.site
2380 ac_site_file2=$ac_default_prefix/etc/config.site
2381fi
2382for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2383do
2384 test "x$ac_site_file" = xNONE && continue
2385 if test -r "$ac_site_file"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2387$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2388 sed 's/^/| /' "$ac_site_file" >&5
2389 . "$ac_site_file"
2390 fi
2391done
2392
2393if test -r "$cache_file"; then
2394 # Some versions of bash will fail to source /dev/null (special
2395 # files actually), so we avoid doing that.
2396 if test -f "$cache_file"; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2398$as_echo "$as_me: loading cache $cache_file" >&6;}
2399 case $cache_file in
2400 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2401 *) . "./$cache_file";;
2402 esac
2403 fi
2404else
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2406$as_echo "$as_me: creating cache $cache_file" >&6;}
2407 >$cache_file
2408fi
2409
2410gl_header_list="$gl_header_list wchar.h"
2411gl_header_list="$gl_header_list stdint.h"
2412gl_header_list="$gl_header_list inttypes.h"
2413gl_header_list="$gl_header_list sys/mman.h"
2414gl_func_list="$gl_func_list mprotect"
2415# Check that the precious variables saved in the cache have kept the same
2416# value.
2417ac_cache_corrupted=false
2418for ac_var in $ac_precious_vars; do
2419 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2420 eval ac_new_set=\$ac_env_${ac_var}_set
2421 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2422 eval ac_new_val=\$ac_env_${ac_var}_value
2423 case $ac_old_set,$ac_new_set in
2424 set,)
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2426$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2427 ac_cache_corrupted=: ;;
2428 ,set)
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2430$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2431 ac_cache_corrupted=: ;;
2432 ,);;
2433 *)
2434 if test "x$ac_old_val" != "x$ac_new_val"; then
2435 # differences in whitespace do not lead to failure.
2436 ac_old_val_w=`echo x $ac_old_val`
2437 ac_new_val_w=`echo x $ac_new_val`
2438 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2440$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2441 ac_cache_corrupted=:
2442 else
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2444$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2445 eval $ac_var=\$ac_old_val
2446 fi
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2448$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2450$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2451 fi;;
2452 esac
2453 # Pass precious variables to config.status.
2454 if test "$ac_new_set" = set; then
2455 case $ac_new_val in
2456 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2457 *) ac_arg=$ac_var=$ac_new_val ;;
2458 esac
2459 case " $ac_configure_args " in
2460 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2461 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2462 esac
2463 fi
2464done
2465if $ac_cache_corrupted; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2469$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2470 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2471fi
2472## -------------------- ##
2473## Main body of script. ##
2474## -------------------- ##
2475
2476ac_ext=c
2477ac_cpp='$CPP $CPPFLAGS'
2478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481
2482
2483ac_config_headers="$ac_config_headers config.h:config.in"
2484
2485
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2487$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2488 # Check whether --enable-maintainer-mode was given.
2489if test "${enable_maintainer_mode+set}" = set; then :
2490 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2491else
2492 USE_MAINTAINER_MODE=no
2493fi
2494
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2496$as_echo "$USE_MAINTAINER_MODE" >&6; }
2497 if test $USE_MAINTAINER_MODE = yes; then
2498 MAINTAINER_MODE_TRUE=
2499 MAINTAINER_MODE_FALSE='#'
2500else
2501 MAINTAINER_MODE_TRUE='#'
2502 MAINTAINER_MODE_FALSE=
2503fi
2504
2505 MAINT=$MAINTAINER_MODE_TRUE
2506
2507
2508
2509ac_ext=c
2510ac_cpp='$CPP $CPPFLAGS'
2511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514if test -n "$ac_tool_prefix"; then
2515 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2516set dummy ${ac_tool_prefix}gcc; ac_word=$2
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518$as_echo_n "checking for $ac_word... " >&6; }
2519if test "${ac_cv_prog_CC+set}" = set; then :
2520 $as_echo_n "(cached) " >&6
2521else
2522 if test -n "$CC"; then
2523 ac_cv_prog_CC="$CC" # Let the user override the test.
2524else
2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2535 fi
2536done
2537 done
2538IFS=$as_save_IFS
2539
2540fi
2541fi
2542CC=$ac_cv_prog_CC
2543if test -n "$CC"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2545$as_echo "$CC" >&6; }
2546else
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548$as_echo "no" >&6; }
2549fi
2550
2551
2552fi
2553if test -z "$ac_cv_prog_CC"; then
2554 ac_ct_CC=$CC
2555 # Extract the first word of "gcc", so it can be a program name with args.
2556set dummy gcc; ac_word=$2
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558$as_echo_n "checking for $ac_word... " >&6; }
2559if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2560 $as_echo_n "(cached) " >&6
2561else
2562 if test -n "$ac_ct_CC"; then
2563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2564else
2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566for as_dir in $PATH
2567do
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_ac_ct_CC="gcc"
2573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 break 2
2575 fi
2576done
2577 done
2578IFS=$as_save_IFS
2579
2580fi
2581fi
2582ac_ct_CC=$ac_cv_prog_ac_ct_CC
2583if test -n "$ac_ct_CC"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2585$as_echo "$ac_ct_CC" >&6; }
2586else
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588$as_echo "no" >&6; }
2589fi
2590
2591 if test "x$ac_ct_CC" = x; then
2592 CC=""
2593 else
2594 case $cross_compiling:$ac_tool_warned in
2595yes:)
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2598ac_tool_warned=yes ;;
2599esac
2600 CC=$ac_ct_CC
2601 fi
2602else
2603 CC="$ac_cv_prog_CC"
2604fi
2605
2606if test -z "$CC"; then
2607 if test -n "$ac_tool_prefix"; then
2608 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2609set dummy ${ac_tool_prefix}cc; ac_word=$2
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611$as_echo_n "checking for $ac_word... " >&6; }
2612if test "${ac_cv_prog_CC+set}" = set; then :
2613 $as_echo_n "(cached) " >&6
2614else
2615 if test -n "$CC"; then
2616 ac_cv_prog_CC="$CC" # Let the user override the test.
2617else
2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619for as_dir in $PATH
2620do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_CC="${ac_tool_prefix}cc"
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 break 2
2628 fi
2629done
2630 done
2631IFS=$as_save_IFS
2632
2633fi
2634fi
2635CC=$ac_cv_prog_CC
2636if test -n "$CC"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2638$as_echo "$CC" >&6; }
2639else
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641$as_echo "no" >&6; }
2642fi
2643
2644
2645 fi
2646fi
2647if test -z "$CC"; then
2648 # Extract the first word of "cc", so it can be a program name with args.
2649set dummy cc; ac_word=$2
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651$as_echo_n "checking for $ac_word... " >&6; }
2652if test "${ac_cv_prog_CC+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
2654else
2655 if test -n "$CC"; then
2656 ac_cv_prog_CC="$CC" # Let the user override the test.
2657else
2658 ac_prog_rejected=no
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2667 ac_prog_rejected=yes
2668 continue
2669 fi
2670 ac_cv_prog_CC="cc"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674done
2675 done
2676IFS=$as_save_IFS
2677
2678if test $ac_prog_rejected = yes; then
2679 # We found a bogon in the path, so make sure we never use it.
2680 set dummy $ac_cv_prog_CC
2681 shift
2682 if test $# != 0; then
2683 # We chose a different compiler from the bogus one.
2684 # However, it has the same basename, so the bogon will be chosen
2685 # first if we set CC to just the basename; use the full file name.
2686 shift
2687 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2688 fi
2689fi
2690fi
2691fi
2692CC=$ac_cv_prog_CC
2693if test -n "$CC"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2695$as_echo "$CC" >&6; }
2696else
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698$as_echo "no" >&6; }
2699fi
2700
2701
2702fi
2703if test -z "$CC"; then
2704 if test -n "$ac_tool_prefix"; then
2705 for ac_prog in cl.exe
2706 do
2707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2708set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710$as_echo_n "checking for $ac_word... " >&6; }
2711if test "${ac_cv_prog_CC+set}" = set; then :
2712 $as_echo_n "(cached) " >&6
2713else
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2716else
2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2727 fi
2728done
2729 done
2730IFS=$as_save_IFS
2731
2732fi
2733fi
2734CC=$ac_cv_prog_CC
2735if test -n "$CC"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2737$as_echo "$CC" >&6; }
2738else
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740$as_echo "no" >&6; }
2741fi
2742
2743
2744 test -n "$CC" && break
2745 done
2746fi
2747if test -z "$CC"; then
2748 ac_ct_CC=$CC
2749 for ac_prog in cl.exe
2750do
2751 # Extract the first word of "$ac_prog", so it can be a program name with args.
2752set dummy $ac_prog; ac_word=$2
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754$as_echo_n "checking for $ac_word... " >&6; }
2755if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2756 $as_echo_n "(cached) " >&6
2757else
2758 if test -n "$ac_ct_CC"; then
2759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2760else
2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762for as_dir in $PATH
2763do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_ac_ct_CC="$ac_prog"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2771 fi
2772done
2773 done
2774IFS=$as_save_IFS
2775
2776fi
2777fi
2778ac_ct_CC=$ac_cv_prog_ac_ct_CC
2779if test -n "$ac_ct_CC"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2781$as_echo "$ac_ct_CC" >&6; }
2782else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
2785fi
2786
2787
2788 test -n "$ac_ct_CC" && break
2789done
2790
2791 if test "x$ac_ct_CC" = x; then
2792 CC=""
2793 else
2794 case $cross_compiling:$ac_tool_warned in
2795yes:)
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2798ac_tool_warned=yes ;;
2799esac
2800 CC=$ac_ct_CC
2801 fi
2802fi
2803
2804fi
2805
2806
2807test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2809as_fn_error "no acceptable C compiler found in \$PATH
2810See \`config.log' for more details." "$LINENO" 5; }
2811
2812# Provide some information about the compiler.
2813$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2814set X $ac_compile
2815ac_compiler=$2
2816for ac_option in --version -v -V -qversion; do
2817 { { ac_try="$ac_compiler $ac_option >&5"
2818case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821esac
2822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2823$as_echo "$ac_try_echo"; } >&5
2824 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2825 ac_status=$?
2826 if test -s conftest.err; then
2827 sed '10a\
2828... rest of stderr output deleted ...
2829 10q' conftest.err >conftest.er1
2830 cat conftest.er1 >&5
2831 rm -f conftest.er1 conftest.err
2832 fi
2833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2834 test $ac_status = 0; }
2835done
2836
2837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2838/* end confdefs.h. */
2839#include <stdio.h>
2840int
2841main ()
2842{
2843FILE *f = fopen ("conftest.out", "w");
2844 return ferror (f) || fclose (f) != 0;
2845
2846 ;
2847 return 0;
2848}
2849_ACEOF
2850ac_clean_files_save=$ac_clean_files
2851ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2852# Try to create an executable without -o first, disregard a.out.
2853# It will help us diagnose broken compilers, and finding out an intuition
2854# of exeext.
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2856$as_echo_n "checking for C compiler default output file name... " >&6; }
2857ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2858
2859# The possible output files:
2860ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2861
2862ac_rmfiles=
2863for ac_file in $ac_files
2864do
2865 case $ac_file in
2866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2867 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2868 esac
2869done
2870rm -f $ac_rmfiles
2871
2872if { { ac_try="$ac_link_default"
2873case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876esac
2877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2878$as_echo "$ac_try_echo"; } >&5
2879 (eval "$ac_link_default") 2>&5
2880 ac_status=$?
2881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2882 test $ac_status = 0; }; then :
2883 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2884# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2885# in a Makefile. We should not override ac_cv_exeext if it was cached,
2886# so that the user can short-circuit this test for compilers unknown to
2887# Autoconf.
2888for ac_file in $ac_files ''
2889do
2890 test -f "$ac_file" || continue
2891 case $ac_file in
2892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2893 ;;
2894 [ab].out )
2895 # We found the default executable, but exeext='' is most
2896 # certainly right.
2897 break;;
2898 *.* )
2899 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2900 then :; else
2901 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2902 fi
2903 # We set ac_cv_exeext here because the later test for it is not
2904 # safe: cross compilers may not add the suffix if given an `-o'
2905 # argument, so we may need to know it at that point already.
2906 # Even if this section looks crufty: it has the advantage of
2907 # actually working.
2908 break;;
2909 * )
2910 break;;
2911 esac
2912done
2913test "$ac_cv_exeext" = no && ac_cv_exeext=
2914
2915else
2916 ac_file=''
2917fi
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2919$as_echo "$ac_file" >&6; }
2920if test -z "$ac_file"; then :
2921 $as_echo "$as_me: failed program was:" >&5
2922sed 's/^/| /' conftest.$ac_ext >&5
2923
2924{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2926{ as_fn_set_status 77
2927as_fn_error "C compiler cannot create executables
2928See \`config.log' for more details." "$LINENO" 5; }; }
2929fi
2930ac_exeext=$ac_cv_exeext
2931
2932# Check that the compiler produces executables we can run. If not, either
2933# the compiler is broken, or we cross compile.
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2935$as_echo_n "checking whether the C compiler works... " >&6; }
2936# If not cross compiling, check that we can run a simple program.
2937if test "$cross_compiling" != yes; then
2938 if { ac_try='./$ac_file'
2939 { { case "(($ac_try" in
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2942esac
2943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2944$as_echo "$ac_try_echo"; } >&5
2945 (eval "$ac_try") 2>&5
2946 ac_status=$?
2947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2948 test $ac_status = 0; }; }; then
2949 cross_compiling=no
2950 else
2951 if test "$cross_compiling" = maybe; then
2952 cross_compiling=yes
2953 else
2954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2956as_fn_error "cannot run C compiled programs.
2957If you meant to cross compile, use \`--host'.
2958See \`config.log' for more details." "$LINENO" 5; }
2959 fi
2960 fi
2961fi
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2963$as_echo "yes" >&6; }
2964
2965rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2966ac_clean_files=$ac_clean_files_save
2967# Check that the compiler produces executables we can run. If not, either
2968# the compiler is broken, or we cross compile.
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2970$as_echo_n "checking whether we are cross compiling... " >&6; }
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2972$as_echo "$cross_compiling" >&6; }
2973
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2975$as_echo_n "checking for suffix of executables... " >&6; }
2976if { { ac_try="$ac_link"
2977case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980esac
2981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2982$as_echo "$ac_try_echo"; } >&5
2983 (eval "$ac_link") 2>&5
2984 ac_status=$?
2985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2986 test $ac_status = 0; }; then :
2987 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2988# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2989# work properly (i.e., refer to `conftest.exe'), while it won't with
2990# `rm'.
2991for ac_file in conftest.exe conftest conftest.*; do
2992 test -f "$ac_file" || continue
2993 case $ac_file in
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2995 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2996 break;;
2997 * ) break;;
2998 esac
2999done
3000else
3001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3003as_fn_error "cannot compute suffix of executables: cannot compile and link
3004See \`config.log' for more details." "$LINENO" 5; }
3005fi
3006rm -f conftest$ac_cv_exeext
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3008$as_echo "$ac_cv_exeext" >&6; }
3009
3010rm -f conftest.$ac_ext
3011EXEEXT=$ac_cv_exeext
3012ac_exeext=$EXEEXT
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3014$as_echo_n "checking for suffix of object files... " >&6; }
3015if test "${ac_cv_objext+set}" = set; then :
3016 $as_echo_n "(cached) " >&6
3017else
3018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019/* end confdefs.h. */
3020
3021int
3022main ()
3023{
3024
3025 ;
3026 return 0;
3027}
3028_ACEOF
3029rm -f conftest.o conftest.obj
3030if { { ac_try="$ac_compile"
3031case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
3035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3036$as_echo "$ac_try_echo"; } >&5
3037 (eval "$ac_compile") 2>&5
3038 ac_status=$?
3039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040 test $ac_status = 0; }; then :
3041 for ac_file in conftest.o conftest.obj conftest.*; do
3042 test -f "$ac_file" || continue;
3043 case $ac_file in
3044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3045 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3046 break;;
3047 esac
3048done
3049else
3050 $as_echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055as_fn_error "cannot compute suffix of object files: cannot compile
3056See \`config.log' for more details." "$LINENO" 5; }
3057fi
3058rm -f conftest.$ac_cv_objext conftest.$ac_ext
3059fi
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3061$as_echo "$ac_cv_objext" >&6; }
3062OBJEXT=$ac_cv_objext
3063ac_objext=$OBJEXT
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3065$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3066if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3067 $as_echo_n "(cached) " >&6
3068else
3069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3070/* end confdefs.h. */
3071
3072int
3073main ()
3074{
3075#ifndef __GNUC__
3076 choke me
3077#endif
3078
3079 ;
3080 return 0;
3081}
3082_ACEOF
3083if ac_fn_c_try_compile "$LINENO"; then :
3084 ac_compiler_gnu=yes
3085else
3086 ac_compiler_gnu=no
3087fi
3088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089ac_cv_c_compiler_gnu=$ac_compiler_gnu
3090
3091fi
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3093$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3094if test $ac_compiler_gnu = yes; then
3095 GCC=yes
3096else
3097 GCC=
3098fi
3099ac_test_CFLAGS=${CFLAGS+set}
3100ac_save_CFLAGS=$CFLAGS
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3102$as_echo_n "checking whether $CC accepts -g... " >&6; }
3103if test "${ac_cv_prog_cc_g+set}" = set; then :
3104 $as_echo_n "(cached) " >&6
3105else
3106 ac_save_c_werror_flag=$ac_c_werror_flag
3107 ac_c_werror_flag=yes
3108 ac_cv_prog_cc_g=no
3109 CFLAGS="-g"
3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111/* end confdefs.h. */
3112
3113int
3114main ()
3115{
3116
3117 ;
3118 return 0;
3119}
3120_ACEOF
3121if ac_fn_c_try_compile "$LINENO"; then :
3122 ac_cv_prog_cc_g=yes
3123else
3124 CFLAGS=""
3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126/* end confdefs.h. */
3127
3128int
3129main ()
3130{
3131
3132 ;
3133 return 0;
3134}
3135_ACEOF
3136if ac_fn_c_try_compile "$LINENO"; then :
3137
3138else
3139 ac_c_werror_flag=$ac_save_c_werror_flag
3140 CFLAGS="-g"
3141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142/* end confdefs.h. */
3143
3144int
3145main ()
3146{
3147
3148 ;
3149 return 0;
3150}
3151_ACEOF
3152if ac_fn_c_try_compile "$LINENO"; then :
3153 ac_cv_prog_cc_g=yes
3154fi
3155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156fi
3157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158fi
3159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 ac_c_werror_flag=$ac_save_c_werror_flag
3161fi
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3163$as_echo "$ac_cv_prog_cc_g" >&6; }
3164if test "$ac_test_CFLAGS" = set; then
3165 CFLAGS=$ac_save_CFLAGS
3166elif test $ac_cv_prog_cc_g = yes; then
3167 if test "$GCC" = yes; then
3168 CFLAGS="-g -O2"
3169 else
3170 CFLAGS="-g"
3171 fi
3172else
3173 if test "$GCC" = yes; then
3174 CFLAGS="-O2"
3175 else
3176 CFLAGS=
3177 fi
3178fi
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3180$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3181if test "${ac_cv_prog_cc_c89+set}" = set; then :
3182 $as_echo_n "(cached) " >&6
3183else
3184 ac_cv_prog_cc_c89=no
3185ac_save_CC=$CC
3186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187/* end confdefs.h. */
3188#include <stdarg.h>
3189#include <stdio.h>
3190#include <sys/types.h>
3191#include <sys/stat.h>
3192/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3193struct buf { int x; };
3194FILE * (*rcsopen) (struct buf *, struct stat *, int);
3195static char *e (p, i)
3196 char **p;
3197 int i;
3198{
3199 return p[i];
3200}
3201static char *f (char * (*g) (char **, int), char **p, ...)
3202{
3203 char *s;
3204 va_list v;
3205 va_start (v,p);
3206 s = g (p, va_arg (v,int));
3207 va_end (v);
3208 return s;
3209}
3210
3211/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3212 function prototypes and stuff, but not '\xHH' hex character constants.
3213 These don't provoke an error unfortunately, instead are silently treated
3214 as 'x'. The following induces an error, until -std is added to get
3215 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3216 array size at least. It's necessary to write '\x00'==0 to get something
3217 that's true only with -std. */
3218int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3219
3220/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3221 inside strings and character constants. */
3222#define FOO(x) 'x'
3223int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3224
3225int test (int i, double x);
3226struct s1 {int (*f) (int a);};
3227struct s2 {int (*f) (double a);};
3228int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3229int argc;
3230char **argv;
3231int
3232main ()
3233{
3234return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3235 ;
3236 return 0;
3237}
3238_ACEOF
3239for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3240 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3241do
3242 CC="$ac_save_CC $ac_arg"
3243 if ac_fn_c_try_compile "$LINENO"; then :
3244 ac_cv_prog_cc_c89=$ac_arg
3245fi
3246rm -f core conftest.err conftest.$ac_objext
3247 test "x$ac_cv_prog_cc_c89" != "xno" && break
3248done
3249rm -f conftest.$ac_ext
3250CC=$ac_save_CC
3251
3252fi
3253# AC_CACHE_VAL
3254case "x$ac_cv_prog_cc_c89" in
3255 x)
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3257$as_echo "none needed" >&6; } ;;
3258 xno)
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3260$as_echo "unsupported" >&6; } ;;
3261 *)
3262 CC="$CC $ac_cv_prog_cc_c89"
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3264$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3265esac
3266if test "x$ac_cv_prog_cc_c89" != xno; then :
3267
3268fi
3269
3270ac_ext=c
3271ac_cpp='$CPP $CPPFLAGS'
3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275
3276ac_aux_dir=
3277for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3278 for ac_t in install-sh install.sh shtool; do
3279 if test -f "$ac_dir/$ac_t"; then
3280 ac_aux_dir=$ac_dir
3281 ac_install_sh="$ac_aux_dir/$ac_t -c"
3282 break 2
3283 fi
3284 done
3285done
3286if test -z "$ac_aux_dir"; then
3287 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3288fi
3289
3290# These three variables are undocumented and unsupported,
3291# and are intended to be withdrawn in a future Autoconf release.
3292# They can cause serious problems if a builder's source tree is in a directory
3293# whose full name contains unusual characters.
3294ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3295ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3296ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3297
3298
3299# Make sure we can run config.sub.
3300$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3301 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3302
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3304$as_echo_n "checking build system type... " >&6; }
3305if test "${ac_cv_build+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3307else
3308 ac_build_alias=$build_alias
3309test "x$ac_build_alias" = x &&
3310 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3311test "x$ac_build_alias" = x &&
3312 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3313ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3314 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3315
3316fi
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3318$as_echo "$ac_cv_build" >&6; }
3319case $ac_cv_build in
3320*-*-*) ;;
3321*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3322esac
3323build=$ac_cv_build
3324ac_save_IFS=$IFS; IFS='-'
3325set x $ac_cv_build
3326shift
3327build_cpu=$1
3328build_vendor=$2
3329shift; shift
3330# Remember, the first character of IFS is used to create $*,
3331# except with old shells:
3332build_os=$*
3333IFS=$ac_save_IFS
3334case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3335
3336
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3338$as_echo_n "checking host system type... " >&6; }
3339if test "${ac_cv_host+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3341else
3342 if test "x$host_alias" = x; then
3343 ac_cv_host=$ac_cv_build
3344else
3345 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3346 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3347fi
3348
3349fi
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3351$as_echo "$ac_cv_host" >&6; }
3352case $ac_cv_host in
3353*-*-*) ;;
3354*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3355esac
3356host=$ac_cv_host
3357ac_save_IFS=$IFS; IFS='-'
3358set x $ac_cv_host
3359shift
3360host_cpu=$1
3361host_vendor=$2
3362shift; shift
3363# Remember, the first character of IFS is used to create $*,
3364# except with old shells:
3365host_os=$*
3366IFS=$ac_save_IFS
3367case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3368
3369
3370
3371ac_ext=c
3372ac_cpp='$CPP $CPPFLAGS'
3373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3377$as_echo_n "checking how to run the C preprocessor... " >&6; }
3378# On Suns, sometimes $CPP names a directory.
3379if test -n "$CPP" && test -d "$CPP"; then
3380 CPP=
3381fi
3382if test -z "$CPP"; then
3383 if test "${ac_cv_prog_CPP+set}" = set; then :
3384 $as_echo_n "(cached) " >&6
3385else
3386 # Double quotes because CPP needs to be expanded
3387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3388 do
3389 ac_preproc_ok=false
3390for ac_c_preproc_warn_flag in '' yes
3391do
3392 # Use a header file that comes with gcc, so configuring glibc
3393 # with a fresh cross-compiler works.
3394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395 # <limits.h> exists even on freestanding compilers.
3396 # On the NeXT, cc -E runs the code through the compiler's parser,
3397 # not just through cpp. "Syntax error" is here to catch this case.
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399/* end confdefs.h. */
3400#ifdef __STDC__
3401# include <limits.h>
3402#else
3403# include <assert.h>
3404#endif
3405 Syntax error
3406_ACEOF
3407if ac_fn_c_try_cpp "$LINENO"; then :
3408
3409else
3410 # Broken: fails on valid input.
3411continue
3412fi
3413rm -f conftest.err conftest.$ac_ext
3414
3415 # OK, works on sane cases. Now check whether nonexistent headers
3416 # can be detected and how.
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418/* end confdefs.h. */
3419#include <ac_nonexistent.h>
3420_ACEOF
3421if ac_fn_c_try_cpp "$LINENO"; then :
3422 # Broken: success on invalid input.
3423continue
3424else
3425 # Passes both tests.
3426ac_preproc_ok=:
3427break
3428fi
3429rm -f conftest.err conftest.$ac_ext
3430
3431done
3432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3433rm -f conftest.err conftest.$ac_ext
3434if $ac_preproc_ok; then :
3435 break
3436fi
3437
3438 done
3439 ac_cv_prog_CPP=$CPP
3440
3441fi
3442 CPP=$ac_cv_prog_CPP
3443else
3444 ac_cv_prog_CPP=$CPP
3445fi
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3447$as_echo "$CPP" >&6; }
3448ac_preproc_ok=false
3449for ac_c_preproc_warn_flag in '' yes
3450do
3451 # Use a header file that comes with gcc, so configuring glibc
3452 # with a fresh cross-compiler works.
3453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3454 # <limits.h> exists even on freestanding compilers.
3455 # On the NeXT, cc -E runs the code through the compiler's parser,
3456 # not just through cpp. "Syntax error" is here to catch this case.
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458/* end confdefs.h. */
3459#ifdef __STDC__
3460# include <limits.h>
3461#else
3462# include <assert.h>
3463#endif
3464 Syntax error
3465_ACEOF
3466if ac_fn_c_try_cpp "$LINENO"; then :
3467
3468else
3469 # Broken: fails on valid input.
3470continue
3471fi
3472rm -f conftest.err conftest.$ac_ext
3473
3474 # OK, works on sane cases. Now check whether nonexistent headers
3475 # can be detected and how.
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477/* end confdefs.h. */
3478#include <ac_nonexistent.h>
3479_ACEOF
3480if ac_fn_c_try_cpp "$LINENO"; then :
3481 # Broken: success on invalid input.
3482continue
3483else
3484 # Passes both tests.
3485ac_preproc_ok=:
3486break
3487fi
3488rm -f conftest.err conftest.$ac_ext
3489
3490done
3491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3492rm -f conftest.err conftest.$ac_ext
3493if $ac_preproc_ok; then :
3494
3495else
3496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498as_fn_error "C preprocessor \"$CPP\" fails sanity check
3499See \`config.log' for more details." "$LINENO" 5; }
3500fi
3501
3502ac_ext=c
3503ac_cpp='$CPP $CPPFLAGS'
3504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507
3508
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3510$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3511if test "${ac_cv_path_GREP+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3513else
3514 if test -z "$GREP"; then
3515 ac_path_GREP_found=false
3516 # Loop through the user's path and test for each of PROGNAME-LIST
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3519do
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_prog in grep ggrep; do
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3525 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3526# Check for GNU ac_path_GREP and select it if it is found.
3527 # Check for GNU $ac_path_GREP
3528case `"$ac_path_GREP" --version 2>&1` in
3529*GNU*)
3530 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3531*)
3532 ac_count=0
3533 $as_echo_n 0123456789 >"conftest.in"
3534 while :
3535 do
3536 cat "conftest.in" "conftest.in" >"conftest.tmp"
3537 mv "conftest.tmp" "conftest.in"
3538 cp "conftest.in" "conftest.nl"
3539 $as_echo 'GREP' >> "conftest.nl"
3540 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3542 as_fn_arith $ac_count + 1 && ac_count=$as_val
3543 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3544 # Best one so far, save it but keep looking for a better one
3545 ac_cv_path_GREP="$ac_path_GREP"
3546 ac_path_GREP_max=$ac_count
3547 fi
3548 # 10*(2^10) chars as input seems more than enough
3549 test $ac_count -gt 10 && break
3550 done
3551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3552esac
3553
3554 $ac_path_GREP_found && break 3
3555 done
3556 done
3557 done
3558IFS=$as_save_IFS
3559 if test -z "$ac_cv_path_GREP"; then
3560 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3561 fi
3562else
3563 ac_cv_path_GREP=$GREP
3564fi
3565
3566fi
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3568$as_echo "$ac_cv_path_GREP" >&6; }
3569 GREP="$ac_cv_path_GREP"
3570
3571
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3573$as_echo_n "checking for egrep... " >&6; }
3574if test "${ac_cv_path_EGREP+set}" = set; then :
3575 $as_echo_n "(cached) " >&6
3576else
3577 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3578 then ac_cv_path_EGREP="$GREP -E"
3579 else
3580 if test -z "$EGREP"; then
3581 ac_path_EGREP_found=false
3582 # Loop through the user's path and test for each of PROGNAME-LIST
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3585do
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_prog in egrep; do
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3591 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3592# Check for GNU ac_path_EGREP and select it if it is found.
3593 # Check for GNU $ac_path_EGREP
3594case `"$ac_path_EGREP" --version 2>&1` in
3595*GNU*)
3596 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3597*)
3598 ac_count=0
3599 $as_echo_n 0123456789 >"conftest.in"
3600 while :
3601 do
3602 cat "conftest.in" "conftest.in" >"conftest.tmp"
3603 mv "conftest.tmp" "conftest.in"
3604 cp "conftest.in" "conftest.nl"
3605 $as_echo 'EGREP' >> "conftest.nl"
3606 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3608 as_fn_arith $ac_count + 1 && ac_count=$as_val
3609 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3610 # Best one so far, save it but keep looking for a better one
3611 ac_cv_path_EGREP="$ac_path_EGREP"
3612 ac_path_EGREP_max=$ac_count
3613 fi
3614 # 10*(2^10) chars as input seems more than enough
3615 test $ac_count -gt 10 && break
3616 done
3617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3618esac
3619
3620 $ac_path_EGREP_found && break 3
3621 done
3622 done
3623 done
3624IFS=$as_save_IFS
3625 if test -z "$ac_cv_path_EGREP"; then
3626 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3627 fi
3628else
3629 ac_cv_path_EGREP=$EGREP
3630fi
3631
3632 fi
3633fi
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3635$as_echo "$ac_cv_path_EGREP" >&6; }
3636 EGREP="$ac_cv_path_EGREP"
3637
3638
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3640$as_echo_n "checking for ANSI C header files... " >&6; }
3641if test "${ac_cv_header_stdc+set}" = set; then :
3642 $as_echo_n "(cached) " >&6
3643else
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645/* end confdefs.h. */
3646#include <stdlib.h>
3647#include <stdarg.h>
3648#include <string.h>
3649#include <float.h>
3650
3651int
3652main ()
3653{
3654
3655 ;
3656 return 0;
3657}
3658_ACEOF
3659if ac_fn_c_try_compile "$LINENO"; then :
3660 ac_cv_header_stdc=yes
3661else
3662 ac_cv_header_stdc=no
3663fi
3664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665
3666if test $ac_cv_header_stdc = yes; then
3667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669/* end confdefs.h. */
3670#include <string.h>
3671
3672_ACEOF
3673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674 $EGREP "memchr" >/dev/null 2>&1; then :
3675
3676else
3677 ac_cv_header_stdc=no
3678fi
3679rm -f conftest*
3680
3681fi
3682
3683if test $ac_cv_header_stdc = yes; then
3684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686/* end confdefs.h. */
3687#include <stdlib.h>
3688
3689_ACEOF
3690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3691 $EGREP "free" >/dev/null 2>&1; then :
3692
3693else
3694 ac_cv_header_stdc=no
3695fi
3696rm -f conftest*
3697
3698fi
3699
3700if test $ac_cv_header_stdc = yes; then
3701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3702 if test "$cross_compiling" = yes; then :
3703 :
3704else
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706/* end confdefs.h. */
3707#include <ctype.h>
3708#include <stdlib.h>
3709#if ((' ' & 0x0FF) == 0x020)
3710# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3711# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3712#else
3713# define ISLOWER(c) \
3714 (('a' <= (c) && (c) <= 'i') \
3715 || ('j' <= (c) && (c) <= 'r') \
3716 || ('s' <= (c) && (c) <= 'z'))
3717# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3718#endif
3719
3720#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3721int
3722main ()
3723{
3724 int i;
3725 for (i = 0; i < 256; i++)
3726 if (XOR (islower (i), ISLOWER (i))
3727 || toupper (i) != TOUPPER (i))
3728 return 2;
3729 return 0;
3730}
3731_ACEOF
3732if ac_fn_c_try_run "$LINENO"; then :
3733
3734else
3735 ac_cv_header_stdc=no
3736fi
3737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3738 conftest.$ac_objext conftest.beam conftest.$ac_ext
3739fi
3740
3741fi
3742fi
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3744$as_echo "$ac_cv_header_stdc" >&6; }
3745if test $ac_cv_header_stdc = yes; then
3746
3747$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3748
3749fi
3750
3751# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3752for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3753 inttypes.h stdint.h unistd.h
3754do :
3755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3756ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3757"
3758eval as_val=\$$as_ac_Header
3759 if test "x$as_val" = x""yes; then :
3760 cat >>confdefs.h <<_ACEOF
3761#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3762_ACEOF
3763
3764fi
3765
3766done
3767
3768
3769
3770
3771
3772 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3773if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3774 MINIX=yes
3775else
3776 MINIX=
3777fi
3778
3779
3780 if test "$MINIX" = yes; then
3781
3782$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3783
3784
3785$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3786
3787
3788$as_echo "#define _MINIX 1" >>confdefs.h
3789
3790 fi
3791
3792 case "$host_os" in
3793 hpux*)
3794
3795$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
3796
3797 ;;
3798 esac
3799
3800
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3802$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3803if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3805else
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h. */
3808
3809# define __EXTENSIONS__ 1
3810 $ac_includes_default
3811int
3812main ()
3813{
3814
3815 ;
3816 return 0;
3817}
3818_ACEOF
3819if ac_fn_c_try_compile "$LINENO"; then :
3820 ac_cv_safe_to_define___extensions__=yes
3821else
3822 ac_cv_safe_to_define___extensions__=no
3823fi
3824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825fi
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3827$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3828 test $ac_cv_safe_to_define___extensions__ = yes &&
3829 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3830
3831 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3832
3833 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3834
3835 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3836
3837 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3838
3839 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3840
3841
3842
3843
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
3845$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
3846if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
3847 $as_echo_n "(cached) " >&6
3848else
3849
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851/* end confdefs.h. */
3852
3853#ifdef __ACK__
3854Amsterdam
3855#endif
3856
3857_ACEOF
3858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3859 $EGREP "Amsterdam" >/dev/null 2>&1; then :
3860 gl_cv_c_amsterdam_compiler=yes
3861else
3862 gl_cv_c_amsterdam_compiler=no
3863fi
3864rm -f conftest*
3865
3866
3867fi
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
3869$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
3870 if test -z "$AR"; then
3871 if test $gl_cv_c_amsterdam_compiler = yes; then
3872 AR='cc -c.a'
3873 if test -z "$ARFLAGS"; then
3874 ARFLAGS='-o'
3875 fi
3876 else
3877 if test -n "$ac_tool_prefix"; then
3878 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3879set dummy ${ac_tool_prefix}ar; ac_word=$2
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881$as_echo_n "checking for $ac_word... " >&6; }
3882if test "${ac_cv_prog_AR+set}" = set; then :
3883 $as_echo_n "(cached) " >&6
3884else
3885 if test -n "$AR"; then
3886 ac_cv_prog_AR="$AR" # Let the user override the test.
3887else
3888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889for as_dir in $PATH
3890do
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3895 ac_cv_prog_AR="${ac_tool_prefix}ar"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3898 fi
3899done
3900 done
3901IFS=$as_save_IFS
3902
3903fi
3904fi
3905AR=$ac_cv_prog_AR
3906if test -n "$AR"; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3908$as_echo "$AR" >&6; }
3909else
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911$as_echo "no" >&6; }
3912fi
3913
3914
3915fi
3916if test -z "$ac_cv_prog_AR"; then
3917 ac_ct_AR=$AR
3918 # Extract the first word of "ar", so it can be a program name with args.
3919set dummy ar; ac_word=$2
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921$as_echo_n "checking for $ac_word... " >&6; }
3922if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3923 $as_echo_n "(cached) " >&6
3924else
3925 if test -n "$ac_ct_AR"; then
3926 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3927else
3928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929for as_dir in $PATH
3930do
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3935 ac_cv_prog_ac_ct_AR="ar"
3936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 break 2
3938 fi
3939done
3940 done
3941IFS=$as_save_IFS
3942
3943fi
3944fi
3945ac_ct_AR=$ac_cv_prog_ac_ct_AR
3946if test -n "$ac_ct_AR"; then
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3948$as_echo "$ac_ct_AR" >&6; }
3949else
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951$as_echo "no" >&6; }
3952fi
3953
3954 if test "x$ac_ct_AR" = x; then
3955 AR="ar"
3956 else
3957 case $cross_compiling:$ac_tool_warned in
3958yes:)
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3961ac_tool_warned=yes ;;
3962esac
3963 AR=$ac_ct_AR
3964 fi
3965else
3966 AR="$ac_cv_prog_AR"
3967fi
3968
3969 if test -z "$ARFLAGS"; then
3970 ARFLAGS='cru'
3971 fi
3972 fi
3973 else
3974 if test -z "$ARFLAGS"; then
3975 ARFLAGS='cru'
3976 fi
3977 fi
3978
3979
3980 if test -z "$RANLIB"; then
3981 if test $gl_cv_c_amsterdam_compiler = yes; then
3982 RANLIB=':'
3983 else
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3986set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988$as_echo_n "checking for $ac_word... " >&6; }
3989if test "${ac_cv_prog_RANLIB+set}" = set; then :
3990 $as_echo_n "(cached) " >&6
3991else
3992 if test -n "$RANLIB"; then
3993 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3994else
3995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996for as_dir in $PATH
3997do
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4002 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4005 fi
4006done
4007 done
4008IFS=$as_save_IFS
4009
4010fi
4011fi
4012RANLIB=$ac_cv_prog_RANLIB
4013if test -n "$RANLIB"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4015$as_echo "$RANLIB" >&6; }
4016else
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018$as_echo "no" >&6; }
4019fi
4020
4021
4022fi
4023if test -z "$ac_cv_prog_RANLIB"; then
4024 ac_ct_RANLIB=$RANLIB
4025 # Extract the first word of "ranlib", so it can be a program name with args.
4026set dummy ranlib; ac_word=$2
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028$as_echo_n "checking for $ac_word... " >&6; }
4029if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4030 $as_echo_n "(cached) " >&6
4031else
4032 if test -n "$ac_ct_RANLIB"; then
4033 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4034else
4035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036for as_dir in $PATH
4037do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4042 ac_cv_prog_ac_ct_RANLIB="ranlib"
4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 break 2
4045 fi
4046done
4047 done
4048IFS=$as_save_IFS
4049
4050fi
4051fi
4052ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4053if test -n "$ac_ct_RANLIB"; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4055$as_echo "$ac_ct_RANLIB" >&6; }
4056else
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058$as_echo "no" >&6; }
4059fi
4060
4061 if test "x$ac_ct_RANLIB" = x; then
4062 RANLIB=":"
4063 else
4064 case $cross_compiling:$ac_tool_warned in
4065yes:)
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4068ac_tool_warned=yes ;;
4069esac
4070 RANLIB=$ac_ct_RANLIB
4071 fi
4072else
4073 RANLIB="$ac_cv_prog_RANLIB"
4074fi
4075
4076 fi
4077 fi
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088 # Code from module extensions:
4089
4090 # Code from module include_next:
4091 # Code from module inttypes:
4092 # Code from module inttypes-incomplete:
4093 # Code from module memchr:
4094 # Code from module memmem:
4095 # Code from module memmem-simple:
4096 # Code from module multiarch:
4097 # Code from module snippet/arg-nonnull:
4098 # Code from module snippet/c++defs:
4099 # Code from module snippet/warn-on-use:
4100 # Code from module stddef:
4101 # Code from module stdint:
4102 # Code from module string:
4103 # Code from module update-copyright:
4104
4105ac_ext=c
4106ac_cpp='$CPP $CPPFLAGS'
4107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110if test -n "$ac_tool_prefix"; then
4111 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4112set dummy ${ac_tool_prefix}gcc; ac_word=$2
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114$as_echo_n "checking for $ac_word... " >&6; }
4115if test "${ac_cv_prog_CC+set}" = set; then :
4116 $as_echo_n "(cached) " >&6
4117else
4118 if test -n "$CC"; then
4119 ac_cv_prog_CC="$CC" # Let the user override the test.
4120else
4121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122for as_dir in $PATH
4123do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4128 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 break 2
4131 fi
4132done
4133 done
4134IFS=$as_save_IFS
4135
4136fi
4137fi
4138CC=$ac_cv_prog_CC
4139if test -n "$CC"; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4141$as_echo "$CC" >&6; }
4142else
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144$as_echo "no" >&6; }
4145fi
4146
4147
4148fi
4149if test -z "$ac_cv_prog_CC"; then
4150 ac_ct_CC=$CC
4151 # Extract the first word of "gcc", so it can be a program name with args.
4152set dummy gcc; ac_word=$2
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154$as_echo_n "checking for $ac_word... " >&6; }
4155if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4156 $as_echo_n "(cached) " >&6
4157else
4158 if test -n "$ac_ct_CC"; then
4159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4160else
4161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4168 ac_cv_prog_ac_ct_CC="gcc"
4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 break 2
4171 fi
4172done
4173 done
4174IFS=$as_save_IFS
4175
4176fi
4177fi
4178ac_ct_CC=$ac_cv_prog_ac_ct_CC
4179if test -n "$ac_ct_CC"; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4181$as_echo "$ac_ct_CC" >&6; }
4182else
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184$as_echo "no" >&6; }
4185fi
4186
4187 if test "x$ac_ct_CC" = x; then
4188 CC=""
4189 else
4190 case $cross_compiling:$ac_tool_warned in
4191yes:)
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4194ac_tool_warned=yes ;;
4195esac
4196 CC=$ac_ct_CC
4197 fi
4198else
4199 CC="$ac_cv_prog_CC"
4200fi
4201
4202if test -z "$CC"; then
4203 if test -n "$ac_tool_prefix"; then
4204 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4205set dummy ${ac_tool_prefix}cc; ac_word=$2
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207$as_echo_n "checking for $ac_word... " >&6; }
4208if test "${ac_cv_prog_CC+set}" = set; then :
4209 $as_echo_n "(cached) " >&6
4210else
4211 if test -n "$CC"; then
4212 ac_cv_prog_CC="$CC" # Let the user override the test.
4213else
4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221 ac_cv_prog_CC="${ac_tool_prefix}cc"
4222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 break 2
4224 fi
4225done
4226 done
4227IFS=$as_save_IFS
4228
4229fi
4230fi
4231CC=$ac_cv_prog_CC
4232if test -n "$CC"; then
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4234$as_echo "$CC" >&6; }
4235else
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237$as_echo "no" >&6; }
4238fi
4239
4240
4241 fi
4242fi
4243if test -z "$CC"; then
4244 # Extract the first word of "cc", so it can be a program name with args.
4245set dummy cc; ac_word=$2
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247$as_echo_n "checking for $ac_word... " >&6; }
4248if test "${ac_cv_prog_CC+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4250else
4251 if test -n "$CC"; then
4252 ac_cv_prog_CC="$CC" # Let the user override the test.
4253else
4254 ac_prog_rejected=no
4255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256for as_dir in $PATH
4257do
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4262 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4263 ac_prog_rejected=yes
4264 continue
4265 fi
4266 ac_cv_prog_CC="cc"
4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 break 2
4269 fi
4270done
4271 done
4272IFS=$as_save_IFS
4273
4274if test $ac_prog_rejected = yes; then
4275 # We found a bogon in the path, so make sure we never use it.
4276 set dummy $ac_cv_prog_CC
4277 shift
4278 if test $# != 0; then
4279 # We chose a different compiler from the bogus one.
4280 # However, it has the same basename, so the bogon will be chosen
4281 # first if we set CC to just the basename; use the full file name.
4282 shift
4283 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4284 fi
4285fi
4286fi
4287fi
4288CC=$ac_cv_prog_CC
4289if test -n "$CC"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4291$as_echo "$CC" >&6; }
4292else
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294$as_echo "no" >&6; }
4295fi
4296
4297
4298fi
4299if test -z "$CC"; then
4300 if test -n "$ac_tool_prefix"; then
4301 for ac_prog in cl.exe
4302 do
4303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4304set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306$as_echo_n "checking for $ac_word... " >&6; }
4307if test "${ac_cv_prog_CC+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4309else
4310 if test -n "$CC"; then
4311 ac_cv_prog_CC="$CC" # Let the user override the test.
4312else
4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324done
4325 done
4326IFS=$as_save_IFS
4327
4328fi
4329fi
4330CC=$ac_cv_prog_CC
4331if test -n "$CC"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4333$as_echo "$CC" >&6; }
4334else
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336$as_echo "no" >&6; }
4337fi
4338
4339
4340 test -n "$CC" && break
4341 done
4342fi
4343if test -z "$CC"; then
4344 ac_ct_CC=$CC
4345 for ac_prog in cl.exe
4346do
4347 # Extract the first word of "$ac_prog", so it can be a program name with args.
4348set dummy $ac_prog; ac_word=$2
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350$as_echo_n "checking for $ac_word... " >&6; }
4351if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4352 $as_echo_n "(cached) " >&6
4353else
4354 if test -n "$ac_ct_CC"; then
4355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4356else
4357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358for as_dir in $PATH
4359do
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364 ac_cv_prog_ac_ct_CC="$ac_prog"
4365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 break 2
4367 fi
4368done
4369 done
4370IFS=$as_save_IFS
4371
4372fi
4373fi
4374ac_ct_CC=$ac_cv_prog_ac_ct_CC
4375if test -n "$ac_ct_CC"; then
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4377$as_echo "$ac_ct_CC" >&6; }
4378else
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380$as_echo "no" >&6; }
4381fi
4382
4383
4384 test -n "$ac_ct_CC" && break
4385done
4386
4387 if test "x$ac_ct_CC" = x; then
4388 CC=""
4389 else
4390 case $cross_compiling:$ac_tool_warned in
4391yes:)
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4394ac_tool_warned=yes ;;
4395esac
4396 CC=$ac_ct_CC
4397 fi
4398fi
4399
4400fi
4401
4402
4403test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405as_fn_error "no acceptable C compiler found in \$PATH
4406See \`config.log' for more details." "$LINENO" 5; }
4407
4408# Provide some information about the compiler.
4409$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4410set X $ac_compile
4411ac_compiler=$2
4412for ac_option in --version -v -V -qversion; do
4413 { { ac_try="$ac_compiler $ac_option >&5"
4414case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4417esac
4418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419$as_echo "$ac_try_echo"; } >&5
4420 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4421 ac_status=$?
4422 if test -s conftest.err; then
4423 sed '10a\
4424... rest of stderr output deleted ...
4425 10q' conftest.err >conftest.er1
4426 cat conftest.er1 >&5
4427 rm -f conftest.er1 conftest.err
4428 fi
4429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4430 test $ac_status = 0; }
4431done
4432
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4434$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4435if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4436 $as_echo_n "(cached) " >&6
4437else
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439/* end confdefs.h. */
4440
4441int
4442main ()
4443{
4444#ifndef __GNUC__
4445 choke me
4446#endif
4447
4448 ;
4449 return 0;
4450}
4451_ACEOF
4452if ac_fn_c_try_compile "$LINENO"; then :
4453 ac_compiler_gnu=yes
4454else
4455 ac_compiler_gnu=no
4456fi
4457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458ac_cv_c_compiler_gnu=$ac_compiler_gnu
4459
4460fi
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4462$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4463if test $ac_compiler_gnu = yes; then
4464 GCC=yes
4465else
4466 GCC=
4467fi
4468ac_test_CFLAGS=${CFLAGS+set}
4469ac_save_CFLAGS=$CFLAGS
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4471$as_echo_n "checking whether $CC accepts -g... " >&6; }
4472if test "${ac_cv_prog_cc_g+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
4474else
4475 ac_save_c_werror_flag=$ac_c_werror_flag
4476 ac_c_werror_flag=yes
4477 ac_cv_prog_cc_g=no
4478 CFLAGS="-g"
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480/* end confdefs.h. */
4481
4482int
4483main ()
4484{
4485
4486 ;
4487 return 0;
4488}
4489_ACEOF
4490if ac_fn_c_try_compile "$LINENO"; then :
4491 ac_cv_prog_cc_g=yes
4492else
4493 CFLAGS=""
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495/* end confdefs.h. */
4496
4497int
4498main ()
4499{
4500
4501 ;
4502 return 0;
4503}
4504_ACEOF
4505if ac_fn_c_try_compile "$LINENO"; then :
4506
4507else
4508 ac_c_werror_flag=$ac_save_c_werror_flag
4509 CFLAGS="-g"
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511/* end confdefs.h. */
4512
4513int
4514main ()
4515{
4516
4517 ;
4518 return 0;
4519}
4520_ACEOF
4521if ac_fn_c_try_compile "$LINENO"; then :
4522 ac_cv_prog_cc_g=yes
4523fi
4524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525fi
4526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527fi
4528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 ac_c_werror_flag=$ac_save_c_werror_flag
4530fi
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4532$as_echo "$ac_cv_prog_cc_g" >&6; }
4533if test "$ac_test_CFLAGS" = set; then
4534 CFLAGS=$ac_save_CFLAGS
4535elif test $ac_cv_prog_cc_g = yes; then
4536 if test "$GCC" = yes; then
4537 CFLAGS="-g -O2"
4538 else
4539 CFLAGS="-g"
4540 fi
4541else
4542 if test "$GCC" = yes; then
4543 CFLAGS="-O2"
4544 else
4545 CFLAGS=
4546 fi
4547fi
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4549$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4550if test "${ac_cv_prog_cc_c89+set}" = set; then :
4551 $as_echo_n "(cached) " >&6
4552else
4553 ac_cv_prog_cc_c89=no
4554ac_save_CC=$CC
4555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556/* end confdefs.h. */
4557#include <stdarg.h>
4558#include <stdio.h>
4559#include <sys/types.h>
4560#include <sys/stat.h>
4561/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4562struct buf { int x; };
4563FILE * (*rcsopen) (struct buf *, struct stat *, int);
4564static char *e (p, i)
4565 char **p;
4566 int i;
4567{
4568 return p[i];
4569}
4570static char *f (char * (*g) (char **, int), char **p, ...)
4571{
4572 char *s;
4573 va_list v;
4574 va_start (v,p);
4575 s = g (p, va_arg (v,int));
4576 va_end (v);
4577 return s;
4578}
4579
4580/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4581 function prototypes and stuff, but not '\xHH' hex character constants.
4582 These don't provoke an error unfortunately, instead are silently treated
4583 as 'x'. The following induces an error, until -std is added to get
4584 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4585 array size at least. It's necessary to write '\x00'==0 to get something
4586 that's true only with -std. */
4587int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4588
4589/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4590 inside strings and character constants. */
4591#define FOO(x) 'x'
4592int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4593
4594int test (int i, double x);
4595struct s1 {int (*f) (int a);};
4596struct s2 {int (*f) (double a);};
4597int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4598int argc;
4599char **argv;
4600int
4601main ()
4602{
4603return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4604 ;
4605 return 0;
4606}
4607_ACEOF
4608for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4609 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4610do
4611 CC="$ac_save_CC $ac_arg"
4612 if ac_fn_c_try_compile "$LINENO"; then :
4613 ac_cv_prog_cc_c89=$ac_arg
4614fi
4615rm -f core conftest.err conftest.$ac_objext
4616 test "x$ac_cv_prog_cc_c89" != "xno" && break
4617done
4618rm -f conftest.$ac_ext
4619CC=$ac_save_CC
4620
4621fi
4622# AC_CACHE_VAL
4623case "x$ac_cv_prog_cc_c89" in
4624 x)
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4626$as_echo "none needed" >&6; } ;;
4627 xno)
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4629$as_echo "unsupported" >&6; } ;;
4630 *)
4631 CC="$CC $ac_cv_prog_cc_c89"
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4633$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4634esac
4635if test "x$ac_cv_prog_cc_c89" != xno; then :
4636
4637fi
4638
4639ac_ext=c
4640ac_cpp='$CPP $CPPFLAGS'
4641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643ac_compiler_gnu=$ac_cv_c_compiler_gnu
4644
4645
4646am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4647
4648
4649ac_aux_dir=
4650for ac_dir in ../.. "$srcdir"/../..; do
4651 for ac_t in install-sh install.sh shtool; do
4652 if test -f "$ac_dir/$ac_t"; then
4653 ac_aux_dir=$ac_dir
4654 ac_install_sh="$ac_aux_dir/$ac_t -c"
4655 break 2
4656 fi
4657 done
4658done
4659if test -z "$ac_aux_dir"; then
4660 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
4661fi
4662
4663# These three variables are undocumented and unsupported,
4664# and are intended to be withdrawn in a future Autoconf release.
4665# They can cause serious problems if a builder's source tree is in a directory
4666# whose full name contains unusual characters.
4667ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4668ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4669ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4670
4671
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4673$as_echo_n "checking target system type... " >&6; }
4674if test "${ac_cv_target+set}" = set; then :
4675 $as_echo_n "(cached) " >&6
4676else
4677 if test "x$target_alias" = x; then
4678 ac_cv_target=$ac_cv_host
4679else
4680 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4681 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4682fi
4683
4684fi
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4686$as_echo "$ac_cv_target" >&6; }
4687case $ac_cv_target in
4688*-*-*) ;;
4689*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4690esac
4691target=$ac_cv_target
4692ac_save_IFS=$IFS; IFS='-'
4693set x $ac_cv_target
4694shift
4695target_cpu=$1
4696target_vendor=$2
4697shift; shift
4698# Remember, the first character of IFS is used to create $*,
4699# except with old shells:
4700target_os=$*
4701IFS=$ac_save_IFS
4702case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4703
4704
4705# The aliases save the names the user supplied, while $host etc.
4706# will get canonicalized.
4707test -n "$target_alias" &&
4708 test "$program_prefix$program_suffix$program_transform_name" = \
4709 NONENONEs,x,x, &&
4710 program_prefix=${target_alias}-
4711
4712
4713
4714
4715
4716
4717
4718 LIBC_FATAL_STDERR_=1
4719 export LIBC_FATAL_STDERR_
4720
4721
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
4723$as_echo_n "checking for unsigned long long int... " >&6; }
4724if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4726else
4727 ac_cv_type_unsigned_long_long_int=yes
4728 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730/* end confdefs.h. */
4731
4732 /* For now, do not test the preprocessor; as of 2007 there are too many
4733 implementations with broken preprocessors. Perhaps this can
4734 be revisited in 2012. In the meantime, code should not expect
4735 #if to work with literals wider than 32 bits. */
4736 /* Test literals. */
4737 long long int ll = 9223372036854775807ll;
4738 long long int nll = -9223372036854775807LL;
4739 unsigned long long int ull = 18446744073709551615ULL;
4740 /* Test constant expressions. */
4741 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4742 ? 1 : -1)];
4743 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4744 ? 1 : -1)];
4745 int i = 63;
4746int
4747main ()
4748{
4749/* Test availability of runtime routines for shift and division. */
4750 long long int llmax = 9223372036854775807ll;
4751 unsigned long long int ullmax = 18446744073709551615ull;
4752 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4753 | (llmax / ll) | (llmax % ll)
4754 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4755 | (ullmax / ull) | (ullmax % ull));
4756 ;
4757 return 0;
4758}
4759
4760_ACEOF
4761if ac_fn_c_try_link "$LINENO"; then :
4762
4763else
4764 ac_cv_type_unsigned_long_long_int=no
4765fi
4766rm -f core conftest.err conftest.$ac_objext \
4767 conftest$ac_exeext conftest.$ac_ext
4768 fi
4769fi
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
4771$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
4772 if test $ac_cv_type_unsigned_long_long_int = yes; then
4773
4774$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
4775
4776 fi
4777
4778
4779
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4781$as_echo_n "checking for long long int... " >&6; }
4782if test "${ac_cv_type_long_long_int+set}" = set; then :
4783 $as_echo_n "(cached) " >&6
4784else
4785 ac_cv_type_long_long_int=yes
4786 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4787 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
4788 if test $ac_cv_type_long_long_int = yes; then
4789 if test "$cross_compiling" = yes; then :
4790 :
4791else
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793/* end confdefs.h. */
4794#include <limits.h>
4795 #ifndef LLONG_MAX
4796 # define HALF \
4797 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4798 # define LLONG_MAX (HALF - 1 + HALF)
4799 #endif
4800int
4801main ()
4802{
4803long long int n = 1;
4804 int i;
4805 for (i = 0; ; i++)
4806 {
4807 long long int m = n << i;
4808 if (m >> i != n)
4809 return 1;
4810 if (LLONG_MAX / 2 < m)
4811 break;
4812 }
4813 return 0;
4814 ;
4815 return 0;
4816}
4817_ACEOF
4818if ac_fn_c_try_run "$LINENO"; then :
4819
4820else
4821 ac_cv_type_long_long_int=no
4822fi
4823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4824 conftest.$ac_objext conftest.beam conftest.$ac_ext
4825fi
4826
4827 fi
4828 fi
4829fi
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
4831$as_echo "$ac_cv_type_long_long_int" >&6; }
4832 if test $ac_cv_type_long_long_int = yes; then
4833
4834$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
4835
4836 fi
4837
4838
4839
4840
4841
4842 for ac_header in $gl_header_list
4843do :
4844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4845ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4846eval as_val=\$$as_ac_Header
4847 if test "x$as_val" = x""yes; then :
4848 cat >>confdefs.h <<_ACEOF
4849#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4850_ACEOF
4851
4852fi
4853
4854done
4855
4856
4857
4858
4859
4860
4861
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
4863$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
4864if test "${gl_cv_have_include_next+set}" = set; then :
4865 $as_echo_n "(cached) " >&6
4866else
4867 rm -rf conftestd1a conftestd1b conftestd2
4868 mkdir conftestd1a conftestd1b conftestd2
4869 cat <<EOF > conftestd1a/conftest.h
4870#define DEFINED_IN_CONFTESTD1
4871#include_next <conftest.h>
4872#ifdef DEFINED_IN_CONFTESTD2
4873int foo;
4874#else
4875#error "include_next doesn't work"
4876#endif
4877EOF
4878 cat <<EOF > conftestd1b/conftest.h
4879#define DEFINED_IN_CONFTESTD1
4880#include <stdio.h>
4881#include_next <conftest.h>
4882#ifdef DEFINED_IN_CONFTESTD2
4883int foo;
4884#else
4885#error "include_next doesn't work"
4886#endif
4887EOF
4888 cat <<EOF > conftestd2/conftest.h
4889#ifndef DEFINED_IN_CONFTESTD1
4890#error "include_next test doesn't work"
4891#endif
4892#define DEFINED_IN_CONFTESTD2
4893EOF
4894 gl_save_CPPFLAGS="$CPPFLAGS"
4895 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897/* end confdefs.h. */
4898#include <conftest.h>
4899_ACEOF
4900if ac_fn_c_try_compile "$LINENO"; then :
4901 gl_cv_have_include_next=yes
4902else
4903 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905/* end confdefs.h. */
4906#include <conftest.h>
4907_ACEOF
4908if ac_fn_c_try_compile "$LINENO"; then :
4909 gl_cv_have_include_next=buggy
4910else
4911 gl_cv_have_include_next=no
4912fi
4913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914
4915fi
4916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917 CPPFLAGS="$gl_save_CPPFLAGS"
4918 rm -rf conftestd1a conftestd1b conftestd2
4919
4920fi
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
4922$as_echo "$gl_cv_have_include_next" >&6; }
4923 PRAGMA_SYSTEM_HEADER=
4924 if test $gl_cv_have_include_next = yes; then
4925 INCLUDE_NEXT=include_next
4926 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
4927 if test -n "$GCC"; then
4928 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
4929 fi
4930 else
4931 if test $gl_cv_have_include_next = buggy; then
4932 INCLUDE_NEXT=include
4933 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
4934 else
4935 INCLUDE_NEXT=include
4936 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
4937 fi
4938 fi
4939
4940
4941
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
4943$as_echo_n "checking whether system header files limit the line length... " >&6; }
4944if test "${gl_cv_pragma_columns+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
4946else
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948/* end confdefs.h. */
4949
4950#ifdef __TANDEM
4951choke me
4952#endif
4953
4954_ACEOF
4955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4956 $EGREP "choke me" >/dev/null 2>&1; then :
4957 gl_cv_pragma_columns=yes
4958else
4959 gl_cv_pragma_columns=no
4960fi
4961rm -f conftest*
4962
4963
4964fi
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
4966$as_echo "$gl_cv_pragma_columns" >&6; }
4967 if test $gl_cv_pragma_columns = yes; then
4968 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
4969 else
4970 PRAGMA_COLUMNS=
4971 fi
4972
4973
4974
4975
4976
4977
4978
4979
4980 gl_cv_c_multiarch=no
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982/* end confdefs.h. */
4983#ifndef __APPLE_CC__
4984 not a universal capable compiler
4985 #endif
4986 typedef int dummy;
4987
4988_ACEOF
4989if ac_fn_c_try_compile "$LINENO"; then :
4990
4991 arch=
4992 prev=
4993 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
4994 if test -n "$prev"; then
4995 case $word in
4996 i?86 | x86_64 | ppc | ppc64)
4997 if test -z "$arch" || test "$arch" = "$word"; then
4998 arch="$word"
4999 else
5000 gl_cv_c_multiarch=yes
5001 fi
5002 ;;
5003 esac
5004 prev=
5005 else
5006 if test "x$word" = "x-arch"; then
5007 prev=arch
5008 fi
5009 fi
5010 done
5011
5012fi
5013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 if test $gl_cv_c_multiarch = yes; then
5015 APPLE_UNIVERSAL_BUILD=1
5016 else
5017 APPLE_UNIVERSAL_BUILD=0
5018 fi
5019
5020
5021
5022
5023
5024 if test $ac_cv_type_long_long_int = yes; then
5025 HAVE_LONG_LONG_INT=1
5026 else
5027 HAVE_LONG_LONG_INT=0
5028 fi
5029
5030
5031 if test $ac_cv_type_unsigned_long_long_int = yes; then
5032 HAVE_UNSIGNED_LONG_LONG_INT=1
5033 else
5034 HAVE_UNSIGNED_LONG_LONG_INT=0
5035 fi
5036
5037
5038
5039 :
5040
5041
5042
5043
5044
5045 if test $ac_cv_header_wchar_h = yes; then
5046 HAVE_WCHAR_H=1
5047 else
5048 HAVE_WCHAR_H=0
5049 fi
5050
5051
5052 if test $ac_cv_header_inttypes_h = yes; then
5053 HAVE_INTTYPES_H=1
5054 else
5055 HAVE_INTTYPES_H=0
5056 fi
5057
5058
5059 if test $ac_cv_header_sys_types_h = yes; then
5060 HAVE_SYS_TYPES_H=1
5061 else
5062 HAVE_SYS_TYPES_H=0
5063 fi
5064
5065
5066
5067
5068
5069
5070
5071
5072 :
5073
5074
5075
5076
5077
5078
5079
5080
5081 if test $gl_cv_have_include_next = yes; then
5082 gl_cv_next_stdint_h='<'stdint.h'>'
5083 else
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5085$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5086if test "${gl_cv_next_stdint_h+set}" = set; then :
5087 $as_echo_n "(cached) " >&6
5088else
5089
5090 if test $ac_cv_header_stdint_h = yes; then
5091
5092
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094/* end confdefs.h. */
5095#include <stdint.h>
5096
5097_ACEOF
5098 case "$host_os" in
5099 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5100 *) gl_absname_cpp="$ac_cpp" ;;
5101 esac
5102
5103 case "$host_os" in
5104 mingw*)
5105 gl_dirsep_regex='[/\\]'
5106 ;;
5107 *)
5108 gl_dirsep_regex='\/'
5109 ;;
5110 esac
5111 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5112
5113 gl_header_literal_regex=`echo 'stdint.h' \
5114 | sed -e "$gl_make_literal_regex_sed"`
5115 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5116 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5117 s|^/[^/]|//&|
5118 p
5119 q
5120 }'
5121 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5122 sed -n "$gl_absolute_header_sed"`'"'
5123 else
5124 gl_cv_next_stdint_h='<'stdint.h'>'
5125 fi
5126
5127
5128fi
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5130$as_echo "$gl_cv_next_stdint_h" >&6; }
5131 fi
5132 NEXT_STDINT_H=$gl_cv_next_stdint_h
5133
5134 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5136 gl_next_as_first_directive='<'stdint.h'>'
5137 else
5138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5139 gl_next_as_first_directive=$gl_cv_next_stdint_h
5140 fi
5141 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
5142
5143
5144
5145
5146 if test $ac_cv_header_stdint_h = yes; then
5147 HAVE_STDINT_H=1
5148 else
5149 HAVE_STDINT_H=0
5150 fi
5151
5152
5153 if test $ac_cv_header_stdint_h = yes; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5155$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5156if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5158else
5159 gl_cv_header_working_stdint_h=no
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161/* end confdefs.h. */
5162
5163
5164#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5165#include <stdint.h>
5166/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5167#if !(defined WCHAR_MIN && defined WCHAR_MAX)
5168#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5169#endif
5170
5171
5172 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5173 included before <wchar.h>. */
5174 #include <stddef.h>
5175 #include <signal.h>
5176 #if HAVE_WCHAR_H
5177 # include <stdio.h>
5178 # include <time.h>
5179 # include <wchar.h>
5180 #endif
5181
5182
5183#ifdef INT8_MAX
5184int8_t a1 = INT8_MAX;
5185int8_t a1min = INT8_MIN;
5186#endif
5187#ifdef INT16_MAX
5188int16_t a2 = INT16_MAX;
5189int16_t a2min = INT16_MIN;
5190#endif
5191#ifdef INT32_MAX
5192int32_t a3 = INT32_MAX;
5193int32_t a3min = INT32_MIN;
5194#endif
5195#ifdef INT64_MAX
5196int64_t a4 = INT64_MAX;
5197int64_t a4min = INT64_MIN;
5198#endif
5199#ifdef UINT8_MAX
5200uint8_t b1 = UINT8_MAX;
5201#else
5202typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5203#endif
5204#ifdef UINT16_MAX
5205uint16_t b2 = UINT16_MAX;
5206#endif
5207#ifdef UINT32_MAX
5208uint32_t b3 = UINT32_MAX;
5209#endif
5210#ifdef UINT64_MAX
5211uint64_t b4 = UINT64_MAX;
5212#endif
5213int_least8_t c1 = INT8_C (0x7f);
5214int_least8_t c1max = INT_LEAST8_MAX;
5215int_least8_t c1min = INT_LEAST8_MIN;
5216int_least16_t c2 = INT16_C (0x7fff);
5217int_least16_t c2max = INT_LEAST16_MAX;
5218int_least16_t c2min = INT_LEAST16_MIN;
5219int_least32_t c3 = INT32_C (0x7fffffff);
5220int_least32_t c3max = INT_LEAST32_MAX;
5221int_least32_t c3min = INT_LEAST32_MIN;
5222int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5223int_least64_t c4max = INT_LEAST64_MAX;
5224int_least64_t c4min = INT_LEAST64_MIN;
5225uint_least8_t d1 = UINT8_C (0xff);
5226uint_least8_t d1max = UINT_LEAST8_MAX;
5227uint_least16_t d2 = UINT16_C (0xffff);
5228uint_least16_t d2max = UINT_LEAST16_MAX;
5229uint_least32_t d3 = UINT32_C (0xffffffff);
5230uint_least32_t d3max = UINT_LEAST32_MAX;
5231uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5232uint_least64_t d4max = UINT_LEAST64_MAX;
5233int_fast8_t e1 = INT_FAST8_MAX;
5234int_fast8_t e1min = INT_FAST8_MIN;
5235int_fast16_t e2 = INT_FAST16_MAX;
5236int_fast16_t e2min = INT_FAST16_MIN;
5237int_fast32_t e3 = INT_FAST32_MAX;
5238int_fast32_t e3min = INT_FAST32_MIN;
5239int_fast64_t e4 = INT_FAST64_MAX;
5240int_fast64_t e4min = INT_FAST64_MIN;
5241uint_fast8_t f1 = UINT_FAST8_MAX;
5242uint_fast16_t f2 = UINT_FAST16_MAX;
5243uint_fast32_t f3 = UINT_FAST32_MAX;
5244uint_fast64_t f4 = UINT_FAST64_MAX;
5245#ifdef INTPTR_MAX
5246intptr_t g = INTPTR_MAX;
5247intptr_t gmin = INTPTR_MIN;
5248#endif
5249#ifdef UINTPTR_MAX
5250uintptr_t h = UINTPTR_MAX;
5251#endif
5252intmax_t i = INTMAX_MAX;
5253uintmax_t j = UINTMAX_MAX;
5254
5255#include <limits.h> /* for CHAR_BIT */
5256#define TYPE_MINIMUM(t) \
5257 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
5258#define TYPE_MAXIMUM(t) \
5259 ((t) ((t) 0 < (t) -1 \
5260 ? (t) -1 \
5261 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
5262struct s {
5263 int check_PTRDIFF:
5264 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5265 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5266 ? 1 : -1;
5267 /* Detect bug in FreeBSD 6.0 / ia64. */
5268 int check_SIG_ATOMIC:
5269 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5270 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5271 ? 1 : -1;
5272 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5273 int check_WCHAR:
5274 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5275 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5276 ? 1 : -1;
5277 /* Detect bug in mingw. */
5278 int check_WINT:
5279 WINT_MIN == TYPE_MINIMUM (wint_t)
5280 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5281 ? 1 : -1;
5282
5283 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5284 int check_UINT8_C:
5285 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5286 int check_UINT16_C:
5287 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5288
5289 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5290#ifdef UINT8_MAX
5291 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5292#endif
5293#ifdef UINT16_MAX
5294 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5295#endif
5296#ifdef UINT32_MAX
5297 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5298#endif
5299#ifdef UINT64_MAX
5300 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5301#endif
5302 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5303 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5304 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5305 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5306 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5307 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5308 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5309 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5310 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5311 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5312 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5313};
5314
5315int
5316main ()
5317{
5318
5319 ;
5320 return 0;
5321}
5322_ACEOF
5323if ac_fn_c_try_compile "$LINENO"; then :
5324 if test "$cross_compiling" = yes; then :
5325 gl_cv_header_working_stdint_h=yes
5326
5327else
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329/* end confdefs.h. */
5330
5331
5332#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5333#include <stdint.h>
5334
5335
5336 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5337 included before <wchar.h>. */
5338 #include <stddef.h>
5339 #include <signal.h>
5340 #if HAVE_WCHAR_H
5341 # include <stdio.h>
5342 # include <time.h>
5343 # include <wchar.h>
5344 #endif
5345
5346
5347#include <stdio.h>
5348#include <string.h>
5349#define MVAL(macro) MVAL1(macro)
5350#define MVAL1(expression) #expression
5351static const char *macro_values[] =
5352 {
5353#ifdef INT8_MAX
5354 MVAL (INT8_MAX),
5355#endif
5356#ifdef INT16_MAX
5357 MVAL (INT16_MAX),
5358#endif
5359#ifdef INT32_MAX
5360 MVAL (INT32_MAX),
5361#endif
5362#ifdef INT64_MAX
5363 MVAL (INT64_MAX),
5364#endif
5365#ifdef UINT8_MAX
5366 MVAL (UINT8_MAX),
5367#endif
5368#ifdef UINT16_MAX
5369 MVAL (UINT16_MAX),
5370#endif
5371#ifdef UINT32_MAX
5372 MVAL (UINT32_MAX),
5373#endif
5374#ifdef UINT64_MAX
5375 MVAL (UINT64_MAX),
5376#endif
5377 NULL
5378 };
5379
5380int
5381main ()
5382{
5383
5384 const char **mv;
5385 for (mv = macro_values; *mv != NULL; mv++)
5386 {
5387 const char *value = *mv;
5388 /* Test whether it looks like a cast expression. */
5389 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
5390 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
5391 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
5392 || strncmp (value, "((int)"/*)*/, 6) == 0
5393 || strncmp (value, "((signed short)"/*)*/, 15) == 0
5394 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
5395 return mv - macro_values + 1;
5396 }
5397 return 0;
5398
5399 ;
5400 return 0;
5401}
5402_ACEOF
5403if ac_fn_c_try_run "$LINENO"; then :
5404 gl_cv_header_working_stdint_h=yes
5405fi
5406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5407 conftest.$ac_objext conftest.beam conftest.$ac_ext
5408fi
5409
5410
5411fi
5412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413
5414fi
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5416$as_echo "$gl_cv_header_working_stdint_h" >&6; }
5417 fi
5418 if test "$gl_cv_header_working_stdint_h" = yes; then
5419 STDINT_H=
5420 else
5421 for ac_header in sys/inttypes.h sys/bitypes.h
5422do :
5423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5424ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5425eval as_val=\$$as_ac_Header
5426 if test "x$as_val" = x""yes; then :
5427 cat >>confdefs.h <<_ACEOF
5428#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5429_ACEOF
5430
5431fi
5432
5433done
5434
5435 if test $ac_cv_header_sys_inttypes_h = yes; then
5436 HAVE_SYS_INTTYPES_H=1
5437 else
5438 HAVE_SYS_INTTYPES_H=0
5439 fi
5440
5441 if test $ac_cv_header_sys_bitypes_h = yes; then
5442 HAVE_SYS_BITYPES_H=1
5443 else
5444 HAVE_SYS_BITYPES_H=0
5445 fi
5446
5447
5448
5449
5450 if test $APPLE_UNIVERSAL_BUILD = 0; then
5451
5452
5453 for gltype in ptrdiff_t size_t ; do
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5455$as_echo_n "checking for bit size of $gltype... " >&6; }
5456if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5457 $as_echo_n "(cached) " >&6
5458else
5459 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5460 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5461 included before <wchar.h>. */
5462 #include <stddef.h>
5463 #include <signal.h>
5464 #if HAVE_WCHAR_H
5465 # include <stdio.h>
5466 # include <time.h>
5467 # include <wchar.h>
5468 #endif
5469
5470#include <limits.h>"; then :
5471
5472else
5473 result=unknown
5474fi
5475
5476 eval gl_cv_bitsizeof_${gltype}=\$result
5477
5478fi
5479eval ac_res=\$gl_cv_bitsizeof_${gltype}
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5481$as_echo "$ac_res" >&6; }
5482 eval result=\$gl_cv_bitsizeof_${gltype}
5483 if test $result = unknown; then
5484 result=0
5485 fi
5486 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5487 cat >>confdefs.h <<_ACEOF
5488#define BITSIZEOF_${GLTYPE} $result
5489_ACEOF
5490
5491 eval BITSIZEOF_${GLTYPE}=\$result
5492 done
5493
5494
5495 fi
5496
5497
5498 for gltype in sig_atomic_t wchar_t wint_t ; do
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5500$as_echo_n "checking for bit size of $gltype... " >&6; }
5501if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5502 $as_echo_n "(cached) " >&6
5503else
5504 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5505 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5506 included before <wchar.h>. */
5507 #include <stddef.h>
5508 #include <signal.h>
5509 #if HAVE_WCHAR_H
5510 # include <stdio.h>
5511 # include <time.h>
5512 # include <wchar.h>
5513 #endif
5514
5515#include <limits.h>"; then :
5516
5517else
5518 result=unknown
5519fi
5520
5521 eval gl_cv_bitsizeof_${gltype}=\$result
5522
5523fi
5524eval ac_res=\$gl_cv_bitsizeof_${gltype}
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5526$as_echo "$ac_res" >&6; }
5527 eval result=\$gl_cv_bitsizeof_${gltype}
5528 if test $result = unknown; then
5529 result=0
5530 fi
5531 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5532 cat >>confdefs.h <<_ACEOF
5533#define BITSIZEOF_${GLTYPE} $result
5534_ACEOF
5535
5536 eval BITSIZEOF_${GLTYPE}=\$result
5537 done
5538
5539
5540
5541
5542 for gltype in sig_atomic_t wchar_t wint_t ; do
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
5544$as_echo_n "checking whether $gltype is signed... " >&6; }
5545if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
5546 $as_echo_n "(cached) " >&6
5547else
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549/* end confdefs.h. */
5550
5551 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5552 included before <wchar.h>. */
5553 #include <stddef.h>
5554 #include <signal.h>
5555 #if HAVE_WCHAR_H
5556 # include <stdio.h>
5557 # include <time.h>
5558 # include <wchar.h>
5559 #endif
5560
5561 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5562int
5563main ()
5564{
5565
5566 ;
5567 return 0;
5568}
5569_ACEOF
5570if ac_fn_c_try_compile "$LINENO"; then :
5571 result=yes
5572else
5573 result=no
5574fi
5575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 eval gl_cv_type_${gltype}_signed=\$result
5577
5578fi
5579eval ac_res=\$gl_cv_type_${gltype}_signed
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5581$as_echo "$ac_res" >&6; }
5582 eval result=\$gl_cv_type_${gltype}_signed
5583 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5584 if test "$result" = yes; then
5585 cat >>confdefs.h <<_ACEOF
5586#define HAVE_SIGNED_${GLTYPE} 1
5587_ACEOF
5588
5589 eval HAVE_SIGNED_${GLTYPE}=1
5590 else
5591 eval HAVE_SIGNED_${GLTYPE}=0
5592 fi
5593 done
5594
5595
5596 gl_cv_type_ptrdiff_t_signed=yes
5597 gl_cv_type_size_t_signed=no
5598 if test $APPLE_UNIVERSAL_BUILD = 0; then
5599
5600
5601 for gltype in ptrdiff_t size_t ; do
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5603$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5604if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5605 $as_echo_n "(cached) " >&6
5606else
5607 eval gl_cv_type_${gltype}_suffix=no
5608 eval result=\$gl_cv_type_${gltype}_signed
5609 if test "$result" = yes; then
5610 glsufu=
5611 else
5612 glsufu=u
5613 fi
5614 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
5615 case $glsuf in
5616 '') gltype1='int';;
5617 l) gltype1='long int';;
5618 ll) gltype1='long long int';;
5619 i64) gltype1='__int64';;
5620 u) gltype1='unsigned int';;
5621 ul) gltype1='unsigned long int';;
5622 ull) gltype1='unsigned long long int';;
5623 ui64)gltype1='unsigned __int64';;
5624 esac
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626/* end confdefs.h. */
5627
5628 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5629 included before <wchar.h>. */
5630 #include <stddef.h>
5631 #include <signal.h>
5632 #if HAVE_WCHAR_H
5633 # include <stdio.h>
5634 # include <time.h>
5635 # include <wchar.h>
5636 #endif
5637
5638 extern $gltype foo;
5639 extern $gltype1 foo;
5640int
5641main ()
5642{
5643
5644 ;
5645 return 0;
5646}
5647_ACEOF
5648if ac_fn_c_try_compile "$LINENO"; then :
5649 eval gl_cv_type_${gltype}_suffix=\$glsuf
5650fi
5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 eval result=\$gl_cv_type_${gltype}_suffix
5653 test "$result" != no && break
5654 done
5655fi
5656eval ac_res=\$gl_cv_type_${gltype}_suffix
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5658$as_echo "$ac_res" >&6; }
5659 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5660 eval result=\$gl_cv_type_${gltype}_suffix
5661 test "$result" = no && result=
5662 eval ${GLTYPE}_SUFFIX=\$result
5663 cat >>confdefs.h <<_ACEOF
5664#define ${GLTYPE}_SUFFIX $result
5665_ACEOF
5666
5667 done
5668
5669
5670 fi
5671
5672
5673 for gltype in sig_atomic_t wchar_t wint_t ; do
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5675$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5676if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5677 $as_echo_n "(cached) " >&6
5678else
5679 eval gl_cv_type_${gltype}_suffix=no
5680 eval result=\$gl_cv_type_${gltype}_signed
5681 if test "$result" = yes; then
5682 glsufu=
5683 else
5684 glsufu=u
5685 fi
5686 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
5687 case $glsuf in
5688 '') gltype1='int';;
5689 l) gltype1='long int';;
5690 ll) gltype1='long long int';;
5691 i64) gltype1='__int64';;
5692 u) gltype1='unsigned int';;
5693 ul) gltype1='unsigned long int';;
5694 ull) gltype1='unsigned long long int';;
5695 ui64)gltype1='unsigned __int64';;
5696 esac
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698/* end confdefs.h. */
5699
5700 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5701 included before <wchar.h>. */
5702 #include <stddef.h>
5703 #include <signal.h>
5704 #if HAVE_WCHAR_H
5705 # include <stdio.h>
5706 # include <time.h>
5707 # include <wchar.h>
5708 #endif
5709
5710 extern $gltype foo;
5711 extern $gltype1 foo;
5712int
5713main ()
5714{
5715
5716 ;
5717 return 0;
5718}
5719_ACEOF
5720if ac_fn_c_try_compile "$LINENO"; then :
5721 eval gl_cv_type_${gltype}_suffix=\$glsuf
5722fi
5723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 eval result=\$gl_cv_type_${gltype}_suffix
5725 test "$result" != no && break
5726 done
5727fi
5728eval ac_res=\$gl_cv_type_${gltype}_suffix
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5730$as_echo "$ac_res" >&6; }
5731 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5732 eval result=\$gl_cv_type_${gltype}_suffix
5733 test "$result" = no && result=
5734 eval ${GLTYPE}_SUFFIX=\$result
5735 cat >>confdefs.h <<_ACEOF
5736#define ${GLTYPE}_SUFFIX $result
5737_ACEOF
5738
5739 done
5740
5741
5742
5743 if test $BITSIZEOF_WINT_T -lt 32; then
5744 BITSIZEOF_WINT_T=32
5745 fi
5746
5747 STDINT_H=stdint.h
5748 fi
5749
5750 if test -n "$STDINT_H"; then
5751 GL_GENERATE_STDINT_H_TRUE=
5752 GL_GENERATE_STDINT_H_FALSE='#'
5753else
5754 GL_GENERATE_STDINT_H_TRUE='#'
5755 GL_GENERATE_STDINT_H_FALSE=
5756fi
5757
5758
5759
5760
5761
5762
5763
5764
5765 GNULIB_IMAXABS=0;
5766 GNULIB_IMAXDIV=0;
5767 GNULIB_STRTOIMAX=0;
5768 GNULIB_STRTOUMAX=0;
5769 HAVE_DECL_IMAXABS=1;
5770 HAVE_DECL_IMAXDIV=1;
5771 HAVE_DECL_STRTOIMAX=1;
5772 HAVE_DECL_STRTOUMAX=1;
5773 REPLACE_STRTOIMAX=0;
5774 INT32_MAX_LT_INTMAX_MAX=1;
5775 INT64_MAX_EQ_LONG_MAX='defined _LP64';
5776 PRI_MACROS_BROKEN=0;
5777 PRIPTR_PREFIX=__PRIPTR_PREFIX;
5778 UINT32_MAX_LT_UINTMAX_MAX=1;
5779 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
5780
5781
5782
5783
5784 :
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798 :
5799
5800
5801
5802
5803
5804
5805
5806
5807 if test $gl_cv_have_include_next = yes; then
5808 gl_cv_next_inttypes_h='<'inttypes.h'>'
5809 else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
5811$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
5812if test "${gl_cv_next_inttypes_h+set}" = set; then :
5813 $as_echo_n "(cached) " >&6
5814else
5815
5816 if test $ac_cv_header_inttypes_h = yes; then
5817
5818
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820/* end confdefs.h. */
5821#include <inttypes.h>
5822
5823_ACEOF
5824 case "$host_os" in
5825 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5826 *) gl_absname_cpp="$ac_cpp" ;;
5827 esac
5828
5829 case "$host_os" in
5830 mingw*)
5831 gl_dirsep_regex='[/\\]'
5832 ;;
5833 *)
5834 gl_dirsep_regex='\/'
5835 ;;
5836 esac
5837 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5838
5839 gl_header_literal_regex=`echo 'inttypes.h' \
5840 | sed -e "$gl_make_literal_regex_sed"`
5841 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5842 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5843 s|^/[^/]|//&|
5844 p
5845 q
5846 }'
5847 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5848 sed -n "$gl_absolute_header_sed"`'"'
5849 else
5850 gl_cv_next_inttypes_h='<'inttypes.h'>'
5851 fi
5852
5853
5854fi
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
5856$as_echo "$gl_cv_next_inttypes_h" >&6; }
5857 fi
5858 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
5859
5860 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5861 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5862 gl_next_as_first_directive='<'inttypes.h'>'
5863 else
5864 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5865 gl_next_as_first_directive=$gl_cv_next_inttypes_h
5866 fi
5867 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
5868
5869
5870
5871
5872
5873
5874
5875
5876 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
5877 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5879$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5880if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5881 $as_echo_n "(cached) " >&6
5882else
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884/* end confdefs.h. */
5885#include <inttypes.h>
5886
5887int
5888main ()
5889{
5890#undef $gl_func
5891 (void) $gl_func;
5892 ;
5893 return 0;
5894}
5895_ACEOF
5896if ac_fn_c_try_compile "$LINENO"; then :
5897 eval "$as_gl_Symbol=yes"
5898else
5899 eval "$as_gl_Symbol=no"
5900fi
5901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5902fi
5903eval ac_res=\$$as_gl_Symbol
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5905$as_echo "$ac_res" >&6; }
5906 eval as_val=\$$as_gl_Symbol
5907 if test "x$as_val" = x""yes; then :
5908 cat >>confdefs.h <<_ACEOF
5909#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5910_ACEOF
5911
5912 eval ac_cv_have_decl_$gl_func=yes
5913fi
5914 done
5915
5916
5917
5918 for ac_header in inttypes.h
5919do :
5920 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5921if test "x$ac_cv_header_inttypes_h" = x""yes; then :
5922 cat >>confdefs.h <<_ACEOF
5923#define HAVE_INTTYPES_H 1
5924_ACEOF
5925
5926fi
5927
5928done
5929
5930 if test $ac_cv_header_inttypes_h = yes; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
5932$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
5933if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5935else
5936
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938/* end confdefs.h. */
5939
5940#include <inttypes.h>
5941#ifdef PRId32
5942char *p = PRId32;
5943#endif
5944
5945int
5946main ()
5947{
5948
5949 ;
5950 return 0;
5951}
5952_ACEOF
5953if ac_fn_c_try_compile "$LINENO"; then :
5954 gt_cv_inttypes_pri_broken=no
5955else
5956 gt_cv_inttypes_pri_broken=yes
5957fi
5958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959
5960fi
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
5962$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
5963 fi
5964 if test "$gt_cv_inttypes_pri_broken" = yes; then
5965
5966cat >>confdefs.h <<_ACEOF
5967#define PRI_MACROS_BROKEN 1
5968_ACEOF
5969
5970 PRI_MACROS_BROKEN=1
5971 else
5972 PRI_MACROS_BROKEN=0
5973 fi
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985 for ac_func in $gl_func_list
5986do :
5987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5988ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5989eval as_val=\$$as_ac_var
5990 if test "x$as_val" = x""yes; then :
5991 cat >>confdefs.h <<_ACEOF
5992#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5993_ACEOF
5994
5995fi
5996done
5997
5998
5999
6000
6001
6002
6003 GNULIB_FFSL=0;
6004 GNULIB_FFSLL=0;
6005 GNULIB_MEMCHR=0;
6006 GNULIB_MEMMEM=0;
6007 GNULIB_MEMPCPY=0;
6008 GNULIB_MEMRCHR=0;
6009 GNULIB_RAWMEMCHR=0;
6010 GNULIB_STPCPY=0;
6011 GNULIB_STPNCPY=0;
6012 GNULIB_STRCHRNUL=0;
6013 GNULIB_STRDUP=0;
6014 GNULIB_STRNCAT=0;
6015 GNULIB_STRNDUP=0;
6016 GNULIB_STRNLEN=0;
6017 GNULIB_STRPBRK=0;
6018 GNULIB_STRSEP=0;
6019 GNULIB_STRSTR=0;
6020 GNULIB_STRCASESTR=0;
6021 GNULIB_STRTOK_R=0;
6022 GNULIB_MBSLEN=0;
6023 GNULIB_MBSNLEN=0;
6024 GNULIB_MBSCHR=0;
6025 GNULIB_MBSRCHR=0;
6026 GNULIB_MBSSTR=0;
6027 GNULIB_MBSCASECMP=0;
6028 GNULIB_MBSNCASECMP=0;
6029 GNULIB_MBSPCASECMP=0;
6030 GNULIB_MBSCASESTR=0;
6031 GNULIB_MBSCSPN=0;
6032 GNULIB_MBSPBRK=0;
6033 GNULIB_MBSSPN=0;
6034 GNULIB_MBSSEP=0;
6035 GNULIB_MBSTOK_R=0;
6036 GNULIB_STRERROR=0;
6037 GNULIB_STRERROR_R=0;
6038 GNULIB_STRSIGNAL=0;
6039 GNULIB_STRVERSCMP=0;
6040 HAVE_MBSLEN=0;
6041 HAVE_FFSL=1;
6042 HAVE_FFSLL=1;
6043 HAVE_MEMCHR=1;
6044 HAVE_DECL_MEMMEM=1;
6045 HAVE_MEMPCPY=1;
6046 HAVE_DECL_MEMRCHR=1;
6047 HAVE_RAWMEMCHR=1;
6048 HAVE_STPCPY=1;
6049 HAVE_STPNCPY=1;
6050 HAVE_STRCHRNUL=1;
6051 HAVE_DECL_STRDUP=1;
6052 HAVE_DECL_STRNDUP=1;
6053 HAVE_DECL_STRNLEN=1;
6054 HAVE_STRPBRK=1;
6055 HAVE_STRSEP=1;
6056 HAVE_STRCASESTR=1;
6057 HAVE_DECL_STRTOK_R=1;
6058 HAVE_DECL_STRERROR_R=1;
6059 HAVE_DECL_STRSIGNAL=1;
6060 HAVE_STRVERSCMP=1;
6061 REPLACE_MEMCHR=0;
6062 REPLACE_MEMMEM=0;
6063 REPLACE_STPNCPY=0;
6064 REPLACE_STRDUP=0;
6065 REPLACE_STRSTR=0;
6066 REPLACE_STRCASESTR=0;
6067 REPLACE_STRCHRNUL=0;
6068 REPLACE_STRERROR=0;
6069 REPLACE_STRERROR_R=0;
6070 REPLACE_STRNCAT=0;
6071 REPLACE_STRNDUP=0;
6072 REPLACE_STRNLEN=0;
6073 REPLACE_STRSIGNAL=0;
6074 REPLACE_STRTOK_R=0;
6075 UNDEFINE_STRTOK_R=0;
6076
6077
6078
6079
6080
6081 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
6082 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
6083 # irrelevant for anonymous mappings.
6084 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
6085if test "x$ac_cv_func_mmap" = x""yes; then :
6086 gl_have_mmap=yes
6087else
6088 gl_have_mmap=no
6089fi
6090
6091
6092 # Try to allow MAP_ANONYMOUS.
6093 gl_have_mmap_anonymous=no
6094 if test $gl_have_mmap = yes; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
6096$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098/* end confdefs.h. */
6099
6100#include <sys/mman.h>
6101#ifdef MAP_ANONYMOUS
40a73391 6102 I cannot identify this map
c971b7fa
PA
6103#endif
6104
6105_ACEOF
6106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40a73391 6107 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
c971b7fa
PA
6108 gl_have_mmap_anonymous=yes
6109fi
6110rm -f conftest*
6111
6112 if test $gl_have_mmap_anonymous != yes; then
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114/* end confdefs.h. */
6115
6116#include <sys/mman.h>
6117#ifdef MAP_ANON
40a73391 6118 I cannot identify this map
c971b7fa
PA
6119#endif
6120
6121_ACEOF
6122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40a73391 6123 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
c971b7fa
PA
6124
6125$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
6126
6127 gl_have_mmap_anonymous=yes
6128fi
6129rm -f conftest*
6130
6131 fi
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
6133$as_echo "$gl_have_mmap_anonymous" >&6; }
6134 if test $gl_have_mmap_anonymous = yes; then
6135
6136$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
6137
6138 fi
6139 fi
6140
6141
6142 :
6143
6144
6145
6146
6147
6148
6149 :
6150
6151
6152
6153
6154
6155
6156
6157
6158 if test $HAVE_MEMCHR = 1; then
6159 # Detect platform-specific bugs in some versions of glibc:
6160 # memchr should not dereference anything with length 0
6161 # http://bugzilla.redhat.com/499689
6162 # memchr should not dereference overestimated length after a match
6163 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
6164 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
6165 # Assume that memchr works on platforms that lack mprotect.
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
6167$as_echo_n "checking whether memchr works... " >&6; }
6168if test "${gl_cv_func_memchr_works+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
6170else
6171 if test "$cross_compiling" = yes; then :
6172 gl_cv_func_memchr_works="guessing no"
6173else
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175/* end confdefs.h. */
6176
6177#include <string.h>
6178#if HAVE_SYS_MMAN_H
6179# include <fcntl.h>
6180# include <unistd.h>
6181# include <sys/types.h>
6182# include <sys/mman.h>
6183# ifndef MAP_FILE
6184# define MAP_FILE 0
6185# endif
6186#endif
6187
6188int
6189main ()
6190{
6191
6192 int result = 0;
6193 char *fence = NULL;
6194#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
6195# if HAVE_MAP_ANONYMOUS
6196 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
6197 const int fd = -1;
6198# else /* !HAVE_MAP_ANONYMOUS */
6199 const int flags = MAP_FILE | MAP_PRIVATE;
6200 int fd = open ("/dev/zero", O_RDONLY, 0666);
6201 if (fd >= 0)
6202# endif
6203 {
6204 int pagesize = getpagesize ();
6205 char *two_pages =
6206 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
6207 flags, fd, 0);
6208 if (two_pages != (char *)(-1)
6209 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
6210 fence = two_pages + pagesize;
6211 }
6212#endif
6213 if (fence)
6214 {
6215 if (memchr (fence, 0, 0))
6216 result |= 1;
6217 strcpy (fence - 9, "12345678");
6218 if (memchr (fence - 9, 0, 79) != fence - 1)
6219 result |= 2;
6220 if (memchr (fence - 1, 0, 3) != fence - 1)
6221 result |= 4;
6222 }
6223 return result;
6224
6225 ;
6226 return 0;
6227}
6228_ACEOF
6229if ac_fn_c_try_run "$LINENO"; then :
6230 gl_cv_func_memchr_works=yes
6231else
6232 gl_cv_func_memchr_works=no
6233fi
6234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6235 conftest.$ac_objext conftest.beam conftest.$ac_ext
6236fi
6237
6238fi
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
6240$as_echo "$gl_cv_func_memchr_works" >&6; }
6241 if test "$gl_cv_func_memchr_works" != yes; then
6242 REPLACE_MEMCHR=1
6243 fi
6244 fi
6245
6246
6247 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
6248if test "x$ac_cv_have_decl_memmem" = x""yes; then :
6249 ac_have_decl=1
6250else
6251 ac_have_decl=0
6252fi
6253
6254cat >>confdefs.h <<_ACEOF
6255#define HAVE_DECL_MEMMEM $ac_have_decl
6256_ACEOF
6257
6258
6259
6260
6261
6262
6263 for ac_func in memmem
6264do :
6265 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6266if test "x$ac_cv_func_memmem" = x""yes; then :
6267 cat >>confdefs.h <<_ACEOF
6268#define HAVE_MEMMEM 1
6269_ACEOF
6270
6271fi
6272done
6273
6274 if test $ac_cv_func_memmem = yes; then
6275 HAVE_MEMMEM=1
6276 else
6277 HAVE_MEMMEM=0
6278 fi
6279
6280 :
6281
6282
6283
6284
6285
6286 if test $ac_cv_have_decl_memmem = no; then
6287 HAVE_DECL_MEMMEM=0
6288 else
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
6290$as_echo_n "checking whether memmem works... " >&6; }
6291if test "${gl_cv_func_memmem_works_always+set}" = set; then :
6292 $as_echo_n "(cached) " >&6
6293else
6294 if test "$cross_compiling" = yes; then :
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296/* end confdefs.h. */
6297
6298#ifdef __GNU_LIBRARY__
6299 #include <features.h>
6300 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
6301 || __GLIBC_MINOR__ > 12)) \
6302 || (__GLIBC__ > 2)) \
6303 || defined __UCLIBC__
6304 Lucky user
6305 #endif
6306#elif defined __CYGWIN__
6307 #include <cygwin/version.h>
6308 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
6309 Lucky user
6310 #endif
6311#else
6312 Lucky user
6313#endif
6314
6315_ACEOF
6316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6317 $EGREP "Lucky user" >/dev/null 2>&1; then :
40a73391 6318 gl_cv_func_memmem_works_always="guessing yes"
c971b7fa
PA
6319else
6320 gl_cv_func_memmem_works_always="guessing no"
6321fi
6322rm -f conftest*
6323
6324
6325else
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327/* end confdefs.h. */
6328
6329#include <string.h> /* for memmem */
6330#define P "_EF_BF_BD"
6331#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
6332#define NEEDLE P P P P P
6333
6334int
6335main ()
6336{
6337
6338 int result = 0;
6339 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
6340 result |= 1;
6341 /* Check for empty needle behavior. */
6342 {
6343 const char *haystack = "AAA";
6344 if (memmem (haystack, 3, NULL, 0) != haystack)
6345 result |= 2;
6346 }
6347 return result;
6348
6349 ;
6350 return 0;
6351}
6352_ACEOF
6353if ac_fn_c_try_run "$LINENO"; then :
6354 gl_cv_func_memmem_works_always=yes
6355else
6356 gl_cv_func_memmem_works_always=no
6357fi
6358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6359 conftest.$ac_objext conftest.beam conftest.$ac_ext
6360fi
6361
6362
6363fi
6364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
6365$as_echo "$gl_cv_func_memmem_works_always" >&6; }
40a73391
JK
6366 case "$gl_cv_func_memmem_works_always" in
6367 *yes) ;;
6368 *)
6369 REPLACE_MEMMEM=1
6370 ;;
6371 esac
c971b7fa
PA
6372 fi
6373 :
6374
6375
6376 REPLACE_NULL=0;
6377 HAVE_WCHAR_T=1;
6378
6379
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6381$as_echo_n "checking for wchar_t... " >&6; }
6382if test "${gt_cv_c_wchar_t+set}" = set; then :
6383 $as_echo_n "(cached) " >&6
6384else
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386/* end confdefs.h. */
6387#include <stddef.h>
6388 wchar_t foo = (wchar_t)'\0';
6389int
6390main ()
6391{
6392
6393 ;
6394 return 0;
6395}
6396_ACEOF
6397if ac_fn_c_try_compile "$LINENO"; then :
6398 gt_cv_c_wchar_t=yes
6399else
6400 gt_cv_c_wchar_t=no
6401fi
6402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403fi
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6405$as_echo "$gt_cv_c_wchar_t" >&6; }
6406 if test $gt_cv_c_wchar_t = yes; then
6407
6408$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6409
6410 fi
6411
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6413$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6414if test "${ac_cv_c_restrict+set}" = set; then :
6415 $as_echo_n "(cached) " >&6
6416else
6417 ac_cv_c_restrict=no
6418 # The order here caters to the fact that C++ does not require restrict.
6419 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421/* end confdefs.h. */
6422typedef int * int_ptr;
6423 int foo (int_ptr $ac_kw ip) {
6424 return ip[0];
6425 }
6426int
6427main ()
6428{
6429int s[1];
6430 int * $ac_kw t = s;
6431 t[0] = 0;
6432 return foo(t)
6433 ;
6434 return 0;
6435}
6436_ACEOF
6437if ac_fn_c_try_compile "$LINENO"; then :
6438 ac_cv_c_restrict=$ac_kw
6439fi
6440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441 test "$ac_cv_c_restrict" != no && break
6442 done
6443
6444fi
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6446$as_echo "$ac_cv_c_restrict" >&6; }
6447
6448 case $ac_cv_c_restrict in
6449 restrict) ;;
6450 no) $as_echo "#define restrict /**/" >>confdefs.h
6451 ;;
6452 *) cat >>confdefs.h <<_ACEOF
6453#define restrict $ac_cv_c_restrict
6454_ACEOF
6455 ;;
6456 esac
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469 if test $gl_cv_have_include_next = yes; then
6470 gl_cv_next_string_h='<'string.h'>'
6471 else
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
6473$as_echo_n "checking absolute name of <string.h>... " >&6; }
6474if test "${gl_cv_next_string_h+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
6476else
6477
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479/* end confdefs.h. */
6480#include <string.h>
6481
6482_ACEOF
6483 case "$host_os" in
6484 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6485 *) gl_absname_cpp="$ac_cpp" ;;
6486 esac
6487
6488 case "$host_os" in
6489 mingw*)
6490 gl_dirsep_regex='[/\\]'
6491 ;;
6492 *)
6493 gl_dirsep_regex='\/'
6494 ;;
6495 esac
6496 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6497
6498 gl_header_literal_regex=`echo 'string.h' \
6499 | sed -e "$gl_make_literal_regex_sed"`
6500 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6501 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6502 s|^/[^/]|//&|
6503 p
6504 q
6505 }'
6506 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6507 sed -n "$gl_absolute_header_sed"`'"'
6508
6509
6510fi
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
6512$as_echo "$gl_cv_next_string_h" >&6; }
6513 fi
6514 NEXT_STRING_H=$gl_cv_next_string_h
6515
6516 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6517 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6518 gl_next_as_first_directive='<'string.h'>'
6519 else
6520 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6521 gl_next_as_first_directive=$gl_cv_next_string_h
6522 fi
6523 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
6524
6525
6526
6527
6528
6529
6530 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
6531 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6533$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6534if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
6535 $as_echo_n "(cached) " >&6
6536else
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h. */
6539#include <string.h>
6540
6541int
6542main ()
6543{
6544#undef $gl_func
6545 (void) $gl_func;
6546 ;
6547 return 0;
6548}
6549_ACEOF
6550if ac_fn_c_try_compile "$LINENO"; then :
6551 eval "$as_gl_Symbol=yes"
6552else
6553 eval "$as_gl_Symbol=no"
6554fi
6555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556fi
6557eval ac_res=\$$as_gl_Symbol
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6559$as_echo "$ac_res" >&6; }
6560 eval as_val=\$$as_gl_Symbol
6561 if test "x$as_val" = x""yes; then :
6562 cat >>confdefs.h <<_ACEOF
6563#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
6564_ACEOF
6565
6566 eval ac_cv_have_decl_$gl_func=yes
6567fi
6568 done
6569
6570
6571
6572 if false; then
6573 GL_COND_LIBTOOL_TRUE=
6574 GL_COND_LIBTOOL_FALSE='#'
6575else
6576 GL_COND_LIBTOOL_TRUE='#'
6577 GL_COND_LIBTOOL_FALSE=
6578fi
6579
6580 gl_cond_libtool=false
6581 gl_libdeps=
6582 gl_ltlibdeps=
6583 gl_m4_base='import/m4'
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593 gl_source_base='import'
6594
6595
6596
6597
6598
6599 PRIPTR_PREFIX=
6600 if test -n "$STDINT_H"; then
6601 PRIPTR_PREFIX='"l"'
6602 else
6603 for glpfx in '' l ll I64; do
6604 case $glpfx in
6605 '') gltype1='int';;
6606 l) gltype1='long int';;
6607 ll) gltype1='long long int';;
6608 I64) gltype1='__int64';;
6609 esac
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611/* end confdefs.h. */
6612#include <stdint.h>
6613 extern intptr_t foo;
6614 extern $gltype1 foo;
6615int
6616main ()
6617{
6618
6619 ;
6620 return 0;
6621}
6622_ACEOF
6623if ac_fn_c_try_compile "$LINENO"; then :
6624 PRIPTR_PREFIX='"'$glpfx'"'
6625fi
6626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 test -n "$PRIPTR_PREFIX" && break
6628 done
6629 fi
6630
6631
6632
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
6634$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
6635if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637else
6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639/* end confdefs.h. */
6640/* Work also in C++ mode. */
6641 #define __STDC_LIMIT_MACROS 1
6642
6643 /* Work if build is not clean. */
6644 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
6645
6646 #include <limits.h>
6647 #if HAVE_STDINT_H
6648 #include <stdint.h>
6649 #endif
6650
6651 #if defined INT32_MAX && defined INTMAX_MAX
6652 #define CONDITION (INT32_MAX < INTMAX_MAX)
6653 #elif HAVE_LONG_LONG_INT
6654 #define CONDITION (sizeof (int) < sizeof (long long int))
6655 #else
6656 #define CONDITION 0
6657 #endif
6658 int test[CONDITION ? 1 : -1];
6659int
6660main ()
6661{
6662
6663 ;
6664 return 0;
6665}
6666_ACEOF
6667if ac_fn_c_try_compile "$LINENO"; then :
6668 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
6669else
6670 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
6671fi
6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673fi
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
6675$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
6676 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
6677 INT32_MAX_LT_INTMAX_MAX=1;
6678 else
6679 INT32_MAX_LT_INTMAX_MAX=0;
6680 fi
6681
6682
6683 if test $APPLE_UNIVERSAL_BUILD = 0; then
6684
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
6686$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
6687if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
6688 $as_echo_n "(cached) " >&6
6689else
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h. */
6692/* Work also in C++ mode. */
6693 #define __STDC_LIMIT_MACROS 1
6694
6695 /* Work if build is not clean. */
6696 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
6697
6698 #include <limits.h>
6699 #if HAVE_STDINT_H
6700 #include <stdint.h>
6701 #endif
6702
6703 #if defined INT64_MAX
6704 #define CONDITION (INT64_MAX == LONG_MAX)
6705 #elif HAVE_LONG_LONG_INT
6706 #define CONDITION (sizeof (long long int) == sizeof (long int))
6707 #else
6708 #define CONDITION 0
6709 #endif
6710 int test[CONDITION ? 1 : -1];
6711int
6712main ()
6713{
6714
6715 ;
6716 return 0;
6717}
6718_ACEOF
6719if ac_fn_c_try_compile "$LINENO"; then :
6720 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
6721else
6722 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
6723fi
6724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725fi
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
6727$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
6728 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
6729 INT64_MAX_EQ_LONG_MAX=1;
6730 else
6731 INT64_MAX_EQ_LONG_MAX=0;
6732 fi
6733
6734
6735 else
6736 INT64_MAX_EQ_LONG_MAX=-1
6737 fi
6738
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
6740$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
6741if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
6742 $as_echo_n "(cached) " >&6
6743else
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745/* end confdefs.h. */
6746/* Work also in C++ mode. */
6747 #define __STDC_LIMIT_MACROS 1
6748
6749 /* Work if build is not clean. */
6750 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
6751
6752 #include <limits.h>
6753 #if HAVE_STDINT_H
6754 #include <stdint.h>
6755 #endif
6756
6757 #if defined UINT32_MAX && defined UINTMAX_MAX
6758 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
6759 #elif HAVE_LONG_LONG_INT
6760 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
6761 #else
6762 #define CONDITION 0
6763 #endif
6764 int test[CONDITION ? 1 : -1];
6765int
6766main ()
6767{
6768
6769 ;
6770 return 0;
6771}
6772_ACEOF
6773if ac_fn_c_try_compile "$LINENO"; then :
6774 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
6775else
6776 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
6777fi
6778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779fi
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
6781$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
6782 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
6783 UINT32_MAX_LT_UINTMAX_MAX=1;
6784 else
6785 UINT32_MAX_LT_UINTMAX_MAX=0;
6786 fi
6787
6788
6789 if test $APPLE_UNIVERSAL_BUILD = 0; then
6790
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
6792$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
6793if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
6794 $as_echo_n "(cached) " >&6
6795else
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797/* end confdefs.h. */
6798/* Work also in C++ mode. */
6799 #define __STDC_LIMIT_MACROS 1
6800
6801 /* Work if build is not clean. */
6802 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
6803
6804 #include <limits.h>
6805 #if HAVE_STDINT_H
6806 #include <stdint.h>
6807 #endif
6808
6809 #if defined UINT64_MAX
6810 #define CONDITION (UINT64_MAX == ULONG_MAX)
6811 #elif HAVE_LONG_LONG_INT
6812 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
6813 #else
6814 #define CONDITION 0
6815 #endif
6816 int test[CONDITION ? 1 : -1];
6817int
6818main ()
6819{
6820
6821 ;
6822 return 0;
6823}
6824_ACEOF
6825if ac_fn_c_try_compile "$LINENO"; then :
6826 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
6827else
6828 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
6829fi
6830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6831fi
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
6833$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
6834 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
6835 UINT64_MAX_EQ_ULONG_MAX=1;
6836 else
6837 UINT64_MAX_EQ_ULONG_MAX=0;
6838 fi
6839
6840
6841 else
6842 UINT64_MAX_EQ_ULONG_MAX=-1
6843 fi
6844
6845
6846
6847
6848if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
6849
6850
6851
6852
6853
6854
6855
6856
6857 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
6858
6859
6860 for ac_header in bp-sym.h
6861do :
6862 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
6863if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
6864 cat >>confdefs.h <<_ACEOF
6865#define HAVE_BP_SYM_H 1
6866_ACEOF
6867
6868fi
6869
6870done
6871
6872
6873fi
6874
6875
6876
6877
6878
6879 GNULIB_MEMCHR=1
6880
6881
6882
6883
6884
6885$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
6886
6887
6888
6889
6890
6891 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6893$as_echo_n "checking whether memmem works in linear time... " >&6; }
6894if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
6896else
6897 if test "$cross_compiling" = yes; then :
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899/* end confdefs.h. */
6900
6901#include <features.h>
6902#ifdef __GNU_LIBRARY__
6903 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
6904 && !defined __UCLIBC__
6905 Lucky user
6906 #endif
6907#endif
6908#ifdef __CYGWIN__
6909 #include <cygwin/version.h>
6910 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
6911 Lucky user
6912 #endif
6913#endif
6914
6915_ACEOF
6916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6917 $EGREP "Lucky user" >/dev/null 2>&1; then :
40a73391 6918 gl_cv_func_memmem_works_fast="guessing yes"
c971b7fa
PA
6919else
6920 gl_cv_func_memmem_works_fast="guessing no"
6921fi
6922rm -f conftest*
6923
6924
6925else
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927/* end confdefs.h. */
6928
6929#include <signal.h> /* for signal */
6930#include <string.h> /* for memmem */
6931#include <stdlib.h> /* for malloc */
6932#include <unistd.h> /* for alarm */
6933static void quit (int sig) { exit (sig + 128); }
6934
6935int
6936main ()
6937{
6938
6939 int result = 0;
6940 size_t m = 1000000;
6941 char *haystack = (char *) malloc (2 * m + 1);
6942 char *needle = (char *) malloc (m + 1);
6943 /* Failure to compile this test due to missing alarm is okay,
6944 since all such platforms (mingw) also lack memmem. */
6945 signal (SIGALRM, quit);
6946 alarm (5);
6947 /* Check for quadratic performance. */
6948 if (haystack && needle)
6949 {
6950 memset (haystack, 'A', 2 * m);
6951 haystack[2 * m] = 'B';
6952 memset (needle, 'A', m);
6953 needle[m] = 'B';
6954 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
6955 result |= 1;
6956 }
6957 return result;
6958
6959 ;
6960 return 0;
6961}
6962_ACEOF
6963if ac_fn_c_try_run "$LINENO"; then :
6964 gl_cv_func_memmem_works_fast=yes
6965else
6966 gl_cv_func_memmem_works_fast=no
6967fi
6968rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6969 conftest.$ac_objext conftest.beam conftest.$ac_ext
6970fi
6971
6972
6973fi
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
6975$as_echo "$gl_cv_func_memmem_works_fast" >&6; }
40a73391
JK
6976 case "$gl_cv_func_memmem_works_fast" in
6977 *yes) ;;
6978 *)
6979 REPLACE_MEMMEM=1
6980 ;;
6981 esac
c971b7fa
PA
6982 fi
6983
6984if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
6985
6986
6987
6988
6989
6990
6991
6992
6993 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6994
6995fi
6996
6997
6998
6999
7000 for ac_func in memmem
7001do :
7002 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
7003if test "x$ac_cv_func_memmem" = x""yes; then :
7004 cat >>confdefs.h <<_ACEOF
7005#define HAVE_MEMMEM 1
7006_ACEOF
7007
7008fi
7009done
7010
7011 if test $ac_cv_func_memmem = yes; then
7012 HAVE_MEMMEM=1
7013 else
7014 HAVE_MEMMEM=0
7015 fi
7016
7017 :
7018
7019
7020
7021
7022
7023 if test $ac_cv_have_decl_memmem = no; then
7024 HAVE_DECL_MEMMEM=0
7025 else
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
7027$as_echo_n "checking whether memmem works... " >&6; }
7028if test "${gl_cv_func_memmem_works_always+set}" = set; then :
7029 $as_echo_n "(cached) " >&6
7030else
7031 if test "$cross_compiling" = yes; then :
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033/* end confdefs.h. */
7034
7035#ifdef __GNU_LIBRARY__
7036 #include <features.h>
7037 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
7038 || __GLIBC_MINOR__ > 12)) \
7039 || (__GLIBC__ > 2)) \
7040 || defined __UCLIBC__
7041 Lucky user
7042 #endif
7043#elif defined __CYGWIN__
7044 #include <cygwin/version.h>
7045 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
7046 Lucky user
7047 #endif
7048#else
7049 Lucky user
7050#endif
7051
7052_ACEOF
7053if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7054 $EGREP "Lucky user" >/dev/null 2>&1; then :
40a73391 7055 gl_cv_func_memmem_works_always="guessing yes"
c971b7fa
PA
7056else
7057 gl_cv_func_memmem_works_always="guessing no"
7058fi
7059rm -f conftest*
7060
7061
7062else
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064/* end confdefs.h. */
7065
7066#include <string.h> /* for memmem */
7067#define P "_EF_BF_BD"
7068#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
7069#define NEEDLE P P P P P
7070
7071int
7072main ()
7073{
7074
7075 int result = 0;
7076 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
7077 result |= 1;
7078 /* Check for empty needle behavior. */
7079 {
7080 const char *haystack = "AAA";
7081 if (memmem (haystack, 3, NULL, 0) != haystack)
7082 result |= 2;
7083 }
7084 return result;
7085
7086 ;
7087 return 0;
7088}
7089_ACEOF
7090if ac_fn_c_try_run "$LINENO"; then :
7091 gl_cv_func_memmem_works_always=yes
7092else
7093 gl_cv_func_memmem_works_always=no
7094fi
7095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7096 conftest.$ac_objext conftest.beam conftest.$ac_ext
7097fi
7098
7099
7100fi
7101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
7102$as_echo "$gl_cv_func_memmem_works_always" >&6; }
40a73391
JK
7103 case "$gl_cv_func_memmem_works_always" in
7104 *yes) ;;
7105 *)
7106 REPLACE_MEMMEM=1
7107 ;;
7108 esac
c971b7fa
PA
7109 fi
7110 :
7111
7112if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
7113
7114
7115
7116
7117
7118
7119
7120
7121 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
7122
7123fi
7124
7125
7126
7127
7128
7129 GNULIB_MEMMEM=1
7130
7131
7132
7133
7134
7135$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
7136
7137
7138
7139
7140
7141
7142
7143 STDDEF_H=
7144 if test $gt_cv_c_wchar_t = no; then
7145 HAVE_WCHAR_T=0
7146 STDDEF_H=stddef.h
7147 fi
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
7149$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
7150if test "${gl_cv_decl_null_works+set}" = set; then :
7151 $as_echo_n "(cached) " >&6
7152else
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154/* end confdefs.h. */
7155#include <stddef.h>
7156 int test[2 * (sizeof NULL == sizeof (void *)) -1];
7157
7158int
7159main ()
7160{
7161
7162 ;
7163 return 0;
7164}
7165_ACEOF
7166if ac_fn_c_try_compile "$LINENO"; then :
7167 gl_cv_decl_null_works=yes
7168else
7169 gl_cv_decl_null_works=no
7170fi
7171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172fi
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
7174$as_echo "$gl_cv_decl_null_works" >&6; }
7175 if test $gl_cv_decl_null_works = no; then
7176 REPLACE_NULL=1
7177 STDDEF_H=stddef.h
7178 fi
7179
7180 if test -n "$STDDEF_H"; then
7181 GL_GENERATE_STDDEF_H_TRUE=
7182 GL_GENERATE_STDDEF_H_FALSE='#'
7183else
7184 GL_GENERATE_STDDEF_H_TRUE='#'
7185 GL_GENERATE_STDDEF_H_FALSE=
7186fi
7187
7188 if test -n "$STDDEF_H"; then
7189
7190
7191
7192
7193
7194
7195
7196
7197 if test $gl_cv_have_include_next = yes; then
7198 gl_cv_next_stddef_h='<'stddef.h'>'
7199 else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
7201$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
7202if test "${gl_cv_next_stddef_h+set}" = set; then :
7203 $as_echo_n "(cached) " >&6
7204else
7205
7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207/* end confdefs.h. */
7208#include <stddef.h>
7209
7210_ACEOF
7211 case "$host_os" in
7212 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7213 *) gl_absname_cpp="$ac_cpp" ;;
7214 esac
7215
7216 case "$host_os" in
7217 mingw*)
7218 gl_dirsep_regex='[/\\]'
7219 ;;
7220 *)
7221 gl_dirsep_regex='\/'
7222 ;;
7223 esac
7224 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7225
7226 gl_header_literal_regex=`echo 'stddef.h' \
7227 | sed -e "$gl_make_literal_regex_sed"`
7228 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7229 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7230 s|^/[^/]|//&|
7231 p
7232 q
7233 }'
7234 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7235 sed -n "$gl_absolute_header_sed"`'"'
7236
7237
7238fi
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
7240$as_echo "$gl_cv_next_stddef_h" >&6; }
7241 fi
7242 NEXT_STDDEF_H=$gl_cv_next_stddef_h
7243
7244 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7246 gl_next_as_first_directive='<'stddef.h'>'
7247 else
7248 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7249 gl_next_as_first_directive=$gl_cv_next_stddef_h
7250 fi
7251 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
7252
7253
7254
7255
7256 fi
7257
7258
7259
7260
7261
7262 # End of code from modules
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272 gltests_libdeps=
7273 gltests_ltlibdeps=
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283 gl_source_base='tests'
7284 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
7285
7286 gl_module_indicator_condition=$gltests_WITNESS
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296 LIBGNU_LIBDEPS="$gl_libdeps"
7297
7298 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7299
7300
7301
7302# We don't use automake, but gnulib does. This line lets us generate
7303# its Makefile.in.
7304am__api_version='1.11'
7305
7306# Find a good install program. We prefer a C program (faster),
7307# so one script is as good as another. But avoid the broken or
7308# incompatible versions:
7309# SysV /etc/install, /usr/sbin/install
7310# SunOS /usr/etc/install
7311# IRIX /sbin/install
7312# AIX /bin/install
7313# AmigaOS /C/install, which installs bootblocks on floppy discs
7314# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7315# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7316# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7317# OS/2's system install, which has a completely different semantic
7318# ./install, which can be erroneously created by make from ./install.sh.
7319# Reject install programs that cannot install multiple files.
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7321$as_echo_n "checking for a BSD-compatible install... " >&6; }
7322if test -z "$INSTALL"; then
7323if test "${ac_cv_path_install+set}" = set; then :
7324 $as_echo_n "(cached) " >&6
7325else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327for as_dir in $PATH
7328do
7329 IFS=$as_save_IFS
7330 test -z "$as_dir" && as_dir=.
7331 # Account for people who put trailing slashes in PATH elements.
7332case $as_dir/ in #((
7333 ./ | .// | /[cC]/* | \
7334 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7335 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7336 /usr/ucb/* ) ;;
7337 *)
7338 # OSF1 and SCO ODT 3.0 have their own names for install.
7339 # Don't use installbsd from OSF since it installs stuff as root
7340 # by default.
7341 for ac_prog in ginstall scoinst install; do
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7344 if test $ac_prog = install &&
7345 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7346 # AIX install. It has an incompatible calling convention.
7347 :
7348 elif test $ac_prog = install &&
7349 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7350 # program-specific install script used by HP pwplus--don't use.
7351 :
7352 else
7353 rm -rf conftest.one conftest.two conftest.dir
7354 echo one > conftest.one
7355 echo two > conftest.two
7356 mkdir conftest.dir
7357 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7358 test -s conftest.one && test -s conftest.two &&
7359 test -s conftest.dir/conftest.one &&
7360 test -s conftest.dir/conftest.two
7361 then
7362 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7363 break 3
7364 fi
7365 fi
7366 fi
7367 done
7368 done
7369 ;;
7370esac
7371
7372 done
7373IFS=$as_save_IFS
7374
7375rm -rf conftest.one conftest.two conftest.dir
7376
7377fi
7378 if test "${ac_cv_path_install+set}" = set; then
7379 INSTALL=$ac_cv_path_install
7380 else
7381 # As a last resort, use the slow shell script. Don't cache a
7382 # value for INSTALL within a source directory, because that will
7383 # break other packages using the cache if that directory is
7384 # removed, or if the value is a relative name.
7385 INSTALL=$ac_install_sh
7386 fi
7387fi
7388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7389$as_echo "$INSTALL" >&6; }
7390
7391# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7392# It thinks the first close brace ends the variable substitution.
7393test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7394
7395test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7396
7397test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7398
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7400$as_echo_n "checking whether build environment is sane... " >&6; }
7401# Just in case
7402sleep 1
7403echo timestamp > conftest.file
7404# Reject unsafe characters in $srcdir or the absolute working directory
7405# name. Accept space and tab only in the latter.
7406am_lf='
7407'
7408case `pwd` in
7409 *[\\\"\#\$\&\'\`$am_lf]*)
7410 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7411esac
7412case $srcdir in
7413 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
7414 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7415esac
7416
7417# Do `set' in a subshell so we don't clobber the current shell's
7418# arguments. Must try -L first in case configure is actually a
7419# symlink; some systems play weird games with the mod time of symlinks
7420# (eg FreeBSD returns the mod time of the symlink's containing
7421# directory).
7422if (
7423 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7424 if test "$*" = "X"; then
7425 # -L didn't work.
7426 set X `ls -t "$srcdir/configure" conftest.file`
7427 fi
7428 rm -f conftest.file
7429 if test "$*" != "X $srcdir/configure conftest.file" \
7430 && test "$*" != "X conftest.file $srcdir/configure"; then
7431
7432 # If neither matched, then we have a broken ls. This can happen
7433 # if, for instance, CONFIG_SHELL is bash and it inherits a
7434 # broken ls alias from the environment. This has actually
7435 # happened. Such a system could not be considered "sane".
7436 as_fn_error "ls -t appears to fail. Make sure there is not a broken
7437alias in your environment" "$LINENO" 5
7438 fi
7439
7440 test "$2" = conftest.file
7441 )
7442then
7443 # Ok.
7444 :
7445else
7446 as_fn_error "newly created file is older than distributed files!
7447Check your system clock" "$LINENO" 5
7448fi
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7450$as_echo "yes" >&6; }
7451test "$program_prefix" != NONE &&
7452 program_transform_name="s&^&$program_prefix&;$program_transform_name"
7453# Use a double $ so make ignores it.
7454test "$program_suffix" != NONE &&
7455 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7456# Double any \ or $.
7457# By default was `s,x,x', remove it if useless.
7458ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7459program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
7460
7461# expand $ac_aux_dir to an absolute path
7462am_aux_dir=`cd $ac_aux_dir && pwd`
7463
7464if test x"${MISSING+set}" != xset; then
7465 case $am_aux_dir in
7466 *\ * | *\ *)
7467 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7468 *)
7469 MISSING="\${SHELL} $am_aux_dir/missing" ;;
7470 esac
7471fi
7472# Use eval to expand $SHELL
7473if eval "$MISSING --run true"; then
7474 am_missing_run="$MISSING --run "
7475else
7476 am_missing_run=
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7478$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7479fi
7480
7481if test x"${install_sh}" != xset; then
7482 case $am_aux_dir in
7483 *\ * | *\ *)
7484 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7485 *)
7486 install_sh="\${SHELL} $am_aux_dir/install-sh"
7487 esac
7488fi
7489
7490# Installed binaries are usually stripped using `strip' when the user
7491# run `make install-strip'. However `strip' might not be the right
7492# tool to use in cross-compilation environments, therefore Automake
7493# will honor the `STRIP' environment variable to overrule this program.
7494if test "$cross_compiling" != no; then
7495 if test -n "$ac_tool_prefix"; then
7496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7497set dummy ${ac_tool_prefix}strip; ac_word=$2
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499$as_echo_n "checking for $ac_word... " >&6; }
7500if test "${ac_cv_prog_STRIP+set}" = set; then :
7501 $as_echo_n "(cached) " >&6
7502else
7503 if test -n "$STRIP"; then
7504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7505else
7506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 break 2
7516 fi
7517done
7518 done
7519IFS=$as_save_IFS
7520
7521fi
7522fi
7523STRIP=$ac_cv_prog_STRIP
7524if test -n "$STRIP"; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7526$as_echo "$STRIP" >&6; }
7527else
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529$as_echo "no" >&6; }
7530fi
7531
7532
7533fi
7534if test -z "$ac_cv_prog_STRIP"; then
7535 ac_ct_STRIP=$STRIP
7536 # Extract the first word of "strip", so it can be a program name with args.
7537set dummy strip; ac_word=$2
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539$as_echo_n "checking for $ac_word... " >&6; }
7540if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7541 $as_echo_n "(cached) " >&6
7542else
7543 if test -n "$ac_ct_STRIP"; then
7544 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7545else
7546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547for as_dir in $PATH
7548do
7549 IFS=$as_save_IFS
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553 ac_cv_prog_ac_ct_STRIP="strip"
7554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 break 2
7556 fi
7557done
7558 done
7559IFS=$as_save_IFS
7560
7561fi
7562fi
7563ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7564if test -n "$ac_ct_STRIP"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7566$as_echo "$ac_ct_STRIP" >&6; }
7567else
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569$as_echo "no" >&6; }
7570fi
7571
7572 if test "x$ac_ct_STRIP" = x; then
7573 STRIP=":"
7574 else
7575 case $cross_compiling:$ac_tool_warned in
7576yes:)
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7579ac_tool_warned=yes ;;
7580esac
7581 STRIP=$ac_ct_STRIP
7582 fi
7583else
7584 STRIP="$ac_cv_prog_STRIP"
7585fi
7586
7587fi
7588INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7589
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7591$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7592if test -z "$MKDIR_P"; then
7593 if test "${ac_cv_path_mkdir+set}" = set; then :
7594 $as_echo_n "(cached) " >&6
7595else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7598do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_prog in mkdir gmkdir; do
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7604 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7605 'mkdir (GNU coreutils) '* | \
7606 'mkdir (coreutils) '* | \
7607 'mkdir (fileutils) '4.1*)
7608 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7609 break 3;;
7610 esac
7611 done
7612 done
7613 done
7614IFS=$as_save_IFS
7615
7616fi
7617
7618 if test "${ac_cv_path_mkdir+set}" = set; then
7619 MKDIR_P="$ac_cv_path_mkdir -p"
7620 else
7621 # As a last resort, use the slow shell script. Don't cache a
7622 # value for MKDIR_P within a source directory, because that will
7623 # break other packages using the cache if that directory is
7624 # removed, or if the value is a relative name.
7625 test -d ./--version && rmdir ./--version
7626 MKDIR_P="$ac_install_sh -d"
7627 fi
7628fi
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7630$as_echo "$MKDIR_P" >&6; }
7631
7632
7633mkdir_p="$MKDIR_P"
7634case $mkdir_p in
7635 [\\/$]* | ?:[\\/]*) ;;
7636 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7637esac
7638
7639for ac_prog in gawk mawk nawk awk
7640do
7641 # Extract the first word of "$ac_prog", so it can be a program name with args.
7642set dummy $ac_prog; ac_word=$2
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644$as_echo_n "checking for $ac_word... " >&6; }
7645if test "${ac_cv_prog_AWK+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7647else
7648 if test -n "$AWK"; then
7649 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7650else
7651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652for as_dir in $PATH
7653do
7654 IFS=$as_save_IFS
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7658 ac_cv_prog_AWK="$ac_prog"
7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 break 2
7661 fi
7662done
7663 done
7664IFS=$as_save_IFS
7665
7666fi
7667fi
7668AWK=$ac_cv_prog_AWK
7669if test -n "$AWK"; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7671$as_echo "$AWK" >&6; }
7672else
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674$as_echo "no" >&6; }
7675fi
7676
7677
7678 test -n "$AWK" && break
7679done
7680
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7682$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7683set x ${MAKE-make}
7684ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7685if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7686 $as_echo_n "(cached) " >&6
7687else
7688 cat >conftest.make <<\_ACEOF
7689SHELL = /bin/sh
7690all:
7691 @echo '@@@%%%=$(MAKE)=@@@%%%'
7692_ACEOF
7693# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7694case `${MAKE-make} -f conftest.make 2>/dev/null` in
7695 *@@@%%%=?*=@@@%%%*)
7696 eval ac_cv_prog_make_${ac_make}_set=yes;;
7697 *)
7698 eval ac_cv_prog_make_${ac_make}_set=no;;
7699esac
7700rm -f conftest.make
7701fi
7702if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7704$as_echo "yes" >&6; }
7705 SET_MAKE=
7706else
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708$as_echo "no" >&6; }
7709 SET_MAKE="MAKE=${MAKE-make}"
7710fi
7711
7712rm -rf .tst 2>/dev/null
7713mkdir .tst 2>/dev/null
7714if test -d .tst; then
7715 am__leading_dot=.
7716else
7717 am__leading_dot=_
7718fi
7719rmdir .tst 2>/dev/null
7720
7721DEPDIR="${am__leading_dot}deps"
7722
7723ac_config_commands="$ac_config_commands depfiles"
7724
7725
7726am_make=${MAKE-make}
7727cat > confinc << 'END'
7728am__doit:
7729 @echo this is the am__doit target
7730.PHONY: am__doit
7731END
7732# If we don't find an include directive, just comment out the code.
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7734$as_echo_n "checking for style of include used by $am_make... " >&6; }
7735am__include="#"
7736am__quote=
7737_am_result=none
7738# First try GNU make style include.
7739echo "include confinc" > confmf
7740# Ignore all kinds of additional output from `make'.
7741case `$am_make -s -f confmf 2> /dev/null` in #(
7742*the\ am__doit\ target*)
7743 am__include=include
7744 am__quote=
7745 _am_result=GNU
7746 ;;
7747esac
7748# Now try BSD make style include.
7749if test "$am__include" = "#"; then
7750 echo '.include "confinc"' > confmf
7751 case `$am_make -s -f confmf 2> /dev/null` in #(
7752 *the\ am__doit\ target*)
7753 am__include=.include
7754 am__quote="\""
7755 _am_result=BSD
7756 ;;
7757 esac
7758fi
7759
7760
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7762$as_echo "$_am_result" >&6; }
7763rm -f confinc confmf
7764
7765# Check whether --enable-dependency-tracking was given.
7766if test "${enable_dependency_tracking+set}" = set; then :
7767 enableval=$enable_dependency_tracking;
7768fi
7769
7770if test "x$enable_dependency_tracking" != xno; then
7771 am_depcomp="$ac_aux_dir/depcomp"
7772 AMDEPBACKSLASH='\'
7773fi
7774 if test "x$enable_dependency_tracking" != xno; then
7775 AMDEP_TRUE=
7776 AMDEP_FALSE='#'
7777else
7778 AMDEP_TRUE='#'
7779 AMDEP_FALSE=
7780fi
7781
7782
7783if test "`cd $srcdir && pwd`" != "`pwd`"; then
7784 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7785 # is not polluted with repeated "-I."
7786 am__isrc=' -I$(srcdir)'
7787 # test to see if srcdir already configured
7788 if test -f $srcdir/config.status; then
7789 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7790 fi
7791fi
7792
7793# test whether we have cygpath
7794if test -z "$CYGPATH_W"; then
7795 if (cygpath --version) >/dev/null 2>/dev/null; then
7796 CYGPATH_W='cygpath -w'
7797 else
7798 CYGPATH_W=echo
7799 fi
7800fi
7801
7802
7803# Define the identity of the package.
7804 PACKAGE=libgnu
7805 VERSION=UNUSED-VERSION
7806
7807
7808# Some tools Automake needs.
7809
7810ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7811
7812
7813AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7814
7815
7816AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7817
7818
7819AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7820
7821
7822MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7823
7824# We need awk for the "check" target. The system "awk" is bad on
7825# some platforms.
7826# Always define AMTAR for backward compatibility.
7827
7828AMTAR=${AMTAR-"${am_missing_run}tar"}
7829
7830am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7831
7832
7833
7834
7835depcc="$CC" am_compiler_list=
7836
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7838$as_echo_n "checking dependency style of $depcc... " >&6; }
7839if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
7841else
7842 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7843 # We make a subdir and do the tests there. Otherwise we can end up
7844 # making bogus files that we don't know about and never remove. For
7845 # instance it was reported that on HP-UX the gcc test will end up
7846 # making a dummy file named `D' -- because `-MD' means `put the output
7847 # in D'.
7848 mkdir conftest.dir
7849 # Copy depcomp to subdir because otherwise we won't find it if we're
7850 # using a relative directory.
7851 cp "$am_depcomp" conftest.dir
7852 cd conftest.dir
7853 # We will build objects and dependencies in a subdirectory because
7854 # it helps to detect inapplicable dependency modes. For instance
7855 # both Tru64's cc and ICC support -MD to output dependencies as a
7856 # side effect of compilation, but ICC will put the dependencies in
7857 # the current directory while Tru64 will put them in the object
7858 # directory.
7859 mkdir sub
7860
7861 am_cv_CC_dependencies_compiler_type=none
7862 if test "$am_compiler_list" = ""; then
7863 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7864 fi
7865 am__universal=false
7866 case " $depcc " in #(
7867 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7868 esac
7869
7870 for depmode in $am_compiler_list; do
7871 # Setup a source with many dependencies, because some compilers
7872 # like to wrap large dependency lists on column 80 (with \), and
7873 # we should not choose a depcomp mode which is confused by this.
7874 #
7875 # We need to recreate these files for each test, as the compiler may
7876 # overwrite some of them when testing with obscure command lines.
7877 # This happens at least with the AIX C compiler.
7878 : > sub/conftest.c
7879 for i in 1 2 3 4 5 6; do
7880 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7881 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7882 # Solaris 8's {/usr,}/bin/sh.
7883 touch sub/conftst$i.h
7884 done
7885 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7886
7887 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7888 # mode. It turns out that the SunPro C++ compiler does not properly
7889 # handle `-M -o', and we need to detect this. Also, some Intel
7890 # versions had trouble with output in subdirs
7891 am__obj=sub/conftest.${OBJEXT-o}
7892 am__minus_obj="-o $am__obj"
7893 case $depmode in
7894 gcc)
7895 # This depmode causes a compiler race in universal mode.
7896 test "$am__universal" = false || continue
7897 ;;
7898 nosideeffect)
7899 # after this tag, mechanisms are not by side-effect, so they'll
7900 # only be used when explicitly requested
7901 if test "x$enable_dependency_tracking" = xyes; then
7902 continue
7903 else
7904 break
7905 fi
7906 ;;
7907 msvisualcpp | msvcmsys)
7908 # This compiler won't grok `-c -o', but also, the minuso test has
7909 # not run yet. These depmodes are late enough in the game, and
7910 # so weak that their functioning should not be impacted.
7911 am__obj=conftest.${OBJEXT-o}
7912 am__minus_obj=
7913 ;;
7914 none) break ;;
7915 esac
7916 if depmode=$depmode \
7917 source=sub/conftest.c object=$am__obj \
7918 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7919 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7920 >/dev/null 2>conftest.err &&
7921 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7922 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7923 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7924 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7925 # icc doesn't choke on unknown options, it will just issue warnings
7926 # or remarks (even with -Werror). So we grep stderr for any message
7927 # that says an option was ignored or not supported.
7928 # When given -MP, icc 7.0 and 7.1 complain thusly:
7929 # icc: Command line warning: ignoring option '-M'; no argument required
7930 # The diagnosis changed in icc 8.0:
7931 # icc: Command line remark: option '-MP' not supported
7932 if (grep 'ignoring option' conftest.err ||
7933 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7934 am_cv_CC_dependencies_compiler_type=$depmode
7935 break
7936 fi
7937 fi
7938 done
7939
7940 cd ..
7941 rm -rf conftest.dir
7942else
7943 am_cv_CC_dependencies_compiler_type=none
7944fi
7945
7946fi
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7948$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7949CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7950
7951 if
7952 test "x$enable_dependency_tracking" != xno \
7953 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7954 am__fastdepCC_TRUE=
7955 am__fastdepCC_FALSE='#'
7956else
7957 am__fastdepCC_TRUE='#'
7958 am__fastdepCC_FALSE=
7959fi
7960
7961
7962
7963
7964# --------------------- #
7965# Checks for programs. #
7966# --------------------- #
7967
7968
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7970$as_echo_n "checking whether ln -s works... " >&6; }
7971LN_S=$as_ln_s
7972if test "$LN_S" = "ln -s"; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7974$as_echo "yes" >&6; }
7975else
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7977$as_echo "no, using $LN_S" >&6; }
7978fi
7979
7980if test -n "$ac_tool_prefix"; then
7981 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7982set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984$as_echo_n "checking for $ac_word... " >&6; }
7985if test "${ac_cv_prog_RANLIB+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7987else
7988 if test -n "$RANLIB"; then
7989 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7990else
7991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992for as_dir in $PATH
7993do
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7998 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8001 fi
8002done
8003 done
8004IFS=$as_save_IFS
8005
8006fi
8007fi
8008RANLIB=$ac_cv_prog_RANLIB
8009if test -n "$RANLIB"; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8011$as_echo "$RANLIB" >&6; }
8012else
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014$as_echo "no" >&6; }
8015fi
8016
8017
8018fi
8019if test -z "$ac_cv_prog_RANLIB"; then
8020 ac_ct_RANLIB=$RANLIB
8021 # Extract the first word of "ranlib", so it can be a program name with args.
8022set dummy ranlib; ac_word=$2
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024$as_echo_n "checking for $ac_word... " >&6; }
8025if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8027else
8028 if test -n "$ac_ct_RANLIB"; then
8029 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8030else
8031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032for as_dir in $PATH
8033do
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8038 ac_cv_prog_ac_ct_RANLIB="ranlib"
8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 break 2
8041 fi
8042done
8043 done
8044IFS=$as_save_IFS
8045
8046fi
8047fi
8048ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8049if test -n "$ac_ct_RANLIB"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8051$as_echo "$ac_ct_RANLIB" >&6; }
8052else
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054$as_echo "no" >&6; }
8055fi
8056
8057 if test "x$ac_ct_RANLIB" = x; then
8058 RANLIB=":"
8059 else
8060 case $cross_compiling:$ac_tool_warned in
8061yes:)
8062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8064ac_tool_warned=yes ;;
8065esac
8066 RANLIB=$ac_ct_RANLIB
8067 fi
8068else
8069 RANLIB="$ac_cv_prog_RANLIB"
8070fi
8071
8072
8073if test -n "$ac_tool_prefix"; then
8074 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8075set dummy ${ac_tool_prefix}ar; ac_word=$2
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077$as_echo_n "checking for $ac_word... " >&6; }
8078if test "${ac_cv_prog_AR+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8080else
8081 if test -n "$AR"; then
8082 ac_cv_prog_AR="$AR" # Let the user override the test.
8083else
8084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085for as_dir in $PATH
8086do
8087 IFS=$as_save_IFS
8088 test -z "$as_dir" && as_dir=.
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8091 ac_cv_prog_AR="${ac_tool_prefix}ar"
8092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 break 2
8094 fi
8095done
8096 done
8097IFS=$as_save_IFS
8098
8099fi
8100fi
8101AR=$ac_cv_prog_AR
8102if test -n "$AR"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8104$as_echo "$AR" >&6; }
8105else
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107$as_echo "no" >&6; }
8108fi
8109
8110
8111fi
8112if test -z "$ac_cv_prog_AR"; then
8113 ac_ct_AR=$AR
8114 # Extract the first word of "ar", so it can be a program name with args.
8115set dummy ar; ac_word=$2
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117$as_echo_n "checking for $ac_word... " >&6; }
8118if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8119 $as_echo_n "(cached) " >&6
8120else
8121 if test -n "$ac_ct_AR"; then
8122 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8123else
8124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125for as_dir in $PATH
8126do
8127 IFS=$as_save_IFS
8128 test -z "$as_dir" && as_dir=.
8129 for ac_exec_ext in '' $ac_executable_extensions; do
8130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8131 ac_cv_prog_ac_ct_AR="ar"
8132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8133 break 2
8134 fi
8135done
8136 done
8137IFS=$as_save_IFS
8138
8139fi
8140fi
8141ac_ct_AR=$ac_cv_prog_ac_ct_AR
8142if test -n "$ac_ct_AR"; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8144$as_echo "$ac_ct_AR" >&6; }
8145else
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147$as_echo "no" >&6; }
8148fi
8149
8150 if test "x$ac_ct_AR" = x; then
8151 AR=""
8152 else
8153 case $cross_compiling:$ac_tool_warned in
8154yes:)
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8157ac_tool_warned=yes ;;
8158esac
8159 AR=$ac_ct_AR
8160 fi
8161else
8162 AR="$ac_cv_prog_AR"
8163fi
8164
8165
8166# ---------------------- #
8167# Checks for libraries. #
8168# ---------------------- #
8169
8170ac_config_files="$ac_config_files Makefile import/Makefile"
8171
8172ac_config_commands="$ac_config_commands default"
8173
8174cat >confcache <<\_ACEOF
8175# This file is a shell script that caches the results of configure
8176# tests run on this system so they can be shared between configure
8177# scripts and configure runs, see configure's option --config-cache.
8178# It is not useful on other systems. If it contains results you don't
8179# want to keep, you may remove or edit it.
8180#
8181# config.status only pays attention to the cache file if you give it
8182# the --recheck option to rerun configure.
8183#
8184# `ac_cv_env_foo' variables (set or unset) will be overridden when
8185# loading this file, other *unset* `ac_cv_foo' will be assigned the
8186# following values.
8187
8188_ACEOF
8189
8190# The following way of writing the cache mishandles newlines in values,
8191# but we know of no workaround that is simple, portable, and efficient.
8192# So, we kill variables containing newlines.
8193# Ultrix sh set writes to stderr and can't be redirected directly,
8194# and sets the high bit in the cache file unless we assign to the vars.
8195(
8196 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8197 eval ac_val=\$$ac_var
8198 case $ac_val in #(
8199 *${as_nl}*)
8200 case $ac_var in #(
8201 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8202$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8203 esac
8204 case $ac_var in #(
8205 _ | IFS | as_nl) ;; #(
8206 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8207 *) { eval $ac_var=; unset $ac_var;} ;;
8208 esac ;;
8209 esac
8210 done
8211
8212 (set) 2>&1 |
8213 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8214 *${as_nl}ac_space=\ *)
8215 # `set' does not quote correctly, so add quotes: double-quote
8216 # substitution turns \\\\ into \\, and sed turns \\ into \.
8217 sed -n \
8218 "s/'/'\\\\''/g;
8219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8220 ;; #(
8221 *)
8222 # `set' quotes correctly as required by POSIX, so do not add quotes.
8223 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8224 ;;
8225 esac |
8226 sort
8227) |
8228 sed '
8229 /^ac_cv_env_/b end
8230 t clear
8231 :clear
8232 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8233 t end
8234 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8235 :end' >>confcache
8236if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8237 if test -w "$cache_file"; then
8238 test "x$cache_file" != "x/dev/null" &&
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8240$as_echo "$as_me: updating cache $cache_file" >&6;}
8241 cat confcache >$cache_file
8242 else
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8244$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8245 fi
8246fi
8247rm -f confcache
8248
8249test "x$prefix" = xNONE && prefix=$ac_default_prefix
8250# Let make expand exec_prefix.
8251test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8252
8253DEFS=-DHAVE_CONFIG_H
8254
8255ac_libobjs=
8256ac_ltlibobjs=
8257for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8258 # 1. Remove the extension, and $U if already installed.
8259 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8260 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8261 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8262 # will be set to the directory where LIBOBJS objects are built.
8263 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8264 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8265done
8266LIBOBJS=$ac_libobjs
8267
8268LTLIBOBJS=$ac_ltlibobjs
8269
8270
8271if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8272 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
8273Usually this means the macro was only invoked conditionally." "$LINENO" 5
8274fi
8275if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
8276 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
8277Usually this means the macro was only invoked conditionally." "$LINENO" 5
8278fi
8279if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
8280 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
8281Usually this means the macro was only invoked conditionally." "$LINENO" 5
8282fi
8283if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
8284 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
8285Usually this means the macro was only invoked conditionally." "$LINENO" 5
8286fi
8287
8288 gl_libobjs=
8289 gl_ltlibobjs=
8290 if test -n "$gl_LIBOBJS"; then
8291 # Remove the extension.
8292 sed_drop_objext='s/\.o$//;s/\.obj$//'
8293 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
8294 gl_libobjs="$gl_libobjs $i.$ac_objext"
8295 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
8296 done
8297 fi
8298 gl_LIBOBJS=$gl_libobjs
8299
8300 gl_LTLIBOBJS=$gl_ltlibobjs
8301
8302
8303
8304 gltests_libobjs=
8305 gltests_ltlibobjs=
8306 if test -n "$gltests_LIBOBJS"; then
8307 # Remove the extension.
8308 sed_drop_objext='s/\.o$//;s/\.obj$//'
8309 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
8310 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
8311 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
8312 done
8313 fi
8314 gltests_LIBOBJS=$gltests_libobjs
8315
8316 gltests_LTLIBOBJS=$gltests_ltlibobjs
8317
8318
8319if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8320 as_fn_error "conditional \"AMDEP\" was never defined.
8321Usually this means the macro was only invoked conditionally." "$LINENO" 5
8322fi
8323if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8324 as_fn_error "conditional \"am__fastdepCC\" was never defined.
8325Usually this means the macro was only invoked conditionally." "$LINENO" 5
8326fi
8327 if test -n "$EXEEXT"; then
8328 am__EXEEXT_TRUE=
8329 am__EXEEXT_FALSE='#'
8330else
8331 am__EXEEXT_TRUE='#'
8332 am__EXEEXT_FALSE=
8333fi
8334
8335
8336: ${CONFIG_STATUS=./config.status}
8337ac_write_fail=0
8338ac_clean_files_save=$ac_clean_files
8339ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8340{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8341$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8342as_write_fail=0
8343cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8344#! $SHELL
8345# Generated by $as_me.
8346# Run this file to recreate the current configuration.
8347# Compiler output produced by configure, useful for debugging
8348# configure, is in config.log if it exists.
8349
8350debug=false
8351ac_cs_recheck=false
8352ac_cs_silent=false
8353
8354SHELL=\${CONFIG_SHELL-$SHELL}
8355export SHELL
8356_ASEOF
8357cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8358## -------------------- ##
8359## M4sh Initialization. ##
8360## -------------------- ##
8361
8362# Be more Bourne compatible
8363DUALCASE=1; export DUALCASE # for MKS sh
8364if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8365 emulate sh
8366 NULLCMD=:
8367 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8368 # is contrary to our usage. Disable this feature.
8369 alias -g '${1+"$@"}'='"$@"'
8370 setopt NO_GLOB_SUBST
8371else
8372 case `(set -o) 2>/dev/null` in #(
8373 *posix*) :
8374 set -o posix ;; #(
8375 *) :
8376 ;;
8377esac
8378fi
8379
8380
8381as_nl='
8382'
8383export as_nl
8384# Printing a long string crashes Solaris 7 /usr/bin/printf.
8385as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8386as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8387as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8388# Prefer a ksh shell builtin over an external printf program on Solaris,
8389# but without wasting forks for bash or zsh.
8390if test -z "$BASH_VERSION$ZSH_VERSION" \
8391 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8392 as_echo='print -r --'
8393 as_echo_n='print -rn --'
8394elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8395 as_echo='printf %s\n'
8396 as_echo_n='printf %s'
8397else
8398 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8399 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8400 as_echo_n='/usr/ucb/echo -n'
8401 else
8402 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8403 as_echo_n_body='eval
8404 arg=$1;
8405 case $arg in #(
8406 *"$as_nl"*)
8407 expr "X$arg" : "X\\(.*\\)$as_nl";
8408 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8409 esac;
8410 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8411 '
8412 export as_echo_n_body
8413 as_echo_n='sh -c $as_echo_n_body as_echo'
8414 fi
8415 export as_echo_body
8416 as_echo='sh -c $as_echo_body as_echo'
8417fi
8418
8419# The user is always right.
8420if test "${PATH_SEPARATOR+set}" != set; then
8421 PATH_SEPARATOR=:
8422 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8423 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8424 PATH_SEPARATOR=';'
8425 }
8426fi
8427
8428
8429# IFS
8430# We need space, tab and new line, in precisely that order. Quoting is
8431# there to prevent editors from complaining about space-tab.
8432# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8433# splitting by setting IFS to empty value.)
8434IFS=" "" $as_nl"
8435
8436# Find who we are. Look in the path if we contain no directory separator.
8437case $0 in #((
8438 *[\\/]* ) as_myself=$0 ;;
8439 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440for as_dir in $PATH
8441do
8442 IFS=$as_save_IFS
8443 test -z "$as_dir" && as_dir=.
8444 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8445 done
8446IFS=$as_save_IFS
8447
8448 ;;
8449esac
8450# We did not find ourselves, most probably we were run as `sh COMMAND'
8451# in which case we are not to be found in the path.
8452if test "x$as_myself" = x; then
8453 as_myself=$0
8454fi
8455if test ! -f "$as_myself"; then
8456 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8457 exit 1
8458fi
8459
8460# Unset variables that we do not need and which cause bugs (e.g. in
8461# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8462# suppresses any "Segmentation fault" message there. '((' could
8463# trigger a bug in pdksh 5.2.14.
8464for as_var in BASH_ENV ENV MAIL MAILPATH
8465do eval test x\${$as_var+set} = xset \
8466 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8467done
8468PS1='$ '
8469PS2='> '
8470PS4='+ '
8471
8472# NLS nuisances.
8473LC_ALL=C
8474export LC_ALL
8475LANGUAGE=C
8476export LANGUAGE
8477
8478# CDPATH.
8479(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8480
8481
8482# as_fn_error ERROR [LINENO LOG_FD]
8483# ---------------------------------
8484# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8485# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8486# script with status $?, using 1 if that was 0.
8487as_fn_error ()
8488{
8489 as_status=$?; test $as_status -eq 0 && as_status=1
8490 if test "$3"; then
8491 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8492 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8493 fi
8494 $as_echo "$as_me: error: $1" >&2
8495 as_fn_exit $as_status
8496} # as_fn_error
8497
8498
8499# as_fn_set_status STATUS
8500# -----------------------
8501# Set $? to STATUS, without forking.
8502as_fn_set_status ()
8503{
8504 return $1
8505} # as_fn_set_status
8506
8507# as_fn_exit STATUS
8508# -----------------
8509# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8510as_fn_exit ()
8511{
8512 set +e
8513 as_fn_set_status $1
8514 exit $1
8515} # as_fn_exit
8516
8517# as_fn_unset VAR
8518# ---------------
8519# Portably unset VAR.
8520as_fn_unset ()
8521{
8522 { eval $1=; unset $1;}
8523}
8524as_unset=as_fn_unset
8525# as_fn_append VAR VALUE
8526# ----------------------
8527# Append the text in VALUE to the end of the definition contained in VAR. Take
8528# advantage of any shell optimizations that allow amortized linear growth over
8529# repeated appends, instead of the typical quadratic growth present in naive
8530# implementations.
8531if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8532 eval 'as_fn_append ()
8533 {
8534 eval $1+=\$2
8535 }'
8536else
8537 as_fn_append ()
8538 {
8539 eval $1=\$$1\$2
8540 }
8541fi # as_fn_append
8542
8543# as_fn_arith ARG...
8544# ------------------
8545# Perform arithmetic evaluation on the ARGs, and store the result in the
8546# global $as_val. Take advantage of shells that can avoid forks. The arguments
8547# must be portable across $(()) and expr.
8548if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8549 eval 'as_fn_arith ()
8550 {
8551 as_val=$(( $* ))
8552 }'
8553else
8554 as_fn_arith ()
8555 {
8556 as_val=`expr "$@" || test $? -eq 1`
8557 }
8558fi # as_fn_arith
8559
8560
8561if expr a : '\(a\)' >/dev/null 2>&1 &&
8562 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8563 as_expr=expr
8564else
8565 as_expr=false
8566fi
8567
8568if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8569 as_basename=basename
8570else
8571 as_basename=false
8572fi
8573
8574if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8575 as_dirname=dirname
8576else
8577 as_dirname=false
8578fi
8579
8580as_me=`$as_basename -- "$0" ||
8581$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8582 X"$0" : 'X\(//\)$' \| \
8583 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8584$as_echo X/"$0" |
8585 sed '/^.*\/\([^/][^/]*\)\/*$/{
8586 s//\1/
8587 q
8588 }
8589 /^X\/\(\/\/\)$/{
8590 s//\1/
8591 q
8592 }
8593 /^X\/\(\/\).*/{
8594 s//\1/
8595 q
8596 }
8597 s/.*/./; q'`
8598
8599# Avoid depending upon Character Ranges.
8600as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8601as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8602as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8603as_cr_digits='0123456789'
8604as_cr_alnum=$as_cr_Letters$as_cr_digits
8605
8606ECHO_C= ECHO_N= ECHO_T=
8607case `echo -n x` in #(((((
8608-n*)
8609 case `echo 'xy\c'` in
8610 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8611 xy) ECHO_C='\c';;
8612 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8613 ECHO_T=' ';;
8614 esac;;
8615*)
8616 ECHO_N='-n';;
8617esac
8618
8619rm -f conf$$ conf$$.exe conf$$.file
8620if test -d conf$$.dir; then
8621 rm -f conf$$.dir/conf$$.file
8622else
8623 rm -f conf$$.dir
8624 mkdir conf$$.dir 2>/dev/null
8625fi
8626if (echo >conf$$.file) 2>/dev/null; then
8627 if ln -s conf$$.file conf$$ 2>/dev/null; then
8628 as_ln_s='ln -s'
8629 # ... but there are two gotchas:
8630 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8631 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8632 # In both cases, we have to default to `cp -p'.
8633 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8634 as_ln_s='cp -p'
8635 elif ln conf$$.file conf$$ 2>/dev/null; then
8636 as_ln_s=ln
8637 else
8638 as_ln_s='cp -p'
8639 fi
8640else
8641 as_ln_s='cp -p'
8642fi
8643rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8644rmdir conf$$.dir 2>/dev/null
8645
8646
8647# as_fn_mkdir_p
8648# -------------
8649# Create "$as_dir" as a directory, including parents if necessary.
8650as_fn_mkdir_p ()
8651{
8652
8653 case $as_dir in #(
8654 -*) as_dir=./$as_dir;;
8655 esac
8656 test -d "$as_dir" || eval $as_mkdir_p || {
8657 as_dirs=
8658 while :; do
8659 case $as_dir in #(
8660 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8661 *) as_qdir=$as_dir;;
8662 esac
8663 as_dirs="'$as_qdir' $as_dirs"
8664 as_dir=`$as_dirname -- "$as_dir" ||
8665$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8666 X"$as_dir" : 'X\(//\)[^/]' \| \
8667 X"$as_dir" : 'X\(//\)$' \| \
8668 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8669$as_echo X"$as_dir" |
8670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8671 s//\1/
8672 q
8673 }
8674 /^X\(\/\/\)[^/].*/{
8675 s//\1/
8676 q
8677 }
8678 /^X\(\/\/\)$/{
8679 s//\1/
8680 q
8681 }
8682 /^X\(\/\).*/{
8683 s//\1/
8684 q
8685 }
8686 s/.*/./; q'`
8687 test -d "$as_dir" && break
8688 done
8689 test -z "$as_dirs" || eval "mkdir $as_dirs"
8690 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8691
8692
8693} # as_fn_mkdir_p
8694if mkdir -p . 2>/dev/null; then
8695 as_mkdir_p='mkdir -p "$as_dir"'
8696else
8697 test -d ./-p && rmdir ./-p
8698 as_mkdir_p=false
8699fi
8700
8701if test -x / >/dev/null 2>&1; then
8702 as_test_x='test -x'
8703else
8704 if ls -dL / >/dev/null 2>&1; then
8705 as_ls_L_option=L
8706 else
8707 as_ls_L_option=
8708 fi
8709 as_test_x='
8710 eval sh -c '\''
8711 if test -d "$1"; then
8712 test -d "$1/.";
8713 else
8714 case $1 in #(
8715 -*)set "./$1";;
8716 esac;
8717 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8718 ???[sx]*):;;*)false;;esac;fi
8719 '\'' sh
8720 '
8721fi
8722as_executable_p=$as_test_x
8723
8724# Sed expression to map a string onto a valid CPP name.
8725as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8726
8727# Sed expression to map a string onto a valid variable name.
8728as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8729
8730
8731exec 6>&1
8732## ----------------------------------- ##
8733## Main body of $CONFIG_STATUS script. ##
8734## ----------------------------------- ##
8735_ASEOF
8736test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8737
8738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8739# Save the log message, to keep $0 and so on meaningful, and to
8740# report actual input values of CONFIG_FILES etc. instead of their
8741# values after options handling.
8742ac_log="
8743This file was extended by $as_me, which was
8744generated by GNU Autoconf 2.64. Invocation command line was
8745
8746 CONFIG_FILES = $CONFIG_FILES
8747 CONFIG_HEADERS = $CONFIG_HEADERS
8748 CONFIG_LINKS = $CONFIG_LINKS
8749 CONFIG_COMMANDS = $CONFIG_COMMANDS
8750 $ $0 $@
8751
8752on `(hostname || uname -n) 2>/dev/null | sed 1q`
8753"
8754
8755_ACEOF
8756
8757case $ac_config_files in *"
8758"*) set x $ac_config_files; shift; ac_config_files=$*;;
8759esac
8760
8761case $ac_config_headers in *"
8762"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8763esac
8764
8765
8766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8767# Files that config.status was made for.
8768config_files="$ac_config_files"
8769config_headers="$ac_config_headers"
8770config_commands="$ac_config_commands"
8771
8772_ACEOF
8773
8774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8775ac_cs_usage="\
8776\`$as_me' instantiates files and other configuration actions
8777from templates according to the current configuration. Unless the files
8778and actions are specified as TAGs, all are instantiated by default.
8779
8780Usage: $0 [OPTION]... [TAG]...
8781
8782 -h, --help print this help, then exit
8783 -V, --version print version number and configuration settings, then exit
8784 -q, --quiet, --silent
8785 do not print progress messages
8786 -d, --debug don't remove temporary files
8787 --recheck update $as_me by reconfiguring in the same conditions
8788 --file=FILE[:TEMPLATE]
8789 instantiate the configuration file FILE
8790 --header=FILE[:TEMPLATE]
8791 instantiate the configuration header FILE
8792
8793Configuration files:
8794$config_files
8795
8796Configuration headers:
8797$config_headers
8798
8799Configuration commands:
8800$config_commands
8801
8802Report bugs to the package provider."
8803
8804_ACEOF
8805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8806ac_cs_version="\\
8807config.status
8808configured by $0, generated by GNU Autoconf 2.64,
8809 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8810
8811Copyright (C) 2009 Free Software Foundation, Inc.
8812This config.status script is free software; the Free Software Foundation
8813gives unlimited permission to copy, distribute and modify it."
8814
8815ac_pwd='$ac_pwd'
8816srcdir='$srcdir'
8817INSTALL='$INSTALL'
8818MKDIR_P='$MKDIR_P'
8819AWK='$AWK'
8820test -n "\$AWK" || AWK=awk
8821_ACEOF
8822
8823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8824# The default lists apply if the user does not specify any file.
8825ac_need_defaults=:
8826while test $# != 0
8827do
8828 case $1 in
8829 --*=*)
8830 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8831 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8832 ac_shift=:
8833 ;;
8834 *)
8835 ac_option=$1
8836 ac_optarg=$2
8837 ac_shift=shift
8838 ;;
8839 esac
8840
8841 case $ac_option in
8842 # Handling of the options.
8843 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8844 ac_cs_recheck=: ;;
8845 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8846 $as_echo "$ac_cs_version"; exit ;;
8847 --debug | --debu | --deb | --de | --d | -d )
8848 debug=: ;;
8849 --file | --fil | --fi | --f )
8850 $ac_shift
8851 case $ac_optarg in
8852 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8853 esac
8854 as_fn_append CONFIG_FILES " '$ac_optarg'"
8855 ac_need_defaults=false;;
8856 --header | --heade | --head | --hea )
8857 $ac_shift
8858 case $ac_optarg in
8859 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8860 esac
8861 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8862 ac_need_defaults=false;;
8863 --he | --h)
8864 # Conflict between --help and --header
8865 as_fn_error "ambiguous option: \`$1'
8866Try \`$0 --help' for more information.";;
8867 --help | --hel | -h )
8868 $as_echo "$ac_cs_usage"; exit ;;
8869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8870 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8871 ac_cs_silent=: ;;
8872
8873 # This is an error.
8874 -*) as_fn_error "unrecognized option: \`$1'
8875Try \`$0 --help' for more information." ;;
8876
8877 *) as_fn_append ac_config_targets " $1"
8878 ac_need_defaults=false ;;
8879
8880 esac
8881 shift
8882done
8883
8884ac_configure_extra_args=
8885
8886if $ac_cs_silent; then
8887 exec 6>/dev/null
8888 ac_configure_extra_args="$ac_configure_extra_args --silent"
8889fi
8890
8891_ACEOF
8892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8893if \$ac_cs_recheck; then
8894 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8895 shift
8896 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8897 CONFIG_SHELL='$SHELL'
8898 export CONFIG_SHELL
8899 exec "\$@"
8900fi
8901
8902_ACEOF
8903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8904exec 5>>config.log
8905{
8906 echo
8907 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8908## Running $as_me. ##
8909_ASBOX
8910 $as_echo "$ac_log"
8911} >&5
8912
8913_ACEOF
8914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8915#
8916# INIT-COMMANDS
8917#
8918AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8919
8920_ACEOF
8921
8922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8923
8924# Handling of arguments.
8925for ac_config_target in $ac_config_targets
8926do
8927 case $ac_config_target in
8928 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8929 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8930 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8931 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
8932 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8933
8934 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8935 esac
8936done
8937
8938
8939# If the user did not use the arguments to specify the items to instantiate,
8940# then the envvar interface is used. Set only those that are not.
8941# We use the long form for the default assignment because of an extremely
8942# bizarre bug on SunOS 4.1.3.
8943if $ac_need_defaults; then
8944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8947fi
8948
8949# Have a temporary directory for convenience. Make it in the build tree
8950# simply because there is no reason against having it here, and in addition,
8951# creating and moving files from /tmp can sometimes cause problems.
8952# Hook for its removal unless debugging.
8953# Note that there is a small window in which the directory will not be cleaned:
8954# after its creation but before its name has been assigned to `$tmp'.
8955$debug ||
8956{
8957 tmp=
8958 trap 'exit_status=$?
8959 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8960' 0
8961 trap 'as_fn_exit 1' 1 2 13 15
8962}
8963# Create a (secure) tmp directory for tmp files.
8964
8965{
8966 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8967 test -n "$tmp" && test -d "$tmp"
8968} ||
8969{
8970 tmp=./conf$$-$RANDOM
8971 (umask 077 && mkdir "$tmp")
8972} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8973
8974# Set up the scripts for CONFIG_FILES section.
8975# No need to generate them if there are no CONFIG_FILES.
8976# This happens for instance with `./config.status config.h'.
8977if test -n "$CONFIG_FILES"; then
8978
8979
8980ac_cr=`echo X | tr X '\015'`
8981# On cygwin, bash can eat \r inside `` if the user requested igncr.
8982# But we know of no other shell where ac_cr would be empty at this
8983# point, so we can use a bashism as a fallback.
8984if test "x$ac_cr" = x; then
8985 eval ac_cr=\$\'\\r\'
8986fi
8987ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8988if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8989 ac_cs_awk_cr='\r'
8990else
8991 ac_cs_awk_cr=$ac_cr
8992fi
8993
8994echo 'BEGIN {' >"$tmp/subs1.awk" &&
8995_ACEOF
8996
8997
8998{
8999 echo "cat >conf$$subs.awk <<_ACEOF" &&
9000 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9001 echo "_ACEOF"
9002} >conf$$subs.sh ||
9003 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9004ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9005ac_delim='%!_!# '
9006for ac_last_try in false false false false false :; do
9007 . ./conf$$subs.sh ||
9008 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9009
9010 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9011 if test $ac_delim_n = $ac_delim_num; then
9012 break
9013 elif $ac_last_try; then
9014 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9015 else
9016 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9017 fi
9018done
9019rm -f conf$$subs.sh
9020
9021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9022cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9023_ACEOF
9024sed -n '
9025h
9026s/^/S["/; s/!.*/"]=/
9027p
9028g
9029s/^[^!]*!//
9030:repl
9031t repl
9032s/'"$ac_delim"'$//
9033t delim
9034:nl
9035h
9036s/\(.\{148\}\).*/\1/
9037t more1
9038s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9039p
9040n
9041b repl
9042:more1
9043s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9044p
9045g
9046s/.\{148\}//
9047t nl
9048:delim
9049h
9050s/\(.\{148\}\).*/\1/
9051t more2
9052s/["\\]/\\&/g; s/^/"/; s/$/"/
9053p
9054b
9055:more2
9056s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9057p
9058g
9059s/.\{148\}//
9060t delim
9061' <conf$$subs.awk | sed '
9062/^[^""]/{
9063 N
9064 s/\n//
9065}
9066' >>$CONFIG_STATUS || ac_write_fail=1
9067rm -f conf$$subs.awk
9068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9069_ACAWK
9070cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9071 for (key in S) S_is_set[key] = 1
9072 FS = "\a"
9073
9074}
9075{
9076 line = $ 0
9077 nfields = split(line, field, "@")
9078 substed = 0
9079 len = length(field[1])
9080 for (i = 2; i < nfields; i++) {
9081 key = field[i]
9082 keylen = length(key)
9083 if (S_is_set[key]) {
9084 value = S[key]
9085 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9086 len += length(value) + length(field[++i])
9087 substed = 1
9088 } else
9089 len += 1 + keylen
9090 }
9091
9092 print line
9093}
9094
9095_ACAWK
9096_ACEOF
9097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9098if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9099 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9100else
9101 cat
9102fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9103 || as_fn_error "could not setup config files machinery" "$LINENO" 5
9104_ACEOF
9105
9106# VPATH may cause trouble with some makes, so we remove $(srcdir),
9107# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9108# trailing colons and then remove the whole line if VPATH becomes empty
9109# (actually we leave an empty line to preserve line numbers).
9110if test "x$srcdir" = x.; then
9111 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9112s/:*\$(srcdir):*/:/
9113s/:*\${srcdir}:*/:/
9114s/:*@srcdir@:*/:/
9115s/^\([^=]*=[ ]*\):*/\1/
9116s/:*$//
9117s/^[^=]*=[ ]*$//
9118}'
9119fi
9120
9121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9122fi # test -n "$CONFIG_FILES"
9123
9124# Set up the scripts for CONFIG_HEADERS section.
9125# No need to generate them if there are no CONFIG_HEADERS.
9126# This happens for instance with `./config.status Makefile'.
9127if test -n "$CONFIG_HEADERS"; then
9128cat >"$tmp/defines.awk" <<\_ACAWK ||
9129BEGIN {
9130_ACEOF
9131
9132# Transform confdefs.h into an awk script `defines.awk', embedded as
9133# here-document in config.status, that substitutes the proper values into
9134# config.h.in to produce config.h.
9135
9136# Create a delimiter string that does not exist in confdefs.h, to ease
9137# handling of long lines.
9138ac_delim='%!_!# '
9139for ac_last_try in false false :; do
9140 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9141 if test -z "$ac_t"; then
9142 break
9143 elif $ac_last_try; then
9144 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
9145 else
9146 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9147 fi
9148done
9149
9150# For the awk script, D is an array of macro values keyed by name,
9151# likewise P contains macro parameters if any. Preserve backslash
9152# newline sequences.
9153
9154ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9155sed -n '
9156s/.\{148\}/&'"$ac_delim"'/g
9157t rset
9158:rset
9159s/^[ ]*#[ ]*define[ ][ ]*/ /
9160t def
9161d
9162:def
9163s/\\$//
9164t bsnl
9165s/["\\]/\\&/g
9166s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9167D["\1"]=" \3"/p
9168s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9169d
9170:bsnl
9171s/["\\]/\\&/g
9172s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9173D["\1"]=" \3\\\\\\n"\\/p
9174t cont
9175s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9176t cont
9177d
9178:cont
9179n
9180s/.\{148\}/&'"$ac_delim"'/g
9181t clear
9182:clear
9183s/\\$//
9184t bsnlc
9185s/["\\]/\\&/g; s/^/"/; s/$/"/p
9186d
9187:bsnlc
9188s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9189b cont
9190' <confdefs.h | sed '
9191s/'"$ac_delim"'/"\\\
9192"/g' >>$CONFIG_STATUS || ac_write_fail=1
9193
9194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9195 for (key in D) D_is_set[key] = 1
9196 FS = "\a"
9197}
9198/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9199 line = \$ 0
9200 split(line, arg, " ")
9201 if (arg[1] == "#") {
9202 defundef = arg[2]
9203 mac1 = arg[3]
9204 } else {
9205 defundef = substr(arg[1], 2)
9206 mac1 = arg[2]
9207 }
9208 split(mac1, mac2, "(") #)
9209 macro = mac2[1]
9210 prefix = substr(line, 1, index(line, defundef) - 1)
9211 if (D_is_set[macro]) {
9212 # Preserve the white space surrounding the "#".
9213 print prefix "define", macro P[macro] D[macro]
9214 next
9215 } else {
9216 # Replace #undef with comments. This is necessary, for example,
9217 # in the case of _POSIX_SOURCE, which is predefined and required
9218 # on some systems where configure will not decide to define it.
9219 if (defundef == "undef") {
9220 print "/*", prefix defundef, macro, "*/"
9221 next
9222 }
9223 }
9224}
9225{ print }
9226_ACAWK
9227_ACEOF
9228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9229 as_fn_error "could not setup config headers machinery" "$LINENO" 5
9230fi # test -n "$CONFIG_HEADERS"
9231
9232
9233eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9234shift
9235for ac_tag
9236do
9237 case $ac_tag in
9238 :[FHLC]) ac_mode=$ac_tag; continue;;
9239 esac
9240 case $ac_mode$ac_tag in
9241 :[FHL]*:*);;
9242 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
9243 :[FH]-) ac_tag=-:-;;
9244 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9245 esac
9246 ac_save_IFS=$IFS
9247 IFS=:
9248 set x $ac_tag
9249 IFS=$ac_save_IFS
9250 shift
9251 ac_file=$1
9252 shift
9253
9254 case $ac_mode in
9255 :L) ac_source=$1;;
9256 :[FH])
9257 ac_file_inputs=
9258 for ac_f
9259 do
9260 case $ac_f in
9261 -) ac_f="$tmp/stdin";;
9262 *) # Look for the file first in the build tree, then in the source tree
9263 # (if the path is not absolute). The absolute path cannot be DOS-style,
9264 # because $ac_f cannot contain `:'.
9265 test -f "$ac_f" ||
9266 case $ac_f in
9267 [\\/$]*) false;;
9268 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9269 esac ||
9270 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9271 esac
9272 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9273 as_fn_append ac_file_inputs " '$ac_f'"
9274 done
9275
9276 # Let's still pretend it is `configure' which instantiates (i.e., don't
9277 # use $as_me), people would be surprised to read:
9278 # /* config.h. Generated by config.status. */
9279 configure_input='Generated from '`
9280 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9281 `' by configure.'
9282 if test x"$ac_file" != x-; then
9283 configure_input="$ac_file. $configure_input"
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9285$as_echo "$as_me: creating $ac_file" >&6;}
9286 fi
9287 # Neutralize special characters interpreted by sed in replacement strings.
9288 case $configure_input in #(
9289 *\&* | *\|* | *\\* )
9290 ac_sed_conf_input=`$as_echo "$configure_input" |
9291 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9292 *) ac_sed_conf_input=$configure_input;;
9293 esac
9294
9295 case $ac_tag in
9296 *:-:* | *:-) cat >"$tmp/stdin" \
9297 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
9298 esac
9299 ;;
9300 esac
9301
9302 ac_dir=`$as_dirname -- "$ac_file" ||
9303$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9304 X"$ac_file" : 'X\(//\)[^/]' \| \
9305 X"$ac_file" : 'X\(//\)$' \| \
9306 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9307$as_echo X"$ac_file" |
9308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9309 s//\1/
9310 q
9311 }
9312 /^X\(\/\/\)[^/].*/{
9313 s//\1/
9314 q
9315 }
9316 /^X\(\/\/\)$/{
9317 s//\1/
9318 q
9319 }
9320 /^X\(\/\).*/{
9321 s//\1/
9322 q
9323 }
9324 s/.*/./; q'`
9325 as_dir="$ac_dir"; as_fn_mkdir_p
9326 ac_builddir=.
9327
9328case "$ac_dir" in
9329.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9330*)
9331 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9332 # A ".." for each directory in $ac_dir_suffix.
9333 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9334 case $ac_top_builddir_sub in
9335 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9336 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9337 esac ;;
9338esac
9339ac_abs_top_builddir=$ac_pwd
9340ac_abs_builddir=$ac_pwd$ac_dir_suffix
9341# for backward compatibility:
9342ac_top_builddir=$ac_top_build_prefix
9343
9344case $srcdir in
9345 .) # We are building in place.
9346 ac_srcdir=.
9347 ac_top_srcdir=$ac_top_builddir_sub
9348 ac_abs_top_srcdir=$ac_pwd ;;
9349 [\\/]* | ?:[\\/]* ) # Absolute name.
9350 ac_srcdir=$srcdir$ac_dir_suffix;
9351 ac_top_srcdir=$srcdir
9352 ac_abs_top_srcdir=$srcdir ;;
9353 *) # Relative name.
9354 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9355 ac_top_srcdir=$ac_top_build_prefix$srcdir
9356 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9357esac
9358ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9359
9360
9361 case $ac_mode in
9362 :F)
9363 #
9364 # CONFIG_FILE
9365 #
9366
9367 case $INSTALL in
9368 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9369 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9370 esac
9371 ac_MKDIR_P=$MKDIR_P
9372 case $MKDIR_P in
9373 [\\/$]* | ?:[\\/]* ) ;;
9374 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9375 esac
9376_ACEOF
9377
9378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9379# If the template does not know about datarootdir, expand it.
9380# FIXME: This hack should be removed a few years after 2.60.
9381ac_datarootdir_hack=; ac_datarootdir_seen=
9382ac_sed_dataroot='
9383/datarootdir/ {
9384 p
9385 q
9386}
9387/@datadir@/p
9388/@docdir@/p
9389/@infodir@/p
9390/@localedir@/p
9391/@mandir@/p'
9392case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9393*datarootdir*) ac_datarootdir_seen=yes;;
9394*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9396$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9397_ACEOF
9398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9399 ac_datarootdir_hack='
9400 s&@datadir@&$datadir&g
9401 s&@docdir@&$docdir&g
9402 s&@infodir@&$infodir&g
9403 s&@localedir@&$localedir&g
9404 s&@mandir@&$mandir&g
9405 s&\\\${datarootdir}&$datarootdir&g' ;;
9406esac
9407_ACEOF
9408
9409# Neutralize VPATH when `$srcdir' = `.'.
9410# Shell code in configure.ac might set extrasub.
9411# FIXME: do we really want to maintain this feature?
9412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9413ac_sed_extra="$ac_vpsub
9414$extrasub
9415_ACEOF
9416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9417:t
9418/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9419s|@configure_input@|$ac_sed_conf_input|;t t
9420s&@top_builddir@&$ac_top_builddir_sub&;t t
9421s&@top_build_prefix@&$ac_top_build_prefix&;t t
9422s&@srcdir@&$ac_srcdir&;t t
9423s&@abs_srcdir@&$ac_abs_srcdir&;t t
9424s&@top_srcdir@&$ac_top_srcdir&;t t
9425s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9426s&@builddir@&$ac_builddir&;t t
9427s&@abs_builddir@&$ac_abs_builddir&;t t
9428s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9429s&@INSTALL@&$ac_INSTALL&;t t
9430s&@MKDIR_P@&$ac_MKDIR_P&;t t
9431$ac_datarootdir_hack
9432"
9433eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9434 || as_fn_error "could not create $ac_file" "$LINENO" 5
9435
9436test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9437 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9438 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9440which seems to be undefined. Please make sure it is defined." >&5
9441$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9442which seems to be undefined. Please make sure it is defined." >&2;}
9443
9444 rm -f "$tmp/stdin"
9445 case $ac_file in
9446 -) cat "$tmp/out" && rm -f "$tmp/out";;
9447 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9448 esac \
9449 || as_fn_error "could not create $ac_file" "$LINENO" 5
9450 ;;
9451 :H)
9452 #
9453 # CONFIG_HEADER
9454 #
9455 if test x"$ac_file" != x-; then
9456 {
9457 $as_echo "/* $configure_input */" \
9458 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9459 } >"$tmp/config.h" \
9460 || as_fn_error "could not create $ac_file" "$LINENO" 5
9461 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9463$as_echo "$as_me: $ac_file is unchanged" >&6;}
9464 else
9465 rm -f "$ac_file"
9466 mv "$tmp/config.h" "$ac_file" \
9467 || as_fn_error "could not create $ac_file" "$LINENO" 5
9468 fi
9469 else
9470 $as_echo "/* $configure_input */" \
9471 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9472 || as_fn_error "could not create -" "$LINENO" 5
9473 fi
9474# Compute "$ac_file"'s index in $config_headers.
9475_am_arg="$ac_file"
9476_am_stamp_count=1
9477for _am_header in $config_headers :; do
9478 case $_am_header in
9479 $_am_arg | $_am_arg:* )
9480 break ;;
9481 * )
9482 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9483 esac
9484done
9485echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9486$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9487 X"$_am_arg" : 'X\(//\)[^/]' \| \
9488 X"$_am_arg" : 'X\(//\)$' \| \
9489 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9490$as_echo X"$_am_arg" |
9491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9492 s//\1/
9493 q
9494 }
9495 /^X\(\/\/\)[^/].*/{
9496 s//\1/
9497 q
9498 }
9499 /^X\(\/\/\)$/{
9500 s//\1/
9501 q
9502 }
9503 /^X\(\/\).*/{
9504 s//\1/
9505 q
9506 }
9507 s/.*/./; q'`/stamp-h$_am_stamp_count
9508 ;;
9509
9510 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9511$as_echo "$as_me: executing $ac_file commands" >&6;}
9512 ;;
9513 esac
9514
9515
9516 case $ac_file$ac_mode in
9517 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9518 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9519 # are listed without --file. Let's play safe and only enable the eval
9520 # if we detect the quoting.
9521 case $CONFIG_FILES in
9522 *\'*) eval set x "$CONFIG_FILES" ;;
9523 *) set x $CONFIG_FILES ;;
9524 esac
9525 shift
9526 for mf
9527 do
9528 # Strip MF so we end up with the name of the file.
9529 mf=`echo "$mf" | sed -e 's/:.*$//'`
9530 # Check whether this is an Automake generated Makefile or not.
9531 # We used to match only the files named `Makefile.in', but
9532 # some people rename them; so instead we look at the file content.
9533 # Grep'ing the first line is not enough: some people post-process
9534 # each Makefile.in and add a new line on top of each file to say so.
9535 # Grep'ing the whole file is not good either: AIX grep has a line
9536 # limit of 2048, but all sed's we know have understand at least 4000.
9537 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9538 dirpart=`$as_dirname -- "$mf" ||
9539$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9540 X"$mf" : 'X\(//\)[^/]' \| \
9541 X"$mf" : 'X\(//\)$' \| \
9542 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9543$as_echo X"$mf" |
9544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9545 s//\1/
9546 q
9547 }
9548 /^X\(\/\/\)[^/].*/{
9549 s//\1/
9550 q
9551 }
9552 /^X\(\/\/\)$/{
9553 s//\1/
9554 q
9555 }
9556 /^X\(\/\).*/{
9557 s//\1/
9558 q
9559 }
9560 s/.*/./; q'`
9561 else
9562 continue
9563 fi
9564 # Extract the definition of DEPDIR, am__include, and am__quote
9565 # from the Makefile without running `make'.
9566 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9567 test -z "$DEPDIR" && continue
9568 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9569 test -z "am__include" && continue
9570 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9571 # When using ansi2knr, U may be empty or an underscore; expand it
9572 U=`sed -n 's/^U = //p' < "$mf"`
9573 # Find all dependency output files, they are included files with
9574 # $(DEPDIR) in their names. We invoke sed twice because it is the
9575 # simplest approach to changing $(DEPDIR) to its actual value in the
9576 # expansion.
9577 for file in `sed -n "
9578 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9579 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9580 # Make sure the directory exists.
9581 test -f "$dirpart/$file" && continue
9582 fdir=`$as_dirname -- "$file" ||
9583$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9584 X"$file" : 'X\(//\)[^/]' \| \
9585 X"$file" : 'X\(//\)$' \| \
9586 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9587$as_echo X"$file" |
9588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9589 s//\1/
9590 q
9591 }
9592 /^X\(\/\/\)[^/].*/{
9593 s//\1/
9594 q
9595 }
9596 /^X\(\/\/\)$/{
9597 s//\1/
9598 q
9599 }
9600 /^X\(\/\).*/{
9601 s//\1/
9602 q
9603 }
9604 s/.*/./; q'`
9605 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9606 # echo "creating $dirpart/$file"
9607 echo '# dummy' > "$dirpart/$file"
9608 done
9609 done
9610}
9611 ;;
9612 "default":C)
9613case x$CONFIG_HEADERS in
9614xconfig.h:config.in)
9615echo > stamp-h ;;
9616esac
9617 ;;
9618
9619 esac
9620done # for ac_tag
9621
9622
9623as_fn_exit 0
9624_ACEOF
9625ac_clean_files=$ac_clean_files_save
9626
9627test $ac_write_fail = 0 ||
9628 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9629
9630
9631# configure is writing to config.log, and then calls config.status.
9632# config.status does its own redirection, appending to config.log.
9633# Unfortunately, on DOS this fails, as config.log is still kept open
9634# by configure, so config.status won't be able to write to it; its
9635# output is simply discarded. So we exec the FD to /dev/null,
9636# effectively closing config.log, so it can be properly (re)opened and
9637# appended to by config.status. When coming back to configure, we
9638# need to make the FD available again.
9639if test "$no_create" != yes; then
9640 ac_cs_success=:
9641 ac_config_status_args=
9642 test "$silent" = yes &&
9643 ac_config_status_args="$ac_config_status_args --quiet"
9644 exec 5>/dev/null
9645 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9646 exec 5>>config.log
9647 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9648 # would make configure fail if this is the last instruction.
9649 $ac_cs_success || as_fn_exit $?
9650fi
9651if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9653$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9654fi
9655
9656
9657exit 0
This page took 0.634605 seconds and 4 git commands to generate.