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