]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/cris/configure
sim: unify toolchain probing logic
[thirdparty/binutils-gdb.git] / sim / cris / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
199 if (eval "$as_required") 2>/dev/null; then :
200 as_have_required=yes
201 else
202 as_have_required=no
203 fi
204 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
205
206 else
207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 test -z "$as_dir" && as_dir=.
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir/$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221 CONFIG_SHELL=$as_shell as_have_required=yes
222 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 break 2
224 fi
225 fi
226 done;;
227 esac
228 as_found=false
229 done
230 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
232 CONFIG_SHELL=$SHELL as_have_required=yes
233 fi; }
234 IFS=$as_save_IFS
235
236
237 if test "x$CONFIG_SHELL" != x; then :
238 export CONFIG_SHELL
239 # We cannot yet assume a decent shell, so we have to provide a
240 # neutralization value for shells without unset; and this also
241 # works around shells that cannot unset nonexistent variables.
242 # Preserve -v and -x to the replacement shell.
243 BASH_ENV=/dev/null
244 ENV=/dev/null
245 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246 case $- in # ((((
247 *v*x* | *x*v* ) as_opts=-vx ;;
248 *v* ) as_opts=-v ;;
249 *x* ) as_opts=-x ;;
250 * ) as_opts= ;;
251 esac
252 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253 # Admittedly, this is quite paranoid, since all the known shells bail
254 # out after a failed `exec'.
255 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
256 exit 255
257 fi
258
259 if test x$as_have_required = xno; then :
260 $as_echo "$0: This script requires a shell more modern than all"
261 $as_echo "$0: the shells that I found on your system."
262 if test x${ZSH_VERSION+set} = xset ; then
263 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
264 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
265 else
266 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
267 $0: including any error possibly output before this
268 $0: message. Then install a modern shell, or manually run
269 $0: the script under such a shell if you do have one."
270 fi
271 exit 1
272 fi
273 fi
274 fi
275 SHELL=${CONFIG_SHELL-/bin/sh}
276 export SHELL
277 # Unset more variables known to interfere with behavior of common tools.
278 CLICOLOR_FORCE= GREP_OPTIONS=
279 unset CLICOLOR_FORCE GREP_OPTIONS
280
281 ## --------------------- ##
282 ## M4sh Shell Functions. ##
283 ## --------------------- ##
284 # as_fn_unset VAR
285 # ---------------
286 # Portably unset VAR.
287 as_fn_unset ()
288 {
289 { eval $1=; unset $1;}
290 }
291 as_unset=as_fn_unset
292
293 # as_fn_set_status STATUS
294 # -----------------------
295 # Set $? to STATUS, without forking.
296 as_fn_set_status ()
297 {
298 return $1
299 } # as_fn_set_status
300
301 # as_fn_exit STATUS
302 # -----------------
303 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
304 as_fn_exit ()
305 {
306 set +e
307 as_fn_set_status $1
308 exit $1
309 } # as_fn_exit
310
311 # as_fn_mkdir_p
312 # -------------
313 # Create "$as_dir" as a directory, including parents if necessary.
314 as_fn_mkdir_p ()
315 {
316
317 case $as_dir in #(
318 -*) as_dir=./$as_dir;;
319 esac
320 test -d "$as_dir" || eval $as_mkdir_p || {
321 as_dirs=
322 while :; do
323 case $as_dir in #(
324 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
325 *) as_qdir=$as_dir;;
326 esac
327 as_dirs="'$as_qdir' $as_dirs"
328 as_dir=`$as_dirname -- "$as_dir" ||
329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
330 X"$as_dir" : 'X\(//\)[^/]' \| \
331 X"$as_dir" : 'X\(//\)$' \| \
332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
333 $as_echo X"$as_dir" |
334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 s//\1/
336 q
337 }
338 /^X\(\/\/\)[^/].*/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)$/{
343 s//\1/
344 q
345 }
346 /^X\(\/\).*/{
347 s//\1/
348 q
349 }
350 s/.*/./; q'`
351 test -d "$as_dir" && break
352 done
353 test -z "$as_dirs" || eval "mkdir $as_dirs"
354 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
355
356
357 } # as_fn_mkdir_p
358
359 # as_fn_executable_p FILE
360 # -----------------------
361 # Test if FILE is an executable regular file.
362 as_fn_executable_p ()
363 {
364 test -f "$1" && test -x "$1"
365 } # as_fn_executable_p
366 # as_fn_append VAR VALUE
367 # ----------------------
368 # Append the text in VALUE to the end of the definition contained in VAR. Take
369 # advantage of any shell optimizations that allow amortized linear growth over
370 # repeated appends, instead of the typical quadratic growth present in naive
371 # implementations.
372 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
373 eval 'as_fn_append ()
374 {
375 eval $1+=\$2
376 }'
377 else
378 as_fn_append ()
379 {
380 eval $1=\$$1\$2
381 }
382 fi # as_fn_append
383
384 # as_fn_arith ARG...
385 # ------------------
386 # Perform arithmetic evaluation on the ARGs, and store the result in the
387 # global $as_val. Take advantage of shells that can avoid forks. The arguments
388 # must be portable across $(()) and expr.
389 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
390 eval 'as_fn_arith ()
391 {
392 as_val=$(( $* ))
393 }'
394 else
395 as_fn_arith ()
396 {
397 as_val=`expr "$@" || test $? -eq 1`
398 }
399 fi # as_fn_arith
400
401
402 # as_fn_error STATUS ERROR [LINENO LOG_FD]
403 # ----------------------------------------
404 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
405 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
406 # script with STATUS, using 1 if that was 0.
407 as_fn_error ()
408 {
409 as_status=$1; test $as_status -eq 0 && as_status=1
410 if test "$4"; then
411 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
412 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
413 fi
414 $as_echo "$as_me: error: $2" >&2
415 as_fn_exit $as_status
416 } # as_fn_error
417
418 if expr a : '\(a\)' >/dev/null 2>&1 &&
419 test "X`expr 00001 : '.*\(...\)'`" = X001; then
420 as_expr=expr
421 else
422 as_expr=false
423 fi
424
425 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
426 as_basename=basename
427 else
428 as_basename=false
429 fi
430
431 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
432 as_dirname=dirname
433 else
434 as_dirname=false
435 fi
436
437 as_me=`$as_basename -- "$0" ||
438 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
439 X"$0" : 'X\(//\)$' \| \
440 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
441 $as_echo X/"$0" |
442 sed '/^.*\/\([^/][^/]*\)\/*$/{
443 s//\1/
444 q
445 }
446 /^X\/\(\/\/\)$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\).*/{
451 s//\1/
452 q
453 }
454 s/.*/./; q'`
455
456 # Avoid depending upon Character Ranges.
457 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
458 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
459 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
460 as_cr_digits='0123456789'
461 as_cr_alnum=$as_cr_Letters$as_cr_digits
462
463
464 as_lineno_1=$LINENO as_lineno_1a=$LINENO
465 as_lineno_2=$LINENO as_lineno_2a=$LINENO
466 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
467 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
468 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
469 sed -n '
470 p
471 /[$]LINENO/=
472 ' <$as_myself |
473 sed '
474 s/[$]LINENO.*/&-/
475 t lineno
476 b
477 :lineno
478 N
479 :loop
480 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
481 t loop
482 s/-\n.*//
483 ' >$as_me.lineno &&
484 chmod +x "$as_me.lineno" ||
485 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
486
487 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
488 # already done that, so ensure we don't try to do so again and fall
489 # in an infinite loop. This has already happened in practice.
490 _as_can_reexec=no; export _as_can_reexec
491 # Don't try to exec as it changes $[0], causing all sort of problems
492 # (the dirname of $[0] is not the place where we might find the
493 # original and so on. Autoconf is especially sensitive to this).
494 . "./$as_me.lineno"
495 # Exit status is that of the last command.
496 exit
497 }
498
499 ECHO_C= ECHO_N= ECHO_T=
500 case `echo -n x` in #(((((
501 -n*)
502 case `echo 'xy\c'` in
503 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 xy) ECHO_C='\c';;
505 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
506 ECHO_T=' ';;
507 esac;;
508 *)
509 ECHO_N='-n';;
510 esac
511
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515 else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
518 fi
519 if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 as_ln_s='ln -s'
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -pR'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -pR'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
531 as_ln_s='cp -pR'
532 fi
533 else
534 as_ln_s='cp -pR'
535 fi
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
538
539 if mkdir -p . 2>/dev/null; then
540 as_mkdir_p='mkdir -p "$as_dir"'
541 else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
544 fi
545
546 as_test_x='test -x'
547 as_executable_p=as_fn_executable_p
548
549 # Sed expression to map a string onto a valid CPP name.
550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551
552 # Sed expression to map a string onto a valid variable name.
553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554
555
556 test -n "$DJDIR" || exec 7<&0 </dev/null
557 exec 6>&1
558
559 # Name of the host.
560 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
561 # so uname gets run too.
562 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563
564 #
565 # Initializations.
566 #
567 ac_default_prefix=/usr/local
568 ac_clean_files=
569 ac_config_libobj_dir=.
570 LIBOBJS=
571 cross_compiling=no
572 subdirs=
573 MFLAGS=
574 MAKEFLAGS=
575
576 # Identity of this package.
577 PACKAGE_NAME=
578 PACKAGE_TARNAME=
579 PACKAGE_VERSION=
580 PACKAGE_STRING=
581 PACKAGE_BUGREPORT=
582 PACKAGE_URL=
583
584 ac_unique_file="Makefile.in"
585 ac_subst_vars='LTLIBOBJS
586 LIBOBJS
587 sim_reserved_bits
588 sim_float
589 sim_bitsize
590 cgen_breaks
591 cgen
592 cgendir
593 CGEN_MAINT
594 MAINT
595 MAINTAINER_MODE_FALSE
596 MAINTAINER_MODE_TRUE
597 CATOBJEXT
598 GENCAT
599 INSTOBJEXT
600 DATADIRNAME
601 CATALOGS
602 POSUB
603 GMSGFMT
604 XGETTEXT
605 INCINTL
606 LIBINTL_DEP
607 LIBINTL
608 USE_NLS
609 CCDEPMODE
610 DEPDIR
611 am__leading_dot
612 INSTALL_DATA
613 INSTALL_SCRIPT
614 INSTALL_PROGRAM
615 OBJEXT
616 EXEEXT
617 ac_ct_CC
618 CPPFLAGS
619 LDFLAGS
620 CFLAGS
621 CC
622 target_alias
623 host_alias
624 build_alias
625 LIBS
626 ECHO_T
627 ECHO_N
628 ECHO_C
629 DEFS
630 mandir
631 localedir
632 libdir
633 psdir
634 pdfdir
635 dvidir
636 htmldir
637 infodir
638 docdir
639 oldincludedir
640 includedir
641 localstatedir
642 sharedstatedir
643 sysconfdir
644 datadir
645 datarootdir
646 libexecdir
647 sbindir
648 bindir
649 program_transform_name
650 prefix
651 exec_prefix
652 PACKAGE_URL
653 PACKAGE_BUGREPORT
654 PACKAGE_STRING
655 PACKAGE_VERSION
656 PACKAGE_TARNAME
657 PACKAGE_NAME
658 PATH_SEPARATOR
659 SHELL
660 sim_scache
661 sim_inline
662 sim_hw
663 sim_hw_objs
664 sim_hw_cflags
665 sim_default_model'
666 ac_subst_files=''
667 ac_user_opts='
668 enable_option_checking
669 enable_maintainer_mode
670 enable_sim_inline
671 enable_sim_scache
672 enable_sim_hardware
673 enable_sim_default_model
674 enable_cgen_maint
675 '
676 ac_precious_vars='build_alias
677 host_alias
678 target_alias
679 CC
680 CFLAGS
681 LDFLAGS
682 LIBS
683 CPPFLAGS'
684
685
686 # Initialize some variables set by options.
687 ac_init_help=
688 ac_init_version=false
689 ac_unrecognized_opts=
690 ac_unrecognized_sep=
691 # The variables have the same names as the options, with
692 # dashes changed to underlines.
693 cache_file=/dev/null
694 exec_prefix=NONE
695 no_create=
696 no_recursion=
697 prefix=NONE
698 program_prefix=NONE
699 program_suffix=NONE
700 program_transform_name=s,x,x,
701 silent=
702 site=
703 srcdir=
704 verbose=
705 x_includes=NONE
706 x_libraries=NONE
707
708 # Installation directory options.
709 # These are left unexpanded so users can "make install exec_prefix=/foo"
710 # and all the variables that are supposed to be based on exec_prefix
711 # by default will actually change.
712 # Use braces instead of parens because sh, perl, etc. also accept them.
713 # (The list follows the same order as the GNU Coding Standards.)
714 bindir='${exec_prefix}/bin'
715 sbindir='${exec_prefix}/sbin'
716 libexecdir='${exec_prefix}/libexec'
717 datarootdir='${prefix}/share'
718 datadir='${datarootdir}'
719 sysconfdir='${prefix}/etc'
720 sharedstatedir='${prefix}/com'
721 localstatedir='${prefix}/var'
722 includedir='${prefix}/include'
723 oldincludedir='/usr/include'
724 docdir='${datarootdir}/doc/${PACKAGE}'
725 infodir='${datarootdir}/info'
726 htmldir='${docdir}'
727 dvidir='${docdir}'
728 pdfdir='${docdir}'
729 psdir='${docdir}'
730 libdir='${exec_prefix}/lib'
731 localedir='${datarootdir}/locale'
732 mandir='${datarootdir}/man'
733
734 ac_prev=
735 ac_dashdash=
736 for ac_option
737 do
738 # If the previous option needs an argument, assign it.
739 if test -n "$ac_prev"; then
740 eval $ac_prev=\$ac_option
741 ac_prev=
742 continue
743 fi
744
745 case $ac_option in
746 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
747 *=) ac_optarg= ;;
748 *) ac_optarg=yes ;;
749 esac
750
751 # Accept the important Cygnus configure options, so we can diagnose typos.
752
753 case $ac_dashdash$ac_option in
754 --)
755 ac_dashdash=yes ;;
756
757 -bindir | --bindir | --bindi | --bind | --bin | --bi)
758 ac_prev=bindir ;;
759 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
760 bindir=$ac_optarg ;;
761
762 -build | --build | --buil | --bui | --bu)
763 ac_prev=build_alias ;;
764 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
765 build_alias=$ac_optarg ;;
766
767 -cache-file | --cache-file | --cache-fil | --cache-fi \
768 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
769 ac_prev=cache_file ;;
770 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
771 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
772 cache_file=$ac_optarg ;;
773
774 --config-cache | -C)
775 cache_file=config.cache ;;
776
777 -datadir | --datadir | --datadi | --datad)
778 ac_prev=datadir ;;
779 -datadir=* | --datadir=* | --datadi=* | --datad=*)
780 datadir=$ac_optarg ;;
781
782 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
783 | --dataroo | --dataro | --datar)
784 ac_prev=datarootdir ;;
785 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
786 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
787 datarootdir=$ac_optarg ;;
788
789 -disable-* | --disable-*)
790 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
793 as_fn_error $? "invalid feature name: $ac_useropt"
794 ac_useropt_orig=$ac_useropt
795 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
796 case $ac_user_opts in
797 *"
798 "enable_$ac_useropt"
799 "*) ;;
800 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
801 ac_unrecognized_sep=', ';;
802 esac
803 eval enable_$ac_useropt=no ;;
804
805 -docdir | --docdir | --docdi | --doc | --do)
806 ac_prev=docdir ;;
807 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
808 docdir=$ac_optarg ;;
809
810 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
811 ac_prev=dvidir ;;
812 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
813 dvidir=$ac_optarg ;;
814
815 -enable-* | --enable-*)
816 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
817 # Reject names that are not valid shell variable names.
818 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
819 as_fn_error $? "invalid feature name: $ac_useropt"
820 ac_useropt_orig=$ac_useropt
821 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
822 case $ac_user_opts in
823 *"
824 "enable_$ac_useropt"
825 "*) ;;
826 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
827 ac_unrecognized_sep=', ';;
828 esac
829 eval enable_$ac_useropt=\$ac_optarg ;;
830
831 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
832 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
833 | --exec | --exe | --ex)
834 ac_prev=exec_prefix ;;
835 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
836 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
837 | --exec=* | --exe=* | --ex=*)
838 exec_prefix=$ac_optarg ;;
839
840 -gas | --gas | --ga | --g)
841 # Obsolete; use --with-gas.
842 with_gas=yes ;;
843
844 -help | --help | --hel | --he | -h)
845 ac_init_help=long ;;
846 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
847 ac_init_help=recursive ;;
848 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
849 ac_init_help=short ;;
850
851 -host | --host | --hos | --ho)
852 ac_prev=host_alias ;;
853 -host=* | --host=* | --hos=* | --ho=*)
854 host_alias=$ac_optarg ;;
855
856 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
857 ac_prev=htmldir ;;
858 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
859 | --ht=*)
860 htmldir=$ac_optarg ;;
861
862 -includedir | --includedir | --includedi | --included | --include \
863 | --includ | --inclu | --incl | --inc)
864 ac_prev=includedir ;;
865 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
866 | --includ=* | --inclu=* | --incl=* | --inc=*)
867 includedir=$ac_optarg ;;
868
869 -infodir | --infodir | --infodi | --infod | --info | --inf)
870 ac_prev=infodir ;;
871 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
872 infodir=$ac_optarg ;;
873
874 -libdir | --libdir | --libdi | --libd)
875 ac_prev=libdir ;;
876 -libdir=* | --libdir=* | --libdi=* | --libd=*)
877 libdir=$ac_optarg ;;
878
879 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
880 | --libexe | --libex | --libe)
881 ac_prev=libexecdir ;;
882 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
883 | --libexe=* | --libex=* | --libe=*)
884 libexecdir=$ac_optarg ;;
885
886 -localedir | --localedir | --localedi | --localed | --locale)
887 ac_prev=localedir ;;
888 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
889 localedir=$ac_optarg ;;
890
891 -localstatedir | --localstatedir | --localstatedi | --localstated \
892 | --localstate | --localstat | --localsta | --localst | --locals)
893 ac_prev=localstatedir ;;
894 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
895 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
896 localstatedir=$ac_optarg ;;
897
898 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
899 ac_prev=mandir ;;
900 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
901 mandir=$ac_optarg ;;
902
903 -nfp | --nfp | --nf)
904 # Obsolete; use --without-fp.
905 with_fp=no ;;
906
907 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
908 | --no-cr | --no-c | -n)
909 no_create=yes ;;
910
911 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
912 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
913 no_recursion=yes ;;
914
915 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
916 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
917 | --oldin | --oldi | --old | --ol | --o)
918 ac_prev=oldincludedir ;;
919 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
920 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
921 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
922 oldincludedir=$ac_optarg ;;
923
924 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
925 ac_prev=prefix ;;
926 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
927 prefix=$ac_optarg ;;
928
929 -program-prefix | --program-prefix | --program-prefi | --program-pref \
930 | --program-pre | --program-pr | --program-p)
931 ac_prev=program_prefix ;;
932 -program-prefix=* | --program-prefix=* | --program-prefi=* \
933 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
934 program_prefix=$ac_optarg ;;
935
936 -program-suffix | --program-suffix | --program-suffi | --program-suff \
937 | --program-suf | --program-su | --program-s)
938 ac_prev=program_suffix ;;
939 -program-suffix=* | --program-suffix=* | --program-suffi=* \
940 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
941 program_suffix=$ac_optarg ;;
942
943 -program-transform-name | --program-transform-name \
944 | --program-transform-nam | --program-transform-na \
945 | --program-transform-n | --program-transform- \
946 | --program-transform | --program-transfor \
947 | --program-transfo | --program-transf \
948 | --program-trans | --program-tran \
949 | --progr-tra | --program-tr | --program-t)
950 ac_prev=program_transform_name ;;
951 -program-transform-name=* | --program-transform-name=* \
952 | --program-transform-nam=* | --program-transform-na=* \
953 | --program-transform-n=* | --program-transform-=* \
954 | --program-transform=* | --program-transfor=* \
955 | --program-transfo=* | --program-transf=* \
956 | --program-trans=* | --program-tran=* \
957 | --progr-tra=* | --program-tr=* | --program-t=*)
958 program_transform_name=$ac_optarg ;;
959
960 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
961 ac_prev=pdfdir ;;
962 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
963 pdfdir=$ac_optarg ;;
964
965 -psdir | --psdir | --psdi | --psd | --ps)
966 ac_prev=psdir ;;
967 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
968 psdir=$ac_optarg ;;
969
970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
971 | -silent | --silent | --silen | --sile | --sil)
972 silent=yes ;;
973
974 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
975 ac_prev=sbindir ;;
976 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
977 | --sbi=* | --sb=*)
978 sbindir=$ac_optarg ;;
979
980 -sharedstatedir | --sharedstatedir | --sharedstatedi \
981 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
982 | --sharedst | --shareds | --shared | --share | --shar \
983 | --sha | --sh)
984 ac_prev=sharedstatedir ;;
985 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
986 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
987 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
988 | --sha=* | --sh=*)
989 sharedstatedir=$ac_optarg ;;
990
991 -site | --site | --sit)
992 ac_prev=site ;;
993 -site=* | --site=* | --sit=*)
994 site=$ac_optarg ;;
995
996 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
997 ac_prev=srcdir ;;
998 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
999 srcdir=$ac_optarg ;;
1000
1001 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1002 | --syscon | --sysco | --sysc | --sys | --sy)
1003 ac_prev=sysconfdir ;;
1004 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1005 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1006 sysconfdir=$ac_optarg ;;
1007
1008 -target | --target | --targe | --targ | --tar | --ta | --t)
1009 ac_prev=target_alias ;;
1010 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1011 target_alias=$ac_optarg ;;
1012
1013 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1014 verbose=yes ;;
1015
1016 -version | --version | --versio | --versi | --vers | -V)
1017 ac_init_version=: ;;
1018
1019 -with-* | --with-*)
1020 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 as_fn_error $? "invalid package name: $ac_useropt"
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1027 *"
1028 "with_$ac_useropt"
1029 "*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval with_$ac_useropt=\$ac_optarg ;;
1034
1035 -without-* | --without-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error $? "invalid package name: $ac_useropt"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044 "with_$ac_useropt"
1045 "*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval with_$ac_useropt=no ;;
1050
1051 --x)
1052 # Obsolete; use --with-x.
1053 with_x=yes ;;
1054
1055 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1056 | --x-incl | --x-inc | --x-in | --x-i)
1057 ac_prev=x_includes ;;
1058 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1059 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1060 x_includes=$ac_optarg ;;
1061
1062 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1063 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1064 ac_prev=x_libraries ;;
1065 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1066 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1067 x_libraries=$ac_optarg ;;
1068
1069 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1070 Try \`$0 --help' for more information"
1071 ;;
1072
1073 *=*)
1074 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1075 # Reject names that are not valid shell variable names.
1076 case $ac_envvar in #(
1077 '' | [0-9]* | *[!_$as_cr_alnum]* )
1078 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1079 esac
1080 eval $ac_envvar=\$ac_optarg
1081 export $ac_envvar ;;
1082
1083 *)
1084 # FIXME: should be removed in autoconf 3.0.
1085 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1086 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1087 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1088 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1089 ;;
1090
1091 esac
1092 done
1093
1094 if test -n "$ac_prev"; then
1095 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1096 as_fn_error $? "missing argument to $ac_option"
1097 fi
1098
1099 if test -n "$ac_unrecognized_opts"; then
1100 case $enable_option_checking in
1101 no) ;;
1102 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1103 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1104 esac
1105 fi
1106
1107 # Check all directory arguments for consistency.
1108 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1109 datadir sysconfdir sharedstatedir localstatedir includedir \
1110 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1111 libdir localedir mandir
1112 do
1113 eval ac_val=\$$ac_var
1114 # Remove trailing slashes.
1115 case $ac_val in
1116 */ )
1117 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1118 eval $ac_var=\$ac_val;;
1119 esac
1120 # Be sure to have absolute directory names.
1121 case $ac_val in
1122 [\\/$]* | ?:[\\/]* ) continue;;
1123 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1124 esac
1125 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1126 done
1127
1128 # There might be people who depend on the old broken behavior: `$host'
1129 # used to hold the argument of --host etc.
1130 # FIXME: To remove some day.
1131 build=$build_alias
1132 host=$host_alias
1133 target=$target_alias
1134
1135 # FIXME: To remove some day.
1136 if test "x$host_alias" != x; then
1137 if test "x$build_alias" = x; then
1138 cross_compiling=maybe
1139 elif test "x$build_alias" != "x$host_alias"; then
1140 cross_compiling=yes
1141 fi
1142 fi
1143
1144 ac_tool_prefix=
1145 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1146
1147 test "$silent" = yes && exec 6>/dev/null
1148
1149
1150 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1151 ac_ls_di=`ls -di .` &&
1152 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1153 as_fn_error $? "working directory cannot be determined"
1154 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1155 as_fn_error $? "pwd does not report name of working directory"
1156
1157
1158 # Find the source files, if location was not specified.
1159 if test -z "$srcdir"; then
1160 ac_srcdir_defaulted=yes
1161 # Try the directory containing this script, then the parent directory.
1162 ac_confdir=`$as_dirname -- "$as_myself" ||
1163 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1164 X"$as_myself" : 'X\(//\)[^/]' \| \
1165 X"$as_myself" : 'X\(//\)$' \| \
1166 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1167 $as_echo X"$as_myself" |
1168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1169 s//\1/
1170 q
1171 }
1172 /^X\(\/\/\)[^/].*/{
1173 s//\1/
1174 q
1175 }
1176 /^X\(\/\/\)$/{
1177 s//\1/
1178 q
1179 }
1180 /^X\(\/\).*/{
1181 s//\1/
1182 q
1183 }
1184 s/.*/./; q'`
1185 srcdir=$ac_confdir
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1187 srcdir=..
1188 fi
1189 else
1190 ac_srcdir_defaulted=no
1191 fi
1192 if test ! -r "$srcdir/$ac_unique_file"; then
1193 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1194 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1195 fi
1196 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1197 ac_abs_confdir=`(
1198 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1199 pwd)`
1200 # When building in place, set srcdir=.
1201 if test "$ac_abs_confdir" = "$ac_pwd"; then
1202 srcdir=.
1203 fi
1204 # Remove unnecessary trailing slashes from srcdir.
1205 # Double slashes in file names in object file debugging info
1206 # mess up M-x gdb in Emacs.
1207 case $srcdir in
1208 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1209 esac
1210 for ac_var in $ac_precious_vars; do
1211 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1212 eval ac_env_${ac_var}_value=\$${ac_var}
1213 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1214 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1215 done
1216
1217 #
1218 # Report the --help message.
1219 #
1220 if test "$ac_init_help" = "long"; then
1221 # Omit some internal or obsolete options to make the list less imposing.
1222 # This message is too long to be a string in the A/UX 3.1 sh.
1223 cat <<_ACEOF
1224 \`configure' configures this package to adapt to many kinds of systems.
1225
1226 Usage: $0 [OPTION]... [VAR=VALUE]...
1227
1228 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1229 VAR=VALUE. See below for descriptions of some of the useful variables.
1230
1231 Defaults for the options are specified in brackets.
1232
1233 Configuration:
1234 -h, --help display this help and exit
1235 --help=short display options specific to this package
1236 --help=recursive display the short help of all the included packages
1237 -V, --version display version information and exit
1238 -q, --quiet, --silent do not print \`checking ...' messages
1239 --cache-file=FILE cache test results in FILE [disabled]
1240 -C, --config-cache alias for \`--cache-file=config.cache'
1241 -n, --no-create do not create output files
1242 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1243
1244 Installation directories:
1245 --prefix=PREFIX install architecture-independent files in PREFIX
1246 [$ac_default_prefix]
1247 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1248 [PREFIX]
1249
1250 By default, \`make install' will install all the files in
1251 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1252 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1253 for instance \`--prefix=\$HOME'.
1254
1255 For better control, use the options below.
1256
1257 Fine tuning of the installation directories:
1258 --bindir=DIR user executables [EPREFIX/bin]
1259 --sbindir=DIR system admin executables [EPREFIX/sbin]
1260 --libexecdir=DIR program executables [EPREFIX/libexec]
1261 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1262 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1263 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1264 --libdir=DIR object code libraries [EPREFIX/lib]
1265 --includedir=DIR C header files [PREFIX/include]
1266 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1267 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1268 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1269 --infodir=DIR info documentation [DATAROOTDIR/info]
1270 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1271 --mandir=DIR man documentation [DATAROOTDIR/man]
1272 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1273 --htmldir=DIR html documentation [DOCDIR]
1274 --dvidir=DIR dvi documentation [DOCDIR]
1275 --pdfdir=DIR pdf documentation [DOCDIR]
1276 --psdir=DIR ps documentation [DOCDIR]
1277 _ACEOF
1278
1279 cat <<\_ACEOF
1280 _ACEOF
1281 fi
1282
1283 if test -n "$ac_init_help"; then
1284
1285 cat <<\_ACEOF
1286
1287 Optional Features:
1288 --disable-option-checking ignore unrecognized --enable/--with options
1289 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1290 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1291 --enable-maintainer-mode
1292 enable make rules and dependencies not useful (and
1293 sometimes confusing) to the casual installer
1294 --enable-sim-inline=inlines
1295 Specify which functions should be inlined
1296 --enable-sim-scache=size
1297 Specify simulator execution cache size
1298 --enable-sim-hardware=LIST
1299 Specify the hardware to be included in the build.
1300 --enable-sim-default-model=model
1301 Specify default model to simulate
1302 --enable-cgen-maint=DIR build cgen generated files
1303
1304 Some influential environment variables:
1305 CC C compiler command
1306 CFLAGS C compiler flags
1307 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1308 nonstandard directory <lib dir>
1309 LIBS libraries to pass to the linker, e.g. -l<library>
1310 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1311 you have headers in a nonstandard directory <include dir>
1312
1313 Use these variables to override the choices made by `configure' or to help
1314 it to find libraries and programs with nonstandard names/locations.
1315
1316 Report bugs to the package provider.
1317 _ACEOF
1318 ac_status=$?
1319 fi
1320
1321 if test "$ac_init_help" = "recursive"; then
1322 # If there are subdirs, report their specific --help.
1323 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1324 test -d "$ac_dir" ||
1325 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1326 continue
1327 ac_builddir=.
1328
1329 case "$ac_dir" in
1330 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1331 *)
1332 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1333 # A ".." for each directory in $ac_dir_suffix.
1334 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1335 case $ac_top_builddir_sub in
1336 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1337 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1338 esac ;;
1339 esac
1340 ac_abs_top_builddir=$ac_pwd
1341 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1342 # for backward compatibility:
1343 ac_top_builddir=$ac_top_build_prefix
1344
1345 case $srcdir in
1346 .) # We are building in place.
1347 ac_srcdir=.
1348 ac_top_srcdir=$ac_top_builddir_sub
1349 ac_abs_top_srcdir=$ac_pwd ;;
1350 [\\/]* | ?:[\\/]* ) # Absolute name.
1351 ac_srcdir=$srcdir$ac_dir_suffix;
1352 ac_top_srcdir=$srcdir
1353 ac_abs_top_srcdir=$srcdir ;;
1354 *) # Relative name.
1355 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1356 ac_top_srcdir=$ac_top_build_prefix$srcdir
1357 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1358 esac
1359 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1360
1361 cd "$ac_dir" || { ac_status=$?; continue; }
1362 # Check for guested configure.
1363 if test -f "$ac_srcdir/configure.gnu"; then
1364 echo &&
1365 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1366 elif test -f "$ac_srcdir/configure"; then
1367 echo &&
1368 $SHELL "$ac_srcdir/configure" --help=recursive
1369 else
1370 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1371 fi || ac_status=$?
1372 cd "$ac_pwd" || { ac_status=$?; break; }
1373 done
1374 fi
1375
1376 test -n "$ac_init_help" && exit $ac_status
1377 if $ac_init_version; then
1378 cat <<\_ACEOF
1379 configure
1380 generated by GNU Autoconf 2.69
1381
1382 Copyright (C) 2012 Free Software Foundation, Inc.
1383 This configure script is free software; the Free Software Foundation
1384 gives unlimited permission to copy, distribute and modify it.
1385 _ACEOF
1386 exit
1387 fi
1388
1389 ## ------------------------ ##
1390 ## Autoconf initialization. ##
1391 ## ------------------------ ##
1392
1393 # ac_fn_c_try_compile LINENO
1394 # --------------------------
1395 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1396 ac_fn_c_try_compile ()
1397 {
1398 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1399 rm -f conftest.$ac_objext
1400 if { { ac_try="$ac_compile"
1401 case "(($ac_try" in
1402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1403 *) ac_try_echo=$ac_try;;
1404 esac
1405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1406 $as_echo "$ac_try_echo"; } >&5
1407 (eval "$ac_compile") 2>conftest.err
1408 ac_status=$?
1409 if test -s conftest.err; then
1410 grep -v '^ *+' conftest.err >conftest.er1
1411 cat conftest.er1 >&5
1412 mv -f conftest.er1 conftest.err
1413 fi
1414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1415 test $ac_status = 0; } && {
1416 test -z "$ac_c_werror_flag" ||
1417 test ! -s conftest.err
1418 } && test -s conftest.$ac_objext; then :
1419 ac_retval=0
1420 else
1421 $as_echo "$as_me: failed program was:" >&5
1422 sed 's/^/| /' conftest.$ac_ext >&5
1423
1424 ac_retval=1
1425 fi
1426 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1427 as_fn_set_status $ac_retval
1428
1429 } # ac_fn_c_try_compile
1430 cat >config.log <<_ACEOF
1431 This file contains any messages produced by compilers while
1432 running configure, to aid debugging if configure makes a mistake.
1433
1434 It was created by $as_me, which was
1435 generated by GNU Autoconf 2.69. Invocation command line was
1436
1437 $ $0 $@
1438
1439 _ACEOF
1440 exec 5>>config.log
1441 {
1442 cat <<_ASUNAME
1443 ## --------- ##
1444 ## Platform. ##
1445 ## --------- ##
1446
1447 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1448 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1449 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1450 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1451 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1452
1453 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1454 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1455
1456 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1457 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1458 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1459 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1460 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1461 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1462 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1463
1464 _ASUNAME
1465
1466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467 for as_dir in $PATH
1468 do
1469 IFS=$as_save_IFS
1470 test -z "$as_dir" && as_dir=.
1471 $as_echo "PATH: $as_dir"
1472 done
1473 IFS=$as_save_IFS
1474
1475 } >&5
1476
1477 cat >&5 <<_ACEOF
1478
1479
1480 ## ----------- ##
1481 ## Core tests. ##
1482 ## ----------- ##
1483
1484 _ACEOF
1485
1486
1487 # Keep a trace of the command line.
1488 # Strip out --no-create and --no-recursion so they do not pile up.
1489 # Strip out --silent because we don't want to record it for future runs.
1490 # Also quote any args containing shell meta-characters.
1491 # Make two passes to allow for proper duplicate-argument suppression.
1492 ac_configure_args=
1493 ac_configure_args0=
1494 ac_configure_args1=
1495 ac_must_keep_next=false
1496 for ac_pass in 1 2
1497 do
1498 for ac_arg
1499 do
1500 case $ac_arg in
1501 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1502 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1503 | -silent | --silent | --silen | --sile | --sil)
1504 continue ;;
1505 *\'*)
1506 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1507 esac
1508 case $ac_pass in
1509 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1510 2)
1511 as_fn_append ac_configure_args1 " '$ac_arg'"
1512 if test $ac_must_keep_next = true; then
1513 ac_must_keep_next=false # Got value, back to normal.
1514 else
1515 case $ac_arg in
1516 *=* | --config-cache | -C | -disable-* | --disable-* \
1517 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1518 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1519 | -with-* | --with-* | -without-* | --without-* | --x)
1520 case "$ac_configure_args0 " in
1521 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1522 esac
1523 ;;
1524 -* ) ac_must_keep_next=true ;;
1525 esac
1526 fi
1527 as_fn_append ac_configure_args " '$ac_arg'"
1528 ;;
1529 esac
1530 done
1531 done
1532 { ac_configure_args0=; unset ac_configure_args0;}
1533 { ac_configure_args1=; unset ac_configure_args1;}
1534
1535 # When interrupted or exit'd, cleanup temporary files, and complete
1536 # config.log. We remove comments because anyway the quotes in there
1537 # would cause problems or look ugly.
1538 # WARNING: Use '\'' to represent an apostrophe within the trap.
1539 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1540 trap 'exit_status=$?
1541 # Save into config.log some information that might help in debugging.
1542 {
1543 echo
1544
1545 $as_echo "## ---------------- ##
1546 ## Cache variables. ##
1547 ## ---------------- ##"
1548 echo
1549 # The following way of writing the cache mishandles newlines in values,
1550 (
1551 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1552 eval ac_val=\$$ac_var
1553 case $ac_val in #(
1554 *${as_nl}*)
1555 case $ac_var in #(
1556 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1557 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1558 esac
1559 case $ac_var in #(
1560 _ | IFS | as_nl) ;; #(
1561 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1562 *) { eval $ac_var=; unset $ac_var;} ;;
1563 esac ;;
1564 esac
1565 done
1566 (set) 2>&1 |
1567 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1568 *${as_nl}ac_space=\ *)
1569 sed -n \
1570 "s/'\''/'\''\\\\'\'''\''/g;
1571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1572 ;; #(
1573 *)
1574 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1575 ;;
1576 esac |
1577 sort
1578 )
1579 echo
1580
1581 $as_echo "## ----------------- ##
1582 ## Output variables. ##
1583 ## ----------------- ##"
1584 echo
1585 for ac_var in $ac_subst_vars
1586 do
1587 eval ac_val=\$$ac_var
1588 case $ac_val in
1589 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1590 esac
1591 $as_echo "$ac_var='\''$ac_val'\''"
1592 done | sort
1593 echo
1594
1595 if test -n "$ac_subst_files"; then
1596 $as_echo "## ------------------- ##
1597 ## File substitutions. ##
1598 ## ------------------- ##"
1599 echo
1600 for ac_var in $ac_subst_files
1601 do
1602 eval ac_val=\$$ac_var
1603 case $ac_val in
1604 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605 esac
1606 $as_echo "$ac_var='\''$ac_val'\''"
1607 done | sort
1608 echo
1609 fi
1610
1611 if test -s confdefs.h; then
1612 $as_echo "## ----------- ##
1613 ## confdefs.h. ##
1614 ## ----------- ##"
1615 echo
1616 cat confdefs.h
1617 echo
1618 fi
1619 test "$ac_signal" != 0 &&
1620 $as_echo "$as_me: caught signal $ac_signal"
1621 $as_echo "$as_me: exit $exit_status"
1622 } >&5
1623 rm -f core *.core core.conftest.* &&
1624 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1625 exit $exit_status
1626 ' 0
1627 for ac_signal in 1 2 13 15; do
1628 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1629 done
1630 ac_signal=0
1631
1632 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1633 rm -f -r conftest* confdefs.h
1634
1635 $as_echo "/* confdefs.h */" > confdefs.h
1636
1637 # Predefined preprocessor variables.
1638
1639 cat >>confdefs.h <<_ACEOF
1640 #define PACKAGE_NAME "$PACKAGE_NAME"
1641 _ACEOF
1642
1643 cat >>confdefs.h <<_ACEOF
1644 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1645 _ACEOF
1646
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1649 _ACEOF
1650
1651 cat >>confdefs.h <<_ACEOF
1652 #define PACKAGE_STRING "$PACKAGE_STRING"
1653 _ACEOF
1654
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1657 _ACEOF
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_URL "$PACKAGE_URL"
1661 _ACEOF
1662
1663
1664 # Let the site file select an alternate cache file if it wants to.
1665 # Prefer an explicitly selected file to automatically selected ones.
1666 ac_site_file1=NONE
1667 ac_site_file2=NONE
1668 if test -n "$CONFIG_SITE"; then
1669 # We do not want a PATH search for config.site.
1670 case $CONFIG_SITE in #((
1671 -*) ac_site_file1=./$CONFIG_SITE;;
1672 */*) ac_site_file1=$CONFIG_SITE;;
1673 *) ac_site_file1=./$CONFIG_SITE;;
1674 esac
1675 elif test "x$prefix" != xNONE; then
1676 ac_site_file1=$prefix/share/config.site
1677 ac_site_file2=$prefix/etc/config.site
1678 else
1679 ac_site_file1=$ac_default_prefix/share/config.site
1680 ac_site_file2=$ac_default_prefix/etc/config.site
1681 fi
1682 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1683 do
1684 test "x$ac_site_file" = xNONE && continue
1685 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1687 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1688 sed 's/^/| /' "$ac_site_file" >&5
1689 . "$ac_site_file" \
1690 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1692 as_fn_error $? "failed to load site script $ac_site_file
1693 See \`config.log' for more details" "$LINENO" 5; }
1694 fi
1695 done
1696
1697 if test -r "$cache_file"; then
1698 # Some versions of bash will fail to source /dev/null (special files
1699 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1700 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1702 $as_echo "$as_me: loading cache $cache_file" >&6;}
1703 case $cache_file in
1704 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1705 *) . "./$cache_file";;
1706 esac
1707 fi
1708 else
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1710 $as_echo "$as_me: creating cache $cache_file" >&6;}
1711 >$cache_file
1712 fi
1713
1714 # Check that the precious variables saved in the cache have kept the same
1715 # value.
1716 ac_cache_corrupted=false
1717 for ac_var in $ac_precious_vars; do
1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1719 eval ac_new_set=\$ac_env_${ac_var}_set
1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1721 eval ac_new_val=\$ac_env_${ac_var}_value
1722 case $ac_old_set,$ac_new_set in
1723 set,)
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1725 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1726 ac_cache_corrupted=: ;;
1727 ,set)
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1729 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1731 ,);;
1732 *)
1733 if test "x$ac_old_val" != "x$ac_new_val"; then
1734 # differences in whitespace do not lead to failure.
1735 ac_old_val_w=`echo x $ac_old_val`
1736 ac_new_val_w=`echo x $ac_new_val`
1737 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1739 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1740 ac_cache_corrupted=:
1741 else
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1743 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1744 eval $ac_var=\$ac_old_val
1745 fi
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1747 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1749 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1750 fi;;
1751 esac
1752 # Pass precious variables to config.status.
1753 if test "$ac_new_set" = set; then
1754 case $ac_new_val in
1755 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1756 *) ac_arg=$ac_var=$ac_new_val ;;
1757 esac
1758 case " $ac_configure_args " in
1759 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1760 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1761 esac
1762 fi
1763 done
1764 if $ac_cache_corrupted; then
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1768 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1769 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1770 fi
1771 ## -------------------- ##
1772 ## Main body of script. ##
1773 ## -------------------- ##
1774
1775 ac_ext=c
1776 ac_cpp='$CPP $CPPFLAGS'
1777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1780
1781
1782
1783
1784
1785
1786
1787 ac_ext=c
1788 ac_cpp='$CPP $CPPFLAGS'
1789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1792 if test -n "$ac_tool_prefix"; then
1793 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1794 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1796 $as_echo_n "checking for $ac_word... " >&6; }
1797 if ${ac_cv_prog_CC+:} false; then :
1798 $as_echo_n "(cached) " >&6
1799 else
1800 if test -n "$CC"; then
1801 ac_cv_prog_CC="$CC" # Let the user override the test.
1802 else
1803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1804 for as_dir in $PATH
1805 do
1806 IFS=$as_save_IFS
1807 test -z "$as_dir" && as_dir=.
1808 for ac_exec_ext in '' $ac_executable_extensions; do
1809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1810 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1812 break 2
1813 fi
1814 done
1815 done
1816 IFS=$as_save_IFS
1817
1818 fi
1819 fi
1820 CC=$ac_cv_prog_CC
1821 if test -n "$CC"; then
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1823 $as_echo "$CC" >&6; }
1824 else
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1826 $as_echo "no" >&6; }
1827 fi
1828
1829
1830 fi
1831 if test -z "$ac_cv_prog_CC"; then
1832 ac_ct_CC=$CC
1833 # Extract the first word of "gcc", so it can be a program name with args.
1834 set dummy gcc; ac_word=$2
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1836 $as_echo_n "checking for $ac_word... " >&6; }
1837 if ${ac_cv_prog_ac_ct_CC+:} false; then :
1838 $as_echo_n "(cached) " >&6
1839 else
1840 if test -n "$ac_ct_CC"; then
1841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1842 else
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 for as_dir in $PATH
1845 do
1846 IFS=$as_save_IFS
1847 test -z "$as_dir" && as_dir=.
1848 for ac_exec_ext in '' $ac_executable_extensions; do
1849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850 ac_cv_prog_ac_ct_CC="gcc"
1851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1852 break 2
1853 fi
1854 done
1855 done
1856 IFS=$as_save_IFS
1857
1858 fi
1859 fi
1860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1861 if test -n "$ac_ct_CC"; then
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1863 $as_echo "$ac_ct_CC" >&6; }
1864 else
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1866 $as_echo "no" >&6; }
1867 fi
1868
1869 if test "x$ac_ct_CC" = x; then
1870 CC=""
1871 else
1872 case $cross_compiling:$ac_tool_warned in
1873 yes:)
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1876 ac_tool_warned=yes ;;
1877 esac
1878 CC=$ac_ct_CC
1879 fi
1880 else
1881 CC="$ac_cv_prog_CC"
1882 fi
1883
1884 if test -z "$CC"; then
1885 if test -n "$ac_tool_prefix"; then
1886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1887 set dummy ${ac_tool_prefix}cc; ac_word=$2
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1889 $as_echo_n "checking for $ac_word... " >&6; }
1890 if ${ac_cv_prog_CC+:} false; then :
1891 $as_echo_n "(cached) " >&6
1892 else
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC="$CC" # Let the user override the test.
1895 else
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1898 do
1899 IFS=$as_save_IFS
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903 ac_cv_prog_CC="${ac_tool_prefix}cc"
1904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 break 2
1906 fi
1907 done
1908 done
1909 IFS=$as_save_IFS
1910
1911 fi
1912 fi
1913 CC=$ac_cv_prog_CC
1914 if test -n "$CC"; then
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1916 $as_echo "$CC" >&6; }
1917 else
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1919 $as_echo "no" >&6; }
1920 fi
1921
1922
1923 fi
1924 fi
1925 if test -z "$CC"; then
1926 # Extract the first word of "cc", so it can be a program name with args.
1927 set dummy cc; ac_word=$2
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1929 $as_echo_n "checking for $ac_word... " >&6; }
1930 if ${ac_cv_prog_CC+:} false; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 if test -n "$CC"; then
1934 ac_cv_prog_CC="$CC" # Let the user override the test.
1935 else
1936 ac_prog_rejected=no
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1945 ac_prog_rejected=yes
1946 continue
1947 fi
1948 ac_cv_prog_CC="cc"
1949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 break 2
1951 fi
1952 done
1953 done
1954 IFS=$as_save_IFS
1955
1956 if test $ac_prog_rejected = yes; then
1957 # We found a bogon in the path, so make sure we never use it.
1958 set dummy $ac_cv_prog_CC
1959 shift
1960 if test $# != 0; then
1961 # We chose a different compiler from the bogus one.
1962 # However, it has the same basename, so the bogon will be chosen
1963 # first if we set CC to just the basename; use the full file name.
1964 shift
1965 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1966 fi
1967 fi
1968 fi
1969 fi
1970 CC=$ac_cv_prog_CC
1971 if test -n "$CC"; then
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1973 $as_echo "$CC" >&6; }
1974 else
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1976 $as_echo "no" >&6; }
1977 fi
1978
1979
1980 fi
1981 if test -z "$CC"; then
1982 if test -n "$ac_tool_prefix"; then
1983 for ac_prog in cl.exe
1984 do
1985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1988 $as_echo_n "checking for $ac_word... " >&6; }
1989 if ${ac_cv_prog_CC+:} false; then :
1990 $as_echo_n "(cached) " >&6
1991 else
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
1994 else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1997 do
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 break 2
2005 fi
2006 done
2007 done
2008 IFS=$as_save_IFS
2009
2010 fi
2011 fi
2012 CC=$ac_cv_prog_CC
2013 if test -n "$CC"; then
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2015 $as_echo "$CC" >&6; }
2016 else
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2018 $as_echo "no" >&6; }
2019 fi
2020
2021
2022 test -n "$CC" && break
2023 done
2024 fi
2025 if test -z "$CC"; then
2026 ac_ct_CC=$CC
2027 for ac_prog in cl.exe
2028 do
2029 # Extract the first word of "$ac_prog", so it can be a program name with args.
2030 set dummy $ac_prog; ac_word=$2
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2032 $as_echo_n "checking for $ac_word... " >&6; }
2033 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2034 $as_echo_n "(cached) " >&6
2035 else
2036 if test -n "$ac_ct_CC"; then
2037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2041 do
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_ac_ct_CC="$ac_prog"
2047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2049 fi
2050 done
2051 done
2052 IFS=$as_save_IFS
2053
2054 fi
2055 fi
2056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2057 if test -n "$ac_ct_CC"; then
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2059 $as_echo "$ac_ct_CC" >&6; }
2060 else
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2062 $as_echo "no" >&6; }
2063 fi
2064
2065
2066 test -n "$ac_ct_CC" && break
2067 done
2068
2069 if test "x$ac_ct_CC" = x; then
2070 CC=""
2071 else
2072 case $cross_compiling:$ac_tool_warned in
2073 yes:)
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2076 ac_tool_warned=yes ;;
2077 esac
2078 CC=$ac_ct_CC
2079 fi
2080 fi
2081
2082 fi
2083
2084
2085 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2087 as_fn_error $? "no acceptable C compiler found in \$PATH
2088 See \`config.log' for more details" "$LINENO" 5; }
2089
2090 # Provide some information about the compiler.
2091 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2092 set X $ac_compile
2093 ac_compiler=$2
2094 for ac_option in --version -v -V -qversion; do
2095 { { ac_try="$ac_compiler $ac_option >&5"
2096 case "(($ac_try" in
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2099 esac
2100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2101 $as_echo "$ac_try_echo"; } >&5
2102 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2103 ac_status=$?
2104 if test -s conftest.err; then
2105 sed '10a\
2106 ... rest of stderr output deleted ...
2107 10q' conftest.err >conftest.er1
2108 cat conftest.er1 >&5
2109 fi
2110 rm -f conftest.er1 conftest.err
2111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2112 test $ac_status = 0; }
2113 done
2114
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2117
2118 int
2119 main ()
2120 {
2121
2122 ;
2123 return 0;
2124 }
2125 _ACEOF
2126 ac_clean_files_save=$ac_clean_files
2127 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2128 # Try to create an executable without -o first, disregard a.out.
2129 # It will help us diagnose broken compilers, and finding out an intuition
2130 # of exeext.
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2132 $as_echo_n "checking whether the C compiler works... " >&6; }
2133 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2134
2135 # The possible output files:
2136 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2137
2138 ac_rmfiles=
2139 for ac_file in $ac_files
2140 do
2141 case $ac_file in
2142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2143 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2144 esac
2145 done
2146 rm -f $ac_rmfiles
2147
2148 if { { ac_try="$ac_link_default"
2149 case "(($ac_try" in
2150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151 *) ac_try_echo=$ac_try;;
2152 esac
2153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2154 $as_echo "$ac_try_echo"; } >&5
2155 (eval "$ac_link_default") 2>&5
2156 ac_status=$?
2157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2158 test $ac_status = 0; }; then :
2159 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2160 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2161 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2162 # so that the user can short-circuit this test for compilers unknown to
2163 # Autoconf.
2164 for ac_file in $ac_files ''
2165 do
2166 test -f "$ac_file" || continue
2167 case $ac_file in
2168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2169 ;;
2170 [ab].out )
2171 # We found the default executable, but exeext='' is most
2172 # certainly right.
2173 break;;
2174 *.* )
2175 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2176 then :; else
2177 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2178 fi
2179 # We set ac_cv_exeext here because the later test for it is not
2180 # safe: cross compilers may not add the suffix if given an `-o'
2181 # argument, so we may need to know it at that point already.
2182 # Even if this section looks crufty: it has the advantage of
2183 # actually working.
2184 break;;
2185 * )
2186 break;;
2187 esac
2188 done
2189 test "$ac_cv_exeext" = no && ac_cv_exeext=
2190
2191 else
2192 ac_file=''
2193 fi
2194 if test -z "$ac_file"; then :
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2196 $as_echo "no" >&6; }
2197 $as_echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2199
2200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2202 as_fn_error 77 "C compiler cannot create executables
2203 See \`config.log' for more details" "$LINENO" 5; }
2204 else
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2206 $as_echo "yes" >&6; }
2207 fi
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2209 $as_echo_n "checking for C compiler default output file name... " >&6; }
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2211 $as_echo "$ac_file" >&6; }
2212 ac_exeext=$ac_cv_exeext
2213
2214 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2215 ac_clean_files=$ac_clean_files_save
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2217 $as_echo_n "checking for suffix of executables... " >&6; }
2218 if { { ac_try="$ac_link"
2219 case "(($ac_try" in
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2222 esac
2223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2224 $as_echo "$ac_try_echo"; } >&5
2225 (eval "$ac_link") 2>&5
2226 ac_status=$?
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; }; then :
2229 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2230 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2231 # work properly (i.e., refer to `conftest.exe'), while it won't with
2232 # `rm'.
2233 for ac_file in conftest.exe conftest conftest.*; do
2234 test -f "$ac_file" || continue
2235 case $ac_file in
2236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2237 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2238 break;;
2239 * ) break;;
2240 esac
2241 done
2242 else
2243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2245 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2246 See \`config.log' for more details" "$LINENO" 5; }
2247 fi
2248 rm -f conftest conftest$ac_cv_exeext
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2250 $as_echo "$ac_cv_exeext" >&6; }
2251
2252 rm -f conftest.$ac_ext
2253 EXEEXT=$ac_cv_exeext
2254 ac_exeext=$EXEEXT
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2257 #include <stdio.h>
2258 int
2259 main ()
2260 {
2261 FILE *f = fopen ("conftest.out", "w");
2262 return ferror (f) || fclose (f) != 0;
2263
2264 ;
2265 return 0;
2266 }
2267 _ACEOF
2268 ac_clean_files="$ac_clean_files conftest.out"
2269 # Check that the compiler produces executables we can run. If not, either
2270 # the compiler is broken, or we cross compile.
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2272 $as_echo_n "checking whether we are cross compiling... " >&6; }
2273 if test "$cross_compiling" != yes; then
2274 { { ac_try="$ac_link"
2275 case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278 esac
2279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280 $as_echo "$ac_try_echo"; } >&5
2281 (eval "$ac_link") 2>&5
2282 ac_status=$?
2283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284 test $ac_status = 0; }
2285 if { ac_try='./conftest$ac_cv_exeext'
2286 { { case "(($ac_try" in
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2289 esac
2290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291 $as_echo "$ac_try_echo"; } >&5
2292 (eval "$ac_try") 2>&5
2293 ac_status=$?
2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295 test $ac_status = 0; }; }; then
2296 cross_compiling=no
2297 else
2298 if test "$cross_compiling" = maybe; then
2299 cross_compiling=yes
2300 else
2301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303 as_fn_error $? "cannot run C compiled programs.
2304 If you meant to cross compile, use \`--host'.
2305 See \`config.log' for more details" "$LINENO" 5; }
2306 fi
2307 fi
2308 fi
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2310 $as_echo "$cross_compiling" >&6; }
2311
2312 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2313 ac_clean_files=$ac_clean_files_save
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2315 $as_echo_n "checking for suffix of object files... " >&6; }
2316 if ${ac_cv_objext+:} false; then :
2317 $as_echo_n "(cached) " >&6
2318 else
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2321
2322 int
2323 main ()
2324 {
2325
2326 ;
2327 return 0;
2328 }
2329 _ACEOF
2330 rm -f conftest.o conftest.obj
2331 if { { ac_try="$ac_compile"
2332 case "(($ac_try" in
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2335 esac
2336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2337 $as_echo "$ac_try_echo"; } >&5
2338 (eval "$ac_compile") 2>&5
2339 ac_status=$?
2340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341 test $ac_status = 0; }; then :
2342 for ac_file in conftest.o conftest.obj conftest.*; do
2343 test -f "$ac_file" || continue;
2344 case $ac_file in
2345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2346 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2347 break;;
2348 esac
2349 done
2350 else
2351 $as_echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2353
2354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2356 as_fn_error $? "cannot compute suffix of object files: cannot compile
2357 See \`config.log' for more details" "$LINENO" 5; }
2358 fi
2359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2360 fi
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2362 $as_echo "$ac_cv_objext" >&6; }
2363 OBJEXT=$ac_cv_objext
2364 ac_objext=$OBJEXT
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2366 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2367 if ${ac_cv_c_compiler_gnu+:} false; then :
2368 $as_echo_n "(cached) " >&6
2369 else
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2372
2373 int
2374 main ()
2375 {
2376 #ifndef __GNUC__
2377 choke me
2378 #endif
2379
2380 ;
2381 return 0;
2382 }
2383 _ACEOF
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385 ac_compiler_gnu=yes
2386 else
2387 ac_compiler_gnu=no
2388 fi
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2391
2392 fi
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2394 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2395 if test $ac_compiler_gnu = yes; then
2396 GCC=yes
2397 else
2398 GCC=
2399 fi
2400 ac_test_CFLAGS=${CFLAGS+set}
2401 ac_save_CFLAGS=$CFLAGS
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2403 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2404 if ${ac_cv_prog_cc_g+:} false; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 ac_save_c_werror_flag=$ac_c_werror_flag
2408 ac_c_werror_flag=yes
2409 ac_cv_prog_cc_g=no
2410 CFLAGS="-g"
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413
2414 int
2415 main ()
2416 {
2417
2418 ;
2419 return 0;
2420 }
2421 _ACEOF
2422 if ac_fn_c_try_compile "$LINENO"; then :
2423 ac_cv_prog_cc_g=yes
2424 else
2425 CFLAGS=""
2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427 /* end confdefs.h. */
2428
2429 int
2430 main ()
2431 {
2432
2433 ;
2434 return 0;
2435 }
2436 _ACEOF
2437 if ac_fn_c_try_compile "$LINENO"; then :
2438
2439 else
2440 ac_c_werror_flag=$ac_save_c_werror_flag
2441 CFLAGS="-g"
2442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2443 /* end confdefs.h. */
2444
2445 int
2446 main ()
2447 {
2448
2449 ;
2450 return 0;
2451 }
2452 _ACEOF
2453 if ac_fn_c_try_compile "$LINENO"; then :
2454 ac_cv_prog_cc_g=yes
2455 fi
2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 fi
2458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 fi
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 ac_c_werror_flag=$ac_save_c_werror_flag
2462 fi
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2464 $as_echo "$ac_cv_prog_cc_g" >&6; }
2465 if test "$ac_test_CFLAGS" = set; then
2466 CFLAGS=$ac_save_CFLAGS
2467 elif test $ac_cv_prog_cc_g = yes; then
2468 if test "$GCC" = yes; then
2469 CFLAGS="-g -O2"
2470 else
2471 CFLAGS="-g"
2472 fi
2473 else
2474 if test "$GCC" = yes; then
2475 CFLAGS="-O2"
2476 else
2477 CFLAGS=
2478 fi
2479 fi
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2481 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2482 if ${ac_cv_prog_cc_c89+:} false; then :
2483 $as_echo_n "(cached) " >&6
2484 else
2485 ac_cv_prog_cc_c89=no
2486 ac_save_CC=$CC
2487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488 /* end confdefs.h. */
2489 #include <stdarg.h>
2490 #include <stdio.h>
2491 struct stat;
2492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2493 struct buf { int x; };
2494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2495 static char *e (p, i)
2496 char **p;
2497 int i;
2498 {
2499 return p[i];
2500 }
2501 static char *f (char * (*g) (char **, int), char **p, ...)
2502 {
2503 char *s;
2504 va_list v;
2505 va_start (v,p);
2506 s = g (p, va_arg (v,int));
2507 va_end (v);
2508 return s;
2509 }
2510
2511 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2512 function prototypes and stuff, but not '\xHH' hex character constants.
2513 These don't provoke an error unfortunately, instead are silently treated
2514 as 'x'. The following induces an error, until -std is added to get
2515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2516 array size at least. It's necessary to write '\x00'==0 to get something
2517 that's true only with -std. */
2518 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2519
2520 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2521 inside strings and character constants. */
2522 #define FOO(x) 'x'
2523 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2524
2525 int test (int i, double x);
2526 struct s1 {int (*f) (int a);};
2527 struct s2 {int (*f) (double a);};
2528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2529 int argc;
2530 char **argv;
2531 int
2532 main ()
2533 {
2534 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2535 ;
2536 return 0;
2537 }
2538 _ACEOF
2539 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2540 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2541 do
2542 CC="$ac_save_CC $ac_arg"
2543 if ac_fn_c_try_compile "$LINENO"; then :
2544 ac_cv_prog_cc_c89=$ac_arg
2545 fi
2546 rm -f core conftest.err conftest.$ac_objext
2547 test "x$ac_cv_prog_cc_c89" != "xno" && break
2548 done
2549 rm -f conftest.$ac_ext
2550 CC=$ac_save_CC
2551
2552 fi
2553 # AC_CACHE_VAL
2554 case "x$ac_cv_prog_cc_c89" in
2555 x)
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2557 $as_echo "none needed" >&6; } ;;
2558 xno)
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2560 $as_echo "unsupported" >&6; } ;;
2561 *)
2562 CC="$CC $ac_cv_prog_cc_c89"
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2564 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2565 esac
2566 if test "x$ac_cv_prog_cc_c89" != xno; then :
2567
2568 fi
2569
2570 ac_ext=c
2571 ac_cpp='$CPP $CPPFLAGS'
2572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575
2576 ac_aux_dir=
2577 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2578 if test -f "$ac_dir/install-sh"; then
2579 ac_aux_dir=$ac_dir
2580 ac_install_sh="$ac_aux_dir/install-sh -c"
2581 break
2582 elif test -f "$ac_dir/install.sh"; then
2583 ac_aux_dir=$ac_dir
2584 ac_install_sh="$ac_aux_dir/install.sh -c"
2585 break
2586 elif test -f "$ac_dir/shtool"; then
2587 ac_aux_dir=$ac_dir
2588 ac_install_sh="$ac_aux_dir/shtool install -c"
2589 break
2590 fi
2591 done
2592 if test -z "$ac_aux_dir"; then
2593 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2594 fi
2595
2596 # These three variables are undocumented and unsupported,
2597 # and are intended to be withdrawn in a future Autoconf release.
2598 # They can cause serious problems if a builder's source tree is in a directory
2599 # whose full name contains unusual characters.
2600 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2601 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2602 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2603
2604
2605 # Find a good install program. We prefer a C program (faster),
2606 # so one script is as good as another. But avoid the broken or
2607 # incompatible versions:
2608 # SysV /etc/install, /usr/sbin/install
2609 # SunOS /usr/etc/install
2610 # IRIX /sbin/install
2611 # AIX /bin/install
2612 # AmigaOS /C/install, which installs bootblocks on floppy discs
2613 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2616 # OS/2's system install, which has a completely different semantic
2617 # ./install, which can be erroneously created by make from ./install.sh.
2618 # Reject install programs that cannot install multiple files.
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2620 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2621 if test -z "$INSTALL"; then
2622 if ${ac_cv_path_install+:} false; then :
2623 $as_echo_n "(cached) " >&6
2624 else
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 for as_dir in $PATH
2627 do
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
2630 # Account for people who put trailing slashes in PATH elements.
2631 case $as_dir/ in #((
2632 ./ | .// | /[cC]/* | \
2633 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2634 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2635 /usr/ucb/* ) ;;
2636 *)
2637 # OSF1 and SCO ODT 3.0 have their own names for install.
2638 # Don't use installbsd from OSF since it installs stuff as root
2639 # by default.
2640 for ac_prog in ginstall scoinst install; do
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2643 if test $ac_prog = install &&
2644 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2645 # AIX install. It has an incompatible calling convention.
2646 :
2647 elif test $ac_prog = install &&
2648 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2649 # program-specific install script used by HP pwplus--don't use.
2650 :
2651 else
2652 rm -rf conftest.one conftest.two conftest.dir
2653 echo one > conftest.one
2654 echo two > conftest.two
2655 mkdir conftest.dir
2656 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2657 test -s conftest.one && test -s conftest.two &&
2658 test -s conftest.dir/conftest.one &&
2659 test -s conftest.dir/conftest.two
2660 then
2661 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2662 break 3
2663 fi
2664 fi
2665 fi
2666 done
2667 done
2668 ;;
2669 esac
2670
2671 done
2672 IFS=$as_save_IFS
2673
2674 rm -rf conftest.one conftest.two conftest.dir
2675
2676 fi
2677 if test "${ac_cv_path_install+set}" = set; then
2678 INSTALL=$ac_cv_path_install
2679 else
2680 # As a last resort, use the slow shell script. Don't cache a
2681 # value for INSTALL within a source directory, because that will
2682 # break other packages using the cache if that directory is
2683 # removed, or if the value is a relative name.
2684 INSTALL=$ac_install_sh
2685 fi
2686 fi
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2688 $as_echo "$INSTALL" >&6; }
2689
2690 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2691 # It thinks the first close brace ends the variable substitution.
2692 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2693
2694 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2695
2696 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2697
2698 rm -rf .tst 2>/dev/null
2699 mkdir .tst 2>/dev/null
2700 if test -d .tst; then
2701 am__leading_dot=.
2702 else
2703 am__leading_dot=_
2704 fi
2705 rmdir .tst 2>/dev/null
2706
2707 DEPDIR="${am__leading_dot}deps"
2708
2709 # Dependency checking.
2710
2711
2712 ac_config_commands="$ac_config_commands depdir"
2713
2714
2715 depcc="$CC" am_compiler_list=
2716
2717 am_depcomp=$ac_aux_dir/depcomp
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
2719 $as_echo_n "checking dependency style of $depcc... " >&6; }
2720 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 if test -f "$am_depcomp"; then
2724 # We make a subdir and do the tests there. Otherwise we can end up
2725 # making bogus files that we don't know about and never remove. For
2726 # instance it was reported that on HP-UX the gcc test will end up
2727 # making a dummy file named `D' -- because `-MD' means `put the output
2728 # in D'.
2729 mkdir conftest.dir
2730 # Copy depcomp to subdir because otherwise we won't find it if we're
2731 # using a relative directory.
2732 cp "$am_depcomp" conftest.dir
2733 cd conftest.dir
2734 # We will build objects and dependencies in a subdirectory because
2735 # it helps to detect inapplicable dependency modes. For instance
2736 # both Tru64's cc and ICC support -MD to output dependencies as a
2737 # side effect of compilation, but ICC will put the dependencies in
2738 # the current directory while Tru64 will put them in the object
2739 # directory.
2740 mkdir sub
2741
2742 am_cv_CC_dependencies_compiler_type=none
2743 if test "$am_compiler_list" = ""; then
2744 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2745 fi
2746 for depmode in $am_compiler_list; do
2747 if test $depmode = none; then break; fi
2748
2749 $as_echo "$as_me:$LINENO: trying $depmode" >&5
2750 # Setup a source with many dependencies, because some compilers
2751 # like to wrap large dependency lists on column 80 (with \), and
2752 # we should not choose a depcomp mode which is confused by this.
2753 #
2754 # We need to recreate these files for each test, as the compiler may
2755 # overwrite some of them when testing with obscure command lines.
2756 # This happens at least with the AIX C compiler.
2757 : > sub/conftest.c
2758 for i in 1 2 3 4 5 6; do
2759 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2760 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2761 # Solaris 8's {/usr,}/bin/sh.
2762 touch sub/conftst$i.h
2763 done
2764 echo "include sub/conftest.Po" > confmf
2765
2766 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2767 # mode. It turns out that the SunPro C++ compiler does not properly
2768 # handle `-M -o', and we need to detect this.
2769 depcmd="depmode=$depmode \
2770 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2771 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2772 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
2773 echo "| $depcmd" | sed -e 's/ */ /g' >&5
2774 if env $depcmd > conftest.err 2>&1 &&
2775 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
2776 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
2777 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
2778 # icc doesn't choke on unknown options, it will just issue warnings
2779 # or remarks (even with -Werror). So we grep stderr for any message
2780 # that says an option was ignored or not supported.
2781 # When given -MP, icc 7.0 and 7.1 complain thusly:
2782 # icc: Command line warning: ignoring option '-M'; no argument required
2783 # The diagnosis changed in icc 8.0:
2784 # icc: Command line remark: option '-MP' not supported
2785 if (grep 'ignoring option' conftest.err ||
2786 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2787 am_cv_CC_dependencies_compiler_type=$depmode
2788 $as_echo "$as_me:$LINENO: success" >&5
2789 break
2790 fi
2791 fi
2792 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
2793 sed -e 's/^/| /' < conftest.err >&5
2794 done
2795
2796 cd ..
2797 rm -rf conftest.dir
2798 else
2799 am_cv_CC_dependencies_compiler_type=none
2800 fi
2801
2802 fi
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
2804 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2805 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
2806 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
2807 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2808
2809 fi
2810
2811
2812 ALL_LINGUAS=
2813 # If we haven't got the data from the intl directory,
2814 # assume NLS is disabled.
2815 USE_NLS=no
2816 LIBINTL=
2817 LIBINTL_DEP=
2818 INCINTL=
2819 XGETTEXT=
2820 GMSGFMT=
2821 POSUB=
2822
2823 if test -f ../../intl/config.intl; then
2824 . ../../intl/config.intl
2825 fi
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2827 $as_echo_n "checking whether NLS is requested... " >&6; }
2828 if test x"$USE_NLS" != xyes; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830 $as_echo "no" >&6; }
2831 else
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2833 $as_echo "yes" >&6; }
2834
2835 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
2836
2837
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
2839 $as_echo_n "checking for catalogs to be installed... " >&6; }
2840 # Look for .po and .gmo files in the source directory.
2841 CATALOGS=
2842 XLINGUAS=
2843 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2844 # If there aren't any .gmo files the shell will give us the
2845 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2846 # weeded out.
2847 case "$cat" in *\**)
2848 continue;;
2849 esac
2850 # The quadruple backslash is collapsed to a double backslash
2851 # by the backticks, then collapsed again by the double quotes,
2852 # leaving us with one backslash in the sed expression (right
2853 # before the dot that mustn't act as a wildcard).
2854 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2855 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2856 # The user is allowed to set LINGUAS to a list of languages to
2857 # install catalogs for. If it's empty that means "all of them."
2858 if test "x$LINGUAS" = x; then
2859 CATALOGS="$CATALOGS $cat"
2860 XLINGUAS="$XLINGUAS $lang"
2861 else
2862 case "$LINGUAS" in *$lang*)
2863 CATALOGS="$CATALOGS $cat"
2864 XLINGUAS="$XLINGUAS $lang"
2865 ;;
2866 esac
2867 fi
2868 done
2869 LINGUAS="$XLINGUAS"
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
2871 $as_echo "$LINGUAS" >&6; }
2872
2873
2874 DATADIRNAME=share
2875
2876 INSTOBJEXT=.mo
2877
2878 GENCAT=gencat
2879
2880 CATOBJEXT=.gmo
2881
2882 fi
2883
2884
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2886 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2887 # Check whether --enable-maintainer-mode was given.
2888 if test "${enable_maintainer_mode+set}" = set; then :
2889 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2890 else
2891 USE_MAINTAINER_MODE=no
2892 fi
2893
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2895 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2896 if test $USE_MAINTAINER_MODE = yes; then
2897 MAINTAINER_MODE_TRUE=
2898 MAINTAINER_MODE_FALSE='#'
2899 else
2900 MAINTAINER_MODE_TRUE='#'
2901 MAINTAINER_MODE_FALSE=
2902 fi
2903
2904 MAINT=$MAINTAINER_MODE_TRUE
2905
2906
2907
2908
2909 sim_inline="-DDEFAULT_INLINE=0"
2910 # Check whether --enable-sim-inline was given.
2911 if test "${enable_sim_inline+set}" = set; then :
2912 enableval=$enable_sim_inline; sim_inline=""
2913 case "$enableval" in
2914 no) sim_inline="-DDEFAULT_INLINE=0";;
2915 0) sim_inline="-DDEFAULT_INLINE=0";;
2916 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
2917 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
2918 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
2919 new_flag=""
2920 case "$x" in
2921 *_INLINE=*) new_flag="-D$x";;
2922 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
2923 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
2924 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
2925 esac
2926 if test x"$sim_inline" = x""; then
2927 sim_inline="$new_flag"
2928 else
2929 sim_inline="$sim_inline $new_flag"
2930 fi
2931 done;;
2932 esac
2933 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
2934 echo "Setting inline flags = $sim_inline" 6>&1
2935 fi
2936 fi
2937
2938
2939
2940
2941 default_sim_scache="16384"
2942 # Check whether --enable-sim-scache was given.
2943 if test "${enable_sim_scache+set}" = set; then :
2944 enableval=$enable_sim_scache; case "${enableval}" in
2945 yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
2946 no) sim_scache="-DWITH_SCACHE=0" ;;
2947 [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
2948 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;
2949 sim_scache="";;
2950 esac
2951 if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
2952 echo "Setting scache size = $sim_scache" 6>&1
2953 fi
2954 else
2955 sim_scache="-DWITH_SCACHE=${default_sim_scache}"
2956 fi
2957
2958
2959
2960 hardware="cfi core pal glue rv cris cris_900000xx"
2961 sim_hw_cflags="-DWITH_HW=1"
2962 sim_hw="$hardware"
2963 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
2964
2965 # Check whether --enable-sim-hardware was given.
2966 if test "${enable_sim_hardware+set}" = set; then :
2967 enableval=$enable_sim_hardware;
2968 else
2969 enable_sim_hardware="yes"
2970 fi
2971
2972 case ${enable_sim_hardware} in
2973 yes|no) ;;
2974 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
2975 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
2976 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
2977 esac
2978
2979 if test "$enable_sim_hardware" = no; then
2980 sim_hw_objs=
2981 sim_hw_cflags="-DWITH_HW=0"
2982 sim_hw=
2983 else
2984 sim_hw_cflags="-DWITH_HW=1"
2985 # remove duplicates
2986 sim_hw=""
2987 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
2988 for i in $hardware ; do
2989 case " $sim_hw " in
2990 *" $i "*) ;;
2991 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
2992 esac
2993 done
2994 # mingw does not support sockser
2995 case ${host} in
2996 *mingw*) ;;
2997 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
2998 # that you instatiate. Instead, other code will call into it directly.
2999 # At some point, we should convert it over.
3000 sim_hw_objs="$sim_hw_objs dv-sockser.o"
3001 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
3002 ;;
3003 esac
3004 if test x"$silent" != x"yes"; then
3005 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
3006 fi
3007 fi
3008
3009
3010 # The default model shouldn't matter as long as there's a BFD.
3011
3012 default_sim_default_model="crisv32"
3013 # Check whether --enable-sim-default-model was given.
3014 if test "${enable_sim_default_model+set}" = set; then :
3015 enableval=$enable_sim_default_model; case "${enableval}" in
3016 yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
3017 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
3018 esac
3019 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
3020 echo "Setting default model = $sim_default_model" 6>&1
3021 fi
3022 else
3023 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
3024 fi
3025
3026
3027
3028 cgen_maint=no
3029 cgen=guile
3030 cgendir='$(srcdir)/../../cgen'
3031 # Check whether --enable-cgen-maint was given.
3032 if test "${enable_cgen_maint+set}" = set; then :
3033 enableval=$enable_cgen_maint; case "${enableval}" in
3034 yes) cgen_maint=yes ;;
3035 no) cgen_maint=no ;;
3036 *)
3037 # Argument is a directory where cgen can be found. In some
3038 # future world cgen could be installable, but right now this
3039 # is not the case. Instead we assume the directory is a path
3040 # to the cgen source tree.
3041 cgen_maint=yes
3042 if test -r ${enableval}/iformat.scm; then
3043 # This looks like a cgen source tree.
3044 cgendir=${enableval}
3045 else
3046 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
3047 fi
3048 ;;
3049 esac
3050 fi
3051 if test x${cgen_maint} != xno ; then
3052 CGEN_MAINT=''
3053 else
3054 CGEN_MAINT='#'
3055 fi
3056
3057
3058
3059
3060
3061
3062 cgen_breaks=""
3063 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
3064 cgen_breaks="break cgen_rtx_error";
3065 fi
3066
3067 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
3068
3069 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
3070
3071 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
3072
3073 ac_config_commands="$ac_config_commands Makefile"
3074
3075 ac_config_commands="$ac_config_commands stamp-h"
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087 cat >confcache <<\_ACEOF
3088 # This file is a shell script that caches the results of configure
3089 # tests run on this system so they can be shared between configure
3090 # scripts and configure runs, see configure's option --config-cache.
3091 # It is not useful on other systems. If it contains results you don't
3092 # want to keep, you may remove or edit it.
3093 #
3094 # config.status only pays attention to the cache file if you give it
3095 # the --recheck option to rerun configure.
3096 #
3097 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3098 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3099 # following values.
3100
3101 _ACEOF
3102
3103 # The following way of writing the cache mishandles newlines in values,
3104 # but we know of no workaround that is simple, portable, and efficient.
3105 # So, we kill variables containing newlines.
3106 # Ultrix sh set writes to stderr and can't be redirected directly,
3107 # and sets the high bit in the cache file unless we assign to the vars.
3108 (
3109 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3110 eval ac_val=\$$ac_var
3111 case $ac_val in #(
3112 *${as_nl}*)
3113 case $ac_var in #(
3114 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3115 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3116 esac
3117 case $ac_var in #(
3118 _ | IFS | as_nl) ;; #(
3119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3120 *) { eval $ac_var=; unset $ac_var;} ;;
3121 esac ;;
3122 esac
3123 done
3124
3125 (set) 2>&1 |
3126 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3127 *${as_nl}ac_space=\ *)
3128 # `set' does not quote correctly, so add quotes: double-quote
3129 # substitution turns \\\\ into \\, and sed turns \\ into \.
3130 sed -n \
3131 "s/'/'\\\\''/g;
3132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3133 ;; #(
3134 *)
3135 # `set' quotes correctly as required by POSIX, so do not add quotes.
3136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3137 ;;
3138 esac |
3139 sort
3140 ) |
3141 sed '
3142 /^ac_cv_env_/b end
3143 t clear
3144 :clear
3145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3146 t end
3147 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3148 :end' >>confcache
3149 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3150 if test -w "$cache_file"; then
3151 if test "x$cache_file" != "x/dev/null"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3153 $as_echo "$as_me: updating cache $cache_file" >&6;}
3154 if test ! -f "$cache_file" || test -h "$cache_file"; then
3155 cat confcache >"$cache_file"
3156 else
3157 case $cache_file in #(
3158 */* | ?:*)
3159 mv -f confcache "$cache_file"$$ &&
3160 mv -f "$cache_file"$$ "$cache_file" ;; #(
3161 *)
3162 mv -f confcache "$cache_file" ;;
3163 esac
3164 fi
3165 fi
3166 else
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3168 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3169 fi
3170 fi
3171 rm -f confcache
3172
3173 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3174 # Let make expand exec_prefix.
3175 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3176
3177 # Transform confdefs.h into DEFS.
3178 # Protect against shell expansion while executing Makefile rules.
3179 # Protect against Makefile macro expansion.
3180 #
3181 # If the first sed substitution is executed (which looks for macros that
3182 # take arguments), then branch to the quote section. Otherwise,
3183 # look for a macro that doesn't take arguments.
3184 ac_script='
3185 :mline
3186 /\\$/{
3187 N
3188 s,\\\n,,
3189 b mline
3190 }
3191 t clear
3192 :clear
3193 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3194 t quote
3195 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3196 t quote
3197 b any
3198 :quote
3199 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3200 s/\[/\\&/g
3201 s/\]/\\&/g
3202 s/\$/$$/g
3203 H
3204 :any
3205 ${
3206 g
3207 s/^\n//
3208 s/\n/ /g
3209 p
3210 }
3211 '
3212 DEFS=`sed -n "$ac_script" confdefs.h`
3213
3214
3215 ac_libobjs=
3216 ac_ltlibobjs=
3217 U=
3218 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3219 # 1. Remove the extension, and $U if already installed.
3220 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3221 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3222 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3223 # will be set to the directory where LIBOBJS objects are built.
3224 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3225 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3226 done
3227 LIBOBJS=$ac_libobjs
3228
3229 LTLIBOBJS=$ac_ltlibobjs
3230
3231
3232 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3233 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
3234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3235 fi
3236
3237 : "${CONFIG_STATUS=./config.status}"
3238 ac_write_fail=0
3239 ac_clean_files_save=$ac_clean_files
3240 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3242 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3243 as_write_fail=0
3244 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3245 #! $SHELL
3246 # Generated by $as_me.
3247 # Run this file to recreate the current configuration.
3248 # Compiler output produced by configure, useful for debugging
3249 # configure, is in config.log if it exists.
3250
3251 debug=false
3252 ac_cs_recheck=false
3253 ac_cs_silent=false
3254
3255 SHELL=\${CONFIG_SHELL-$SHELL}
3256 export SHELL
3257 _ASEOF
3258 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3259 ## -------------------- ##
3260 ## M4sh Initialization. ##
3261 ## -------------------- ##
3262
3263 # Be more Bourne compatible
3264 DUALCASE=1; export DUALCASE # for MKS sh
3265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3266 emulate sh
3267 NULLCMD=:
3268 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3269 # is contrary to our usage. Disable this feature.
3270 alias -g '${1+"$@"}'='"$@"'
3271 setopt NO_GLOB_SUBST
3272 else
3273 case `(set -o) 2>/dev/null` in #(
3274 *posix*) :
3275 set -o posix ;; #(
3276 *) :
3277 ;;
3278 esac
3279 fi
3280
3281
3282 as_nl='
3283 '
3284 export as_nl
3285 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3286 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3289 # Prefer a ksh shell builtin over an external printf program on Solaris,
3290 # but without wasting forks for bash or zsh.
3291 if test -z "$BASH_VERSION$ZSH_VERSION" \
3292 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3293 as_echo='print -r --'
3294 as_echo_n='print -rn --'
3295 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3296 as_echo='printf %s\n'
3297 as_echo_n='printf %s'
3298 else
3299 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3300 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3301 as_echo_n='/usr/ucb/echo -n'
3302 else
3303 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3304 as_echo_n_body='eval
3305 arg=$1;
3306 case $arg in #(
3307 *"$as_nl"*)
3308 expr "X$arg" : "X\\(.*\\)$as_nl";
3309 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3310 esac;
3311 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3312 '
3313 export as_echo_n_body
3314 as_echo_n='sh -c $as_echo_n_body as_echo'
3315 fi
3316 export as_echo_body
3317 as_echo='sh -c $as_echo_body as_echo'
3318 fi
3319
3320 # The user is always right.
3321 if test "${PATH_SEPARATOR+set}" != set; then
3322 PATH_SEPARATOR=:
3323 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3324 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3325 PATH_SEPARATOR=';'
3326 }
3327 fi
3328
3329
3330 # IFS
3331 # We need space, tab and new line, in precisely that order. Quoting is
3332 # there to prevent editors from complaining about space-tab.
3333 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3334 # splitting by setting IFS to empty value.)
3335 IFS=" "" $as_nl"
3336
3337 # Find who we are. Look in the path if we contain no directory separator.
3338 as_myself=
3339 case $0 in #((
3340 *[\\/]* ) as_myself=$0 ;;
3341 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3347 done
3348 IFS=$as_save_IFS
3349
3350 ;;
3351 esac
3352 # We did not find ourselves, most probably we were run as `sh COMMAND'
3353 # in which case we are not to be found in the path.
3354 if test "x$as_myself" = x; then
3355 as_myself=$0
3356 fi
3357 if test ! -f "$as_myself"; then
3358 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3359 exit 1
3360 fi
3361
3362 # Unset variables that we do not need and which cause bugs (e.g. in
3363 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3364 # suppresses any "Segmentation fault" message there. '((' could
3365 # trigger a bug in pdksh 5.2.14.
3366 for as_var in BASH_ENV ENV MAIL MAILPATH
3367 do eval test x\${$as_var+set} = xset \
3368 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3369 done
3370 PS1='$ '
3371 PS2='> '
3372 PS4='+ '
3373
3374 # NLS nuisances.
3375 LC_ALL=C
3376 export LC_ALL
3377 LANGUAGE=C
3378 export LANGUAGE
3379
3380 # CDPATH.
3381 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3382
3383
3384 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3385 # ----------------------------------------
3386 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3387 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3388 # script with STATUS, using 1 if that was 0.
3389 as_fn_error ()
3390 {
3391 as_status=$1; test $as_status -eq 0 && as_status=1
3392 if test "$4"; then
3393 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3394 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3395 fi
3396 $as_echo "$as_me: error: $2" >&2
3397 as_fn_exit $as_status
3398 } # as_fn_error
3399
3400
3401 # as_fn_set_status STATUS
3402 # -----------------------
3403 # Set $? to STATUS, without forking.
3404 as_fn_set_status ()
3405 {
3406 return $1
3407 } # as_fn_set_status
3408
3409 # as_fn_exit STATUS
3410 # -----------------
3411 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3412 as_fn_exit ()
3413 {
3414 set +e
3415 as_fn_set_status $1
3416 exit $1
3417 } # as_fn_exit
3418
3419 # as_fn_unset VAR
3420 # ---------------
3421 # Portably unset VAR.
3422 as_fn_unset ()
3423 {
3424 { eval $1=; unset $1;}
3425 }
3426 as_unset=as_fn_unset
3427 # as_fn_append VAR VALUE
3428 # ----------------------
3429 # Append the text in VALUE to the end of the definition contained in VAR. Take
3430 # advantage of any shell optimizations that allow amortized linear growth over
3431 # repeated appends, instead of the typical quadratic growth present in naive
3432 # implementations.
3433 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3434 eval 'as_fn_append ()
3435 {
3436 eval $1+=\$2
3437 }'
3438 else
3439 as_fn_append ()
3440 {
3441 eval $1=\$$1\$2
3442 }
3443 fi # as_fn_append
3444
3445 # as_fn_arith ARG...
3446 # ------------------
3447 # Perform arithmetic evaluation on the ARGs, and store the result in the
3448 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3449 # must be portable across $(()) and expr.
3450 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3451 eval 'as_fn_arith ()
3452 {
3453 as_val=$(( $* ))
3454 }'
3455 else
3456 as_fn_arith ()
3457 {
3458 as_val=`expr "$@" || test $? -eq 1`
3459 }
3460 fi # as_fn_arith
3461
3462
3463 if expr a : '\(a\)' >/dev/null 2>&1 &&
3464 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3465 as_expr=expr
3466 else
3467 as_expr=false
3468 fi
3469
3470 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3471 as_basename=basename
3472 else
3473 as_basename=false
3474 fi
3475
3476 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3477 as_dirname=dirname
3478 else
3479 as_dirname=false
3480 fi
3481
3482 as_me=`$as_basename -- "$0" ||
3483 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3484 X"$0" : 'X\(//\)$' \| \
3485 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3486 $as_echo X/"$0" |
3487 sed '/^.*\/\([^/][^/]*\)\/*$/{
3488 s//\1/
3489 q
3490 }
3491 /^X\/\(\/\/\)$/{
3492 s//\1/
3493 q
3494 }
3495 /^X\/\(\/\).*/{
3496 s//\1/
3497 q
3498 }
3499 s/.*/./; q'`
3500
3501 # Avoid depending upon Character Ranges.
3502 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3503 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3504 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3505 as_cr_digits='0123456789'
3506 as_cr_alnum=$as_cr_Letters$as_cr_digits
3507
3508 ECHO_C= ECHO_N= ECHO_T=
3509 case `echo -n x` in #(((((
3510 -n*)
3511 case `echo 'xy\c'` in
3512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3513 xy) ECHO_C='\c';;
3514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3515 ECHO_T=' ';;
3516 esac;;
3517 *)
3518 ECHO_N='-n';;
3519 esac
3520
3521 rm -f conf$$ conf$$.exe conf$$.file
3522 if test -d conf$$.dir; then
3523 rm -f conf$$.dir/conf$$.file
3524 else
3525 rm -f conf$$.dir
3526 mkdir conf$$.dir 2>/dev/null
3527 fi
3528 if (echo >conf$$.file) 2>/dev/null; then
3529 if ln -s conf$$.file conf$$ 2>/dev/null; then
3530 as_ln_s='ln -s'
3531 # ... but there are two gotchas:
3532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3534 # In both cases, we have to default to `cp -pR'.
3535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3536 as_ln_s='cp -pR'
3537 elif ln conf$$.file conf$$ 2>/dev/null; then
3538 as_ln_s=ln
3539 else
3540 as_ln_s='cp -pR'
3541 fi
3542 else
3543 as_ln_s='cp -pR'
3544 fi
3545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3546 rmdir conf$$.dir 2>/dev/null
3547
3548
3549 # as_fn_mkdir_p
3550 # -------------
3551 # Create "$as_dir" as a directory, including parents if necessary.
3552 as_fn_mkdir_p ()
3553 {
3554
3555 case $as_dir in #(
3556 -*) as_dir=./$as_dir;;
3557 esac
3558 test -d "$as_dir" || eval $as_mkdir_p || {
3559 as_dirs=
3560 while :; do
3561 case $as_dir in #(
3562 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3563 *) as_qdir=$as_dir;;
3564 esac
3565 as_dirs="'$as_qdir' $as_dirs"
3566 as_dir=`$as_dirname -- "$as_dir" ||
3567 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3568 X"$as_dir" : 'X\(//\)[^/]' \| \
3569 X"$as_dir" : 'X\(//\)$' \| \
3570 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3571 $as_echo X"$as_dir" |
3572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3573 s//\1/
3574 q
3575 }
3576 /^X\(\/\/\)[^/].*/{
3577 s//\1/
3578 q
3579 }
3580 /^X\(\/\/\)$/{
3581 s//\1/
3582 q
3583 }
3584 /^X\(\/\).*/{
3585 s//\1/
3586 q
3587 }
3588 s/.*/./; q'`
3589 test -d "$as_dir" && break
3590 done
3591 test -z "$as_dirs" || eval "mkdir $as_dirs"
3592 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3593
3594
3595 } # as_fn_mkdir_p
3596 if mkdir -p . 2>/dev/null; then
3597 as_mkdir_p='mkdir -p "$as_dir"'
3598 else
3599 test -d ./-p && rmdir ./-p
3600 as_mkdir_p=false
3601 fi
3602
3603
3604 # as_fn_executable_p FILE
3605 # -----------------------
3606 # Test if FILE is an executable regular file.
3607 as_fn_executable_p ()
3608 {
3609 test -f "$1" && test -x "$1"
3610 } # as_fn_executable_p
3611 as_test_x='test -x'
3612 as_executable_p=as_fn_executable_p
3613
3614 # Sed expression to map a string onto a valid CPP name.
3615 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3616
3617 # Sed expression to map a string onto a valid variable name.
3618 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3619
3620
3621 exec 6>&1
3622 ## ----------------------------------- ##
3623 ## Main body of $CONFIG_STATUS script. ##
3624 ## ----------------------------------- ##
3625 _ASEOF
3626 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3627
3628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3629 # Save the log message, to keep $0 and so on meaningful, and to
3630 # report actual input values of CONFIG_FILES etc. instead of their
3631 # values after options handling.
3632 ac_log="
3633 This file was extended by $as_me, which was
3634 generated by GNU Autoconf 2.69. Invocation command line was
3635
3636 CONFIG_FILES = $CONFIG_FILES
3637 CONFIG_HEADERS = $CONFIG_HEADERS
3638 CONFIG_LINKS = $CONFIG_LINKS
3639 CONFIG_COMMANDS = $CONFIG_COMMANDS
3640 $ $0 $@
3641
3642 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3643 "
3644
3645 _ACEOF
3646
3647 case $ac_config_files in *"
3648 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3649 esac
3650
3651
3652
3653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3654 # Files that config.status was made for.
3655 config_files="$ac_config_files"
3656 config_commands="$ac_config_commands"
3657
3658 _ACEOF
3659
3660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3661 ac_cs_usage="\
3662 \`$as_me' instantiates files and other configuration actions
3663 from templates according to the current configuration. Unless the files
3664 and actions are specified as TAGs, all are instantiated by default.
3665
3666 Usage: $0 [OPTION]... [TAG]...
3667
3668 -h, --help print this help, then exit
3669 -V, --version print version number and configuration settings, then exit
3670 --config print configuration, then exit
3671 -q, --quiet, --silent
3672 do not print progress messages
3673 -d, --debug don't remove temporary files
3674 --recheck update $as_me by reconfiguring in the same conditions
3675 --file=FILE[:TEMPLATE]
3676 instantiate the configuration file FILE
3677
3678 Configuration files:
3679 $config_files
3680
3681 Configuration commands:
3682 $config_commands
3683
3684 Report bugs to the package provider."
3685
3686 _ACEOF
3687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3688 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3689 ac_cs_version="\\
3690 config.status
3691 configured by $0, generated by GNU Autoconf 2.69,
3692 with options \\"\$ac_cs_config\\"
3693
3694 Copyright (C) 2012 Free Software Foundation, Inc.
3695 This config.status script is free software; the Free Software Foundation
3696 gives unlimited permission to copy, distribute and modify it."
3697
3698 ac_pwd='$ac_pwd'
3699 srcdir='$srcdir'
3700 INSTALL='$INSTALL'
3701 test -n "\$AWK" || AWK=awk
3702 _ACEOF
3703
3704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3705 # The default lists apply if the user does not specify any file.
3706 ac_need_defaults=:
3707 while test $# != 0
3708 do
3709 case $1 in
3710 --*=?*)
3711 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3712 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3713 ac_shift=:
3714 ;;
3715 --*=)
3716 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3717 ac_optarg=
3718 ac_shift=:
3719 ;;
3720 *)
3721 ac_option=$1
3722 ac_optarg=$2
3723 ac_shift=shift
3724 ;;
3725 esac
3726
3727 case $ac_option in
3728 # Handling of the options.
3729 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3730 ac_cs_recheck=: ;;
3731 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3732 $as_echo "$ac_cs_version"; exit ;;
3733 --config | --confi | --conf | --con | --co | --c )
3734 $as_echo "$ac_cs_config"; exit ;;
3735 --debug | --debu | --deb | --de | --d | -d )
3736 debug=: ;;
3737 --file | --fil | --fi | --f )
3738 $ac_shift
3739 case $ac_optarg in
3740 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3741 '') as_fn_error $? "missing file argument" ;;
3742 esac
3743 as_fn_append CONFIG_FILES " '$ac_optarg'"
3744 ac_need_defaults=false;;
3745 --he | --h | --help | --hel | -h )
3746 $as_echo "$ac_cs_usage"; exit ;;
3747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3748 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3749 ac_cs_silent=: ;;
3750
3751 # This is an error.
3752 -*) as_fn_error $? "unrecognized option: \`$1'
3753 Try \`$0 --help' for more information." ;;
3754
3755 *) as_fn_append ac_config_targets " $1"
3756 ac_need_defaults=false ;;
3757
3758 esac
3759 shift
3760 done
3761
3762 ac_configure_extra_args=
3763
3764 if $ac_cs_silent; then
3765 exec 6>/dev/null
3766 ac_configure_extra_args="$ac_configure_extra_args --silent"
3767 fi
3768
3769 _ACEOF
3770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3771 if \$ac_cs_recheck; then
3772 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3773 shift
3774 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3775 CONFIG_SHELL='$SHELL'
3776 export CONFIG_SHELL
3777 exec "\$@"
3778 fi
3779
3780 _ACEOF
3781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3782 exec 5>>config.log
3783 {
3784 echo
3785 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3786 ## Running $as_me. ##
3787 _ASBOX
3788 $as_echo "$ac_log"
3789 } >&5
3790
3791 _ACEOF
3792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3793 #
3794 # INIT-COMMANDS
3795 #
3796 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
3797
3798 _ACEOF
3799
3800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3801
3802 # Handling of arguments.
3803 for ac_config_target in $ac_config_targets
3804 do
3805 case $ac_config_target in
3806 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
3807 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
3808 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
3809 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
3810 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
3811 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
3812
3813 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3814 esac
3815 done
3816
3817
3818 # If the user did not use the arguments to specify the items to instantiate,
3819 # then the envvar interface is used. Set only those that are not.
3820 # We use the long form for the default assignment because of an extremely
3821 # bizarre bug on SunOS 4.1.3.
3822 if $ac_need_defaults; then
3823 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3824 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3825 fi
3826
3827 # Have a temporary directory for convenience. Make it in the build tree
3828 # simply because there is no reason against having it here, and in addition,
3829 # creating and moving files from /tmp can sometimes cause problems.
3830 # Hook for its removal unless debugging.
3831 # Note that there is a small window in which the directory will not be cleaned:
3832 # after its creation but before its name has been assigned to `$tmp'.
3833 $debug ||
3834 {
3835 tmp= ac_tmp=
3836 trap 'exit_status=$?
3837 : "${ac_tmp:=$tmp}"
3838 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3839 ' 0
3840 trap 'as_fn_exit 1' 1 2 13 15
3841 }
3842 # Create a (secure) tmp directory for tmp files.
3843
3844 {
3845 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3846 test -d "$tmp"
3847 } ||
3848 {
3849 tmp=./conf$$-$RANDOM
3850 (umask 077 && mkdir "$tmp")
3851 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3852 ac_tmp=$tmp
3853
3854 # Set up the scripts for CONFIG_FILES section.
3855 # No need to generate them if there are no CONFIG_FILES.
3856 # This happens for instance with `./config.status config.h'.
3857 if test -n "$CONFIG_FILES"; then
3858
3859
3860 ac_cr=`echo X | tr X '\015'`
3861 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3862 # But we know of no other shell where ac_cr would be empty at this
3863 # point, so we can use a bashism as a fallback.
3864 if test "x$ac_cr" = x; then
3865 eval ac_cr=\$\'\\r\'
3866 fi
3867 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3868 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3869 ac_cs_awk_cr='\\r'
3870 else
3871 ac_cs_awk_cr=$ac_cr
3872 fi
3873
3874 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3875 _ACEOF
3876
3877
3878 {
3879 echo "cat >conf$$subs.awk <<_ACEOF" &&
3880 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3881 echo "_ACEOF"
3882 } >conf$$subs.sh ||
3883 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3884 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3885 ac_delim='%!_!# '
3886 for ac_last_try in false false false false false :; do
3887 . ./conf$$subs.sh ||
3888 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3889
3890 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3891 if test $ac_delim_n = $ac_delim_num; then
3892 break
3893 elif $ac_last_try; then
3894 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3895 else
3896 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3897 fi
3898 done
3899 rm -f conf$$subs.sh
3900
3901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3902 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3903 _ACEOF
3904 sed -n '
3905 h
3906 s/^/S["/; s/!.*/"]=/
3907 p
3908 g
3909 s/^[^!]*!//
3910 :repl
3911 t repl
3912 s/'"$ac_delim"'$//
3913 t delim
3914 :nl
3915 h
3916 s/\(.\{148\}\)..*/\1/
3917 t more1
3918 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3919 p
3920 n
3921 b repl
3922 :more1
3923 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3924 p
3925 g
3926 s/.\{148\}//
3927 t nl
3928 :delim
3929 h
3930 s/\(.\{148\}\)..*/\1/
3931 t more2
3932 s/["\\]/\\&/g; s/^/"/; s/$/"/
3933 p
3934 b
3935 :more2
3936 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3937 p
3938 g
3939 s/.\{148\}//
3940 t delim
3941 ' <conf$$subs.awk | sed '
3942 /^[^""]/{
3943 N
3944 s/\n//
3945 }
3946 ' >>$CONFIG_STATUS || ac_write_fail=1
3947 rm -f conf$$subs.awk
3948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3949 _ACAWK
3950 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3951 for (key in S) S_is_set[key] = 1
3952 FS = "\a"
3953
3954 }
3955 {
3956 line = $ 0
3957 nfields = split(line, field, "@")
3958 substed = 0
3959 len = length(field[1])
3960 for (i = 2; i < nfields; i++) {
3961 key = field[i]
3962 keylen = length(key)
3963 if (S_is_set[key]) {
3964 value = S[key]
3965 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3966 len += length(value) + length(field[++i])
3967 substed = 1
3968 } else
3969 len += 1 + keylen
3970 }
3971
3972 print line
3973 }
3974
3975 _ACAWK
3976 _ACEOF
3977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3978 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3979 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3980 else
3981 cat
3982 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3983 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3984 _ACEOF
3985
3986 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3987 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3988 # trailing colons and then remove the whole line if VPATH becomes empty
3989 # (actually we leave an empty line to preserve line numbers).
3990 if test "x$srcdir" = x.; then
3991 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3992 h
3993 s///
3994 s/^/:/
3995 s/[ ]*$/:/
3996 s/:\$(srcdir):/:/g
3997 s/:\${srcdir}:/:/g
3998 s/:@srcdir@:/:/g
3999 s/^:*//
4000 s/:*$//
4001 x
4002 s/\(=[ ]*\).*/\1/
4003 G
4004 s/\n//
4005 s/^[^=]*=[ ]*$//
4006 }'
4007 fi
4008
4009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4010 fi # test -n "$CONFIG_FILES"
4011
4012
4013 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
4014 shift
4015 for ac_tag
4016 do
4017 case $ac_tag in
4018 :[FHLC]) ac_mode=$ac_tag; continue;;
4019 esac
4020 case $ac_mode$ac_tag in
4021 :[FHL]*:*);;
4022 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4023 :[FH]-) ac_tag=-:-;;
4024 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4025 esac
4026 ac_save_IFS=$IFS
4027 IFS=:
4028 set x $ac_tag
4029 IFS=$ac_save_IFS
4030 shift
4031 ac_file=$1
4032 shift
4033
4034 case $ac_mode in
4035 :L) ac_source=$1;;
4036 :[FH])
4037 ac_file_inputs=
4038 for ac_f
4039 do
4040 case $ac_f in
4041 -) ac_f="$ac_tmp/stdin";;
4042 *) # Look for the file first in the build tree, then in the source tree
4043 # (if the path is not absolute). The absolute path cannot be DOS-style,
4044 # because $ac_f cannot contain `:'.
4045 test -f "$ac_f" ||
4046 case $ac_f in
4047 [\\/$]*) false;;
4048 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4049 esac ||
4050 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4051 esac
4052 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4053 as_fn_append ac_file_inputs " '$ac_f'"
4054 done
4055
4056 # Let's still pretend it is `configure' which instantiates (i.e., don't
4057 # use $as_me), people would be surprised to read:
4058 # /* config.h. Generated by config.status. */
4059 configure_input='Generated from '`
4060 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4061 `' by configure.'
4062 if test x"$ac_file" != x-; then
4063 configure_input="$ac_file. $configure_input"
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4065 $as_echo "$as_me: creating $ac_file" >&6;}
4066 fi
4067 # Neutralize special characters interpreted by sed in replacement strings.
4068 case $configure_input in #(
4069 *\&* | *\|* | *\\* )
4070 ac_sed_conf_input=`$as_echo "$configure_input" |
4071 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4072 *) ac_sed_conf_input=$configure_input;;
4073 esac
4074
4075 case $ac_tag in
4076 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4078 esac
4079 ;;
4080 esac
4081
4082 ac_dir=`$as_dirname -- "$ac_file" ||
4083 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4084 X"$ac_file" : 'X\(//\)[^/]' \| \
4085 X"$ac_file" : 'X\(//\)$' \| \
4086 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4087 $as_echo X"$ac_file" |
4088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4089 s//\1/
4090 q
4091 }
4092 /^X\(\/\/\)[^/].*/{
4093 s//\1/
4094 q
4095 }
4096 /^X\(\/\/\)$/{
4097 s//\1/
4098 q
4099 }
4100 /^X\(\/\).*/{
4101 s//\1/
4102 q
4103 }
4104 s/.*/./; q'`
4105 as_dir="$ac_dir"; as_fn_mkdir_p
4106 ac_builddir=.
4107
4108 case "$ac_dir" in
4109 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4110 *)
4111 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4112 # A ".." for each directory in $ac_dir_suffix.
4113 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4114 case $ac_top_builddir_sub in
4115 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4116 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4117 esac ;;
4118 esac
4119 ac_abs_top_builddir=$ac_pwd
4120 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4121 # for backward compatibility:
4122 ac_top_builddir=$ac_top_build_prefix
4123
4124 case $srcdir in
4125 .) # We are building in place.
4126 ac_srcdir=.
4127 ac_top_srcdir=$ac_top_builddir_sub
4128 ac_abs_top_srcdir=$ac_pwd ;;
4129 [\\/]* | ?:[\\/]* ) # Absolute name.
4130 ac_srcdir=$srcdir$ac_dir_suffix;
4131 ac_top_srcdir=$srcdir
4132 ac_abs_top_srcdir=$srcdir ;;
4133 *) # Relative name.
4134 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4135 ac_top_srcdir=$ac_top_build_prefix$srcdir
4136 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4137 esac
4138 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4139
4140
4141 case $ac_mode in
4142 :F)
4143 #
4144 # CONFIG_FILE
4145 #
4146
4147 case $INSTALL in
4148 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4149 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4150 esac
4151 _ACEOF
4152
4153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4154 # If the template does not know about datarootdir, expand it.
4155 # FIXME: This hack should be removed a few years after 2.60.
4156 ac_datarootdir_hack=; ac_datarootdir_seen=
4157 ac_sed_dataroot='
4158 /datarootdir/ {
4159 p
4160 q
4161 }
4162 /@datadir@/p
4163 /@docdir@/p
4164 /@infodir@/p
4165 /@localedir@/p
4166 /@mandir@/p'
4167 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4168 *datarootdir*) ac_datarootdir_seen=yes;;
4169 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4171 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4172 _ACEOF
4173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4174 ac_datarootdir_hack='
4175 s&@datadir@&$datadir&g
4176 s&@docdir@&$docdir&g
4177 s&@infodir@&$infodir&g
4178 s&@localedir@&$localedir&g
4179 s&@mandir@&$mandir&g
4180 s&\\\${datarootdir}&$datarootdir&g' ;;
4181 esac
4182 _ACEOF
4183
4184 # Neutralize VPATH when `$srcdir' = `.'.
4185 # Shell code in configure.ac might set extrasub.
4186 # FIXME: do we really want to maintain this feature?
4187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4188 ac_sed_extra="$ac_vpsub
4189 $extrasub
4190 _ACEOF
4191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4192 :t
4193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4194 s|@configure_input@|$ac_sed_conf_input|;t t
4195 s&@top_builddir@&$ac_top_builddir_sub&;t t
4196 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4197 s&@srcdir@&$ac_srcdir&;t t
4198 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4199 s&@top_srcdir@&$ac_top_srcdir&;t t
4200 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4201 s&@builddir@&$ac_builddir&;t t
4202 s&@abs_builddir@&$ac_abs_builddir&;t t
4203 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4204 s&@INSTALL@&$ac_INSTALL&;t t
4205 $ac_datarootdir_hack
4206 "
4207 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4208 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4209
4210 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4211 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4212 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4213 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4215 which seems to be undefined. Please make sure it is defined" >&5
4216 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4217 which seems to be undefined. Please make sure it is defined" >&2;}
4218
4219 rm -f "$ac_tmp/stdin"
4220 case $ac_file in
4221 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4222 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4223 esac \
4224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4225 ;;
4226
4227
4228 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4229 $as_echo "$as_me: executing $ac_file commands" >&6;}
4230 ;;
4231 esac
4232
4233
4234 case $ac_file$ac_mode in
4235 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
4236 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4237 rm -f Makesim1.tmp Makesim2.tmp Makefile
4238 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4239 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4240 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4241 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4242 <Makefile.sim >Makefile
4243 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4244 ;;
4245 "stamp-h":C) echo > stamp-h ;;
4246
4247 esac
4248 done # for ac_tag
4249
4250
4251 as_fn_exit 0
4252 _ACEOF
4253 ac_clean_files=$ac_clean_files_save
4254
4255 test $ac_write_fail = 0 ||
4256 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4257
4258
4259 # configure is writing to config.log, and then calls config.status.
4260 # config.status does its own redirection, appending to config.log.
4261 # Unfortunately, on DOS this fails, as config.log is still kept open
4262 # by configure, so config.status won't be able to write to it; its
4263 # output is simply discarded. So we exec the FD to /dev/null,
4264 # effectively closing config.log, so it can be properly (re)opened and
4265 # appended to by config.status. When coming back to configure, we
4266 # need to make the FD available again.
4267 if test "$no_create" != yes; then
4268 ac_cs_success=:
4269 ac_config_status_args=
4270 test "$silent" = yes &&
4271 ac_config_status_args="$ac_config_status_args --quiet"
4272 exec 5>/dev/null
4273 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4274 exec 5>>config.log
4275 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4276 # would make configure fail if this is the last instruction.
4277 $ac_cs_success || as_fn_exit 1
4278 fi
4279 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4281 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4282 fi
4283
4284