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