sim: punt x86-specific bswap logic
[deliverable/binutils-gdb.git] / sim / igen / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
b7026657 8#
b7026657
AC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
b7026657 14
81ecdfbb
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 :
b7026657
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
b7026657 31fi
c906108c 32
81ecdfbb
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'
b7026657 50else
81ecdfbb
RW
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 }
b7026657 79fi
c906108c
SS
80
81
81ecdfbb
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.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
b7026657
AC
121PS1='$ '
122PS2='> '
123PS4='+ '
c906108c 124
b7026657 125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b7026657 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
b7026657 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
b7026657 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
c906108c 372
81ecdfbb
RW
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
375 as_expr=expr
376else
377 as_expr=false
378fi
c906108c 379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
381 as_basename=basename
382else
383 as_basename=false
384fi
c906108c 385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c906108c 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
b7026657
AC
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
b7026657 410
b7026657
AC
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
c906108c 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
b7026657 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
b7026657 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 436 t loop
81ecdfbb 437 s/-\n.*//
b7026657 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b7026657
AC
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
b7026657
AC
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
b7026657 461esac
c906108c 462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
b7026657 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
b7026657 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
b7026657 483 fi
b7026657
AC
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c906108c 489
b7026657 490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
c906108c 496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
c906108c 519
b7026657
AC
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 522
b7026657
AC
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c
SS
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
c906108c 528
b7026657
AC
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
c906108c 533
c906108c 534#
b7026657 535# Initializations.
c906108c 536#
b7026657 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
b7026657 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
b7026657
AC
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
b7026657
AC
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
b7026657
AC
553
554ac_unique_file="table.h"
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
81ecdfbb 558#ifdef HAVE_SYS_TYPES_H
b7026657
AC
559# include <sys/types.h>
560#endif
81ecdfbb 561#ifdef HAVE_SYS_STAT_H
b7026657
AC
562# include <sys/stat.h>
563#endif
81ecdfbb 564#ifdef STDC_HEADERS
b7026657
AC
565# include <stdlib.h>
566# include <stddef.h>
567#else
81ecdfbb 568# ifdef HAVE_STDLIB_H
b7026657
AC
569# include <stdlib.h>
570# endif
571#endif
81ecdfbb
RW
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b7026657
AC
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
81ecdfbb 578#ifdef HAVE_STRINGS_H
b7026657
AC
579# include <strings.h>
580#endif
81ecdfbb 581#ifdef HAVE_INTTYPES_H
b7026657 582# include <inttypes.h>
b7026657 583#endif
81ecdfbb
RW
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
b7026657
AC
588# include <unistd.h>
589#endif"
c906108c 590
81ecdfbb
RW
591ac_subst_vars='LTLIBOBJS
592LIBOBJS
593RANLIB
594AR
595LIBIBERTY_LIB
596RANLIB_FOR_BUILD
597CFLAGS_FOR_BUILD
598CC_FOR_BUILD
599AR_FLAGS_FOR_BUILD
600AR_FOR_BUILD
601EGREP
602GREP
603CPP
604target_os
605target_vendor
606target_cpu
607target
608host_os
609host_vendor
610host_cpu
611host
612build_os
613build_vendor
614build_cpu
615build
616OBJEXT
617EXEEXT
618ac_ct_CC
619CPPFLAGS
620LDFLAGS
621CFLAGS
622CC
623INSTALL_DATA
624INSTALL_SCRIPT
625INSTALL_PROGRAM
6ffe910a
MF
626WERROR_CFLAGS
627WARN_CFLAGS
628sim_xor_endian
629sim_stdcall
630sim_smp
631sim_reserved_bits
632sim_regparm
633sim_packages
634sim_inline
635sim_hw
636sim_hw_objs
637sim_hw_cflags
638sim_default_model
639sim_scache
640sim_float
6ffe910a
MF
641sim_endian
642sim_bitsize
643sim_assert
644sim_alignment
645sim_environment
81ecdfbb
RW
646target_alias
647host_alias
648build_alias
649LIBS
650ECHO_T
651ECHO_N
652ECHO_C
653DEFS
654mandir
655localedir
656libdir
657psdir
658pdfdir
659dvidir
660htmldir
661infodir
662docdir
663oldincludedir
664includedir
665localstatedir
666sharedstatedir
667sysconfdir
668datadir
669datarootdir
670libexecdir
671sbindir
672bindir
673program_transform_name
674prefix
675exec_prefix
676PACKAGE_URL
677PACKAGE_BUGREPORT
678PACKAGE_STRING
679PACKAGE_VERSION
680PACKAGE_TARNAME
681PACKAGE_NAME
682PATH_SEPARATOR
6ffe910a 683SHELL'
b7026657 684ac_subst_files=''
81ecdfbb
RW
685ac_user_opts='
686enable_option_checking
2232061b 687enable_werror
81ecdfbb
RW
688enable_build_warnings
689enable_sim_build_warnings
690'
691 ac_precious_vars='build_alias
692host_alias
693target_alias
694CC
695CFLAGS
696LDFLAGS
697LIBS
698CPPFLAGS
699CPP'
700
c906108c
SS
701
702# Initialize some variables set by options.
b7026657
AC
703ac_init_help=
704ac_init_version=false
81ecdfbb
RW
705ac_unrecognized_opts=
706ac_unrecognized_sep=
c906108c
SS
707# The variables have the same names as the options, with
708# dashes changed to underlines.
b7026657 709cache_file=/dev/null
c906108c 710exec_prefix=NONE
c906108c 711no_create=
c906108c
SS
712no_recursion=
713prefix=NONE
714program_prefix=NONE
715program_suffix=NONE
716program_transform_name=s,x,x,
717silent=
718site=
719srcdir=
c906108c
SS
720verbose=
721x_includes=NONE
722x_libraries=NONE
b7026657
AC
723
724# Installation directory options.
725# These are left unexpanded so users can "make install exec_prefix=/foo"
726# and all the variables that are supposed to be based on exec_prefix
727# by default will actually change.
728# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 729# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
730bindir='${exec_prefix}/bin'
731sbindir='${exec_prefix}/sbin'
732libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
733datarootdir='${prefix}/share'
734datadir='${datarootdir}'
c906108c
SS
735sysconfdir='${prefix}/etc'
736sharedstatedir='${prefix}/com'
737localstatedir='${prefix}/var'
c906108c
SS
738includedir='${prefix}/include'
739oldincludedir='/usr/include'
81ecdfbb
RW
740docdir='${datarootdir}/doc/${PACKAGE}'
741infodir='${datarootdir}/info'
742htmldir='${docdir}'
743dvidir='${docdir}'
744pdfdir='${docdir}'
745psdir='${docdir}'
746libdir='${exec_prefix}/lib'
747localedir='${datarootdir}/locale'
748mandir='${datarootdir}/man'
c906108c 749
c906108c 750ac_prev=
81ecdfbb 751ac_dashdash=
c906108c
SS
752for ac_option
753do
c906108c
SS
754 # If the previous option needs an argument, assign it.
755 if test -n "$ac_prev"; then
81ecdfbb 756 eval $ac_prev=\$ac_option
c906108c
SS
757 ac_prev=
758 continue
759 fi
760
81ecdfbb
RW
761 case $ac_option in
762 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
763 *) ac_optarg=yes ;;
764 esac
c906108c
SS
765
766 # Accept the important Cygnus configure options, so we can diagnose typos.
767
81ecdfbb
RW
768 case $ac_dashdash$ac_option in
769 --)
770 ac_dashdash=yes ;;
c906108c
SS
771
772 -bindir | --bindir | --bindi | --bind | --bin | --bi)
773 ac_prev=bindir ;;
774 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 775 bindir=$ac_optarg ;;
c906108c
SS
776
777 -build | --build | --buil | --bui | --bu)
b7026657 778 ac_prev=build_alias ;;
c906108c 779 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 780 build_alias=$ac_optarg ;;
c906108c
SS
781
782 -cache-file | --cache-file | --cache-fil | --cache-fi \
783 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
784 ac_prev=cache_file ;;
785 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
786 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
787 cache_file=$ac_optarg ;;
788
789 --config-cache | -C)
790 cache_file=config.cache ;;
c906108c 791
81ecdfbb 792 -datadir | --datadir | --datadi | --datad)
c906108c 793 ac_prev=datadir ;;
81ecdfbb 794 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 795 datadir=$ac_optarg ;;
c906108c 796
81ecdfbb
RW
797 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
798 | --dataroo | --dataro | --datar)
799 ac_prev=datarootdir ;;
800 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
801 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
802 datarootdir=$ac_optarg ;;
803
c906108c 804 -disable-* | --disable-*)
81ecdfbb 805 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 806 # Reject names that are not valid shell variable names.
81ecdfbb
RW
807 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
808 as_fn_error "invalid feature name: $ac_useropt"
809 ac_useropt_orig=$ac_useropt
810 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
811 case $ac_user_opts in
812 *"
813"enable_$ac_useropt"
814"*) ;;
815 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
816 ac_unrecognized_sep=', ';;
817 esac
818 eval enable_$ac_useropt=no ;;
819
820 -docdir | --docdir | --docdi | --doc | --do)
821 ac_prev=docdir ;;
822 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
823 docdir=$ac_optarg ;;
824
825 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
826 ac_prev=dvidir ;;
827 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
828 dvidir=$ac_optarg ;;
c906108c
SS
829
830 -enable-* | --enable-*)
81ecdfbb 831 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 832 # Reject names that are not valid shell variable names.
81ecdfbb
RW
833 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
834 as_fn_error "invalid feature name: $ac_useropt"
835 ac_useropt_orig=$ac_useropt
836 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
837 case $ac_user_opts in
838 *"
839"enable_$ac_useropt"
840"*) ;;
841 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
842 ac_unrecognized_sep=', ';;
c906108c 843 esac
81ecdfbb 844 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
845
846 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
847 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
848 | --exec | --exe | --ex)
849 ac_prev=exec_prefix ;;
850 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
851 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
852 | --exec=* | --exe=* | --ex=*)
b7026657 853 exec_prefix=$ac_optarg ;;
c906108c
SS
854
855 -gas | --gas | --ga | --g)
856 # Obsolete; use --with-gas.
857 with_gas=yes ;;
858
b7026657
AC
859 -help | --help | --hel | --he | -h)
860 ac_init_help=long ;;
861 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
862 ac_init_help=recursive ;;
863 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
864 ac_init_help=short ;;
c906108c
SS
865
866 -host | --host | --hos | --ho)
b7026657 867 ac_prev=host_alias ;;
c906108c 868 -host=* | --host=* | --hos=* | --ho=*)
b7026657 869 host_alias=$ac_optarg ;;
c906108c 870
81ecdfbb
RW
871 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
872 ac_prev=htmldir ;;
873 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
874 | --ht=*)
875 htmldir=$ac_optarg ;;
876
c906108c
SS
877 -includedir | --includedir | --includedi | --included | --include \
878 | --includ | --inclu | --incl | --inc)
879 ac_prev=includedir ;;
880 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
881 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 882 includedir=$ac_optarg ;;
c906108c
SS
883
884 -infodir | --infodir | --infodi | --infod | --info | --inf)
885 ac_prev=infodir ;;
886 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 887 infodir=$ac_optarg ;;
c906108c
SS
888
889 -libdir | --libdir | --libdi | --libd)
890 ac_prev=libdir ;;
891 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 892 libdir=$ac_optarg ;;
c906108c
SS
893
894 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
895 | --libexe | --libex | --libe)
896 ac_prev=libexecdir ;;
897 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
898 | --libexe=* | --libex=* | --libe=*)
b7026657 899 libexecdir=$ac_optarg ;;
c906108c 900
81ecdfbb
RW
901 -localedir | --localedir | --localedi | --localed | --locale)
902 ac_prev=localedir ;;
903 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
904 localedir=$ac_optarg ;;
905
c906108c 906 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 907 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
908 ac_prev=localstatedir ;;
909 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 910 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 911 localstatedir=$ac_optarg ;;
c906108c
SS
912
913 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
914 ac_prev=mandir ;;
915 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 916 mandir=$ac_optarg ;;
c906108c
SS
917
918 -nfp | --nfp | --nf)
919 # Obsolete; use --without-fp.
920 with_fp=no ;;
921
922 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 923 | --no-cr | --no-c | -n)
c906108c
SS
924 no_create=yes ;;
925
926 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
927 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
928 no_recursion=yes ;;
929
930 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
931 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
932 | --oldin | --oldi | --old | --ol | --o)
933 ac_prev=oldincludedir ;;
934 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
935 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
936 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 937 oldincludedir=$ac_optarg ;;
c906108c
SS
938
939 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
940 ac_prev=prefix ;;
941 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 942 prefix=$ac_optarg ;;
c906108c
SS
943
944 -program-prefix | --program-prefix | --program-prefi | --program-pref \
945 | --program-pre | --program-pr | --program-p)
946 ac_prev=program_prefix ;;
947 -program-prefix=* | --program-prefix=* | --program-prefi=* \
948 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 949 program_prefix=$ac_optarg ;;
c906108c
SS
950
951 -program-suffix | --program-suffix | --program-suffi | --program-suff \
952 | --program-suf | --program-su | --program-s)
953 ac_prev=program_suffix ;;
954 -program-suffix=* | --program-suffix=* | --program-suffi=* \
955 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 956 program_suffix=$ac_optarg ;;
c906108c
SS
957
958 -program-transform-name | --program-transform-name \
959 | --program-transform-nam | --program-transform-na \
960 | --program-transform-n | --program-transform- \
961 | --program-transform | --program-transfor \
962 | --program-transfo | --program-transf \
963 | --program-trans | --program-tran \
964 | --progr-tra | --program-tr | --program-t)
965 ac_prev=program_transform_name ;;
966 -program-transform-name=* | --program-transform-name=* \
967 | --program-transform-nam=* | --program-transform-na=* \
968 | --program-transform-n=* | --program-transform-=* \
969 | --program-transform=* | --program-transfor=* \
970 | --program-transfo=* | --program-transf=* \
971 | --program-trans=* | --program-tran=* \
972 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 973 program_transform_name=$ac_optarg ;;
c906108c 974
81ecdfbb
RW
975 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
976 ac_prev=pdfdir ;;
977 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
978 pdfdir=$ac_optarg ;;
979
980 -psdir | --psdir | --psdi | --psd | --ps)
981 ac_prev=psdir ;;
982 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
983 psdir=$ac_optarg ;;
984
c906108c
SS
985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
986 | -silent | --silent | --silen | --sile | --sil)
987 silent=yes ;;
988
989 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
990 ac_prev=sbindir ;;
991 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
992 | --sbi=* | --sb=*)
b7026657 993 sbindir=$ac_optarg ;;
c906108c
SS
994
995 -sharedstatedir | --sharedstatedir | --sharedstatedi \
996 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
997 | --sharedst | --shareds | --shared | --share | --shar \
998 | --sha | --sh)
999 ac_prev=sharedstatedir ;;
1000 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1001 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1002 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1003 | --sha=* | --sh=*)
b7026657 1004 sharedstatedir=$ac_optarg ;;
c906108c
SS
1005
1006 -site | --site | --sit)
1007 ac_prev=site ;;
1008 -site=* | --site=* | --sit=*)
b7026657 1009 site=$ac_optarg ;;
eb2d80b4 1010
c906108c
SS
1011 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1012 ac_prev=srcdir ;;
1013 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1014 srcdir=$ac_optarg ;;
c906108c
SS
1015
1016 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1017 | --syscon | --sysco | --sysc | --sys | --sy)
1018 ac_prev=sysconfdir ;;
1019 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1020 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1021 sysconfdir=$ac_optarg ;;
c906108c
SS
1022
1023 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1024 ac_prev=target_alias ;;
c906108c 1025 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1026 target_alias=$ac_optarg ;;
c906108c
SS
1027
1028 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1029 verbose=yes ;;
1030
b7026657
AC
1031 -version | --version | --versio | --versi | --vers | -V)
1032 ac_init_version=: ;;
c906108c
SS
1033
1034 -with-* | --with-*)
81ecdfbb 1035 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1036 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error "invalid package name: $ac_useropt"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043"with_$ac_useropt"
1044"*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
c906108c 1047 esac
81ecdfbb 1048 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1049
1050 -without-* | --without-*)
81ecdfbb 1051 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1052 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error "invalid package name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1058 *"
1059"with_$ac_useropt"
1060"*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval with_$ac_useropt=no ;;
c906108c
SS
1065
1066 --x)
1067 # Obsolete; use --with-x.
1068 with_x=yes ;;
1069
1070 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1071 | --x-incl | --x-inc | --x-in | --x-i)
1072 ac_prev=x_includes ;;
1073 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1074 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1075 x_includes=$ac_optarg ;;
c906108c
SS
1076
1077 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1078 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1079 ac_prev=x_libraries ;;
1080 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1081 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1082 x_libraries=$ac_optarg ;;
c906108c 1083
81ecdfbb
RW
1084 -*) as_fn_error "unrecognized option: \`$ac_option'
1085Try \`$0 --help' for more information."
c906108c
SS
1086 ;;
1087
b7026657
AC
1088 *=*)
1089 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1090 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1091 case $ac_envvar in #(
1092 '' | [0-9]* | *[!_$as_cr_alnum]* )
1093 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1094 esac
1095 eval $ac_envvar=\$ac_optarg
b7026657
AC
1096 export $ac_envvar ;;
1097
c906108c 1098 *)
b7026657 1099 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1100 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1101 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1102 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b7026657 1103 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
1104 ;;
1105
1106 esac
1107done
1108
1109if test -n "$ac_prev"; then
b7026657 1110 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1111 as_fn_error "missing argument to $ac_option"
c906108c 1112fi
c906108c 1113
81ecdfbb
RW
1114if test -n "$ac_unrecognized_opts"; then
1115 case $enable_option_checking in
1116 no) ;;
1117 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1118 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1119 esac
81ecdfbb 1120fi
c906108c 1121
81ecdfbb
RW
1122# Check all directory arguments for consistency.
1123for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1124 datadir sysconfdir sharedstatedir localstatedir includedir \
1125 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1126 libdir localedir mandir
c906108c 1127do
81ecdfbb
RW
1128 eval ac_val=\$$ac_var
1129 # Remove trailing slashes.
1130 case $ac_val in
1131 */ )
1132 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1133 eval $ac_var=\$ac_val;;
1134 esac
1135 # Be sure to have absolute directory names.
b7026657 1136 case $ac_val in
81ecdfbb
RW
1137 [\\/$]* | ?:[\\/]* ) continue;;
1138 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1139 esac
81ecdfbb 1140 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1141done
1142
b7026657
AC
1143# There might be people who depend on the old broken behavior: `$host'
1144# used to hold the argument of --host etc.
1145# FIXME: To remove some day.
1146build=$build_alias
1147host=$host_alias
1148target=$target_alias
1149
1150# FIXME: To remove some day.
1151if test "x$host_alias" != x; then
1152 if test "x$build_alias" = x; then
1153 cross_compiling=maybe
81ecdfbb 1154 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b7026657
AC
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1157 cross_compiling=yes
1158 fi
1159fi
c906108c 1160
b7026657
AC
1161ac_tool_prefix=
1162test -n "$host_alias" && ac_tool_prefix=$host_alias-
1163
1164test "$silent" = yes && exec 6>/dev/null
c906108c 1165
c906108c 1166
81ecdfbb
RW
1167ac_pwd=`pwd` && test -n "$ac_pwd" &&
1168ac_ls_di=`ls -di .` &&
1169ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1170 as_fn_error "working directory cannot be determined"
1171test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1172 as_fn_error "pwd does not report name of working directory"
1173
1174
c906108c
SS
1175# Find the source files, if location was not specified.
1176if test -z "$srcdir"; then
1177 ac_srcdir_defaulted=yes
81ecdfbb
RW
1178 # Try the directory containing this script, then the parent directory.
1179 ac_confdir=`$as_dirname -- "$as_myself" ||
1180$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181 X"$as_myself" : 'X\(//\)[^/]' \| \
1182 X"$as_myself" : 'X\(//\)$' \| \
1183 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1184$as_echo X"$as_myself" |
1185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1186 s//\1/
1187 q
1188 }
1189 /^X\(\/\/\)[^/].*/{
1190 s//\1/
1191 q
1192 }
1193 /^X\(\/\/\)$/{
1194 s//\1/
1195 q
1196 }
1197 /^X\(\/\).*/{
1198 s//\1/
1199 q
1200 }
1201 s/.*/./; q'`
c906108c 1202 srcdir=$ac_confdir
81ecdfbb 1203 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1204 srcdir=..
1205 fi
1206else
1207 ac_srcdir_defaulted=no
1208fi
81ecdfbb
RW
1209if test ! -r "$srcdir/$ac_unique_file"; then
1210 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1211 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1212fi
1213ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1214ac_abs_confdir=`(
1215 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1216 pwd)`
1217# When building in place, set srcdir=.
1218if test "$ac_abs_confdir" = "$ac_pwd"; then
1219 srcdir=.
1220fi
1221# Remove unnecessary trailing slashes from srcdir.
1222# Double slashes in file names in object file debugging info
1223# mess up M-x gdb in Emacs.
1224case $srcdir in
1225*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1226esac
1227for ac_var in $ac_precious_vars; do
1228 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1229 eval ac_env_${ac_var}_value=\$${ac_var}
1230 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1232done
c906108c 1233
b7026657
AC
1234#
1235# Report the --help message.
1236#
1237if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh.
1240 cat <<_ACEOF
1241\`configure' configures this package to adapt to many kinds of systems.
1242
1243Usage: $0 [OPTION]... [VAR=VALUE]...
1244
1245To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246VAR=VALUE. See below for descriptions of some of the useful variables.
1247
1248Defaults for the options are specified in brackets.
1249
1250Configuration:
1251 -h, --help display this help and exit
1252 --help=short display options specific to this package
1253 --help=recursive display the short help of all the included packages
1254 -V, --version display version information and exit
1255 -q, --quiet, --silent do not print \`checking...' messages
1256 --cache-file=FILE cache test results in FILE [disabled]
1257 -C, --config-cache alias for \`--cache-file=config.cache'
1258 -n, --no-create do not create output files
1259 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1260
b7026657
AC
1261Installation directories:
1262 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1263 [$ac_default_prefix]
b7026657 1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1265 [PREFIX]
b7026657
AC
1266
1267By default, \`make install' will install all the files in
1268\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270for instance \`--prefix=\$HOME'.
1271
1272For better control, use the options below.
1273
1274Fine tuning of the installation directories:
81ecdfbb
RW
1275 --bindir=DIR user executables [EPREFIX/bin]
1276 --sbindir=DIR system admin executables [EPREFIX/sbin]
1277 --libexecdir=DIR program executables [EPREFIX/libexec]
1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1294_ACEOF
1295
1296 cat <<\_ACEOF
1297
1298Program names:
1299 --program-prefix=PREFIX prepend PREFIX to installed program names
1300 --program-suffix=SUFFIX append SUFFIX to installed program names
1301 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1302
1303System types:
1304 --build=BUILD configure for building on BUILD [guessed]
1305 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1306 --target=TARGET configure for building compilers for TARGET [HOST]
1307_ACEOF
c906108c 1308fi
c906108c 1309
b7026657
AC
1310if test -n "$ac_init_help"; then
1311
1312 cat <<\_ACEOF
1313
1314Optional Features:
81ecdfbb 1315 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2232061b
MF
1318 --enable-werror treat compile warnings as errors
1319 --enable-build-warnings enable build-time compiler warnings if gcc is used
1320 --enable-sim-build-warnings
1321 enable SIM specific build-time compiler warnings if
1322 gcc is used
b7026657
AC
1323
1324Some influential environment variables:
1325 CC C compiler command
1326 CFLAGS C compiler flags
1327 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1328 nonstandard directory <lib dir>
81ecdfbb
RW
1329 LIBS libraries to pass to the linker, e.g. -l<library>
1330 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1331 you have headers in a nonstandard directory <include dir>
b7026657
AC
1332 CPP C preprocessor
1333
1334Use these variables to override the choices made by `configure' or to help
1335it to find libraries and programs with nonstandard names/locations.
1336
81ecdfbb 1337Report bugs to the package provider.
b7026657 1338_ACEOF
81ecdfbb 1339ac_status=$?
c906108c
SS
1340fi
1341
b7026657
AC
1342if test "$ac_init_help" = "recursive"; then
1343 # If there are subdirs, report their specific --help.
b7026657 1344 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1345 test -d "$ac_dir" ||
1346 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1347 continue
b7026657
AC
1348 ac_builddir=.
1349
81ecdfbb
RW
1350case "$ac_dir" in
1351.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352*)
1353 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1354 # A ".." for each directory in $ac_dir_suffix.
1355 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1356 case $ac_top_builddir_sub in
1357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1359 esac ;;
1360esac
1361ac_abs_top_builddir=$ac_pwd
1362ac_abs_builddir=$ac_pwd$ac_dir_suffix
1363# for backward compatibility:
1364ac_top_builddir=$ac_top_build_prefix
c906108c 1365
b7026657 1366case $srcdir in
81ecdfbb 1367 .) # We are building in place.
b7026657 1368 ac_srcdir=.
81ecdfbb
RW
1369 ac_top_srcdir=$ac_top_builddir_sub
1370 ac_abs_top_srcdir=$ac_pwd ;;
1371 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1372 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1373 ac_top_srcdir=$srcdir
1374 ac_abs_top_srcdir=$srcdir ;;
1375 *) # Relative name.
1376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1377 ac_top_srcdir=$ac_top_build_prefix$srcdir
1378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1379esac
81ecdfbb
RW
1380ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1381
1382 cd "$ac_dir" || { ac_status=$?; continue; }
1383 # Check for guested configure.
1384 if test -f "$ac_srcdir/configure.gnu"; then
1385 echo &&
1386 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1387 elif test -f "$ac_srcdir/configure"; then
1388 echo &&
1389 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1390 else
81ecdfbb
RW
1391 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1392 fi || ac_status=$?
1393 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657 1394 done
c906108c 1395fi
c906108c 1396
81ecdfbb 1397test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1398if $ac_init_version; then
1399 cat <<\_ACEOF
81ecdfbb
RW
1400configure
1401generated by GNU Autoconf 2.64
c906108c 1402
81ecdfbb 1403Copyright (C) 2009 Free Software Foundation, Inc.
b7026657
AC
1404This configure script is free software; the Free Software Foundation
1405gives unlimited permission to copy, distribute and modify it.
1406_ACEOF
81ecdfbb 1407 exit
c906108c 1408fi
b7026657 1409
81ecdfbb
RW
1410## ------------------------ ##
1411## Autoconf initialization. ##
1412## ------------------------ ##
b7026657 1413
81ecdfbb
RW
1414# ac_fn_c_try_compile LINENO
1415# --------------------------
1416# Try to compile conftest.$ac_ext, and return whether this succeeded.
1417ac_fn_c_try_compile ()
b7026657 1418{
81ecdfbb
RW
1419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1420 rm -f conftest.$ac_objext
1421 if { { ac_try="$ac_compile"
1422case "(($ac_try" in
1423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1424 *) ac_try_echo=$ac_try;;
1425esac
1426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1427$as_echo "$ac_try_echo"; } >&5
1428 (eval "$ac_compile") 2>conftest.err
1429 ac_status=$?
1430 if test -s conftest.err; then
1431 grep -v '^ *+' conftest.err >conftest.er1
1432 cat conftest.er1 >&5
1433 mv -f conftest.er1 conftest.err
1434 fi
1435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1436 test $ac_status = 0; } && {
1437 test -z "$ac_c_werror_flag" ||
1438 test ! -s conftest.err
1439 } && test -s conftest.$ac_objext; then :
1440 ac_retval=0
1441else
1442 $as_echo "$as_me: failed program was:" >&5
1443sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1444
81ecdfbb
RW
1445 ac_retval=1
1446fi
1447 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1448 return $ac_retval
b7026657 1449
81ecdfbb 1450} # ac_fn_c_try_compile
b7026657 1451
81ecdfbb
RW
1452# ac_fn_c_try_cpp LINENO
1453# ----------------------
1454# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1455ac_fn_c_try_cpp ()
1456{
1457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1458 if { { ac_try="$ac_cpp conftest.$ac_ext"
1459case "(($ac_try" in
1460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1461 *) ac_try_echo=$ac_try;;
1462esac
1463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1464$as_echo "$ac_try_echo"; } >&5
1465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1466 ac_status=$?
1467 if test -s conftest.err; then
1468 grep -v '^ *+' conftest.err >conftest.er1
1469 cat conftest.er1 >&5
1470 mv -f conftest.er1 conftest.err
1471 fi
1472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1473 test $ac_status = 0; } >/dev/null && {
1474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1475 test ! -s conftest.err
1476 }; then :
1477 ac_retval=0
1478else
1479 $as_echo "$as_me: failed program was:" >&5
1480sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1481
81ecdfbb
RW
1482 ac_retval=1
1483fi
1484 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1485 return $ac_retval
b7026657 1486
81ecdfbb
RW
1487} # ac_fn_c_try_cpp
1488
1489# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1490# -------------------------------------------------------
1491# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1492# the include files in INCLUDES and setting the cache variable VAR
1493# accordingly.
1494ac_fn_c_check_header_mongrel ()
1495{
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1499$as_echo_n "checking for $2... " >&6; }
1500if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1501 $as_echo_n "(cached) " >&6
1502fi
1503eval ac_res=\$$3
1504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1505$as_echo "$ac_res" >&6; }
1506else
1507 # Is the header compilable?
1508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1509$as_echo_n "checking $2 usability... " >&6; }
1510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1511/* end confdefs.h. */
1512$4
1513#include <$2>
1514_ACEOF
1515if ac_fn_c_try_compile "$LINENO"; then :
1516 ac_header_compiler=yes
1517else
1518 ac_header_compiler=no
1519fi
1520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1522$as_echo "$ac_header_compiler" >&6; }
1523
1524# Is the header present?
1525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1526$as_echo_n "checking $2 presence... " >&6; }
1527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1528/* end confdefs.h. */
1529#include <$2>
1530_ACEOF
1531if ac_fn_c_try_cpp "$LINENO"; then :
1532 ac_header_preproc=yes
1533else
1534 ac_header_preproc=no
1535fi
1536rm -f conftest.err conftest.$ac_ext
1537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1538$as_echo "$ac_header_preproc" >&6; }
1539
1540# So? What about this header?
1541case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1542 yes:no: )
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1544$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1546$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1547 ;;
1548 no:yes:* )
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1550$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1552$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1554$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1556$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1558$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1559 ;;
1560esac
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1562$as_echo_n "checking for $2... " >&6; }
1563if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1564 $as_echo_n "(cached) " >&6
1565else
1566 eval "$3=\$ac_header_compiler"
1567fi
1568eval ac_res=\$$3
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1570$as_echo "$ac_res" >&6; }
1571fi
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573
1574} # ac_fn_c_check_header_mongrel
1575
1576# ac_fn_c_try_run LINENO
1577# ----------------------
1578# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1579# that executables *can* be run.
1580ac_fn_c_try_run ()
1581{
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { { ac_try="$ac_link"
1584case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587esac
1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589$as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_link") 2>&5
1591 ac_status=$?
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1594 { { case "(($ac_try" in
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1597esac
1598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599$as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_try") 2>&5
1601 ac_status=$?
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; }; }; then :
1604 ac_retval=0
1605else
1606 $as_echo "$as_me: program exited with status $ac_status" >&5
1607 $as_echo "$as_me: failed program was:" >&5
1608sed 's/^/| /' conftest.$ac_ext >&5
1609
1610 ac_retval=$ac_status
1611fi
1612 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614 return $ac_retval
1615
1616} # ac_fn_c_try_run
1617
1618# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1619# -------------------------------------------------------
1620# Tests whether HEADER exists and can be compiled using the include files in
1621# INCLUDES, setting the cache variable VAR accordingly.
1622ac_fn_c_check_header_compile ()
1623{
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626$as_echo_n "checking for $2... " >&6; }
1627if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1628 $as_echo_n "(cached) " >&6
1629else
1630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631/* end confdefs.h. */
1632$4
1633#include <$2>
1634_ACEOF
1635if ac_fn_c_try_compile "$LINENO"; then :
1636 eval "$3=yes"
1637else
1638 eval "$3=no"
1639fi
1640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641fi
1642eval ac_res=\$$3
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; }
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646
1647} # ac_fn_c_check_header_compile
1648
1649# ac_fn_c_try_link LINENO
1650# -----------------------
1651# Try to link conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_link ()
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest$ac_exeext
1656 if { { ac_try="$ac_link"
1657case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662$as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest$ac_exeext && {
1675 test "$cross_compiling" = yes ||
1676 $as_test_x conftest$ac_exeext
1677 }; then :
1678 ac_retval=0
1679else
1680 $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1
1684fi
1685 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1686 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1687 # interfere with the next link command; also delete a directory that is
1688 # left behind by Apple's compiler. We do this before executing the actions.
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691 return $ac_retval
1692
1693} # ac_fn_c_try_link
1694cat >config.log <<_ACEOF
1695This file contains any messages produced by compilers while
1696running configure, to aid debugging if configure makes a mistake.
1697
1698It was created by $as_me, which was
1699generated by GNU Autoconf 2.64. Invocation command line was
1700
1701 $ $0 $@
1702
1703_ACEOF
1704exec 5>>config.log
1705{
1706cat <<_ASUNAME
1707## --------- ##
1708## Platform. ##
1709## --------- ##
1710
1711hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1712uname -m = `(uname -m) 2>/dev/null || echo unknown`
1713uname -r = `(uname -r) 2>/dev/null || echo unknown`
1714uname -s = `(uname -s) 2>/dev/null || echo unknown`
1715uname -v = `(uname -v) 2>/dev/null || echo unknown`
1716
1717/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1718/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1719
1720/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1721/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1722/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1723/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1724/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1725/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1726/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1727
1728_ASUNAME
1729
1730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731for as_dir in $PATH
1732do
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 $as_echo "PATH: $as_dir"
1736 done
1737IFS=$as_save_IFS
1738
1739} >&5
1740
1741cat >&5 <<_ACEOF
1742
1743
1744## ----------- ##
1745## Core tests. ##
1746## ----------- ##
b7026657
AC
1747
1748_ACEOF
1749
1750
1751# Keep a trace of the command line.
1752# Strip out --no-create and --no-recursion so they do not pile up.
1753# Strip out --silent because we don't want to record it for future runs.
1754# Also quote any args containing shell meta-characters.
1755# Make two passes to allow for proper duplicate-argument suppression.
1756ac_configure_args=
1757ac_configure_args0=
1758ac_configure_args1=
b7026657
AC
1759ac_must_keep_next=false
1760for ac_pass in 1 2
1761do
1762 for ac_arg
1763 do
1764 case $ac_arg in
1765 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1767 | -silent | --silent | --silen | --sile | --sil)
1768 continue ;;
81ecdfbb
RW
1769 *\'*)
1770 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
1771 esac
1772 case $ac_pass in
81ecdfbb 1773 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 1774 2)
81ecdfbb 1775 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
1776 if test $ac_must_keep_next = true; then
1777 ac_must_keep_next=false # Got value, back to normal.
1778 else
1779 case $ac_arg in
1780 *=* | --config-cache | -C | -disable-* | --disable-* \
1781 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1782 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1783 | -with-* | --with-* | -without-* | --without-* | --x)
1784 case "$ac_configure_args0 " in
1785 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1786 esac
1787 ;;
1788 -* ) ac_must_keep_next=true ;;
1789 esac
1790 fi
81ecdfbb 1791 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
1792 ;;
1793 esac
1794 done
1795done
81ecdfbb
RW
1796{ ac_configure_args0=; unset ac_configure_args0;}
1797{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
1798
1799# When interrupted or exit'd, cleanup temporary files, and complete
1800# config.log. We remove comments because anyway the quotes in there
1801# would cause problems or look ugly.
81ecdfbb
RW
1802# WARNING: Use '\'' to represent an apostrophe within the trap.
1803# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
1804trap 'exit_status=$?
1805 # Save into config.log some information that might help in debugging.
1806 {
1807 echo
1808
1809 cat <<\_ASBOX
1810## ---------------- ##
1811## Cache variables. ##
1812## ---------------- ##
1813_ASBOX
1814 echo
1815 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1816(
1817 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1818 eval ac_val=\$$ac_var
1819 case $ac_val in #(
1820 *${as_nl}*)
1821 case $ac_var in #(
1822 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1823$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1824 esac
1825 case $ac_var in #(
1826 _ | IFS | as_nl) ;; #(
1827 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1828 *) { eval $ac_var=; unset $ac_var;} ;;
1829 esac ;;
1830 esac
1831 done
b7026657 1832 (set) 2>&1 |
81ecdfbb
RW
1833 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1834 *${as_nl}ac_space=\ *)
b7026657 1835 sed -n \
81ecdfbb
RW
1836 "s/'\''/'\''\\\\'\'''\''/g;
1837 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1838 ;; #(
b7026657 1839 *)
81ecdfbb 1840 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 1841 ;;
81ecdfbb
RW
1842 esac |
1843 sort
1844)
b7026657
AC
1845 echo
1846
1847 cat <<\_ASBOX
1848## ----------------- ##
1849## Output variables. ##
1850## ----------------- ##
1851_ASBOX
1852 echo
1853 for ac_var in $ac_subst_vars
1854 do
81ecdfbb
RW
1855 eval ac_val=\$$ac_var
1856 case $ac_val in
1857 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858 esac
1859 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1860 done | sort
1861 echo
1862
1863 if test -n "$ac_subst_files"; then
1864 cat <<\_ASBOX
81ecdfbb
RW
1865## ------------------- ##
1866## File substitutions. ##
1867## ------------------- ##
b7026657
AC
1868_ASBOX
1869 echo
1870 for ac_var in $ac_subst_files
1871 do
81ecdfbb
RW
1872 eval ac_val=\$$ac_var
1873 case $ac_val in
1874 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1875 esac
1876 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1877 done | sort
1878 echo
1879 fi
1880
1881 if test -s confdefs.h; then
1882 cat <<\_ASBOX
1883## ----------- ##
1884## confdefs.h. ##
1885## ----------- ##
1886_ASBOX
1887 echo
81ecdfbb 1888 cat confdefs.h
b7026657
AC
1889 echo
1890 fi
1891 test "$ac_signal" != 0 &&
81ecdfbb
RW
1892 $as_echo "$as_me: caught signal $ac_signal"
1893 $as_echo "$as_me: exit $exit_status"
b7026657 1894 } >&5
81ecdfbb
RW
1895 rm -f core *.core core.conftest.* &&
1896 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 1897 exit $exit_status
81ecdfbb 1898' 0
b7026657 1899for ac_signal in 1 2 13 15; do
81ecdfbb 1900 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
1901done
1902ac_signal=0
1903
1904# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1905rm -f -r conftest* confdefs.h
1906
1907$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
1908
1909# Predefined preprocessor variables.
1910
1911cat >>confdefs.h <<_ACEOF
1912#define PACKAGE_NAME "$PACKAGE_NAME"
1913_ACEOF
1914
b7026657
AC
1915cat >>confdefs.h <<_ACEOF
1916#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917_ACEOF
1918
b7026657
AC
1919cat >>confdefs.h <<_ACEOF
1920#define PACKAGE_VERSION "$PACKAGE_VERSION"
1921_ACEOF
1922
b7026657
AC
1923cat >>confdefs.h <<_ACEOF
1924#define PACKAGE_STRING "$PACKAGE_STRING"
1925_ACEOF
1926
b7026657
AC
1927cat >>confdefs.h <<_ACEOF
1928#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1929_ACEOF
1930
81ecdfbb
RW
1931cat >>confdefs.h <<_ACEOF
1932#define PACKAGE_URL "$PACKAGE_URL"
1933_ACEOF
1934
b7026657
AC
1935
1936# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
1937# Prefer an explicitly selected file to automatically selected ones.
1938ac_site_file1=NONE
1939ac_site_file2=NONE
1940if test -n "$CONFIG_SITE"; then
1941 ac_site_file1=$CONFIG_SITE
1942elif test "x$prefix" != xNONE; then
1943 ac_site_file1=$prefix/share/config.site
1944 ac_site_file2=$prefix/etc/config.site
1945else
1946 ac_site_file1=$ac_default_prefix/share/config.site
1947 ac_site_file2=$ac_default_prefix/etc/config.site
b7026657 1948fi
81ecdfbb
RW
1949for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1950do
1951 test "x$ac_site_file" = xNONE && continue
b7026657 1952 if test -r "$ac_site_file"; then
81ecdfbb
RW
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1954$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657
AC
1955 sed 's/^/| /' "$ac_site_file" >&5
1956 . "$ac_site_file"
1957 fi
1958done
1959
1960if test -r "$cache_file"; then
1961 # Some versions of bash will fail to source /dev/null (special
1962 # files actually), so we avoid doing that.
1963 if test -f "$cache_file"; then
81ecdfbb
RW
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1965$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 1966 case $cache_file in
81ecdfbb
RW
1967 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1968 *) . "./$cache_file";;
b7026657
AC
1969 esac
1970 fi
1971else
81ecdfbb
RW
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1973$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
1974 >$cache_file
1975fi
1976
1977# Check that the precious variables saved in the cache have kept the same
1978# value.
1979ac_cache_corrupted=false
81ecdfbb 1980for ac_var in $ac_precious_vars; do
b7026657
AC
1981 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1982 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
1983 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1984 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
1985 case $ac_old_set,$ac_new_set in
1986 set,)
81ecdfbb
RW
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1988$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
1989 ac_cache_corrupted=: ;;
1990 ,set)
81ecdfbb
RW
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1992$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
1993 ac_cache_corrupted=: ;;
1994 ,);;
1995 *)
1996 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
1997 # differences in whitespace do not lead to failure.
1998 ac_old_val_w=`echo x $ac_old_val`
1999 ac_new_val_w=`echo x $ac_new_val`
2000 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2002$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2003 ac_cache_corrupted=:
2004 else
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2006$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2007 eval $ac_var=\$ac_old_val
2008 fi
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2010$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2012$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2013 fi;;
2014 esac
2015 # Pass precious variables to config.status.
2016 if test "$ac_new_set" = set; then
2017 case $ac_new_val in
81ecdfbb 2018 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2019 *) ac_arg=$ac_var=$ac_new_val ;;
2020 esac
2021 case " $ac_configure_args " in
2022 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2023 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
2024 esac
2025 fi
2026done
2027if $ac_cache_corrupted; then
81ecdfbb
RW
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2031$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2032 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b7026657 2033fi
81ecdfbb
RW
2034## -------------------- ##
2035## Main body of script. ##
2036## -------------------- ##
b7026657
AC
2037
2038ac_ext=c
2039ac_cpp='$CPP $CPPFLAGS'
2040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042ac_compiler_gnu=$ac_cv_c_compiler_gnu
2043
6ffe910a
MF
2044
2045# This file contains common code used by all simulators.
2046#
2047# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2048# directory. It is intended to be invoked before any target specific stuff.
2049# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2050# It is intended to be invoked last.
2051#
306f4178 2052# The simulator's configure.ac should look like:
6ffe910a
MF
2053#
2054# dnl Process this file with autoconf to produce a configure script.
2055# AC_PREREQ(2.64)dnl
2056# AC_INIT(Makefile.in)
2057# sinclude(../common/aclocal.m4)
2058#
2059# SIM_AC_COMMON
2060#
2061# ... target specific stuff ...
2062#
2063# SIM_AC_OUTPUT
2064
2065# Include global overrides and fixes for Autoconf.
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092# _AC_CHECK_DECL_BODY
2093# -------------------
2094# Shell function body for AC_CHECK_DECL.
2095# _AC_CHECK_DECL_BODY
2096
2097# _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2098# INCLUDES)
2099# -------------------------------------------------------------
2100# Helper to AC_CHECK_DECLS, which generates the check for a single
2101# SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2102# ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
6bb11ab3
L
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
6bb11ab3
L
2114# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2115#
2116# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2117# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2118# Written by Gordon Matzigkeit, 1996
2119#
2120# This file is free software; the Free Software Foundation gives
2121# unlimited permission to copy and/or distribute it, with or without
2122# modifications, as long as this notice is preserved.
2123
2124
2125
2126# serial 56 LT_INIT
2127
2128
2129# LT_PREREQ(VERSION)
2130# ------------------
2131# Complain and exit if this libtool version is less that VERSION.
2132
2133
2134
2135# _LT_CHECK_BUILDDIR
2136# ------------------
2137# Complain if the absolute build directory name contains unusual characters
2138
2139
2140
2141# LT_INIT([OPTIONS])
2142# ------------------
2143# LT_INIT
2144
2145# Old names:
2146# This is what autoupdate's m4 run will expand. It fires
2147# the warning (with _au_warn_XXX), outputs it into the
2148# updated configure.ac (with AC_DIAGNOSE), and then outputs
2149# the replacement expansion.
2150
2151
2152# This is an auxiliary macro that is also run when
2153# autoupdate runs m4. It simply calls m4_warning, but
2154# we need a wrapper so that each warning is emitted only
2155# once. We break the quoting in m4_warning's argument in
2156# order to expand this macro's arguments, not AU_DEFUN's.
2157
2158
2159# Finally, this is the expansion that is picked up by
2160# autoconf. It tells the user to run autoupdate, and
2161# then outputs the replacement expansion. We do not care
2162# about autoupdate's warning because that contains
2163# information on what to do *after* running autoupdate.
2164
2165# This is what autoupdate's m4 run will expand. It fires
2166# the warning (with _au_warn_XXX), outputs it into the
2167# updated configure.ac (with AC_DIAGNOSE), and then outputs
2168# the replacement expansion.
2169
2170
2171# This is an auxiliary macro that is also run when
2172# autoupdate runs m4. It simply calls m4_warning, but
2173# we need a wrapper so that each warning is emitted only
2174# once. We break the quoting in m4_warning's argument in
2175# order to expand this macro's arguments, not AU_DEFUN's.
2176
2177
2178# Finally, this is the expansion that is picked up by
2179# autoconf. It tells the user to run autoupdate, and
2180# then outputs the replacement expansion. We do not care
2181# about autoupdate's warning because that contains
2182# information on what to do *after* running autoupdate.
2183
2184
2185
2186# _LT_CC_BASENAME(CC)
2187# -------------------
2188# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2189
2190
2191
2192# _LT_FILEUTILS_DEFAULTS
2193# ----------------------
2194# It is okay to use these file commands and assume they have been set
2195# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2196# _LT_FILEUTILS_DEFAULTS
2197
2198
2199# _LT_SETUP
2200# ---------
2201# _LT_SETUP
2202
2203
2204# _LT_PREPARE_SED_QUOTE_VARS
2205# --------------------------
2206# Define a few sed substitution that help us do robust quoting.
2207
2208
2209# _LT_PROG_LTMAIN
2210# ---------------
2211# Note that this code is called both from `configure', and `config.status'
2212# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2213# `config.status' has no value for ac_aux_dir unless we are using Automake,
2214# so we pass a copy along to make sure it has a sensible value anyway.
2215# _LT_PROG_LTMAIN
2216
2217
2218## ------------------------------------- ##
2219## Accumulate code for creating libtool. ##
2220## ------------------------------------- ##
2221
2222# So that we can recreate a full libtool script including additional
2223# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2224# in macros and then make a single call at the end using the `libtool'
2225# label.
2226
2227
2228# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2229# ----------------------------------------
2230# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2231
2232
2233# Initialize.
2234
2235
2236
2237# _LT_CONFIG_LIBTOOL([COMMANDS])
2238# ------------------------------
2239# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2240
2241
2242# Initialize.
2243
2244
2245
2246# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2247# -----------------------------------------------------
2248
2249
2250
2251# _LT_FORMAT_COMMENT([COMMENT])
2252# -----------------------------
2253# Add leading comment marks to the start of each line, and a trailing
2254# full-stop to the whole comment if one is not present already.
2255
2256
2257
2258
2259## ------------------------ ##
2260## FIXME: Eliminate VARNAME ##
2261## ------------------------ ##
2262
2263
2264# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2265# -------------------------------------------------------------------
2266# CONFIGNAME is the name given to the value in the libtool script.
2267# VARNAME is the (base) name used in the configure script.
2268# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2269# VARNAME. Any other value will be used directly.
2270
2271
2272
2273# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2274# --------------------------------------------------------
2275
2276
2277
2278# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2279# ------------------------------------------------
2280
2281
2282
2283# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2284# ---------------------------------------------------------
2285
2286
2287
2288# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2289# --------------------------------------------------
2290
2291
2292
2293# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2294# ---------------------------------------------------
2295
2296
2297
2298# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2299# ---------------------------------------------------
2300
2301
2302
2303
2304# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2305# ------------------------------------------------
2306
2307
2308
2309
2310# _LT_CONFIG_STATUS_DECLARE([VARNAME])
2311# ------------------------------------
2312# Quote a variable value, and forward it to `config.status' so that its
2313# declaration there will have the same value as in `configure'. VARNAME
2314# must have a single quote delimited value for this to work.
2315
2316
2317
2318# _LT_CONFIG_STATUS_DECLARATIONS
2319# ------------------------------
2320# We delimit libtool config variables with single quotes, so when
2321# we write them to config.status, we have to be sure to quote all
2322# embedded single quotes properly. In configure, this macro expands
2323# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2324#
2325# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2326
2327
2328
2329# _LT_LIBTOOL_TAGS
2330# ----------------
2331# Output comment and list of tags supported by the script
2332
2333
2334
2335# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2336# -----------------------------------
2337# Extract the dictionary values for VARNAME (optionally with TAG) and
2338# expand to a commented shell variable setting:
2339#
2340# # Some comment about what VAR is for.
2341# visible_name=$lt_internal_name
2342
2343
2344
2345# _LT_LIBTOOL_CONFIG_VARS
2346# -----------------------
2347# Produce commented declarations of non-tagged libtool config variables
2348# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2349# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2350# section) are produced by _LT_LIBTOOL_TAG_VARS.
2351
2352
2353
2354# _LT_LIBTOOL_TAG_VARS(TAG)
2355# -------------------------
2356
2357
2358
2359# _LT_TAGVAR(VARNAME, [TAGNAME])
2360# ------------------------------
2361
2362
2363
2364# _LT_CONFIG_COMMANDS
2365# -------------------
2366# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2367# variables for single and double quote escaping we saved from calls
2368# to _LT_DECL, we can put quote escaped variables declarations
2369# into `config.status', and then the shell code to quote escape them in
2370# for loops in `config.status'. Finally, any additional code accumulated
2371# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2372#_LT_CONFIG_COMMANDS
2373
2374
2375# Initialize.
2376
2377
2378# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2379# ------------------------------------
2380# Generate a child script FILE with all initialization necessary to
2381# reuse the environment learned by the parent script, and make the
2382# file executable. If COMMENT is supplied, it is inserted after the
2383# `#!' sequence but before initialization text begins. After this
2384# macro, additional text can be appended to FILE to form the body of
2385# the child script. The macro ends with non-zero status if the
2386# file could not be fully written (such as if the disk is full).
2387# _LT_GENERATED_FILE_INIT
2388
2389# LT_OUTPUT
2390# ---------
2391# This macro allows early generation of the libtool script (before
2392# AC_OUTPUT is called), incase it is used in configure for compilation
2393# tests.
2394# LT_OUTPUT
2395
2396
2397# _LT_CONFIG(TAG)
2398# ---------------
2399# If TAG is the built-in tag, create an initial libtool script with a
2400# default configuration from the untagged config vars. Otherwise add code
2401# to config.status for appending the configuration named by TAG from the
2402# matching tagged config vars.
2403# _LT_CONFIG
2404
2405
2406# LT_SUPPORTED_TAG(TAG)
2407# ---------------------
2408# Trace this macro to discover what tags are supported by the libtool
2409# --tag option, using:
2410# autoconf --trace 'LT_SUPPORTED_TAG:$1'
2411
2412
2413
2414# C support is built-in for now
2415
2416
2417
2418
2419# LT_LANG(LANG)
2420# -------------
2421# Enable libtool support for the given language if not already enabled.
2422# LT_LANG
2423
2424
2425# _LT_LANG(LANGNAME)
2426# ------------------
2427# _LT_LANG
2428
2429
2430# _LT_LANG_DEFAULT_CONFIG
2431# -----------------------
2432# _LT_LANG_DEFAULT_CONFIG
2433
2434# Obsolete macros:
2435# This is what autoupdate's m4 run will expand. It fires
2436# the warning (with _au_warn_XXX), outputs it into the
2437# updated configure.ac (with AC_DIAGNOSE), and then outputs
2438# the replacement expansion.
2439
2440
2441# This is an auxiliary macro that is also run when
2442# autoupdate runs m4. It simply calls m4_warning, but
2443# we need a wrapper so that each warning is emitted only
2444# once. We break the quoting in m4_warning's argument in
2445# order to expand this macro's arguments, not AU_DEFUN's.
2446
2447
2448# Finally, this is the expansion that is picked up by
2449# autoconf. It tells the user to run autoupdate, and
2450# then outputs the replacement expansion. We do not care
2451# about autoupdate's warning because that contains
2452# information on what to do *after* running autoupdate.
2453
2454# This is what autoupdate's m4 run will expand. It fires
2455# the warning (with _au_warn_XXX), outputs it into the
2456# updated configure.ac (with AC_DIAGNOSE), and then outputs
2457# the replacement expansion.
2458
2459
2460# This is an auxiliary macro that is also run when
2461# autoupdate runs m4. It simply calls m4_warning, but
2462# we need a wrapper so that each warning is emitted only
2463# once. We break the quoting in m4_warning's argument in
2464# order to expand this macro's arguments, not AU_DEFUN's.
2465
2466
2467# Finally, this is the expansion that is picked up by
2468# autoconf. It tells the user to run autoupdate, and
2469# then outputs the replacement expansion. We do not care
2470# about autoupdate's warning because that contains
2471# information on what to do *after* running autoupdate.
2472
2473# This is what autoupdate's m4 run will expand. It fires
2474# the warning (with _au_warn_XXX), outputs it into the
2475# updated configure.ac (with AC_DIAGNOSE), and then outputs
2476# the replacement expansion.
2477
2478
2479# This is an auxiliary macro that is also run when
2480# autoupdate runs m4. It simply calls m4_warning, but
2481# we need a wrapper so that each warning is emitted only
2482# once. We break the quoting in m4_warning's argument in
2483# order to expand this macro's arguments, not AU_DEFUN's.
2484
2485
2486# Finally, this is the expansion that is picked up by
2487# autoconf. It tells the user to run autoupdate, and
2488# then outputs the replacement expansion. We do not care
2489# about autoupdate's warning because that contains
2490# information on what to do *after* running autoupdate.
2491
2492# This is what autoupdate's m4 run will expand. It fires
2493# the warning (with _au_warn_XXX), outputs it into the
2494# updated configure.ac (with AC_DIAGNOSE), and then outputs
2495# the replacement expansion.
2496
2497
2498# This is an auxiliary macro that is also run when
2499# autoupdate runs m4. It simply calls m4_warning, but
2500# we need a wrapper so that each warning is emitted only
2501# once. We break the quoting in m4_warning's argument in
2502# order to expand this macro's arguments, not AU_DEFUN's.
2503
2504
2505# Finally, this is the expansion that is picked up by
2506# autoconf. It tells the user to run autoupdate, and
2507# then outputs the replacement expansion. We do not care
2508# about autoupdate's warning because that contains
2509# information on what to do *after* running autoupdate.
2510
2511# This is what autoupdate's m4 run will expand. It fires
2512# the warning (with _au_warn_XXX), outputs it into the
2513# updated configure.ac (with AC_DIAGNOSE), and then outputs
2514# the replacement expansion.
2515
2516
2517# This is an auxiliary macro that is also run when
2518# autoupdate runs m4. It simply calls m4_warning, but
2519# we need a wrapper so that each warning is emitted only
2520# once. We break the quoting in m4_warning's argument in
2521# order to expand this macro's arguments, not AU_DEFUN's.
2522
2523
2524# Finally, this is the expansion that is picked up by
2525# autoconf. It tells the user to run autoupdate, and
2526# then outputs the replacement expansion. We do not care
2527# about autoupdate's warning because that contains
2528# information on what to do *after* running autoupdate.
2529
2530
2531
2532# _LT_TAG_COMPILER
2533# ----------------
2534# _LT_TAG_COMPILER
2535
2536
2537# _LT_COMPILER_BOILERPLATE
2538# ------------------------
2539# Check for compiler boilerplate output or warnings with
2540# the simple compiler test code.
2541# _LT_COMPILER_BOILERPLATE
2542
2543
2544# _LT_LINKER_BOILERPLATE
2545# ----------------------
2546# Check for linker boilerplate output or warnings with
2547# the simple link test code.
2548# _LT_LINKER_BOILERPLATE
2549
2550# _LT_REQUIRED_DARWIN_CHECKS
2551# -------------------------
2552
2553
2554
2555# _LT_DARWIN_LINKER_FEATURES
2556# --------------------------
2557# Checks for linker and compiler features on darwin
2558
2559
2560# _LT_SYS_MODULE_PATH_AIX
2561# -----------------------
2562# Links a minimal program and checks the executable
2563# for the system default hardcoded library path. In most cases,
2564# this is /usr/lib:/lib, but when the MPI compilers are used
2565# the location of the communication and MPI libs are included too.
2566# If we don't find anything, use the default library path according
2567# to the aix ld manual.
2568# _LT_SYS_MODULE_PATH_AIX
2569
2570
2571# _LT_SHELL_INIT(ARG)
2572# -------------------
2573# _LT_SHELL_INIT
2574
2575
2576
2577# _LT_PROG_ECHO_BACKSLASH
2578# -----------------------
2579# Find how we can fake an echo command that does not interpret backslash.
2580# In particular, with Autoconf 2.60 or later we add some code to the start
2581# of the generated configure script which will find a shell with a builtin
2582# printf (which we can use as an echo command).
2583# _LT_PROG_ECHO_BACKSLASH
2584
2585
2586# _LT_ENABLE_LOCK
2587# ---------------
2588# _LT_ENABLE_LOCK
2589
2590
2591# _LT_CMD_OLD_ARCHIVE
2592# -------------------
2593# _LT_CMD_OLD_ARCHIVE
2594
2595
2596# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2597# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2598# ----------------------------------------------------------------
2599# Check whether the given compiler option works
2600# _LT_COMPILER_OPTION
2601
2602# Old name:
2603# This is what autoupdate's m4 run will expand. It fires
2604# the warning (with _au_warn_XXX), outputs it into the
2605# updated configure.ac (with AC_DIAGNOSE), and then outputs
2606# the replacement expansion.
2607
2608
2609# This is an auxiliary macro that is also run when
2610# autoupdate runs m4. It simply calls m4_warning, but
2611# we need a wrapper so that each warning is emitted only
2612# once. We break the quoting in m4_warning's argument in
2613# order to expand this macro's arguments, not AU_DEFUN's.
2614
2615
2616# Finally, this is the expansion that is picked up by
2617# autoconf. It tells the user to run autoupdate, and
2618# then outputs the replacement expansion. We do not care
2619# about autoupdate's warning because that contains
2620# information on what to do *after* running autoupdate.
2621
2622
2623
2624# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2625# [ACTION-SUCCESS], [ACTION-FAILURE])
2626# ----------------------------------------------------
2627# Check whether the given linker option works
2628# _LT_LINKER_OPTION
2629
2630# Old name:
2631# This is what autoupdate's m4 run will expand. It fires
2632# the warning (with _au_warn_XXX), outputs it into the
2633# updated configure.ac (with AC_DIAGNOSE), and then outputs
2634# the replacement expansion.
2635
2636
2637# This is an auxiliary macro that is also run when
2638# autoupdate runs m4. It simply calls m4_warning, but
2639# we need a wrapper so that each warning is emitted only
2640# once. We break the quoting in m4_warning's argument in
2641# order to expand this macro's arguments, not AU_DEFUN's.
2642
2643
2644# Finally, this is the expansion that is picked up by
2645# autoconf. It tells the user to run autoupdate, and
2646# then outputs the replacement expansion. We do not care
2647# about autoupdate's warning because that contains
2648# information on what to do *after* running autoupdate.
2649
2650
2651
2652# LT_CMD_MAX_LEN
2653#---------------
2654# LT_CMD_MAX_LEN
2655
2656# Old name:
2657# This is what autoupdate's m4 run will expand. It fires
2658# the warning (with _au_warn_XXX), outputs it into the
2659# updated configure.ac (with AC_DIAGNOSE), and then outputs
2660# the replacement expansion.
2661
2662
2663# This is an auxiliary macro that is also run when
2664# autoupdate runs m4. It simply calls m4_warning, but
2665# we need a wrapper so that each warning is emitted only
2666# once. We break the quoting in m4_warning's argument in
2667# order to expand this macro's arguments, not AU_DEFUN's.
2668
2669
2670# Finally, this is the expansion that is picked up by
2671# autoconf. It tells the user to run autoupdate, and
2672# then outputs the replacement expansion. We do not care
2673# about autoupdate's warning because that contains
2674# information on what to do *after* running autoupdate.
2675
2676
2677
2678# _LT_HEADER_DLFCN
2679# ----------------
2680# _LT_HEADER_DLFCN
2681
2682
2683# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2684# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2685# ----------------------------------------------------------------
2686# _LT_TRY_DLOPEN_SELF
2687
2688
2689# LT_SYS_DLOPEN_SELF
2690# ------------------
2691# LT_SYS_DLOPEN_SELF
2692
2693# Old name:
2694# This is what autoupdate's m4 run will expand. It fires
2695# the warning (with _au_warn_XXX), outputs it into the
2696# updated configure.ac (with AC_DIAGNOSE), and then outputs
2697# the replacement expansion.
2698
2699
2700# This is an auxiliary macro that is also run when
2701# autoupdate runs m4. It simply calls m4_warning, but
2702# we need a wrapper so that each warning is emitted only
2703# once. We break the quoting in m4_warning's argument in
2704# order to expand this macro's arguments, not AU_DEFUN's.
2705
2706
2707# Finally, this is the expansion that is picked up by
2708# autoconf. It tells the user to run autoupdate, and
2709# then outputs the replacement expansion. We do not care
2710# about autoupdate's warning because that contains
2711# information on what to do *after* running autoupdate.
2712
2713
2714
2715# _LT_COMPILER_C_O([TAGNAME])
2716# ---------------------------
2717# Check to see if options -c and -o are simultaneously supported by compiler.
2718# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2719# _LT_COMPILER_C_O
2720
2721
2722# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2723# ----------------------------------
2724# Check to see if we can do hard links to lock some files if needed
2725# _LT_COMPILER_FILE_LOCKS
2726
2727
2728# _LT_CHECK_OBJDIR
2729# ----------------
2730# _LT_CHECK_OBJDIR
2731
2732
2733# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2734# --------------------------------------
2735# Check hardcoding attributes.
2736# _LT_LINKER_HARDCODE_LIBPATH
2737
2738
2739# _LT_CMD_STRIPLIB
2740# ----------------
2741# _LT_CMD_STRIPLIB
2742
2743
2744# _LT_SYS_DYNAMIC_LINKER([TAG])
2745# -----------------------------
2746# PORTME Fill in your ld.so characteristics
2747# _LT_SYS_DYNAMIC_LINKER
2748
2749
2750# _LT_PATH_TOOL_PREFIX(TOOL)
2751# --------------------------
2752# find a file program which can recognize shared library
2753# _LT_PATH_TOOL_PREFIX
2754
2755# Old name:
2756# This is what autoupdate's m4 run will expand. It fires
2757# the warning (with _au_warn_XXX), outputs it into the
2758# updated configure.ac (with AC_DIAGNOSE), and then outputs
2759# the replacement expansion.
2760
2761
2762# This is an auxiliary macro that is also run when
2763# autoupdate runs m4. It simply calls m4_warning, but
2764# we need a wrapper so that each warning is emitted only
2765# once. We break the quoting in m4_warning's argument in
2766# order to expand this macro's arguments, not AU_DEFUN's.
2767
2768
2769# Finally, this is the expansion that is picked up by
2770# autoconf. It tells the user to run autoupdate, and
2771# then outputs the replacement expansion. We do not care
2772# about autoupdate's warning because that contains
2773# information on what to do *after* running autoupdate.
2774
2775
2776
2777# _LT_PATH_MAGIC
2778# --------------
2779# find a file program which can recognize a shared library
2780# _LT_PATH_MAGIC
2781
2782
2783# LT_PATH_LD
2784# ----------
2785# find the pathname to the GNU or non-GNU linker
2786# LT_PATH_LD
2787
2788# Old names:
2789# This is what autoupdate's m4 run will expand. It fires
2790# the warning (with _au_warn_XXX), outputs it into the
2791# updated configure.ac (with AC_DIAGNOSE), and then outputs
2792# the replacement expansion.
2793
2794
2795# This is an auxiliary macro that is also run when
2796# autoupdate runs m4. It simply calls m4_warning, but
2797# we need a wrapper so that each warning is emitted only
2798# once. We break the quoting in m4_warning's argument in
2799# order to expand this macro's arguments, not AU_DEFUN's.
2800
2801
2802# Finally, this is the expansion that is picked up by
2803# autoconf. It tells the user to run autoupdate, and
2804# then outputs the replacement expansion. We do not care
2805# about autoupdate's warning because that contains
2806# information on what to do *after* running autoupdate.
2807
2808# This is what autoupdate's m4 run will expand. It fires
2809# the warning (with _au_warn_XXX), outputs it into the
2810# updated configure.ac (with AC_DIAGNOSE), and then outputs
2811# the replacement expansion.
2812
2813
2814# This is an auxiliary macro that is also run when
2815# autoupdate runs m4. It simply calls m4_warning, but
2816# we need a wrapper so that each warning is emitted only
2817# once. We break the quoting in m4_warning's argument in
2818# order to expand this macro's arguments, not AU_DEFUN's.
2819
2820
2821# Finally, this is the expansion that is picked up by
2822# autoconf. It tells the user to run autoupdate, and
2823# then outputs the replacement expansion. We do not care
2824# about autoupdate's warning because that contains
2825# information on what to do *after* running autoupdate.
2826
2827
2828
2829# _LT_PATH_LD_GNU
2830#- --------------
2831# _LT_PATH_LD_GNU
2832
2833
2834# _LT_CMD_RELOAD
2835# --------------
2836# find reload flag for linker
2837# -- PORTME Some linkers may need a different reload flag.
2838# _LT_CMD_RELOAD
2839
2840
2841# _LT_CHECK_MAGIC_METHOD
2842# ----------------------
2843# how to check for library dependencies
2844# -- PORTME fill in with the dynamic library characteristics
2845# _LT_CHECK_MAGIC_METHOD
2846
2847
2848# LT_PATH_NM
2849# ----------
2850# find the pathname to a BSD- or MS-compatible name lister
2851# LT_PATH_NM
2852
2853# Old names:
2854# This is what autoupdate's m4 run will expand. It fires
2855# the warning (with _au_warn_XXX), outputs it into the
2856# updated configure.ac (with AC_DIAGNOSE), and then outputs
2857# the replacement expansion.
2858
2859
2860# This is an auxiliary macro that is also run when
2861# autoupdate runs m4. It simply calls m4_warning, but
2862# we need a wrapper so that each warning is emitted only
2863# once. We break the quoting in m4_warning's argument in
2864# order to expand this macro's arguments, not AU_DEFUN's.
2865
2866
2867# Finally, this is the expansion that is picked up by
2868# autoconf. It tells the user to run autoupdate, and
2869# then outputs the replacement expansion. We do not care
2870# about autoupdate's warning because that contains
2871# information on what to do *after* running autoupdate.
2872
2873# This is what autoupdate's m4 run will expand. It fires
2874# the warning (with _au_warn_XXX), outputs it into the
2875# updated configure.ac (with AC_DIAGNOSE), and then outputs
2876# the replacement expansion.
2877
2878
2879# This is an auxiliary macro that is also run when
2880# autoupdate runs m4. It simply calls m4_warning, but
2881# we need a wrapper so that each warning is emitted only
2882# once. We break the quoting in m4_warning's argument in
2883# order to expand this macro's arguments, not AU_DEFUN's.
2884
2885
2886# Finally, this is the expansion that is picked up by
2887# autoconf. It tells the user to run autoupdate, and
2888# then outputs the replacement expansion. We do not care
2889# about autoupdate's warning because that contains
2890# information on what to do *after* running autoupdate.
2891
2892
2893
2894# LT_LIB_M
2895# --------
2896# check for math library
2897# LT_LIB_M
2898
2899# Old name:
2900# This is what autoupdate's m4 run will expand. It fires
2901# the warning (with _au_warn_XXX), outputs it into the
2902# updated configure.ac (with AC_DIAGNOSE), and then outputs
2903# the replacement expansion.
2904
2905
2906# This is an auxiliary macro that is also run when
2907# autoupdate runs m4. It simply calls m4_warning, but
2908# we need a wrapper so that each warning is emitted only
2909# once. We break the quoting in m4_warning's argument in
2910# order to expand this macro's arguments, not AU_DEFUN's.
2911
2912
2913# Finally, this is the expansion that is picked up by
2914# autoconf. It tells the user to run autoupdate, and
2915# then outputs the replacement expansion. We do not care
2916# about autoupdate's warning because that contains
2917# information on what to do *after* running autoupdate.
2918
2919
2920
2921# _LT_COMPILER_NO_RTTI([TAGNAME])
2922# -------------------------------
2923# _LT_COMPILER_NO_RTTI
2924
2925
2926# _LT_CMD_GLOBAL_SYMBOLS
2927# ----------------------
2928 # _LT_CMD_GLOBAL_SYMBOLS
2929
2930
2931# _LT_COMPILER_PIC([TAGNAME])
2932# ---------------------------
2933# _LT_COMPILER_PIC
2934
2935
2936# _LT_LINKER_SHLIBS([TAGNAME])
2937# ----------------------------
2938# See if the linker supports building shared libraries.
2939# _LT_LINKER_SHLIBS
2940
2941
2942# _LT_LANG_C_CONFIG([TAG])
2943# ------------------------
2944# Ensure that the configuration variables for a C compiler are suitably
2945# defined. These variables are subsequently used by _LT_CONFIG to write
2946# the compiler configuration to `libtool'.
2947# _LT_LANG_C_CONFIG
2948
2949
2950# _LT_LANG_CXX_CONFIG([TAG])
2951# --------------------------
2952# Ensure that the configuration variables for a C++ compiler are suitably
2953# defined. These variables are subsequently used by _LT_CONFIG to write
2954# the compiler configuration to `libtool'.
2955# _LT_LANG_CXX_CONFIG
2956
2957
2958# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
2959# ---------------------------------
2960# Figure out "hidden" library dependencies from verbose
2961# compiler output when linking a shared library.
2962# Parse the compiler output and extract the necessary
2963# objects, libraries and library flags.
2964# _LT_SYS_HIDDEN_LIBDEPS
2965
2966
2967# _LT_LANG_F77_CONFIG([TAG])
2968# --------------------------
2969# Ensure that the configuration variables for a Fortran 77 compiler are
2970# suitably defined. These variables are subsequently used by _LT_CONFIG
2971# to write the compiler configuration to `libtool'.
2972# _LT_LANG_F77_CONFIG
2973
2974
2975# _LT_LANG_FC_CONFIG([TAG])
2976# -------------------------
2977# Ensure that the configuration variables for a Fortran compiler are
2978# suitably defined. These variables are subsequently used by _LT_CONFIG
2979# to write the compiler configuration to `libtool'.
2980# _LT_LANG_FC_CONFIG
2981
2982
2983# _LT_LANG_GCJ_CONFIG([TAG])
2984# --------------------------
2985# Ensure that the configuration variables for the GNU Java Compiler compiler
2986# are suitably defined. These variables are subsequently used by _LT_CONFIG
2987# to write the compiler configuration to `libtool'.
2988# _LT_LANG_GCJ_CONFIG
2989
2990
2991# _LT_LANG_RC_CONFIG([TAG])
2992# -------------------------
2993# Ensure that the configuration variables for the Windows resource compiler
2994# are suitably defined. These variables are subsequently used by _LT_CONFIG
2995# to write the compiler configuration to `libtool'.
2996# _LT_LANG_RC_CONFIG
2997
2998
2999# LT_PROG_GCJ
3000# -----------
3001
3002
3003# Old name:
3004# This is what autoupdate's m4 run will expand. It fires
3005# the warning (with _au_warn_XXX), outputs it into the
3006# updated configure.ac (with AC_DIAGNOSE), and then outputs
3007# the replacement expansion.
3008
3009
3010# This is an auxiliary macro that is also run when
3011# autoupdate runs m4. It simply calls m4_warning, but
3012# we need a wrapper so that each warning is emitted only
3013# once. We break the quoting in m4_warning's argument in
3014# order to expand this macro's arguments, not AU_DEFUN's.
3015
3016
3017# Finally, this is the expansion that is picked up by
3018# autoconf. It tells the user to run autoupdate, and
3019# then outputs the replacement expansion. We do not care
3020# about autoupdate's warning because that contains
3021# information on what to do *after* running autoupdate.
3022
3023
3024
3025# LT_PROG_RC
3026# ----------
3027
3028
3029# Old name:
3030# This is what autoupdate's m4 run will expand. It fires
3031# the warning (with _au_warn_XXX), outputs it into the
3032# updated configure.ac (with AC_DIAGNOSE), and then outputs
3033# the replacement expansion.
3034
3035
3036# This is an auxiliary macro that is also run when
3037# autoupdate runs m4. It simply calls m4_warning, but
3038# we need a wrapper so that each warning is emitted only
3039# once. We break the quoting in m4_warning's argument in
3040# order to expand this macro's arguments, not AU_DEFUN's.
3041
3042
3043# Finally, this is the expansion that is picked up by
3044# autoconf. It tells the user to run autoupdate, and
3045# then outputs the replacement expansion. We do not care
3046# about autoupdate's warning because that contains
3047# information on what to do *after* running autoupdate.
3048
3049
3050
3051# _LT_DECL_EGREP
3052# --------------
3053# If we don't have a new enough Autoconf to choose the best grep
3054# available, choose the one first in the user's PATH.
3055
3056
3057
3058# _LT_DECL_OBJDUMP
3059# --------------
3060# If we don't have a new enough Autoconf to choose the best objdump
3061# available, choose the one first in the user's PATH.
3062
3063
3064
3065# _LT_DECL_SED
3066# ------------
3067# Check for a fully-functional sed program, that truncates
3068# as few characters as possible. Prefer GNU sed if found.
3069# _LT_DECL_SED
3070
3071#m4_ifndef
3072
3073# Old name:
3074# This is what autoupdate's m4 run will expand. It fires
3075# the warning (with _au_warn_XXX), outputs it into the
3076# updated configure.ac (with AC_DIAGNOSE), and then outputs
3077# the replacement expansion.
3078
3079
3080# This is an auxiliary macro that is also run when
3081# autoupdate runs m4. It simply calls m4_warning, but
3082# we need a wrapper so that each warning is emitted only
3083# once. We break the quoting in m4_warning's argument in
3084# order to expand this macro's arguments, not AU_DEFUN's.
3085
3086
3087# Finally, this is the expansion that is picked up by
3088# autoconf. It tells the user to run autoupdate, and
3089# then outputs the replacement expansion. We do not care
3090# about autoupdate's warning because that contains
3091# information on what to do *after* running autoupdate.
3092
3093
3094
3095# _LT_CHECK_SHELL_FEATURES
3096# ------------------------
3097# Find out whether the shell is Bourne or XSI compatible,
3098# or has some other useful features.
3099# _LT_CHECK_SHELL_FEATURES
3100
3101
3102# _LT_PROG_XSI_SHELLFNS
3103# ---------------------
3104# Bourne and XSI compatible variants of some useful shell functions.
3105
3106
3107# Helper functions for option handling. -*- Autoconf -*-
3108#
3109# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3110# Inc.
3111# Written by Gary V. Vaughan, 2004
3112#
3113# This file is free software; the Free Software Foundation gives
3114# unlimited permission to copy and/or distribute it, with or without
3115# modifications, as long as this notice is preserved.
3116
3117# serial 6 ltoptions.m4
3118
3119# This is to help aclocal find these macros, as it can't see m4_define.
3120
3121
3122
3123# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3124# ------------------------------------------
3125
3126
3127
3128# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3129# ---------------------------------------
3130# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3131# matching handler defined, dispatch to it. Other OPTION-NAMEs are
3132# saved as a flag.
3133
3134
3135
3136# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3137# ------------------------------------------------------------
3138# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3139
3140
3141
3142# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3143# -------------------------------------------------------
3144# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3145# are set.
3146
3147
3148
3149# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3150# ----------------------------------------
3151# OPTION-LIST is a space-separated list of Libtool options associated
3152# with MACRO-NAME. If any OPTION has a matching handler declared with
3153# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3154# the unknown option and exit.
3155# _LT_SET_OPTIONS
3156
3157
3158## --------------------------------- ##
3159## Macros to handle LT_INIT options. ##
3160## --------------------------------- ##
3161
3162# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3163# -----------------------------------------
3164
3165
3166
3167# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3168# -----------------------------------------------
3169# LT_OPTION_DEFINE
3170
3171
3172# dlopen
3173# ------
3174
3175
3176# This is what autoupdate's m4 run will expand. It fires
3177# the warning (with _au_warn_XXX), outputs it into the
3178# updated configure.ac (with AC_DIAGNOSE), and then outputs
3179# the replacement expansion.
3180
3181
3182# This is an auxiliary macro that is also run when
3183# autoupdate runs m4. It simply calls m4_warning, but
3184# we need a wrapper so that each warning is emitted only
3185# once. We break the quoting in m4_warning's argument in
3186# order to expand this macro's arguments, not AU_DEFUN's.
3187
3188
3189# Finally, this is the expansion that is picked up by
3190# autoconf. It tells the user to run autoupdate, and
3191# then outputs the replacement expansion. We do not care
3192# about autoupdate's warning because that contains
3193# information on what to do *after* running autoupdate.
3194
3195
3196
3197
3198# win32-dll
3199# ---------
3200# Declare package support for building win32 dll's.
3201# win32-dll
3202
3203# This is what autoupdate's m4 run will expand. It fires
3204# the warning (with _au_warn_XXX), outputs it into the
3205# updated configure.ac (with AC_DIAGNOSE), and then outputs
3206# the replacement expansion.
3207
3208
3209# This is an auxiliary macro that is also run when
3210# autoupdate runs m4. It simply calls m4_warning, but
3211# we need a wrapper so that each warning is emitted only
3212# once. We break the quoting in m4_warning's argument in
3213# order to expand this macro's arguments, not AU_DEFUN's.
3214
3215
3216# Finally, this is the expansion that is picked up by
3217# autoconf. It tells the user to run autoupdate, and
3218# then outputs the replacement expansion. We do not care
3219# about autoupdate's warning because that contains
3220# information on what to do *after* running autoupdate.
3221
3222
3223
3224
3225# _LT_ENABLE_SHARED([DEFAULT])
3226# ----------------------------
3227# implement the --enable-shared flag, and supports the `shared' and
3228# `disable-shared' LT_INIT options.
3229# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3230# _LT_ENABLE_SHARED
3231
3232
3233
3234
3235# Old names:
3236
3237
3238
3239
3240# This is what autoupdate's m4 run will expand. It fires
3241# the warning (with _au_warn_XXX), outputs it into the
3242# updated configure.ac (with AC_DIAGNOSE), and then outputs
3243# the replacement expansion.
3244
3245
3246# This is an auxiliary macro that is also run when
3247# autoupdate runs m4. It simply calls m4_warning, but
3248# we need a wrapper so that each warning is emitted only
3249# once. We break the quoting in m4_warning's argument in
3250# order to expand this macro's arguments, not AU_DEFUN's.
3251
3252
3253# Finally, this is the expansion that is picked up by
3254# autoconf. It tells the user to run autoupdate, and
3255# then outputs the replacement expansion. We do not care
3256# about autoupdate's warning because that contains
3257# information on what to do *after* running autoupdate.
3258
3259# This is what autoupdate's m4 run will expand. It fires
3260# the warning (with _au_warn_XXX), outputs it into the
3261# updated configure.ac (with AC_DIAGNOSE), and then outputs
3262# the replacement expansion.
3263
3264
3265# This is an auxiliary macro that is also run when
3266# autoupdate runs m4. It simply calls m4_warning, but
3267# we need a wrapper so that each warning is emitted only
3268# once. We break the quoting in m4_warning's argument in
3269# order to expand this macro's arguments, not AU_DEFUN's.
3270
3271
3272# Finally, this is the expansion that is picked up by
3273# autoconf. It tells the user to run autoupdate, and
3274# then outputs the replacement expansion. We do not care
3275# about autoupdate's warning because that contains
3276# information on what to do *after* running autoupdate.
3277
3278
3279
3280
3281
3282# _LT_ENABLE_STATIC([DEFAULT])
3283# ----------------------------
3284# implement the --enable-static flag, and support the `static' and
3285# `disable-static' LT_INIT options.
3286# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3287# _LT_ENABLE_STATIC
3288
3289
3290
3291
3292# Old names:
3293
3294
3295
3296
3297# This is what autoupdate's m4 run will expand. It fires
3298# the warning (with _au_warn_XXX), outputs it into the
3299# updated configure.ac (with AC_DIAGNOSE), and then outputs
3300# the replacement expansion.
3301
3302
3303# This is an auxiliary macro that is also run when
3304# autoupdate runs m4. It simply calls m4_warning, but
3305# we need a wrapper so that each warning is emitted only
3306# once. We break the quoting in m4_warning's argument in
3307# order to expand this macro's arguments, not AU_DEFUN's.
3308
3309
3310# Finally, this is the expansion that is picked up by
3311# autoconf. It tells the user to run autoupdate, and
3312# then outputs the replacement expansion. We do not care
3313# about autoupdate's warning because that contains
3314# information on what to do *after* running autoupdate.
3315
3316# This is what autoupdate's m4 run will expand. It fires
3317# the warning (with _au_warn_XXX), outputs it into the
3318# updated configure.ac (with AC_DIAGNOSE), and then outputs
3319# the replacement expansion.
3320
3321
3322# This is an auxiliary macro that is also run when
3323# autoupdate runs m4. It simply calls m4_warning, but
3324# we need a wrapper so that each warning is emitted only
3325# once. We break the quoting in m4_warning's argument in
3326# order to expand this macro's arguments, not AU_DEFUN's.
3327
3328
3329# Finally, this is the expansion that is picked up by
3330# autoconf. It tells the user to run autoupdate, and
3331# then outputs the replacement expansion. We do not care
3332# about autoupdate's warning because that contains
3333# information on what to do *after* running autoupdate.
3334
3335
3336
3337
3338
3339# _LT_ENABLE_FAST_INSTALL([DEFAULT])
3340# ----------------------------------
3341# implement the --enable-fast-install flag, and support the `fast-install'
3342# and `disable-fast-install' LT_INIT options.
3343# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3344# _LT_ENABLE_FAST_INSTALL
3345
3346
3347
3348
3349# Old names:
3350# This is what autoupdate's m4 run will expand. It fires
3351# the warning (with _au_warn_XXX), outputs it into the
3352# updated configure.ac (with AC_DIAGNOSE), and then outputs
3353# the replacement expansion.
3354
3355
3356# This is an auxiliary macro that is also run when
3357# autoupdate runs m4. It simply calls m4_warning, but
3358# we need a wrapper so that each warning is emitted only
3359# once. We break the quoting in m4_warning's argument in
3360# order to expand this macro's arguments, not AU_DEFUN's.
3361
3362
3363# Finally, this is the expansion that is picked up by
3364# autoconf. It tells the user to run autoupdate, and
3365# then outputs the replacement expansion. We do not care
3366# about autoupdate's warning because that contains
3367# information on what to do *after* running autoupdate.
3368
3369
3370# This is what autoupdate's m4 run will expand. It fires
3371# the warning (with _au_warn_XXX), outputs it into the
3372# updated configure.ac (with AC_DIAGNOSE), and then outputs
3373# the replacement expansion.
3374
3375
3376# This is an auxiliary macro that is also run when
3377# autoupdate runs m4. It simply calls m4_warning, but
3378# we need a wrapper so that each warning is emitted only
3379# once. We break the quoting in m4_warning's argument in
3380# order to expand this macro's arguments, not AU_DEFUN's.
3381
3382
3383# Finally, this is the expansion that is picked up by
3384# autoconf. It tells the user to run autoupdate, and
3385# then outputs the replacement expansion. We do not care
3386# about autoupdate's warning because that contains
3387# information on what to do *after* running autoupdate.
3388
3389
3390
3391
3392# _LT_WITH_PIC([MODE])
3393# --------------------
3394# implement the --with-pic flag, and support the `pic-only' and `no-pic'
3395# LT_INIT options.
3396# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3397# _LT_WITH_PIC
3398
3399
3400
3401
3402# Old name:
3403# This is what autoupdate's m4 run will expand. It fires
3404# the warning (with _au_warn_XXX), outputs it into the
3405# updated configure.ac (with AC_DIAGNOSE), and then outputs
3406# the replacement expansion.
3407
3408
3409# This is an auxiliary macro that is also run when
3410# autoupdate runs m4. It simply calls m4_warning, but
3411# we need a wrapper so that each warning is emitted only
3412# once. We break the quoting in m4_warning's argument in
3413# order to expand this macro's arguments, not AU_DEFUN's.
3414
3415
3416# Finally, this is the expansion that is picked up by
3417# autoconf. It tells the user to run autoupdate, and
3418# then outputs the replacement expansion. We do not care
3419# about autoupdate's warning because that contains
3420# information on what to do *after* running autoupdate.
3421
3422
3423
3424## ----------------- ##
3425## LTDL_INIT Options ##
3426## ----------------- ##
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3438#
3439# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3440# Written by Gary V. Vaughan, 2004
3441#
3442# This file is free software; the Free Software Foundation gives
3443# unlimited permission to copy and/or distribute it, with or without
3444# modifications, as long as this notice is preserved.
3445
3446# serial 6 ltsugar.m4
3447
3448# This is to help aclocal find these macros, as it can't see m4_define.
3449
3450
3451
3452# lt_join(SEP, ARG1, [ARG2...])
3453# -----------------------------
3454# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3455# associated separator.
3456# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3457# versions in m4sugar had bugs.
3458
3459
3460
3461
3462# lt_car(LIST)
3463# lt_cdr(LIST)
3464# ------------
3465# Manipulate m4 lists.
3466# These macros are necessary as long as will still need to support
3467# Autoconf-2.59 which quotes differently.
3468
3469
3470
3471
3472
3473# lt_append(MACRO-NAME, STRING, [SEPARATOR])
3474# ------------------------------------------
3475# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3476# Note that neither SEPARATOR nor STRING are expanded; they are appended
3477# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3478# No SEPARATOR is output if MACRO-NAME was previously undefined (different
3479# than defined and empty).
3480#
3481# This macro is needed until we can rely on Autoconf 2.62, since earlier
3482# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3483
3484
3485
3486
3487# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3488# ----------------------------------------------------------
3489# Produce a SEP delimited list of all paired combinations of elements of
3490# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3491# has the form PREFIXmINFIXSUFFIXn.
3492# Needed until we can rely on m4_combine added in Autoconf 2.62.
3493
3494
3495
3496# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3497# -----------------------------------------------------------------------
3498# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3499# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3500
3501
3502
3503# lt_dict_add(DICT, KEY, VALUE)
3504# -----------------------------
3505
3506
3507
3508# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3509# --------------------------------------------
3510
3511
3512
3513# lt_dict_fetch(DICT, KEY, [SUBKEY])
3514# ----------------------------------
3515
3516
3517
3518# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3519# -----------------------------------------------------------------
3520
3521
3522
3523# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3524# --------------------------------------------------------------
3525
3526
3527# ltversion.m4 -- version numbers -*- Autoconf -*-
3528#
3529# Copyright (C) 2004 Free Software Foundation, Inc.
3530# Written by Scott James Remnant, 2004
3531#
3532# This file is free software; the Free Software Foundation gives
3533# unlimited permission to copy and/or distribute it, with or without
3534# modifications, as long as this notice is preserved.
3535
3536# Generated from ltversion.in.
3537
3538# serial 3134 ltversion.m4
3539# This file is part of GNU Libtool
3540
3541
3542
3543
3544
3545
3546# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3547#
3548# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3549# Written by Scott James Remnant, 2004.
3550#
3551# This file is free software; the Free Software Foundation gives
3552# unlimited permission to copy and/or distribute it, with or without
3553# modifications, as long as this notice is preserved.
3554
3555# serial 4 lt~obsolete.m4
3556
3557# These exist entirely to fool aclocal when bootstrapping libtool.
3558#
3559# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3560# which have later been changed to m4_define as they aren't part of the
3561# exported API, or moved to Autoconf or Automake where they belong.
3562#
3563# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3564# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3565# using a macro with the same name in our local m4/libtool.m4 it'll
3566# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3567# and doesn't know about Autoconf macros at all.)
3568#
3569# So we provide this file, which has a silly filename so it's always
3570# included after everything else. This provides aclocal with the
3571# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3572# because those macros already exist, or will be overwritten later.
3573# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3574#
3575# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3576# Yes, that means every name once taken will need to remain here until
3577# we give up compatibility with versions before 1.7, at which point
3578# we need to keep only those names which we still refer to.
3579
3580# This is to help aclocal find these macros, as it can't see m4_define.
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
6ffe910a
MF
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
2232061b
MF
3645## -*- Autoconf -*-
3646
3647# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3648# Free Software Foundation, Inc.
3649#
3650# This file is free software; the Free Software Foundation
3651# gives unlimited permission to copy and/or distribute it,
3652# with or without modifications, as long as this notice is preserved.
3653
3654# serial 8
3655
3656# Based on depend.m4 from automake 1.9, modified for standalone use in
3657# an environment where GNU make is required.
3658
3659# ZW_PROG_COMPILER_DEPENDENCIES
3660# -----------------------------
3661# Variant of _AM_DEPENDENCIES which just does the dependency probe and
3662# sets fooDEPMODE accordingly. Cache-variable compatible with
3663# original; not side-effect compatible. As the users of this macro
3664# may require accurate dependencies for correct builds, it does *not*
3665# honor --disable-dependency-checking, and failure to detect a usable
3666# method is an error. depcomp is assumed to be located in
3667# $ac_aux_dir.
3668#
3669# FIXME: Should use the Autoconf 2.5x language-selection mechanism.
3670
3671
3672
3673# AM_SET_DEPDIR
3674# -------------
3675# Choose a directory name for dependency files.
3676
3677
3678# ZW_CREATE_DEPDIR
3679# ----------------
3680# As AM_SET_DEPDIR, but also create the directory at config.status time.
3681
3682
6ffe910a
MF
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
6ffe910a
MF
3722
3723
3724
3725
3726
3727sim_inline="-DDEFAULT_INLINE=0"
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764# intl sister-directory configuration rules.
3765#
3766
3767# The idea behind this macro is that there's no need to repeat all the
3768# autoconf probes done by the intl directory - it's already done them
3769# for us. In fact, there's no need even to look at the cache for the
3770# answers. All we need to do is nab a few pieces of information.
3771# The intl directory is set up to make this easy, by generating a
3772# small file which can be sourced as a shell script; then we produce
3773# the necessary substitutions and definitions for this directory.
3774
3775
3776
3777# Autoconf M4 include file defining utility macros for complex Canadian
3778# cross builds.
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788####
3789# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
3790# or AC_INIT.
3791# These demand that AC_CANONICAL_SYSTEM be called beforehand.
3792
3793####
3794# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
3795# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
3796
3797
3798####
3799# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
3800# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
3801
3802
3803
3804# Backported from Autoconf 2.5x; can go away when and if
3805# we switch. Put the OS path separator in $PATH_SEPARATOR.
3806
3807
3808
3809
3810# ACX_HAVE_GCC_FOR_TARGET
3811# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
3812
3813
3814# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
3815# Searching for installed target binutils. We need to take extra care,
3816# else we may find the wrong assembler, linker, etc., and lose.
3817#
3818# First try --with-build-time-tools, if specified.
3819#
3820# For build != host, we ask the installed GCC for the name of the tool it
3821# uses, and accept it if it is an absolute path. This is because the
3822# only good choice for a compiler is the same GCC version that is being
3823# installed (or we couldn't make target libraries), and we assume that
3824# on the host system we'll have not only the same GCC version, but also
3825# the same binutils version.
3826#
3827# For build == host, search the same directories that the installed
3828# compiler will search. We used to do this for the assembler, linker,
3829# and nm only; for simplicity of configuration, however, we extend this
3830# criterion to tools (such as ar and ranlib) that are never invoked by
3831# the compiler, to avoid mismatches.
3832#
3833# Also note we have to check MD_EXEC_PREFIX before checking the user's path
3834# if build == target. This makes the most sense only when bootstrapping,
3835# but we also do so when build != host. In this case, we hope that the
3836# build and host systems will have similar contents of MD_EXEC_PREFIX.
3837#
3838# If we do not find a suitable binary, then try the user's path.
3839
3840
3841###
3842# AC_PROG_CPP_WERROR
3843# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
3844# triggers warnings from the preprocessor. Will be in autoconf 2.58.
3845# For now, using this also overrides header checks to use only the
3846# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
3847# bit harder from here).
3848# Eventually autoconf will default to checking headers with the compiler
3849# instead, and we'll have to do this differently.
3850
3851# AC_PROG_CPP_WERROR
3852
3853# Test for GNAT.
2232061b
MF
3854# We require the gnatbind & gnatmake programs, as well as a compiler driver
3855# that understands Ada. We use the user's CC setting, already found, and
3856# possibly add $1 to the command-line parameters.
6ffe910a
MF
3857#
3858# Sets the shell variable have_gnat to yes or no as appropriate, and
3859# substitutes GNATBIND and GNATMAKE.
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
b7026657
AC
3880
3881
b7026657
AC
3882
3883
3884
3885ac_aux_dir=
81ecdfbb
RW
3886for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3887 for ac_t in install-sh install.sh shtool; do
3888 if test -f "$ac_dir/$ac_t"; then
3889 ac_aux_dir=$ac_dir
3890 ac_install_sh="$ac_aux_dir/$ac_t -c"
3891 break 2
3892 fi
3893 done
b7026657
AC
3894done
3895if test -z "$ac_aux_dir"; then
81ecdfbb 3896 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b7026657 3897fi
81ecdfbb
RW
3898
3899# These three variables are undocumented and unsupported,
3900# and are intended to be withdrawn in a future Autoconf release.
3901# They can cause serious problems if a builder's source tree is in a directory
3902# whose full name contains unusual characters.
3903ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3904ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3905ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3906
b7026657
AC
3907
3908# Find a good install program. We prefer a C program (faster),
3909# so one script is as good as another. But avoid the broken or
3910# incompatible versions:
3911# SysV /etc/install, /usr/sbin/install
3912# SunOS /usr/etc/install
3913# IRIX /sbin/install
3914# AIX /bin/install
3915# AmigaOS /C/install, which installs bootblocks on floppy discs
3916# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3917# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3918# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3919# OS/2's system install, which has a completely different semantic
3920# ./install, which can be erroneously created by make from ./install.sh.
81ecdfbb
RW
3921# Reject install programs that cannot install multiple files.
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3923$as_echo_n "checking for a BSD-compatible install... " >&6; }
b7026657 3924if test -z "$INSTALL"; then
81ecdfbb
RW
3925if test "${ac_cv_path_install+set}" = set; then :
3926 $as_echo_n "(cached) " >&6
b7026657
AC
3927else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929for as_dir in $PATH
3930do
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3933 # Account for people who put trailing slashes in PATH elements.
3934case $as_dir/ in #((
3935 ./ | .// | /[cC]/* | \
b7026657 3936 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3937 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b7026657
AC
3938 /usr/ucb/* ) ;;
3939 *)
3940 # OSF1 and SCO ODT 3.0 have their own names for install.
3941 # Don't use installbsd from OSF since it installs stuff as root
3942 # by default.
3943 for ac_prog in ginstall scoinst install; do
3944 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3945 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
b7026657
AC
3946 if test $ac_prog = install &&
3947 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3948 # AIX install. It has an incompatible calling convention.
3949 :
3950 elif test $ac_prog = install &&
3951 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3952 # program-specific install script used by HP pwplus--don't use.
3953 :
3954 else
81ecdfbb
RW
3955 rm -rf conftest.one conftest.two conftest.dir
3956 echo one > conftest.one
3957 echo two > conftest.two
3958 mkdir conftest.dir
3959 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3960 test -s conftest.one && test -s conftest.two &&
3961 test -s conftest.dir/conftest.one &&
3962 test -s conftest.dir/conftest.two
3963 then
3964 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3965 break 3
3966 fi
b7026657
AC
3967 fi
3968 fi
3969 done
3970 done
3971 ;;
3972esac
b7026657 3973
81ecdfbb
RW
3974 done
3975IFS=$as_save_IFS
3976
3977rm -rf conftest.one conftest.two conftest.dir
b7026657
AC
3978
3979fi
3980 if test "${ac_cv_path_install+set}" = set; then
3981 INSTALL=$ac_cv_path_install
3982 else
81ecdfbb
RW
3983 # As a last resort, use the slow shell script. Don't cache a
3984 # value for INSTALL within a source directory, because that will
b7026657 3985 # break other packages using the cache if that directory is
81ecdfbb 3986 # removed, or if the value is a relative name.
b7026657
AC
3987 INSTALL=$ac_install_sh
3988 fi
3989fi
81ecdfbb
RW
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3991$as_echo "$INSTALL" >&6; }
b7026657
AC
3992
3993# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3994# It thinks the first close brace ends the variable substitution.
c906108c
SS
3995test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3996
b7026657 3997test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
cd0fc7c3 3998
c906108c
SS
3999test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4000
b7026657
AC
4001ac_ext=c
4002ac_cpp='$CPP $CPPFLAGS'
4003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006if test -n "$ac_tool_prefix"; then
4007 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4008set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010$as_echo_n "checking for $ac_word... " >&6; }
4011if test "${ac_cv_prog_CC+set}" = set; then :
4012 $as_echo_n "(cached) " >&6
b7026657
AC
4013else
4014 if test -n "$CC"; then
4015 ac_cv_prog_CC="$CC" # Let the user override the test.
4016else
4017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018for as_dir in $PATH
4019do
4020 IFS=$as_save_IFS
4021 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4024 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4026 break 2
4027 fi
4028done
81ecdfbb
RW
4029 done
4030IFS=$as_save_IFS
b7026657
AC
4031
4032fi
4033fi
4034CC=$ac_cv_prog_CC
4035if test -n "$CC"; then
81ecdfbb
RW
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4037$as_echo "$CC" >&6; }
b7026657 4038else
81ecdfbb
RW
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040$as_echo "no" >&6; }
b7026657
AC
4041fi
4042
81ecdfbb 4043
b7026657
AC
4044fi
4045if test -z "$ac_cv_prog_CC"; then
4046 ac_ct_CC=$CC
4047 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 4048set dummy gcc; ac_word=$2
81ecdfbb
RW
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050$as_echo_n "checking for $ac_word... " >&6; }
4051if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4052 $as_echo_n "(cached) " >&6
b7026657
AC
4053else
4054 if test -n "$ac_ct_CC"; then
4055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4056else
4057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058for as_dir in $PATH
4059do
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4064 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4066 break 2
4067 fi
4068done
81ecdfbb
RW
4069 done
4070IFS=$as_save_IFS
b7026657
AC
4071
4072fi
4073fi
4074ac_ct_CC=$ac_cv_prog_ac_ct_CC
4075if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4077$as_echo "$ac_ct_CC" >&6; }
b7026657 4078else
81ecdfbb
RW
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080$as_echo "no" >&6; }
b7026657
AC
4081fi
4082
81ecdfbb
RW
4083 if test "x$ac_ct_CC" = x; then
4084 CC=""
4085 else
4086 case $cross_compiling:$ac_tool_warned in
4087yes:)
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4090ac_tool_warned=yes ;;
4091esac
4092 CC=$ac_ct_CC
4093 fi
b7026657
AC
4094else
4095 CC="$ac_cv_prog_CC"
4096fi
4097
4098if test -z "$CC"; then
81ecdfbb
RW
4099 if test -n "$ac_tool_prefix"; then
4100 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b7026657 4101set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103$as_echo_n "checking for $ac_word... " >&6; }
4104if test "${ac_cv_prog_CC+set}" = set; then :
4105 $as_echo_n "(cached) " >&6
c906108c
SS
4106else
4107 if test -n "$CC"; then
4108 ac_cv_prog_CC="$CC" # Let the user override the test.
4109else
b7026657
AC
4110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111for as_dir in $PATH
4112do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4117 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4119 break 2
4120 fi
4121done
81ecdfbb
RW
4122 done
4123IFS=$as_save_IFS
b7026657 4124
c906108c
SS
4125fi
4126fi
b7026657 4127CC=$ac_cv_prog_CC
c906108c 4128if test -n "$CC"; then
81ecdfbb
RW
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4130$as_echo "$CC" >&6; }
b7026657 4131else
81ecdfbb
RW
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133$as_echo "no" >&6; }
b7026657
AC
4134fi
4135
c906108c 4136
81ecdfbb 4137 fi
b7026657 4138fi
c906108c
SS
4139if test -z "$CC"; then
4140 # Extract the first word of "cc", so it can be a program name with args.
4141set dummy cc; ac_word=$2
81ecdfbb
RW
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143$as_echo_n "checking for $ac_word... " >&6; }
4144if test "${ac_cv_prog_CC+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
c906108c
SS
4146else
4147 if test -n "$CC"; then
4148 ac_cv_prog_CC="$CC" # Let the user override the test.
4149else
c906108c 4150 ac_prog_rejected=no
b7026657
AC
4151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152for as_dir in $PATH
4153do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
4158 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4159 ac_prog_rejected=yes
4160 continue
4161 fi
4162 ac_cv_prog_CC="cc"
81ecdfbb 4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4164 break 2
4165 fi
4166done
81ecdfbb
RW
4167 done
4168IFS=$as_save_IFS
b7026657 4169
c906108c
SS
4170if test $ac_prog_rejected = yes; then
4171 # We found a bogon in the path, so make sure we never use it.
4172 set dummy $ac_cv_prog_CC
4173 shift
b7026657 4174 if test $# != 0; then
c906108c
SS
4175 # We chose a different compiler from the bogus one.
4176 # However, it has the same basename, so the bogon will be chosen
4177 # first if we set CC to just the basename; use the full file name.
4178 shift
b7026657 4179 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
4180 fi
4181fi
4182fi
4183fi
b7026657 4184CC=$ac_cv_prog_CC
c906108c 4185if test -n "$CC"; then
81ecdfbb
RW
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4187$as_echo "$CC" >&6; }
c906108c 4188else
81ecdfbb
RW
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190$as_echo "no" >&6; }
c906108c
SS
4191fi
4192
81ecdfbb 4193
b7026657
AC
4194fi
4195if test -z "$CC"; then
4196 if test -n "$ac_tool_prefix"; then
81ecdfbb 4197 for ac_prog in cl.exe
b7026657
AC
4198 do
4199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4200set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202$as_echo_n "checking for $ac_word... " >&6; }
4203if test "${ac_cv_prog_CC+set}" = set; then :
4204 $as_echo_n "(cached) " >&6
c906108c
SS
4205else
4206 if test -n "$CC"; then
4207 ac_cv_prog_CC="$CC" # Let the user override the test.
4208else
b7026657
AC
4209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210for as_dir in $PATH
4211do
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4216 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4218 break 2
4219 fi
4220done
81ecdfbb
RW
4221 done
4222IFS=$as_save_IFS
b7026657 4223
c906108c
SS
4224fi
4225fi
b7026657 4226CC=$ac_cv_prog_CC
c906108c 4227if test -n "$CC"; then
81ecdfbb
RW
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4229$as_echo "$CC" >&6; }
c906108c 4230else
81ecdfbb
RW
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232$as_echo "no" >&6; }
c906108c 4233fi
b7026657 4234
81ecdfbb 4235
b7026657
AC
4236 test -n "$CC" && break
4237 done
4238fi
4239if test -z "$CC"; then
4240 ac_ct_CC=$CC
81ecdfbb 4241 for ac_prog in cl.exe
b7026657
AC
4242do
4243 # Extract the first word of "$ac_prog", so it can be a program name with args.
4244set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246$as_echo_n "checking for $ac_word... " >&6; }
4247if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4248 $as_echo_n "(cached) " >&6
b7026657
AC
4249else
4250 if test -n "$ac_ct_CC"; then
4251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4252else
4253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254for as_dir in $PATH
4255do
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4260 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657 4262 break 2
c906108c 4263 fi
b7026657 4264done
81ecdfbb
RW
4265 done
4266IFS=$as_save_IFS
b7026657
AC
4267
4268fi
4269fi
4270ac_ct_CC=$ac_cv_prog_ac_ct_CC
4271if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4273$as_echo "$ac_ct_CC" >&6; }
b7026657 4274else
81ecdfbb
RW
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276$as_echo "no" >&6; }
c906108c
SS
4277fi
4278
81ecdfbb 4279
b7026657
AC
4280 test -n "$ac_ct_CC" && break
4281done
c906108c 4282
81ecdfbb
RW
4283 if test "x$ac_ct_CC" = x; then
4284 CC=""
4285 else
4286 case $cross_compiling:$ac_tool_warned in
4287yes:)
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4290ac_tool_warned=yes ;;
4291esac
4292 CC=$ac_ct_CC
4293 fi
b7026657
AC
4294fi
4295
4296fi
4297
4298
81ecdfbb
RW
4299test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4301as_fn_error "no acceptable C compiler found in \$PATH
4302See \`config.log' for more details." "$LINENO" 5; }
b7026657
AC
4303
4304# Provide some information about the compiler.
81ecdfbb
RW
4305$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4306set X $ac_compile
4307ac_compiler=$2
4308for ac_option in --version -v -V -qversion; do
4309 { { ac_try="$ac_compiler $ac_option >&5"
4310case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313esac
4314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315$as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b7026657 4317 ac_status=$?
81ecdfbb
RW
4318 if test -s conftest.err; then
4319 sed '10a\
4320... rest of stderr output deleted ...
4321 10q' conftest.err >conftest.er1
4322 cat conftest.er1 >&5
4323 rm -f conftest.er1 conftest.err
4324 fi
4325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; }
4327done
b7026657 4328
81ecdfbb 4329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4330/* end confdefs.h. */
4331
4332int
4333main ()
4334{
4335
4336 ;
4337 return 0;
4338}
4339_ACEOF
4340ac_clean_files_save=$ac_clean_files
81ecdfbb 4341ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
b7026657
AC
4342# Try to create an executable without -o first, disregard a.out.
4343# It will help us diagnose broken compilers, and finding out an intuition
4344# of exeext.
81ecdfbb
RW
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4346$as_echo_n "checking for C compiler default output file name... " >&6; }
4347ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4348
4349# The possible output files:
4350ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4351
4352ac_rmfiles=
4353for ac_file in $ac_files
4354do
4355 case $ac_file in
4356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4357 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4358 esac
4359done
4360rm -f $ac_rmfiles
4361
4362if { { ac_try="$ac_link_default"
4363case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366esac
4367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368$as_echo "$ac_try_echo"; } >&5
4369 (eval "$ac_link_default") 2>&5
b7026657 4370 ac_status=$?
81ecdfbb
RW
4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; }; then :
4373 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4374# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4375# in a Makefile. We should not override ac_cv_exeext if it was cached,
4376# so that the user can short-circuit this test for compilers unknown to
4377# Autoconf.
4378for ac_file in $ac_files ''
b7026657
AC
4379do
4380 test -f "$ac_file" || continue
4381 case $ac_file in
81ecdfbb 4382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b7026657
AC
4383 ;;
4384 [ab].out )
4385 # We found the default executable, but exeext='' is most
4386 # certainly right.
4387 break;;
4388 *.* )
81ecdfbb
RW
4389 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4390 then :; else
4391 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4392 fi
4393 # We set ac_cv_exeext here because the later test for it is not
4394 # safe: cross compilers may not add the suffix if given an `-o'
4395 # argument, so we may need to know it at that point already.
4396 # Even if this section looks crufty: it has the advantage of
4397 # actually working.
b7026657
AC
4398 break;;
4399 * )
4400 break;;
4401 esac
4402done
81ecdfbb
RW
4403test "$ac_cv_exeext" = no && ac_cv_exeext=
4404
b7026657 4405else
81ecdfbb
RW
4406 ac_file=''
4407fi
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4409$as_echo "$ac_file" >&6; }
4410if test -z "$ac_file"; then :
4411 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
4412sed 's/^/| /' conftest.$ac_ext >&5
4413
81ecdfbb
RW
4414{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4416{ as_fn_set_status 77
4417as_fn_error "C compiler cannot create executables
4418See \`config.log' for more details." "$LINENO" 5; }; }
b7026657 4419fi
b7026657 4420ac_exeext=$ac_cv_exeext
b7026657 4421
81ecdfbb 4422# Check that the compiler produces executables we can run. If not, either
b7026657 4423# the compiler is broken, or we cross compile.
81ecdfbb
RW
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4425$as_echo_n "checking whether the C compiler works... " >&6; }
b7026657
AC
4426# If not cross compiling, check that we can run a simple program.
4427if test "$cross_compiling" != yes; then
4428 if { ac_try='./$ac_file'
81ecdfbb
RW
4429 { { case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432esac
4433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4434$as_echo "$ac_try_echo"; } >&5
4435 (eval "$ac_try") 2>&5
b7026657 4436 ac_status=$?
81ecdfbb
RW
4437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4438 test $ac_status = 0; }; }; then
b7026657 4439 cross_compiling=no
c906108c 4440 else
b7026657
AC
4441 if test "$cross_compiling" = maybe; then
4442 cross_compiling=yes
4443 else
81ecdfbb
RW
4444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4446as_fn_error "cannot run C compiled programs.
b7026657 4447If you meant to cross compile, use \`--host'.
81ecdfbb 4448See \`config.log' for more details." "$LINENO" 5; }
b7026657 4449 fi
c906108c 4450 fi
c906108c 4451fi
81ecdfbb
RW
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4453$as_echo "yes" >&6; }
b7026657 4454
81ecdfbb 4455rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
b7026657 4456ac_clean_files=$ac_clean_files_save
81ecdfbb 4457# Check that the compiler produces executables we can run. If not, either
b7026657 4458# the compiler is broken, or we cross compile.
81ecdfbb
RW
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4460$as_echo_n "checking whether we are cross compiling... " >&6; }
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4462$as_echo "$cross_compiling" >&6; }
4463
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4465$as_echo_n "checking for suffix of executables... " >&6; }
4466if { { ac_try="$ac_link"
4467case "(($ac_try" in
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4470esac
4471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4472$as_echo "$ac_try_echo"; } >&5
4473 (eval "$ac_link") 2>&5
b7026657 4474 ac_status=$?
81ecdfbb
RW
4475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4476 test $ac_status = 0; }; then :
b7026657
AC
4477 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4478# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4479# work properly (i.e., refer to `conftest.exe'), while it won't with
4480# `rm'.
4481for ac_file in conftest.exe conftest conftest.*; do
4482 test -f "$ac_file" || continue
4483 case $ac_file in
81ecdfbb 4484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b7026657 4485 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b7026657
AC
4486 break;;
4487 * ) break;;
4488 esac
4489done
c906108c 4490else
81ecdfbb
RW
4491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4493as_fn_error "cannot compute suffix of executables: cannot compile and link
4494See \`config.log' for more details." "$LINENO" 5; }
c906108c 4495fi
b7026657 4496rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4498$as_echo "$ac_cv_exeext" >&6; }
b7026657
AC
4499
4500rm -f conftest.$ac_ext
4501EXEEXT=$ac_cv_exeext
4502ac_exeext=$EXEEXT
81ecdfbb
RW
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4504$as_echo_n "checking for suffix of object files... " >&6; }
4505if test "${ac_cv_objext+set}" = set; then :
4506 $as_echo_n "(cached) " >&6
b7026657 4507else
81ecdfbb 4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4509/* end confdefs.h. */
4510
4511int
4512main ()
4513{
4514
4515 ;
4516 return 0;
4517}
4518_ACEOF
4519rm -f conftest.o conftest.obj
81ecdfbb
RW
4520if { { ac_try="$ac_compile"
4521case "(($ac_try" in
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4524esac
4525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4526$as_echo "$ac_try_echo"; } >&5
4527 (eval "$ac_compile") 2>&5
b7026657 4528 ac_status=$?
81ecdfbb
RW
4529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4530 test $ac_status = 0; }; then :
4531 for ac_file in conftest.o conftest.obj conftest.*; do
4532 test -f "$ac_file" || continue;
b7026657 4533 case $ac_file in
81ecdfbb 4534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b7026657
AC
4535 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4536 break;;
4537 esac
4538done
4539else
81ecdfbb 4540 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
4541sed 's/^/| /' conftest.$ac_ext >&5
4542
81ecdfbb
RW
4543{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4545as_fn_error "cannot compute suffix of object files: cannot compile
4546See \`config.log' for more details." "$LINENO" 5; }
c906108c 4547fi
b7026657
AC
4548rm -f conftest.$ac_cv_objext conftest.$ac_ext
4549fi
81ecdfbb
RW
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4551$as_echo "$ac_cv_objext" >&6; }
b7026657
AC
4552OBJEXT=$ac_cv_objext
4553ac_objext=$OBJEXT
81ecdfbb
RW
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4555$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4556if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
b7026657 4558else
81ecdfbb 4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4560/* end confdefs.h. */
4561
4562int
4563main ()
4564{
4565#ifndef __GNUC__
4566 choke me
4567#endif
c906108c 4568
b7026657
AC
4569 ;
4570 return 0;
4571}
4572_ACEOF
81ecdfbb 4573if ac_fn_c_try_compile "$LINENO"; then :
b7026657 4574 ac_compiler_gnu=yes
c906108c 4575else
81ecdfbb 4576 ac_compiler_gnu=no
c906108c 4577fi
81ecdfbb 4578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 4579ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c 4580
b7026657 4581fi
81ecdfbb
RW
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4583$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4584if test $ac_compiler_gnu = yes; then
4585 GCC=yes
4586else
4587 GCC=
4588fi
b7026657
AC
4589ac_test_CFLAGS=${CFLAGS+set}
4590ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4592$as_echo_n "checking whether $CC accepts -g... " >&6; }
4593if test "${ac_cv_prog_cc_g+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
c906108c 4595else
81ecdfbb
RW
4596 ac_save_c_werror_flag=$ac_c_werror_flag
4597 ac_c_werror_flag=yes
4598 ac_cv_prog_cc_g=no
4599 CFLAGS="-g"
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4601/* end confdefs.h. */
4602
4603int
4604main ()
4605{
4606
4607 ;
4608 return 0;
4609}
4610_ACEOF
81ecdfbb 4611if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
4612 ac_cv_prog_cc_g=yes
4613else
81ecdfbb
RW
4614 CFLAGS=""
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616/* end confdefs.h. */
c906108c 4617
81ecdfbb
RW
4618int
4619main ()
4620{
4621
4622 ;
4623 return 0;
4624}
4625_ACEOF
4626if ac_fn_c_try_compile "$LINENO"; then :
4627
4628else
4629 ac_c_werror_flag=$ac_save_c_werror_flag
4630 CFLAGS="-g"
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632/* end confdefs.h. */
4633
4634int
4635main ()
4636{
4637
4638 ;
4639 return 0;
4640}
4641_ACEOF
4642if ac_fn_c_try_compile "$LINENO"; then :
4643 ac_cv_prog_cc_g=yes
4644fi
4645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646fi
4647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648fi
4649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 ac_c_werror_flag=$ac_save_c_werror_flag
4651fi
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4653$as_echo "$ac_cv_prog_cc_g" >&6; }
4654if test "$ac_test_CFLAGS" = set; then
4655 CFLAGS=$ac_save_CFLAGS
4656elif test $ac_cv_prog_cc_g = yes; then
4657 if test "$GCC" = yes; then
4658 CFLAGS="-g -O2"
4659 else
c906108c
SS
4660 CFLAGS="-g"
4661 fi
4662else
4663 if test "$GCC" = yes; then
4664 CFLAGS="-O2"
4665 else
4666 CFLAGS=
4667 fi
4668fi
81ecdfbb
RW
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4670$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4671if test "${ac_cv_prog_cc_c89+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
b7026657 4673else
81ecdfbb 4674 ac_cv_prog_cc_c89=no
b7026657 4675ac_save_CC=$CC
81ecdfbb 4676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4677/* end confdefs.h. */
4678#include <stdarg.h>
4679#include <stdio.h>
4680#include <sys/types.h>
4681#include <sys/stat.h>
4682/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4683struct buf { int x; };
4684FILE * (*rcsopen) (struct buf *, struct stat *, int);
4685static char *e (p, i)
4686 char **p;
4687 int i;
4688{
4689 return p[i];
4690}
4691static char *f (char * (*g) (char **, int), char **p, ...)
4692{
4693 char *s;
4694 va_list v;
4695 va_start (v,p);
4696 s = g (p, va_arg (v,int));
4697 va_end (v);
4698 return s;
4699}
4700
4701/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4702 function prototypes and stuff, but not '\xHH' hex character constants.
4703 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4704 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
4705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4706 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4707 that's true only with -std. */
b7026657
AC
4708int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4709
81ecdfbb
RW
4710/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4711 inside strings and character constants. */
4712#define FOO(x) 'x'
4713int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4714
b7026657
AC
4715int test (int i, double x);
4716struct s1 {int (*f) (int a);};
4717struct s2 {int (*f) (double a);};
4718int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4719int argc;
4720char **argv;
4721int
4722main ()
4723{
4724return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4725 ;
4726 return 0;
4727}
4728_ACEOF
81ecdfbb
RW
4729for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4730 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
4731do
4732 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4733 if ac_fn_c_try_compile "$LINENO"; then :
4734 ac_cv_prog_cc_c89=$ac_arg
b7026657 4735fi
81ecdfbb
RW
4736rm -f core conftest.err conftest.$ac_objext
4737 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 4738done
81ecdfbb 4739rm -f conftest.$ac_ext
b7026657
AC
4740CC=$ac_save_CC
4741
4742fi
81ecdfbb
RW
4743# AC_CACHE_VAL
4744case "x$ac_cv_prog_cc_c89" in
4745 x)
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4747$as_echo "none needed" >&6; } ;;
4748 xno)
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4750$as_echo "unsupported" >&6; } ;;
b7026657 4751 *)
81ecdfbb
RW
4752 CC="$CC $ac_cv_prog_cc_c89"
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4754$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b7026657 4755esac
81ecdfbb 4756if test "x$ac_cv_prog_cc_c89" != xno; then :
b7026657
AC
4757
4758fi
b7026657 4759
b7026657
AC
4760ac_ext=c
4761ac_cpp='$CPP $CPPFLAGS'
4762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4764ac_compiler_gnu=$ac_cv_c_compiler_gnu
4765
c906108c
SS
4766
4767
4768
2232061b
MF
4769# Check whether --enable-werror was given.
4770if test "${enable_werror+set}" = set; then :
4771 enableval=$enable_werror; case "${enableval}" in
4772 yes | y) ERROR_ON_WARNING="yes" ;;
4773 no | n) ERROR_ON_WARNING="no" ;;
4774 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4775 esac
4776fi
4777
4778
4779# Enable -Werror by default when using gcc
4780if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4781 ERROR_ON_WARNING=yes
4782fi
4783
4784WERROR_CFLAGS=""
4785if test "${ERROR_ON_WARNING}" = yes ; then
4786# NOTE: Disabled in the sim dir due to most sims generating warnings.
4787# WERROR_CFLAGS="-Werror"
4788 true
4789fi
4790
2232061b 4791build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
1a8a700e 4792-Wpointer-sign \
2232061b 4793-Wno-unused -Wunused-value -Wunused-function \
1a8a700e
MF
4794-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
4795-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
4796-Wold-style-declaration -Wold-style-definition"
2232061b
MF
4797
4798# Enable -Wno-format by default when using gcc on mingw since many
4799# GCC versions complain about %I64.
4800case "${host}" in
4801 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
d3685d60 4802 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
2232061b
MF
4803esac
4804
81ecdfbb
RW
4805# Check whether --enable-build-warnings was given.
4806if test "${enable_build_warnings+set}" = set; then :
4807 enableval=$enable_build_warnings; case "${enableval}" in
c8cca39f
AC
4808 yes) ;;
4809 no) build_warnings="-w";;
4810 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4811 build_warnings="${build_warnings} ${t}";;
4812 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4813 build_warnings="${t} ${build_warnings}";;
4814 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4815esac
4816if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4817 echo "Setting compiler warning flags = $build_warnings" 6>&1
4818fi
81ecdfbb
RW
4819fi
4820# Check whether --enable-sim-build-warnings was given.
4821if test "${enable_sim_build_warnings+set}" = set; then :
4822 enableval=$enable_sim_build_warnings; case "${enableval}" in
c906108c
SS
4823 yes) ;;
4824 no) build_warnings="-w";;
4825 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 4826 build_warnings="${build_warnings} ${t}";;
c906108c 4827 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
4828 build_warnings="${t} ${build_warnings}";;
4829 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
c906108c
SS
4830esac
4831if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
4832 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4833fi
81ecdfbb
RW
4834fi
4835WARN_CFLAGS=""
d4f3574e
SS
4836if test "x${build_warnings}" != x -a "x$GCC" = xyes
4837then
81ecdfbb
RW
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
4839$as_echo_n "checking compiler warning flags... " >&6; }
c8cca39f
AC
4840 # Separate out the -Werror flag as some files just cannot be
4841 # compiled with it enabled.
4842 for w in ${build_warnings}; do
4843 case $w in
4844 -Werr*) WERROR_CFLAGS=-Werror ;;
4845 *) # Check that GCC accepts it
4846 saved_CFLAGS="$CFLAGS"
4847 CFLAGS="$CFLAGS $w"
81ecdfbb 4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4849/* end confdefs.h. */
4850
4851int
4852main ()
4853{
4854
4855 ;
4856 return 0;
4857}
4858_ACEOF
81ecdfbb 4859if ac_fn_c_try_compile "$LINENO"; then :
c8cca39f 4860 WARN_CFLAGS="${WARN_CFLAGS} $w"
c8cca39f 4861fi
81ecdfbb 4862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c8cca39f
AC
4863 CFLAGS="$saved_CFLAGS"
4864 esac
4865 done
2232061b
MF
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
4867$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
c906108c
SS
4868fi
4869
4870
4871# Put a plausible default for CC_FOR_BUILD in Makefile.
4872if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then
4873 AR_FOR_BUILD='$(AR)'
4874 AR_FLAGS_FOR_BUILD='$(AR_FLAGS)'
4875 CC_FOR_BUILD='$(CC)'
4876 CFLAGS_FOR_BUILD='$(CFLAGS)'
4877 RANLIB_FOR_BUILD='$(RANLIB)'
4878 LIBIBERTY_LIB=../../libiberty/libiberty.a
4879else
4880 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4881 AR_FLAGS_FOR_BUILD=${AR_FLAGS_FOR_BUILD-rc}
4882 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4883 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"-g"}
4884 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4885 LIBIBERTY_LIB=
4886fi
4887
4888
c906108c 4889# Make sure we can run config.sub.
81ecdfbb
RW
4890$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4891 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4892
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4894$as_echo_n "checking build system type... " >&6; }
4895if test "${ac_cv_build+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
b7026657 4897else
81ecdfbb
RW
4898 ac_build_alias=$build_alias
4899test "x$ac_build_alias" = x &&
4900 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4901test "x$ac_build_alias" = x &&
4902 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4903ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4904 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4905
4906fi
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4908$as_echo "$ac_cv_build" >&6; }
4909case $ac_cv_build in
4910*-*-*) ;;
4911*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4912esac
b7026657 4913build=$ac_cv_build
81ecdfbb
RW
4914ac_save_IFS=$IFS; IFS='-'
4915set x $ac_cv_build
4916shift
4917build_cpu=$1
4918build_vendor=$2
4919shift; shift
4920# Remember, the first character of IFS is used to create $*,
4921# except with old shells:
4922build_os=$*
4923IFS=$ac_save_IFS
4924case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4925
4926
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4928$as_echo_n "checking host system type... " >&6; }
4929if test "${ac_cv_host+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
b7026657 4931else
81ecdfbb
RW
4932 if test "x$host_alias" = x; then
4933 ac_cv_host=$ac_cv_build
4934else
4935 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4936 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4937fi
c906108c 4938
b7026657 4939fi
81ecdfbb
RW
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4941$as_echo "$ac_cv_host" >&6; }
4942case $ac_cv_host in
4943*-*-*) ;;
4944*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4945esac
b7026657 4946host=$ac_cv_host
81ecdfbb
RW
4947ac_save_IFS=$IFS; IFS='-'
4948set x $ac_cv_host
4949shift
4950host_cpu=$1
4951host_vendor=$2
4952shift; shift
4953# Remember, the first character of IFS is used to create $*,
4954# except with old shells:
4955host_os=$*
4956IFS=$ac_save_IFS
4957case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4958
4959
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4961$as_echo_n "checking target system type... " >&6; }
4962if test "${ac_cv_target+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4964else
4965 if test "x$target_alias" = x; then
4966 ac_cv_target=$ac_cv_host
b7026657 4967else
81ecdfbb
RW
4968 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4969 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4970fi
c906108c 4971
b7026657 4972fi
81ecdfbb
RW
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4974$as_echo "$ac_cv_target" >&6; }
4975case $ac_cv_target in
4976*-*-*) ;;
4977*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4978esac
b7026657 4979target=$ac_cv_target
81ecdfbb
RW
4980ac_save_IFS=$IFS; IFS='-'
4981set x $ac_cv_target
4982shift
4983target_cpu=$1
4984target_vendor=$2
4985shift; shift
4986# Remember, the first character of IFS is used to create $*,
4987# except with old shells:
4988target_os=$*
4989IFS=$ac_save_IFS
4990case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c906108c 4991
c906108c 4992
b7026657
AC
4993# The aliases save the names the user supplied, while $host etc.
4994# will get canonicalized.
4995test -n "$target_alias" &&
c906108c
SS
4996 test "$program_prefix$program_suffix$program_transform_name" = \
4997 NONENONEs,x,x, &&
4998 program_prefix=${target_alias}-
81ecdfbb 4999
c906108c 5000test "$program_prefix" != NONE &&
81ecdfbb 5001 program_transform_name="s&^&$program_prefix&;$program_transform_name"
c906108c
SS
5002# Use a double $ so make ignores it.
5003test "$program_suffix" != NONE &&
81ecdfbb
RW
5004 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5005# Double any \ or $.
b7026657 5006# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
5007ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5008program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
c906108c
SS
5009
5010
5011. ${srcdir}/../../bfd/configure.host
5012
81ecdfbb 5013ac_config_headers="$ac_config_headers config.h:config.in"
c906108c
SS
5014
5015
b7026657
AC
5016ac_ext=c
5017ac_cpp='$CPP $CPPFLAGS'
5018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5022$as_echo_n "checking how to run the C preprocessor... " >&6; }
c906108c
SS
5023# On Suns, sometimes $CPP names a directory.
5024if test -n "$CPP" && test -d "$CPP"; then
5025 CPP=
5026fi
5027if test -z "$CPP"; then
81ecdfbb
RW
5028 if test "${ac_cv_prog_CPP+set}" = set; then :
5029 $as_echo_n "(cached) " >&6
c906108c 5030else
b7026657
AC
5031 # Double quotes because CPP needs to be expanded
5032 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5033 do
5034 ac_preproc_ok=false
5035for ac_c_preproc_warn_flag in '' yes
5036do
5037 # Use a header file that comes with gcc, so configuring glibc
5038 # with a fresh cross-compiler works.
5039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5040 # <limits.h> exists even on freestanding compilers.
c906108c 5041 # On the NeXT, cc -E runs the code through the compiler's parser,
b7026657 5042 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5044/* end confdefs.h. */
5045#ifdef __STDC__
5046# include <limits.h>
5047#else
5048# include <assert.h>
5049#endif
5050 Syntax error
5051_ACEOF
81ecdfbb 5052if ac_fn_c_try_cpp "$LINENO"; then :
b7026657 5053
81ecdfbb 5054else
b7026657
AC
5055 # Broken: fails on valid input.
5056continue
5057fi
5058rm -f conftest.err conftest.$ac_ext
5059
81ecdfbb 5060 # OK, works on sane cases. Now check whether nonexistent headers
b7026657 5061 # can be detected and how.
81ecdfbb 5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5063/* end confdefs.h. */
5064#include <ac_nonexistent.h>
5065_ACEOF
81ecdfbb 5066if ac_fn_c_try_cpp "$LINENO"; then :
b7026657
AC
5067 # Broken: success on invalid input.
5068continue
5069else
b7026657
AC
5070 # Passes both tests.
5071ac_preproc_ok=:
5072break
5073fi
5074rm -f conftest.err conftest.$ac_ext
5075
5076done
5077# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5078rm -f conftest.err conftest.$ac_ext
81ecdfbb 5079if $ac_preproc_ok; then :
b7026657
AC
5080 break
5081fi
5082
5083 done
5084 ac_cv_prog_CPP=$CPP
5085
5086fi
5087 CPP=$ac_cv_prog_CPP
5088else
5089 ac_cv_prog_CPP=$CPP
5090fi
81ecdfbb
RW
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5092$as_echo "$CPP" >&6; }
b7026657
AC
5093ac_preproc_ok=false
5094for ac_c_preproc_warn_flag in '' yes
5095do
5096 # Use a header file that comes with gcc, so configuring glibc
5097 # with a fresh cross-compiler works.
5098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5099 # <limits.h> exists even on freestanding compilers.
5100 # On the NeXT, cc -E runs the code through the compiler's parser,
5101 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5103/* end confdefs.h. */
5104#ifdef __STDC__
5105# include <limits.h>
5106#else
5107# include <assert.h>
5108#endif
5109 Syntax error
5110_ACEOF
81ecdfbb 5111if ac_fn_c_try_cpp "$LINENO"; then :
b7026657 5112
81ecdfbb 5113else
b7026657
AC
5114 # Broken: fails on valid input.
5115continue
5116fi
5117rm -f conftest.err conftest.$ac_ext
5118
81ecdfbb 5119 # OK, works on sane cases. Now check whether nonexistent headers
b7026657 5120 # can be detected and how.
81ecdfbb 5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5122/* end confdefs.h. */
5123#include <ac_nonexistent.h>
5124_ACEOF
81ecdfbb 5125if ac_fn_c_try_cpp "$LINENO"; then :
b7026657
AC
5126 # Broken: success on invalid input.
5127continue
5128else
b7026657
AC
5129 # Passes both tests.
5130ac_preproc_ok=:
5131break
5132fi
5133rm -f conftest.err conftest.$ac_ext
5134
5135done
5136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5137rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
5138if $ac_preproc_ok; then :
5139
c906108c 5140else
81ecdfbb
RW
5141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5143as_fn_error "C preprocessor \"$CPP\" fails sanity check
5144See \`config.log' for more details." "$LINENO" 5; }
b7026657
AC
5145fi
5146
5147ac_ext=c
5148ac_cpp='$CPP $CPPFLAGS'
5149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151ac_compiler_gnu=$ac_cv_c_compiler_gnu
5152
5153
81ecdfbb
RW
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5155$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5156if test "${ac_cv_path_GREP+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
b7026657 5158else
81ecdfbb
RW
5159 if test -z "$GREP"; then
5160 ac_path_GREP_found=false
5161 # Loop through the user's path and test for each of PROGNAME-LIST
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5164do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_prog in grep ggrep; do
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5170 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5171# Check for GNU ac_path_GREP and select it if it is found.
5172 # Check for GNU $ac_path_GREP
5173case `"$ac_path_GREP" --version 2>&1` in
5174*GNU*)
5175 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5176*)
5177 ac_count=0
5178 $as_echo_n 0123456789 >"conftest.in"
5179 while :
5180 do
5181 cat "conftest.in" "conftest.in" >"conftest.tmp"
5182 mv "conftest.tmp" "conftest.in"
5183 cp "conftest.in" "conftest.nl"
5184 $as_echo 'GREP' >> "conftest.nl"
5185 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5187 as_fn_arith $ac_count + 1 && ac_count=$as_val
5188 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5189 # Best one so far, save it but keep looking for a better one
5190 ac_cv_path_GREP="$ac_path_GREP"
5191 ac_path_GREP_max=$ac_count
b7026657 5192 fi
81ecdfbb
RW
5193 # 10*(2^10) chars as input seems more than enough
5194 test $ac_count -gt 10 && break
5195 done
5196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5197esac
5198
5199 $ac_path_GREP_found && break 3
5200 done
5201 done
5202 done
5203IFS=$as_save_IFS
5204 if test -z "$ac_cv_path_GREP"; then
5205 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5206 fi
5207else
5208 ac_cv_path_GREP=$GREP
5209fi
5210
b7026657 5211fi
81ecdfbb
RW
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5213$as_echo "$ac_cv_path_GREP" >&6; }
5214 GREP="$ac_cv_path_GREP"
b7026657
AC
5215
5216
81ecdfbb
RW
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5218$as_echo_n "checking for egrep... " >&6; }
5219if test "${ac_cv_path_EGREP+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
b7026657 5221else
81ecdfbb
RW
5222 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5223 then ac_cv_path_EGREP="$GREP -E"
5224 else
5225 if test -z "$EGREP"; then
5226 ac_path_EGREP_found=false
5227 # Loop through the user's path and test for each of PROGNAME-LIST
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5230do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_prog in egrep; do
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5236 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5237# Check for GNU ac_path_EGREP and select it if it is found.
5238 # Check for GNU $ac_path_EGREP
5239case `"$ac_path_EGREP" --version 2>&1` in
5240*GNU*)
5241 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5242*)
5243 ac_count=0
5244 $as_echo_n 0123456789 >"conftest.in"
5245 while :
5246 do
5247 cat "conftest.in" "conftest.in" >"conftest.tmp"
5248 mv "conftest.tmp" "conftest.in"
5249 cp "conftest.in" "conftest.nl"
5250 $as_echo 'EGREP' >> "conftest.nl"
5251 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5253 as_fn_arith $ac_count + 1 && ac_count=$as_val
5254 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5255 # Best one so far, save it but keep looking for a better one
5256 ac_cv_path_EGREP="$ac_path_EGREP"
5257 ac_path_EGREP_max=$ac_count
5258 fi
5259 # 10*(2^10) chars as input seems more than enough
5260 test $ac_count -gt 10 && break
5261 done
5262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5263esac
5264
5265 $ac_path_EGREP_found && break 3
5266 done
5267 done
5268 done
5269IFS=$as_save_IFS
5270 if test -z "$ac_cv_path_EGREP"; then
5271 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5272 fi
5273else
5274 ac_cv_path_EGREP=$EGREP
5275fi
5276
5277 fi
5278fi
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5280$as_echo "$ac_cv_path_EGREP" >&6; }
5281 EGREP="$ac_cv_path_EGREP"
5282
5283
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5285$as_echo_n "checking for ANSI C header files... " >&6; }
5286if test "${ac_cv_header_stdc+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5288else
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5290/* end confdefs.h. */
5291#include <stdlib.h>
5292#include <stdarg.h>
5293#include <string.h>
5294#include <float.h>
5295
5296int
5297main ()
5298{
5299
5300 ;
5301 return 0;
5302}
5303_ACEOF
81ecdfbb 5304if ac_fn_c_try_compile "$LINENO"; then :
b7026657
AC
5305 ac_cv_header_stdc=yes
5306else
81ecdfbb 5307 ac_cv_header_stdc=no
b7026657 5308fi
81ecdfbb 5309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657
AC
5310
5311if test $ac_cv_header_stdc = yes; then
5312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5314/* end confdefs.h. */
5315#include <string.h>
5316
5317_ACEOF
5318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5319 $EGREP "memchr" >/dev/null 2>&1; then :
5320
c906108c 5321else
b7026657 5322 ac_cv_header_stdc=no
c906108c
SS
5323fi
5324rm -f conftest*
b7026657 5325
c906108c 5326fi
b7026657
AC
5327
5328if test $ac_cv_header_stdc = yes; then
5329 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5331/* end confdefs.h. */
5332#include <stdlib.h>
5333
5334_ACEOF
5335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5336 $EGREP "free" >/dev/null 2>&1; then :
5337
b7026657
AC
5338else
5339 ac_cv_header_stdc=no
c906108c
SS
5340fi
5341rm -f conftest*
b7026657 5342
c906108c 5343fi
b7026657
AC
5344
5345if test $ac_cv_header_stdc = yes; then
5346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 5347 if test "$cross_compiling" = yes; then :
b7026657 5348 :
c906108c 5349else
81ecdfbb 5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5351/* end confdefs.h. */
5352#include <ctype.h>
81ecdfbb 5353#include <stdlib.h>
b7026657
AC
5354#if ((' ' & 0x0FF) == 0x020)
5355# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5356# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5357#else
5358# define ISLOWER(c) \
5359 (('a' <= (c) && (c) <= 'i') \
5360 || ('j' <= (c) && (c) <= 'r') \
5361 || ('s' <= (c) && (c) <= 'z'))
5362# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5363#endif
5364
5365#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5366int
5367main ()
5368{
5369 int i;
5370 for (i = 0; i < 256; i++)
5371 if (XOR (islower (i), ISLOWER (i))
5372 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
5373 return 2;
5374 return 0;
b7026657
AC
5375}
5376_ACEOF
81ecdfbb 5377if ac_fn_c_try_run "$LINENO"; then :
b7026657 5378
81ecdfbb
RW
5379else
5380 ac_cv_header_stdc=no
b7026657 5381fi
81ecdfbb
RW
5382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5383 conftest.$ac_objext conftest.beam conftest.$ac_ext
b7026657 5384fi
81ecdfbb 5385
b7026657
AC
5386fi
5387fi
81ecdfbb
RW
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5389$as_echo "$ac_cv_header_stdc" >&6; }
b7026657
AC
5390if test $ac_cv_header_stdc = yes; then
5391
81ecdfbb 5392$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b7026657 5393
c906108c 5394fi
c906108c 5395
b7026657 5396# On IRIX 5.3, sys/types and inttypes.h are conflicting.
81ecdfbb
RW
5397for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5398 inttypes.h stdint.h unistd.h
5399do :
5400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5401ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5402"
5403eval as_val=\$$as_ac_Header
5404 if test "x$as_val" = x""yes; then :
5405 cat >>confdefs.h <<_ACEOF
5406#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5407_ACEOF
b7026657 5408
81ecdfbb 5409fi
b7026657 5410
81ecdfbb 5411done
b7026657
AC
5412
5413
81ecdfbb
RW
5414for ac_header in stdlib.h string.h strings.h sys/stat.h sys/types.h unistd.h
5415do :
5416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5417ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5418eval as_val=\$$as_ac_Header
5419 if test "x$as_val" = x""yes; then :
5420 cat >>confdefs.h <<_ACEOF
5421#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5422_ACEOF
b7026657 5423
81ecdfbb 5424fi
b7026657 5425
81ecdfbb 5426done
b7026657 5427
81ecdfbb
RW
5428ac_header_dirent=no
5429for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5430 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5432$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5434 $as_echo_n "(cached) " >&6
b7026657 5435else
81ecdfbb 5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5437/* end confdefs.h. */
81ecdfbb
RW
5438#include <sys/types.h>
5439#include <$ac_hdr>
b7026657 5440
81ecdfbb
RW
5441int
5442main ()
5443{
5444if ((DIR *) 0)
5445return 0;
5446 ;
5447 return 0;
5448}
b7026657 5449_ACEOF
81ecdfbb 5450if ac_fn_c_try_compile "$LINENO"; then :
b7026657
AC
5451 eval "$as_ac_Header=yes"
5452else
81ecdfbb 5453 eval "$as_ac_Header=no"
c906108c 5454fi
81ecdfbb 5455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 5456fi
81ecdfbb
RW
5457eval ac_res=\$$as_ac_Header
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5459$as_echo "$ac_res" >&6; }
5460eval as_val=\$$as_ac_Header
5461 if test "x$as_val" = x""yes; then :
b7026657 5462 cat >>confdefs.h <<_ACEOF
81ecdfbb 5463#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
b7026657
AC
5464_ACEOF
5465
81ecdfbb 5466ac_header_dirent=$ac_hdr; break
c906108c 5467fi
b7026657 5468
c906108c
SS
5469done
5470# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5471if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5473$as_echo_n "checking for library containing opendir... " >&6; }
5474if test "${ac_cv_search_opendir+set}" = set; then :
5475 $as_echo_n "(cached) " >&6
b7026657
AC
5476else
5477 ac_func_search_save_LIBS=$LIBS
81ecdfbb 5478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5479/* end confdefs.h. */
5480
81ecdfbb
RW
5481/* Override any GCC internal prototype to avoid an error.
5482 Use char because int might match the return type of a GCC
5483 builtin and then its argument prototype would still apply. */
b7026657
AC
5484#ifdef __cplusplus
5485extern "C"
5486#endif
b7026657
AC
5487char opendir ();
5488int
5489main ()
5490{
81ecdfbb 5491return opendir ();
b7026657
AC
5492 ;
5493 return 0;
5494}
5495_ACEOF
81ecdfbb
RW
5496for ac_lib in '' dir; do
5497 if test -z "$ac_lib"; then
5498 ac_res="none required"
5499 else
5500 ac_res=-l$ac_lib
b7026657 5501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
5502 fi
5503 if ac_fn_c_try_link "$LINENO"; then :
5504 ac_cv_search_opendir=$ac_res
5505fi
5506rm -f core conftest.err conftest.$ac_objext \
5507 conftest$ac_exeext
5508 if test "${ac_cv_search_opendir+set}" = set; then :
5509 break
5510fi
5511done
5512if test "${ac_cv_search_opendir+set}" = set; then :
b7026657 5513
c906108c 5514else
81ecdfbb 5515 ac_cv_search_opendir=no
b7026657 5516fi
81ecdfbb 5517rm conftest.$ac_ext
b7026657
AC
5518LIBS=$ac_func_search_save_LIBS
5519fi
81ecdfbb
RW
5520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5521$as_echo "$ac_cv_search_opendir" >&6; }
5522ac_res=$ac_cv_search_opendir
5523if test "$ac_res" != no; then :
5524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b7026657 5525
c906108c
SS
5526fi
5527
5528else
81ecdfbb
RW
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5530$as_echo_n "checking for library containing opendir... " >&6; }
5531if test "${ac_cv_search_opendir+set}" = set; then :
5532 $as_echo_n "(cached) " >&6
c906108c 5533else
b7026657 5534 ac_func_search_save_LIBS=$LIBS
81ecdfbb 5535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5536/* end confdefs.h. */
5537
81ecdfbb
RW
5538/* Override any GCC internal prototype to avoid an error.
5539 Use char because int might match the return type of a GCC
5540 builtin and then its argument prototype would still apply. */
b7026657
AC
5541#ifdef __cplusplus
5542extern "C"
5543#endif
b7026657
AC
5544char opendir ();
5545int
5546main ()
5547{
81ecdfbb 5548return opendir ();
b7026657
AC
5549 ;
5550 return 0;
5551}
5552_ACEOF
81ecdfbb
RW
5553for ac_lib in '' x; do
5554 if test -z "$ac_lib"; then
5555 ac_res="none required"
5556 else
5557 ac_res=-l$ac_lib
b7026657 5558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
5559 fi
5560 if ac_fn_c_try_link "$LINENO"; then :
5561 ac_cv_search_opendir=$ac_res
5562fi
5563rm -f core conftest.err conftest.$ac_objext \
5564 conftest$ac_exeext
5565 if test "${ac_cv_search_opendir+set}" = set; then :
5566 break
5567fi
5568done
5569if test "${ac_cv_search_opendir+set}" = set; then :
b7026657 5570
c906108c 5571else
81ecdfbb 5572 ac_cv_search_opendir=no
b7026657 5573fi
81ecdfbb 5574rm conftest.$ac_ext
b7026657 5575LIBS=$ac_func_search_save_LIBS
c906108c 5576fi
81ecdfbb
RW
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5578$as_echo "$ac_cv_search_opendir" >&6; }
5579ac_res=$ac_cv_search_opendir
5580if test "$ac_res" != no; then :
5581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
c906108c
SS
5582
5583fi
5584
b7026657 5585fi
c906108c
SS
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
b7026657
AC
5596
5597if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5599set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601$as_echo_n "checking for $ac_word... " >&6; }
5602if test "${ac_cv_prog_RANLIB+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
c906108c
SS
5604else
5605 if test -n "$RANLIB"; then
5606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5607else
b7026657
AC
5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609for as_dir in $PATH
5610do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 5615 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
5617 break 2
5618 fi
5619done
81ecdfbb
RW
5620 done
5621IFS=$as_save_IFS
b7026657 5622
c906108c
SS
5623fi
5624fi
b7026657 5625RANLIB=$ac_cv_prog_RANLIB
c906108c 5626if test -n "$RANLIB"; then
81ecdfbb
RW
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5628$as_echo "$RANLIB" >&6; }
b7026657 5629else
81ecdfbb
RW
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631$as_echo "no" >&6; }
b7026657
AC
5632fi
5633
81ecdfbb 5634
b7026657
AC
5635fi
5636if test -z "$ac_cv_prog_RANLIB"; then
5637 ac_ct_RANLIB=$RANLIB
5638 # Extract the first word of "ranlib", so it can be a program name with args.
5639set dummy ranlib; ac_word=$2
81ecdfbb
RW
5640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641$as_echo_n "checking for $ac_word... " >&6; }
5642if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5643 $as_echo_n "(cached) " >&6
b7026657
AC
5644else
5645 if test -n "$ac_ct_RANLIB"; then
5646 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5647else
5648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649for as_dir in $PATH
5650do
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 5655 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
5657 break 2
5658 fi
5659done
81ecdfbb
RW
5660 done
5661IFS=$as_save_IFS
b7026657 5662
b7026657
AC
5663fi
5664fi
5665ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5666if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5668$as_echo "$ac_ct_RANLIB" >&6; }
b7026657 5669else
81ecdfbb
RW
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671$as_echo "no" >&6; }
b7026657
AC
5672fi
5673
81ecdfbb
RW
5674 if test "x$ac_ct_RANLIB" = x; then
5675 RANLIB=":"
5676 else
5677 case $cross_compiling:$ac_tool_warned in
5678yes:)
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681ac_tool_warned=yes ;;
5682esac
5683 RANLIB=$ac_ct_RANLIB
5684 fi
c906108c 5685else
b7026657 5686 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
5687fi
5688
5689
81ecdfbb
RW
5690ac_config_files="$ac_config_files Makefile"
5691
5692ac_config_commands="$ac_config_commands default"
5693
b7026657 5694cat >confcache <<\_ACEOF
c906108c
SS
5695# This file is a shell script that caches the results of configure
5696# tests run on this system so they can be shared between configure
b7026657
AC
5697# scripts and configure runs, see configure's option --config-cache.
5698# It is not useful on other systems. If it contains results you don't
5699# want to keep, you may remove or edit it.
c906108c 5700#
b7026657
AC
5701# config.status only pays attention to the cache file if you give it
5702# the --recheck option to rerun configure.
c906108c 5703#
b7026657
AC
5704# `ac_cv_env_foo' variables (set or unset) will be overridden when
5705# loading this file, other *unset* `ac_cv_foo' will be assigned the
5706# following values.
5707
5708_ACEOF
5709
c906108c
SS
5710# The following way of writing the cache mishandles newlines in values,
5711# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 5712# So, we kill variables containing newlines.
c906108c
SS
5713# Ultrix sh set writes to stderr and can't be redirected directly,
5714# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
5715(
5716 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5717 eval ac_val=\$$ac_var
5718 case $ac_val in #(
5719 *${as_nl}*)
5720 case $ac_var in #(
5721 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5722$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5723 esac
5724 case $ac_var in #(
5725 _ | IFS | as_nl) ;; #(
5726 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5727 *) { eval $ac_var=; unset $ac_var;} ;;
5728 esac ;;
5729 esac
5730 done
5731
b7026657 5732 (set) 2>&1 |
81ecdfbb
RW
5733 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5734 *${as_nl}ac_space=\ *)
5735 # `set' does not quote correctly, so add quotes: double-quote
5736 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
5737 sed -n \
5738 "s/'/'\\\\''/g;
5739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 5740 ;; #(
b7026657
AC
5741 *)
5742 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 5743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 5744 ;;
81ecdfbb
RW
5745 esac |
5746 sort
5747) |
b7026657 5748 sed '
81ecdfbb 5749 /^ac_cv_env_/b end
b7026657 5750 t clear
81ecdfbb 5751 :clear
b7026657
AC
5752 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5753 t end
81ecdfbb
RW
5754 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5755 :end' >>confcache
5756if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5757 if test -w "$cache_file"; then
5758 test "x$cache_file" != "x/dev/null" &&
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5760$as_echo "$as_me: updating cache $cache_file" >&6;}
b7026657 5761 cat confcache >$cache_file
c906108c 5762 else
81ecdfbb
RW
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5764$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
5765 fi
5766fi
5767rm -f confcache
5768
c906108c
SS
5769test "x$prefix" = xNONE && prefix=$ac_default_prefix
5770# Let make expand exec_prefix.
5771test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5772
c906108c
SS
5773DEFS=-DHAVE_CONFIG_H
5774
b7026657
AC
5775ac_libobjs=
5776ac_ltlibobjs=
5777for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5778 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
5779 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5780 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5781 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5782 # will be set to the directory where LIBOBJS objects are built.
5783 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5784 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
5785done
5786LIBOBJS=$ac_libobjs
c906108c 5787
b7026657
AC
5788LTLIBOBJS=$ac_ltlibobjs
5789
5790
5791
5792: ${CONFIG_STATUS=./config.status}
81ecdfbb 5793ac_write_fail=0
b7026657
AC
5794ac_clean_files_save=$ac_clean_files
5795ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5797$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5798as_write_fail=0
5799cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
5800#! $SHELL
5801# Generated by $as_me.
c906108c 5802# Run this file to recreate the current configuration.
c906108c 5803# Compiler output produced by configure, useful for debugging
b7026657
AC
5804# configure, is in config.log if it exists.
5805
5806debug=false
5807ac_cs_recheck=false
5808ac_cs_silent=false
b7026657 5809
81ecdfbb
RW
5810SHELL=\${CONFIG_SHELL-$SHELL}
5811export SHELL
5812_ASEOF
5813cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5814## -------------------- ##
5815## M4sh Initialization. ##
5816## -------------------- ##
5817
5818# Be more Bourne compatible
5819DUALCASE=1; export DUALCASE # for MKS sh
5820if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
5821 emulate sh
5822 NULLCMD=:
81ecdfbb 5823 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
5824 # is contrary to our usage. Disable this feature.
5825 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
5826 setopt NO_GLOB_SUBST
5827else
5828 case `(set -o) 2>/dev/null` in #(
5829 *posix*) :
5830 set -o posix ;; #(
5831 *) :
5832 ;;
5833esac
b7026657 5834fi
c906108c 5835
81ecdfbb
RW
5836
5837as_nl='
5838'
5839export as_nl
5840# Printing a long string crashes Solaris 7 /usr/bin/printf.
5841as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5842as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5843as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5844# Prefer a ksh shell builtin over an external printf program on Solaris,
5845# but without wasting forks for bash or zsh.
5846if test -z "$BASH_VERSION$ZSH_VERSION" \
5847 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5848 as_echo='print -r --'
5849 as_echo_n='print -rn --'
5850elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5851 as_echo='printf %s\n'
5852 as_echo_n='printf %s'
b7026657 5853else
81ecdfbb
RW
5854 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5855 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5856 as_echo_n='/usr/ucb/echo -n'
5857 else
5858 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5859 as_echo_n_body='eval
5860 arg=$1;
5861 case $arg in #(
5862 *"$as_nl"*)
5863 expr "X$arg" : "X\\(.*\\)$as_nl";
5864 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5865 esac;
5866 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5867 '
5868 export as_echo_n_body
5869 as_echo_n='sh -c $as_echo_n_body as_echo'
5870 fi
5871 export as_echo_body
5872 as_echo='sh -c $as_echo_body as_echo'
5873fi
5874
5875# The user is always right.
5876if test "${PATH_SEPARATOR+set}" != set; then
5877 PATH_SEPARATOR=:
5878 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5879 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5880 PATH_SEPARATOR=';'
5881 }
b7026657
AC
5882fi
5883
5884
81ecdfbb
RW
5885# IFS
5886# We need space, tab and new line, in precisely that order. Quoting is
5887# there to prevent editors from complaining about space-tab.
5888# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5889# splitting by setting IFS to empty value.)
5890IFS=" "" $as_nl"
5891
5892# Find who we are. Look in the path if we contain no directory separator.
5893case $0 in #((
5894 *[\\/]* ) as_myself=$0 ;;
5895 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896for as_dir in $PATH
5897do
5898 IFS=$as_save_IFS
5899 test -z "$as_dir" && as_dir=.
5900 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5901 done
5902IFS=$as_save_IFS
5903
5904 ;;
5905esac
5906# We did not find ourselves, most probably we were run as `sh COMMAND'
5907# in which case we are not to be found in the path.
5908if test "x$as_myself" = x; then
5909 as_myself=$0
5910fi
5911if test ! -f "$as_myself"; then
5912 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5913 exit 1
5914fi
5915
5916# Unset variables that we do not need and which cause bugs (e.g. in
5917# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5918# suppresses any "Segmentation fault" message there. '((' could
5919# trigger a bug in pdksh 5.2.14.
5920for as_var in BASH_ENV ENV MAIL MAILPATH
5921do eval test x\${$as_var+set} = xset \
5922 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5923done
b7026657
AC
5924PS1='$ '
5925PS2='> '
5926PS4='+ '
5927
5928# NLS nuisances.
81ecdfbb
RW
5929LC_ALL=C
5930export LC_ALL
5931LANGUAGE=C
5932export LANGUAGE
5933
5934# CDPATH.
5935(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5936
5937
5938# as_fn_error ERROR [LINENO LOG_FD]
5939# ---------------------------------
5940# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5941# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5942# script with status $?, using 1 if that was 0.
5943as_fn_error ()
5944{
5945 as_status=$?; test $as_status -eq 0 && as_status=1
5946 if test "$3"; then
5947 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5948 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
b7026657 5949 fi
81ecdfbb
RW
5950 $as_echo "$as_me: error: $1" >&2
5951 as_fn_exit $as_status
5952} # as_fn_error
5953
5954
5955# as_fn_set_status STATUS
5956# -----------------------
5957# Set $? to STATUS, without forking.
5958as_fn_set_status ()
5959{
5960 return $1
5961} # as_fn_set_status
5962
5963# as_fn_exit STATUS
5964# -----------------
5965# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5966as_fn_exit ()
5967{
5968 set +e
5969 as_fn_set_status $1
5970 exit $1
5971} # as_fn_exit
5972
5973# as_fn_unset VAR
5974# ---------------
5975# Portably unset VAR.
5976as_fn_unset ()
5977{
5978 { eval $1=; unset $1;}
5979}
5980as_unset=as_fn_unset
5981# as_fn_append VAR VALUE
5982# ----------------------
5983# Append the text in VALUE to the end of the definition contained in VAR. Take
5984# advantage of any shell optimizations that allow amortized linear growth over
5985# repeated appends, instead of the typical quadratic growth present in naive
5986# implementations.
5987if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5988 eval 'as_fn_append ()
5989 {
5990 eval $1+=\$2
5991 }'
5992else
5993 as_fn_append ()
5994 {
5995 eval $1=\$$1\$2
5996 }
5997fi # as_fn_append
5998
5999# as_fn_arith ARG...
6000# ------------------
6001# Perform arithmetic evaluation on the ARGs, and store the result in the
6002# global $as_val. Take advantage of shells that can avoid forks. The arguments
6003# must be portable across $(()) and expr.
6004if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6005 eval 'as_fn_arith ()
6006 {
6007 as_val=$(( $* ))
6008 }'
6009else
6010 as_fn_arith ()
6011 {
6012 as_val=`expr "$@" || test $? -eq 1`
6013 }
6014fi # as_fn_arith
6015
c906108c 6016
81ecdfbb
RW
6017if expr a : '\(a\)' >/dev/null 2>&1 &&
6018 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
6019 as_expr=expr
6020else
6021 as_expr=false
6022fi
c906108c 6023
81ecdfbb 6024if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
6025 as_basename=basename
6026else
6027 as_basename=false
6028fi
c906108c 6029
81ecdfbb
RW
6030if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6031 as_dirname=dirname
6032else
6033 as_dirname=false
6034fi
c906108c 6035
81ecdfbb 6036as_me=`$as_basename -- "$0" ||
b7026657
AC
6037$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6038 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
6039 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6040$as_echo X/"$0" |
6041 sed '/^.*\/\([^/][^/]*\)\/*$/{
6042 s//\1/
6043 q
6044 }
6045 /^X\/\(\/\/\)$/{
6046 s//\1/
6047 q
6048 }
6049 /^X\/\(\/\).*/{
6050 s//\1/
6051 q
6052 }
6053 s/.*/./; q'`
b7026657 6054
b7026657
AC
6055# Avoid depending upon Character Ranges.
6056as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6057as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6058as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6059as_cr_digits='0123456789'
6060as_cr_alnum=$as_cr_Letters$as_cr_digits
6061
81ecdfbb
RW
6062ECHO_C= ECHO_N= ECHO_T=
6063case `echo -n x` in #(((((
6064-n*)
6065 case `echo 'xy\c'` in
6066 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6067 xy) ECHO_C='\c';;
6068 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6069 ECHO_T=' ';;
6070 esac;;
6071*)
6072 ECHO_N='-n';;
b7026657
AC
6073esac
6074
81ecdfbb
RW
6075rm -f conf$$ conf$$.exe conf$$.file
6076if test -d conf$$.dir; then
6077 rm -f conf$$.dir/conf$$.file
b7026657 6078else
81ecdfbb
RW
6079 rm -f conf$$.dir
6080 mkdir conf$$.dir 2>/dev/null
b7026657 6081fi
81ecdfbb
RW
6082if (echo >conf$$.file) 2>/dev/null; then
6083 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 6084 as_ln_s='ln -s'
81ecdfbb
RW
6085 # ... but there are two gotchas:
6086 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6087 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6088 # In both cases, we have to default to `cp -p'.
6089 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6090 as_ln_s='cp -p'
6091 elif ln conf$$.file conf$$ 2>/dev/null; then
6092 as_ln_s=ln
6093 else
6094 as_ln_s='cp -p'
c906108c 6095 fi
b7026657
AC
6096else
6097 as_ln_s='cp -p'
6098fi
81ecdfbb
RW
6099rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6100rmdir conf$$.dir 2>/dev/null
6101
6102
6103# as_fn_mkdir_p
6104# -------------
6105# Create "$as_dir" as a directory, including parents if necessary.
6106as_fn_mkdir_p ()
6107{
6108
6109 case $as_dir in #(
6110 -*) as_dir=./$as_dir;;
6111 esac
6112 test -d "$as_dir" || eval $as_mkdir_p || {
6113 as_dirs=
6114 while :; do
6115 case $as_dir in #(
6116 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6117 *) as_qdir=$as_dir;;
6118 esac
6119 as_dirs="'$as_qdir' $as_dirs"
6120 as_dir=`$as_dirname -- "$as_dir" ||
6121$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6122 X"$as_dir" : 'X\(//\)[^/]' \| \
6123 X"$as_dir" : 'X\(//\)$' \| \
6124 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6125$as_echo X"$as_dir" |
6126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6127 s//\1/
6128 q
6129 }
6130 /^X\(\/\/\)[^/].*/{
6131 s//\1/
6132 q
6133 }
6134 /^X\(\/\/\)$/{
6135 s//\1/
6136 q
6137 }
6138 /^X\(\/\).*/{
6139 s//\1/
6140 q
6141 }
6142 s/.*/./; q'`
6143 test -d "$as_dir" && break
6144 done
6145 test -z "$as_dirs" || eval "mkdir $as_dirs"
6146 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
b7026657 6147
81ecdfbb
RW
6148
6149} # as_fn_mkdir_p
b7026657 6150if mkdir -p . 2>/dev/null; then
81ecdfbb 6151 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
6152else
6153 test -d ./-p && rmdir ./-p
6154 as_mkdir_p=false
6155fi
6156
81ecdfbb
RW
6157if test -x / >/dev/null 2>&1; then
6158 as_test_x='test -x'
6159else
6160 if ls -dL / >/dev/null 2>&1; then
6161 as_ls_L_option=L
6162 else
6163 as_ls_L_option=
6164 fi
6165 as_test_x='
6166 eval sh -c '\''
6167 if test -d "$1"; then
6168 test -d "$1/.";
6169 else
6170 case $1 in #(
6171 -*)set "./$1";;
6172 esac;
6173 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6174 ???[sx]*):;;*)false;;esac;fi
6175 '\'' sh
6176 '
6177fi
6178as_executable_p=$as_test_x
b7026657
AC
6179
6180# Sed expression to map a string onto a valid CPP name.
6181as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6182
6183# Sed expression to map a string onto a valid variable name.
6184as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6185
6186
b7026657 6187exec 6>&1
81ecdfbb
RW
6188## ----------------------------------- ##
6189## Main body of $CONFIG_STATUS script. ##
6190## ----------------------------------- ##
6191_ASEOF
6192test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6193
6194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6195# Save the log message, to keep $0 and so on meaningful, and to
b7026657 6196# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
6197# values after options handling.
6198ac_log="
b7026657 6199This file was extended by $as_me, which was
81ecdfbb 6200generated by GNU Autoconf 2.64. Invocation command line was
b7026657
AC
6201
6202 CONFIG_FILES = $CONFIG_FILES
6203 CONFIG_HEADERS = $CONFIG_HEADERS
6204 CONFIG_LINKS = $CONFIG_LINKS
6205 CONFIG_COMMANDS = $CONFIG_COMMANDS
6206 $ $0 $@
6207
81ecdfbb
RW
6208on `(hostname || uname -n) 2>/dev/null | sed 1q`
6209"
6210
b7026657
AC
6211_ACEOF
6212
81ecdfbb
RW
6213case $ac_config_files in *"
6214"*) set x $ac_config_files; shift; ac_config_files=$*;;
6215esac
b7026657 6216
81ecdfbb
RW
6217case $ac_config_headers in *"
6218"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6219esac
b7026657 6220
b7026657 6221
81ecdfbb
RW
6222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6223# Files that config.status was made for.
6224config_files="$ac_config_files"
6225config_headers="$ac_config_headers"
6226config_commands="$ac_config_commands"
b7026657 6227
81ecdfbb 6228_ACEOF
b7026657 6229
81ecdfbb 6230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 6231ac_cs_usage="\
81ecdfbb
RW
6232\`$as_me' instantiates files and other configuration actions
6233from templates according to the current configuration. Unless the files
6234and actions are specified as TAGs, all are instantiated by default.
b7026657 6235
81ecdfbb 6236Usage: $0 [OPTION]... [TAG]...
b7026657
AC
6237
6238 -h, --help print this help, then exit
81ecdfbb
RW
6239 -V, --version print version number and configuration settings, then exit
6240 -q, --quiet, --silent
6241 do not print progress messages
b7026657
AC
6242 -d, --debug don't remove temporary files
6243 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
6244 --file=FILE[:TEMPLATE]
6245 instantiate the configuration file FILE
6246 --header=FILE[:TEMPLATE]
6247 instantiate the configuration header FILE
b7026657
AC
6248
6249Configuration files:
6250$config_files
6251
6252Configuration headers:
6253$config_headers
6254
6255Configuration commands:
6256$config_commands
6257
81ecdfbb 6258Report bugs to the package provider."
b7026657 6259
81ecdfbb
RW
6260_ACEOF
6261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657
AC
6262ac_cs_version="\\
6263config.status
81ecdfbb
RW
6264configured by $0, generated by GNU Autoconf 2.64,
6265 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b7026657 6266
81ecdfbb 6267Copyright (C) 2009 Free Software Foundation, Inc.
b7026657
AC
6268This config.status script is free software; the Free Software Foundation
6269gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
6270
6271ac_pwd='$ac_pwd'
6272srcdir='$srcdir'
6273INSTALL='$INSTALL'
6274test -n "\$AWK" || AWK=awk
b7026657
AC
6275_ACEOF
6276
81ecdfbb
RW
6277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6278# The default lists apply if the user does not specify any file.
b7026657
AC
6279ac_need_defaults=:
6280while test $# != 0
6281do
6282 case $1 in
6283 --*=*)
81ecdfbb
RW
6284 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6285 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
6286 ac_shift=:
6287 ;;
81ecdfbb 6288 *)
b7026657
AC
6289 ac_option=$1
6290 ac_optarg=$2
6291 ac_shift=shift
6292 ;;
b7026657
AC
6293 esac
6294
6295 case $ac_option in
6296 # Handling of the options.
b7026657
AC
6297 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6298 ac_cs_recheck=: ;;
81ecdfbb
RW
6299 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6300 $as_echo "$ac_cs_version"; exit ;;
6301 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
6302 debug=: ;;
6303 --file | --fil | --fi | --f )
6304 $ac_shift
81ecdfbb
RW
6305 case $ac_optarg in
6306 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6307 esac
6308 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
6309 ac_need_defaults=false;;
6310 --header | --heade | --head | --hea )
6311 $ac_shift
81ecdfbb
RW
6312 case $ac_optarg in
6313 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6314 esac
6315 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 6316 ac_need_defaults=false;;
81ecdfbb
RW
6317 --he | --h)
6318 # Conflict between --help and --header
6319 as_fn_error "ambiguous option: \`$1'
6320Try \`$0 --help' for more information.";;
6321 --help | --hel | -h )
6322 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
6323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6324 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6325 ac_cs_silent=: ;;
6326
6327 # This is an error.
81ecdfbb
RW
6328 -*) as_fn_error "unrecognized option: \`$1'
6329Try \`$0 --help' for more information." ;;
b7026657 6330
81ecdfbb
RW
6331 *) as_fn_append ac_config_targets " $1"
6332 ac_need_defaults=false ;;
b7026657
AC
6333
6334 esac
6335 shift
c906108c 6336done
b7026657
AC
6337
6338ac_configure_extra_args=
6339
6340if $ac_cs_silent; then
6341 exec 6>/dev/null
6342 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c 6343fi
c906108c 6344
b7026657 6345_ACEOF
81ecdfbb 6346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 6347if \$ac_cs_recheck; then
81ecdfbb
RW
6348 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6349 shift
6350 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6351 CONFIG_SHELL='$SHELL'
6352 export CONFIG_SHELL
6353 exec "\$@"
b7026657 6354fi
c906108c 6355
b7026657 6356_ACEOF
81ecdfbb
RW
6357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6358exec 5>>config.log
6359{
6360 echo
6361 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6362## Running $as_me. ##
6363_ASBOX
6364 $as_echo "$ac_log"
6365} >&5
b7026657 6366
81ecdfbb
RW
6367_ACEOF
6368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6369_ACEOF
b7026657 6370
81ecdfbb 6371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 6372
81ecdfbb 6373# Handling of arguments.
b7026657
AC
6374for ac_config_target in $ac_config_targets
6375do
81ecdfbb
RW
6376 case $ac_config_target in
6377 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6378 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6379 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6380
6381 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 6382 esac
b7026657
AC
6383done
6384
81ecdfbb 6385
b7026657
AC
6386# If the user did not use the arguments to specify the items to instantiate,
6387# then the envvar interface is used. Set only those that are not.
6388# We use the long form for the default assignment because of an extremely
6389# bizarre bug on SunOS 4.1.3.
6390if $ac_need_defaults; then
6391 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6392 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6393 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6394fi
c906108c 6395
b7026657 6396# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 6397# simply because there is no reason against having it here, and in addition,
b7026657 6398# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
6399# Hook for its removal unless debugging.
6400# Note that there is a small window in which the directory will not be cleaned:
6401# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
6402$debug ||
6403{
81ecdfbb
RW
6404 tmp=
6405 trap 'exit_status=$?
6406 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6407' 0
6408 trap 'as_fn_exit 1' 1 2 13 15
b7026657 6409}
b7026657
AC
6410# Create a (secure) tmp directory for tmp files.
6411
6412{
81ecdfbb 6413 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b7026657
AC
6414 test -n "$tmp" && test -d "$tmp"
6415} ||
6416{
81ecdfbb
RW
6417 tmp=./conf$$-$RANDOM
6418 (umask 077 && mkdir "$tmp")
6419} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6420
6421# Set up the scripts for CONFIG_FILES section.
6422# No need to generate them if there are no CONFIG_FILES.
6423# This happens for instance with `./config.status config.h'.
6424if test -n "$CONFIG_FILES"; then
6425
6426
6427ac_cr=`echo X | tr X '\015'`
6428# On cygwin, bash can eat \r inside `` if the user requested igncr.
6429# But we know of no other shell where ac_cr would be empty at this
6430# point, so we can use a bashism as a fallback.
6431if test "x$ac_cr" = x; then
6432 eval ac_cr=\$\'\\r\'
6433fi
6434ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6435if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6436 ac_cs_awk_cr='\r'
6437else
6438 ac_cs_awk_cr=$ac_cr
6439fi
6440
6441echo 'BEGIN {' >"$tmp/subs1.awk" &&
6442_ACEOF
6443
6444
b7026657 6445{
81ecdfbb
RW
6446 echo "cat >conf$$subs.awk <<_ACEOF" &&
6447 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6448 echo "_ACEOF"
6449} >conf$$subs.sh ||
6450 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6451ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6452ac_delim='%!_!# '
6453for ac_last_try in false false false false false :; do
6454 . ./conf$$subs.sh ||
6455 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6456
6457 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6458 if test $ac_delim_n = $ac_delim_num; then
6459 break
6460 elif $ac_last_try; then
6461 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6462 else
6463 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6464 fi
6465done
6466rm -f conf$$subs.sh
b7026657 6467
81ecdfbb
RW
6468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6469cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
b7026657 6470_ACEOF
81ecdfbb
RW
6471sed -n '
6472h
6473s/^/S["/; s/!.*/"]=/
6474p
6475g
6476s/^[^!]*!//
6477:repl
6478t repl
6479s/'"$ac_delim"'$//
6480t delim
6481:nl
6482h
6483s/\(.\{148\}\).*/\1/
6484t more1
6485s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6486p
6487n
6488b repl
6489:more1
6490s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6491p
6492g
6493s/.\{148\}//
6494t nl
6495:delim
6496h
6497s/\(.\{148\}\).*/\1/
6498t more2
6499s/["\\]/\\&/g; s/^/"/; s/$/"/
6500p
6501b
6502:more2
6503s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6504p
6505g
6506s/.\{148\}//
6507t delim
6508' <conf$$subs.awk | sed '
6509/^[^""]/{
6510 N
6511 s/\n//
6512}
6513' >>$CONFIG_STATUS || ac_write_fail=1
6514rm -f conf$$subs.awk
6515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6516_ACAWK
6517cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6518 for (key in S) S_is_set[key] = 1
6519 FS = "\a"
b7026657 6520
81ecdfbb
RW
6521}
6522{
6523 line = $ 0
6524 nfields = split(line, field, "@")
6525 substed = 0
6526 len = length(field[1])
6527 for (i = 2; i < nfields; i++) {
6528 key = field[i]
6529 keylen = length(key)
6530 if (S_is_set[key]) {
6531 value = S[key]
6532 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6533 len += length(value) + length(field[++i])
6534 substed = 1
6535 } else
6536 len += 1 + keylen
6537 }
6538
6539 print line
6540}
c906108c 6541
81ecdfbb
RW
6542_ACAWK
6543_ACEOF
6544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6545if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6546 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6547else
6548 cat
6549fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6550 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6551_ACEOF
b7026657 6552
81ecdfbb
RW
6553# VPATH may cause trouble with some makes, so we remove $(srcdir),
6554# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6555# trailing colons and then remove the whole line if VPATH becomes empty
6556# (actually we leave an empty line to preserve line numbers).
6557if test "x$srcdir" = x.; then
6558 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6559s/:*\$(srcdir):*/:/
6560s/:*\${srcdir}:*/:/
6561s/:*@srcdir@:*/:/
6562s/^\([^=]*=[ ]*\):*/\1/
6563s/:*$//
6564s/^[^=]*=[ ]*$//
6565}'
6566fi
6567
6568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6569fi # test -n "$CONFIG_FILES"
b7026657 6570
81ecdfbb
RW
6571# Set up the scripts for CONFIG_HEADERS section.
6572# No need to generate them if there are no CONFIG_HEADERS.
6573# This happens for instance with `./config.status Makefile'.
6574if test -n "$CONFIG_HEADERS"; then
6575cat >"$tmp/defines.awk" <<\_ACAWK ||
6576BEGIN {
b7026657
AC
6577_ACEOF
6578
81ecdfbb
RW
6579# Transform confdefs.h into an awk script `defines.awk', embedded as
6580# here-document in config.status, that substitutes the proper values into
6581# config.h.in to produce config.h.
6582
6583# Create a delimiter string that does not exist in confdefs.h, to ease
6584# handling of long lines.
6585ac_delim='%!_!# '
6586for ac_last_try in false false :; do
6587 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6588 if test -z "$ac_t"; then
6589 break
6590 elif $ac_last_try; then
6591 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6592 else
6593 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
c906108c 6594 fi
81ecdfbb 6595done
c906108c 6596
81ecdfbb
RW
6597# For the awk script, D is an array of macro values keyed by name,
6598# likewise P contains macro parameters if any. Preserve backslash
6599# newline sequences.
6600
6601ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6602sed -n '
6603s/.\{148\}/&'"$ac_delim"'/g
6604t rset
6605:rset
6606s/^[ ]*#[ ]*define[ ][ ]*/ /
6607t def
6608d
6609:def
6610s/\\$//
6611t bsnl
6612s/["\\]/\\&/g
6613s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6614D["\1"]=" \3"/p
6615s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6616d
6617:bsnl
6618s/["\\]/\\&/g
6619s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6620D["\1"]=" \3\\\\\\n"\\/p
6621t cont
6622s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6623t cont
6624d
6625:cont
6626n
6627s/.\{148\}/&'"$ac_delim"'/g
6628t clear
6629:clear
6630s/\\$//
6631t bsnlc
6632s/["\\]/\\&/g; s/^/"/; s/$/"/p
6633d
6634:bsnlc
6635s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6636b cont
6637' <confdefs.h | sed '
6638s/'"$ac_delim"'/"\\\
6639"/g' >>$CONFIG_STATUS || ac_write_fail=1
6640
6641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6642 for (key in D) D_is_set[key] = 1
6643 FS = "\a"
6644}
6645/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6646 line = \$ 0
6647 split(line, arg, " ")
6648 if (arg[1] == "#") {
6649 defundef = arg[2]
6650 mac1 = arg[3]
6651 } else {
6652 defundef = substr(arg[1], 2)
6653 mac1 = arg[2]
6654 }
6655 split(mac1, mac2, "(") #)
6656 macro = mac2[1]
6657 prefix = substr(line, 1, index(line, defundef) - 1)
6658 if (D_is_set[macro]) {
6659 # Preserve the white space surrounding the "#".
6660 print prefix "define", macro P[macro] D[macro]
6661 next
6662 } else {
6663 # Replace #undef with comments. This is necessary, for example,
6664 # in the case of _POSIX_SOURCE, which is predefined and required
6665 # on some systems where configure will not decide to define it.
6666 if (defundef == "undef") {
6667 print "/*", prefix defundef, macro, "*/"
6668 next
6669 }
6670 }
6671}
6672{ print }
6673_ACAWK
b7026657 6674_ACEOF
81ecdfbb
RW
6675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6676 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6677fi # test -n "$CONFIG_HEADERS"
6678
6679
6680eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6681shift
6682for ac_tag
6683do
6684 case $ac_tag in
6685 :[FHLC]) ac_mode=$ac_tag; continue;;
6686 esac
6687 case $ac_mode$ac_tag in
6688 :[FHL]*:*);;
6689 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6690 :[FH]-) ac_tag=-:-;;
6691 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6692 esac
6693 ac_save_IFS=$IFS
6694 IFS=:
6695 set x $ac_tag
6696 IFS=$ac_save_IFS
6697 shift
6698 ac_file=$1
6699 shift
6700
6701 case $ac_mode in
6702 :L) ac_source=$1;;
6703 :[FH])
6704 ac_file_inputs=
6705 for ac_f
6706 do
6707 case $ac_f in
6708 -) ac_f="$tmp/stdin";;
6709 *) # Look for the file first in the build tree, then in the source tree
6710 # (if the path is not absolute). The absolute path cannot be DOS-style,
6711 # because $ac_f cannot contain `:'.
6712 test -f "$ac_f" ||
6713 case $ac_f in
6714 [\\/$]*) false;;
6715 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6716 esac ||
6717 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6718 esac
6719 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6720 as_fn_append ac_file_inputs " '$ac_f'"
6721 done
6722
6723 # Let's still pretend it is `configure' which instantiates (i.e., don't
6724 # use $as_me), people would be surprised to read:
6725 # /* config.h. Generated by config.status. */
6726 configure_input='Generated from '`
6727 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6728 `' by configure.'
6729 if test x"$ac_file" != x-; then
6730 configure_input="$ac_file. $configure_input"
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6732$as_echo "$as_me: creating $ac_file" >&6;}
6733 fi
6734 # Neutralize special characters interpreted by sed in replacement strings.
6735 case $configure_input in #(
6736 *\&* | *\|* | *\\* )
6737 ac_sed_conf_input=`$as_echo "$configure_input" |
6738 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6739 *) ac_sed_conf_input=$configure_input;;
6740 esac
6741
6742 case $ac_tag in
6743 *:-:* | *:-) cat >"$tmp/stdin" \
6744 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6745 esac
6746 ;;
c906108c
SS
6747 esac
6748
81ecdfbb 6749 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
6750$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6751 X"$ac_file" : 'X\(//\)[^/]' \| \
6752 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
6753 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6754$as_echo X"$ac_file" |
6755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6756 s//\1/
6757 q
6758 }
6759 /^X\(\/\/\)[^/].*/{
6760 s//\1/
6761 q
6762 }
6763 /^X\(\/\/\)$/{
6764 s//\1/
6765 q
6766 }
6767 /^X\(\/\).*/{
6768 s//\1/
6769 q
6770 }
6771 s/.*/./; q'`
6772 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
6773 ac_builddir=.
6774
81ecdfbb
RW
6775case "$ac_dir" in
6776.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6777*)
6778 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6779 # A ".." for each directory in $ac_dir_suffix.
6780 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6781 case $ac_top_builddir_sub in
6782 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6783 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6784 esac ;;
6785esac
6786ac_abs_top_builddir=$ac_pwd
6787ac_abs_builddir=$ac_pwd$ac_dir_suffix
6788# for backward compatibility:
6789ac_top_builddir=$ac_top_build_prefix
b7026657
AC
6790
6791case $srcdir in
81ecdfbb 6792 .) # We are building in place.
b7026657 6793 ac_srcdir=.
81ecdfbb
RW
6794 ac_top_srcdir=$ac_top_builddir_sub
6795 ac_abs_top_srcdir=$ac_pwd ;;
6796 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 6797 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
6798 ac_top_srcdir=$srcdir
6799 ac_abs_top_srcdir=$srcdir ;;
6800 *) # Relative name.
6801 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6802 ac_top_srcdir=$ac_top_build_prefix$srcdir
6803 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 6804esac
81ecdfbb 6805ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 6806
b7026657 6807
81ecdfbb
RW
6808 case $ac_mode in
6809 :F)
6810 #
6811 # CONFIG_FILE
6812 #
b7026657
AC
6813
6814 case $INSTALL in
6815 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 6816 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 6817 esac
81ecdfbb 6818_ACEOF
c906108c 6819
81ecdfbb
RW
6820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6821# If the template does not know about datarootdir, expand it.
6822# FIXME: This hack should be removed a few years after 2.60.
6823ac_datarootdir_hack=; ac_datarootdir_seen=
6824ac_sed_dataroot='
6825/datarootdir/ {
6826 p
6827 q
6828}
6829/@datadir@/p
6830/@docdir@/p
6831/@infodir@/p
6832/@localedir@/p
6833/@mandir@/p'
6834case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6835*datarootdir*) ac_datarootdir_seen=yes;;
6836*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6838$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6839_ACEOF
6840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6841 ac_datarootdir_hack='
6842 s&@datadir@&$datadir&g
6843 s&@docdir@&$docdir&g
6844 s&@infodir@&$infodir&g
6845 s&@localedir@&$localedir&g
6846 s&@mandir@&$mandir&g
6847 s&\\\${datarootdir}&$datarootdir&g' ;;
6848esac
b7026657 6849_ACEOF
81ecdfbb
RW
6850
6851# Neutralize VPATH when `$srcdir' = `.'.
6852# Shell code in configure.ac might set extrasub.
6853# FIXME: do we really want to maintain this feature?
6854cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6855ac_sed_extra="$ac_vpsub
b7026657
AC
6856$extrasub
6857_ACEOF
81ecdfbb 6858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
6859:t
6860/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
6861s|@configure_input@|$ac_sed_conf_input|;t t
6862s&@top_builddir@&$ac_top_builddir_sub&;t t
6863s&@top_build_prefix@&$ac_top_build_prefix&;t t
6864s&@srcdir@&$ac_srcdir&;t t
6865s&@abs_srcdir@&$ac_abs_srcdir&;t t
6866s&@top_srcdir@&$ac_top_srcdir&;t t
6867s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6868s&@builddir@&$ac_builddir&;t t
6869s&@abs_builddir@&$ac_abs_builddir&;t t
6870s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6871s&@INSTALL@&$ac_INSTALL&;t t
6872$ac_datarootdir_hack
6873"
6874eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6875 || as_fn_error "could not create $ac_file" "$LINENO" 5
6876
6877test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6878 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6879 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6881which seems to be undefined. Please make sure it is defined." >&5
6882$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6883which seems to be undefined. Please make sure it is defined." >&2;}
6884
6885 rm -f "$tmp/stdin"
b7026657 6886 case $ac_file in
81ecdfbb
RW
6887 -) cat "$tmp/out" && rm -f "$tmp/out";;
6888 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6889 esac \
6890 || as_fn_error "could not create $ac_file" "$LINENO" 5
6891 ;;
6892 :H)
6893 #
6894 # CONFIG_HEADER
6895 #
b7026657 6896 if test x"$ac_file" != x-; then
81ecdfbb
RW
6897 {
6898 $as_echo "/* $configure_input */" \
6899 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6900 } >"$tmp/config.h" \
6901 || as_fn_error "could not create $ac_file" "$LINENO" 5
6902 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6904$as_echo "$as_me: $ac_file is unchanged" >&6;}
b7026657 6905 else
81ecdfbb
RW
6906 rm -f "$ac_file"
6907 mv "$tmp/config.h" "$ac_file" \
6908 || as_fn_error "could not create $ac_file" "$LINENO" 5
c906108c 6909 fi
b7026657 6910 else
81ecdfbb
RW
6911 $as_echo "/* $configure_input */" \
6912 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6913 || as_fn_error "could not create -" "$LINENO" 5
c906108c 6914 fi
81ecdfbb 6915 ;;
b7026657 6916
81ecdfbb
RW
6917 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6918$as_echo "$as_me: executing $ac_file commands" >&6;}
6919 ;;
6920 esac
b7026657 6921
b7026657 6922
81ecdfbb
RW
6923 case $ac_file$ac_mode in
6924 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
c906108c 6925
b7026657 6926 esac
81ecdfbb 6927done # for ac_tag
c906108c 6928
b7026657 6929
81ecdfbb 6930as_fn_exit 0
b7026657 6931_ACEOF
b7026657
AC
6932ac_clean_files=$ac_clean_files_save
6933
81ecdfbb
RW
6934test $ac_write_fail = 0 ||
6935 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6936
b7026657
AC
6937
6938# configure is writing to config.log, and then calls config.status.
6939# config.status does its own redirection, appending to config.log.
6940# Unfortunately, on DOS this fails, as config.log is still kept open
6941# by configure, so config.status won't be able to write to it; its
6942# output is simply discarded. So we exec the FD to /dev/null,
6943# effectively closing config.log, so it can be properly (re)opened and
6944# appended to by config.status. When coming back to configure, we
6945# need to make the FD available again.
6946if test "$no_create" != yes; then
6947 ac_cs_success=:
6948 ac_config_status_args=
6949 test "$silent" = yes &&
6950 ac_config_status_args="$ac_config_status_args --quiet"
6951 exec 5>/dev/null
6952 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6953 exec 5>>config.log
6954 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6955 # would make configure fail if this is the last instruction.
81ecdfbb
RW
6956 $ac_cs_success || as_fn_exit $?
6957fi
6958if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6960$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 6961fi
c906108c 6962
This page took 1.03029 seconds and 4 git commands to generate.