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