comparison configure @ 7:7e50d576470d 1.0 1.0 1.1

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