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