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