update.
[chise/chise-base.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for chise-base 0.25.
4 #
5 # Report bugs to <chise-en@m17n.org>.
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='chise-base'
576 PACKAGE_TARNAME='chise-base'
577 PACKAGE_VERSION='0.25'
578 PACKAGE_STRING='chise-base 0.25'
579 PACKAGE_BUGREPORT='chise-en@m17n.org'
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 build
619 build_cpu
620 build_vendor
621 build_os
622 host
623 host_cpu
624 host_vendor
625 host_os
626 target
627 target_cpu
628 target_vendor
629 target_os
630 ac_configure_args
631 xemacs_configure_args
632 xemacs_site_includes
633 xemacs_site_libraries
634 xemacs_opts
635 cvs_root
636 lemi_cvs_root
637 CC
638 CFLAGS
639 LDFLAGS
640 CPPFLAGS
641 ac_ct_CC
642 EXEEXT
643 OBJEXT
644 LIBOBJS
645 LTLIBOBJS'
646 ac_subst_files=''
647       ac_precious_vars='build_alias
648 host_alias
649 target_alias
650 CC
651 CFLAGS
652 LDFLAGS
653 LIBS
654 CPPFLAGS'
655
656
657 # Initialize some variables set by options.
658 ac_init_help=
659 ac_init_version=false
660 # The variables have the same names as the options, with
661 # dashes changed to underlines.
662 cache_file=/dev/null
663 exec_prefix=NONE
664 no_create=
665 no_recursion=
666 prefix=NONE
667 program_prefix=NONE
668 program_suffix=NONE
669 program_transform_name=s,x,x,
670 silent=
671 site=
672 srcdir=
673 verbose=
674 x_includes=NONE
675 x_libraries=NONE
676
677 # Installation directory options.
678 # These are left unexpanded so users can "make install exec_prefix=/foo"
679 # and all the variables that are supposed to be based on exec_prefix
680 # by default will actually change.
681 # Use braces instead of parens because sh, perl, etc. also accept them.
682 # (The list follows the same order as the GNU Coding Standards.)
683 bindir='${exec_prefix}/bin'
684 sbindir='${exec_prefix}/sbin'
685 libexecdir='${exec_prefix}/libexec'
686 datarootdir='${prefix}/share'
687 datadir='${datarootdir}'
688 sysconfdir='${prefix}/etc'
689 sharedstatedir='${prefix}/com'
690 localstatedir='${prefix}/var'
691 includedir='${prefix}/include'
692 oldincludedir='/usr/include'
693 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
694 infodir='${datarootdir}/info'
695 htmldir='${docdir}'
696 dvidir='${docdir}'
697 pdfdir='${docdir}'
698 psdir='${docdir}'
699 libdir='${exec_prefix}/lib'
700 localedir='${datarootdir}/locale'
701 mandir='${datarootdir}/man'
702
703 ac_prev=
704 ac_dashdash=
705 for ac_option
706 do
707   # If the previous option needs an argument, assign it.
708   if test -n "$ac_prev"; then
709     eval $ac_prev=\$ac_option
710     ac_prev=
711     continue
712   fi
713
714   case $ac_option in
715   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
716   *)    ac_optarg=yes ;;
717   esac
718
719   # Accept the important Cygnus configure options, so we can diagnose typos.
720
721   case $ac_dashdash$ac_option in
722   --)
723     ac_dashdash=yes ;;
724
725   -bindir | --bindir | --bindi | --bind | --bin | --bi)
726     ac_prev=bindir ;;
727   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
728     bindir=$ac_optarg ;;
729
730   -build | --build | --buil | --bui | --bu)
731     ac_prev=build_alias ;;
732   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
733     build_alias=$ac_optarg ;;
734
735   -cache-file | --cache-file | --cache-fil | --cache-fi \
736   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
737     ac_prev=cache_file ;;
738   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
739   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
740     cache_file=$ac_optarg ;;
741
742   --config-cache | -C)
743     cache_file=config.cache ;;
744
745   -datadir | --datadir | --datadi | --datad)
746     ac_prev=datadir ;;
747   -datadir=* | --datadir=* | --datadi=* | --datad=*)
748     datadir=$ac_optarg ;;
749
750   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
751   | --dataroo | --dataro | --datar)
752     ac_prev=datarootdir ;;
753   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
754   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
755     datarootdir=$ac_optarg ;;
756
757   -disable-* | --disable-*)
758     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
759     # Reject names that are not valid shell variable names.
760     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
761       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
762    { (exit 1); exit 1; }; }
763     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
764     eval enable_$ac_feature=no ;;
765
766   -docdir | --docdir | --docdi | --doc | --do)
767     ac_prev=docdir ;;
768   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
769     docdir=$ac_optarg ;;
770
771   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
772     ac_prev=dvidir ;;
773   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
774     dvidir=$ac_optarg ;;
775
776   -enable-* | --enable-*)
777     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
778     # Reject names that are not valid shell variable names.
779     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
780       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
781    { (exit 1); exit 1; }; }
782     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
783     eval enable_$ac_feature=\$ac_optarg ;;
784
785   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
786   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
787   | --exec | --exe | --ex)
788     ac_prev=exec_prefix ;;
789   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
790   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
791   | --exec=* | --exe=* | --ex=*)
792     exec_prefix=$ac_optarg ;;
793
794   -gas | --gas | --ga | --g)
795     # Obsolete; use --with-gas.
796     with_gas=yes ;;
797
798   -help | --help | --hel | --he | -h)
799     ac_init_help=long ;;
800   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
801     ac_init_help=recursive ;;
802   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
803     ac_init_help=short ;;
804
805   -host | --host | --hos | --ho)
806     ac_prev=host_alias ;;
807   -host=* | --host=* | --hos=* | --ho=*)
808     host_alias=$ac_optarg ;;
809
810   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
811     ac_prev=htmldir ;;
812   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
813   | --ht=*)
814     htmldir=$ac_optarg ;;
815
816   -includedir | --includedir | --includedi | --included | --include \
817   | --includ | --inclu | --incl | --inc)
818     ac_prev=includedir ;;
819   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
820   | --includ=* | --inclu=* | --incl=* | --inc=*)
821     includedir=$ac_optarg ;;
822
823   -infodir | --infodir | --infodi | --infod | --info | --inf)
824     ac_prev=infodir ;;
825   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
826     infodir=$ac_optarg ;;
827
828   -libdir | --libdir | --libdi | --libd)
829     ac_prev=libdir ;;
830   -libdir=* | --libdir=* | --libdi=* | --libd=*)
831     libdir=$ac_optarg ;;
832
833   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
834   | --libexe | --libex | --libe)
835     ac_prev=libexecdir ;;
836   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
837   | --libexe=* | --libex=* | --libe=*)
838     libexecdir=$ac_optarg ;;
839
840   -localedir | --localedir | --localedi | --localed | --locale)
841     ac_prev=localedir ;;
842   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
843     localedir=$ac_optarg ;;
844
845   -localstatedir | --localstatedir | --localstatedi | --localstated \
846   | --localstate | --localstat | --localsta | --localst | --locals)
847     ac_prev=localstatedir ;;
848   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
849   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
850     localstatedir=$ac_optarg ;;
851
852   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
853     ac_prev=mandir ;;
854   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
855     mandir=$ac_optarg ;;
856
857   -nfp | --nfp | --nf)
858     # Obsolete; use --without-fp.
859     with_fp=no ;;
860
861   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
862   | --no-cr | --no-c | -n)
863     no_create=yes ;;
864
865   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
866   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
867     no_recursion=yes ;;
868
869   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
870   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
871   | --oldin | --oldi | --old | --ol | --o)
872     ac_prev=oldincludedir ;;
873   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
874   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
875   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
876     oldincludedir=$ac_optarg ;;
877
878   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
879     ac_prev=prefix ;;
880   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
881     prefix=$ac_optarg ;;
882
883   -program-prefix | --program-prefix | --program-prefi | --program-pref \
884   | --program-pre | --program-pr | --program-p)
885     ac_prev=program_prefix ;;
886   -program-prefix=* | --program-prefix=* | --program-prefi=* \
887   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
888     program_prefix=$ac_optarg ;;
889
890   -program-suffix | --program-suffix | --program-suffi | --program-suff \
891   | --program-suf | --program-su | --program-s)
892     ac_prev=program_suffix ;;
893   -program-suffix=* | --program-suffix=* | --program-suffi=* \
894   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
895     program_suffix=$ac_optarg ;;
896
897   -program-transform-name | --program-transform-name \
898   | --program-transform-nam | --program-transform-na \
899   | --program-transform-n | --program-transform- \
900   | --program-transform | --program-transfor \
901   | --program-transfo | --program-transf \
902   | --program-trans | --program-tran \
903   | --progr-tra | --program-tr | --program-t)
904     ac_prev=program_transform_name ;;
905   -program-transform-name=* | --program-transform-name=* \
906   | --program-transform-nam=* | --program-transform-na=* \
907   | --program-transform-n=* | --program-transform-=* \
908   | --program-transform=* | --program-transfor=* \
909   | --program-transfo=* | --program-transf=* \
910   | --program-trans=* | --program-tran=* \
911   | --progr-tra=* | --program-tr=* | --program-t=*)
912     program_transform_name=$ac_optarg ;;
913
914   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
915     ac_prev=pdfdir ;;
916   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
917     pdfdir=$ac_optarg ;;
918
919   -psdir | --psdir | --psdi | --psd | --ps)
920     ac_prev=psdir ;;
921   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
922     psdir=$ac_optarg ;;
923
924   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
925   | -silent | --silent | --silen | --sile | --sil)
926     silent=yes ;;
927
928   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
929     ac_prev=sbindir ;;
930   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
931   | --sbi=* | --sb=*)
932     sbindir=$ac_optarg ;;
933
934   -sharedstatedir | --sharedstatedir | --sharedstatedi \
935   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
936   | --sharedst | --shareds | --shared | --share | --shar \
937   | --sha | --sh)
938     ac_prev=sharedstatedir ;;
939   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
940   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
941   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
942   | --sha=* | --sh=*)
943     sharedstatedir=$ac_optarg ;;
944
945   -site | --site | --sit)
946     ac_prev=site ;;
947   -site=* | --site=* | --sit=*)
948     site=$ac_optarg ;;
949
950   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
951     ac_prev=srcdir ;;
952   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
953     srcdir=$ac_optarg ;;
954
955   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
956   | --syscon | --sysco | --sysc | --sys | --sy)
957     ac_prev=sysconfdir ;;
958   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
959   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
960     sysconfdir=$ac_optarg ;;
961
962   -target | --target | --targe | --targ | --tar | --ta | --t)
963     ac_prev=target_alias ;;
964   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
965     target_alias=$ac_optarg ;;
966
967   -v | -verbose | --verbose | --verbos | --verbo | --verb)
968     verbose=yes ;;
969
970   -version | --version | --versio | --versi | --vers | -V)
971     ac_init_version=: ;;
972
973   -with-* | --with-*)
974     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
975     # Reject names that are not valid shell variable names.
976     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
977       { echo "$as_me: error: invalid package name: $ac_package" >&2
978    { (exit 1); exit 1; }; }
979     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
980     eval with_$ac_package=\$ac_optarg ;;
981
982   -without-* | --without-*)
983     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
984     # Reject names that are not valid shell variable names.
985     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
986       { echo "$as_me: error: invalid package name: $ac_package" >&2
987    { (exit 1); exit 1; }; }
988     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
989     eval with_$ac_package=no ;;
990
991   --x)
992     # Obsolete; use --with-x.
993     with_x=yes ;;
994
995   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
996   | --x-incl | --x-inc | --x-in | --x-i)
997     ac_prev=x_includes ;;
998   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
999   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1000     x_includes=$ac_optarg ;;
1001
1002   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1003   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1004     ac_prev=x_libraries ;;
1005   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1006   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1007     x_libraries=$ac_optarg ;;
1008
1009   -*) { echo "$as_me: error: unrecognized option: $ac_option
1010 Try \`$0 --help' for more information." >&2
1011    { (exit 1); exit 1; }; }
1012     ;;
1013
1014   *=*)
1015     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1016     # Reject names that are not valid shell variable names.
1017     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1018       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1019    { (exit 1); exit 1; }; }
1020     eval $ac_envvar=\$ac_optarg
1021     export $ac_envvar ;;
1022
1023   *)
1024     # FIXME: should be removed in autoconf 3.0.
1025     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1026     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1027       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1028     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1029     ;;
1030
1031   esac
1032 done
1033
1034 if test -n "$ac_prev"; then
1035   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1036   { echo "$as_me: error: missing argument to $ac_option" >&2
1037    { (exit 1); exit 1; }; }
1038 fi
1039
1040 # Be sure to have absolute directory names.
1041 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1042                 datadir sysconfdir sharedstatedir localstatedir includedir \
1043                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1044                 libdir localedir mandir
1045 do
1046   eval ac_val=\$$ac_var
1047   case $ac_val in
1048     [\\/$]* | ?:[\\/]* )  continue;;
1049     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1050   esac
1051   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1052    { (exit 1); exit 1; }; }
1053 done
1054
1055 # There might be people who depend on the old broken behavior: `$host'
1056 # used to hold the argument of --host etc.
1057 # FIXME: To remove some day.
1058 build=$build_alias
1059 host=$host_alias
1060 target=$target_alias
1061
1062 # FIXME: To remove some day.
1063 if test "x$host_alias" != x; then
1064   if test "x$build_alias" = x; then
1065     cross_compiling=maybe
1066     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1067     If a cross compiler is detected then cross compile mode will be used." >&2
1068   elif test "x$build_alias" != "x$host_alias"; then
1069     cross_compiling=yes
1070   fi
1071 fi
1072
1073 ac_tool_prefix=
1074 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1075
1076 test "$silent" = yes && exec 6>/dev/null
1077
1078
1079 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1080 ac_ls_di=`ls -di .` &&
1081 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1082   { echo "$as_me: error: Working directory cannot be determined" >&2
1083    { (exit 1); exit 1; }; }
1084 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1085   { echo "$as_me: error: pwd does not report name of working directory" >&2
1086    { (exit 1); exit 1; }; }
1087
1088
1089 # Find the source files, if location was not specified.
1090 if test -z "$srcdir"; then
1091   ac_srcdir_defaulted=yes
1092   # Try the directory containing this script, then the parent directory.
1093   ac_confdir=`$as_dirname -- "$0" ||
1094 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1095          X"$0" : 'X\(//\)[^/]' \| \
1096          X"$0" : 'X\(//\)$' \| \
1097          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1098 echo X"$0" |
1099     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1100             s//\1/
1101             q
1102           }
1103           /^X\(\/\/\)[^/].*/{
1104             s//\1/
1105             q
1106           }
1107           /^X\(\/\/\)$/{
1108             s//\1/
1109             q
1110           }
1111           /^X\(\/\).*/{
1112             s//\1/
1113             q
1114           }
1115           s/.*/./; q'`
1116   srcdir=$ac_confdir
1117   if test ! -r "$srcdir/$ac_unique_file"; then
1118     srcdir=..
1119   fi
1120 else
1121   ac_srcdir_defaulted=no
1122 fi
1123 if test ! -r "$srcdir/$ac_unique_file"; then
1124   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1125   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1126    { (exit 1); exit 1; }; }
1127 fi
1128 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1129 ac_abs_confdir=`(
1130         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1131    { (exit 1); exit 1; }; }
1132         pwd)`
1133 # When building in place, set srcdir=.
1134 if test "$ac_abs_confdir" = "$ac_pwd"; then
1135   srcdir=.
1136 fi
1137 # Remove unnecessary trailing slashes from srcdir.
1138 # Double slashes in file names in object file debugging info
1139 # mess up M-x gdb in Emacs.
1140 case $srcdir in
1141 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1142 esac
1143 for ac_var in $ac_precious_vars; do
1144   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1145   eval ac_env_${ac_var}_value=\$${ac_var}
1146   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1147   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1148 done
1149
1150 #
1151 # Report the --help message.
1152 #
1153 if test "$ac_init_help" = "long"; then
1154   # Omit some internal or obsolete options to make the list less imposing.
1155   # This message is too long to be a string in the A/UX 3.1 sh.
1156   cat <<_ACEOF
1157 \`configure' configures chise-base 0.25 to adapt to many kinds of systems.
1158
1159 Usage: $0 [OPTION]... [VAR=VALUE]...
1160
1161 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1162 VAR=VALUE.  See below for descriptions of some of the useful variables.
1163
1164 Defaults for the options are specified in brackets.
1165
1166 Configuration:
1167   -h, --help              display this help and exit
1168       --help=short        display options specific to this package
1169       --help=recursive    display the short help of all the included packages
1170   -V, --version           display version information and exit
1171   -q, --quiet, --silent   do not print \`checking...' messages
1172       --cache-file=FILE   cache test results in FILE [disabled]
1173   -C, --config-cache      alias for \`--cache-file=config.cache'
1174   -n, --no-create         do not create output files
1175       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1176
1177 Installation directories:
1178   --prefix=PREFIX         install architecture-independent files in PREFIX
1179                           [$ac_default_prefix]
1180   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1181                           [PREFIX]
1182
1183 By default, \`make install' will install all the files in
1184 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1185 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1186 for instance \`--prefix=\$HOME'.
1187
1188 For better control, use the options below.
1189
1190 Fine tuning of the installation directories:
1191   --bindir=DIR           user executables [EPREFIX/bin]
1192   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1193   --libexecdir=DIR       program executables [EPREFIX/libexec]
1194   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1195   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1196   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1197   --libdir=DIR           object code libraries [EPREFIX/lib]
1198   --includedir=DIR       C header files [PREFIX/include]
1199   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1200   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1201   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1202   --infodir=DIR          info documentation [DATAROOTDIR/info]
1203   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1204   --mandir=DIR           man documentation [DATAROOTDIR/man]
1205   --docdir=DIR           documentation root [DATAROOTDIR/doc/chise-base]
1206   --htmldir=DIR          html documentation [DOCDIR]
1207   --dvidir=DIR           dvi documentation [DOCDIR]
1208   --pdfdir=DIR           pdf documentation [DOCDIR]
1209   --psdir=DIR            ps documentation [DOCDIR]
1210 _ACEOF
1211
1212   cat <<\_ACEOF
1213
1214 System types:
1215   --build=BUILD     configure for building on BUILD [guessed]
1216   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1217   --target=TARGET   configure for building compilers for TARGET [HOST]
1218 _ACEOF
1219 fi
1220
1221 if test -n "$ac_init_help"; then
1222   case $ac_init_help in
1223      short | recursive ) echo "Configuration of chise-base 0.25:";;
1224    esac
1225   cat <<\_ACEOF
1226
1227 Optional Packages:
1228   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1229   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1230 --with-site-includes=PATH List of directories to search first for header files
1231
1232 --with-site-libraries=PATH List of directories to search first for libraries
1233
1234 --with-canna          Support the Canna input method
1235
1236
1237 Some influential environment variables:
1238   CC          C compiler command
1239   CFLAGS      C compiler flags
1240   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1241               nonstandard directory <lib dir>
1242   LIBS        libraries to pass to the linker, e.g. -l<library>
1243   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1244               you have headers in a nonstandard directory <include dir>
1245
1246 Use these variables to override the choices made by `configure' or to help
1247 it to find libraries and programs with nonstandard names/locations.
1248
1249 Report bugs to <chise-en@m17n.org>.
1250 _ACEOF
1251 ac_status=$?
1252 fi
1253
1254 if test "$ac_init_help" = "recursive"; then
1255   # If there are subdirs, report their specific --help.
1256   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1257     test -d "$ac_dir" || continue
1258     ac_builddir=.
1259
1260 case "$ac_dir" in
1261 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1262 *)
1263   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1264   # A ".." for each directory in $ac_dir_suffix.
1265   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1266   case $ac_top_builddir_sub in
1267   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1268   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1269   esac ;;
1270 esac
1271 ac_abs_top_builddir=$ac_pwd
1272 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1273 # for backward compatibility:
1274 ac_top_builddir=$ac_top_build_prefix
1275
1276 case $srcdir in
1277   .)  # We are building in place.
1278     ac_srcdir=.
1279     ac_top_srcdir=$ac_top_builddir_sub
1280     ac_abs_top_srcdir=$ac_pwd ;;
1281   [\\/]* | ?:[\\/]* )  # Absolute name.
1282     ac_srcdir=$srcdir$ac_dir_suffix;
1283     ac_top_srcdir=$srcdir
1284     ac_abs_top_srcdir=$srcdir ;;
1285   *) # Relative name.
1286     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1287     ac_top_srcdir=$ac_top_build_prefix$srcdir
1288     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1289 esac
1290 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1291
1292     cd "$ac_dir" || { ac_status=$?; continue; }
1293     # Check for guested configure.
1294     if test -f "$ac_srcdir/configure.gnu"; then
1295       echo &&
1296       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1297     elif test -f "$ac_srcdir/configure"; then
1298       echo &&
1299       $SHELL "$ac_srcdir/configure" --help=recursive
1300     else
1301       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1302     fi || ac_status=$?
1303     cd "$ac_pwd" || { ac_status=$?; break; }
1304   done
1305 fi
1306
1307 test -n "$ac_init_help" && exit $ac_status
1308 if $ac_init_version; then
1309   cat <<\_ACEOF
1310 chise-base configure 0.25
1311 generated by GNU Autoconf 2.61
1312
1313 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1314 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1315 This configure script is free software; the Free Software Foundation
1316 gives unlimited permission to copy, distribute and modify it.
1317 _ACEOF
1318   exit
1319 fi
1320 cat >config.log <<_ACEOF
1321 This file contains any messages produced by compilers while
1322 running configure, to aid debugging if configure makes a mistake.
1323
1324 It was created by chise-base $as_me 0.25, which was
1325 generated by GNU Autoconf 2.61.  Invocation command line was
1326
1327   $ $0 $@
1328
1329 _ACEOF
1330 exec 5>>config.log
1331 {
1332 cat <<_ASUNAME
1333 ## --------- ##
1334 ## Platform. ##
1335 ## --------- ##
1336
1337 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1338 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1339 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1340 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1341 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1342
1343 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1344 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1345
1346 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1347 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1348 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1349 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1350 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1351 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1352 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1353
1354 _ASUNAME
1355
1356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1357 for as_dir in $PATH
1358 do
1359   IFS=$as_save_IFS
1360   test -z "$as_dir" && as_dir=.
1361   echo "PATH: $as_dir"
1362 done
1363 IFS=$as_save_IFS
1364
1365 } >&5
1366
1367 cat >&5 <<_ACEOF
1368
1369
1370 ## ----------- ##
1371 ## Core tests. ##
1372 ## ----------- ##
1373
1374 _ACEOF
1375
1376
1377 # Keep a trace of the command line.
1378 # Strip out --no-create and --no-recursion so they do not pile up.
1379 # Strip out --silent because we don't want to record it for future runs.
1380 # Also quote any args containing shell meta-characters.
1381 # Make two passes to allow for proper duplicate-argument suppression.
1382 ac_configure_args=
1383 ac_configure_args0=
1384 ac_configure_args1=
1385 ac_must_keep_next=false
1386 for ac_pass in 1 2
1387 do
1388   for ac_arg
1389   do
1390     case $ac_arg in
1391     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1392     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1393     | -silent | --silent | --silen | --sile | --sil)
1394       continue ;;
1395     *\'*)
1396       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1397     esac
1398     case $ac_pass in
1399     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1400     2)
1401       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1402       if test $ac_must_keep_next = true; then
1403         ac_must_keep_next=false # Got value, back to normal.
1404       else
1405         case $ac_arg in
1406           *=* | --config-cache | -C | -disable-* | --disable-* \
1407           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1408           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1409           | -with-* | --with-* | -without-* | --without-* | --x)
1410             case "$ac_configure_args0 " in
1411               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1412             esac
1413             ;;
1414           -* ) ac_must_keep_next=true ;;
1415         esac
1416       fi
1417       ac_configure_args="$ac_configure_args '$ac_arg'"
1418       ;;
1419     esac
1420   done
1421 done
1422 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1423 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1424
1425 # When interrupted or exit'd, cleanup temporary files, and complete
1426 # config.log.  We remove comments because anyway the quotes in there
1427 # would cause problems or look ugly.
1428 # WARNING: Use '\'' to represent an apostrophe within the trap.
1429 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1430 trap 'exit_status=$?
1431   # Save into config.log some information that might help in debugging.
1432   {
1433     echo
1434
1435     cat <<\_ASBOX
1436 ## ---------------- ##
1437 ## Cache variables. ##
1438 ## ---------------- ##
1439 _ASBOX
1440     echo
1441     # The following way of writing the cache mishandles newlines in values,
1442 (
1443   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1444     eval ac_val=\$$ac_var
1445     case $ac_val in #(
1446     *${as_nl}*)
1447       case $ac_var in #(
1448       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1449 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1450       esac
1451       case $ac_var in #(
1452       _ | IFS | as_nl) ;; #(
1453       *) $as_unset $ac_var ;;
1454       esac ;;
1455     esac
1456   done
1457   (set) 2>&1 |
1458     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1459     *${as_nl}ac_space=\ *)
1460       sed -n \
1461         "s/'\''/'\''\\\\'\'''\''/g;
1462           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1463       ;; #(
1464     *)
1465       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1466       ;;
1467     esac |
1468     sort
1469 )
1470     echo
1471
1472     cat <<\_ASBOX
1473 ## ----------------- ##
1474 ## Output variables. ##
1475 ## ----------------- ##
1476 _ASBOX
1477     echo
1478     for ac_var in $ac_subst_vars
1479     do
1480       eval ac_val=\$$ac_var
1481       case $ac_val in
1482       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1483       esac
1484       echo "$ac_var='\''$ac_val'\''"
1485     done | sort
1486     echo
1487
1488     if test -n "$ac_subst_files"; then
1489       cat <<\_ASBOX
1490 ## ------------------- ##
1491 ## File substitutions. ##
1492 ## ------------------- ##
1493 _ASBOX
1494       echo
1495       for ac_var in $ac_subst_files
1496       do
1497         eval ac_val=\$$ac_var
1498         case $ac_val in
1499         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1500         esac
1501         echo "$ac_var='\''$ac_val'\''"
1502       done | sort
1503       echo
1504     fi
1505
1506     if test -s confdefs.h; then
1507       cat <<\_ASBOX
1508 ## ----------- ##
1509 ## confdefs.h. ##
1510 ## ----------- ##
1511 _ASBOX
1512       echo
1513       cat confdefs.h
1514       echo
1515     fi
1516     test "$ac_signal" != 0 &&
1517       echo "$as_me: caught signal $ac_signal"
1518     echo "$as_me: exit $exit_status"
1519   } >&5
1520   rm -f core *.core core.conftest.* &&
1521     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1522     exit $exit_status
1523 ' 0
1524 for ac_signal in 1 2 13 15; do
1525   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1526 done
1527 ac_signal=0
1528
1529 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1530 rm -f -r conftest* confdefs.h
1531
1532 # Predefined preprocessor variables.
1533
1534 cat >>confdefs.h <<_ACEOF
1535 #define PACKAGE_NAME "$PACKAGE_NAME"
1536 _ACEOF
1537
1538
1539 cat >>confdefs.h <<_ACEOF
1540 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1541 _ACEOF
1542
1543
1544 cat >>confdefs.h <<_ACEOF
1545 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1546 _ACEOF
1547
1548
1549 cat >>confdefs.h <<_ACEOF
1550 #define PACKAGE_STRING "$PACKAGE_STRING"
1551 _ACEOF
1552
1553
1554 cat >>confdefs.h <<_ACEOF
1555 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1556 _ACEOF
1557
1558
1559 # Let the site file select an alternate cache file if it wants to.
1560 # Prefer explicitly selected file to automatically selected ones.
1561 if test -n "$CONFIG_SITE"; then
1562   set x "$CONFIG_SITE"
1563 elif test "x$prefix" != xNONE; then
1564   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1565 else
1566   set x "$ac_default_prefix/share/config.site" \
1567         "$ac_default_prefix/etc/config.site"
1568 fi
1569 shift
1570 for ac_site_file
1571 do
1572   if test -r "$ac_site_file"; then
1573     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1574 echo "$as_me: loading site script $ac_site_file" >&6;}
1575     sed 's/^/| /' "$ac_site_file" >&5
1576     . "$ac_site_file"
1577   fi
1578 done
1579
1580 if test -r "$cache_file"; then
1581   # Some versions of bash will fail to source /dev/null (special
1582   # files actually), so we avoid doing that.
1583   if test -f "$cache_file"; then
1584     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1585 echo "$as_me: loading cache $cache_file" >&6;}
1586     case $cache_file in
1587       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1588       *)                      . "./$cache_file";;
1589     esac
1590   fi
1591 else
1592   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1593 echo "$as_me: creating cache $cache_file" >&6;}
1594   >$cache_file
1595 fi
1596
1597 # Check that the precious variables saved in the cache have kept the same
1598 # value.
1599 ac_cache_corrupted=false
1600 for ac_var in $ac_precious_vars; do
1601   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1602   eval ac_new_set=\$ac_env_${ac_var}_set
1603   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1604   eval ac_new_val=\$ac_env_${ac_var}_value
1605   case $ac_old_set,$ac_new_set in
1606     set,)
1607       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1608 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1609       ac_cache_corrupted=: ;;
1610     ,set)
1611       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1612 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1613       ac_cache_corrupted=: ;;
1614     ,);;
1615     *)
1616       if test "x$ac_old_val" != "x$ac_new_val"; then
1617         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1618 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1619         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1620 echo "$as_me:   former value:  $ac_old_val" >&2;}
1621         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1622 echo "$as_me:   current value: $ac_new_val" >&2;}
1623         ac_cache_corrupted=:
1624       fi;;
1625   esac
1626   # Pass precious variables to config.status.
1627   if test "$ac_new_set" = set; then
1628     case $ac_new_val in
1629     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1630     *) ac_arg=$ac_var=$ac_new_val ;;
1631     esac
1632     case " $ac_configure_args " in
1633       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1634       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1635     esac
1636   fi
1637 done
1638 if $ac_cache_corrupted; then
1639   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1640 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1641   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1642 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1643    { (exit 1); exit 1; }; }
1644 fi
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670 ac_ext=c
1671 ac_cpp='$CPP $CPPFLAGS'
1672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1675
1676
1677
1678 ac_aux_dir=
1679 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1680   if test -f "$ac_dir/install-sh"; then
1681     ac_aux_dir=$ac_dir
1682     ac_install_sh="$ac_aux_dir/install-sh -c"
1683     break
1684   elif test -f "$ac_dir/install.sh"; then
1685     ac_aux_dir=$ac_dir
1686     ac_install_sh="$ac_aux_dir/install.sh -c"
1687     break
1688   elif test -f "$ac_dir/shtool"; then
1689     ac_aux_dir=$ac_dir
1690     ac_install_sh="$ac_aux_dir/shtool install -c"
1691     break
1692   fi
1693 done
1694 if test -z "$ac_aux_dir"; then
1695   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1696 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1697    { (exit 1); exit 1; }; }
1698 fi
1699
1700 # These three variables are undocumented and unsupported,
1701 # and are intended to be withdrawn in a future Autoconf release.
1702 # They can cause serious problems if a builder's source tree is in a directory
1703 # whose full name contains unusual characters.
1704 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1705 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1706 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1707
1708
1709 # Make sure we can run config.sub.
1710 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1711   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1712 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1713    { (exit 1); exit 1; }; }
1714
1715 { echo "$as_me:$LINENO: checking build system type" >&5
1716 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1717 if test "${ac_cv_build+set}" = set; then
1718   echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720   ac_build_alias=$build_alias
1721 test "x$ac_build_alias" = x &&
1722   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1723 test "x$ac_build_alias" = x &&
1724   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1725 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1726    { (exit 1); exit 1; }; }
1727 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1728   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1729 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1730    { (exit 1); exit 1; }; }
1731
1732 fi
1733 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1734 echo "${ECHO_T}$ac_cv_build" >&6; }
1735 case $ac_cv_build in
1736 *-*-*) ;;
1737 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1738 echo "$as_me: error: invalid value of canonical build" >&2;}
1739    { (exit 1); exit 1; }; };;
1740 esac
1741 build=$ac_cv_build
1742 ac_save_IFS=$IFS; IFS='-'
1743 set x $ac_cv_build
1744 shift
1745 build_cpu=$1
1746 build_vendor=$2
1747 shift; shift
1748 # Remember, the first character of IFS is used to create $*,
1749 # except with old shells:
1750 build_os=$*
1751 IFS=$ac_save_IFS
1752 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1753
1754
1755 { echo "$as_me:$LINENO: checking host system type" >&5
1756 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1757 if test "${ac_cv_host+set}" = set; then
1758   echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760   if test "x$host_alias" = x; then
1761   ac_cv_host=$ac_cv_build
1762 else
1763   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1764     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1765 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1766    { (exit 1); exit 1; }; }
1767 fi
1768
1769 fi
1770 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1771 echo "${ECHO_T}$ac_cv_host" >&6; }
1772 case $ac_cv_host in
1773 *-*-*) ;;
1774 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1775 echo "$as_me: error: invalid value of canonical host" >&2;}
1776    { (exit 1); exit 1; }; };;
1777 esac
1778 host=$ac_cv_host
1779 ac_save_IFS=$IFS; IFS='-'
1780 set x $ac_cv_host
1781 shift
1782 host_cpu=$1
1783 host_vendor=$2
1784 shift; shift
1785 # Remember, the first character of IFS is used to create $*,
1786 # except with old shells:
1787 host_os=$*
1788 IFS=$ac_save_IFS
1789 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1790
1791
1792 { echo "$as_me:$LINENO: checking target system type" >&5
1793 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1794 if test "${ac_cv_target+set}" = set; then
1795   echo $ECHO_N "(cached) $ECHO_C" >&6
1796 else
1797   if test "x$target_alias" = x; then
1798   ac_cv_target=$ac_cv_host
1799 else
1800   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1801     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1802 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1803    { (exit 1); exit 1; }; }
1804 fi
1805
1806 fi
1807 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1808 echo "${ECHO_T}$ac_cv_target" >&6; }
1809 case $ac_cv_target in
1810 *-*-*) ;;
1811 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1812 echo "$as_me: error: invalid value of canonical target" >&2;}
1813    { (exit 1); exit 1; }; };;
1814 esac
1815 target=$ac_cv_target
1816 ac_save_IFS=$IFS; IFS='-'
1817 set x $ac_cv_target
1818 shift
1819 target_cpu=$1
1820 target_vendor=$2
1821 shift; shift
1822 # Remember, the first character of IFS is used to create $*,
1823 # except with old shells:
1824 target_os=$*
1825 IFS=$ac_save_IFS
1826 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1827
1828
1829 # The aliases save the names the user supplied, while $host etc.
1830 # will get canonicalized.
1831 test -n "$target_alias" &&
1832   test "$program_prefix$program_suffix$program_transform_name" = \
1833     NONENONEs,x,x, &&
1834   program_prefix=${target_alias}-
1835
1836 # Checks for programs.
1837 # AC_PROG_CC
1838 # AC_PROG_LIBTOOL
1839 #  AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
1840 #       /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850 if test -f CVS/Root; then
1851         cvs_root=`cat CVS/Root`
1852         lemi_cvs_root=`cat CVS/Root|sed 's/chise/root/'`
1853 else
1854         cvs_root=':pserver:anonymous@cvs.m17n.org:/cvs/chise'
1855         lemi_cvs_root=':pserver:anonymous@cvs.m17n.org:/cvs/root'
1856 fi
1857
1858 xemacs_configure_args=`echo $ac_configure_args \
1859                         | sed 's/--with-site-includes/--site-includes/' \
1860                         | sed 's/--with-site-libraries/--site-libraries/'`
1861
1862 # Settings for optional paths
1863
1864 # Check whether --with-site_includes was given.
1865 if test "${with_site_includes+set}" = set; then
1866   withval=$with_site_includes; #xemacs_site_includes="$with_site_includes"
1867
1868 else
1869   if test -d /sw/include; then
1870         xemacs_site_includes="/sw/include"
1871         xemacs_opts="--with-dialogs=athena --with-widgets=athena --with-athena=3d"
1872
1873         if test -f /sw/include/db3/db.h; then
1874                 xemacs_site_includes="$xemacs_site_includes:/sw/include/db3"
1875         elif test -f /sw/include/db4/db.h; then
1876                 xemacs_site_includes="$xemacs_site_includes:/sw/include/db4"
1877         fi
1878         if test x"$with_canna" != x"no"; then
1879            if test -d /sw/include/canna; then
1880                 xemacs_opts="$xemacs_opts --with-canna"
1881            fi
1882         fi
1883 fi
1884
1885 fi
1886
1887
1888
1889 # Check whether --with-site_libraries was given.
1890 if test "${with_site_libraries+set}" = set; then
1891   withval=$with_site_libraries; #xemacs_site_libraries="$with_site_libraries"
1892
1893 else
1894   if test -d /sw/include; then
1895         xemacs_site_libraries="/sw/lib"
1896 fi
1897
1898 fi
1899
1900
1901
1902 # Check whether --with-canna was given.
1903 if test "${with_canna+set}" = set; then
1904   withval=$with_canna; #xemacs_opts="$xemacs_opts --with-canna"
1905
1906 fi
1907
1908
1909 # Checks for libraries.
1910 if test x"$xemacs_site_includes" != x""; then
1911         xemacs_opts="$xemacs_opts --site-includes=$xemacs_site_includes"
1912 fi
1913
1914 if test x"$xemacs_site_libraries" != x""; then
1915         xemacs_opts="$xemacs_opts --site-libraries=$xemacs_site_libraries"
1916 fi
1917
1918 if test x"$with_canna" != x"no"; then
1919    ac_ext=c
1920 ac_cpp='$CPP $CPPFLAGS'
1921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1924 if test -n "$ac_tool_prefix"; then
1925   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1926 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1929 if test "${ac_cv_prog_CC+set}" = set; then
1930   echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932   if test -n "$CC"; then
1933   ac_cv_prog_CC="$CC" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1937 do
1938   IFS=$as_save_IFS
1939   test -z "$as_dir" && as_dir=.
1940   for ac_exec_ext in '' $ac_executable_extensions; do
1941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1942     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944     break 2
1945   fi
1946 done
1947 done
1948 IFS=$as_save_IFS
1949
1950 fi
1951 fi
1952 CC=$ac_cv_prog_CC
1953 if test -n "$CC"; then
1954   { echo "$as_me:$LINENO: result: $CC" >&5
1955 echo "${ECHO_T}$CC" >&6; }
1956 else
1957   { echo "$as_me:$LINENO: result: no" >&5
1958 echo "${ECHO_T}no" >&6; }
1959 fi
1960
1961
1962 fi
1963 if test -z "$ac_cv_prog_CC"; then
1964   ac_ct_CC=$CC
1965   # Extract the first word of "gcc", so it can be a program name with args.
1966 set dummy gcc; ac_word=$2
1967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1969 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1970   echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972   if test -n "$ac_ct_CC"; then
1973   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1974 else
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1977 do
1978   IFS=$as_save_IFS
1979   test -z "$as_dir" && as_dir=.
1980   for ac_exec_ext in '' $ac_executable_extensions; do
1981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1982     ac_cv_prog_ac_ct_CC="gcc"
1983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984     break 2
1985   fi
1986 done
1987 done
1988 IFS=$as_save_IFS
1989
1990 fi
1991 fi
1992 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1993 if test -n "$ac_ct_CC"; then
1994   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1995 echo "${ECHO_T}$ac_ct_CC" >&6; }
1996 else
1997   { echo "$as_me:$LINENO: result: no" >&5
1998 echo "${ECHO_T}no" >&6; }
1999 fi
2000
2001   if test "x$ac_ct_CC" = x; then
2002     CC=""
2003   else
2004     case $cross_compiling:$ac_tool_warned in
2005 yes:)
2006 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2007 whose name does not start with the host triplet.  If you think this
2008 configuration is useful to you, please write to autoconf@gnu.org." >&5
2009 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2010 whose name does not start with the host triplet.  If you think this
2011 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2012 ac_tool_warned=yes ;;
2013 esac
2014     CC=$ac_ct_CC
2015   fi
2016 else
2017   CC="$ac_cv_prog_CC"
2018 fi
2019
2020 if test -z "$CC"; then
2021           if test -n "$ac_tool_prefix"; then
2022     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2023 set dummy ${ac_tool_prefix}cc; ac_word=$2
2024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026 if test "${ac_cv_prog_CC+set}" = set; then
2027   echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029   if test -n "$CC"; then
2030   ac_cv_prog_CC="$CC" # Let the user override the test.
2031 else
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2034 do
2035   IFS=$as_save_IFS
2036   test -z "$as_dir" && as_dir=.
2037   for ac_exec_ext in '' $ac_executable_extensions; do
2038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2039     ac_cv_prog_CC="${ac_tool_prefix}cc"
2040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041     break 2
2042   fi
2043 done
2044 done
2045 IFS=$as_save_IFS
2046
2047 fi
2048 fi
2049 CC=$ac_cv_prog_CC
2050 if test -n "$CC"; then
2051   { echo "$as_me:$LINENO: result: $CC" >&5
2052 echo "${ECHO_T}$CC" >&6; }
2053 else
2054   { echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6; }
2056 fi
2057
2058
2059   fi
2060 fi
2061 if test -z "$CC"; then
2062   # Extract the first word of "cc", so it can be a program name with args.
2063 set dummy cc; ac_word=$2
2064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2066 if test "${ac_cv_prog_CC+set}" = set; then
2067   echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069   if test -n "$CC"; then
2070   ac_cv_prog_CC="$CC" # Let the user override the test.
2071 else
2072   ac_prog_rejected=no
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2075 do
2076   IFS=$as_save_IFS
2077   test -z "$as_dir" && as_dir=.
2078   for ac_exec_ext in '' $ac_executable_extensions; do
2079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2080     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2081        ac_prog_rejected=yes
2082        continue
2083      fi
2084     ac_cv_prog_CC="cc"
2085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086     break 2
2087   fi
2088 done
2089 done
2090 IFS=$as_save_IFS
2091
2092 if test $ac_prog_rejected = yes; then
2093   # We found a bogon in the path, so make sure we never use it.
2094   set dummy $ac_cv_prog_CC
2095   shift
2096   if test $# != 0; then
2097     # We chose a different compiler from the bogus one.
2098     # However, it has the same basename, so the bogon will be chosen
2099     # first if we set CC to just the basename; use the full file name.
2100     shift
2101     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2102   fi
2103 fi
2104 fi
2105 fi
2106 CC=$ac_cv_prog_CC
2107 if test -n "$CC"; then
2108   { echo "$as_me:$LINENO: result: $CC" >&5
2109 echo "${ECHO_T}$CC" >&6; }
2110 else
2111   { echo "$as_me:$LINENO: result: no" >&5
2112 echo "${ECHO_T}no" >&6; }
2113 fi
2114
2115
2116 fi
2117 if test -z "$CC"; then
2118   if test -n "$ac_tool_prefix"; then
2119   for ac_prog in cl.exe
2120   do
2121     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2125 if test "${ac_cv_prog_CC+set}" = set; then
2126   echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128   if test -n "$CC"; then
2129   ac_cv_prog_CC="$CC" # Let the user override the test.
2130 else
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2133 do
2134   IFS=$as_save_IFS
2135   test -z "$as_dir" && as_dir=.
2136   for ac_exec_ext in '' $ac_executable_extensions; do
2137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2138     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140     break 2
2141   fi
2142 done
2143 done
2144 IFS=$as_save_IFS
2145
2146 fi
2147 fi
2148 CC=$ac_cv_prog_CC
2149 if test -n "$CC"; then
2150   { echo "$as_me:$LINENO: result: $CC" >&5
2151 echo "${ECHO_T}$CC" >&6; }
2152 else
2153   { echo "$as_me:$LINENO: result: no" >&5
2154 echo "${ECHO_T}no" >&6; }
2155 fi
2156
2157
2158     test -n "$CC" && break
2159   done
2160 fi
2161 if test -z "$CC"; then
2162   ac_ct_CC=$CC
2163   for ac_prog in cl.exe
2164 do
2165   # Extract the first word of "$ac_prog", so it can be a program name with args.
2166 set dummy $ac_prog; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   if test -n "$ac_ct_CC"; then
2173   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2174 else
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2177 do
2178   IFS=$as_save_IFS
2179   test -z "$as_dir" && as_dir=.
2180   for ac_exec_ext in '' $ac_executable_extensions; do
2181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182     ac_cv_prog_ac_ct_CC="$ac_prog"
2183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184     break 2
2185   fi
2186 done
2187 done
2188 IFS=$as_save_IFS
2189
2190 fi
2191 fi
2192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2193 if test -n "$ac_ct_CC"; then
2194   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2195 echo "${ECHO_T}$ac_ct_CC" >&6; }
2196 else
2197   { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2199 fi
2200
2201
2202   test -n "$ac_ct_CC" && break
2203 done
2204
2205   if test "x$ac_ct_CC" = x; then
2206     CC=""
2207   else
2208     case $cross_compiling:$ac_tool_warned in
2209 yes:)
2210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2211 whose name does not start with the host triplet.  If you think this
2212 configuration is useful to you, please write to autoconf@gnu.org." >&5
2213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2214 whose name does not start with the host triplet.  If you think this
2215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2216 ac_tool_warned=yes ;;
2217 esac
2218     CC=$ac_ct_CC
2219   fi
2220 fi
2221
2222 fi
2223
2224
2225 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: no acceptable C compiler found in \$PATH
2228 See \`config.log' for more details." >&2;}
2229    { (exit 1); exit 1; }; }
2230
2231 # Provide some information about the compiler.
2232 echo "$as_me:$LINENO: checking for C compiler version" >&5
2233 ac_compiler=`set X $ac_compile; echo $2`
2234 { (ac_try="$ac_compiler --version >&5"
2235 case "(($ac_try" in
2236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237   *) ac_try_echo=$ac_try;;
2238 esac
2239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2240   (eval "$ac_compiler --version >&5") 2>&5
2241   ac_status=$?
2242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243   (exit $ac_status); }
2244 { (ac_try="$ac_compiler -v >&5"
2245 case "(($ac_try" in
2246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2247   *) ac_try_echo=$ac_try;;
2248 esac
2249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2250   (eval "$ac_compiler -v >&5") 2>&5
2251   ac_status=$?
2252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253   (exit $ac_status); }
2254 { (ac_try="$ac_compiler -V >&5"
2255 case "(($ac_try" in
2256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257   *) ac_try_echo=$ac_try;;
2258 esac
2259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2260   (eval "$ac_compiler -V >&5") 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }
2264
2265 cat >conftest.$ac_ext <<_ACEOF
2266 /* confdefs.h.  */
2267 _ACEOF
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h.  */
2271
2272 int
2273 main ()
2274 {
2275
2276   ;
2277   return 0;
2278 }
2279 _ACEOF
2280 ac_clean_files_save=$ac_clean_files
2281 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2282 # Try to create an executable without -o first, disregard a.out.
2283 # It will help us diagnose broken compilers, and finding out an intuition
2284 # of exeext.
2285 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2286 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2287 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2288 #
2289 # List of possible output files, starting from the most likely.
2290 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2291 # only as a last resort.  b.out is created by i960 compilers.
2292 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2293 #
2294 # The IRIX 6 linker writes into existing files which may not be
2295 # executable, retaining their permissions.  Remove them first so a
2296 # subsequent execution test works.
2297 ac_rmfiles=
2298 for ac_file in $ac_files
2299 do
2300   case $ac_file in
2301     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2302     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2303   esac
2304 done
2305 rm -f $ac_rmfiles
2306
2307 if { (ac_try="$ac_link_default"
2308 case "(($ac_try" in
2309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310   *) ac_try_echo=$ac_try;;
2311 esac
2312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2313   (eval "$ac_link_default") 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); }; then
2317   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2318 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2319 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2320 # so that the user can short-circuit this test for compilers unknown to
2321 # Autoconf.
2322 for ac_file in $ac_files ''
2323 do
2324   test -f "$ac_file" || continue
2325   case $ac_file in
2326     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2327         ;;
2328     [ab].out )
2329         # We found the default executable, but exeext='' is most
2330         # certainly right.
2331         break;;
2332     *.* )
2333         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2334         then :; else
2335            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2336         fi
2337         # We set ac_cv_exeext here because the later test for it is not
2338         # safe: cross compilers may not add the suffix if given an `-o'
2339         # argument, so we may need to know it at that point already.
2340         # Even if this section looks crufty: it has the advantage of
2341         # actually working.
2342         break;;
2343     * )
2344         break;;
2345   esac
2346 done
2347 test "$ac_cv_exeext" = no && ac_cv_exeext=
2348
2349 else
2350   ac_file=''
2351 fi
2352
2353 { echo "$as_me:$LINENO: result: $ac_file" >&5
2354 echo "${ECHO_T}$ac_file" >&6; }
2355 if test -z "$ac_file"; then
2356   echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2358
2359 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: C compiler cannot create executables
2362 See \`config.log' for more details." >&2;}
2363    { (exit 77); exit 77; }; }
2364 fi
2365
2366 ac_exeext=$ac_cv_exeext
2367
2368 # Check that the compiler produces executables we can run.  If not, either
2369 # the compiler is broken, or we cross compile.
2370 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2371 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2372 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2373 # If not cross compiling, check that we can run a simple program.
2374 if test "$cross_compiling" != yes; then
2375   if { ac_try='./$ac_file'
2376   { (case "(($ac_try" in
2377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378   *) ac_try_echo=$ac_try;;
2379 esac
2380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2381   (eval "$ac_try") 2>&5
2382   ac_status=$?
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); }; }; then
2385     cross_compiling=no
2386   else
2387     if test "$cross_compiling" = maybe; then
2388         cross_compiling=yes
2389     else
2390         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2391 If you meant to cross compile, use \`--host'.
2392 See \`config.log' for more details." >&5
2393 echo "$as_me: error: cannot run C compiled programs.
2394 If you meant to cross compile, use \`--host'.
2395 See \`config.log' for more details." >&2;}
2396    { (exit 1); exit 1; }; }
2397     fi
2398   fi
2399 fi
2400 { echo "$as_me:$LINENO: result: yes" >&5
2401 echo "${ECHO_T}yes" >&6; }
2402
2403 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2404 ac_clean_files=$ac_clean_files_save
2405 # Check that the compiler produces executables we can run.  If not, either
2406 # the compiler is broken, or we cross compile.
2407 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2408 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2409 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2410 echo "${ECHO_T}$cross_compiling" >&6; }
2411
2412 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2413 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2414 if { (ac_try="$ac_link"
2415 case "(($ac_try" in
2416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417   *) ac_try_echo=$ac_try;;
2418 esac
2419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2420   (eval "$ac_link") 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; then
2424   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2425 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2426 # work properly (i.e., refer to `conftest.exe'), while it won't with
2427 # `rm'.
2428 for ac_file in conftest.exe conftest conftest.*; do
2429   test -f "$ac_file" || continue
2430   case $ac_file in
2431     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2432     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2433           break;;
2434     * ) break;;
2435   esac
2436 done
2437 else
2438   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2439 See \`config.log' for more details." >&5
2440 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2441 See \`config.log' for more details." >&2;}
2442    { (exit 1); exit 1; }; }
2443 fi
2444
2445 rm -f conftest$ac_cv_exeext
2446 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2447 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2448
2449 rm -f conftest.$ac_ext
2450 EXEEXT=$ac_cv_exeext
2451 ac_exeext=$EXEEXT
2452 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2453 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2454 if test "${ac_cv_objext+set}" = set; then
2455   echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457   cat >conftest.$ac_ext <<_ACEOF
2458 /* confdefs.h.  */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h.  */
2463
2464 int
2465 main ()
2466 {
2467
2468   ;
2469   return 0;
2470 }
2471 _ACEOF
2472 rm -f conftest.o conftest.obj
2473 if { (ac_try="$ac_compile"
2474 case "(($ac_try" in
2475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476   *) ac_try_echo=$ac_try;;
2477 esac
2478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479   (eval "$ac_compile") 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); }; then
2483   for ac_file in conftest.o conftest.obj conftest.*; do
2484   test -f "$ac_file" || continue;
2485   case $ac_file in
2486     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2487     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2488        break;;
2489   esac
2490 done
2491 else
2492   echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494
2495 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2496 See \`config.log' for more details." >&5
2497 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2498 See \`config.log' for more details." >&2;}
2499    { (exit 1); exit 1; }; }
2500 fi
2501
2502 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2503 fi
2504 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2505 echo "${ECHO_T}$ac_cv_objext" >&6; }
2506 OBJEXT=$ac_cv_objext
2507 ac_objext=$OBJEXT
2508 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2509 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2510 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2511   echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513   cat >conftest.$ac_ext <<_ACEOF
2514 /* confdefs.h.  */
2515 _ACEOF
2516 cat confdefs.h >>conftest.$ac_ext
2517 cat >>conftest.$ac_ext <<_ACEOF
2518 /* end confdefs.h.  */
2519
2520 int
2521 main ()
2522 {
2523 #ifndef __GNUC__
2524        choke me
2525 #endif
2526
2527   ;
2528   return 0;
2529 }
2530 _ACEOF
2531 rm -f conftest.$ac_objext
2532 if { (ac_try="$ac_compile"
2533 case "(($ac_try" in
2534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535   *) ac_try_echo=$ac_try;;
2536 esac
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538   (eval "$ac_compile") 2>conftest.er1
2539   ac_status=$?
2540   grep -v '^ *+' conftest.er1 >conftest.err
2541   rm -f conftest.er1
2542   cat conftest.err >&5
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); } && {
2545          test -z "$ac_c_werror_flag" ||
2546          test ! -s conftest.err
2547        } && test -s conftest.$ac_objext; then
2548   ac_compiler_gnu=yes
2549 else
2550   echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2552
2553         ac_compiler_gnu=no
2554 fi
2555
2556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2557 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2558
2559 fi
2560 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2561 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2562 GCC=`test $ac_compiler_gnu = yes && echo yes`
2563 ac_test_CFLAGS=${CFLAGS+set}
2564 ac_save_CFLAGS=$CFLAGS
2565 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2566 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_cc_g+set}" = set; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570   ac_save_c_werror_flag=$ac_c_werror_flag
2571    ac_c_werror_flag=yes
2572    ac_cv_prog_cc_g=no
2573    CFLAGS="-g"
2574    cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h.  */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h.  */
2580
2581 int
2582 main ()
2583 {
2584
2585   ;
2586   return 0;
2587 }
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (ac_try="$ac_compile"
2591 case "(($ac_try" in
2592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593   *) ac_try_echo=$ac_try;;
2594 esac
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596   (eval "$ac_compile") 2>conftest.er1
2597   ac_status=$?
2598   grep -v '^ *+' conftest.er1 >conftest.err
2599   rm -f conftest.er1
2600   cat conftest.err >&5
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); } && {
2603          test -z "$ac_c_werror_flag" ||
2604          test ! -s conftest.err
2605        } && test -s conftest.$ac_objext; then
2606   ac_cv_prog_cc_g=yes
2607 else
2608   echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2610
2611         CFLAGS=""
2612       cat >conftest.$ac_ext <<_ACEOF
2613 /* confdefs.h.  */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h.  */
2618
2619 int
2620 main ()
2621 {
2622
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 rm -f conftest.$ac_objext
2628 if { (ac_try="$ac_compile"
2629 case "(($ac_try" in
2630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631   *) ac_try_echo=$ac_try;;
2632 esac
2633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2634   (eval "$ac_compile") 2>conftest.er1
2635   ac_status=$?
2636   grep -v '^ *+' conftest.er1 >conftest.err
2637   rm -f conftest.er1
2638   cat conftest.err >&5
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); } && {
2641          test -z "$ac_c_werror_flag" ||
2642          test ! -s conftest.err
2643        } && test -s conftest.$ac_objext; then
2644   :
2645 else
2646   echo "$as_me: failed program was:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2648
2649         ac_c_werror_flag=$ac_save_c_werror_flag
2650          CFLAGS="-g"
2651          cat >conftest.$ac_ext <<_ACEOF
2652 /* confdefs.h.  */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h.  */
2657
2658 int
2659 main ()
2660 {
2661
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (ac_try="$ac_compile"
2668 case "(($ac_try" in
2669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670   *) ac_try_echo=$ac_try;;
2671 esac
2672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673   (eval "$ac_compile") 2>conftest.er1
2674   ac_status=$?
2675   grep -v '^ *+' conftest.er1 >conftest.err
2676   rm -f conftest.er1
2677   cat conftest.err >&5
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); } && {
2680          test -z "$ac_c_werror_flag" ||
2681          test ! -s conftest.err
2682        } && test -s conftest.$ac_objext; then
2683   ac_cv_prog_cc_g=yes
2684 else
2685   echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2687
2688
2689 fi
2690
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692 fi
2693
2694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695 fi
2696
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698    ac_c_werror_flag=$ac_save_c_werror_flag
2699 fi
2700 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2701 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2702 if test "$ac_test_CFLAGS" = set; then
2703   CFLAGS=$ac_save_CFLAGS
2704 elif test $ac_cv_prog_cc_g = yes; then
2705   if test "$GCC" = yes; then
2706     CFLAGS="-g -O2"
2707   else
2708     CFLAGS="-g"
2709   fi
2710 else
2711   if test "$GCC" = yes; then
2712     CFLAGS="-O2"
2713   else
2714     CFLAGS=
2715   fi
2716 fi
2717 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2718 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2719 if test "${ac_cv_prog_cc_c89+set}" = set; then
2720   echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722   ac_cv_prog_cc_c89=no
2723 ac_save_CC=$CC
2724 cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h.  */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h.  */
2730 #include <stdarg.h>
2731 #include <stdio.h>
2732 #include <sys/types.h>
2733 #include <sys/stat.h>
2734 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2735 struct buf { int x; };
2736 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2737 static char *e (p, i)
2738      char **p;
2739      int i;
2740 {
2741   return p[i];
2742 }
2743 static char *f (char * (*g) (char **, int), char **p, ...)
2744 {
2745   char *s;
2746   va_list v;
2747   va_start (v,p);
2748   s = g (p, va_arg (v,int));
2749   va_end (v);
2750   return s;
2751 }
2752
2753 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2754    function prototypes and stuff, but not '\xHH' hex character constants.
2755    These don't provoke an error unfortunately, instead are silently treated
2756    as 'x'.  The following induces an error, until -std is added to get
2757    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2758    array size at least.  It's necessary to write '\x00'==0 to get something
2759    that's true only with -std.  */
2760 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2761
2762 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2763    inside strings and character constants.  */
2764 #define FOO(x) 'x'
2765 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2766
2767 int test (int i, double x);
2768 struct s1 {int (*f) (int a);};
2769 struct s2 {int (*f) (double a);};
2770 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2771 int argc;
2772 char **argv;
2773 int
2774 main ()
2775 {
2776 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2777   ;
2778   return 0;
2779 }
2780 _ACEOF
2781 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2782         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2783 do
2784   CC="$ac_save_CC $ac_arg"
2785   rm -f conftest.$ac_objext
2786 if { (ac_try="$ac_compile"
2787 case "(($ac_try" in
2788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789   *) ac_try_echo=$ac_try;;
2790 esac
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792   (eval "$ac_compile") 2>conftest.er1
2793   ac_status=$?
2794   grep -v '^ *+' conftest.er1 >conftest.err
2795   rm -f conftest.er1
2796   cat conftest.err >&5
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); } && {
2799          test -z "$ac_c_werror_flag" ||
2800          test ! -s conftest.err
2801        } && test -s conftest.$ac_objext; then
2802   ac_cv_prog_cc_c89=$ac_arg
2803 else
2804   echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2806
2807
2808 fi
2809
2810 rm -f core conftest.err conftest.$ac_objext
2811   test "x$ac_cv_prog_cc_c89" != "xno" && break
2812 done
2813 rm -f conftest.$ac_ext
2814 CC=$ac_save_CC
2815
2816 fi
2817 # AC_CACHE_VAL
2818 case "x$ac_cv_prog_cc_c89" in
2819   x)
2820     { echo "$as_me:$LINENO: result: none needed" >&5
2821 echo "${ECHO_T}none needed" >&6; } ;;
2822   xno)
2823     { echo "$as_me:$LINENO: result: unsupported" >&5
2824 echo "${ECHO_T}unsupported" >&6; } ;;
2825   *)
2826     CC="$CC $ac_cv_prog_cc_c89"
2827     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2828 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2829 esac
2830
2831
2832 ac_ext=c
2833 ac_cpp='$CPP $CPPFLAGS'
2834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2837
2838
2839 { echo "$as_me:$LINENO: checking for jrKanjiControl in -lcanna" >&5
2840 echo $ECHO_N "checking for jrKanjiControl in -lcanna... $ECHO_C" >&6; }
2841 if test "${ac_cv_lib_canna_jrKanjiControl+set}" = set; then
2842   echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844   ac_check_lib_save_LIBS=$LIBS
2845 LIBS="-lcanna  $LIBS"
2846 cat >conftest.$ac_ext <<_ACEOF
2847 /* confdefs.h.  */
2848 _ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h.  */
2852
2853 /* Override any GCC internal prototype to avoid an error.
2854    Use char because int might match the return type of a GCC
2855    builtin and then its argument prototype would still apply.  */
2856 #ifdef __cplusplus
2857 extern "C"
2858 #endif
2859 char jrKanjiControl ();
2860 int
2861 main ()
2862 {
2863 return jrKanjiControl ();
2864   ;
2865   return 0;
2866 }
2867 _ACEOF
2868 rm -f conftest.$ac_objext conftest$ac_exeext
2869 if { (ac_try="$ac_link"
2870 case "(($ac_try" in
2871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872   *) ac_try_echo=$ac_try;;
2873 esac
2874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2875   (eval "$ac_link") 2>conftest.er1
2876   ac_status=$?
2877   grep -v '^ *+' conftest.er1 >conftest.err
2878   rm -f conftest.er1
2879   cat conftest.err >&5
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); } && {
2882          test -z "$ac_c_werror_flag" ||
2883          test ! -s conftest.err
2884        } && test -s conftest$ac_exeext &&
2885        $as_test_x conftest$ac_exeext; then
2886   ac_cv_lib_canna_jrKanjiControl=yes
2887 else
2888   echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2890
2891         ac_cv_lib_canna_jrKanjiControl=no
2892 fi
2893
2894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2895       conftest$ac_exeext conftest.$ac_ext
2896 LIBS=$ac_check_lib_save_LIBS
2897 fi
2898 { echo "$as_me:$LINENO: result: $ac_cv_lib_canna_jrKanjiControl" >&5
2899 echo "${ECHO_T}$ac_cv_lib_canna_jrKanjiControl" >&6; }
2900 if test $ac_cv_lib_canna_jrKanjiControl = yes; then
2901   xemacs_opts="$xemacs_opts --with-canna"
2902 fi
2903
2904 fi
2905
2906 os_name=`uname -s`
2907 mac_product_name=`sw_vers |grep ProductName|cut -f2`
2908 mac_product_version=`sw_vers |grep ProductVersion|cut -f2`
2909 mac_product_major_version=`echo $mac_product_version|cut -d'.' -f1`
2910 mac_product_minor_version=`echo $mac_product_version|cut -d'.' -f2`
2911
2912 if test "$os_name" = "Darwin" -a \
2913         "$mac_product_name" = "Mac OS X" -a \
2914         $mac_product_major_version -eq 10 -a \
2915         $mac_product_minor_version -ge 7
2916 then
2917    xemacs_opts="$xemacs_opts '--ldflags=-Wl,-no_pie'"
2918 fi
2919
2920 # Checks for header files.
2921
2922 # Checks for typedefs, structures, and compiler characteristics.
2923 #AC_C_CONST
2924 #AC_C_INLINE
2925
2926 # Checks for library functions.
2927 #AC_FUNC_ALLOCA
2928 #AC_FUNC_STRNLEN
2929
2930 #AC_CHECK_FUNCS(strnlen)
2931
2932 ac_config_files="$ac_config_files Makefile"
2933
2934 cat >confcache <<\_ACEOF
2935 # This file is a shell script that caches the results of configure
2936 # tests run on this system so they can be shared between configure
2937 # scripts and configure runs, see configure's option --config-cache.
2938 # It is not useful on other systems.  If it contains results you don't
2939 # want to keep, you may remove or edit it.
2940 #
2941 # config.status only pays attention to the cache file if you give it
2942 # the --recheck option to rerun configure.
2943 #
2944 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2945 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2946 # following values.
2947
2948 _ACEOF
2949
2950 # The following way of writing the cache mishandles newlines in values,
2951 # but we know of no workaround that is simple, portable, and efficient.
2952 # So, we kill variables containing newlines.
2953 # Ultrix sh set writes to stderr and can't be redirected directly,
2954 # and sets the high bit in the cache file unless we assign to the vars.
2955 (
2956   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2957     eval ac_val=\$$ac_var
2958     case $ac_val in #(
2959     *${as_nl}*)
2960       case $ac_var in #(
2961       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2962 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2963       esac
2964       case $ac_var in #(
2965       _ | IFS | as_nl) ;; #(
2966       *) $as_unset $ac_var ;;
2967       esac ;;
2968     esac
2969   done
2970
2971   (set) 2>&1 |
2972     case $as_nl`(ac_space=' '; set) 2>&1` in #(
2973     *${as_nl}ac_space=\ *)
2974       # `set' does not quote correctly, so add quotes (double-quote
2975       # substitution turns \\\\ into \\, and sed turns \\ into \).
2976       sed -n \
2977         "s/'/'\\\\''/g;
2978           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2979       ;; #(
2980     *)
2981       # `set' quotes correctly as required by POSIX, so do not add quotes.
2982       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2983       ;;
2984     esac |
2985     sort
2986 ) |
2987   sed '
2988      /^ac_cv_env_/b end
2989      t clear
2990      :clear
2991      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2992      t end
2993      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2994      :end' >>confcache
2995 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2996   if test -w "$cache_file"; then
2997     test "x$cache_file" != "x/dev/null" &&
2998       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
2999 echo "$as_me: updating cache $cache_file" >&6;}
3000     cat confcache >$cache_file
3001   else
3002     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3003 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3004   fi
3005 fi
3006 rm -f confcache
3007
3008 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3009 # Let make expand exec_prefix.
3010 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3011
3012 # Transform confdefs.h into DEFS.
3013 # Protect against shell expansion while executing Makefile rules.
3014 # Protect against Makefile macro expansion.
3015 #
3016 # If the first sed substitution is executed (which looks for macros that
3017 # take arguments), then branch to the quote section.  Otherwise,
3018 # look for a macro that doesn't take arguments.
3019 ac_script='
3020 t clear
3021 :clear
3022 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
3023 t quote
3024 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
3025 t quote
3026 b any
3027 :quote
3028 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3029 s/\[/\\&/g
3030 s/\]/\\&/g
3031 s/\$/$$/g
3032 H
3033 :any
3034 ${
3035         g
3036         s/^\n//
3037         s/\n/ /g
3038         p
3039 }
3040 '
3041 DEFS=`sed -n "$ac_script" confdefs.h`
3042
3043
3044 ac_libobjs=
3045 ac_ltlibobjs=
3046 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3047   # 1. Remove the extension, and $U if already installed.
3048   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3049   ac_i=`echo "$ac_i" | sed "$ac_script"`
3050   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3051   #    will be set to the directory where LIBOBJS objects are built.
3052   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3053   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3054 done
3055 LIBOBJS=$ac_libobjs
3056
3057 LTLIBOBJS=$ac_ltlibobjs
3058
3059
3060
3061 : ${CONFIG_STATUS=./config.status}
3062 ac_clean_files_save=$ac_clean_files
3063 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3064 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3065 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3066 cat >$CONFIG_STATUS <<_ACEOF
3067 #! $SHELL
3068 # Generated by $as_me.
3069 # Run this file to recreate the current configuration.
3070 # Compiler output produced by configure, useful for debugging
3071 # configure, is in config.log if it exists.
3072
3073 debug=false
3074 ac_cs_recheck=false
3075 ac_cs_silent=false
3076 SHELL=\${CONFIG_SHELL-$SHELL}
3077 _ACEOF
3078
3079 cat >>$CONFIG_STATUS <<\_ACEOF
3080 ## --------------------- ##
3081 ## M4sh Initialization.  ##
3082 ## --------------------- ##
3083
3084 # Be more Bourne compatible
3085 DUALCASE=1; export DUALCASE # for MKS sh
3086 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3087   emulate sh
3088   NULLCMD=:
3089   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3090   # is contrary to our usage.  Disable this feature.
3091   alias -g '${1+"$@"}'='"$@"'
3092   setopt NO_GLOB_SUBST
3093 else
3094   case `(set -o) 2>/dev/null` in
3095   *posix*) set -o posix ;;
3096 esac
3097
3098 fi
3099
3100
3101
3102
3103 # PATH needs CR
3104 # Avoid depending upon Character Ranges.
3105 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3106 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3107 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3108 as_cr_digits='0123456789'
3109 as_cr_alnum=$as_cr_Letters$as_cr_digits
3110
3111 # The user is always right.
3112 if test "${PATH_SEPARATOR+set}" != set; then
3113   echo "#! /bin/sh" >conf$$.sh
3114   echo  "exit 0"   >>conf$$.sh
3115   chmod +x conf$$.sh
3116   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3117     PATH_SEPARATOR=';'
3118   else
3119     PATH_SEPARATOR=:
3120   fi
3121   rm -f conf$$.sh
3122 fi
3123
3124 # Support unset when possible.
3125 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3126   as_unset=unset
3127 else
3128   as_unset=false
3129 fi
3130
3131
3132 # IFS
3133 # We need space, tab and new line, in precisely that order.  Quoting is
3134 # there to prevent editors from complaining about space-tab.
3135 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3136 # splitting by setting IFS to empty value.)
3137 as_nl='
3138 '
3139 IFS=" ""        $as_nl"
3140
3141 # Find who we are.  Look in the path if we contain no directory separator.
3142 case $0 in
3143   *[\\/]* ) as_myself=$0 ;;
3144   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3146 do
3147   IFS=$as_save_IFS
3148   test -z "$as_dir" && as_dir=.
3149   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3150 done
3151 IFS=$as_save_IFS
3152
3153      ;;
3154 esac
3155 # We did not find ourselves, most probably we were run as `sh COMMAND'
3156 # in which case we are not to be found in the path.
3157 if test "x$as_myself" = x; then
3158   as_myself=$0
3159 fi
3160 if test ! -f "$as_myself"; then
3161   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3162   { (exit 1); exit 1; }
3163 fi
3164
3165 # Work around bugs in pre-3.0 UWIN ksh.
3166 for as_var in ENV MAIL MAILPATH
3167 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3168 done
3169 PS1='$ '
3170 PS2='> '
3171 PS4='+ '
3172
3173 # NLS nuisances.
3174 for as_var in \
3175   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3176   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3177   LC_TELEPHONE LC_TIME
3178 do
3179   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3180     eval $as_var=C; export $as_var
3181   else
3182     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3183   fi
3184 done
3185
3186 # Required to use basename.
3187 if expr a : '\(a\)' >/dev/null 2>&1 &&
3188    test "X`expr 00001 : '.*\(...\)'`" = X001; then
3189   as_expr=expr
3190 else
3191   as_expr=false
3192 fi
3193
3194 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3195   as_basename=basename
3196 else
3197   as_basename=false
3198 fi
3199
3200
3201 # Name of the executable.
3202 as_me=`$as_basename -- "$0" ||
3203 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3204          X"$0" : 'X\(//\)$' \| \
3205          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3206 echo X/"$0" |
3207     sed '/^.*\/\([^/][^/]*\)\/*$/{
3208             s//\1/
3209             q
3210           }
3211           /^X\/\(\/\/\)$/{
3212             s//\1/
3213             q
3214           }
3215           /^X\/\(\/\).*/{
3216             s//\1/
3217             q
3218           }
3219           s/.*/./; q'`
3220
3221 # CDPATH.
3222 $as_unset CDPATH
3223
3224
3225
3226   as_lineno_1=$LINENO
3227   as_lineno_2=$LINENO
3228   test "x$as_lineno_1" != "x$as_lineno_2" &&
3229   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
3230
3231   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3232   # uniformly replaced by the line number.  The first 'sed' inserts a
3233   # line-number line after each line using $LINENO; the second 'sed'
3234   # does the real work.  The second script uses 'N' to pair each
3235   # line-number line with the line containing $LINENO, and appends
3236   # trailing '-' during substitution so that $LINENO is not a special
3237   # case at line end.
3238   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3239   # scripts with optimization help from Paolo Bonzini.  Blame Lee
3240   # E. McMahon (1931-1989) for sed's syntax.  :-)
3241   sed -n '
3242     p
3243     /[$]LINENO/=
3244   ' <$as_myself |
3245     sed '
3246       s/[$]LINENO.*/&-/
3247       t lineno
3248       b
3249       :lineno
3250       N
3251       :loop
3252       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3253       t loop
3254       s/-\n.*//
3255     ' >$as_me.lineno &&
3256   chmod +x "$as_me.lineno" ||
3257     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3258    { (exit 1); exit 1; }; }
3259
3260   # Don't try to exec as it changes $[0], causing all sort of problems
3261   # (the dirname of $[0] is not the place where we might find the
3262   # original and so on.  Autoconf is especially sensitive to this).
3263   . "./$as_me.lineno"
3264   # Exit status is that of the last command.
3265   exit
3266 }
3267
3268
3269 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3270   as_dirname=dirname
3271 else
3272   as_dirname=false
3273 fi
3274
3275 ECHO_C= ECHO_N= ECHO_T=
3276 case `echo -n x` in
3277 -n*)
3278   case `echo 'x\c'` in
3279   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
3280   *)   ECHO_C='\c';;
3281   esac;;
3282 *)
3283   ECHO_N='-n';;
3284 esac
3285
3286 if expr a : '\(a\)' >/dev/null 2>&1 &&
3287    test "X`expr 00001 : '.*\(...\)'`" = X001; then
3288   as_expr=expr
3289 else
3290   as_expr=false
3291 fi
3292
3293 rm -f conf$$ conf$$.exe conf$$.file
3294 if test -d conf$$.dir; then
3295   rm -f conf$$.dir/conf$$.file
3296 else
3297   rm -f conf$$.dir
3298   mkdir conf$$.dir
3299 fi
3300 echo >conf$$.file
3301 if ln -s conf$$.file conf$$ 2>/dev/null; then
3302   as_ln_s='ln -s'
3303   # ... but there are two gotchas:
3304   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3305   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3306   # In both cases, we have to default to `cp -p'.
3307   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3308     as_ln_s='cp -p'
3309 elif ln conf$$.file conf$$ 2>/dev/null; then
3310   as_ln_s=ln
3311 else
3312   as_ln_s='cp -p'
3313 fi
3314 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3315 rmdir conf$$.dir 2>/dev/null
3316
3317 if mkdir -p . 2>/dev/null; then
3318   as_mkdir_p=:
3319 else
3320   test -d ./-p && rmdir ./-p
3321   as_mkdir_p=false
3322 fi
3323
3324 if test -x / >/dev/null 2>&1; then
3325   as_test_x='test -x'
3326 else
3327   if ls -dL / >/dev/null 2>&1; then
3328     as_ls_L_option=L
3329   else
3330     as_ls_L_option=
3331   fi
3332   as_test_x='
3333     eval sh -c '\''
3334       if test -d "$1"; then
3335         test -d "$1/.";
3336       else
3337         case $1 in
3338         -*)set "./$1";;
3339         esac;
3340         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
3341         ???[sx]*):;;*)false;;esac;fi
3342     '\'' sh
3343   '
3344 fi
3345 as_executable_p=$as_test_x
3346
3347 # Sed expression to map a string onto a valid CPP name.
3348 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3349
3350 # Sed expression to map a string onto a valid variable name.
3351 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3352
3353
3354 exec 6>&1
3355
3356 # Save the log message, to keep $[0] and so on meaningful, and to
3357 # report actual input values of CONFIG_FILES etc. instead of their
3358 # values after options handling.
3359 ac_log="
3360 This file was extended by chise-base $as_me 0.25, which was
3361 generated by GNU Autoconf 2.61.  Invocation command line was
3362
3363   CONFIG_FILES    = $CONFIG_FILES
3364   CONFIG_HEADERS  = $CONFIG_HEADERS
3365   CONFIG_LINKS    = $CONFIG_LINKS
3366   CONFIG_COMMANDS = $CONFIG_COMMANDS
3367   $ $0 $@
3368
3369 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3370 "
3371
3372 _ACEOF
3373
3374 cat >>$CONFIG_STATUS <<_ACEOF
3375 # Files that config.status was made for.
3376 config_files="$ac_config_files"
3377
3378 _ACEOF
3379
3380 cat >>$CONFIG_STATUS <<\_ACEOF
3381 ac_cs_usage="\
3382 \`$as_me' instantiates files from templates according to the
3383 current configuration.
3384
3385 Usage: $0 [OPTIONS] [FILE]...
3386
3387   -h, --help       print this help, then exit
3388   -V, --version    print version number and configuration settings, then exit
3389   -q, --quiet      do not print progress messages
3390   -d, --debug      don't remove temporary files
3391       --recheck    update $as_me by reconfiguring in the same conditions
3392   --file=FILE[:TEMPLATE]
3393                    instantiate the configuration file FILE
3394
3395 Configuration files:
3396 $config_files
3397
3398 Report bugs to <bug-autoconf@gnu.org>."
3399
3400 _ACEOF
3401 cat >>$CONFIG_STATUS <<_ACEOF
3402 ac_cs_version="\\
3403 chise-base config.status 0.25
3404 configured by $0, generated by GNU Autoconf 2.61,
3405   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3406
3407 Copyright (C) 2006 Free Software Foundation, Inc.
3408 This config.status script is free software; the Free Software Foundation
3409 gives unlimited permission to copy, distribute and modify it."
3410
3411 ac_pwd='$ac_pwd'
3412 srcdir='$srcdir'
3413 _ACEOF
3414
3415 cat >>$CONFIG_STATUS <<\_ACEOF
3416 # If no file are specified by the user, then we need to provide default
3417 # value.  By we need to know if files were specified by the user.
3418 ac_need_defaults=:
3419 while test $# != 0
3420 do
3421   case $1 in
3422   --*=*)
3423     ac_option=`expr "X$1" : 'X\([^=]*\)='`
3424     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3425     ac_shift=:
3426     ;;
3427   *)
3428     ac_option=$1
3429     ac_optarg=$2
3430     ac_shift=shift
3431     ;;
3432   esac
3433
3434   case $ac_option in
3435   # Handling of the options.
3436   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3437     ac_cs_recheck=: ;;
3438   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3439     echo "$ac_cs_version"; exit ;;
3440   --debug | --debu | --deb | --de | --d | -d )
3441     debug=: ;;
3442   --file | --fil | --fi | --f )
3443     $ac_shift
3444     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3445     ac_need_defaults=false;;
3446   --he | --h |  --help | --hel | -h )
3447     echo "$ac_cs_usage"; exit ;;
3448   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3449   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3450     ac_cs_silent=: ;;
3451
3452   # This is an error.
3453   -*) { echo "$as_me: error: unrecognized option: $1
3454 Try \`$0 --help' for more information." >&2
3455    { (exit 1); exit 1; }; } ;;
3456
3457   *) ac_config_targets="$ac_config_targets $1"
3458      ac_need_defaults=false ;;
3459
3460   esac
3461   shift
3462 done
3463
3464 ac_configure_extra_args=
3465
3466 if $ac_cs_silent; then
3467   exec 6>/dev/null
3468   ac_configure_extra_args="$ac_configure_extra_args --silent"
3469 fi
3470
3471 _ACEOF
3472 cat >>$CONFIG_STATUS <<_ACEOF
3473 if \$ac_cs_recheck; then
3474   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3475   CONFIG_SHELL=$SHELL
3476   export CONFIG_SHELL
3477   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3478 fi
3479
3480 _ACEOF
3481 cat >>$CONFIG_STATUS <<\_ACEOF
3482 exec 5>>config.log
3483 {
3484   echo
3485   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3486 ## Running $as_me. ##
3487 _ASBOX
3488   echo "$ac_log"
3489 } >&5
3490
3491 _ACEOF
3492 cat >>$CONFIG_STATUS <<_ACEOF
3493 _ACEOF
3494
3495 cat >>$CONFIG_STATUS <<\_ACEOF
3496
3497 # Handling of arguments.
3498 for ac_config_target in $ac_config_targets
3499 do
3500   case $ac_config_target in
3501     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3502
3503   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3504 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3505    { (exit 1); exit 1; }; };;
3506   esac
3507 done
3508
3509
3510 # If the user did not use the arguments to specify the items to instantiate,
3511 # then the envvar interface is used.  Set only those that are not.
3512 # We use the long form for the default assignment because of an extremely
3513 # bizarre bug on SunOS 4.1.3.
3514 if $ac_need_defaults; then
3515   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3516 fi
3517
3518 # Have a temporary directory for convenience.  Make it in the build tree
3519 # simply because there is no reason against having it here, and in addition,
3520 # creating and moving files from /tmp can sometimes cause problems.
3521 # Hook for its removal unless debugging.
3522 # Note that there is a small window in which the directory will not be cleaned:
3523 # after its creation but before its name has been assigned to `$tmp'.
3524 $debug ||
3525 {
3526   tmp=
3527   trap 'exit_status=$?
3528   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3529 ' 0
3530   trap '{ (exit 1); exit 1; }' 1 2 13 15
3531 }
3532 # Create a (secure) tmp directory for tmp files.
3533
3534 {
3535   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3536   test -n "$tmp" && test -d "$tmp"
3537 }  ||
3538 {
3539   tmp=./conf$$-$RANDOM
3540   (umask 077 && mkdir "$tmp")
3541 } ||
3542 {
3543    echo "$me: cannot create a temporary directory in ." >&2
3544    { (exit 1); exit 1; }
3545 }
3546
3547 #
3548 # Set up the sed scripts for CONFIG_FILES section.
3549 #
3550
3551 # No need to generate the scripts if there are no CONFIG_FILES.
3552 # This happens for instance when ./config.status config.h
3553 if test -n "$CONFIG_FILES"; then
3554
3555 _ACEOF
3556
3557
3558
3559 ac_delim='%!_!# '
3560 for ac_last_try in false false false false false :; do
3561   cat >conf$$subs.sed <<_ACEOF
3562 SHELL!$SHELL$ac_delim
3563 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
3564 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
3565 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
3566 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
3567 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
3568 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
3569 exec_prefix!$exec_prefix$ac_delim
3570 prefix!$prefix$ac_delim
3571 program_transform_name!$program_transform_name$ac_delim
3572 bindir!$bindir$ac_delim
3573 sbindir!$sbindir$ac_delim
3574 libexecdir!$libexecdir$ac_delim
3575 datarootdir!$datarootdir$ac_delim
3576 datadir!$datadir$ac_delim
3577 sysconfdir!$sysconfdir$ac_delim
3578 sharedstatedir!$sharedstatedir$ac_delim
3579 localstatedir!$localstatedir$ac_delim
3580 includedir!$includedir$ac_delim
3581 oldincludedir!$oldincludedir$ac_delim
3582 docdir!$docdir$ac_delim
3583 infodir!$infodir$ac_delim
3584 htmldir!$htmldir$ac_delim
3585 dvidir!$dvidir$ac_delim
3586 pdfdir!$pdfdir$ac_delim
3587 psdir!$psdir$ac_delim
3588 libdir!$libdir$ac_delim
3589 localedir!$localedir$ac_delim
3590 mandir!$mandir$ac_delim
3591 DEFS!$DEFS$ac_delim
3592 ECHO_C!$ECHO_C$ac_delim
3593 ECHO_N!$ECHO_N$ac_delim
3594 ECHO_T!$ECHO_T$ac_delim
3595 LIBS!$LIBS$ac_delim
3596 build_alias!$build_alias$ac_delim
3597 host_alias!$host_alias$ac_delim
3598 target_alias!$target_alias$ac_delim
3599 build!$build$ac_delim
3600 build_cpu!$build_cpu$ac_delim
3601 build_vendor!$build_vendor$ac_delim
3602 build_os!$build_os$ac_delim
3603 host!$host$ac_delim
3604 host_cpu!$host_cpu$ac_delim
3605 host_vendor!$host_vendor$ac_delim
3606 host_os!$host_os$ac_delim
3607 target!$target$ac_delim
3608 target_cpu!$target_cpu$ac_delim
3609 target_vendor!$target_vendor$ac_delim
3610 target_os!$target_os$ac_delim
3611 ac_configure_args!$ac_configure_args$ac_delim
3612 xemacs_configure_args!$xemacs_configure_args$ac_delim
3613 xemacs_site_includes!$xemacs_site_includes$ac_delim
3614 xemacs_site_libraries!$xemacs_site_libraries$ac_delim
3615 xemacs_opts!$xemacs_opts$ac_delim
3616 cvs_root!$cvs_root$ac_delim
3617 lemi_cvs_root!$lemi_cvs_root$ac_delim
3618 CC!$CC$ac_delim
3619 CFLAGS!$CFLAGS$ac_delim
3620 LDFLAGS!$LDFLAGS$ac_delim
3621 CPPFLAGS!$CPPFLAGS$ac_delim
3622 ac_ct_CC!$ac_ct_CC$ac_delim
3623 EXEEXT!$EXEEXT$ac_delim
3624 OBJEXT!$OBJEXT$ac_delim
3625 LIBOBJS!$LIBOBJS$ac_delim
3626 LTLIBOBJS!$LTLIBOBJS$ac_delim
3627 _ACEOF
3628
3629   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 65; then
3630     break
3631   elif $ac_last_try; then
3632     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
3633 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
3634    { (exit 1); exit 1; }; }
3635   else
3636     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3637   fi
3638 done
3639
3640 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
3641 if test -n "$ac_eof"; then
3642   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
3643   ac_eof=`expr $ac_eof + 1`
3644 fi
3645
3646 cat >>$CONFIG_STATUS <<_ACEOF
3647 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
3648 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
3649 _ACEOF
3650 sed '
3651 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
3652 s/^/s,@/; s/!/@,|#_!!_#|/
3653 :n
3654 t n
3655 s/'"$ac_delim"'$/,g/; t
3656 s/$/\\/; p
3657 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
3658 ' >>$CONFIG_STATUS <conf$$subs.sed
3659 rm -f conf$$subs.sed
3660 cat >>$CONFIG_STATUS <<_ACEOF
3661 :end
3662 s/|#_!!_#|//g
3663 CEOF$ac_eof
3664 _ACEOF
3665
3666
3667 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3668 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3669 # trailing colons and then remove the whole line if VPATH becomes empty
3670 # (actually we leave an empty line to preserve line numbers).
3671 if test "x$srcdir" = x.; then
3672   ac_vpsub='/^[  ]*VPATH[        ]*=/{
3673 s/:*\$(srcdir):*/:/
3674 s/:*\${srcdir}:*/:/
3675 s/:*@srcdir@:*/:/
3676 s/^\([^=]*=[     ]*\):*/\1/
3677 s/:*$//
3678 s/^[^=]*=[       ]*$//
3679 }'
3680 fi
3681
3682 cat >>$CONFIG_STATUS <<\_ACEOF
3683 fi # test -n "$CONFIG_FILES"
3684
3685
3686 for ac_tag in  :F $CONFIG_FILES
3687 do
3688   case $ac_tag in
3689   :[FHLC]) ac_mode=$ac_tag; continue;;
3690   esac
3691   case $ac_mode$ac_tag in
3692   :[FHL]*:*);;
3693   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
3694 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
3695    { (exit 1); exit 1; }; };;
3696   :[FH]-) ac_tag=-:-;;
3697   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3698   esac
3699   ac_save_IFS=$IFS
3700   IFS=:
3701   set x $ac_tag
3702   IFS=$ac_save_IFS
3703   shift
3704   ac_file=$1
3705   shift
3706
3707   case $ac_mode in
3708   :L) ac_source=$1;;
3709   :[FH])
3710     ac_file_inputs=
3711     for ac_f
3712     do
3713       case $ac_f in
3714       -) ac_f="$tmp/stdin";;
3715       *) # Look for the file first in the build tree, then in the source tree
3716          # (if the path is not absolute).  The absolute path cannot be DOS-style,
3717          # because $ac_f cannot contain `:'.
3718          test -f "$ac_f" ||
3719            case $ac_f in
3720            [\\/$]*) false;;
3721            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3722            esac ||
3723            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
3724 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
3725    { (exit 1); exit 1; }; };;
3726       esac
3727       ac_file_inputs="$ac_file_inputs $ac_f"
3728     done
3729
3730     # Let's still pretend it is `configure' which instantiates (i.e., don't
3731     # use $as_me), people would be surprised to read:
3732     #    /* config.h.  Generated by config.status.  */
3733     configure_input="Generated from "`IFS=:
3734           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
3735     if test x"$ac_file" != x-; then
3736       configure_input="$ac_file.  $configure_input"
3737       { echo "$as_me:$LINENO: creating $ac_file" >&5
3738 echo "$as_me: creating $ac_file" >&6;}
3739     fi
3740
3741     case $ac_tag in
3742     *:-:* | *:-) cat >"$tmp/stdin";;
3743     esac
3744     ;;
3745   esac
3746
3747   ac_dir=`$as_dirname -- "$ac_file" ||
3748 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3749          X"$ac_file" : 'X\(//\)[^/]' \| \
3750          X"$ac_file" : 'X\(//\)$' \| \
3751          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3752 echo X"$ac_file" |
3753     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3754             s//\1/
3755             q
3756           }
3757           /^X\(\/\/\)[^/].*/{
3758             s//\1/
3759             q
3760           }
3761           /^X\(\/\/\)$/{
3762             s//\1/
3763             q
3764           }
3765           /^X\(\/\).*/{
3766             s//\1/
3767             q
3768           }
3769           s/.*/./; q'`
3770   { as_dir="$ac_dir"
3771   case $as_dir in #(
3772   -*) as_dir=./$as_dir;;
3773   esac
3774   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
3775     as_dirs=
3776     while :; do
3777       case $as_dir in #(
3778       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
3779       *) as_qdir=$as_dir;;
3780       esac
3781       as_dirs="'$as_qdir' $as_dirs"
3782       as_dir=`$as_dirname -- "$as_dir" ||
3783 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3784          X"$as_dir" : 'X\(//\)[^/]' \| \
3785          X"$as_dir" : 'X\(//\)$' \| \
3786          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3787 echo X"$as_dir" |
3788     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3789             s//\1/
3790             q
3791           }
3792           /^X\(\/\/\)[^/].*/{
3793             s//\1/
3794             q
3795           }
3796           /^X\(\/\/\)$/{
3797             s//\1/
3798             q
3799           }
3800           /^X\(\/\).*/{
3801             s//\1/
3802             q
3803           }
3804           s/.*/./; q'`
3805       test -d "$as_dir" && break
3806     done
3807     test -z "$as_dirs" || eval "mkdir $as_dirs"
3808   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
3809 echo "$as_me: error: cannot create directory $as_dir" >&2;}
3810    { (exit 1); exit 1; }; }; }
3811   ac_builddir=.
3812
3813 case "$ac_dir" in
3814 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3815 *)
3816   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3817   # A ".." for each directory in $ac_dir_suffix.
3818   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
3819   case $ac_top_builddir_sub in
3820   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3821   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3822   esac ;;
3823 esac
3824 ac_abs_top_builddir=$ac_pwd
3825 ac_abs_builddir=$ac_pwd$ac_dir_suffix
3826 # for backward compatibility:
3827 ac_top_builddir=$ac_top_build_prefix
3828
3829 case $srcdir in
3830   .)  # We are building in place.
3831     ac_srcdir=.
3832     ac_top_srcdir=$ac_top_builddir_sub
3833     ac_abs_top_srcdir=$ac_pwd ;;
3834   [\\/]* | ?:[\\/]* )  # Absolute name.
3835     ac_srcdir=$srcdir$ac_dir_suffix;
3836     ac_top_srcdir=$srcdir
3837     ac_abs_top_srcdir=$srcdir ;;
3838   *) # Relative name.
3839     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3840     ac_top_srcdir=$ac_top_build_prefix$srcdir
3841     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3842 esac
3843 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3844
3845
3846   case $ac_mode in
3847   :F)
3848   #
3849   # CONFIG_FILE
3850   #
3851
3852 _ACEOF
3853
3854 cat >>$CONFIG_STATUS <<\_ACEOF
3855 # If the template does not know about datarootdir, expand it.
3856 # FIXME: This hack should be removed a few years after 2.60.
3857 ac_datarootdir_hack=; ac_datarootdir_seen=
3858
3859 case `sed -n '/datarootdir/ {
3860   p
3861   q
3862 }
3863 /@datadir@/p
3864 /@docdir@/p
3865 /@infodir@/p
3866 /@localedir@/p
3867 /@mandir@/p
3868 ' $ac_file_inputs` in
3869 *datarootdir*) ac_datarootdir_seen=yes;;
3870 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3871   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3872 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3873 _ACEOF
3874 cat >>$CONFIG_STATUS <<_ACEOF
3875   ac_datarootdir_hack='
3876   s&@datadir@&$datadir&g
3877   s&@docdir@&$docdir&g
3878   s&@infodir@&$infodir&g
3879   s&@localedir@&$localedir&g
3880   s&@mandir@&$mandir&g
3881     s&\\\${datarootdir}&$datarootdir&g' ;;
3882 esac
3883 _ACEOF
3884
3885 # Neutralize VPATH when `$srcdir' = `.'.
3886 # Shell code in configure.ac might set extrasub.
3887 # FIXME: do we really want to maintain this feature?
3888 cat >>$CONFIG_STATUS <<_ACEOF
3889   sed "$ac_vpsub
3890 $extrasub
3891 _ACEOF
3892 cat >>$CONFIG_STATUS <<\_ACEOF
3893 :t
3894 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3895 s&@configure_input@&$configure_input&;t t
3896 s&@top_builddir@&$ac_top_builddir_sub&;t t
3897 s&@srcdir@&$ac_srcdir&;t t
3898 s&@abs_srcdir@&$ac_abs_srcdir&;t t
3899 s&@top_srcdir@&$ac_top_srcdir&;t t
3900 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3901 s&@builddir@&$ac_builddir&;t t
3902 s&@abs_builddir@&$ac_abs_builddir&;t t
3903 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3904 $ac_datarootdir_hack
3905 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
3906
3907 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3908   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
3909   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
3910   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3911 which seems to be undefined.  Please make sure it is defined." >&5
3912 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3913 which seems to be undefined.  Please make sure it is defined." >&2;}
3914
3915   rm -f "$tmp/stdin"
3916   case $ac_file in
3917   -) cat "$tmp/out"; rm -f "$tmp/out";;
3918   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
3919   esac
3920  ;;
3921
3922
3923
3924   esac
3925
3926 done # for ac_tag
3927
3928
3929 { (exit 0); exit 0; }
3930 _ACEOF
3931 chmod +x $CONFIG_STATUS
3932 ac_clean_files=$ac_clean_files_save
3933
3934
3935 # configure is writing to config.log, and then calls config.status.
3936 # config.status does its own redirection, appending to config.log.
3937 # Unfortunately, on DOS this fails, as config.log is still kept open
3938 # by configure, so config.status won't be able to write to it; its
3939 # output is simply discarded.  So we exec the FD to /dev/null,
3940 # effectively closing config.log, so it can be properly (re)opened and
3941 # appended to by config.status.  When coming back to configure, we
3942 # need to make the FD available again.
3943 if test "$no_create" != yes; then
3944   ac_cs_success=:
3945   ac_config_status_args=
3946   test "$silent" = yes &&
3947     ac_config_status_args="$ac_config_status_args --quiet"
3948   exec 5>/dev/null
3949   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3950   exec 5>>config.log
3951   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3952   # would make configure fail if this is the last instruction.
3953   $ac_cs_success || { (exit 1); exit 1; }
3954 fi
3955