]> git.donarmstrong.com Git - lilypond.git/blob - configure
apply Julian's patch to fix install-info warnings
[lilypond.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="lily/main.cc"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 #  include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #  include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_subst_vars='VPATH
639 LTLIBOBJS
640 REQUIRED
641 OPTIONAL
642 RSYNC
643 ZIPDOC
644 IMAGEMAGICK
645 NETPBM
646 PDFLATEX
647 DBLATEX
648 TEXI2HTML
649 MAKEINFO
650 PERL
651 GUILE
652 WINDRES
653 PLATFORM_WINDOWS
654 FREETYPE2_LIBS
655 FREETYPE2_CFLAGS
656 FONTCONFIG_LIBS
657 FONTCONFIG_CFLAGS
658 PANGO_FT2_LIBS
659 PANGO_FT2_CFLAGS
660 HOST_ARCH
661 PKG_CONFIG
662 LIBOBJS
663 T1ASM
664 FONTFORGE
665 GHOSTSCRIPT
666 PYTHON_CONFIG
667 GUILE_LDFLAGS
668 GUILE_CFLAGS
669 GUILE_CONFIG
670 KPSEWHICH
671 MFMODE
672 METAPOST
673 METAFONT
674 MSGFMT
675 FLEXLEXER_FILE
676 EGREP
677 GREP
678 CXXCPP
679 FLEX
680 BISON
681 YFLAGS
682 YACC
683 RANLIB
684 AR
685 ac_ct_CXX
686 CXXFLAGS
687 CXX
688 NCSB_SOURCE_FILES
689 FCLIST
690 EXTRA_LIBS
691 DEFINES
692 cross_compiling
693 LD
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
700 CC
701 LINK_GXX_STATICALLY
702 DOCUMENTATION
703 build_package_libdir
704 build_package_datadir
705 ROOTSEP
706 PATHSEP
707 DIRSEP
708 LN_S
709 LN
710 ZIP
711 program_suffix
712 program_prefix
713 PYTHON
714 BASH
715 KSH
716 TAR
717 FIND
718 MAKE
719 host_os
720 host_vendor
721 host_cpu
722 host
723 build_os
724 build_vendor
725 build_cpu
726 build
727 CONFIGSUFFIX
728 AUTOGENERATE
729 package_depth
730 TOPLEVEL_VERSION
731 PATCH_LEVEL
732 MICRO_VERSION
733 MINOR_VERSION
734 MAJOR_VERSION
735 VERSION
736 PACKAGE
737 package
738 stepmake
739 srcdir
740 ugh_ugh_autoconf250_builddir
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL'
778 ac_subst_files=''
779 ac_user_opts='
780 enable_option_checking
781 enable_config
782 enable_documentation
783 with_ncsb_dir
784 enable_relocation
785 enable_rpath
786 enable_static_gxx
787 enable_debugging
788 enable_optimising
789 enable_profiling
790 enable_pipe
791 with_localedir
792 with_lang
793 with_python_include
794 with_python_lib
795 '
796       ac_precious_vars='build_alias
797 host_alias
798 target_alias
799 CC
800 CFLAGS
801 LDFLAGS
802 LIBS
803 CPPFLAGS
804 CXX
805 CXXFLAGS
806 CCC
807 YACC
808 YFLAGS
809 CXXCPP'
810
811
812 # Initialize some variables set by options.
813 ac_init_help=
814 ac_init_version=false
815 ac_unrecognized_opts=
816 ac_unrecognized_sep=
817 # The variables have the same names as the options, with
818 # dashes changed to underlines.
819 cache_file=/dev/null
820 exec_prefix=NONE
821 no_create=
822 no_recursion=
823 prefix=NONE
824 program_prefix=NONE
825 program_suffix=NONE
826 program_transform_name=s,x,x,
827 silent=
828 site=
829 srcdir=
830 verbose=
831 x_includes=NONE
832 x_libraries=NONE
833
834 # Installation directory options.
835 # These are left unexpanded so users can "make install exec_prefix=/foo"
836 # and all the variables that are supposed to be based on exec_prefix
837 # by default will actually change.
838 # Use braces instead of parens because sh, perl, etc. also accept them.
839 # (The list follows the same order as the GNU Coding Standards.)
840 bindir='${exec_prefix}/bin'
841 sbindir='${exec_prefix}/sbin'
842 libexecdir='${exec_prefix}/libexec'
843 datarootdir='${prefix}/share'
844 datadir='${datarootdir}'
845 sysconfdir='${prefix}/etc'
846 sharedstatedir='${prefix}/com'
847 localstatedir='${prefix}/var'
848 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE}'
851 infodir='${datarootdir}/info'
852 htmldir='${docdir}'
853 dvidir='${docdir}'
854 pdfdir='${docdir}'
855 psdir='${docdir}'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
859
860 ac_prev=
861 ac_dashdash=
862 for ac_option
863 do
864   # If the previous option needs an argument, assign it.
865   if test -n "$ac_prev"; then
866     eval $ac_prev=\$ac_option
867     ac_prev=
868     continue
869   fi
870
871   case $ac_option in
872   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873   *)    ac_optarg=yes ;;
874   esac
875
876   # Accept the important Cygnus configure options, so we can diagnose typos.
877
878   case $ac_dashdash$ac_option in
879   --)
880     ac_dashdash=yes ;;
881
882   -bindir | --bindir | --bindi | --bind | --bin | --bi)
883     ac_prev=bindir ;;
884   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885     bindir=$ac_optarg ;;
886
887   -build | --build | --buil | --bui | --bu)
888     ac_prev=build_alias ;;
889   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890     build_alias=$ac_optarg ;;
891
892   -cache-file | --cache-file | --cache-fil | --cache-fi \
893   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894     ac_prev=cache_file ;;
895   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897     cache_file=$ac_optarg ;;
898
899   --config-cache | -C)
900     cache_file=config.cache ;;
901
902   -datadir | --datadir | --datadi | --datad)
903     ac_prev=datadir ;;
904   -datadir=* | --datadir=* | --datadi=* | --datad=*)
905     datadir=$ac_optarg ;;
906
907   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908   | --dataroo | --dataro | --datar)
909     ac_prev=datarootdir ;;
910   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912     datarootdir=$ac_optarg ;;
913
914   -disable-* | --disable-*)
915     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916     # Reject names that are not valid shell variable names.
917     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
919    { (exit 1); exit 1; }; }
920     ac_useropt_orig=$ac_useropt
921     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922     case $ac_user_opts in
923       *"
924 "enable_$ac_useropt"
925 "*) ;;
926       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927          ac_unrecognized_sep=', ';;
928     esac
929     eval enable_$ac_useropt=no ;;
930
931   -docdir | --docdir | --docdi | --doc | --do)
932     ac_prev=docdir ;;
933   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934     docdir=$ac_optarg ;;
935
936   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937     ac_prev=dvidir ;;
938   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939     dvidir=$ac_optarg ;;
940
941   -enable-* | --enable-*)
942     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943     # Reject names that are not valid shell variable names.
944     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
946    { (exit 1); exit 1; }; }
947     ac_useropt_orig=$ac_useropt
948     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949     case $ac_user_opts in
950       *"
951 "enable_$ac_useropt"
952 "*) ;;
953       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954          ac_unrecognized_sep=', ';;
955     esac
956     eval enable_$ac_useropt=\$ac_optarg ;;
957
958   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960   | --exec | --exe | --ex)
961     ac_prev=exec_prefix ;;
962   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964   | --exec=* | --exe=* | --ex=*)
965     exec_prefix=$ac_optarg ;;
966
967   -gas | --gas | --ga | --g)
968     # Obsolete; use --with-gas.
969     with_gas=yes ;;
970
971   -help | --help | --hel | --he | -h)
972     ac_init_help=long ;;
973   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974     ac_init_help=recursive ;;
975   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976     ac_init_help=short ;;
977
978   -host | --host | --hos | --ho)
979     ac_prev=host_alias ;;
980   -host=* | --host=* | --hos=* | --ho=*)
981     host_alias=$ac_optarg ;;
982
983   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984     ac_prev=htmldir ;;
985   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986   | --ht=*)
987     htmldir=$ac_optarg ;;
988
989   -includedir | --includedir | --includedi | --included | --include \
990   | --includ | --inclu | --incl | --inc)
991     ac_prev=includedir ;;
992   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993   | --includ=* | --inclu=* | --incl=* | --inc=*)
994     includedir=$ac_optarg ;;
995
996   -infodir | --infodir | --infodi | --infod | --info | --inf)
997     ac_prev=infodir ;;
998   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999     infodir=$ac_optarg ;;
1000
1001   -libdir | --libdir | --libdi | --libd)
1002     ac_prev=libdir ;;
1003   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004     libdir=$ac_optarg ;;
1005
1006   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007   | --libexe | --libex | --libe)
1008     ac_prev=libexecdir ;;
1009   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010   | --libexe=* | --libex=* | --libe=*)
1011     libexecdir=$ac_optarg ;;
1012
1013   -localedir | --localedir | --localedi | --localed | --locale)
1014     ac_prev=localedir ;;
1015   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016     localedir=$ac_optarg ;;
1017
1018   -localstatedir | --localstatedir | --localstatedi | --localstated \
1019   | --localstate | --localstat | --localsta | --localst | --locals)
1020     ac_prev=localstatedir ;;
1021   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023     localstatedir=$ac_optarg ;;
1024
1025   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026     ac_prev=mandir ;;
1027   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028     mandir=$ac_optarg ;;
1029
1030   -nfp | --nfp | --nf)
1031     # Obsolete; use --without-fp.
1032     with_fp=no ;;
1033
1034   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035   | --no-cr | --no-c | -n)
1036     no_create=yes ;;
1037
1038   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040     no_recursion=yes ;;
1041
1042   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044   | --oldin | --oldi | --old | --ol | --o)
1045     ac_prev=oldincludedir ;;
1046   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049     oldincludedir=$ac_optarg ;;
1050
1051   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052     ac_prev=prefix ;;
1053   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054     prefix=$ac_optarg ;;
1055
1056   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057   | --program-pre | --program-pr | --program-p)
1058     ac_prev=program_prefix ;;
1059   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061     program_prefix=$ac_optarg ;;
1062
1063   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064   | --program-suf | --program-su | --program-s)
1065     ac_prev=program_suffix ;;
1066   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068     program_suffix=$ac_optarg ;;
1069
1070   -program-transform-name | --program-transform-name \
1071   | --program-transform-nam | --program-transform-na \
1072   | --program-transform-n | --program-transform- \
1073   | --program-transform | --program-transfor \
1074   | --program-transfo | --program-transf \
1075   | --program-trans | --program-tran \
1076   | --progr-tra | --program-tr | --program-t)
1077     ac_prev=program_transform_name ;;
1078   -program-transform-name=* | --program-transform-name=* \
1079   | --program-transform-nam=* | --program-transform-na=* \
1080   | --program-transform-n=* | --program-transform-=* \
1081   | --program-transform=* | --program-transfor=* \
1082   | --program-transfo=* | --program-transf=* \
1083   | --program-trans=* | --program-tran=* \
1084   | --progr-tra=* | --program-tr=* | --program-t=*)
1085     program_transform_name=$ac_optarg ;;
1086
1087   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088     ac_prev=pdfdir ;;
1089   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090     pdfdir=$ac_optarg ;;
1091
1092   -psdir | --psdir | --psdi | --psd | --ps)
1093     ac_prev=psdir ;;
1094   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095     psdir=$ac_optarg ;;
1096
1097   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098   | -silent | --silent | --silen | --sile | --sil)
1099     silent=yes ;;
1100
1101   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102     ac_prev=sbindir ;;
1103   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104   | --sbi=* | --sb=*)
1105     sbindir=$ac_optarg ;;
1106
1107   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109   | --sharedst | --shareds | --shared | --share | --shar \
1110   | --sha | --sh)
1111     ac_prev=sharedstatedir ;;
1112   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115   | --sha=* | --sh=*)
1116     sharedstatedir=$ac_optarg ;;
1117
1118   -site | --site | --sit)
1119     ac_prev=site ;;
1120   -site=* | --site=* | --sit=*)
1121     site=$ac_optarg ;;
1122
1123   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124     ac_prev=srcdir ;;
1125   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126     srcdir=$ac_optarg ;;
1127
1128   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129   | --syscon | --sysco | --sysc | --sys | --sy)
1130     ac_prev=sysconfdir ;;
1131   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133     sysconfdir=$ac_optarg ;;
1134
1135   -target | --target | --targe | --targ | --tar | --ta | --t)
1136     ac_prev=target_alias ;;
1137   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138     target_alias=$ac_optarg ;;
1139
1140   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141     verbose=yes ;;
1142
1143   -version | --version | --versio | --versi | --vers | -V)
1144     ac_init_version=: ;;
1145
1146   -with-* | --with-*)
1147     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148     # Reject names that are not valid shell variable names.
1149     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1151    { (exit 1); exit 1; }; }
1152     ac_useropt_orig=$ac_useropt
1153     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154     case $ac_user_opts in
1155       *"
1156 "with_$ac_useropt"
1157 "*) ;;
1158       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159          ac_unrecognized_sep=', ';;
1160     esac
1161     eval with_$ac_useropt=\$ac_optarg ;;
1162
1163   -without-* | --without-*)
1164     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165     # Reject names that are not valid shell variable names.
1166     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1168    { (exit 1); exit 1; }; }
1169     ac_useropt_orig=$ac_useropt
1170     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171     case $ac_user_opts in
1172       *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176          ac_unrecognized_sep=', ';;
1177     esac
1178     eval with_$ac_useropt=no ;;
1179
1180   --x)
1181     # Obsolete; use --with-x.
1182     with_x=yes ;;
1183
1184   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185   | --x-incl | --x-inc | --x-in | --x-i)
1186     ac_prev=x_includes ;;
1187   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189     x_includes=$ac_optarg ;;
1190
1191   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193     ac_prev=x_libraries ;;
1194   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196     x_libraries=$ac_optarg ;;
1197
1198   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1199 Try \`$0 --help' for more information." >&2
1200    { (exit 1); exit 1; }; }
1201     ;;
1202
1203   *=*)
1204     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205     # Reject names that are not valid shell variable names.
1206     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1207       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1208    { (exit 1); exit 1; }; }
1209     eval $ac_envvar=\$ac_optarg
1210     export $ac_envvar ;;
1211
1212   *)
1213     # FIXME: should be removed in autoconf 3.0.
1214     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1218     ;;
1219
1220   esac
1221 done
1222
1223 if test -n "$ac_prev"; then
1224   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1226    { (exit 1); exit 1; }; }
1227 fi
1228
1229 if test -n "$ac_unrecognized_opts"; then
1230   case $enable_option_checking in
1231     no) ;;
1232     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1233    { (exit 1); exit 1; }; } ;;
1234     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235   esac
1236 fi
1237
1238 # Check all directory arguments for consistency.
1239 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240                 datadir sysconfdir sharedstatedir localstatedir includedir \
1241                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242                 libdir localedir mandir
1243 do
1244   eval ac_val=\$$ac_var
1245   # Remove trailing slashes.
1246   case $ac_val in
1247     */ )
1248       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249       eval $ac_var=\$ac_val;;
1250   esac
1251   # Be sure to have absolute directory names.
1252   case $ac_val in
1253     [\\/$]* | ?:[\\/]* )  continue;;
1254     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255   esac
1256   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1257    { (exit 1); exit 1; }; }
1258 done
1259
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1263 build=$build_alias
1264 host=$host_alias
1265 target=$target_alias
1266
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269   if test "x$build_alias" = x; then
1270     cross_compiling=maybe
1271     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1272     If a cross compiler is detected then cross compile mode will be used." >&2
1273   elif test "x$build_alias" != "x$host_alias"; then
1274     cross_compiling=yes
1275   fi
1276 fi
1277
1278 ac_tool_prefix=
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281 test "$silent" = yes && exec 6>/dev/null
1282
1283
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1288    { (exit 1); exit 1; }; }
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1291    { (exit 1); exit 1; }; }
1292
1293
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296   ac_srcdir_defaulted=yes
1297   # Try the directory containing this script, then the parent directory.
1298   ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300          X"$as_myself" : 'X\(//\)[^/]' \| \
1301          X"$as_myself" : 'X\(//\)$' \| \
1302          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305             s//\1/
1306             q
1307           }
1308           /^X\(\/\/\)[^/].*/{
1309             s//\1/
1310             q
1311           }
1312           /^X\(\/\/\)$/{
1313             s//\1/
1314             q
1315           }
1316           /^X\(\/\).*/{
1317             s//\1/
1318             q
1319           }
1320           s/.*/./; q'`
1321   srcdir=$ac_confdir
1322   if test ! -r "$srcdir/$ac_unique_file"; then
1323     srcdir=..
1324   fi
1325 else
1326   ac_srcdir_defaulted=no
1327 fi
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1331    { (exit 1); exit 1; }; }
1332 fi
1333 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 ac_abs_confdir=`(
1335         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1336    { (exit 1); exit 1; }; }
1337         pwd)`
1338 # When building in place, set srcdir=.
1339 if test "$ac_abs_confdir" = "$ac_pwd"; then
1340   srcdir=.
1341 fi
1342 # Remove unnecessary trailing slashes from srcdir.
1343 # Double slashes in file names in object file debugging info
1344 # mess up M-x gdb in Emacs.
1345 case $srcdir in
1346 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1347 esac
1348 for ac_var in $ac_precious_vars; do
1349   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1350   eval ac_env_${ac_var}_value=\$${ac_var}
1351   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1352   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1353 done
1354
1355 #
1356 # Report the --help message.
1357 #
1358 if test "$ac_init_help" = "long"; then
1359   # Omit some internal or obsolete options to make the list less imposing.
1360   # This message is too long to be a string in the A/UX 3.1 sh.
1361   cat <<_ACEOF
1362 \`configure' configures this package to adapt to many kinds of systems.
1363
1364 Usage: $0 [OPTION]... [VAR=VALUE]...
1365
1366 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1367 VAR=VALUE.  See below for descriptions of some of the useful variables.
1368
1369 Defaults for the options are specified in brackets.
1370
1371 Configuration:
1372   -h, --help              display this help and exit
1373       --help=short        display options specific to this package
1374       --help=recursive    display the short help of all the included packages
1375   -V, --version           display version information and exit
1376   -q, --quiet, --silent   do not print \`checking...' messages
1377       --cache-file=FILE   cache test results in FILE [disabled]
1378   -C, --config-cache      alias for \`--cache-file=config.cache'
1379   -n, --no-create         do not create output files
1380       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1381
1382 Installation directories:
1383   --prefix=PREFIX         install architecture-independent files in PREFIX
1384                           [$ac_default_prefix]
1385   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1386                           [PREFIX]
1387
1388 By default, \`make install' will install all the files in
1389 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1390 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1391 for instance \`--prefix=\$HOME'.
1392
1393 For better control, use the options below.
1394
1395 Fine tuning of the installation directories:
1396   --bindir=DIR            user executables [EPREFIX/bin]
1397   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1398   --libexecdir=DIR        program executables [EPREFIX/libexec]
1399   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1400   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1401   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1402   --libdir=DIR            object code libraries [EPREFIX/lib]
1403   --includedir=DIR        C header files [PREFIX/include]
1404   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1405   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1406   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1407   --infodir=DIR           info documentation [DATAROOTDIR/info]
1408   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1409   --mandir=DIR            man documentation [DATAROOTDIR/man]
1410   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1411   --htmldir=DIR           html documentation [DOCDIR]
1412   --dvidir=DIR            dvi documentation [DOCDIR]
1413   --pdfdir=DIR            pdf documentation [DOCDIR]
1414   --psdir=DIR             ps documentation [DOCDIR]
1415 _ACEOF
1416
1417   cat <<\_ACEOF
1418
1419 System types:
1420   --build=BUILD     configure for building on BUILD [guessed]
1421   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1422 _ACEOF
1423 fi
1424
1425 if test -n "$ac_init_help"; then
1426
1427   cat <<\_ACEOF
1428
1429 Optional Features:
1430   --disable-option-checking  ignore unrecognized --enable/--with options
1431   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1432   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1433   --enable-config=CONF    put settings in config-CONF.make and config-CONF.h;
1434                           do `make conf=CONF' to get output in ./out-CONF
1435   --enable-documentation  build Documentation. Default: on
1436   --enable-relocation     compile with dynamic relocation. Default: off
1437   --enable-rpath          hardcode runtime library path. Default: off
1438   --enable-static-gxx     link libstdc++.a statically. Default: off
1439   --enable-debugging      compile with debugging info. Default: on
1440   --enable-optimising     compile with optimising. Default: on
1441   --enable-profiling      compile with gprof support. Default: off
1442   --enable-pipe           compile with -pipe. Default: on
1443
1444 Optional Packages:
1445   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1446   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1447   --with-ncsb-dir=DIR     location of Century Schoolbook fonts.
1448   --with-localedir=DIR    location of locales. Default: PREFIX/share/locale
1449   --with-lang=LANG        use LANG as language to emit messages
1450   --with-python-include=DIR
1451                           location of the python include dir
1452   --with-python-lib=NAME  name of the python lib
1453
1454 Some influential environment variables:
1455   CC          C compiler command
1456   CFLAGS      C compiler flags
1457   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1458               nonstandard directory <lib dir>
1459   LIBS        libraries to pass to the linker, e.g. -l<library>
1460   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1461               you have headers in a nonstandard directory <include dir>
1462   CXX         C++ compiler command
1463   CXXFLAGS    C++ compiler flags
1464   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1465               the first program found out of: `bison -y', `byacc', `yacc'.
1466   YFLAGS      The list of arguments that will be passed by default to $YACC.
1467               This script will default YFLAGS to the empty string to avoid a
1468               default value of `-d' given by some make applications.
1469   CXXCPP      C++ preprocessor
1470
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1473
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479   # If there are subdirs, report their specific --help.
1480   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481     test -d "$ac_dir" ||
1482       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483       continue
1484     ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490   # A ".." for each directory in $ac_dir_suffix.
1491   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492   case $ac_top_builddir_sub in
1493   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495   esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503   .)  # We are building in place.
1504     ac_srcdir=.
1505     ac_top_srcdir=$ac_top_builddir_sub
1506     ac_abs_top_srcdir=$ac_pwd ;;
1507   [\\/]* | ?:[\\/]* )  # Absolute name.
1508     ac_srcdir=$srcdir$ac_dir_suffix;
1509     ac_top_srcdir=$srcdir
1510     ac_abs_top_srcdir=$srcdir ;;
1511   *) # Relative name.
1512     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513     ac_top_srcdir=$ac_top_build_prefix$srcdir
1514     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518     cd "$ac_dir" || { ac_status=$?; continue; }
1519     # Check for guested configure.
1520     if test -f "$ac_srcdir/configure.gnu"; then
1521       echo &&
1522       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523     elif test -f "$ac_srcdir/configure"; then
1524       echo &&
1525       $SHELL "$ac_srcdir/configure" --help=recursive
1526     else
1527       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528     fi || ac_status=$?
1529     cd "$ac_pwd" || { ac_status=$?; break; }
1530   done
1531 fi
1532
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535   cat <<\_ACEOF
1536 configure
1537 generated by GNU Autoconf 2.63
1538
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543 _ACEOF
1544   exit
1545 fi
1546 cat >config.log <<_ACEOF
1547 This file contains any messages produced by compilers while
1548 running configure, to aid debugging if configure makes a mistake.
1549
1550 It was created by $as_me, which was
1551 generated by GNU Autoconf 2.63.  Invocation command line was
1552
1553   $ $0 $@
1554
1555 _ACEOF
1556 exec 5>>config.log
1557 {
1558 cat <<_ASUNAME
1559 ## --------- ##
1560 ## Platform. ##
1561 ## --------- ##
1562
1563 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568
1569 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1571
1572 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1573 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1574 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1575 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1576 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1577 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1578 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1579
1580 _ASUNAME
1581
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 for as_dir in $PATH
1584 do
1585   IFS=$as_save_IFS
1586   test -z "$as_dir" && as_dir=.
1587   $as_echo "PATH: $as_dir"
1588 done
1589 IFS=$as_save_IFS
1590
1591 } >&5
1592
1593 cat >&5 <<_ACEOF
1594
1595
1596 ## ----------- ##
1597 ## Core tests. ##
1598 ## ----------- ##
1599
1600 _ACEOF
1601
1602
1603 # Keep a trace of the command line.
1604 # Strip out --no-create and --no-recursion so they do not pile up.
1605 # Strip out --silent because we don't want to record it for future runs.
1606 # Also quote any args containing shell meta-characters.
1607 # Make two passes to allow for proper duplicate-argument suppression.
1608 ac_configure_args=
1609 ac_configure_args0=
1610 ac_configure_args1=
1611 ac_must_keep_next=false
1612 for ac_pass in 1 2
1613 do
1614   for ac_arg
1615   do
1616     case $ac_arg in
1617     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619     | -silent | --silent | --silen | --sile | --sil)
1620       continue ;;
1621     *\'*)
1622       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1623     esac
1624     case $ac_pass in
1625     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1626     2)
1627       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1628       if test $ac_must_keep_next = true; then
1629         ac_must_keep_next=false # Got value, back to normal.
1630       else
1631         case $ac_arg in
1632           *=* | --config-cache | -C | -disable-* | --disable-* \
1633           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635           | -with-* | --with-* | -without-* | --without-* | --x)
1636             case "$ac_configure_args0 " in
1637               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638             esac
1639             ;;
1640           -* ) ac_must_keep_next=true ;;
1641         esac
1642       fi
1643       ac_configure_args="$ac_configure_args '$ac_arg'"
1644       ;;
1645     esac
1646   done
1647 done
1648 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1650
1651 # When interrupted or exit'd, cleanup temporary files, and complete
1652 # config.log.  We remove comments because anyway the quotes in there
1653 # would cause problems or look ugly.
1654 # WARNING: Use '\'' to represent an apostrophe within the trap.
1655 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1656 trap 'exit_status=$?
1657   # Save into config.log some information that might help in debugging.
1658   {
1659     echo
1660
1661     cat <<\_ASBOX
1662 ## ---------------- ##
1663 ## Cache variables. ##
1664 ## ---------------- ##
1665 _ASBOX
1666     echo
1667     # The following way of writing the cache mishandles newlines in values,
1668 (
1669   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670     eval ac_val=\$$ac_var
1671     case $ac_val in #(
1672     *${as_nl}*)
1673       case $ac_var in #(
1674       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1675 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1676       esac
1677       case $ac_var in #(
1678       _ | IFS | as_nl) ;; #(
1679       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1680       *) $as_unset $ac_var ;;
1681       esac ;;
1682     esac
1683   done
1684   (set) 2>&1 |
1685     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1686     *${as_nl}ac_space=\ *)
1687       sed -n \
1688         "s/'\''/'\''\\\\'\'''\''/g;
1689           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1690       ;; #(
1691     *)
1692       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1693       ;;
1694     esac |
1695     sort
1696 )
1697     echo
1698
1699     cat <<\_ASBOX
1700 ## ----------------- ##
1701 ## Output variables. ##
1702 ## ----------------- ##
1703 _ASBOX
1704     echo
1705     for ac_var in $ac_subst_vars
1706     do
1707       eval ac_val=\$$ac_var
1708       case $ac_val in
1709       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710       esac
1711       $as_echo "$ac_var='\''$ac_val'\''"
1712     done | sort
1713     echo
1714
1715     if test -n "$ac_subst_files"; then
1716       cat <<\_ASBOX
1717 ## ------------------- ##
1718 ## File substitutions. ##
1719 ## ------------------- ##
1720 _ASBOX
1721       echo
1722       for ac_var in $ac_subst_files
1723       do
1724         eval ac_val=\$$ac_var
1725         case $ac_val in
1726         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727         esac
1728         $as_echo "$ac_var='\''$ac_val'\''"
1729       done | sort
1730       echo
1731     fi
1732
1733     if test -s confdefs.h; then
1734       cat <<\_ASBOX
1735 ## ----------- ##
1736 ## confdefs.h. ##
1737 ## ----------- ##
1738 _ASBOX
1739       echo
1740       cat confdefs.h
1741       echo
1742     fi
1743     test "$ac_signal" != 0 &&
1744       $as_echo "$as_me: caught signal $ac_signal"
1745     $as_echo "$as_me: exit $exit_status"
1746   } >&5
1747   rm -f core *.core core.conftest.* &&
1748     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1749     exit $exit_status
1750 ' 0
1751 for ac_signal in 1 2 13 15; do
1752   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1753 done
1754 ac_signal=0
1755
1756 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1757 rm -f -r conftest* confdefs.h
1758
1759 # Predefined preprocessor variables.
1760
1761 cat >>confdefs.h <<_ACEOF
1762 #define PACKAGE_NAME "$PACKAGE_NAME"
1763 _ACEOF
1764
1765
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1768 _ACEOF
1769
1770
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1773 _ACEOF
1774
1775
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_STRING "$PACKAGE_STRING"
1778 _ACEOF
1779
1780
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1783 _ACEOF
1784
1785
1786 # Let the site file select an alternate cache file if it wants to.
1787 # Prefer an explicitly selected file to automatically selected ones.
1788 ac_site_file1=NONE
1789 ac_site_file2=NONE
1790 if test -n "$CONFIG_SITE"; then
1791   ac_site_file1=$CONFIG_SITE
1792 elif test "x$prefix" != xNONE; then
1793   ac_site_file1=$prefix/share/config.site
1794   ac_site_file2=$prefix/etc/config.site
1795 else
1796   ac_site_file1=$ac_default_prefix/share/config.site
1797   ac_site_file2=$ac_default_prefix/etc/config.site
1798 fi
1799 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1800 do
1801   test "x$ac_site_file" = xNONE && continue
1802   if test -r "$ac_site_file"; then
1803     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1804 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1805     sed 's/^/| /' "$ac_site_file" >&5
1806     . "$ac_site_file"
1807   fi
1808 done
1809
1810 if test -r "$cache_file"; then
1811   # Some versions of bash will fail to source /dev/null (special
1812   # files actually), so we avoid doing that.
1813   if test -f "$cache_file"; then
1814     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1815 $as_echo "$as_me: loading cache $cache_file" >&6;}
1816     case $cache_file in
1817       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1818       *)                      . "./$cache_file";;
1819     esac
1820   fi
1821 else
1822   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1823 $as_echo "$as_me: creating cache $cache_file" >&6;}
1824   >$cache_file
1825 fi
1826
1827 # Check that the precious variables saved in the cache have kept the same
1828 # value.
1829 ac_cache_corrupted=false
1830 for ac_var in $ac_precious_vars; do
1831   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1832   eval ac_new_set=\$ac_env_${ac_var}_set
1833   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1834   eval ac_new_val=\$ac_env_${ac_var}_value
1835   case $ac_old_set,$ac_new_set in
1836     set,)
1837       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1838 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1839       ac_cache_corrupted=: ;;
1840     ,set)
1841       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1842 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1843       ac_cache_corrupted=: ;;
1844     ,);;
1845     *)
1846       if test "x$ac_old_val" != "x$ac_new_val"; then
1847         # differences in whitespace do not lead to failure.
1848         ac_old_val_w=`echo x $ac_old_val`
1849         ac_new_val_w=`echo x $ac_new_val`
1850         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1851           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1852 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1853           ac_cache_corrupted=:
1854         else
1855           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1856 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1857           eval $ac_var=\$ac_old_val
1858         fi
1859         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1860 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1861         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1862 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1863       fi;;
1864   esac
1865   # Pass precious variables to config.status.
1866   if test "$ac_new_set" = set; then
1867     case $ac_new_val in
1868     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1869     *) ac_arg=$ac_var=$ac_new_val ;;
1870     esac
1871     case " $ac_configure_args " in
1872       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1873       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1874     esac
1875   fi
1876 done
1877 if $ac_cache_corrupted; then
1878   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1880   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1881 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1882   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1883 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1884    { (exit 1); exit 1; }; }
1885 fi
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903 ac_ext=c
1904 ac_cpp='$CPP $CPPFLAGS'
1905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1908
1909
1910
1911 # Bootstrap StepMake configure
1912 # For user package:
1913 ac_aux_dir=
1914 for ac_dir in stepmake/bin "$srcdir"/stepmake/bin; do
1915   if test -f "$ac_dir/install-sh"; then
1916     ac_aux_dir=$ac_dir
1917     ac_install_sh="$ac_aux_dir/install-sh -c"
1918     break
1919   elif test -f "$ac_dir/install.sh"; then
1920     ac_aux_dir=$ac_dir
1921     ac_install_sh="$ac_aux_dir/install.sh -c"
1922     break
1923   elif test -f "$ac_dir/shtool"; then
1924     ac_aux_dir=$ac_dir
1925     ac_install_sh="$ac_aux_dir/shtool install -c"
1926     break
1927   fi
1928 done
1929 if test -z "$ac_aux_dir"; then
1930   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in stepmake/bin \"$srcdir\"/stepmake/bin" >&5
1931 $as_echo "$as_me: error: cannot find install-sh or install.sh in stepmake/bin \"$srcdir\"/stepmake/bin" >&2;}
1932    { (exit 1); exit 1; }; }
1933 fi
1934
1935 # These three variables are undocumented and unsupported,
1936 # and are intended to be withdrawn in a future Autoconf release.
1937 # They can cause serious problems if a builder's source tree is in a directory
1938 # whose full name contains unusual characters.
1939 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1940 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1941 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1942
1943
1944
1945 # For stepmake package:
1946 # AC_CONFIG_AUX_DIR(bin)
1947
1948
1949 # Make sure we can run config.sub.
1950 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1951   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1952 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1953    { (exit 1); exit 1; }; }
1954
1955 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1956 $as_echo_n "checking build system type... " >&6; }
1957 if test "${ac_cv_build+set}" = set; then
1958   $as_echo_n "(cached) " >&6
1959 else
1960   ac_build_alias=$build_alias
1961 test "x$ac_build_alias" = x &&
1962   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1963 test "x$ac_build_alias" = x &&
1964   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1965 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1966    { (exit 1); exit 1; }; }
1967 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1968   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1969 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1970    { (exit 1); exit 1; }; }
1971
1972 fi
1973 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1974 $as_echo "$ac_cv_build" >&6; }
1975 case $ac_cv_build in
1976 *-*-*) ;;
1977 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1978 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1979    { (exit 1); exit 1; }; };;
1980 esac
1981 build=$ac_cv_build
1982 ac_save_IFS=$IFS; IFS='-'
1983 set x $ac_cv_build
1984 shift
1985 build_cpu=$1
1986 build_vendor=$2
1987 shift; shift
1988 # Remember, the first character of IFS is used to create $*,
1989 # except with old shells:
1990 build_os=$*
1991 IFS=$ac_save_IFS
1992 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1993
1994
1995
1996
1997     . $srcdir/VERSION
1998     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
1999     MICRO_VERSION=$PATCH_LEVEL
2000     TOPLEVEL_VERSION=$FULL_VERSION
2001     if test x$MY_PATCH_LEVEL != x; then
2002         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
2003     fi
2004     VERSION=$FULL_VERSION
2005     export MAJOR_VERSION MINOR_VERSION PATCH_LEVEL
2006     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
2007     #dnl
2008     PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
2009     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
2010     #dnl
2011
2012     # No versioning on directory names of sub-packages
2013     # urg, urg
2014     stepmake=${datadir}/stepmake
2015     presome=${prefix}
2016     if test "$prefix" = "NONE"; then
2017             presome=${ac_default_prefix}
2018     fi
2019     stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
2020
2021     # urg, how is this supposed to work?
2022     if test "$program_prefix" = "NONE"; then
2023           program_prefix=
2024     fi
2025     if test "$program_suffix" = "NONE"; then
2026           program_suffix=
2027     fi
2028
2029     { $as_echo "$as_me:$LINENO: checking Package" >&5
2030 $as_echo_n "checking Package... " >&6; }
2031     if test "$PACKAGE" = "STEPMAKE"; then
2032         { $as_echo "$as_me:$LINENO: result: Stepmake package!" >&5
2033 $as_echo "Stepmake package!" >&6; }
2034
2035         { $as_echo "$as_me:$LINENO: checking builddir" >&5
2036 $as_echo_n "checking builddir... " >&6; }
2037
2038         ugh_ugh_autoconf250_builddir="`pwd`"
2039
2040         if test "$srcdir" = "."; then
2041             srcdir_build=yes
2042         else
2043             srcdir_build=no
2044             package_builddir="`dirname $ugh_ugh_autoconf250_builddir`"
2045             package_srcdir="`dirname  $srcdir`"
2046         fi
2047         { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2048 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2049
2050         (cd stepmake 2>/dev/null || mkdir stepmake)
2051         (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
2052         stepmake=stepmake
2053     else
2054         { $as_echo "$as_me:$LINENO: result: $PACKAGE" >&5
2055 $as_echo "$PACKAGE" >&6; }
2056
2057         { $as_echo "$as_me:$LINENO: checking builddir" >&5
2058 $as_echo_n "checking builddir... " >&6; }
2059         ugh_ugh_autoconf250_builddir="`pwd`"
2060
2061         here_dir=$(cd . && pwd)
2062         full_src_dir=$(cd $srcdir && pwd)
2063
2064         if test "$full_src_dir" = "$here_dir"; then
2065             srcdir_build=yes
2066         else
2067             srcdir_build=no
2068         fi
2069         { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2070 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2071
2072         { $as_echo "$as_me:$LINENO: checking for stepmake" >&5
2073 $as_echo_n "checking for stepmake... " >&6; }
2074         # Check for installed stepmake
2075         if test -d $stepmake; then
2076             { $as_echo "$as_me:$LINENO: result: $stepmake" >&5
2077 $as_echo "$stepmake" >&6; }
2078         else
2079             stepmake="`cd $srcdir/stepmake; pwd`"
2080             { $as_echo "$as_me:$LINENO: result: $srcdir/stepmake  ($datadir/stepmake not found)" >&5
2081 $as_echo "$srcdir/stepmake  ($datadir/stepmake not found)" >&6; }
2082         fi
2083     fi
2084
2085
2086
2087     # Use absolute directory for non-srcdir builds, so that build
2088     # dir can be moved.
2089     if test "$srcdir_build" = "no" ;  then
2090         srcdir="`cd $srcdir; pwd`"
2091     fi
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103     # stepmake nonstandard names
2104
2105
2106
2107     # We don't need the upper case variant,
2108     # so stick to macros are uppercase convention.
2109     # AC_DEFINE_UNQUOTED(package, ["${package}"])
2110     # AC_DEFINE_UNQUOTED(PACKAGE, ["${PACKAGE}"])
2111     cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE "${package}"
2113 _ACEOF
2114
2115     cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_NAME "${PACKAGE_NAME}"
2117 _ACEOF
2118
2119     cat >>confdefs.h <<_ACEOF
2120 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2121 _ACEOF
2122
2123
2124     if test -z "$package_depth"; then
2125         package_depth="."
2126     else
2127         package_depth="../$package_depth"
2128     fi
2129     export package_depth
2130
2131
2132     AUTOGENERATE="This file was automatically generated by configure"
2133
2134
2135     CONFIGSUFFIX=
2136     # Check whether --enable-config was given.
2137 if test "${enable_config+set}" = set; then
2138   enableval=$enable_config; CONFIGURATION=$enableval
2139 fi
2140
2141
2142     ##'`#
2143
2144     test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
2145     CONFIGFILE=config$CONFIGSUFFIX
2146
2147
2148     { $as_echo "$as_me:$LINENO: checking host system type" >&5
2149 $as_echo_n "checking host system type... " >&6; }
2150 if test "${ac_cv_host+set}" = set; then
2151   $as_echo_n "(cached) " >&6
2152 else
2153   if test "x$host_alias" = x; then
2154   ac_cv_host=$ac_cv_build
2155 else
2156   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2157     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2158 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2159    { (exit 1); exit 1; }; }
2160 fi
2161
2162 fi
2163 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2164 $as_echo "$ac_cv_host" >&6; }
2165 case $ac_cv_host in
2166 *-*-*) ;;
2167 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2168 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2169    { (exit 1); exit 1; }; };;
2170 esac
2171 host=$ac_cv_host
2172 ac_save_IFS=$IFS; IFS='-'
2173 set x $ac_cv_host
2174 shift
2175 host_cpu=$1
2176 host_vendor=$2
2177 shift; shift
2178 # Remember, the first character of IFS is used to create $*,
2179 # except with old shells:
2180 host_os=$*
2181 IFS=$ac_save_IFS
2182 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2183
2184
2185
2186     for ac_prog in gmake make
2187 do
2188   # Extract the first word of "$ac_prog", so it can be a program name with args.
2189 set dummy $ac_prog; ac_word=$2
2190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2191 $as_echo_n "checking for $ac_word... " >&6; }
2192 if test "${ac_cv_prog_MAKE+set}" = set; then
2193   $as_echo_n "(cached) " >&6
2194 else
2195   if test -n "$MAKE"; then
2196   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2197 else
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 for as_dir in $PATH
2200 do
2201   IFS=$as_save_IFS
2202   test -z "$as_dir" && as_dir=.
2203   for ac_exec_ext in '' $ac_executable_extensions; do
2204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2205     ac_cv_prog_MAKE="$ac_prog"
2206     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207     break 2
2208   fi
2209 done
2210 done
2211 IFS=$as_save_IFS
2212
2213 fi
2214 fi
2215 MAKE=$ac_cv_prog_MAKE
2216 if test -n "$MAKE"; then
2217   { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
2218 $as_echo "$MAKE" >&6; }
2219 else
2220   { $as_echo "$as_me:$LINENO: result: no" >&5
2221 $as_echo "no" >&6; }
2222 fi
2223
2224
2225   test -n "$MAKE" && break
2226 done
2227 test -n "$MAKE" || MAKE="no"
2228
2229
2230
2231     r="`eval echo '$'"MAKE"`"
2232     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
2233         true
2234     else
2235         ##STEPMAKE_WARN(cannot find . )
2236         false
2237     fi
2238
2239     if test $? -ne 0; then
2240
2241     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
2242
2243         if test "REQUIRED" = "REQUIRED"; then
2244             command="echo ERROR: gmake make not found"
2245             # abort configure process here?
2246         else
2247             command="- echo gmake make not found"
2248         fi
2249         eval "MAKE"='$command'
2250         false
2251     else
2252         true
2253     fi
2254
2255     if test $? -eq 0 -a -n ""; then
2256
2257     r="`eval echo '$'"MAKE"`"
2258     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2259 $as_echo_n "checking $r version... " >&6; }
2260     exe=`
2261     ## which doesn't work in ash, if /usr/bin/which isn't installed
2262     ## type -p doesn't work in ash
2263     ## command -v doesn't work in zsh
2264     ## command -v "$r" 2>&1
2265     ## this test should work in ash, bash, pdksh (ksh), zsh
2266     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2267 `
2268     if test -n ""; then
2269         ver=""
2270     else
2271         ver=`
2272     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2273     ##
2274     ## ARG.
2275     ## Workaround for broken Debian gcc version string:
2276     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2277     ##
2278     ## -V: Workaround for python
2279
2280     #dnl
2281
2282     ## Assume and hunt for dotted version multiplet.
2283     ## use eval trickery, because we cannot use multi-level $() instead of ``
2284     ## for compatibility reasons.
2285
2286     ## grab the first version number in  --version output.
2287     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2288                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2289                 head -n 1 |
2290                 tr ' ' '\n' |
2291                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2292                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2293                 head -n 1\`\"
2294
2295     if test -z "$_ver"; then
2296         ## If empty, try date [fontforge]
2297         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2298             | head -n 1 \
2299             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2300     fi
2301     echo "$_ver"
2302     #dnl
2303 `
2304     fi
2305     num=`
2306     echo "$ver" | awk -F. '
2307     {
2308       if ($3) {three = $3}
2309       else {three = 0}
2310     }
2311     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2312 `
2313     req=`
2314     echo "" | awk -F. '
2315     {
2316       if ($3) {three = $3}
2317       else {three = 0}
2318     }
2319     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2320 `
2321     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2322 $as_echo "$ver" >&6; }
2323     if test "$num" -lt "$req"; then
2324
2325     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2326
2327     fi
2328     vervar="`echo MAKE | tr 'a-z' 'A-Z'`_VERSION"
2329     eval `echo $vervar=$num`
2330 ##    AC_SUBST(`eval echo $vervar`)
2331
2332     fi
2333
2334
2335     for ac_prog in find
2336 do
2337   # Extract the first word of "$ac_prog", so it can be a program name with args.
2338 set dummy $ac_prog; ac_word=$2
2339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 $as_echo_n "checking for $ac_word... " >&6; }
2341 if test "${ac_cv_prog_FIND+set}" = set; then
2342   $as_echo_n "(cached) " >&6
2343 else
2344   if test -n "$FIND"; then
2345   ac_cv_prog_FIND="$FIND" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350   IFS=$as_save_IFS
2351   test -z "$as_dir" && as_dir=.
2352   for ac_exec_ext in '' $ac_executable_extensions; do
2353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354     ac_cv_prog_FIND="$ac_prog"
2355     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356     break 2
2357   fi
2358 done
2359 done
2360 IFS=$as_save_IFS
2361
2362 fi
2363 fi
2364 FIND=$ac_cv_prog_FIND
2365 if test -n "$FIND"; then
2366   { $as_echo "$as_me:$LINENO: result: $FIND" >&5
2367 $as_echo "$FIND" >&6; }
2368 else
2369   { $as_echo "$as_me:$LINENO: result: no" >&5
2370 $as_echo "no" >&6; }
2371 fi
2372
2373
2374   test -n "$FIND" && break
2375 done
2376 test -n "$FIND" || FIND="no"
2377
2378
2379
2380     r="`eval echo '$'"FIND"`"
2381     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
2382         true
2383     else
2384         ##STEPMAKE_WARN(cannot find . )
2385         false
2386     fi
2387
2388     if test $? -ne 0; then
2389
2390     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
2391
2392         if test "REQUIRED" = "REQUIRED"; then
2393             command="echo ERROR: find not found"
2394             # abort configure process here?
2395         else
2396             command="- echo find not found"
2397         fi
2398         eval "FIND"='$command'
2399         false
2400     else
2401         true
2402     fi
2403
2404     if test $? -eq 0 -a -n ""; then
2405
2406     r="`eval echo '$'"FIND"`"
2407     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2408 $as_echo_n "checking $r version... " >&6; }
2409     exe=`
2410     ## which doesn't work in ash, if /usr/bin/which isn't installed
2411     ## type -p doesn't work in ash
2412     ## command -v doesn't work in zsh
2413     ## command -v "$r" 2>&1
2414     ## this test should work in ash, bash, pdksh (ksh), zsh
2415     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2416 `
2417     if test -n ""; then
2418         ver=""
2419     else
2420         ver=`
2421     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2422     ##
2423     ## ARG.
2424     ## Workaround for broken Debian gcc version string:
2425     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2426     ##
2427     ## -V: Workaround for python
2428
2429     #dnl
2430
2431     ## Assume and hunt for dotted version multiplet.
2432     ## use eval trickery, because we cannot use multi-level $() instead of ``
2433     ## for compatibility reasons.
2434
2435     ## grab the first version number in  --version output.
2436     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2437                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2438                 head -n 1 |
2439                 tr ' ' '\n' |
2440                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2441                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2442                 head -n 1\`\"
2443
2444     if test -z "$_ver"; then
2445         ## If empty, try date [fontforge]
2446         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2447             | head -n 1 \
2448             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2449     fi
2450     echo "$_ver"
2451     #dnl
2452 `
2453     fi
2454     num=`
2455     echo "$ver" | awk -F. '
2456     {
2457       if ($3) {three = $3}
2458       else {three = 0}
2459     }
2460     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2461 `
2462     req=`
2463     echo "" | awk -F. '
2464     {
2465       if ($3) {three = $3}
2466       else {three = 0}
2467     }
2468     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2469 `
2470     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2471 $as_echo "$ver" >&6; }
2472     if test "$num" -lt "$req"; then
2473
2474     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2475
2476     fi
2477     vervar="`echo FIND | tr 'a-z' 'A-Z'`_VERSION"
2478     eval `echo $vervar=$num`
2479 ##    AC_SUBST(`eval echo $vervar`)
2480
2481     fi
2482
2483
2484
2485     for ac_prog in tar
2486 do
2487   # Extract the first word of "$ac_prog", so it can be a program name with args.
2488 set dummy $ac_prog; ac_word=$2
2489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2490 $as_echo_n "checking for $ac_word... " >&6; }
2491 if test "${ac_cv_prog_TAR+set}" = set; then
2492   $as_echo_n "(cached) " >&6
2493 else
2494   if test -n "$TAR"; then
2495   ac_cv_prog_TAR="$TAR" # Let the user override the test.
2496 else
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 for as_dir in $PATH
2499 do
2500   IFS=$as_save_IFS
2501   test -z "$as_dir" && as_dir=.
2502   for ac_exec_ext in '' $ac_executable_extensions; do
2503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2504     ac_cv_prog_TAR="$ac_prog"
2505     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506     break 2
2507   fi
2508 done
2509 done
2510 IFS=$as_save_IFS
2511
2512 fi
2513 fi
2514 TAR=$ac_cv_prog_TAR
2515 if test -n "$TAR"; then
2516   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
2517 $as_echo "$TAR" >&6; }
2518 else
2519   { $as_echo "$as_me:$LINENO: result: no" >&5
2520 $as_echo "no" >&6; }
2521 fi
2522
2523
2524   test -n "$TAR" && break
2525 done
2526 test -n "$TAR" || TAR="no"
2527
2528
2529
2530     r="`eval echo '$'"TAR"`"
2531     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
2532         true
2533     else
2534         ##STEPMAKE_WARN(cannot find . )
2535         false
2536     fi
2537
2538     if test $? -ne 0; then
2539
2540     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
2541
2542         if test "REQUIRED" = "REQUIRED"; then
2543             command="echo ERROR: tar not found"
2544             # abort configure process here?
2545         else
2546             command="- echo tar not found"
2547         fi
2548         eval "TAR"='$command'
2549         false
2550     else
2551         true
2552     fi
2553
2554     if test $? -eq 0 -a -n ""; then
2555
2556     r="`eval echo '$'"TAR"`"
2557     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2558 $as_echo_n "checking $r version... " >&6; }
2559     exe=`
2560     ## which doesn't work in ash, if /usr/bin/which isn't installed
2561     ## type -p doesn't work in ash
2562     ## command -v doesn't work in zsh
2563     ## command -v "$r" 2>&1
2564     ## this test should work in ash, bash, pdksh (ksh), zsh
2565     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2566 `
2567     if test -n ""; then
2568         ver=""
2569     else
2570         ver=`
2571     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2572     ##
2573     ## ARG.
2574     ## Workaround for broken Debian gcc version string:
2575     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2576     ##
2577     ## -V: Workaround for python
2578
2579     #dnl
2580
2581     ## Assume and hunt for dotted version multiplet.
2582     ## use eval trickery, because we cannot use multi-level $() instead of ``
2583     ## for compatibility reasons.
2584
2585     ## grab the first version number in  --version output.
2586     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2587                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2588                 head -n 1 |
2589                 tr ' ' '\n' |
2590                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2591                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2592                 head -n 1\`\"
2593
2594     if test -z "$_ver"; then
2595         ## If empty, try date [fontforge]
2596         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2597             | head -n 1 \
2598             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2599     fi
2600     echo "$_ver"
2601     #dnl
2602 `
2603     fi
2604     num=`
2605     echo "$ver" | awk -F. '
2606     {
2607       if ($3) {three = $3}
2608       else {three = 0}
2609     }
2610     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2611 `
2612     req=`
2613     echo "" | awk -F. '
2614     {
2615       if ($3) {three = $3}
2616       else {three = 0}
2617     }
2618     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2619 `
2620     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2621 $as_echo "$ver" >&6; }
2622     if test "$num" -lt "$req"; then
2623
2624     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2625
2626     fi
2627     vervar="`echo TAR | tr 'a-z' 'A-Z'`_VERSION"
2628     eval `echo $vervar=$num`
2629 ##    AC_SUBST(`eval echo $vervar`)
2630
2631     fi
2632
2633
2634     if test "$(echo 2)" != "2" ||
2635         test "x`uname`" = "xHP-UX"; then
2636         # Extract the first word of "ksh", so it can be a program name with args.
2637 set dummy ksh; ac_word=$2
2638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if test "${ac_cv_path_KSH+set}" = set; then
2641   $as_echo_n "(cached) " >&6
2642 else
2643   case $KSH in
2644   [\\/]* | ?:[\\/]*)
2645   ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2646   ;;
2647   *)
2648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651   IFS=$as_save_IFS
2652   test -z "$as_dir" && as_dir=.
2653   for ac_exec_ext in '' $ac_executable_extensions; do
2654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655     ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
2656     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657     break 2
2658   fi
2659 done
2660 done
2661 IFS=$as_save_IFS
2662
2663   test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="/bin/ksh"
2664   ;;
2665 esac
2666 fi
2667 KSH=$ac_cv_path_KSH
2668 if test -n "$KSH"; then
2669   { $as_echo "$as_me:$LINENO: result: $KSH" >&5
2670 $as_echo "$KSH" >&6; }
2671 else
2672   { $as_echo "$as_me:$LINENO: result: no" >&5
2673 $as_echo "no" >&6; }
2674 fi
2675
2676
2677         # Extract the first word of "bash", so it can be a program name with args.
2678 set dummy bash; ac_word=$2
2679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if test "${ac_cv_path_BASH+set}" = set; then
2682   $as_echo_n "(cached) " >&6
2683 else
2684   case $BASH in
2685   [\\/]* | ?:[\\/]*)
2686   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2687   ;;
2688   *)
2689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692   IFS=$as_save_IFS
2693   test -z "$as_dir" && as_dir=.
2694   for ac_exec_ext in '' $ac_executable_extensions; do
2695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2697     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698     break 2
2699   fi
2700 done
2701 done
2702 IFS=$as_save_IFS
2703
2704   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$KSH"
2705   ;;
2706 esac
2707 fi
2708 BASH=$ac_cv_path_BASH
2709 if test -n "$BASH"; then
2710   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2711 $as_echo "$BASH" >&6; }
2712 else
2713   { $as_echo "$as_me:$LINENO: result: no" >&5
2714 $as_echo "no" >&6; }
2715 fi
2716
2717
2718
2719     { $as_echo "$as_me:$LINENO: WARNING: avoiding buggy /bin/sh" >&5
2720 $as_echo "$as_me: WARNING: avoiding buggy /bin/sh" >&2;}
2721     warn_b=yes
2722
2723         # Extract the first word of "bash", so it can be a program name with args.
2724 set dummy bash; ac_word=$2
2725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2726 $as_echo_n "checking for $ac_word... " >&6; }
2727 if test "${ac_cv_path_SHELL+set}" = set; then
2728   $as_echo_n "(cached) " >&6
2729 else
2730   case $SHELL in
2731   [\\/]* | ?:[\\/]*)
2732   ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2733   ;;
2734   *)
2735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738   IFS=$as_save_IFS
2739   test -z "$as_dir" && as_dir=.
2740   for ac_exec_ext in '' $ac_executable_extensions; do
2741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742     ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2743     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744     break 2
2745   fi
2746 done
2747 done
2748 IFS=$as_save_IFS
2749
2750   test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="$KSH"
2751   ;;
2752 esac
2753 fi
2754 SHELL=$ac_cv_path_SHELL
2755 if test -n "$SHELL"; then
2756   { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
2757 $as_echo "$SHELL" >&6; }
2758 else
2759   { $as_echo "$as_me:$LINENO: result: no" >&5
2760 $as_echo "no" >&6; }
2761 fi
2762
2763
2764     else
2765         SHELL=/bin/sh
2766         # Extract the first word of "bash", so it can be a program name with args.
2767 set dummy bash; ac_word=$2
2768 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if test "${ac_cv_path_BASH+set}" = set; then
2771   $as_echo_n "(cached) " >&6
2772 else
2773   case $BASH in
2774   [\\/]* | ?:[\\/]*)
2775   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2776   ;;
2777   *)
2778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2780 do
2781   IFS=$as_save_IFS
2782   test -z "$as_dir" && as_dir=.
2783   for ac_exec_ext in '' $ac_executable_extensions; do
2784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2786     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787     break 2
2788   fi
2789 done
2790 done
2791 IFS=$as_save_IFS
2792
2793   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$SHELL"
2794   ;;
2795 esac
2796 fi
2797 BASH=$ac_cv_path_BASH
2798 if test -n "$BASH"; then
2799   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2800 $as_echo "$BASH" >&6; }
2801 else
2802   { $as_echo "$as_me:$LINENO: result: no" >&5
2803 $as_echo "no" >&6; }
2804 fi
2805
2806
2807     fi
2808
2809
2810
2811     unset pv
2812     { $as_echo "$as_me:$LINENO: checking for python" >&5
2813 $as_echo_n "checking for python... " >&6; }
2814     for python in $PYTHON python python2 python2.4 python2.3 python2.2 python2.1 python2.0; do
2815         { $as_echo "$as_me:$LINENO: result: $python" >&5
2816 $as_echo "$python" >&6; }
2817         if ! $python -V > /dev/null 2>&1 ; then
2818             #AC_MSG_WARN([cannot execute $python])
2819             PYTHON='echo no python'
2820         else
2821             unset pv
2822
2823     r="`eval echo '$'"python"`"
2824     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2825 $as_echo_n "checking $r version... " >&6; }
2826     exe=`
2827     ## which doesn't work in ash, if /usr/bin/which isn't installed
2828     ## type -p doesn't work in ash
2829     ## command -v doesn't work in zsh
2830     ## command -v "$r" 2>&1
2831     ## this test should work in ash, bash, pdksh (ksh), zsh
2832     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2833 `
2834     if test -n ""; then
2835         ver=""
2836     else
2837         ver=`
2838     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2839     ##
2840     ## ARG.
2841     ## Workaround for broken Debian gcc version string:
2842     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2843     ##
2844     ## -V: Workaround for python
2845
2846     #dnl
2847
2848     ## Assume and hunt for dotted version multiplet.
2849     ## use eval trickery, because we cannot use multi-level $() instead of ``
2850     ## for compatibility reasons.
2851
2852     ## grab the first version number in  --version output.
2853     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2854                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2855                 head -n 1 |
2856                 tr ' ' '\n' |
2857                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2858                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2859                 head -n 1\`\"
2860
2861     if test -z "$_ver"; then
2862         ## If empty, try date [fontforge]
2863         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2864             | head -n 1 \
2865             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2866     fi
2867     echo "$_ver"
2868     #dnl
2869 `
2870     fi
2871     num=`
2872     echo "$ver" | awk -F. '
2873     {
2874       if ($3) {three = $3}
2875       else {three = 0}
2876     }
2877     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2878 `
2879     req=`
2880     echo "1.5" | awk -F. '
2881     {
2882       if ($3) {three = $3}
2883       else {three = 0}
2884     }
2885     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2886 `
2887     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2888 $as_echo "$ver" >&6; }
2889     if test "$num" -lt "$req"; then
2890
2891     eval "pv"=\"`eval echo \"'$'pv\" \""$r >= 1.5 (installed: $ver)"\"`\"
2892
2893     fi
2894     vervar="`echo python | tr 'a-z' 'A-Z'`_VERSION"
2895     eval `echo $vervar=$num`
2896 ##    AC_SUBST(`eval echo $vervar`)
2897
2898             if test -z "$pv"; then
2899                 PYTHON=$python
2900                 break
2901             fi
2902         fi
2903     done
2904     if test -n "$pv"; then
2905
2906     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$pv\"`\"
2907
2908     fi
2909     # clear cached value since arg 2 might point us to a new binary
2910     unset ac_cv_path_PYTHON
2911
2912     # Extract the first word of "$PYTHON", so it can be a program name with args.
2913 set dummy $PYTHON; ac_word=$2
2914 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if test "${ac_cv_path_PYTHON+set}" = set; then
2917   $as_echo_n "(cached) " >&6
2918 else
2919   case $PYTHON in
2920   [\\/]* | ?:[\\/]*)
2921   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2922   ;;
2923   *)
2924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927   IFS=$as_save_IFS
2928   test -z "$as_dir" && as_dir=.
2929   for ac_exec_ext in '' $ac_executable_extensions; do
2930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2932     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2933     break 2
2934   fi
2935 done
2936 done
2937 IFS=$as_save_IFS
2938
2939   ;;
2940 esac
2941 fi
2942 PYTHON=$ac_cv_path_PYTHON
2943 if test -n "$PYTHON"; then
2944   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
2945 $as_echo "$PYTHON" >&6; }
2946 else
2947   { $as_echo "$as_me:$LINENO: result: no" >&5
2948 $as_echo "no" >&6; }
2949 fi
2950
2951
2952
2953
2954
2955     if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
2956         $MAKE -v 2> /dev/null | grep GNU > /dev/null
2957         if test "$?" = 1; then
2958             warn='make (Please install *GNU* make)'
2959             # STEPMAKE_WARN($warn)
2960
2961     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
2962
2963         fi
2964     fi
2965
2966     ROOTSEP=':'
2967     DIRSEP='/'
2968     PATHSEP=':'
2969     LN=ln
2970     LN_S='ln -s'
2971     ZIP="zip -r -9"
2972
2973
2974
2975
2976
2977
2978     cat >>confdefs.h <<_ACEOF
2979 #define DIRSEP '${DIRSEP}'
2980 _ACEOF
2981
2982     cat >>confdefs.h <<_ACEOF
2983 #define PATHSEP '${PATHSEP}'
2984 _ACEOF
2985
2986
2987
2988
2989
2990
2991     if test "$datadir" = "\${prefix}/share"; then
2992             datadir='${prefix}/share'
2993     fi
2994     presome=${prefix}
2995     if test "$prefix" = "NONE"; then
2996         presome=${ac_default_prefix}
2997     fi
2998
2999     build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
3000
3001     DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${prefix}/share!"`
3002     DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
3003     BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
3004
3005
3006
3007
3008     cat >>confdefs.h <<_ACEOF
3009 #define DATADIR "${DATADIR}"
3010 _ACEOF
3011
3012     cat >>confdefs.h <<_ACEOF
3013 #define BUILD_PACKAGE_DATADIR "${BUILD_PACKAGE_DATADIR}"
3014 _ACEOF
3015
3016
3017
3018
3019     if test "$libdir" = "\${exec_prefix}/lib"; then
3020         libdir='${exec_prefix}/lib'
3021     fi
3022     presome=$exec_prefix
3023     build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
3024
3025     LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3026     BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3027
3028
3029
3030     cat >>confdefs.h <<_ACEOF
3031 #define LIBDIR "${LIBDIR}"
3032 _ACEOF
3033
3034     cat >>confdefs.h <<_ACEOF
3035 #define BUILD_PACKAGE_LIBDIR "${BUILD_PACKAGE_LIBDIR}"
3036 _ACEOF
3037
3038
3039
3040
3041 # List a file that identifies your package.
3042
3043
3044 # Move to aclocal.m4?
3045 ac_config_headers="$ac_config_headers $CONFIGFILE.hh:config.hh.in"
3046
3047
3048 # Uncomment the configuration options your package needs.
3049
3050 DOCUMENTATION=yes
3051 # Check whether --enable-documentation was given.
3052 if test "${enable_documentation+set}" = set; then
3053   enableval=$enable_documentation; DOCUMENTATION=$enableval
3054 fi
3055
3056
3057
3058
3059 # Check whether --with-ncsb-dir was given.
3060 if test "${with_ncsb_dir+set}" = set; then
3061   withval=$with_ncsb_dir; NCSB_DIR=$withval
3062 else
3063   NCSB_DIR=""
3064 fi
3065
3066
3067 reloc_b=no
3068 # Check whether --enable-relocation was given.
3069 if test "${enable_relocation+set}" = set; then
3070   enableval=$enable_relocation; reloc_b=$enableval
3071 fi
3072
3073
3074 rpath_b=no
3075 # Check whether --enable-rpath was given.
3076 if test "${enable_rpath+set}" = set; then
3077   enableval=$enable_rpath; rpath_b=$enableval
3078 fi
3079
3080
3081 LINK_GXX_STATICALLY=no
3082 # Check whether --enable-static-gxx was given.
3083 if test "${enable_static_gxx+set}" = set; then
3084   enableval=$enable_static_gxx; LINK_GXX_STATICALLY=$enableval
3085 fi
3086
3087
3088
3089 # must come before any header checks
3090
3091     # -O is necessary to get inlining
3092     CFLAGS=${CFLAGS-""}
3093     CXXFLAGS=${CXXFLAGS-$CFLAGS}
3094     LDFLAGS=${LDFLAGS-""}
3095     optimise_b=yes
3096     profile_b=no
3097     debug_b=yes
3098     pipe_b=yes
3099
3100     # Check whether --enable-debugging was given.
3101 if test "${enable_debugging+set}" = set; then
3102   enableval=$enable_debugging; debug_b=$enableval
3103 fi
3104
3105
3106     # Check whether --enable-optimising was given.
3107 if test "${enable_optimising+set}" = set; then
3108   enableval=$enable_optimising; optimise_b=$enableval
3109 fi
3110
3111
3112     # Check whether --enable-profiling was given.
3113 if test "${enable_profiling+set}" = set; then
3114   enableval=$enable_profiling; profile_b=$enableval
3115 fi
3116
3117
3118     # Check whether --enable-pipe was given.
3119 if test "${enable_pipe+set}" = set; then
3120   enableval=$enable_pipe; pipe_b=$enableval
3121 fi
3122
3123
3124     if test "$optimise_b" = yes; then
3125         cat >>confdefs.h <<\_ACEOF
3126 #define NDEBUG 1
3127 _ACEOF
3128
3129         DEFINES="$DEFINES -DNDEBUG"
3130         OPTIMIZE=" -O2 -finline-functions"
3131     fi
3132
3133     if test $profile_b = yes; then
3134         EXTRA_LIBS="-pg"
3135         OPTIMIZE="$OPTIMIZE -pg"
3136     fi
3137
3138     if test $debug_b = yes; then
3139         OPTIMIZE="$OPTIMIZE -g"
3140     fi
3141
3142 ac_ext=c
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147 if test -n "$ac_tool_prefix"; then
3148   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3150 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if test "${ac_cv_prog_CC+set}" = set; then
3153   $as_echo_n "(cached) " >&6
3154 else
3155   if test -n "$CC"; then
3156   ac_cv_prog_CC="$CC" # Let the user override the test.
3157 else
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH
3160 do
3161   IFS=$as_save_IFS
3162   test -z "$as_dir" && as_dir=.
3163   for ac_exec_ext in '' $ac_executable_extensions; do
3164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3166     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3167     break 2
3168   fi
3169 done
3170 done
3171 IFS=$as_save_IFS
3172
3173 fi
3174 fi
3175 CC=$ac_cv_prog_CC
3176 if test -n "$CC"; then
3177   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3178 $as_echo "$CC" >&6; }
3179 else
3180   { $as_echo "$as_me:$LINENO: result: no" >&5
3181 $as_echo "no" >&6; }
3182 fi
3183
3184
3185 fi
3186 if test -z "$ac_cv_prog_CC"; then
3187   ac_ct_CC=$CC
3188   # Extract the first word of "gcc", so it can be a program name with args.
3189 set dummy gcc; ac_word=$2
3190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3193   $as_echo_n "(cached) " >&6
3194 else
3195   if test -n "$ac_ct_CC"; then
3196   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201   IFS=$as_save_IFS
3202   test -z "$as_dir" && as_dir=.
3203   for ac_exec_ext in '' $ac_executable_extensions; do
3204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205     ac_cv_prog_ac_ct_CC="gcc"
3206     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207     break 2
3208   fi
3209 done
3210 done
3211 IFS=$as_save_IFS
3212
3213 fi
3214 fi
3215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3216 if test -n "$ac_ct_CC"; then
3217   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3218 $as_echo "$ac_ct_CC" >&6; }
3219 else
3220   { $as_echo "$as_me:$LINENO: result: no" >&5
3221 $as_echo "no" >&6; }
3222 fi
3223
3224   if test "x$ac_ct_CC" = x; then
3225     CC=""
3226   else
3227     case $cross_compiling:$ac_tool_warned in
3228 yes:)
3229 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3231 ac_tool_warned=yes ;;
3232 esac
3233     CC=$ac_ct_CC
3234   fi
3235 else
3236   CC="$ac_cv_prog_CC"
3237 fi
3238
3239 if test -z "$CC"; then
3240           if test -n "$ac_tool_prefix"; then
3241     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3242 set dummy ${ac_tool_prefix}cc; ac_word=$2
3243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if test "${ac_cv_prog_CC+set}" = set; then
3246   $as_echo_n "(cached) " >&6
3247 else
3248   if test -n "$CC"; then
3249   ac_cv_prog_CC="$CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254   IFS=$as_save_IFS
3255   test -z "$as_dir" && as_dir=.
3256   for ac_exec_ext in '' $ac_executable_extensions; do
3257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258     ac_cv_prog_CC="${ac_tool_prefix}cc"
3259     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260     break 2
3261   fi
3262 done
3263 done
3264 IFS=$as_save_IFS
3265
3266 fi
3267 fi
3268 CC=$ac_cv_prog_CC
3269 if test -n "$CC"; then
3270   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3271 $as_echo "$CC" >&6; }
3272 else
3273   { $as_echo "$as_me:$LINENO: result: no" >&5
3274 $as_echo "no" >&6; }
3275 fi
3276
3277
3278   fi
3279 fi
3280 if test -z "$CC"; then
3281   # Extract the first word of "cc", so it can be a program name with args.
3282 set dummy cc; ac_word=$2
3283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if test "${ac_cv_prog_CC+set}" = set; then
3286   $as_echo_n "(cached) " >&6
3287 else
3288   if test -n "$CC"; then
3289   ac_cv_prog_CC="$CC" # Let the user override the test.
3290 else
3291   ac_prog_rejected=no
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297   for ac_exec_ext in '' $ac_executable_extensions; do
3298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3300        ac_prog_rejected=yes
3301        continue
3302      fi
3303     ac_cv_prog_CC="cc"
3304     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305     break 2
3306   fi
3307 done
3308 done
3309 IFS=$as_save_IFS
3310
3311 if test $ac_prog_rejected = yes; then
3312   # We found a bogon in the path, so make sure we never use it.
3313   set dummy $ac_cv_prog_CC
3314   shift
3315   if test $# != 0; then
3316     # We chose a different compiler from the bogus one.
3317     # However, it has the same basename, so the bogon will be chosen
3318     # first if we set CC to just the basename; use the full file name.
3319     shift
3320     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3321   fi
3322 fi
3323 fi
3324 fi
3325 CC=$ac_cv_prog_CC
3326 if test -n "$CC"; then
3327   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3328 $as_echo "$CC" >&6; }
3329 else
3330   { $as_echo "$as_me:$LINENO: result: no" >&5
3331 $as_echo "no" >&6; }
3332 fi
3333
3334
3335 fi
3336 if test -z "$CC"; then
3337   if test -n "$ac_tool_prefix"; then
3338   for ac_prog in cl.exe
3339   do
3340     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 $as_echo_n "checking for $ac_word... " >&6; }
3344 if test "${ac_cv_prog_CC+set}" = set; then
3345   $as_echo_n "(cached) " >&6
3346 else
3347   if test -n "$CC"; then
3348   ac_cv_prog_CC="$CC" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355   for ac_exec_ext in '' $ac_executable_extensions; do
3356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3358     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359     break 2
3360   fi
3361 done
3362 done
3363 IFS=$as_save_IFS
3364
3365 fi
3366 fi
3367 CC=$ac_cv_prog_CC
3368 if test -n "$CC"; then
3369   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3370 $as_echo "$CC" >&6; }
3371 else
3372   { $as_echo "$as_me:$LINENO: result: no" >&5
3373 $as_echo "no" >&6; }
3374 fi
3375
3376
3377     test -n "$CC" && break
3378   done
3379 fi
3380 if test -z "$CC"; then
3381   ac_ct_CC=$CC
3382   for ac_prog in cl.exe
3383 do
3384   # Extract the first word of "$ac_prog", so it can be a program name with args.
3385 set dummy $ac_prog; ac_word=$2
3386 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3389   $as_echo_n "(cached) " >&6
3390 else
3391   if test -n "$ac_ct_CC"; then
3392   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3396 do
3397   IFS=$as_save_IFS
3398   test -z "$as_dir" && as_dir=.
3399   for ac_exec_ext in '' $ac_executable_extensions; do
3400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401     ac_cv_prog_ac_ct_CC="$ac_prog"
3402     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3403     break 2
3404   fi
3405 done
3406 done
3407 IFS=$as_save_IFS
3408
3409 fi
3410 fi
3411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3412 if test -n "$ac_ct_CC"; then
3413   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3414 $as_echo "$ac_ct_CC" >&6; }
3415 else
3416   { $as_echo "$as_me:$LINENO: result: no" >&5
3417 $as_echo "no" >&6; }
3418 fi
3419
3420
3421   test -n "$ac_ct_CC" && break
3422 done
3423
3424   if test "x$ac_ct_CC" = x; then
3425     CC=""
3426   else
3427     case $cross_compiling:$ac_tool_warned in
3428 yes:)
3429 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3431 ac_tool_warned=yes ;;
3432 esac
3433     CC=$ac_ct_CC
3434   fi
3435 fi
3436
3437 fi
3438
3439
3440 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3443 See \`config.log' for more details." >&5
3444 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3445 See \`config.log' for more details." >&2;}
3446    { (exit 1); exit 1; }; }; }
3447
3448 # Provide some information about the compiler.
3449 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3450 set X $ac_compile
3451 ac_compiler=$2
3452 { (ac_try="$ac_compiler --version >&5"
3453 case "(($ac_try" in
3454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455   *) ac_try_echo=$ac_try;;
3456 esac
3457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3458 $as_echo "$ac_try_echo") >&5
3459   (eval "$ac_compiler --version >&5") 2>&5
3460   ac_status=$?
3461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); }
3463 { (ac_try="$ac_compiler -v >&5"
3464 case "(($ac_try" in
3465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466   *) ac_try_echo=$ac_try;;
3467 esac
3468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3469 $as_echo "$ac_try_echo") >&5
3470   (eval "$ac_compiler -v >&5") 2>&5
3471   ac_status=$?
3472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); }
3474 { (ac_try="$ac_compiler -V >&5"
3475 case "(($ac_try" in
3476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477   *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3480 $as_echo "$ac_try_echo") >&5
3481   (eval "$ac_compiler -V >&5") 2>&5
3482   ac_status=$?
3483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484   (exit $ac_status); }
3485
3486 cat >conftest.$ac_ext <<_ACEOF
3487 /* confdefs.h.  */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h.  */
3492
3493 int
3494 main ()
3495 {
3496
3497   ;
3498   return 0;
3499 }
3500 _ACEOF
3501 ac_clean_files_save=$ac_clean_files
3502 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3503 # Try to create an executable without -o first, disregard a.out.
3504 # It will help us diagnose broken compilers, and finding out an intuition
3505 # of exeext.
3506 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3507 $as_echo_n "checking for C compiler default output file name... " >&6; }
3508 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3509
3510 # The possible output files:
3511 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3512
3513 ac_rmfiles=
3514 for ac_file in $ac_files
3515 do
3516   case $ac_file in
3517     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3518     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3519   esac
3520 done
3521 rm -f $ac_rmfiles
3522
3523 if { (ac_try="$ac_link_default"
3524 case "(($ac_try" in
3525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526   *) ac_try_echo=$ac_try;;
3527 esac
3528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3529 $as_echo "$ac_try_echo") >&5
3530   (eval "$ac_link_default") 2>&5
3531   ac_status=$?
3532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); }; then
3534   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3535 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3536 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3537 # so that the user can short-circuit this test for compilers unknown to
3538 # Autoconf.
3539 for ac_file in $ac_files ''
3540 do
3541   test -f "$ac_file" || continue
3542   case $ac_file in
3543     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3544         ;;
3545     [ab].out )
3546         # We found the default executable, but exeext='' is most
3547         # certainly right.
3548         break;;
3549     *.* )
3550         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3551         then :; else
3552            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3553         fi
3554         # We set ac_cv_exeext here because the later test for it is not
3555         # safe: cross compilers may not add the suffix if given an `-o'
3556         # argument, so we may need to know it at that point already.
3557         # Even if this section looks crufty: it has the advantage of
3558         # actually working.
3559         break;;
3560     * )
3561         break;;
3562   esac
3563 done
3564 test "$ac_cv_exeext" = no && ac_cv_exeext=
3565
3566 else
3567   ac_file=''
3568 fi
3569
3570 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3571 $as_echo "$ac_file" >&6; }
3572 if test -z "$ac_file"; then
3573   $as_echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3575
3576 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3579 See \`config.log' for more details." >&5
3580 $as_echo "$as_me: error: C compiler cannot create executables
3581 See \`config.log' for more details." >&2;}
3582    { (exit 77); exit 77; }; }; }
3583 fi
3584
3585 ac_exeext=$ac_cv_exeext
3586
3587 # Check that the compiler produces executables we can run.  If not, either
3588 # the compiler is broken, or we cross compile.
3589 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3590 $as_echo_n "checking whether the C compiler works... " >&6; }
3591 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3592 # If not cross compiling, check that we can run a simple program.
3593 if test "$cross_compiling" != yes; then
3594   if { ac_try='./$ac_file'
3595   { (case "(($ac_try" in
3596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597   *) ac_try_echo=$ac_try;;
3598 esac
3599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3600 $as_echo "$ac_try_echo") >&5
3601   (eval "$ac_try") 2>&5
3602   ac_status=$?
3603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604   (exit $ac_status); }; }; then
3605     cross_compiling=no
3606   else
3607     if test "$cross_compiling" = maybe; then
3608         cross_compiling=yes
3609     else
3610         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3613 If you meant to cross compile, use \`--host'.
3614 See \`config.log' for more details." >&5
3615 $as_echo "$as_me: error: cannot run C compiled programs.
3616 If you meant to cross compile, use \`--host'.
3617 See \`config.log' for more details." >&2;}
3618    { (exit 1); exit 1; }; }; }
3619     fi
3620   fi
3621 fi
3622 { $as_echo "$as_me:$LINENO: result: yes" >&5
3623 $as_echo "yes" >&6; }
3624
3625 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3626 ac_clean_files=$ac_clean_files_save
3627 # Check that the compiler produces executables we can run.  If not, either
3628 # the compiler is broken, or we cross compile.
3629 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3630 $as_echo_n "checking whether we are cross compiling... " >&6; }
3631 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3632 $as_echo "$cross_compiling" >&6; }
3633
3634 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3635 $as_echo_n "checking for suffix of executables... " >&6; }
3636 if { (ac_try="$ac_link"
3637 case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642 $as_echo "$ac_try_echo") >&5
3643   (eval "$ac_link") 2>&5
3644   ac_status=$?
3645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); }; then
3647   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3648 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3649 # work properly (i.e., refer to `conftest.exe'), while it won't with
3650 # `rm'.
3651 for ac_file in conftest.exe conftest conftest.*; do
3652   test -f "$ac_file" || continue
3653   case $ac_file in
3654     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3655     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3656           break;;
3657     * ) break;;
3658   esac
3659 done
3660 else
3661   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3664 See \`config.log' for more details." >&5
3665 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3666 See \`config.log' for more details." >&2;}
3667    { (exit 1); exit 1; }; }; }
3668 fi
3669
3670 rm -f conftest$ac_cv_exeext
3671 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3672 $as_echo "$ac_cv_exeext" >&6; }
3673
3674 rm -f conftest.$ac_ext
3675 EXEEXT=$ac_cv_exeext
3676 ac_exeext=$EXEEXT
3677 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3678 $as_echo_n "checking for suffix of object files... " >&6; }
3679 if test "${ac_cv_objext+set}" = set; then
3680   $as_echo_n "(cached) " >&6
3681 else
3682   cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h.  */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h.  */
3688
3689 int
3690 main ()
3691 {
3692
3693   ;
3694   return 0;
3695 }
3696 _ACEOF
3697 rm -f conftest.o conftest.obj
3698 if { (ac_try="$ac_compile"
3699 case "(($ac_try" in
3700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701   *) ac_try_echo=$ac_try;;
3702 esac
3703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3704 $as_echo "$ac_try_echo") >&5
3705   (eval "$ac_compile") 2>&5
3706   ac_status=$?
3707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); }; then
3709   for ac_file in conftest.o conftest.obj conftest.*; do
3710   test -f "$ac_file" || continue;
3711   case $ac_file in
3712     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3713     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3714        break;;
3715   esac
3716 done
3717 else
3718   $as_echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3720
3721 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3724 See \`config.log' for more details." >&5
3725 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3726 See \`config.log' for more details." >&2;}
3727    { (exit 1); exit 1; }; }; }
3728 fi
3729
3730 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3731 fi
3732 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3733 $as_echo "$ac_cv_objext" >&6; }
3734 OBJEXT=$ac_cv_objext
3735 ac_objext=$OBJEXT
3736 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3737 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3738 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3739   $as_echo_n "(cached) " >&6
3740 else
3741   cat >conftest.$ac_ext <<_ACEOF
3742 /* confdefs.h.  */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h.  */
3747
3748 int
3749 main ()
3750 {
3751 #ifndef __GNUC__
3752        choke me
3753 #endif
3754
3755   ;
3756   return 0;
3757 }
3758 _ACEOF
3759 rm -f conftest.$ac_objext
3760 if { (ac_try="$ac_compile"
3761 case "(($ac_try" in
3762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763   *) ac_try_echo=$ac_try;;
3764 esac
3765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3766 $as_echo "$ac_try_echo") >&5
3767   (eval "$ac_compile") 2>conftest.er1
3768   ac_status=$?
3769   grep -v '^ *+' conftest.er1 >conftest.err
3770   rm -f conftest.er1
3771   cat conftest.err >&5
3772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773   (exit $ac_status); } && {
3774          test -z "$ac_c_werror_flag" ||
3775          test ! -s conftest.err
3776        } && test -s conftest.$ac_objext; then
3777   ac_compiler_gnu=yes
3778 else
3779   $as_echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3781
3782         ac_compiler_gnu=no
3783 fi
3784
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3787
3788 fi
3789 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3790 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3791 if test $ac_compiler_gnu = yes; then
3792   GCC=yes
3793 else
3794   GCC=
3795 fi
3796 ac_test_CFLAGS=${CFLAGS+set}
3797 ac_save_CFLAGS=$CFLAGS
3798 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3799 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3800 if test "${ac_cv_prog_cc_g+set}" = set; then
3801   $as_echo_n "(cached) " >&6
3802 else
3803   ac_save_c_werror_flag=$ac_c_werror_flag
3804    ac_c_werror_flag=yes
3805    ac_cv_prog_cc_g=no
3806    CFLAGS="-g"
3807    cat >conftest.$ac_ext <<_ACEOF
3808 /* confdefs.h.  */
3809 _ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h.  */
3813
3814 int
3815 main ()
3816 {
3817
3818   ;
3819   return 0;
3820 }
3821 _ACEOF
3822 rm -f conftest.$ac_objext
3823 if { (ac_try="$ac_compile"
3824 case "(($ac_try" in
3825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826   *) ac_try_echo=$ac_try;;
3827 esac
3828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3829 $as_echo "$ac_try_echo") >&5
3830   (eval "$ac_compile") 2>conftest.er1
3831   ac_status=$?
3832   grep -v '^ *+' conftest.er1 >conftest.err
3833   rm -f conftest.er1
3834   cat conftest.err >&5
3835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836   (exit $ac_status); } && {
3837          test -z "$ac_c_werror_flag" ||
3838          test ! -s conftest.err
3839        } && test -s conftest.$ac_objext; then
3840   ac_cv_prog_cc_g=yes
3841 else
3842   $as_echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3844
3845         CFLAGS=""
3846       cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h.  */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h.  */
3852
3853 int
3854 main ()
3855 {
3856
3857   ;
3858   return 0;
3859 }
3860 _ACEOF
3861 rm -f conftest.$ac_objext
3862 if { (ac_try="$ac_compile"
3863 case "(($ac_try" in
3864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865   *) ac_try_echo=$ac_try;;
3866 esac
3867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3868 $as_echo "$ac_try_echo") >&5
3869   (eval "$ac_compile") 2>conftest.er1
3870   ac_status=$?
3871   grep -v '^ *+' conftest.er1 >conftest.err
3872   rm -f conftest.er1
3873   cat conftest.err >&5
3874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875   (exit $ac_status); } && {
3876          test -z "$ac_c_werror_flag" ||
3877          test ! -s conftest.err
3878        } && test -s conftest.$ac_objext; then
3879   :
3880 else
3881   $as_echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3883
3884         ac_c_werror_flag=$ac_save_c_werror_flag
3885          CFLAGS="-g"
3886          cat >conftest.$ac_ext <<_ACEOF
3887 /* confdefs.h.  */
3888 _ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h.  */
3892
3893 int
3894 main ()
3895 {
3896
3897   ;
3898   return 0;
3899 }
3900 _ACEOF
3901 rm -f conftest.$ac_objext
3902 if { (ac_try="$ac_compile"
3903 case "(($ac_try" in
3904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905   *) ac_try_echo=$ac_try;;
3906 esac
3907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3908 $as_echo "$ac_try_echo") >&5
3909   (eval "$ac_compile") 2>conftest.er1
3910   ac_status=$?
3911   grep -v '^ *+' conftest.er1 >conftest.err
3912   rm -f conftest.er1
3913   cat conftest.err >&5
3914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915   (exit $ac_status); } && {
3916          test -z "$ac_c_werror_flag" ||
3917          test ! -s conftest.err
3918        } && test -s conftest.$ac_objext; then
3919   ac_cv_prog_cc_g=yes
3920 else
3921   $as_echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3923
3924
3925 fi
3926
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 fi
3929
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 fi
3932
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934    ac_c_werror_flag=$ac_save_c_werror_flag
3935 fi
3936 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3937 $as_echo "$ac_cv_prog_cc_g" >&6; }
3938 if test "$ac_test_CFLAGS" = set; then
3939   CFLAGS=$ac_save_CFLAGS
3940 elif test $ac_cv_prog_cc_g = yes; then
3941   if test "$GCC" = yes; then
3942     CFLAGS="-g -O2"
3943   else
3944     CFLAGS="-g"
3945   fi
3946 else
3947   if test "$GCC" = yes; then
3948     CFLAGS="-O2"
3949   else
3950     CFLAGS=
3951   fi
3952 fi
3953 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3954 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3955 if test "${ac_cv_prog_cc_c89+set}" = set; then
3956   $as_echo_n "(cached) " >&6
3957 else
3958   ac_cv_prog_cc_c89=no
3959 ac_save_CC=$CC
3960 cat >conftest.$ac_ext <<_ACEOF
3961 /* confdefs.h.  */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h.  */
3966 #include <stdarg.h>
3967 #include <stdio.h>
3968 #include <sys/types.h>
3969 #include <sys/stat.h>
3970 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3971 struct buf { int x; };
3972 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3973 static char *e (p, i)
3974      char **p;
3975      int i;
3976 {
3977   return p[i];
3978 }
3979 static char *f (char * (*g) (char **, int), char **p, ...)
3980 {
3981   char *s;
3982   va_list v;
3983   va_start (v,p);
3984   s = g (p, va_arg (v,int));
3985   va_end (v);
3986   return s;
3987 }
3988
3989 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3990    function prototypes and stuff, but not '\xHH' hex character constants.
3991    These don't provoke an error unfortunately, instead are silently treated
3992    as 'x'.  The following induces an error, until -std is added to get
3993    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3994    array size at least.  It's necessary to write '\x00'==0 to get something
3995    that's true only with -std.  */
3996 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3997
3998 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3999    inside strings and character constants.  */
4000 #define FOO(x) 'x'
4001 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4002
4003 int test (int i, double x);
4004 struct s1 {int (*f) (int a);};
4005 struct s2 {int (*f) (double a);};
4006 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4007 int argc;
4008 char **argv;
4009 int
4010 main ()
4011 {
4012 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4013   ;
4014   return 0;
4015 }
4016 _ACEOF
4017 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4018         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4019 do
4020   CC="$ac_save_CC $ac_arg"
4021   rm -f conftest.$ac_objext
4022 if { (ac_try="$ac_compile"
4023 case "(($ac_try" in
4024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025   *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4028 $as_echo "$ac_try_echo") >&5
4029   (eval "$ac_compile") 2>conftest.er1
4030   ac_status=$?
4031   grep -v '^ *+' conftest.er1 >conftest.err
4032   rm -f conftest.er1
4033   cat conftest.err >&5
4034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); } && {
4036          test -z "$ac_c_werror_flag" ||
4037          test ! -s conftest.err
4038        } && test -s conftest.$ac_objext; then
4039   ac_cv_prog_cc_c89=$ac_arg
4040 else
4041   $as_echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044
4045 fi
4046
4047 rm -f core conftest.err conftest.$ac_objext
4048   test "x$ac_cv_prog_cc_c89" != "xno" && break
4049 done
4050 rm -f conftest.$ac_ext
4051 CC=$ac_save_CC
4052
4053 fi
4054 # AC_CACHE_VAL
4055 case "x$ac_cv_prog_cc_c89" in
4056   x)
4057     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4058 $as_echo "none needed" >&6; } ;;
4059   xno)
4060     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4061 $as_echo "unsupported" >&6; } ;;
4062   *)
4063     CC="$CC $ac_cv_prog_cc_c89"
4064     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4065 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4066 esac
4067
4068
4069 ac_ext=c
4070 ac_cpp='$CPP $CPPFLAGS'
4071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4074
4075
4076
4077
4078
4079
4080
4081
4082     r="`eval echo '$'"CC"`"
4083     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
4084         true
4085     else
4086         ##STEPMAKE_WARN(cannot find . )
4087         false
4088     fi
4089
4090     if test $? -ne 0; then
4091
4092     eval ""=\"`eval echo \"'$'\" \"cc\"`\"
4093
4094         if test "" = "REQUIRED"; then
4095             command="echo ERROR: cc not found"
4096             # abort configure process here?
4097         else
4098             command="- echo cc not found"
4099         fi
4100         eval "CC"='$command'
4101         false
4102     else
4103         true
4104     fi
4105
4106     LD='$(CC)'
4107
4108
4109     # If -pipe requested, test if it works and add to CFLAGS.
4110     if test "$pipe_b" = yes; then
4111         save_cflags="$CFLAGS"
4112         CFLAGS=" -pipe $CFLAGS";
4113         { $as_echo "$as_me:$LINENO: checking whether compiler understands -pipe" >&5
4114 $as_echo_n "checking whether compiler understands -pipe... " >&6; }
4115 if test "${stepmake_cv_cflags_pipe+set}" = set; then
4116   $as_echo_n "(cached) " >&6
4117 else
4118
4119 cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h.  */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h.  */
4125 /* -pipe test */
4126 int
4127 main ()
4128 {
4129
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4136 case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4141 $as_echo "$ac_try_echo") >&5
4142   (eval "$ac_compile") 2>conftest.er1
4143   ac_status=$?
4144   grep -v '^ *+' conftest.er1 >conftest.err
4145   rm -f conftest.er1
4146   cat conftest.err >&5
4147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); } && {
4149          test -z "$ac_c_werror_flag" ||
4150          test ! -s conftest.err
4151        } && test -s conftest.$ac_objext; then
4152   stepmake_cv_cflags_pipe=yes
4153 else
4154   $as_echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4156
4157         stepmake_cv_cflags_pipe=no
4158 fi
4159
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 fi
4162 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_cflags_pipe" >&5
4163 $as_echo "$stepmake_cv_cflags_pipe" >&6; }
4164         CFLAGS=$save_cflags
4165         if test $stepmake_cv_cflags_pipe = yes; then
4166             OPTIMIZE="$OPTIMIZE -pipe"
4167         fi
4168     fi
4169
4170     CFLAGS="$CFLAGS $OPTIMIZE"
4171     CPPFLAGS=${CPPFLAGS-""}
4172
4173     { $as_echo "$as_me:$LINENO: checking for IEEE-conformance compiler flags" >&5
4174 $as_echo_n "checking for IEEE-conformance compiler flags... " >&6; }
4175     save_cflags="$CFLAGS"
4176     case "$host" in
4177         alpha*-*-*)
4178                     { $as_echo "$as_me:$LINENO: result: -mieee" >&5
4179 $as_echo "-mieee" >&6; }
4180             CFLAGS=" -mieee $CFLAGS"
4181             ;;
4182         *)
4183             { $as_echo "$as_me:$LINENO: result: none" >&5
4184 $as_echo "none" >&6; }
4185             ;;
4186     esac
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196 # Extract the first word of "fc-list", so it can be a program name with args.
4197 set dummy fc-list; ac_word=$2
4198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if test "${ac_cv_prog_FCLIST+set}" = set; then
4201   $as_echo_n "(cached) " >&6
4202 else
4203   if test -n "$FCLIST"; then
4204   ac_cv_prog_FCLIST="$FCLIST" # Let the user override the test.
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211   for ac_exec_ext in '' $ac_executable_extensions; do
4212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213     ac_cv_prog_FCLIST="fc-list"
4214     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218 done
4219 IFS=$as_save_IFS
4220
4221 fi
4222 fi
4223 FCLIST=$ac_cv_prog_FCLIST
4224 if test -n "$FCLIST"; then
4225   { $as_echo "$as_me:$LINENO: result: $FCLIST" >&5
4226 $as_echo "$FCLIST" >&6; }
4227 else
4228   { $as_echo "$as_me:$LINENO: result: no" >&5
4229 $as_echo "no" >&6; }
4230 fi
4231
4232
4233 { $as_echo "$as_me:$LINENO: checking New Century Schoolbook PFB files" >&5
4234 $as_echo_n "checking New Century Schoolbook PFB files... " >&6; }
4235
4236 if test "$NCSB_DIR" != "" ;  then
4237   NCSB_SOURCE_FILES=""
4238   for f in c059013l c059016l c059033l c059036l; do
4239     if test ! -f "$NCSB_DIR/$f.pfb"; then
4240
4241     { $as_echo "$as_me:$LINENO: WARNING: $NCSB_DIR does not contain $f.pfb." >&5
4242 $as_echo "$as_me: WARNING: $NCSB_DIR does not contain $f.pfb." >&2;}
4243     warn_b=yes
4244
4245     else
4246       NCSB_SOURCE_FILES="$NCSB_DIR/$f.pfb $NCSB_SOURCE_FILES"
4247     fi
4248   done
4249 else
4250   if test "$FCLIST" != ""; then
4251     for style in Roman Italic "Bold Italic" Bold; do
4252       NCSB_FILE=`$FCLIST "Century Schoolbook L:style=$style:foundry=urw:fontformat=Type 1" file \
4253                 | head -n 1`
4254       NCSB_FILE=`echo $NCSB_FILE | sed 's/^\(.*\):$/\1/g'`
4255       NCSB_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $NCSB_FILE`
4256       NCSB_SOURCE_FILES="$NCSB_FILE $NCSB_SOURCE_FILES"
4257     done
4258   else
4259     { $as_echo "$as_me:$LINENO: result: not found" >&5
4260 $as_echo "not found" >&6; }
4261     echo "Can't find Century Schoolbook files. Install FontConfig's fc-list,"
4262     echo "or use --with-ncsb-dir"
4263   fi
4264 fi
4265 { $as_echo "$as_me:$LINENO: result: $NCSB_SOURCE_FILES" >&5
4266 $as_echo "$NCSB_SOURCE_FILES" >&6; }
4267
4268 ac_ext=cpp
4269 ac_cpp='$CXXCPP $CPPFLAGS'
4270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4273
4274
4275
4276     unset pv
4277     { $as_echo "$as_me:$LINENO: checking for python" >&5
4278 $as_echo_n "checking for python... " >&6; }
4279     for python in $PYTHON python python2 python2.4 python2.3 python2.2 python2.1 python2.0; do
4280         { $as_echo "$as_me:$LINENO: result: $python" >&5
4281 $as_echo "$python" >&6; }
4282         if ! $python -V > /dev/null 2>&1 ; then
4283             #AC_MSG_WARN([cannot execute $python])
4284             PYTHON='echo no python'
4285         else
4286             unset pv
4287
4288     r="`eval echo '$'"python"`"
4289     { $as_echo "$as_me:$LINENO: checking $r version" >&5
4290 $as_echo_n "checking $r version... " >&6; }
4291     exe=`
4292     ## which doesn't work in ash, if /usr/bin/which isn't installed
4293     ## type -p doesn't work in ash
4294     ## command -v doesn't work in zsh
4295     ## command -v "$r" 2>&1
4296     ## this test should work in ash, bash, pdksh (ksh), zsh
4297     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4298 `
4299     if test -n ""; then
4300         ver=""
4301     else
4302         ver=`
4303     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4304     ##
4305     ## ARG.
4306     ## Workaround for broken Debian gcc version string:
4307     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4308     ##
4309     ## -V: Workaround for python
4310
4311     #dnl
4312
4313     ## Assume and hunt for dotted version multiplet.
4314     ## use eval trickery, because we cannot use multi-level $() instead of ``
4315     ## for compatibility reasons.
4316
4317     ## grab the first version number in  --version output.
4318     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4319                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4320                 head -n 1 |
4321                 tr ' ' '\n' |
4322                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4323                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4324                 head -n 1\`\"
4325
4326     if test -z "$_ver"; then
4327         ## If empty, try date [fontforge]
4328         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
4329             | head -n 1 \
4330             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4331     fi
4332     echo "$_ver"
4333     #dnl
4334 `
4335     fi
4336     num=`
4337     echo "$ver" | awk -F. '
4338     {
4339       if ($3) {three = $3}
4340       else {three = 0}
4341     }
4342     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4343 `
4344     req=`
4345     echo "2.4" | awk -F. '
4346     {
4347       if ($3) {three = $3}
4348       else {three = 0}
4349     }
4350     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4351 `
4352     { $as_echo "$as_me:$LINENO: result: $ver" >&5
4353 $as_echo "$ver" >&6; }
4354     if test "$num" -lt "$req"; then
4355
4356     eval "pv"=\"`eval echo \"'$'pv\" \""$r >= 2.4 (installed: $ver)"\"`\"
4357
4358     fi
4359     vervar="`echo python | tr 'a-z' 'A-Z'`_VERSION"
4360     eval `echo $vervar=$num`
4361 ##    AC_SUBST(`eval echo $vervar`)
4362
4363             if test -z "$pv"; then
4364                 PYTHON=$python
4365                 break
4366             fi
4367         fi
4368     done
4369     if test -n "$pv"; then
4370
4371     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$pv\"`\"
4372
4373     fi
4374     # clear cached value since arg 2 might point us to a new binary
4375     unset ac_cv_path_PYTHON
4376
4377     # Extract the first word of "$PYTHON", so it can be a program name with args.
4378 set dummy $PYTHON; ac_word=$2
4379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if test "${ac_cv_path_PYTHON+set}" = set; then
4382   $as_echo_n "(cached) " >&6
4383 else
4384   case $PYTHON in
4385   [\\/]* | ?:[\\/]*)
4386   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4387   ;;
4388   *)
4389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4391 do
4392   IFS=$as_save_IFS
4393   test -z "$as_dir" && as_dir=.
4394   for ac_exec_ext in '' $ac_executable_extensions; do
4395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4397     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398     break 2
4399   fi
4400 done
4401 done
4402 IFS=$as_save_IFS
4403
4404   ;;
4405 esac
4406 fi
4407 PYTHON=$ac_cv_path_PYTHON
4408 if test -n "$PYTHON"; then
4409   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
4410 $as_echo "$PYTHON" >&6; }
4411 else
4412   { $as_echo "$as_me:$LINENO: result: no" >&5
4413 $as_echo "no" >&6; }
4414 fi
4415
4416
4417
4418
4419
4420     if test "$GCC" = "yes"; then
4421
4422     r="`eval echo '$'"CC"`"
4423     { $as_echo "$as_me:$LINENO: checking $r version" >&5
4424 $as_echo_n "checking $r version... " >&6; }
4425     exe=`
4426     ## which doesn't work in ash, if /usr/bin/which isn't installed
4427     ## type -p doesn't work in ash
4428     ## command -v doesn't work in zsh
4429     ## command -v "$r" 2>&1
4430     ## this test should work in ash, bash, pdksh (ksh), zsh
4431     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4432 `
4433     if test -n ""; then
4434         ver=""
4435     else
4436         ver=`
4437     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4438     ##
4439     ## ARG.
4440     ## Workaround for broken Debian gcc version string:
4441     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4442     ##
4443     ## -V: Workaround for python
4444
4445     #dnl
4446
4447     ## Assume and hunt for dotted version multiplet.
4448     ## use eval trickery, because we cannot use multi-level $() instead of ``
4449     ## for compatibility reasons.
4450
4451     ## grab the first version number in  --version output.
4452     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4453                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4454                 head -n 1 |
4455                 tr ' ' '\n' |
4456                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4457                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4458                 head -n 1\`\"
4459
4460     if test -z "$_ver"; then
4461         ## If empty, try date [fontforge]
4462         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
4463             | head -n 1 \
4464             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4465     fi
4466     echo "$_ver"
4467     #dnl
4468 `
4469     fi
4470     num=`
4471     echo "$ver" | awk -F. '
4472     {
4473       if ($3) {three = $3}
4474       else {three = 0}
4475     }
4476     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4477 `
4478     req=`
4479     echo "3.4" | awk -F. '
4480     {
4481       if ($3) {three = $3}
4482       else {three = 0}
4483     }
4484     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4485 `
4486     { $as_echo "$as_me:$LINENO: result: $ver" >&5
4487 $as_echo "$ver" >&6; }
4488     if test "$num" -lt "$req"; then
4489
4490     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
4491
4492     fi
4493     vervar="`echo CC | tr 'a-z' 'A-Z'`_VERSION"
4494     eval `echo $vervar=$num`
4495 ##    AC_SUBST(`eval echo $vervar`)
4496
4497     else
4498         warn="$CC (Please install *GNU* cc)"
4499
4500     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
4501
4502     fi
4503
4504
4505
4506     ac_ext=cpp
4507 ac_cpp='$CXXCPP $CPPFLAGS'
4508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4511 if test -z "$CXX"; then
4512   if test -n "$CCC"; then
4513     CXX=$CCC
4514   else
4515     if test -n "$ac_tool_prefix"; then
4516   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4517   do
4518     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4520 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if test "${ac_cv_prog_CXX+set}" = set; then
4523   $as_echo_n "(cached) " >&6
4524 else
4525   if test -n "$CXX"; then
4526   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531   IFS=$as_save_IFS
4532   test -z "$as_dir" && as_dir=.
4533   for ac_exec_ext in '' $ac_executable_extensions; do
4534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4536     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537     break 2
4538   fi
4539 done
4540 done
4541 IFS=$as_save_IFS
4542
4543 fi
4544 fi
4545 CXX=$ac_cv_prog_CXX
4546 if test -n "$CXX"; then
4547   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4548 $as_echo "$CXX" >&6; }
4549 else
4550   { $as_echo "$as_me:$LINENO: result: no" >&5
4551 $as_echo "no" >&6; }
4552 fi
4553
4554
4555     test -n "$CXX" && break
4556   done
4557 fi
4558 if test -z "$CXX"; then
4559   ac_ct_CXX=$CXX
4560   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4561 do
4562   # Extract the first word of "$ac_prog", so it can be a program name with args.
4563 set dummy $ac_prog; ac_word=$2
4564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4567   $as_echo_n "(cached) " >&6
4568 else
4569   if test -n "$ac_ct_CXX"; then
4570   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575   IFS=$as_save_IFS
4576   test -z "$as_dir" && as_dir=.
4577   for ac_exec_ext in '' $ac_executable_extensions; do
4578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579     ac_cv_prog_ac_ct_CXX="$ac_prog"
4580     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581     break 2
4582   fi
4583 done
4584 done
4585 IFS=$as_save_IFS
4586
4587 fi
4588 fi
4589 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4590 if test -n "$ac_ct_CXX"; then
4591   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4592 $as_echo "$ac_ct_CXX" >&6; }
4593 else
4594   { $as_echo "$as_me:$LINENO: result: no" >&5
4595 $as_echo "no" >&6; }
4596 fi
4597
4598
4599   test -n "$ac_ct_CXX" && break
4600 done
4601
4602   if test "x$ac_ct_CXX" = x; then
4603     CXX="g++"
4604   else
4605     case $cross_compiling:$ac_tool_warned in
4606 yes:)
4607 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609 ac_tool_warned=yes ;;
4610 esac
4611     CXX=$ac_ct_CXX
4612   fi
4613 fi
4614
4615   fi
4616 fi
4617 # Provide some information about the compiler.
4618 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4619 set X $ac_compile
4620 ac_compiler=$2
4621 { (ac_try="$ac_compiler --version >&5"
4622 case "(($ac_try" in
4623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624   *) ac_try_echo=$ac_try;;
4625 esac
4626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4627 $as_echo "$ac_try_echo") >&5
4628   (eval "$ac_compiler --version >&5") 2>&5
4629   ac_status=$?
4630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); }
4632 { (ac_try="$ac_compiler -v >&5"
4633 case "(($ac_try" in
4634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635   *) ac_try_echo=$ac_try;;
4636 esac
4637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4638 $as_echo "$ac_try_echo") >&5
4639   (eval "$ac_compiler -v >&5") 2>&5
4640   ac_status=$?
4641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642   (exit $ac_status); }
4643 { (ac_try="$ac_compiler -V >&5"
4644 case "(($ac_try" in
4645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646   *) ac_try_echo=$ac_try;;
4647 esac
4648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4649 $as_echo "$ac_try_echo") >&5
4650   (eval "$ac_compiler -V >&5") 2>&5
4651   ac_status=$?
4652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); }
4654
4655 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4656 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4657 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4658   $as_echo_n "(cached) " >&6
4659 else
4660   cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h.  */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h.  */
4666
4667 int
4668 main ()
4669 {
4670 #ifndef __GNUC__
4671        choke me
4672 #endif
4673
4674   ;
4675   return 0;
4676 }
4677 _ACEOF
4678 rm -f conftest.$ac_objext
4679 if { (ac_try="$ac_compile"
4680 case "(($ac_try" in
4681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682   *) ac_try_echo=$ac_try;;
4683 esac
4684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4685 $as_echo "$ac_try_echo") >&5
4686   (eval "$ac_compile") 2>conftest.er1
4687   ac_status=$?
4688   grep -v '^ *+' conftest.er1 >conftest.err
4689   rm -f conftest.er1
4690   cat conftest.err >&5
4691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); } && {
4693          test -z "$ac_cxx_werror_flag" ||
4694          test ! -s conftest.err
4695        } && test -s conftest.$ac_objext; then
4696   ac_compiler_gnu=yes
4697 else
4698   $as_echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4700
4701         ac_compiler_gnu=no
4702 fi
4703
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4706
4707 fi
4708 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4709 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4710 if test $ac_compiler_gnu = yes; then
4711   GXX=yes
4712 else
4713   GXX=
4714 fi
4715 ac_test_CXXFLAGS=${CXXFLAGS+set}
4716 ac_save_CXXFLAGS=$CXXFLAGS
4717 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4718 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4719 if test "${ac_cv_prog_cxx_g+set}" = set; then
4720   $as_echo_n "(cached) " >&6
4721 else
4722   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4723    ac_cxx_werror_flag=yes
4724    ac_cv_prog_cxx_g=no
4725    CXXFLAGS="-g"
4726    cat >conftest.$ac_ext <<_ACEOF
4727 /* confdefs.h.  */
4728 _ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h.  */
4732
4733 int
4734 main ()
4735 {
4736
4737   ;
4738   return 0;
4739 }
4740 _ACEOF
4741 rm -f conftest.$ac_objext
4742 if { (ac_try="$ac_compile"
4743 case "(($ac_try" in
4744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745   *) ac_try_echo=$ac_try;;
4746 esac
4747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4748 $as_echo "$ac_try_echo") >&5
4749   (eval "$ac_compile") 2>conftest.er1
4750   ac_status=$?
4751   grep -v '^ *+' conftest.er1 >conftest.err
4752   rm -f conftest.er1
4753   cat conftest.err >&5
4754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755   (exit $ac_status); } && {
4756          test -z "$ac_cxx_werror_flag" ||
4757          test ! -s conftest.err
4758        } && test -s conftest.$ac_objext; then
4759   ac_cv_prog_cxx_g=yes
4760 else
4761   $as_echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4763
4764         CXXFLAGS=""
4765       cat >conftest.$ac_ext <<_ACEOF
4766 /* confdefs.h.  */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h.  */
4771
4772 int
4773 main ()
4774 {
4775
4776   ;
4777   return 0;
4778 }
4779 _ACEOF
4780 rm -f conftest.$ac_objext
4781 if { (ac_try="$ac_compile"
4782 case "(($ac_try" in
4783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784   *) ac_try_echo=$ac_try;;
4785 esac
4786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4787 $as_echo "$ac_try_echo") >&5
4788   (eval "$ac_compile") 2>conftest.er1
4789   ac_status=$?
4790   grep -v '^ *+' conftest.er1 >conftest.err
4791   rm -f conftest.er1
4792   cat conftest.err >&5
4793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); } && {
4795          test -z "$ac_cxx_werror_flag" ||
4796          test ! -s conftest.err
4797        } && test -s conftest.$ac_objext; then
4798   :
4799 else
4800   $as_echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4802
4803         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4804          CXXFLAGS="-g"
4805          cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h.  */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h.  */
4811
4812 int
4813 main ()
4814 {
4815
4816   ;
4817   return 0;
4818 }
4819 _ACEOF
4820 rm -f conftest.$ac_objext
4821 if { (ac_try="$ac_compile"
4822 case "(($ac_try" in
4823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824   *) ac_try_echo=$ac_try;;
4825 esac
4826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4827 $as_echo "$ac_try_echo") >&5
4828   (eval "$ac_compile") 2>conftest.er1
4829   ac_status=$?
4830   grep -v '^ *+' conftest.er1 >conftest.err
4831   rm -f conftest.er1
4832   cat conftest.err >&5
4833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); } && {
4835          test -z "$ac_cxx_werror_flag" ||
4836          test ! -s conftest.err
4837        } && test -s conftest.$ac_objext; then
4838   ac_cv_prog_cxx_g=yes
4839 else
4840   $as_echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4842
4843
4844 fi
4845
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 fi
4848
4849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850 fi
4851
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4854 fi
4855 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4856 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4857 if test "$ac_test_CXXFLAGS" = set; then
4858   CXXFLAGS=$ac_save_CXXFLAGS
4859 elif test $ac_cv_prog_cxx_g = yes; then
4860   if test "$GXX" = yes; then
4861     CXXFLAGS="-g -O2"
4862   else
4863     CXXFLAGS="-g"
4864   fi
4865 else
4866   if test "$GXX" = yes; then
4867     CXXFLAGS="-O2"
4868   else
4869     CXXFLAGS=
4870   fi
4871 fi
4872 ac_ext=cpp
4873 ac_cpp='$CXXCPP $CPPFLAGS'
4874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4877
4878
4879
4880     r="`eval echo '$'"CXX"`"
4881     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
4882         true
4883     else
4884         ##STEPMAKE_WARN(cannot find . )
4885         false
4886     fi
4887
4888     if test $? -ne 0; then
4889
4890     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
4891
4892         if test "REQUIRED" = "REQUIRED"; then
4893             command="echo ERROR: c++ not found"
4894             # abort configure process here?
4895         else
4896             command="- echo c++ not found"
4897         fi
4898         eval "CXX"='$command'
4899         false
4900     else
4901         true
4902     fi
4903
4904
4905     CXXFLAGS="$CXXFLAGS $OPTIMIZE"
4906     LD='$(CXX)'
4907
4908
4909
4910
4911
4912
4913     if test "$GXX" = "yes"; then
4914
4915     r="`eval echo '$'"CXX"`"
4916     { $as_echo "$as_me:$LINENO: checking $r version" >&5
4917 $as_echo_n "checking $r version... " >&6; }
4918     exe=`
4919     ## which doesn't work in ash, if /usr/bin/which isn't installed
4920     ## type -p doesn't work in ash
4921     ## command -v doesn't work in zsh
4922     ## command -v "$r" 2>&1
4923     ## this test should work in ash, bash, pdksh (ksh), zsh
4924     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4925 `
4926     if test -n ""; then
4927         ver=""
4928     else
4929         ver=`
4930     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4931     ##
4932     ## ARG.
4933     ## Workaround for broken Debian gcc version string:
4934     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4935     ##
4936     ## -V: Workaround for python
4937
4938     #dnl
4939
4940     ## Assume and hunt for dotted version multiplet.
4941     ## use eval trickery, because we cannot use multi-level $() instead of ``
4942     ## for compatibility reasons.
4943
4944     ## grab the first version number in  --version output.
4945     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4946                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4947                 head -n 1 |
4948                 tr ' ' '\n' |
4949                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4950                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4951                 head -n 1\`\"
4952
4953     if test -z "$_ver"; then
4954         ## If empty, try date [fontforge]
4955         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
4956             | head -n 1 \
4957             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4958     fi
4959     echo "$_ver"
4960     #dnl
4961 `
4962     fi
4963     num=`
4964     echo "$ver" | awk -F. '
4965     {
4966       if ($3) {three = $3}
4967       else {three = 0}
4968     }
4969     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4970 `
4971     req=`
4972     echo "3.4" | awk -F. '
4973     {
4974       if ($3) {three = $3}
4975       else {three = 0}
4976     }
4977     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4978 `
4979     { $as_echo "$as_me:$LINENO: result: $ver" >&5
4980 $as_echo "$ver" >&6; }
4981     if test "$num" -lt "$req"; then
4982
4983     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
4984
4985     fi
4986     vervar="`echo CXX | tr 'a-z' 'A-Z'`_VERSION"
4987     eval `echo $vervar=$num`
4988 ##    AC_SUBST(`eval echo $vervar`)
4989
4990     else
4991         warn="$CXX (Please install *GNU* c++)"
4992
4993     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
4994
4995     fi
4996
4997
4998     { $as_echo "$as_me:$LINENO: checking whether explicit instantiation is needed" >&5
4999 $as_echo_n "checking whether explicit instantiation is needed... " >&6; }
5000 if test "${stepmake_cv_need_explicit_instantiation+set}" = set; then
5001   $as_echo_n "(cached) " >&6
5002 else
5003
5004 cat >conftest.$ac_ext <<_ACEOF
5005 /* confdefs.h.  */
5006 _ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h.  */
5010
5011     template <class T> struct foo { static int baz; };
5012     template <class T> int foo<T>::baz = 1;
5013
5014 int
5015 main ()
5016 {
5017  return foo<int>::baz;
5018   ;
5019   return 0;
5020 }
5021 _ACEOF
5022 rm -f conftest.$ac_objext conftest$ac_exeext
5023 if { (ac_try="$ac_link"
5024 case "(($ac_try" in
5025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026   *) ac_try_echo=$ac_try;;
5027 esac
5028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5029 $as_echo "$ac_try_echo") >&5
5030   (eval "$ac_link") 2>conftest.er1
5031   ac_status=$?
5032   grep -v '^ *+' conftest.er1 >conftest.err
5033   rm -f conftest.er1
5034   cat conftest.err >&5
5035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036   (exit $ac_status); } && {
5037          test -z "$ac_cxx_werror_flag" ||
5038          test ! -s conftest.err
5039        } && test -s conftest$ac_exeext && {
5040          test "$cross_compiling" = yes ||
5041          $as_test_x conftest$ac_exeext
5042        }; then
5043   stepmake_cv_need_explicit_instantiation=no
5044 else
5045   $as_echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048         stepmake_cv_need_explicit_instantiation=yes
5049 fi
5050
5051 rm -rf conftest.dSYM
5052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5053       conftest$ac_exeext conftest.$ac_ext
5054 fi
5055 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_need_explicit_instantiation" >&5
5056 $as_echo "$stepmake_cv_need_explicit_instantiation" >&6; }
5057     if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
5058         cat >>confdefs.h <<\_ACEOF
5059 #define NEED_EXPLICIT_INSTANTIATION 1
5060 _ACEOF
5061
5062     fi
5063
5064
5065     { $as_echo "$as_me:$LINENO: checking for stl.data () method" >&5
5066 $as_echo_n "checking for stl.data () method... " >&6; }
5067 if test "${stepmake_cv_stl_data_method+set}" = set; then
5068   $as_echo_n "(cached) " >&6
5069 else
5070   cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h.  */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h.  */
5076
5077 #include <vector>
5078 using namespace std;
5079 vector <int> v;
5080 void *p = v.data ();
5081
5082 int
5083 main ()
5084 {
5085
5086   ;
5087   return 0;
5088 }
5089 _ACEOF
5090 rm -f conftest.$ac_objext
5091 if { (ac_try="$ac_compile"
5092 case "(($ac_try" in
5093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094   *) ac_try_echo=$ac_try;;
5095 esac
5096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5097 $as_echo "$ac_try_echo") >&5
5098   (eval "$ac_compile") 2>conftest.er1
5099   ac_status=$?
5100   grep -v '^ *+' conftest.er1 >conftest.err
5101   rm -f conftest.er1
5102   cat conftest.err >&5
5103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); } && {
5105          test -z "$ac_cxx_werror_flag" ||
5106          test ! -s conftest.err
5107        } && test -s conftest.$ac_objext; then
5108   stepmake_cv_stl_data_method=yes
5109 else
5110   $as_echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112
5113         stepmake_cv_stl_data_method=no
5114 fi
5115
5116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117 fi
5118 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_stl_data_method" >&5
5119 $as_echo "$stepmake_cv_stl_data_method" >&6; }
5120     if test $stepmake_cv_stl_data_method = yes; then
5121
5122 cat >>confdefs.h <<\_ACEOF
5123 #define HAVE_STL_DATA_METHOD 1
5124 _ACEOF
5125
5126     fi
5127
5128
5129
5130     for ac_prog in ar
5131 do
5132   # Extract the first word of "$ac_prog", so it can be a program name with args.
5133 set dummy $ac_prog; ac_word=$2
5134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if test "${ac_cv_prog_AR+set}" = set; then
5137   $as_echo_n "(cached) " >&6
5138 else
5139   if test -n "$AR"; then
5140   ac_cv_prog_AR="$AR" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145   IFS=$as_save_IFS
5146   test -z "$as_dir" && as_dir=.
5147   for ac_exec_ext in '' $ac_executable_extensions; do
5148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149     ac_cv_prog_AR="$ac_prog"
5150     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151     break 2
5152   fi
5153 done
5154 done
5155 IFS=$as_save_IFS
5156
5157 fi
5158 fi
5159 AR=$ac_cv_prog_AR
5160 if test -n "$AR"; then
5161   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5162 $as_echo "$AR" >&6; }
5163 else
5164   { $as_echo "$as_me:$LINENO: result: no" >&5
5165 $as_echo "no" >&6; }
5166 fi
5167
5168
5169   test -n "$AR" && break
5170 done
5171 test -n "$AR" || AR="no"
5172
5173
5174
5175     r="`eval echo '$'"AR"`"
5176     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
5177         true
5178     else
5179         ##STEPMAKE_WARN(cannot find . )
5180         false
5181     fi
5182
5183     if test $? -ne 0; then
5184
5185     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
5186
5187         if test "REQUIRED" = "REQUIRED"; then
5188             command="echo ERROR: ar not found"
5189             # abort configure process here?
5190         else
5191             command="- echo ar not found"
5192         fi
5193         eval "AR"='$command'
5194         false
5195     else
5196         true
5197     fi
5198
5199     if test $? -eq 0 -a -n ""; then
5200
5201     r="`eval echo '$'"AR"`"
5202     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5203 $as_echo_n "checking $r version... " >&6; }
5204     exe=`
5205     ## which doesn't work in ash, if /usr/bin/which isn't installed
5206     ## type -p doesn't work in ash
5207     ## command -v doesn't work in zsh
5208     ## command -v "$r" 2>&1
5209     ## this test should work in ash, bash, pdksh (ksh), zsh
5210     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5211 `
5212     if test -n ""; then
5213         ver=""
5214     else
5215         ver=`
5216     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5217     ##
5218     ## ARG.
5219     ## Workaround for broken Debian gcc version string:
5220     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5221     ##
5222     ## -V: Workaround for python
5223
5224     #dnl
5225
5226     ## Assume and hunt for dotted version multiplet.
5227     ## use eval trickery, because we cannot use multi-level $() instead of ``
5228     ## for compatibility reasons.
5229
5230     ## grab the first version number in  --version output.
5231     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5232                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5233                 head -n 1 |
5234                 tr ' ' '\n' |
5235                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5236                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5237                 head -n 1\`\"
5238
5239     if test -z "$_ver"; then
5240         ## If empty, try date [fontforge]
5241         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5242             | head -n 1 \
5243             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5244     fi
5245     echo "$_ver"
5246     #dnl
5247 `
5248     fi
5249     num=`
5250     echo "$ver" | awk -F. '
5251     {
5252       if ($3) {three = $3}
5253       else {three = 0}
5254     }
5255     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5256 `
5257     req=`
5258     echo "" | awk -F. '
5259     {
5260       if ($3) {three = $3}
5261       else {three = 0}
5262     }
5263     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5264 `
5265     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5266 $as_echo "$ver" >&6; }
5267     if test "$num" -lt "$req"; then
5268
5269     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
5270
5271     fi
5272     vervar="`echo AR | tr 'a-z' 'A-Z'`_VERSION"
5273     eval `echo $vervar=$num`
5274 ##    AC_SUBST(`eval echo $vervar`)
5275
5276     fi
5277
5278     if test -n "$ac_tool_prefix"; then
5279   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5280 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5282 $as_echo_n "checking for $ac_word... " >&6; }
5283 if test "${ac_cv_prog_RANLIB+set}" = set; then
5284   $as_echo_n "(cached) " >&6
5285 else
5286   if test -n "$RANLIB"; then
5287   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5288 else
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5291 do
5292   IFS=$as_save_IFS
5293   test -z "$as_dir" && as_dir=.
5294   for ac_exec_ext in '' $ac_executable_extensions; do
5295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5296     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5297     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298     break 2
5299   fi
5300 done
5301 done
5302 IFS=$as_save_IFS
5303
5304 fi
5305 fi
5306 RANLIB=$ac_cv_prog_RANLIB
5307 if test -n "$RANLIB"; then
5308   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5309 $as_echo "$RANLIB" >&6; }
5310 else
5311   { $as_echo "$as_me:$LINENO: result: no" >&5
5312 $as_echo "no" >&6; }
5313 fi
5314
5315
5316 fi
5317 if test -z "$ac_cv_prog_RANLIB"; then
5318   ac_ct_RANLIB=$RANLIB
5319   # Extract the first word of "ranlib", so it can be a program name with args.
5320 set dummy ranlib; ac_word=$2
5321 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5324   $as_echo_n "(cached) " >&6
5325 else
5326   if test -n "$ac_ct_RANLIB"; then
5327   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5331 do
5332   IFS=$as_save_IFS
5333   test -z "$as_dir" && as_dir=.
5334   for ac_exec_ext in '' $ac_executable_extensions; do
5335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5336     ac_cv_prog_ac_ct_RANLIB="ranlib"
5337     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338     break 2
5339   fi
5340 done
5341 done
5342 IFS=$as_save_IFS
5343
5344 fi
5345 fi
5346 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5347 if test -n "$ac_ct_RANLIB"; then
5348   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5349 $as_echo "$ac_ct_RANLIB" >&6; }
5350 else
5351   { $as_echo "$as_me:$LINENO: result: no" >&5
5352 $as_echo "no" >&6; }
5353 fi
5354
5355   if test "x$ac_ct_RANLIB" = x; then
5356     RANLIB=":"
5357   else
5358     case $cross_compiling:$ac_tool_warned in
5359 yes:)
5360 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5362 ac_tool_warned=yes ;;
5363 esac
5364     RANLIB=$ac_ct_RANLIB
5365   fi
5366 else
5367   RANLIB="$ac_cv_prog_RANLIB"
5368 fi
5369
5370
5371
5372     r="`eval echo '$'"RANLIB"`"
5373     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
5374         true
5375     else
5376         ##STEPMAKE_WARN(cannot find . )
5377         false
5378     fi
5379
5380     if test $? -ne 0; then
5381
5382     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
5383
5384         if test "REQUIRED" = "REQUIRED"; then
5385             command="echo ERROR: ranlib not found"
5386             # abort configure process here?
5387         else
5388             command="- echo ranlib not found"
5389         fi
5390         eval "RANLIB"='$command'
5391         false
5392     else
5393         true
5394     fi
5395
5396
5397
5398
5399 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5400 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5401 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5402   $as_echo_n "(cached) " >&6
5403 else
5404   ac_check_lib_save_LIBS=$LIBS
5405 LIBS="-ldl  $LIBS"
5406 cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h.  */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h.  */
5412
5413 /* Override any GCC internal prototype to avoid an error.
5414    Use char because int might match the return type of a GCC
5415    builtin and then its argument prototype would still apply.  */
5416 #ifdef __cplusplus
5417 extern "C"
5418 #endif
5419 char dlopen ();
5420 int
5421 main ()
5422 {
5423 return dlopen ();
5424   ;
5425   return 0;
5426 }
5427 _ACEOF
5428 rm -f conftest.$ac_objext conftest$ac_exeext
5429 if { (ac_try="$ac_link"
5430 case "(($ac_try" in
5431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432   *) ac_try_echo=$ac_try;;
5433 esac
5434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5435 $as_echo "$ac_try_echo") >&5
5436   (eval "$ac_link") 2>conftest.er1
5437   ac_status=$?
5438   grep -v '^ *+' conftest.er1 >conftest.err
5439   rm -f conftest.er1
5440   cat conftest.err >&5
5441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442   (exit $ac_status); } && {
5443          test -z "$ac_cxx_werror_flag" ||
5444          test ! -s conftest.err
5445        } && test -s conftest$ac_exeext && {
5446          test "$cross_compiling" = yes ||
5447          $as_test_x conftest$ac_exeext
5448        }; then
5449   ac_cv_lib_dl_dlopen=yes
5450 else
5451   $as_echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5453
5454         ac_cv_lib_dl_dlopen=no
5455 fi
5456
5457 rm -rf conftest.dSYM
5458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5459       conftest$ac_exeext conftest.$ac_ext
5460 LIBS=$ac_check_lib_save_LIBS
5461 fi
5462 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5463 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5464 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
5465   cat >>confdefs.h <<_ACEOF
5466 #define HAVE_LIBDL 1
5467 _ACEOF
5468
5469   LIBS="-ldl $LIBS"
5470
5471 fi
5472
5473
5474 for ac_func in dlopen
5475 do
5476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5477 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5478 $as_echo_n "checking for $ac_func... " >&6; }
5479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5480   $as_echo_n "(cached) " >&6
5481 else
5482   cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h.  */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h.  */
5488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5490 #define $ac_func innocuous_$ac_func
5491
5492 /* System header to define __stub macros and hopefully few prototypes,
5493     which can conflict with char $ac_func (); below.
5494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5495     <limits.h> exists even on freestanding compilers.  */
5496
5497 #ifdef __STDC__
5498 # include <limits.h>
5499 #else
5500 # include <assert.h>
5501 #endif
5502
5503 #undef $ac_func
5504
5505 /* Override any GCC internal prototype to avoid an error.
5506    Use char because int might match the return type of a GCC
5507    builtin and then its argument prototype would still apply.  */
5508 #ifdef __cplusplus
5509 extern "C"
5510 #endif
5511 char $ac_func ();
5512 /* The GNU C library defines this for functions which it implements
5513     to always fail with ENOSYS.  Some functions are actually named
5514     something starting with __ and the normal name is an alias.  */
5515 #if defined __stub_$ac_func || defined __stub___$ac_func
5516 choke me
5517 #endif
5518
5519 int
5520 main ()
5521 {
5522 return $ac_func ();
5523   ;
5524   return 0;
5525 }
5526 _ACEOF
5527 rm -f conftest.$ac_objext conftest$ac_exeext
5528 if { (ac_try="$ac_link"
5529 case "(($ac_try" in
5530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531   *) ac_try_echo=$ac_try;;
5532 esac
5533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5534 $as_echo "$ac_try_echo") >&5
5535   (eval "$ac_link") 2>conftest.er1
5536   ac_status=$?
5537   grep -v '^ *+' conftest.er1 >conftest.err
5538   rm -f conftest.er1
5539   cat conftest.err >&5
5540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); } && {
5542          test -z "$ac_cxx_werror_flag" ||
5543          test ! -s conftest.err
5544        } && test -s conftest$ac_exeext && {
5545          test "$cross_compiling" = yes ||
5546          $as_test_x conftest$ac_exeext
5547        }; then
5548   eval "$as_ac_var=yes"
5549 else
5550   $as_echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5552
5553         eval "$as_ac_var=no"
5554 fi
5555
5556 rm -rf conftest.dSYM
5557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5558       conftest$ac_exeext conftest.$ac_ext
5559 fi
5560 ac_res=`eval 'as_val=${'$as_ac_var'}
5561                  $as_echo "$as_val"'`
5562                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5563 $as_echo "$ac_res" >&6; }
5564 as_val=`eval 'as_val=${'$as_ac_var'}
5565                  $as_echo "$as_val"'`
5566    if test "x$as_val" = x""yes; then
5567   cat >>confdefs.h <<_ACEOF
5568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5569 _ACEOF
5570
5571 fi
5572 done
5573
5574
5575 # Do not use bison 1.50 and 1.75.
5576 # 1.29 is required fr %locations, but I'm not sure it's enough --ns
5577
5578     # ugh, automake: we want (and check for) bison
5579     for ac_prog in 'bison -y' byacc
5580 do
5581   # Extract the first word of "$ac_prog", so it can be a program name with args.
5582 set dummy $ac_prog; ac_word=$2
5583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if test "${ac_cv_prog_YACC+set}" = set; then
5586   $as_echo_n "(cached) " >&6
5587 else
5588   if test -n "$YACC"; then
5589   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594   IFS=$as_save_IFS
5595   test -z "$as_dir" && as_dir=.
5596   for ac_exec_ext in '' $ac_executable_extensions; do
5597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5598     ac_cv_prog_YACC="$ac_prog"
5599     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5600     break 2
5601   fi
5602 done
5603 done
5604 IFS=$as_save_IFS
5605
5606 fi
5607 fi
5608 YACC=$ac_cv_prog_YACC
5609 if test -n "$YACC"; then
5610   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
5611 $as_echo "$YACC" >&6; }
5612 else
5613   { $as_echo "$as_me:$LINENO: result: no" >&5
5614 $as_echo "no" >&6; }
5615 fi
5616
5617
5618   test -n "$YACC" && break
5619 done
5620 test -n "$YACC" || YACC="yacc"
5621
5622
5623
5624     for ac_prog in bison
5625 do
5626   # Extract the first word of "$ac_prog", so it can be a program name with args.
5627 set dummy $ac_prog; ac_word=$2
5628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if test "${ac_cv_prog_BISON+set}" = set; then
5631   $as_echo_n "(cached) " >&6
5632 else
5633   if test -n "$BISON"; then
5634   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5635 else
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 for as_dir in $PATH
5638 do
5639   IFS=$as_save_IFS
5640   test -z "$as_dir" && as_dir=.
5641   for ac_exec_ext in '' $ac_executable_extensions; do
5642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5643     ac_cv_prog_BISON="$ac_prog"
5644     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5645     break 2
5646   fi
5647 done
5648 done
5649 IFS=$as_save_IFS
5650
5651 fi
5652 fi
5653 BISON=$ac_cv_prog_BISON
5654 if test -n "$BISON"; then
5655   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
5656 $as_echo "$BISON" >&6; }
5657 else
5658   { $as_echo "$as_me:$LINENO: result: no" >&5
5659 $as_echo "no" >&6; }
5660 fi
5661
5662
5663   test -n "$BISON" && break
5664 done
5665 test -n "$BISON" || BISON="no"
5666
5667
5668
5669     r="`eval echo '$'"BISON"`"
5670     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
5671         true
5672     else
5673         ##STEPMAKE_WARN(cannot find . )
5674         false
5675     fi
5676
5677     if test $? -ne 0; then
5678
5679     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"bison\"`\"
5680
5681         if test "OPTIONAL" = "REQUIRED"; then
5682             command="echo ERROR: bison not found"
5683             # abort configure process here?
5684         else
5685             command="- echo bison not found"
5686         fi
5687         eval "BISON"='$command'
5688         false
5689     else
5690         true
5691     fi
5692
5693     if test $? -eq 0 -a -n ""; then
5694
5695     r="`eval echo '$'"BISON"`"
5696     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5697 $as_echo_n "checking $r version... " >&6; }
5698     exe=`
5699     ## which doesn't work in ash, if /usr/bin/which isn't installed
5700     ## type -p doesn't work in ash
5701     ## command -v doesn't work in zsh
5702     ## command -v "$r" 2>&1
5703     ## this test should work in ash, bash, pdksh (ksh), zsh
5704     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5705 `
5706     if test -n ""; then
5707         ver=""
5708     else
5709         ver=`
5710     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5711     ##
5712     ## ARG.
5713     ## Workaround for broken Debian gcc version string:
5714     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5715     ##
5716     ## -V: Workaround for python
5717
5718     #dnl
5719
5720     ## Assume and hunt for dotted version multiplet.
5721     ## use eval trickery, because we cannot use multi-level $() instead of ``
5722     ## for compatibility reasons.
5723
5724     ## grab the first version number in  --version output.
5725     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5726                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5727                 head -n 1 |
5728                 tr ' ' '\n' |
5729                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5730                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5731                 head -n 1\`\"
5732
5733     if test -z "$_ver"; then
5734         ## If empty, try date [fontforge]
5735         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5736             | head -n 1 \
5737             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5738     fi
5739     echo "$_ver"
5740     #dnl
5741 `
5742     fi
5743     num=`
5744     echo "$ver" | awk -F. '
5745     {
5746       if ($3) {three = $3}
5747       else {three = 0}
5748     }
5749     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5750 `
5751     req=`
5752     echo "" | awk -F. '
5753     {
5754       if ($3) {three = $3}
5755       else {three = 0}
5756     }
5757     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5758 `
5759     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5760 $as_echo "$ver" >&6; }
5761     if test "$num" -lt "$req"; then
5762
5763     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
5764
5765     fi
5766     vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
5767     eval `echo $vervar=$num`
5768 ##    AC_SUBST(`eval echo $vervar`)
5769
5770     fi
5771
5772
5773     # urg.  should test functionality rather than version.
5774     if test "$BISON" = "bison" -a -n "1.29"; then
5775
5776     r="`eval echo '$'"BISON"`"
5777     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5778 $as_echo_n "checking $r version... " >&6; }
5779     exe=`
5780     ## which doesn't work in ash, if /usr/bin/which isn't installed
5781     ## type -p doesn't work in ash
5782     ## command -v doesn't work in zsh
5783     ## command -v "$r" 2>&1
5784     ## this test should work in ash, bash, pdksh (ksh), zsh
5785     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5786 `
5787     if test -n ""; then
5788         ver=""
5789     else
5790         ver=`
5791     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5792     ##
5793     ## ARG.
5794     ## Workaround for broken Debian gcc version string:
5795     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5796     ##
5797     ## -V: Workaround for python
5798
5799     #dnl
5800
5801     ## Assume and hunt for dotted version multiplet.
5802     ## use eval trickery, because we cannot use multi-level $() instead of ``
5803     ## for compatibility reasons.
5804
5805     ## grab the first version number in  --version output.
5806     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5807                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5808                 head -n 1 |
5809                 tr ' ' '\n' |
5810                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5811                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5812                 head -n 1\`\"
5813
5814     if test -z "$_ver"; then
5815         ## If empty, try date [fontforge]
5816         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5817             | head -n 1 \
5818             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5819     fi
5820     echo "$_ver"
5821     #dnl
5822 `
5823     fi
5824     num=`
5825     echo "$ver" | awk -F. '
5826     {
5827       if ($3) {three = $3}
5828       else {three = 0}
5829     }
5830     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5831 `
5832     req=`
5833     echo "1.29" | awk -F. '
5834     {
5835       if ($3) {three = $3}
5836       else {three = 0}
5837     }
5838     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5839 `
5840     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5841 $as_echo "$ver" >&6; }
5842     if test "$num" -lt "$req"; then
5843
5844     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 1.29 (installed: $ver)"\"`\"
5845
5846     fi
5847     vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
5848     eval `echo $vervar=$num`
5849 ##    AC_SUBST(`eval echo $vervar`)
5850
5851     fi
5852
5853
5854     # ugh, automake: we want (and check for) flex
5855     # AC_PROG_LEX
5856     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
5857
5858     # AC_PROG_LEX()
5859     # ugh, ugh
5860     ac_cv_prog_lex_root=lex.yy
5861
5862     for ac_prog in flex
5863 do
5864   # Extract the first word of "$ac_prog", so it can be a program name with args.
5865 set dummy $ac_prog; ac_word=$2
5866 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if test "${ac_cv_prog_FLEX+set}" = set; then
5869   $as_echo_n "(cached) " >&6
5870 else
5871   if test -n "$FLEX"; then
5872   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5873 else
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH
5876 do
5877   IFS=$as_save_IFS
5878   test -z "$as_dir" && as_dir=.
5879   for ac_exec_ext in '' $ac_executable_extensions; do
5880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5881     ac_cv_prog_FLEX="$ac_prog"
5882     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5883     break 2
5884   fi
5885 done
5886 done
5887 IFS=$as_save_IFS
5888
5889 fi
5890 fi
5891 FLEX=$ac_cv_prog_FLEX
5892 if test -n "$FLEX"; then
5893   { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
5894 $as_echo "$FLEX" >&6; }
5895 else
5896   { $as_echo "$as_me:$LINENO: result: no" >&5
5897 $as_echo "no" >&6; }
5898 fi
5899
5900
5901   test -n "$FLEX" && break
5902 done
5903 test -n "$FLEX" || FLEX="no"
5904
5905
5906
5907     r="`eval echo '$'"FLEX"`"
5908     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
5909         true
5910     else
5911         ##STEPMAKE_WARN(cannot find . )
5912         false
5913     fi
5914
5915     if test $? -ne 0; then
5916
5917     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
5918
5919         if test "REQUIRED" = "REQUIRED"; then
5920             command="echo ERROR: flex not found"
5921             # abort configure process here?
5922         else
5923             command="- echo flex not found"
5924         fi
5925         eval "FLEX"='$command'
5926         false
5927     else
5928         true
5929     fi
5930
5931     if test $? -eq 0 -a -n ""; then
5932
5933     r="`eval echo '$'"FLEX"`"
5934     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5935 $as_echo_n "checking $r version... " >&6; }
5936     exe=`
5937     ## which doesn't work in ash, if /usr/bin/which isn't installed
5938     ## type -p doesn't work in ash
5939     ## command -v doesn't work in zsh
5940     ## command -v "$r" 2>&1
5941     ## this test should work in ash, bash, pdksh (ksh), zsh
5942     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5943 `
5944     if test -n ""; then
5945         ver=""
5946     else
5947         ver=`
5948     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5949     ##
5950     ## ARG.
5951     ## Workaround for broken Debian gcc version string:
5952     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5953     ##
5954     ## -V: Workaround for python
5955
5956     #dnl
5957
5958     ## Assume and hunt for dotted version multiplet.
5959     ## use eval trickery, because we cannot use multi-level $() instead of ``
5960     ## for compatibility reasons.
5961
5962     ## grab the first version number in  --version output.
5963     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5964                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5965                 head -n 1 |
5966                 tr ' ' '\n' |
5967                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5968                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5969                 head -n 1\`\"
5970
5971     if test -z "$_ver"; then
5972         ## If empty, try date [fontforge]
5973         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5974             | head -n 1 \
5975             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5976     fi
5977     echo "$_ver"
5978     #dnl
5979 `
5980     fi
5981     num=`
5982     echo "$ver" | awk -F. '
5983     {
5984       if ($3) {three = $3}
5985       else {three = 0}
5986     }
5987     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5988 `
5989     req=`
5990     echo "" | awk -F. '
5991     {
5992       if ($3) {three = $3}
5993       else {three = 0}
5994     }
5995     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5996 `
5997     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5998 $as_echo "$ver" >&6; }
5999     if test "$num" -lt "$req"; then
6000
6001     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6002
6003     fi
6004     vervar="`echo FLEX | tr 'a-z' 'A-Z'`_VERSION"
6005     eval `echo $vervar=$num`
6006 ##    AC_SUBST(`eval echo $vervar`)
6007
6008     fi
6009
6010
6011 ac_ext=cpp
6012 ac_cpp='$CXXCPP $CPPFLAGS'
6013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6016 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6017 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6018 if test -z "$CXXCPP"; then
6019   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6020   $as_echo_n "(cached) " >&6
6021 else
6022       # Double quotes because CXXCPP needs to be expanded
6023     for CXXCPP in "$CXX -E" "/lib/cpp"
6024     do
6025       ac_preproc_ok=false
6026 for ac_cxx_preproc_warn_flag in '' yes
6027 do
6028   # Use a header file that comes with gcc, so configuring glibc
6029   # with a fresh cross-compiler works.
6030   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6031   # <limits.h> exists even on freestanding compilers.
6032   # On the NeXT, cc -E runs the code through the compiler's parser,
6033   # not just through cpp. "Syntax error" is here to catch this case.
6034   cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h.  */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h.  */
6040 #ifdef __STDC__
6041 # include <limits.h>
6042 #else
6043 # include <assert.h>
6044 #endif
6045                      Syntax error
6046 _ACEOF
6047 if { (ac_try="$ac_cpp conftest.$ac_ext"
6048 case "(($ac_try" in
6049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050   *) ac_try_echo=$ac_try;;
6051 esac
6052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6053 $as_echo "$ac_try_echo") >&5
6054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6055   ac_status=$?
6056   grep -v '^ *+' conftest.er1 >conftest.err
6057   rm -f conftest.er1
6058   cat conftest.err >&5
6059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060   (exit $ac_status); } >/dev/null && {
6061          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6062          test ! -s conftest.err
6063        }; then
6064   :
6065 else
6066   $as_echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6068
6069   # Broken: fails on valid input.
6070 continue
6071 fi
6072
6073 rm -f conftest.err conftest.$ac_ext
6074
6075   # OK, works on sane cases.  Now check whether nonexistent headers
6076   # can be detected and how.
6077   cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h.  */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h.  */
6083 #include <ac_nonexistent.h>
6084 _ACEOF
6085 if { (ac_try="$ac_cpp conftest.$ac_ext"
6086 case "(($ac_try" in
6087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088   *) ac_try_echo=$ac_try;;
6089 esac
6090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6091 $as_echo "$ac_try_echo") >&5
6092   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6093   ac_status=$?
6094   grep -v '^ *+' conftest.er1 >conftest.err
6095   rm -f conftest.er1
6096   cat conftest.err >&5
6097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); } >/dev/null && {
6099          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6100          test ! -s conftest.err
6101        }; then
6102   # Broken: success on invalid input.
6103 continue
6104 else
6105   $as_echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6107
6108   # Passes both tests.
6109 ac_preproc_ok=:
6110 break
6111 fi
6112
6113 rm -f conftest.err conftest.$ac_ext
6114
6115 done
6116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6117 rm -f conftest.err conftest.$ac_ext
6118 if $ac_preproc_ok; then
6119   break
6120 fi
6121
6122     done
6123     ac_cv_prog_CXXCPP=$CXXCPP
6124
6125 fi
6126   CXXCPP=$ac_cv_prog_CXXCPP
6127 else
6128   ac_cv_prog_CXXCPP=$CXXCPP
6129 fi
6130 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6131 $as_echo "$CXXCPP" >&6; }
6132 ac_preproc_ok=false
6133 for ac_cxx_preproc_warn_flag in '' yes
6134 do
6135   # Use a header file that comes with gcc, so configuring glibc
6136   # with a fresh cross-compiler works.
6137   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6138   # <limits.h> exists even on freestanding compilers.
6139   # On the NeXT, cc -E runs the code through the compiler's parser,
6140   # not just through cpp. "Syntax error" is here to catch this case.
6141   cat >conftest.$ac_ext <<_ACEOF
6142 /* confdefs.h.  */
6143 _ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h.  */
6147 #ifdef __STDC__
6148 # include <limits.h>
6149 #else
6150 # include <assert.h>
6151 #endif
6152                      Syntax error
6153 _ACEOF
6154 if { (ac_try="$ac_cpp conftest.$ac_ext"
6155 case "(($ac_try" in
6156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157   *) ac_try_echo=$ac_try;;
6158 esac
6159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6160 $as_echo "$ac_try_echo") >&5
6161   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6162   ac_status=$?
6163   grep -v '^ *+' conftest.er1 >conftest.err
6164   rm -f conftest.er1
6165   cat conftest.err >&5
6166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); } >/dev/null && {
6168          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6169          test ! -s conftest.err
6170        }; then
6171   :
6172 else
6173   $as_echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6175
6176   # Broken: fails on valid input.
6177 continue
6178 fi
6179
6180 rm -f conftest.err conftest.$ac_ext
6181
6182   # OK, works on sane cases.  Now check whether nonexistent headers
6183   # can be detected and how.
6184   cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h.  */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h.  */
6190 #include <ac_nonexistent.h>
6191 _ACEOF
6192 if { (ac_try="$ac_cpp conftest.$ac_ext"
6193 case "(($ac_try" in
6194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195   *) ac_try_echo=$ac_try;;
6196 esac
6197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6198 $as_echo "$ac_try_echo") >&5
6199   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6200   ac_status=$?
6201   grep -v '^ *+' conftest.er1 >conftest.err
6202   rm -f conftest.er1
6203   cat conftest.err >&5
6204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); } >/dev/null && {
6206          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6207          test ! -s conftest.err
6208        }; then
6209   # Broken: success on invalid input.
6210 continue
6211 else
6212   $as_echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6214
6215   # Passes both tests.
6216 ac_preproc_ok=:
6217 break
6218 fi
6219
6220 rm -f conftest.err conftest.$ac_ext
6221
6222 done
6223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6224 rm -f conftest.err conftest.$ac_ext
6225 if $ac_preproc_ok; then
6226   :
6227 else
6228   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6230 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6231 See \`config.log' for more details." >&5
6232 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6233 See \`config.log' for more details." >&2;}
6234    { (exit 1); exit 1; }; }; }
6235 fi
6236
6237 ac_ext=cpp
6238 ac_cpp='$CXXCPP $CPPFLAGS'
6239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6242
6243
6244 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6245 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6246 if test "${ac_cv_path_GREP+set}" = set; then
6247   $as_echo_n "(cached) " >&6
6248 else
6249   if test -z "$GREP"; then
6250   ac_path_GREP_found=false
6251   # Loop through the user's path and test for each of PROGNAME-LIST
6252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6254 do
6255   IFS=$as_save_IFS
6256   test -z "$as_dir" && as_dir=.
6257   for ac_prog in grep ggrep; do
6258     for ac_exec_ext in '' $ac_executable_extensions; do
6259       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6260       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6261 # Check for GNU ac_path_GREP and select it if it is found.
6262   # Check for GNU $ac_path_GREP
6263 case `"$ac_path_GREP" --version 2>&1` in
6264 *GNU*)
6265   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6266 *)
6267   ac_count=0
6268   $as_echo_n 0123456789 >"conftest.in"
6269   while :
6270   do
6271     cat "conftest.in" "conftest.in" >"conftest.tmp"
6272     mv "conftest.tmp" "conftest.in"
6273     cp "conftest.in" "conftest.nl"
6274     $as_echo 'GREP' >> "conftest.nl"
6275     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6276     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6277     ac_count=`expr $ac_count + 1`
6278     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6279       # Best one so far, save it but keep looking for a better one
6280       ac_cv_path_GREP="$ac_path_GREP"
6281       ac_path_GREP_max=$ac_count
6282     fi
6283     # 10*(2^10) chars as input seems more than enough
6284     test $ac_count -gt 10 && break
6285   done
6286   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6287 esac
6288
6289       $ac_path_GREP_found && break 3
6290     done
6291   done
6292 done
6293 IFS=$as_save_IFS
6294   if test -z "$ac_cv_path_GREP"; then
6295     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6296 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6297    { (exit 1); exit 1; }; }
6298   fi
6299 else
6300   ac_cv_path_GREP=$GREP
6301 fi
6302
6303 fi
6304 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6305 $as_echo "$ac_cv_path_GREP" >&6; }
6306  GREP="$ac_cv_path_GREP"
6307
6308
6309 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6310 $as_echo_n "checking for egrep... " >&6; }
6311 if test "${ac_cv_path_EGREP+set}" = set; then
6312   $as_echo_n "(cached) " >&6
6313 else
6314   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6315    then ac_cv_path_EGREP="$GREP -E"
6316    else
6317      if test -z "$EGREP"; then
6318   ac_path_EGREP_found=false
6319   # Loop through the user's path and test for each of PROGNAME-LIST
6320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6322 do
6323   IFS=$as_save_IFS
6324   test -z "$as_dir" && as_dir=.
6325   for ac_prog in egrep; do
6326     for ac_exec_ext in '' $ac_executable_extensions; do
6327       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6328       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6329 # Check for GNU ac_path_EGREP and select it if it is found.
6330   # Check for GNU $ac_path_EGREP
6331 case `"$ac_path_EGREP" --version 2>&1` in
6332 *GNU*)
6333   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6334 *)
6335   ac_count=0
6336   $as_echo_n 0123456789 >"conftest.in"
6337   while :
6338   do
6339     cat "conftest.in" "conftest.in" >"conftest.tmp"
6340     mv "conftest.tmp" "conftest.in"
6341     cp "conftest.in" "conftest.nl"
6342     $as_echo 'EGREP' >> "conftest.nl"
6343     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6344     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6345     ac_count=`expr $ac_count + 1`
6346     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6347       # Best one so far, save it but keep looking for a better one
6348       ac_cv_path_EGREP="$ac_path_EGREP"
6349       ac_path_EGREP_max=$ac_count
6350     fi
6351     # 10*(2^10) chars as input seems more than enough
6352     test $ac_count -gt 10 && break
6353   done
6354   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6355 esac
6356
6357       $ac_path_EGREP_found && break 3
6358     done
6359   done
6360 done
6361 IFS=$as_save_IFS
6362   if test -z "$ac_cv_path_EGREP"; then
6363     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6364 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6365    { (exit 1); exit 1; }; }
6366   fi
6367 else
6368   ac_cv_path_EGREP=$EGREP
6369 fi
6370
6371    fi
6372 fi
6373 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6374 $as_echo "$ac_cv_path_EGREP" >&6; }
6375  EGREP="$ac_cv_path_EGREP"
6376
6377
6378 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6379 $as_echo_n "checking for ANSI C header files... " >&6; }
6380 if test "${ac_cv_header_stdc+set}" = set; then
6381   $as_echo_n "(cached) " >&6
6382 else
6383   cat >conftest.$ac_ext <<_ACEOF
6384 /* confdefs.h.  */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h.  */
6389 #include <stdlib.h>
6390 #include <stdarg.h>
6391 #include <string.h>
6392 #include <float.h>
6393
6394 int
6395 main ()
6396 {
6397
6398   ;
6399   return 0;
6400 }
6401 _ACEOF
6402 rm -f conftest.$ac_objext
6403 if { (ac_try="$ac_compile"
6404 case "(($ac_try" in
6405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406   *) ac_try_echo=$ac_try;;
6407 esac
6408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6409 $as_echo "$ac_try_echo") >&5
6410   (eval "$ac_compile") 2>conftest.er1
6411   ac_status=$?
6412   grep -v '^ *+' conftest.er1 >conftest.err
6413   rm -f conftest.er1
6414   cat conftest.err >&5
6415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); } && {
6417          test -z "$ac_cxx_werror_flag" ||
6418          test ! -s conftest.err
6419        } && test -s conftest.$ac_objext; then
6420   ac_cv_header_stdc=yes
6421 else
6422   $as_echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6424
6425         ac_cv_header_stdc=no
6426 fi
6427
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429
6430 if test $ac_cv_header_stdc = yes; then
6431   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6432   cat >conftest.$ac_ext <<_ACEOF
6433 /* confdefs.h.  */
6434 _ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h.  */
6438 #include <string.h>
6439
6440 _ACEOF
6441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6442   $EGREP "memchr" >/dev/null 2>&1; then
6443   :
6444 else
6445   ac_cv_header_stdc=no
6446 fi
6447 rm -f conftest*
6448
6449 fi
6450
6451 if test $ac_cv_header_stdc = yes; then
6452   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6453   cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h.  */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h.  */
6459 #include <stdlib.h>
6460
6461 _ACEOF
6462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6463   $EGREP "free" >/dev/null 2>&1; then
6464   :
6465 else
6466   ac_cv_header_stdc=no
6467 fi
6468 rm -f conftest*
6469
6470 fi
6471
6472 if test $ac_cv_header_stdc = yes; then
6473   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6474   if test "$cross_compiling" = yes; then
6475   :
6476 else
6477   cat >conftest.$ac_ext <<_ACEOF
6478 /* confdefs.h.  */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h.  */
6483 #include <ctype.h>
6484 #include <stdlib.h>
6485 #if ((' ' & 0x0FF) == 0x020)
6486 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6487 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6488 #else
6489 # define ISLOWER(c) \
6490                    (('a' <= (c) && (c) <= 'i') \
6491                      || ('j' <= (c) && (c) <= 'r') \
6492                      || ('s' <= (c) && (c) <= 'z'))
6493 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6494 #endif
6495
6496 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6497 int
6498 main ()
6499 {
6500   int i;
6501   for (i = 0; i < 256; i++)
6502     if (XOR (islower (i), ISLOWER (i))
6503         || toupper (i) != TOUPPER (i))
6504       return 2;
6505   return 0;
6506 }
6507 _ACEOF
6508 rm -f conftest$ac_exeext
6509 if { (ac_try="$ac_link"
6510 case "(($ac_try" in
6511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512   *) ac_try_echo=$ac_try;;
6513 esac
6514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6515 $as_echo "$ac_try_echo") >&5
6516   (eval "$ac_link") 2>&5
6517   ac_status=$?
6518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6520   { (case "(($ac_try" in
6521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522   *) ac_try_echo=$ac_try;;
6523 esac
6524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6525 $as_echo "$ac_try_echo") >&5
6526   (eval "$ac_try") 2>&5
6527   ac_status=$?
6528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529   (exit $ac_status); }; }; then
6530   :
6531 else
6532   $as_echo "$as_me: program exited with status $ac_status" >&5
6533 $as_echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6535
6536 ( exit $ac_status )
6537 ac_cv_header_stdc=no
6538 fi
6539 rm -rf conftest.dSYM
6540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6541 fi
6542
6543
6544 fi
6545 fi
6546 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6547 $as_echo "$ac_cv_header_stdc" >&6; }
6548 if test $ac_cv_header_stdc = yes; then
6549
6550 cat >>confdefs.h <<\_ACEOF
6551 #define STDC_HEADERS 1
6552 _ACEOF
6553
6554 fi
6555
6556 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6567                   inttypes.h stdint.h unistd.h
6568 do
6569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6570 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6571 $as_echo_n "checking for $ac_header... " >&6; }
6572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6573   $as_echo_n "(cached) " >&6
6574 else
6575   cat >conftest.$ac_ext <<_ACEOF
6576 /* confdefs.h.  */
6577 _ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h.  */
6581 $ac_includes_default
6582
6583 #include <$ac_header>
6584 _ACEOF
6585 rm -f conftest.$ac_objext
6586 if { (ac_try="$ac_compile"
6587 case "(($ac_try" in
6588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589   *) ac_try_echo=$ac_try;;
6590 esac
6591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6592 $as_echo "$ac_try_echo") >&5
6593   (eval "$ac_compile") 2>conftest.er1
6594   ac_status=$?
6595   grep -v '^ *+' conftest.er1 >conftest.err
6596   rm -f conftest.er1
6597   cat conftest.err >&5
6598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); } && {
6600          test -z "$ac_cxx_werror_flag" ||
6601          test ! -s conftest.err
6602        } && test -s conftest.$ac_objext; then
6603   eval "$as_ac_Header=yes"
6604 else
6605   $as_echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6607
6608         eval "$as_ac_Header=no"
6609 fi
6610
6611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 fi
6613 ac_res=`eval 'as_val=${'$as_ac_Header'}
6614                  $as_echo "$as_val"'`
6615                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6616 $as_echo "$ac_res" >&6; }
6617 as_val=`eval 'as_val=${'$as_ac_Header'}
6618                  $as_echo "$as_val"'`
6619    if test "x$as_val" = x""yes; then
6620   cat >>confdefs.h <<_ACEOF
6621 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6622 _ACEOF
6623
6624 fi
6625
6626 done
6627
6628
6629
6630
6631 for ac_header in FlexLexer.h
6632 do
6633 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6635   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6636 $as_echo_n "checking for $ac_header... " >&6; }
6637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6638   $as_echo_n "(cached) " >&6
6639 fi
6640 ac_res=`eval 'as_val=${'$as_ac_Header'}
6641                  $as_echo "$as_val"'`
6642                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6643 $as_echo "$ac_res" >&6; }
6644 else
6645   # Is the header compilable?
6646 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6647 $as_echo_n "checking $ac_header usability... " >&6; }
6648 cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h.  */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h.  */
6654 $ac_includes_default
6655 #include <$ac_header>
6656 _ACEOF
6657 rm -f conftest.$ac_objext
6658 if { (ac_try="$ac_compile"
6659 case "(($ac_try" in
6660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661   *) ac_try_echo=$ac_try;;
6662 esac
6663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6664 $as_echo "$ac_try_echo") >&5
6665   (eval "$ac_compile") 2>conftest.er1
6666   ac_status=$?
6667   grep -v '^ *+' conftest.er1 >conftest.err
6668   rm -f conftest.er1
6669   cat conftest.err >&5
6670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671   (exit $ac_status); } && {
6672          test -z "$ac_cxx_werror_flag" ||
6673          test ! -s conftest.err
6674        } && test -s conftest.$ac_objext; then
6675   ac_header_compiler=yes
6676 else
6677   $as_echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6679
6680         ac_header_compiler=no
6681 fi
6682
6683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6685 $as_echo "$ac_header_compiler" >&6; }
6686
6687 # Is the header present?
6688 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6689 $as_echo_n "checking $ac_header presence... " >&6; }
6690 cat >conftest.$ac_ext <<_ACEOF
6691 /* confdefs.h.  */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h.  */
6696 #include <$ac_header>
6697 _ACEOF
6698 if { (ac_try="$ac_cpp conftest.$ac_ext"
6699 case "(($ac_try" in
6700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701   *) ac_try_echo=$ac_try;;
6702 esac
6703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6704 $as_echo "$ac_try_echo") >&5
6705   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6706   ac_status=$?
6707   grep -v '^ *+' conftest.er1 >conftest.err
6708   rm -f conftest.er1
6709   cat conftest.err >&5
6710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711   (exit $ac_status); } >/dev/null && {
6712          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6713          test ! -s conftest.err
6714        }; then
6715   ac_header_preproc=yes
6716 else
6717   $as_echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6719
6720   ac_header_preproc=no
6721 fi
6722
6723 rm -f conftest.err conftest.$ac_ext
6724 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6725 $as_echo "$ac_header_preproc" >&6; }
6726
6727 # So?  What about this header?
6728 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6729   yes:no: )
6730     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6731 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6732     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6733 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6734     ac_header_preproc=yes
6735     ;;
6736   no:yes:* )
6737     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6738 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6739     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6740 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6741     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6742 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6743     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6744 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6745     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6746 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6747     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6748 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6749
6750     ;;
6751 esac
6752 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6753 $as_echo_n "checking for $ac_header... " >&6; }
6754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6755   $as_echo_n "(cached) " >&6
6756 else
6757   eval "$as_ac_Header=\$ac_header_preproc"
6758 fi
6759 ac_res=`eval 'as_val=${'$as_ac_Header'}
6760                  $as_echo "$as_val"'`
6761                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6762 $as_echo "$ac_res" >&6; }
6763
6764 fi
6765 as_val=`eval 'as_val=${'$as_ac_Header'}
6766                  $as_echo "$as_val"'`
6767    if test "x$as_val" = x""yes; then
6768   cat >>confdefs.h <<_ACEOF
6769 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6770 _ACEOF
6771  true
6772 else
6773   false
6774 fi
6775
6776 done
6777
6778     if test $? -ne 0; then
6779         warn='FlexLexer.h (flex package)'
6780
6781     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
6782
6783     fi
6784     # check for yyFlexLexer.yy_current_buffer,
6785     # in 2.5.4 <= flex < 2.5.29
6786     { $as_echo "$as_me:$LINENO: checking for yyFlexLexer.yy_current_buffer" >&5
6787 $as_echo_n "checking for yyFlexLexer.yy_current_buffer... " >&6; }
6788 if test "${stepmake_cv_flexlexer_yy_current_buffer+set}" = set; then
6789   $as_echo_n "(cached) " >&6
6790 else
6791   cat >conftest.$ac_ext <<_ACEOF
6792 /* confdefs.h.  */
6793 _ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h.  */
6797
6798 using namespace std;
6799 #include <FlexLexer.h>
6800 class yy_flex_lexer: public yyFlexLexer
6801 {
6802   public:
6803     yy_flex_lexer ()
6804     {
6805       yy_current_buffer = 0;
6806     }
6807 };
6808
6809 int
6810 main ()
6811 {
6812
6813   ;
6814   return 0;
6815 }
6816 _ACEOF
6817 rm -f conftest.$ac_objext
6818 if { (ac_try="$ac_compile"
6819 case "(($ac_try" in
6820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821   *) ac_try_echo=$ac_try;;
6822 esac
6823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6824 $as_echo "$ac_try_echo") >&5
6825   (eval "$ac_compile") 2>conftest.er1
6826   ac_status=$?
6827   grep -v '^ *+' conftest.er1 >conftest.err
6828   rm -f conftest.er1
6829   cat conftest.err >&5
6830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831   (exit $ac_status); } && {
6832          test -z "$ac_cxx_werror_flag" ||
6833          test ! -s conftest.err
6834        } && test -s conftest.$ac_objext; then
6835   stepmake_cv_flexlexer_yy_current_buffer=yes
6836 else
6837   $as_echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6839
6840         stepmake_cv_flexlexer_yy_current_buffer=no
6841 fi
6842
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844 fi
6845 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_flexlexer_yy_current_buffer" >&5
6846 $as_echo "$stepmake_cv_flexlexer_yy_current_buffer" >&6; }
6847     if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
6848
6849 cat >>confdefs.h <<\_ACEOF
6850 #define HAVE_FLEXLEXER_YY_CURRENT_BUFFER 1
6851 _ACEOF
6852
6853     fi
6854
6855
6856         { $as_echo "$as_me:$LINENO: checking FlexLexer.h location" >&5
6857 $as_echo_n "checking FlexLexer.h location... " >&6; }
6858
6859         # ugh.
6860         cat <<EOF > conftest.cc
6861 using namespace std;
6862 #include <FlexLexer.h>
6863 EOF
6864         FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
6865           sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
6866           sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
6867         rm conftest.cc
6868
6869         { $as_echo "$as_me:$LINENO: result: $FLEXLEXER_FILE" >&5
6870 $as_echo "$FLEXLEXER_FILE" >&6; }
6871
6872
6873     lang=English
6874     ALL_LINGUAS="en nl"
6875
6876     # with/enable ??
6877
6878 # Check whether --with-localedir was given.
6879 if test "${with_localedir+set}" = set; then
6880   withval=$with_localedir; localedir=$with_localedir
6881 else
6882   localedir='${prefix}/share/locale'
6883 fi
6884
6885
6886
6887 # Check whether --with-lang was given.
6888 if test "${with_lang+set}" = set; then
6889   withval=$with_lang; language=$with_lang
6890 else
6891   language=English
6892 fi
6893
6894
6895     { $as_echo "$as_me:$LINENO: checking language" >&5
6896 $as_echo_n "checking language... " >&6; }
6897     case "$language" in
6898       En* | en* | Am* | am* | US* | us*)
6899             lang=English;;
6900       NL | nl | Du* | du* | Ned* | ned*)
6901             lang=Dutch;;
6902       "")
6903             lang=English;;
6904       *)
6905             lang=unknown;;
6906     esac
6907     { $as_echo "$as_me:$LINENO: result: $lang" >&5
6908 $as_echo "$lang" >&6; }
6909
6910     if test "$lang" = "unknown" ; then
6911
6912     { $as_echo "$as_me:$LINENO: WARNING: $language not supported; available are: $ALL_LINGUAS" >&5
6913 $as_echo "$as_me: WARNING: $language not supported; available are: $ALL_LINGUAS" >&2;}
6914     warn_b=yes
6915
6916     fi
6917
6918
6919
6920     presome=${prefix}
6921     if test "$prefix" = "NONE"; then
6922             presome=${ac_default_prefix}
6923     fi
6924     LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
6925
6926
6927     cat >>confdefs.h <<_ACEOF
6928 #define LOCALEDIR "${LOCALEDIR}"
6929 _ACEOF
6930
6931
6932 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
6933 $as_echo_n "checking for gettext in -lintl... " >&6; }
6934 if test "${ac_cv_lib_intl_gettext+set}" = set; then
6935   $as_echo_n "(cached) " >&6
6936 else
6937   ac_check_lib_save_LIBS=$LIBS
6938 LIBS="-lintl  $LIBS"
6939 cat >conftest.$ac_ext <<_ACEOF
6940 /* confdefs.h.  */
6941 _ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h.  */
6945
6946 /* Override any GCC internal prototype to avoid an error.
6947    Use char because int might match the return type of a GCC
6948    builtin and then its argument prototype would still apply.  */
6949 #ifdef __cplusplus
6950 extern "C"
6951 #endif
6952 char gettext ();
6953 int
6954 main ()
6955 {
6956 return gettext ();
6957   ;
6958   return 0;
6959 }
6960 _ACEOF
6961 rm -f conftest.$ac_objext conftest$ac_exeext
6962 if { (ac_try="$ac_link"
6963 case "(($ac_try" in
6964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965   *) ac_try_echo=$ac_try;;
6966 esac
6967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6968 $as_echo "$ac_try_echo") >&5
6969   (eval "$ac_link") 2>conftest.er1
6970   ac_status=$?
6971   grep -v '^ *+' conftest.er1 >conftest.err
6972   rm -f conftest.er1
6973   cat conftest.err >&5
6974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975   (exit $ac_status); } && {
6976          test -z "$ac_cxx_werror_flag" ||
6977          test ! -s conftest.err
6978        } && test -s conftest$ac_exeext && {
6979          test "$cross_compiling" = yes ||
6980          $as_test_x conftest$ac_exeext
6981        }; then
6982   ac_cv_lib_intl_gettext=yes
6983 else
6984   $as_echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6986
6987         ac_cv_lib_intl_gettext=no
6988 fi
6989
6990 rm -rf conftest.dSYM
6991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6992       conftest$ac_exeext conftest.$ac_ext
6993 LIBS=$ac_check_lib_save_LIBS
6994 fi
6995 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
6996 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
6997 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
6998   cat >>confdefs.h <<_ACEOF
6999 #define HAVE_LIBINTL 1
7000 _ACEOF
7001
7002   LIBS="-lintl $LIBS"
7003
7004 fi
7005
7006
7007 for ac_func in gettext
7008 do
7009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7010 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7011 $as_echo_n "checking for $ac_func... " >&6; }
7012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7013   $as_echo_n "(cached) " >&6
7014 else
7015   cat >conftest.$ac_ext <<_ACEOF
7016 /* confdefs.h.  */
7017 _ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h.  */
7021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7023 #define $ac_func innocuous_$ac_func
7024
7025 /* System header to define __stub macros and hopefully few prototypes,
7026     which can conflict with char $ac_func (); below.
7027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7028     <limits.h> exists even on freestanding compilers.  */
7029
7030 #ifdef __STDC__
7031 # include <limits.h>
7032 #else
7033 # include <assert.h>
7034 #endif
7035
7036 #undef $ac_func
7037
7038 /* Override any GCC internal prototype to avoid an error.
7039    Use char because int might match the return type of a GCC
7040    builtin and then its argument prototype would still apply.  */
7041 #ifdef __cplusplus
7042 extern "C"
7043 #endif
7044 char $ac_func ();
7045 /* The GNU C library defines this for functions which it implements
7046     to always fail with ENOSYS.  Some functions are actually named
7047     something starting with __ and the normal name is an alias.  */
7048 #if defined __stub_$ac_func || defined __stub___$ac_func
7049 choke me
7050 #endif
7051
7052 int
7053 main ()
7054 {
7055 return $ac_func ();
7056   ;
7057   return 0;
7058 }
7059 _ACEOF
7060 rm -f conftest.$ac_objext conftest$ac_exeext
7061 if { (ac_try="$ac_link"
7062 case "(($ac_try" in
7063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064   *) ac_try_echo=$ac_try;;
7065 esac
7066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7067 $as_echo "$ac_try_echo") >&5
7068   (eval "$ac_link") 2>conftest.er1
7069   ac_status=$?
7070   grep -v '^ *+' conftest.er1 >conftest.err
7071   rm -f conftest.er1
7072   cat conftest.err >&5
7073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); } && {
7075          test -z "$ac_cxx_werror_flag" ||
7076          test ! -s conftest.err
7077        } && test -s conftest$ac_exeext && {
7078          test "$cross_compiling" = yes ||
7079          $as_test_x conftest$ac_exeext
7080        }; then
7081   eval "$as_ac_var=yes"
7082 else
7083   $as_echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7085
7086         eval "$as_ac_var=no"
7087 fi
7088
7089 rm -rf conftest.dSYM
7090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7091       conftest$ac_exeext conftest.$ac_ext
7092 fi
7093 ac_res=`eval 'as_val=${'$as_ac_var'}
7094                  $as_echo "$as_val"'`
7095                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7096 $as_echo "$ac_res" >&6; }
7097 as_val=`eval 'as_val=${'$as_ac_var'}
7098                  $as_echo "$as_val"'`
7099    if test "x$as_val" = x""yes; then
7100   cat >>confdefs.h <<_ACEOF
7101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7102 _ACEOF
7103
7104 fi
7105 done
7106
7107
7108
7109
7110     for ac_prog in msgfmt
7111 do
7112   # Extract the first word of "$ac_prog", so it can be a program name with args.
7113 set dummy $ac_prog; ac_word=$2
7114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7115 $as_echo_n "checking for $ac_word... " >&6; }
7116 if test "${ac_cv_prog_MSGFMT+set}" = set; then
7117   $as_echo_n "(cached) " >&6
7118 else
7119   if test -n "$MSGFMT"; then
7120   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7121 else
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125   IFS=$as_save_IFS
7126   test -z "$as_dir" && as_dir=.
7127   for ac_exec_ext in '' $ac_executable_extensions; do
7128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129     ac_cv_prog_MSGFMT="$ac_prog"
7130     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131     break 2
7132   fi
7133 done
7134 done
7135 IFS=$as_save_IFS
7136
7137 fi
7138 fi
7139 MSGFMT=$ac_cv_prog_MSGFMT
7140 if test -n "$MSGFMT"; then
7141   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7142 $as_echo "$MSGFMT" >&6; }
7143 else
7144   { $as_echo "$as_me:$LINENO: result: no" >&5
7145 $as_echo "no" >&6; }
7146 fi
7147
7148
7149   test -n "$MSGFMT" && break
7150 done
7151 test -n "$MSGFMT" || MSGFMT="no"
7152
7153
7154
7155     r="`eval echo '$'"MSGFMT"`"
7156     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
7157         true
7158     else
7159         ##STEPMAKE_WARN(cannot find . )
7160         false
7161     fi
7162
7163     if test $? -ne 0; then
7164
7165     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
7166
7167         if test "REQUIRED" = "REQUIRED"; then
7168             command="echo ERROR: msgfmt not found"
7169             # abort configure process here?
7170         else
7171             command="- echo msgfmt not found"
7172         fi
7173         eval "MSGFMT"='$command'
7174         false
7175     else
7176         true
7177     fi
7178
7179     if test $? -eq 0 -a -n ""; then
7180
7181     r="`eval echo '$'"MSGFMT"`"
7182     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7183 $as_echo_n "checking $r version... " >&6; }
7184     exe=`
7185     ## which doesn't work in ash, if /usr/bin/which isn't installed
7186     ## type -p doesn't work in ash
7187     ## command -v doesn't work in zsh
7188     ## command -v "$r" 2>&1
7189     ## this test should work in ash, bash, pdksh (ksh), zsh
7190     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7191 `
7192     if test -n ""; then
7193         ver=""
7194     else
7195         ver=`
7196     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7197     ##
7198     ## ARG.
7199     ## Workaround for broken Debian gcc version string:
7200     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7201     ##
7202     ## -V: Workaround for python
7203
7204     #dnl
7205
7206     ## Assume and hunt for dotted version multiplet.
7207     ## use eval trickery, because we cannot use multi-level $() instead of ``
7208     ## for compatibility reasons.
7209
7210     ## grab the first version number in  --version output.
7211     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7212                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7213                 head -n 1 |
7214                 tr ' ' '\n' |
7215                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7216                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7217                 head -n 1\`\"
7218
7219     if test -z "$_ver"; then
7220         ## If empty, try date [fontforge]
7221         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7222             | head -n 1 \
7223             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7224     fi
7225     echo "$_ver"
7226     #dnl
7227 `
7228     fi
7229     num=`
7230     echo "$ver" | awk -F. '
7231     {
7232       if ($3) {three = $3}
7233       else {three = 0}
7234     }
7235     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7236 `
7237     req=`
7238     echo "" | awk -F. '
7239     {
7240       if ($3) {three = $3}
7241       else {three = 0}
7242     }
7243     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7244 `
7245     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7246 $as_echo "$ver" >&6; }
7247     if test "$num" -lt "$req"; then
7248
7249     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
7250
7251     fi
7252     vervar="`echo MSGFMT | tr 'a-z' 'A-Z'`_VERSION"
7253     eval `echo $vervar=$num`
7254 ##    AC_SUBST(`eval echo $vervar`)
7255
7256     fi
7257
7258
7259
7260
7261     for ac_prog in mf-nowin mf mfw mfont
7262 do
7263   # Extract the first word of "$ac_prog", so it can be a program name with args.
7264 set dummy $ac_prog; ac_word=$2
7265 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if test "${ac_cv_prog_METAFONT+set}" = set; then
7268   $as_echo_n "(cached) " >&6
7269 else
7270   if test -n "$METAFONT"; then
7271   ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
7272 else
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276   IFS=$as_save_IFS
7277   test -z "$as_dir" && as_dir=.
7278   for ac_exec_ext in '' $ac_executable_extensions; do
7279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7280     ac_cv_prog_METAFONT="$ac_prog"
7281     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282     break 2
7283   fi
7284 done
7285 done
7286 IFS=$as_save_IFS
7287
7288 fi
7289 fi
7290 METAFONT=$ac_cv_prog_METAFONT
7291 if test -n "$METAFONT"; then
7292   { $as_echo "$as_me:$LINENO: result: $METAFONT" >&5
7293 $as_echo "$METAFONT" >&6; }
7294 else
7295   { $as_echo "$as_me:$LINENO: result: no" >&5
7296 $as_echo "no" >&6; }
7297 fi
7298
7299
7300   test -n "$METAFONT" && break
7301 done
7302 test -n "$METAFONT" || METAFONT="no"
7303
7304
7305
7306     r="`eval echo '$'"METAFONT"`"
7307     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
7308         true
7309     else
7310         ##STEPMAKE_WARN(cannot find . )
7311         false
7312     fi
7313
7314     if test $? -ne 0; then
7315
7316     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mf-nowin mf mfw mfont\"`\"
7317
7318         if test "REQUIRED" = "REQUIRED"; then
7319             command="echo ERROR: mf-nowin mf mfw mfont not found"
7320             # abort configure process here?
7321         else
7322             command="- echo mf-nowin mf mfw mfont not found"
7323         fi
7324         eval "METAFONT"='$command'
7325         false
7326     else
7327         true
7328     fi
7329
7330     if test $? -eq 0 -a -n ""; then
7331
7332     r="`eval echo '$'"METAFONT"`"
7333     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7334 $as_echo_n "checking $r version... " >&6; }
7335     exe=`
7336     ## which doesn't work in ash, if /usr/bin/which isn't installed
7337     ## type -p doesn't work in ash
7338     ## command -v doesn't work in zsh
7339     ## command -v "$r" 2>&1
7340     ## this test should work in ash, bash, pdksh (ksh), zsh
7341     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7342 `
7343     if test -n ""; then
7344         ver=""
7345     else
7346         ver=`
7347     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7348     ##
7349     ## ARG.
7350     ## Workaround for broken Debian gcc version string:
7351     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7352     ##
7353     ## -V: Workaround for python
7354
7355     #dnl
7356
7357     ## Assume and hunt for dotted version multiplet.
7358     ## use eval trickery, because we cannot use multi-level $() instead of ``
7359     ## for compatibility reasons.
7360
7361     ## grab the first version number in  --version output.
7362     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7363                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7364                 head -n 1 |
7365                 tr ' ' '\n' |
7366                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7367                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7368                 head -n 1\`\"
7369
7370     if test -z "$_ver"; then
7371         ## If empty, try date [fontforge]
7372         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7373             | head -n 1 \
7374             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7375     fi
7376     echo "$_ver"
7377     #dnl
7378 `
7379     fi
7380     num=`
7381     echo "$ver" | awk -F. '
7382     {
7383       if ($3) {three = $3}
7384       else {three = 0}
7385     }
7386     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7387 `
7388     req=`
7389     echo "" | awk -F. '
7390     {
7391       if ($3) {three = $3}
7392       else {three = 0}
7393     }
7394     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7395 `
7396     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7397 $as_echo "$ver" >&6; }
7398     if test "$num" -lt "$req"; then
7399
7400     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
7401
7402     fi
7403     vervar="`echo METAFONT | tr 'a-z' 'A-Z'`_VERSION"
7404     eval `echo $vervar=$num`
7405 ##    AC_SUBST(`eval echo $vervar`)
7406
7407     fi
7408
7409
7410     for ac_prog in mpost
7411 do
7412   # Extract the first word of "$ac_prog", so it can be a program name with args.
7413 set dummy $ac_prog; ac_word=$2
7414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 $as_echo_n "checking for $ac_word... " >&6; }
7416 if test "${ac_cv_prog_METAPOST+set}" = set; then
7417   $as_echo_n "(cached) " >&6
7418 else
7419   if test -n "$METAPOST"; then
7420   ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
7421 else
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425   IFS=$as_save_IFS
7426   test -z "$as_dir" && as_dir=.
7427   for ac_exec_ext in '' $ac_executable_extensions; do
7428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429     ac_cv_prog_METAPOST="$ac_prog"
7430     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431     break 2
7432   fi
7433 done
7434 done
7435 IFS=$as_save_IFS
7436
7437 fi
7438 fi
7439 METAPOST=$ac_cv_prog_METAPOST
7440 if test -n "$METAPOST"; then
7441   { $as_echo "$as_me:$LINENO: result: $METAPOST" >&5
7442 $as_echo "$METAPOST" >&6; }
7443 else
7444   { $as_echo "$as_me:$LINENO: result: no" >&5
7445 $as_echo "no" >&6; }
7446 fi
7447
7448
7449   test -n "$METAPOST" && break
7450 done
7451 test -n "$METAPOST" || METAPOST="no"
7452
7453
7454
7455     r="`eval echo '$'"METAPOST"`"
7456     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAPOST"`' : '.*\(echo\)' > /dev/null; then
7457         true
7458     else
7459         ##STEPMAKE_WARN(cannot find . )
7460         false
7461     fi
7462
7463     if test $? -ne 0; then
7464
7465     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mpost\"`\"
7466
7467         if test "REQUIRED" = "REQUIRED"; then
7468             command="echo ERROR: mpost not found"
7469             # abort configure process here?
7470         else
7471             command="- echo mpost not found"
7472         fi
7473         eval "METAPOST"='$command'
7474         false
7475     else
7476         true
7477     fi
7478
7479     if test $? -eq 0 -a -n ""; then
7480
7481     r="`eval echo '$'"METAPOST"`"
7482     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7483 $as_echo_n "checking $r version... " >&6; }
7484     exe=`
7485     ## which doesn't work in ash, if /usr/bin/which isn't installed
7486     ## type -p doesn't work in ash
7487     ## command -v doesn't work in zsh
7488     ## command -v "$r" 2>&1
7489     ## this test should work in ash, bash, pdksh (ksh), zsh
7490     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7491 `
7492     if test -n ""; then
7493         ver=""
7494     else
7495         ver=`
7496     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7497     ##
7498     ## ARG.
7499     ## Workaround for broken Debian gcc version string:
7500     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7501     ##
7502     ## -V: Workaround for python
7503
7504     #dnl
7505
7506     ## Assume and hunt for dotted version multiplet.
7507     ## use eval trickery, because we cannot use multi-level $() instead of ``
7508     ## for compatibility reasons.
7509
7510     ## grab the first version number in  --version output.
7511     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7512                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7513                 head -n 1 |
7514                 tr ' ' '\n' |
7515                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7516                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7517                 head -n 1\`\"
7518
7519     if test -z "$_ver"; then
7520         ## If empty, try date [fontforge]
7521         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7522             | head -n 1 \
7523             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7524     fi
7525     echo "$_ver"
7526     #dnl
7527 `
7528     fi
7529     num=`
7530     echo "$ver" | awk -F. '
7531     {
7532       if ($3) {three = $3}
7533       else {three = 0}
7534     }
7535     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7536 `
7537     req=`
7538     echo "" | awk -F. '
7539     {
7540       if ($3) {three = $3}
7541       else {three = 0}
7542     }
7543     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7544 `
7545     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7546 $as_echo "$ver" >&6; }
7547     if test "$num" -lt "$req"; then
7548
7549     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
7550
7551     fi
7552     vervar="`echo METAPOST | tr 'a-z' 'A-Z'`_VERSION"
7553     eval `echo $vervar=$num`
7554 ##    AC_SUBST(`eval echo $vervar`)
7555
7556     fi
7557
7558
7559     { $as_echo "$as_me:$LINENO: checking for working metafont mode" >&5
7560 $as_echo_n "checking for working metafont mode... " >&6; }
7561     modelist='ljfour lj4 lj3 lj2 ljet laserjet'
7562     for MFMODE in $modelist; do
7563         $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
7564         if test -f mfput.tfm; then
7565             break;
7566         fi
7567     done
7568     { $as_echo "$as_me:$LINENO: result: $MFMODE" >&5
7569 $as_echo "$MFMODE" >&6; }
7570
7571     rm -f mfput.*
7572
7573
7574
7575
7576     # ugh
7577
7578     for ac_prog in kpsewhich
7579 do
7580   # Extract the first word of "$ac_prog", so it can be a program name with args.
7581 set dummy $ac_prog; ac_word=$2
7582 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 $as_echo_n "checking for $ac_word... " >&6; }
7584 if test "${ac_cv_prog_KPSEWHICH+set}" = set; then
7585   $as_echo_n "(cached) " >&6
7586 else
7587   if test -n "$KPSEWHICH"; then
7588   ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
7589 else
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 for as_dir in $PATH
7592 do
7593   IFS=$as_save_IFS
7594   test -z "$as_dir" && as_dir=.
7595   for ac_exec_ext in '' $ac_executable_extensions; do
7596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7597     ac_cv_prog_KPSEWHICH="$ac_prog"
7598     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7599     break 2
7600   fi
7601 done
7602 done
7603 IFS=$as_save_IFS
7604
7605 fi
7606 fi
7607 KPSEWHICH=$ac_cv_prog_KPSEWHICH
7608 if test -n "$KPSEWHICH"; then
7609   { $as_echo "$as_me:$LINENO: result: $KPSEWHICH" >&5
7610 $as_echo "$KPSEWHICH" >&6; }
7611 else
7612   { $as_echo "$as_me:$LINENO: result: no" >&5
7613 $as_echo "no" >&6; }
7614 fi
7615
7616
7617   test -n "$KPSEWHICH" && break
7618 done
7619 test -n "$KPSEWHICH" || KPSEWHICH="no"
7620
7621
7622
7623     r="`eval echo '$'"KPSEWHICH"`"
7624     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
7625         true
7626     else
7627         ##STEPMAKE_WARN(cannot find . )
7628         false
7629     fi
7630
7631     if test $? -ne 0; then
7632
7633     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"kpsewhich\"`\"
7634
7635         if test "OPTIONAL" = "REQUIRED"; then
7636             command="echo ERROR: kpsewhich not found"
7637             # abort configure process here?
7638         else
7639             command="- echo kpsewhich not found"
7640         fi
7641         eval "KPSEWHICH"='$command'
7642         false
7643     else
7644         true
7645     fi
7646
7647     if test $? -eq 0 -a -n ""; then
7648
7649     r="`eval echo '$'"KPSEWHICH"`"
7650     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7651 $as_echo_n "checking $r version... " >&6; }
7652     exe=`
7653     ## which doesn't work in ash, if /usr/bin/which isn't installed
7654     ## type -p doesn't work in ash
7655     ## command -v doesn't work in zsh
7656     ## command -v "$r" 2>&1
7657     ## this test should work in ash, bash, pdksh (ksh), zsh
7658     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7659 `
7660     if test -n ""; then
7661         ver=""
7662     else
7663         ver=`
7664     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7665     ##
7666     ## ARG.
7667     ## Workaround for broken Debian gcc version string:
7668     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7669     ##
7670     ## -V: Workaround for python
7671
7672     #dnl
7673
7674     ## Assume and hunt for dotted version multiplet.
7675     ## use eval trickery, because we cannot use multi-level $() instead of ``
7676     ## for compatibility reasons.
7677
7678     ## grab the first version number in  --version output.
7679     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7680                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7681                 head -n 1 |
7682                 tr ' ' '\n' |
7683                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7684                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7685                 head -n 1\`\"
7686
7687     if test -z "$_ver"; then
7688         ## If empty, try date [fontforge]
7689         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7690             | head -n 1 \
7691             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7692     fi
7693     echo "$_ver"
7694     #dnl
7695 `
7696     fi
7697     num=`
7698     echo "$ver" | awk -F. '
7699     {
7700       if ($3) {three = $3}
7701       else {three = 0}
7702     }
7703     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7704 `
7705     req=`
7706     echo "" | awk -F. '
7707     {
7708       if ($3) {three = $3}
7709       else {three = 0}
7710     }
7711     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7712 `
7713     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7714 $as_echo "$ver" >&6; }
7715     if test "$num" -lt "$req"; then
7716
7717     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
7718
7719     fi
7720     vervar="`echo KPSEWHICH | tr 'a-z' 'A-Z'`_VERSION"
7721     eval `echo $vervar=$num`
7722 ##    AC_SUBST(`eval echo $vervar`)
7723
7724     fi
7725
7726
7727
7728     ## First, let's just see if we can find Guile at all.
7729     test -n "$target_alias" && target_guile_config=$target_alias-guile-config
7730     test -n "$host_alias" && host_guile_config=$host_alias-guile-config
7731     { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
7732 $as_echo_n "checking for guile-config... " >&6; }
7733     for guile_config in $GUILE_CONFIG $target_guile_config $host_guile_config $build_guile_config guile-config; do
7734         { $as_echo "$as_me:$LINENO: result: $guile_config" >&5
7735 $as_echo "$guile_config" >&6; }
7736         if ! $guile_config --version > /dev/null 2>&1 ; then
7737             { $as_echo "$as_me:$LINENO: WARNING: cannot execute $guile_config" >&5
7738 $as_echo "$as_me: WARNING: cannot execute $guile_config" >&2;}
7739             { $as_echo "$as_me:$LINENO: checking if we are cross compiling" >&5
7740 $as_echo_n "checking if we are cross compiling... " >&6; }
7741             GUILE_CONFIG='echo no guile-config'
7742         else
7743             GUILE_CONFIG=$guile_config
7744             break
7745         fi
7746     done
7747
7748
7749     r="`eval echo '$'"GUILE_CONFIG"`"
7750     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
7751         true
7752     else
7753         ##STEPMAKE_WARN(cannot find . )
7754         false
7755     fi
7756
7757     if test $? -ne 0; then
7758
7759     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$guile_config\"`\"
7760
7761         if test "REQUIRED" = "REQUIRED"; then
7762             command="echo ERROR: $guile_config not found"
7763             # abort configure process here?
7764         else
7765             command="- echo $guile_config not found"
7766         fi
7767         eval "GUILE_CONFIG"='$command'
7768         false
7769     else
7770         true
7771     fi
7772
7773     if test $? -ne 0; then
7774
7775     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'guile-config (guile-devel, guile-dev or libguile-dev package)'\"`\"
7776
7777     fi
7778
7779
7780     r="`eval echo '$'"GUILE_CONFIG"`"
7781     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
7782         true
7783     else
7784         ##STEPMAKE_WARN(cannot find . )
7785         false
7786     fi
7787
7788     # urg.  should test functionality rather than version.
7789     if test $? -eq 0 -a -n "1.8.2"; then
7790
7791     r="`eval echo '$'"GUILE_CONFIG"`"
7792     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7793 $as_echo_n "checking $r version... " >&6; }
7794     exe=`
7795     ## which doesn't work in ash, if /usr/bin/which isn't installed
7796     ## type -p doesn't work in ash
7797     ## command -v doesn't work in zsh
7798     ## command -v "$r" 2>&1
7799     ## this test should work in ash, bash, pdksh (ksh), zsh
7800     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7801 `
7802     if test -n ""; then
7803         ver=""
7804     else
7805         ver=`
7806     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7807     ##
7808     ## ARG.
7809     ## Workaround for broken Debian gcc version string:
7810     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7811     ##
7812     ## -V: Workaround for python
7813
7814     #dnl
7815
7816     ## Assume and hunt for dotted version multiplet.
7817     ## use eval trickery, because we cannot use multi-level $() instead of ``
7818     ## for compatibility reasons.
7819
7820     ## grab the first version number in  --version output.
7821     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7822                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7823                 head -n 1 |
7824                 tr ' ' '\n' |
7825                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7826                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7827                 head -n 1\`\"
7828
7829     if test -z "$_ver"; then
7830         ## If empty, try date [fontforge]
7831         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7832             | head -n 1 \
7833             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7834     fi
7835     echo "$_ver"
7836     #dnl
7837 `
7838     fi
7839     num=`
7840     echo "$ver" | awk -F. '
7841     {
7842       if ($3) {three = $3}
7843       else {three = 0}
7844     }
7845     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7846 `
7847     req=`
7848     echo "1.8.2" | awk -F. '
7849     {
7850       if ($3) {three = $3}
7851       else {three = 0}
7852     }
7853     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7854 `
7855     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7856 $as_echo "$ver" >&6; }
7857     if test "$num" -lt "$req"; then
7858
7859     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.8.2 (installed: $ver)"\"`\"
7860
7861     fi
7862     vervar="`echo GUILE_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
7863     eval `echo $vervar=$num`
7864 ##    AC_SUBST(`eval echo $vervar`)
7865
7866     fi
7867
7868
7869
7870     guile_version="$ver"
7871     #dnl
7872     GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
7873     GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
7874     GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7875     #dnl
7876
7877     exe=`
7878     ## which doesn't work in ash, if /usr/bin/which isn't installed
7879     ## type -p doesn't work in ash
7880     ## command -v doesn't work in zsh
7881     ## command -v "$guile_config" 2>&1
7882     ## this test should work in ash, bash, pdksh (ksh), zsh
7883     type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
7884 `
7885     if test -x $exe; then
7886         { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
7887 $as_echo_n "checking guile compile flags... " >&6; }
7888         GUILE_CFLAGS="`$guile_config compile`"
7889         { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
7890 $as_echo "$GUILE_CFLAGS" >&6; }
7891         { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
7892 $as_echo_n "checking guile link flags... " >&6; }
7893         GUILE_LDFLAGS="`$guile_config link`"
7894         { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
7895 $as_echo "$GUILE_LDFLAGS" >&6; }
7896     fi
7897
7898
7899
7900     save_CPPFLAGS="$CPPFLAGS"
7901     save_LIBS="$LIBS"
7902     CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
7903     LIBS="$GUILE_LDFLAGS $LIBS"
7904
7905 for ac_header in libguile.h
7906 do
7907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7909   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7910 $as_echo_n "checking for $ac_header... " >&6; }
7911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7912   $as_echo_n "(cached) " >&6
7913 fi
7914 ac_res=`eval 'as_val=${'$as_ac_Header'}
7915                  $as_echo "$as_val"'`
7916                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7917 $as_echo "$ac_res" >&6; }
7918 else
7919   # Is the header compilable?
7920 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7921 $as_echo_n "checking $ac_header usability... " >&6; }
7922 cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h.  */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h.  */
7928 $ac_includes_default
7929 #include <$ac_header>
7930 _ACEOF
7931 rm -f conftest.$ac_objext
7932 if { (ac_try="$ac_compile"
7933 case "(($ac_try" in
7934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935   *) ac_try_echo=$ac_try;;
7936 esac
7937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7938 $as_echo "$ac_try_echo") >&5
7939   (eval "$ac_compile") 2>conftest.er1
7940   ac_status=$?
7941   grep -v '^ *+' conftest.er1 >conftest.err
7942   rm -f conftest.er1
7943   cat conftest.err >&5
7944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); } && {
7946          test -z "$ac_cxx_werror_flag" ||
7947          test ! -s conftest.err
7948        } && test -s conftest.$ac_objext; then
7949   ac_header_compiler=yes
7950 else
7951   $as_echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7953
7954         ac_header_compiler=no
7955 fi
7956
7957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7958 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7959 $as_echo "$ac_header_compiler" >&6; }
7960
7961 # Is the header present?
7962 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7963 $as_echo_n "checking $ac_header presence... " >&6; }
7964 cat >conftest.$ac_ext <<_ACEOF
7965 /* confdefs.h.  */
7966 _ACEOF
7967 cat confdefs.h >>conftest.$ac_ext
7968 cat >>conftest.$ac_ext <<_ACEOF
7969 /* end confdefs.h.  */
7970 #include <$ac_header>
7971 _ACEOF
7972 if { (ac_try="$ac_cpp conftest.$ac_ext"
7973 case "(($ac_try" in
7974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975   *) ac_try_echo=$ac_try;;
7976 esac
7977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7978 $as_echo "$ac_try_echo") >&5
7979   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7980   ac_status=$?
7981   grep -v '^ *+' conftest.er1 >conftest.err
7982   rm -f conftest.er1
7983   cat conftest.err >&5
7984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); } >/dev/null && {
7986          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7987          test ! -s conftest.err
7988        }; then
7989   ac_header_preproc=yes
7990 else
7991   $as_echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7993
7994   ac_header_preproc=no
7995 fi
7996
7997 rm -f conftest.err conftest.$ac_ext
7998 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7999 $as_echo "$ac_header_preproc" >&6; }
8000
8001 # So?  What about this header?
8002 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8003   yes:no: )
8004     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8005 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8006     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8007 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8008     ac_header_preproc=yes
8009     ;;
8010   no:yes:* )
8011     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8012 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8013     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8014 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8015     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8016 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8017     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8018 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8019     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8021     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8022 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8023
8024     ;;
8025 esac
8026 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8027 $as_echo_n "checking for $ac_header... " >&6; }
8028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8029   $as_echo_n "(cached) " >&6
8030 else
8031   eval "$as_ac_Header=\$ac_header_preproc"
8032 fi
8033 ac_res=`eval 'as_val=${'$as_ac_Header'}
8034                  $as_echo "$as_val"'`
8035                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8036 $as_echo "$ac_res" >&6; }
8037
8038 fi
8039 as_val=`eval 'as_val=${'$as_ac_Header'}
8040                  $as_echo "$as_val"'`
8041    if test "x$as_val" = x""yes; then
8042   cat >>confdefs.h <<_ACEOF
8043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8044 _ACEOF
8045
8046 fi
8047
8048 done
8049
8050
8051 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
8052 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
8053 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
8054   $as_echo_n "(cached) " >&6
8055 else
8056   ac_check_lib_save_LIBS=$LIBS
8057 LIBS="-lguile  $LIBS"
8058 cat >conftest.$ac_ext <<_ACEOF
8059 /* confdefs.h.  */
8060 _ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h.  */
8064
8065 /* Override any GCC internal prototype to avoid an error.
8066    Use char because int might match the return type of a GCC
8067    builtin and then its argument prototype would still apply.  */
8068 #ifdef __cplusplus
8069 extern "C"
8070 #endif
8071 char scm_boot_guile ();
8072 int
8073 main ()
8074 {
8075 return scm_boot_guile ();
8076   ;
8077   return 0;
8078 }
8079 _ACEOF
8080 rm -f conftest.$ac_objext conftest$ac_exeext
8081 if { (ac_try="$ac_link"
8082 case "(($ac_try" in
8083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084   *) ac_try_echo=$ac_try;;
8085 esac
8086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8087 $as_echo "$ac_try_echo") >&5
8088   (eval "$ac_link") 2>conftest.er1
8089   ac_status=$?
8090   grep -v '^ *+' conftest.er1 >conftest.err
8091   rm -f conftest.er1
8092   cat conftest.err >&5
8093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); } && {
8095          test -z "$ac_cxx_werror_flag" ||
8096          test ! -s conftest.err
8097        } && test -s conftest$ac_exeext && {
8098          test "$cross_compiling" = yes ||
8099          $as_test_x conftest$ac_exeext
8100        }; then
8101   ac_cv_lib_guile_scm_boot_guile=yes
8102 else
8103   $as_echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8105
8106         ac_cv_lib_guile_scm_boot_guile=no
8107 fi
8108
8109 rm -rf conftest.dSYM
8110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8111       conftest$ac_exeext conftest.$ac_ext
8112 LIBS=$ac_check_lib_save_LIBS
8113 fi
8114 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
8115 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
8116 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
8117   cat >>confdefs.h <<_ACEOF
8118 #define HAVE_LIBGUILE 1
8119 _ACEOF
8120
8121   LIBS="-lguile $LIBS"
8122
8123 fi
8124
8125
8126 for ac_func in scm_boot_guile
8127 do
8128 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8129 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8130 $as_echo_n "checking for $ac_func... " >&6; }
8131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8132   $as_echo_n "(cached) " >&6
8133 else
8134   cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h.  */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h.  */
8140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8142 #define $ac_func innocuous_$ac_func
8143
8144 /* System header to define __stub macros and hopefully few prototypes,
8145     which can conflict with char $ac_func (); below.
8146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8147     <limits.h> exists even on freestanding compilers.  */
8148
8149 #ifdef __STDC__
8150 # include <limits.h>
8151 #else
8152 # include <assert.h>
8153 #endif
8154
8155 #undef $ac_func
8156
8157 /* Override any GCC internal prototype to avoid an error.
8158    Use char because int might match the return type of a GCC
8159    builtin and then its argument prototype would still apply.  */
8160 #ifdef __cplusplus
8161 extern "C"
8162 #endif
8163 char $ac_func ();
8164 /* The GNU C library defines this for functions which it implements
8165     to always fail with ENOSYS.  Some functions are actually named
8166     something starting with __ and the normal name is an alias.  */
8167 #if defined __stub_$ac_func || defined __stub___$ac_func
8168 choke me
8169 #endif
8170
8171 int
8172 main ()
8173 {
8174 return $ac_func ();
8175   ;
8176   return 0;
8177 }
8178 _ACEOF
8179 rm -f conftest.$ac_objext conftest$ac_exeext
8180 if { (ac_try="$ac_link"
8181 case "(($ac_try" in
8182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183   *) ac_try_echo=$ac_try;;
8184 esac
8185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8186 $as_echo "$ac_try_echo") >&5
8187   (eval "$ac_link") 2>conftest.er1
8188   ac_status=$?
8189   grep -v '^ *+' conftest.er1 >conftest.err
8190   rm -f conftest.er1
8191   cat conftest.err >&5
8192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); } && {
8194          test -z "$ac_cxx_werror_flag" ||
8195          test ! -s conftest.err
8196        } && test -s conftest$ac_exeext && {
8197          test "$cross_compiling" = yes ||
8198          $as_test_x conftest$ac_exeext
8199        }; then
8200   eval "$as_ac_var=yes"
8201 else
8202   $as_echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8204
8205         eval "$as_ac_var=no"
8206 fi
8207
8208 rm -rf conftest.dSYM
8209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8210       conftest$ac_exeext conftest.$ac_ext
8211 fi
8212 ac_res=`eval 'as_val=${'$as_ac_var'}
8213                  $as_echo "$as_val"'`
8214                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8215 $as_echo "$ac_res" >&6; }
8216 as_val=`eval 'as_val=${'$as_ac_var'}
8217                  $as_echo "$as_val"'`
8218    if test "x$as_val" = x""yes; then
8219   cat >>confdefs.h <<_ACEOF
8220 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8221 _ACEOF
8222
8223 else
8224   libguile_b=no
8225 fi
8226 done
8227
8228     if test "$libguile_b" = "no"; then
8229             warn='libguile (libguile-dev, guile-devel or guile-dev
8230    package).'
8231
8232     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8233
8234     fi
8235     CPPFLAGS="$save_CPPFLAGS"
8236     LIBS="$save_LIBS"
8237     cat >>confdefs.h <<_ACEOF
8238 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
8239 _ACEOF
8240
8241     cat >>confdefs.h <<_ACEOF
8242 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
8243 _ACEOF
8244
8245     cat >>confdefs.h <<_ACEOF
8246 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
8247 _ACEOF
8248
8249
8250
8251 # check for 3 typedefs added in Guile 1.9
8252 save_CXXFLAGS="$CXXFLAGS"
8253 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS"
8254 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_fold_fn" >&5
8255 $as_echo_n "checking for scm_t_hash_fold_fn... " >&6; }
8256 if test "${ac_cv_type_scm_t_hash_fold_fn+set}" = set; then
8257   $as_echo_n "(cached) " >&6
8258 else
8259   ac_cv_type_scm_t_hash_fold_fn=no
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h.  */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h.  */
8266 #include <libguile.h>
8267
8268 int
8269 main ()
8270 {
8271 if (sizeof (scm_t_hash_fold_fn))
8272        return 0;
8273   ;
8274   return 0;
8275 }
8276 _ACEOF
8277 rm -f conftest.$ac_objext
8278 if { (ac_try="$ac_compile"
8279 case "(($ac_try" in
8280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281   *) ac_try_echo=$ac_try;;
8282 esac
8283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8284 $as_echo "$ac_try_echo") >&5
8285   (eval "$ac_compile") 2>conftest.er1
8286   ac_status=$?
8287   grep -v '^ *+' conftest.er1 >conftest.err
8288   rm -f conftest.er1
8289   cat conftest.err >&5
8290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); } && {
8292          test -z "$ac_cxx_werror_flag" ||
8293          test ! -s conftest.err
8294        } && test -s conftest.$ac_objext; then
8295   cat >conftest.$ac_ext <<_ACEOF
8296 /* confdefs.h.  */
8297 _ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h.  */
8301 #include <libguile.h>
8302
8303 int
8304 main ()
8305 {
8306 if (sizeof ((scm_t_hash_fold_fn)))
8307           return 0;
8308   ;
8309   return 0;
8310 }
8311 _ACEOF
8312 rm -f conftest.$ac_objext
8313 if { (ac_try="$ac_compile"
8314 case "(($ac_try" in
8315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316   *) ac_try_echo=$ac_try;;
8317 esac
8318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8319 $as_echo "$ac_try_echo") >&5
8320   (eval "$ac_compile") 2>conftest.er1
8321   ac_status=$?
8322   grep -v '^ *+' conftest.er1 >conftest.err
8323   rm -f conftest.er1
8324   cat conftest.err >&5
8325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326   (exit $ac_status); } && {
8327          test -z "$ac_cxx_werror_flag" ||
8328          test ! -s conftest.err
8329        } && test -s conftest.$ac_objext; then
8330   :
8331 else
8332   $as_echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8334
8335         ac_cv_type_scm_t_hash_fold_fn=yes
8336 fi
8337
8338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8339 else
8340   $as_echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8342
8343
8344 fi
8345
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347 fi
8348 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_fold_fn" >&5
8349 $as_echo "$ac_cv_type_scm_t_hash_fold_fn" >&6; }
8350 if test "x$ac_cv_type_scm_t_hash_fold_fn" = x""yes; then
8351
8352 cat >>confdefs.h <<_ACEOF
8353 #define HAVE_SCM_T_HASH_FOLD_FN 1
8354 _ACEOF
8355
8356 cat >>confdefs.h <<\_ACEOF
8357 #define HAVE_GUILE_HASH_FUNC 1
8358 _ACEOF
8359
8360 fi
8361 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_handle_fn" >&5
8362 $as_echo_n "checking for scm_t_hash_handle_fn... " >&6; }
8363 if test "${ac_cv_type_scm_t_hash_handle_fn+set}" = set; then
8364   $as_echo_n "(cached) " >&6
8365 else
8366   ac_cv_type_scm_t_hash_handle_fn=no
8367 cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h.  */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h.  */
8373 #include <libguile.h>
8374
8375 int
8376 main ()
8377 {
8378 if (sizeof (scm_t_hash_handle_fn))
8379        return 0;
8380   ;
8381   return 0;
8382 }
8383 _ACEOF
8384 rm -f conftest.$ac_objext
8385 if { (ac_try="$ac_compile"
8386 case "(($ac_try" in
8387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388   *) ac_try_echo=$ac_try;;
8389 esac
8390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8391 $as_echo "$ac_try_echo") >&5
8392   (eval "$ac_compile") 2>conftest.er1
8393   ac_status=$?
8394   grep -v '^ *+' conftest.er1 >conftest.err
8395   rm -f conftest.er1
8396   cat conftest.err >&5
8397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); } && {
8399          test -z "$ac_cxx_werror_flag" ||
8400          test ! -s conftest.err
8401        } && test -s conftest.$ac_objext; then
8402   cat >conftest.$ac_ext <<_ACEOF
8403 /* confdefs.h.  */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h.  */
8408 #include <libguile.h>
8409
8410 int
8411 main ()
8412 {
8413 if (sizeof ((scm_t_hash_handle_fn)))
8414           return 0;
8415   ;
8416   return 0;
8417 }
8418 _ACEOF
8419 rm -f conftest.$ac_objext
8420 if { (ac_try="$ac_compile"
8421 case "(($ac_try" in
8422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423   *) ac_try_echo=$ac_try;;
8424 esac
8425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8426 $as_echo "$ac_try_echo") >&5
8427   (eval "$ac_compile") 2>conftest.er1
8428   ac_status=$?
8429   grep -v '^ *+' conftest.er1 >conftest.err
8430   rm -f conftest.er1
8431   cat conftest.err >&5
8432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); } && {
8434          test -z "$ac_cxx_werror_flag" ||
8435          test ! -s conftest.err
8436        } && test -s conftest.$ac_objext; then
8437   :
8438 else
8439   $as_echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8441
8442         ac_cv_type_scm_t_hash_handle_fn=yes
8443 fi
8444
8445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8446 else
8447   $as_echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8449
8450
8451 fi
8452
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454 fi
8455 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_handle_fn" >&5
8456 $as_echo "$ac_cv_type_scm_t_hash_handle_fn" >&6; }
8457 if test "x$ac_cv_type_scm_t_hash_handle_fn" = x""yes; then
8458
8459 cat >>confdefs.h <<_ACEOF
8460 #define HAVE_SCM_T_HASH_HANDLE_FN 1
8461 _ACEOF
8462
8463 cat >>confdefs.h <<\_ACEOF
8464 #define HAVE_GUILE_HASH_FUNC 1
8465 _ACEOF
8466
8467 fi
8468
8469 { $as_echo "$as_me:$LINENO: checking for scm_t_subr" >&5
8470 $as_echo_n "checking for scm_t_subr... " >&6; }
8471 if test "${ac_cv_type_scm_t_subr+set}" = set; then
8472   $as_echo_n "(cached) " >&6
8473 else
8474   ac_cv_type_scm_t_subr=no
8475 cat >conftest.$ac_ext <<_ACEOF
8476 /* confdefs.h.  */
8477 _ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h.  */
8481 #include <libguile.h>
8482
8483 int
8484 main ()
8485 {
8486 if (sizeof (scm_t_subr))
8487        return 0;
8488   ;
8489   return 0;
8490 }
8491 _ACEOF
8492 rm -f conftest.$ac_objext
8493 if { (ac_try="$ac_compile"
8494 case "(($ac_try" in
8495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496   *) ac_try_echo=$ac_try;;
8497 esac
8498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8499 $as_echo "$ac_try_echo") >&5
8500   (eval "$ac_compile") 2>conftest.er1
8501   ac_status=$?
8502   grep -v '^ *+' conftest.er1 >conftest.err
8503   rm -f conftest.er1
8504   cat conftest.err >&5
8505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); } && {
8507          test -z "$ac_cxx_werror_flag" ||
8508          test ! -s conftest.err
8509        } && test -s conftest.$ac_objext; then
8510   cat >conftest.$ac_ext <<_ACEOF
8511 /* confdefs.h.  */
8512 _ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h.  */
8516 #include <libguile.h>
8517
8518 int
8519 main ()
8520 {
8521 if (sizeof ((scm_t_subr)))
8522           return 0;
8523   ;
8524   return 0;
8525 }
8526 _ACEOF
8527 rm -f conftest.$ac_objext
8528 if { (ac_try="$ac_compile"
8529 case "(($ac_try" in
8530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531   *) ac_try_echo=$ac_try;;
8532 esac
8533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8534 $as_echo "$ac_try_echo") >&5
8535   (eval "$ac_compile") 2>conftest.er1
8536   ac_status=$?
8537   grep -v '^ *+' conftest.er1 >conftest.err
8538   rm -f conftest.er1
8539   cat conftest.err >&5
8540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541   (exit $ac_status); } && {
8542          test -z "$ac_cxx_werror_flag" ||
8543          test ! -s conftest.err
8544        } && test -s conftest.$ac_objext; then
8545   :
8546 else
8547   $as_echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8549
8550         ac_cv_type_scm_t_subr=yes
8551 fi
8552
8553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8554 else
8555   $as_echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8557
8558
8559 fi
8560
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562 fi
8563 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_subr" >&5
8564 $as_echo "$ac_cv_type_scm_t_subr" >&6; }
8565 if test "x$ac_cv_type_scm_t_subr" = x""yes; then
8566
8567 cat >>confdefs.h <<_ACEOF
8568 #define HAVE_SCM_T_SUBR 1
8569 _ACEOF
8570
8571 cat >>confdefs.h <<\_ACEOF
8572 #define HAVE_GUILE_SUBR_TYPE 1
8573 _ACEOF
8574
8575 fi
8576
8577 CXXFLAGS="$save_CXXFLAGS"
8578
8579 ## check rational bugfix.
8580 save_CPPFLAGS="$CPPFLAGS"
8581 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8582 { $as_echo "$as_me:$LINENO: checking GUILE rational bugfix" >&5
8583 $as_echo_n "checking GUILE rational bugfix... " >&6; }
8584 cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h.  */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h.  */
8590 #include <libguile.h>
8591 #ifdef SCM_FRACTION_REDUCED_BIT
8592 #error
8593 #endif
8594
8595 _ACEOF
8596 if { (ac_try="$ac_cpp conftest.$ac_ext"
8597 case "(($ac_try" in
8598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599   *) ac_try_echo=$ac_try;;
8600 esac
8601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8602 $as_echo "$ac_try_echo") >&5
8603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8604   ac_status=$?
8605   grep -v '^ *+' conftest.er1 >conftest.err
8606   rm -f conftest.er1
8607   cat conftest.err >&5
8608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } >/dev/null && {
8610          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8611          test ! -s conftest.err
8612        }; then
8613   { $as_echo "$as_me:$LINENO: result: ok" >&5
8614 $as_echo "ok" >&6; }
8615 else
8616   $as_echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8618
8619   REQUIRED="$REQUIRED GUILE-with-rational-bugfix"
8620 { $as_echo "$as_me:$LINENO: result: Must have patched GUILE rational support. See INSTALL.txt" >&5
8621 $as_echo "Must have patched GUILE rational support. See INSTALL.txt" >&6; }
8622 fi
8623
8624 rm -f conftest.err conftest.$ac_ext
8625 CPPFLAGS="$save_CPPFLAGS"
8626
8627
8628
8629
8630 # Check whether --with-python-include was given.
8631 if test "${with_python_include+set}" = set; then
8632   withval=$with_python_include;
8633         if test "$withval" = "yes" -o "$withval" = "no"; then
8634             { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-include=includedir" >&5
8635 $as_echo "$as_me: WARNING: Usage: --with-python-include=includedir" >&2;}
8636         else
8637             PYTHON_CFLAGS="-I${withval}"
8638         fi
8639
8640 fi
8641
8642
8643
8644 # Check whether --with-python-lib was given.
8645 if test "${with_python_lib+set}" = set; then
8646   withval=$with_python_lib;
8647         if test "$withval" = "yes" -o "$withval" = "no"; then
8648             { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-lib=name" >&5
8649 $as_echo "$as_me: WARNING: Usage: --with-python-lib=name" >&2;}
8650         else
8651             LDFLAGS="$LDFLAGS -l${withval}"
8652         fi
8653
8654 fi
8655
8656
8657     for ac_prog in python-config
8658 do
8659   # Extract the first word of "$ac_prog", so it can be a program name with args.
8660 set dummy $ac_prog; ac_word=$2
8661 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8662 $as_echo_n "checking for $ac_word... " >&6; }
8663 if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then
8664   $as_echo_n "(cached) " >&6
8665 else
8666   if test -n "$PYTHON_CONFIG"; then
8667   ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
8668 else
8669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8670 for as_dir in $PATH
8671 do
8672   IFS=$as_save_IFS
8673   test -z "$as_dir" && as_dir=.
8674   for ac_exec_ext in '' $ac_executable_extensions; do
8675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8676     ac_cv_prog_PYTHON_CONFIG="$ac_prog"
8677     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8678     break 2
8679   fi
8680 done
8681 done
8682 IFS=$as_save_IFS
8683
8684 fi
8685 fi
8686 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
8687 if test -n "$PYTHON_CONFIG"; then
8688   { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
8689 $as_echo "$PYTHON_CONFIG" >&6; }
8690 else
8691   { $as_echo "$as_me:$LINENO: result: no" >&5
8692 $as_echo "no" >&6; }
8693 fi
8694
8695
8696   test -n "$PYTHON_CONFIG" && break
8697 done
8698 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
8699
8700
8701     if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
8702         # Clean out junk: http://bugs.python.org/issue3290
8703         # Python headers may need some -f* flags, leave them in.
8704         # We want the sed commands to look like 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' and 's/-arch [^[:space:]]*//g', but automake eats brackets.
8705         PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
8706         PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
8707     fi
8708
8709     if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
8710         #dnl
8711         # alternatively, for python >= 2.0
8712         # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
8713         PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
8714         PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
8715         #dnl
8716     fi
8717
8718     if test -z "$PYTHON_HEADER"; then
8719         CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
8720
8721 for ac_header in Python.h
8722 do
8723 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8725   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8726 $as_echo_n "checking for $ac_header... " >&6; }
8727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8728   $as_echo_n "(cached) " >&6
8729 fi
8730 ac_res=`eval 'as_val=${'$as_ac_Header'}
8731                  $as_echo "$as_val"'`
8732                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8733 $as_echo "$ac_res" >&6; }
8734 else
8735   # Is the header compilable?
8736 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8737 $as_echo_n "checking $ac_header usability... " >&6; }
8738 cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h.  */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h.  */
8744 $ac_includes_default
8745 #include <$ac_header>
8746 _ACEOF
8747 rm -f conftest.$ac_objext
8748 if { (ac_try="$ac_compile"
8749 case "(($ac_try" in
8750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751   *) ac_try_echo=$ac_try;;
8752 esac
8753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8754 $as_echo "$ac_try_echo") >&5
8755   (eval "$ac_compile") 2>conftest.er1
8756   ac_status=$?
8757   grep -v '^ *+' conftest.er1 >conftest.err
8758   rm -f conftest.er1
8759   cat conftest.err >&5
8760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761   (exit $ac_status); } && {
8762          test -z "$ac_cxx_werror_flag" ||
8763          test ! -s conftest.err
8764        } && test -s conftest.$ac_objext; then
8765   ac_header_compiler=yes
8766 else
8767   $as_echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8769
8770         ac_header_compiler=no
8771 fi
8772
8773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8774 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8775 $as_echo "$ac_header_compiler" >&6; }
8776
8777 # Is the header present?
8778 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8779 $as_echo_n "checking $ac_header presence... " >&6; }
8780 cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h.  */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h.  */
8786 #include <$ac_header>
8787 _ACEOF
8788 if { (ac_try="$ac_cpp conftest.$ac_ext"
8789 case "(($ac_try" in
8790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8791   *) ac_try_echo=$ac_try;;
8792 esac
8793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8794 $as_echo "$ac_try_echo") >&5
8795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8796   ac_status=$?
8797   grep -v '^ *+' conftest.er1 >conftest.err
8798   rm -f conftest.er1
8799   cat conftest.err >&5
8800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); } >/dev/null && {
8802          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8803          test ! -s conftest.err
8804        }; then
8805   ac_header_preproc=yes
8806 else
8807   $as_echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8809
8810   ac_header_preproc=no
8811 fi
8812
8813 rm -f conftest.err conftest.$ac_ext
8814 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8815 $as_echo "$ac_header_preproc" >&6; }
8816
8817 # So?  What about this header?
8818 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8819   yes:no: )
8820     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8821 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8822     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8823 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8824     ac_header_preproc=yes
8825     ;;
8826   no:yes:* )
8827     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8828 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8829     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8830 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8831     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8832 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8833     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8834 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8835     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8836 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8837     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8838 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8839
8840     ;;
8841 esac
8842 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8843 $as_echo_n "checking for $ac_header... " >&6; }
8844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8845   $as_echo_n "(cached) " >&6
8846 else
8847   eval "$as_ac_Header=\$ac_header_preproc"
8848 fi
8849 ac_res=`eval 'as_val=${'$as_ac_Header'}
8850                  $as_echo "$as_val"'`
8851                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8852 $as_echo "$ac_res" >&6; }
8853
8854 fi
8855 as_val=`eval 'as_val=${'$as_ac_Header'}
8856                  $as_echo "$as_val"'`
8857    if test "x$as_val" = x""yes; then
8858   cat >>confdefs.h <<_ACEOF
8859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8860 _ACEOF
8861  PYTHON_HEADER=yes
8862 fi
8863
8864 done
8865
8866     fi
8867
8868     if test -z "$PYTHON_HEADER"; then
8869         warn="Python.h (python-devel, python-dev or libpython-dev package)"
8870
8871     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8872
8873     fi
8874
8875
8876
8877     for ac_prog in gs
8878 do
8879   # Extract the first word of "$ac_prog", so it can be a program name with args.
8880 set dummy $ac_prog; ac_word=$2
8881 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8882 $as_echo_n "checking for $ac_word... " >&6; }
8883 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
8884   $as_echo_n "(cached) " >&6
8885 else
8886   if test -n "$GHOSTSCRIPT"; then
8887   ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
8888 else
8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 for as_dir in $PATH
8891 do
8892   IFS=$as_save_IFS
8893   test -z "$as_dir" && as_dir=.
8894   for ac_exec_ext in '' $ac_executable_extensions; do
8895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8896     ac_cv_prog_GHOSTSCRIPT="$ac_prog"
8897     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8898     break 2
8899   fi
8900 done
8901 done
8902 IFS=$as_save_IFS
8903
8904 fi
8905 fi
8906 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
8907 if test -n "$GHOSTSCRIPT"; then
8908   { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
8909 $as_echo "$GHOSTSCRIPT" >&6; }
8910 else
8911   { $as_echo "$as_me:$LINENO: result: no" >&5
8912 $as_echo "no" >&6; }
8913 fi
8914
8915
8916   test -n "$GHOSTSCRIPT" && break
8917 done
8918 test -n "$GHOSTSCRIPT" || GHOSTSCRIPT="no"
8919
8920
8921
8922     r="`eval echo '$'"GHOSTSCRIPT"`"
8923     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GHOSTSCRIPT"`' : '.*\(echo\)' > /dev/null; then
8924         true
8925     else
8926         ##STEPMAKE_WARN(cannot find . )
8927         false
8928     fi
8929
8930     if test $? -ne 0; then
8931
8932     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"gs\"`\"
8933
8934         if test "OPTIONAL" = "REQUIRED"; then
8935             command="echo ERROR: gs not found"
8936             # abort configure process here?
8937         else
8938             command="- echo gs not found"
8939         fi
8940         eval "GHOSTSCRIPT"='$command'
8941         false
8942     else
8943         true
8944     fi
8945
8946     if test $? -eq 0; then
8947         # Extract the first word of "gs", so it can be a program name with args.
8948 set dummy gs; ac_word=$2
8949 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8950 $as_echo_n "checking for $ac_word... " >&6; }
8951 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
8952   $as_echo_n "(cached) " >&6
8953 else
8954   case $GHOSTSCRIPT in
8955   [\\/]* | ?:[\\/]*)
8956   ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
8957   ;;
8958   *)
8959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8960 for as_dir in $PATH
8961 do
8962   IFS=$as_save_IFS
8963   test -z "$as_dir" && as_dir=.
8964   for ac_exec_ext in '' $ac_executable_extensions; do
8965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8966     ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
8967     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8968     break 2
8969   fi
8970 done
8971 done
8972 IFS=$as_save_IFS
8973
8974   ;;
8975 esac
8976 fi
8977 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
8978 if test -n "$GHOSTSCRIPT"; then
8979   { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
8980 $as_echo "$GHOSTSCRIPT" >&6; }
8981 else
8982   { $as_echo "$as_me:$LINENO: result: no" >&5
8983 $as_echo "no" >&6; }
8984 fi
8985
8986
8987         if test -n "8.60"; then
8988
8989     r="`eval echo '$'"GHOSTSCRIPT"`"
8990     { $as_echo "$as_me:$LINENO: checking $r version" >&5
8991 $as_echo_n "checking $r version... " >&6; }
8992     exe=`
8993     ## which doesn't work in ash, if /usr/bin/which isn't installed
8994     ## type -p doesn't work in ash
8995     ## command -v doesn't work in zsh
8996     ## command -v "$r" 2>&1
8997     ## this test should work in ash, bash, pdksh (ksh), zsh
8998     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8999 `
9000     if test -n ""; then
9001         ver=""
9002     else
9003         ver=`
9004     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9005     ##
9006     ## ARG.
9007     ## Workaround for broken Debian gcc version string:
9008     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9009     ##
9010     ## -V: Workaround for python
9011
9012     #dnl
9013
9014     ## Assume and hunt for dotted version multiplet.
9015     ## use eval trickery, because we cannot use multi-level $() instead of ``
9016     ## for compatibility reasons.
9017
9018     ## grab the first version number in  --version output.
9019     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9020                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9021                 head -n 1 |
9022                 tr ' ' '\n' |
9023                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9024                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9025                 head -n 1\`\"
9026
9027     if test -z "$_ver"; then
9028         ## If empty, try date [fontforge]
9029         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9030             | head -n 1 \
9031             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9032     fi
9033     echo "$_ver"
9034     #dnl
9035 `
9036     fi
9037     num=`
9038     echo "$ver" | awk -F. '
9039     {
9040       if ($3) {three = $3}
9041       else {three = 0}
9042     }
9043     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9044 `
9045     req=`
9046     echo "8.60" | awk -F. '
9047     {
9048       if ($3) {three = $3}
9049       else {three = 0}
9050     }
9051     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9052 `
9053     { $as_echo "$as_me:$LINENO: result: $ver" >&5
9054 $as_echo "$ver" >&6; }
9055     if test "$num" -lt "$req"; then
9056
9057     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 8.60 (installed: $ver)"\"`\"
9058
9059     fi
9060     vervar="`echo GHOSTSCRIPT | tr 'a-z' 'A-Z'`_VERSION"
9061     eval `echo $vervar=$num`
9062 ##    AC_SUBST(`eval echo $vervar`)
9063
9064         fi
9065     fi
9066
9067
9068
9069     for ac_prog in fontforge
9070 do
9071   # Extract the first word of "$ac_prog", so it can be a program name with args.
9072 set dummy $ac_prog; ac_word=$2
9073 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9074 $as_echo_n "checking for $ac_word... " >&6; }
9075 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
9076   $as_echo_n "(cached) " >&6
9077 else
9078   if test -n "$FONTFORGE"; then
9079   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
9080 else
9081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082 for as_dir in $PATH
9083 do
9084   IFS=$as_save_IFS
9085   test -z "$as_dir" && as_dir=.
9086   for ac_exec_ext in '' $ac_executable_extensions; do
9087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9088     ac_cv_prog_FONTFORGE="$ac_prog"
9089     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9090     break 2
9091   fi
9092 done
9093 done
9094 IFS=$as_save_IFS
9095
9096 fi
9097 fi
9098 FONTFORGE=$ac_cv_prog_FONTFORGE
9099 if test -n "$FONTFORGE"; then
9100   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9101 $as_echo "$FONTFORGE" >&6; }
9102 else
9103   { $as_echo "$as_me:$LINENO: result: no" >&5
9104 $as_echo "no" >&6; }
9105 fi
9106
9107
9108   test -n "$FONTFORGE" && break
9109 done
9110 test -n "$FONTFORGE" || FONTFORGE="no"
9111
9112
9113
9114     r="`eval echo '$'"FONTFORGE"`"
9115     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
9116         true
9117     else
9118         ##STEPMAKE_WARN(cannot find . )
9119         false
9120     fi
9121
9122     if test $? -ne 0; then
9123
9124     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"fontforge\"`\"
9125
9126         if test "REQUIRED" = "REQUIRED"; then
9127             command="echo ERROR: fontforge not found"
9128             # abort configure process here?
9129         else
9130             command="- echo fontforge not found"
9131         fi
9132         eval "FONTFORGE"='$command'
9133         false
9134     else
9135         true
9136     fi
9137
9138     if test $? -eq 0; then
9139         # Extract the first word of "fontforge", so it can be a program name with args.
9140 set dummy fontforge; ac_word=$2
9141 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9142 $as_echo_n "checking for $ac_word... " >&6; }
9143 if test "${ac_cv_path_FONTFORGE+set}" = set; then
9144   $as_echo_n "(cached) " >&6
9145 else
9146   case $FONTFORGE in
9147   [\\/]* | ?:[\\/]*)
9148   ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
9149   ;;
9150   *)
9151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152 for as_dir in $PATH
9153 do
9154   IFS=$as_save_IFS
9155   test -z "$as_dir" && as_dir=.
9156   for ac_exec_ext in '' $ac_executable_extensions; do
9157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9158     ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
9159     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9160     break 2
9161   fi
9162 done
9163 done
9164 IFS=$as_save_IFS
9165
9166   ;;
9167 esac
9168 fi
9169 FONTFORGE=$ac_cv_path_FONTFORGE
9170 if test -n "$FONTFORGE"; then
9171   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9172 $as_echo "$FONTFORGE" >&6; }
9173 else
9174   { $as_echo "$as_me:$LINENO: result: no" >&5
9175 $as_echo "no" >&6; }
9176 fi
9177
9178
9179         if test -n "20100501"; then
9180
9181     r="`eval echo '$'"FONTFORGE"`"
9182     { $as_echo "$as_me:$LINENO: checking $r version" >&5
9183 $as_echo_n "checking $r version... " >&6; }
9184     exe=`
9185     ## which doesn't work in ash, if /usr/bin/which isn't installed
9186     ## type -p doesn't work in ash
9187     ## command -v doesn't work in zsh
9188     ## command -v "$r" 2>&1
9189     ## this test should work in ash, bash, pdksh (ksh), zsh
9190     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9191 `
9192     if test -n ""; then
9193         ver=""
9194     else
9195         ver=`
9196     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9197     ##
9198     ## ARG.
9199     ## Workaround for broken Debian gcc version string:
9200     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9201     ##
9202     ## -V: Workaround for python
9203
9204     #dnl
9205
9206     ## Assume and hunt for dotted version multiplet.
9207     ## use eval trickery, because we cannot use multi-level $() instead of ``
9208     ## for compatibility reasons.
9209
9210     ## grab the first version number in  --version output.
9211     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9212                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9213                 head -n 1 |
9214                 tr ' ' '\n' |
9215                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9216                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9217                 head -n 1\`\"
9218
9219     if test -z "$_ver"; then
9220         ## If empty, try date [fontforge]
9221         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9222             | head -n 1 \
9223             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9224     fi
9225     echo "$_ver"
9226     #dnl
9227 `
9228     fi
9229     num=`
9230     echo "$ver" | awk -F. '
9231     {
9232       if ($3) {three = $3}
9233       else {three = 0}
9234     }
9235     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9236 `
9237     req=`
9238     echo "20100501" | awk -F. '
9239     {
9240       if ($3) {three = $3}
9241       else {three = 0}
9242     }
9243     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9244 `
9245     { $as_echo "$as_me:$LINENO: result: $ver" >&5
9246 $as_echo "$ver" >&6; }
9247     if test "$num" -lt "$req"; then
9248
9249     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 20100501 (installed: $ver)"\"`\"
9250
9251     fi
9252     vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
9253     eval `echo $vervar=$num`
9254 ##    AC_SUBST(`eval echo $vervar`)
9255
9256         fi
9257     fi
9258
9259
9260     for ac_prog in fontforge
9261 do
9262   # Extract the first word of "$ac_prog", so it can be a program name with args.
9263 set dummy $ac_prog; ac_word=$2
9264 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9265 $as_echo_n "checking for $ac_word... " >&6; }
9266 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
9267   $as_echo_n "(cached) " >&6
9268 else
9269   if test -n "$FONTFORGE"; then
9270   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
9271 else
9272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9273 for as_dir in $PATH
9274 do
9275   IFS=$as_save_IFS
9276   test -z "$as_dir" && as_dir=.
9277   for ac_exec_ext in '' $ac_executable_extensions; do
9278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9279     ac_cv_prog_FONTFORGE="$ac_prog"
9280     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9281     break 2
9282   fi
9283 done
9284 done
9285 IFS=$as_save_IFS
9286
9287 fi
9288 fi
9289 FONTFORGE=$ac_cv_prog_FONTFORGE
9290 if test -n "$FONTFORGE"; then
9291   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9292 $as_echo "$FONTFORGE" >&6; }
9293 else
9294   { $as_echo "$as_me:$LINENO: result: no" >&5
9295 $as_echo "no" >&6; }
9296 fi
9297
9298
9299   test -n "$FONTFORGE" && break
9300 done
9301 test -n "$FONTFORGE" || FONTFORGE="no"
9302
9303
9304
9305     r="`eval echo '$'"FONTFORGE"`"
9306     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
9307         true
9308     else
9309         ##STEPMAKE_WARN(cannot find . )
9310         false
9311     fi
9312
9313     if test $? -ne 0; then
9314
9315     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"fontforge\"`\"
9316
9317         if test "OPTIONAL" = "REQUIRED"; then
9318             command="echo ERROR: fontforge not found"
9319             # abort configure process here?
9320         else
9321             command="- echo fontforge not found"
9322         fi
9323         eval "FONTFORGE"='$command'
9324         false
9325     else
9326         true
9327     fi
9328
9329     if test $? -eq 0; then
9330         # Extract the first word of "fontforge", so it can be a program name with args.
9331 set dummy fontforge; ac_word=$2
9332 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9333 $as_echo_n "checking for $ac_word... " >&6; }
9334 if test "${ac_cv_path_FONTFORGE+set}" = set; then
9335   $as_echo_n "(cached) " >&6
9336 else
9337   case $FONTFORGE in
9338   [\\/]* | ?:[\\/]*)
9339   ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
9340   ;;
9341   *)
9342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 for as_dir in $PATH
9344 do
9345   IFS=$as_save_IFS
9346   test -z "$as_dir" && as_dir=.
9347   for ac_exec_ext in '' $ac_executable_extensions; do
9348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9349     ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
9350     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9351     break 2
9352   fi
9353 done
9354 done
9355 IFS=$as_save_IFS
9356
9357   ;;
9358 esac
9359 fi
9360 FONTFORGE=$ac_cv_path_FONTFORGE
9361 if test -n "$FONTFORGE"; then
9362   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9363 $as_echo "$FONTFORGE" >&6; }
9364 else
9365   { $as_echo "$as_me:$LINENO: result: no" >&5
9366 $as_echo "no" >&6; }
9367 fi
9368
9369
9370         if test -n "20110222"; then
9371
9372     r="`eval echo '$'"FONTFORGE"`"
9373     { $as_echo "$as_me:$LINENO: checking $r version" >&5
9374 $as_echo_n "checking $r version... " >&6; }
9375     exe=`
9376     ## which doesn't work in ash, if /usr/bin/which isn't installed
9377     ## type -p doesn't work in ash
9378     ## command -v doesn't work in zsh
9379     ## command -v "$r" 2>&1
9380     ## this test should work in ash, bash, pdksh (ksh), zsh
9381     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9382 `
9383     if test -n ""; then
9384         ver=""
9385     else
9386         ver=`
9387     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9388     ##
9389     ## ARG.
9390     ## Workaround for broken Debian gcc version string:
9391     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9392     ##
9393     ## -V: Workaround for python
9394
9395     #dnl
9396
9397     ## Assume and hunt for dotted version multiplet.
9398     ## use eval trickery, because we cannot use multi-level $() instead of ``
9399     ## for compatibility reasons.
9400
9401     ## grab the first version number in  --version output.
9402     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9403                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9404                 head -n 1 |
9405                 tr ' ' '\n' |
9406                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9407                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9408                 head -n 1\`\"
9409
9410     if test -z "$_ver"; then
9411         ## If empty, try date [fontforge]
9412         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9413             | head -n 1 \
9414             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9415     fi
9416     echo "$_ver"
9417     #dnl
9418 `
9419     fi
9420     num=`
9421     echo "$ver" | awk -F. '
9422     {
9423       if ($3) {three = $3}
9424       else {three = 0}
9425     }
9426     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9427 `
9428     req=`
9429     echo "20110222" | awk -F. '
9430     {
9431       if ($3) {three = $3}
9432       else {three = 0}
9433     }
9434     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9435 `
9436     { $as_echo "$as_me:$LINENO: result: $ver" >&5
9437 $as_echo "$ver" >&6; }
9438     if test "$num" -lt "$req"; then
9439
9440     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 20110222 (installed: $ver)"\"`\"
9441
9442     fi
9443     vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
9444     eval `echo $vervar=$num`
9445 ##    AC_SUBST(`eval echo $vervar`)
9446
9447         fi
9448     fi
9449
9450
9451
9452     for ac_prog in t1asm
9453 do
9454   # Extract the first word of "$ac_prog", so it can be a program name with args.
9455 set dummy $ac_prog; ac_word=$2
9456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9457 $as_echo_n "checking for $ac_word... " >&6; }
9458 if test "${ac_cv_prog_T1ASM+set}" = set; then
9459   $as_echo_n "(cached) " >&6
9460 else
9461   if test -n "$T1ASM"; then
9462   ac_cv_prog_T1ASM="$T1ASM" # Let the user override the test.
9463 else
9464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465 for as_dir in $PATH
9466 do
9467   IFS=$as_save_IFS
9468   test -z "$as_dir" && as_dir=.
9469   for ac_exec_ext in '' $ac_executable_extensions; do
9470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9471     ac_cv_prog_T1ASM="$ac_prog"
9472     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9473     break 2
9474   fi
9475 done
9476 done
9477 IFS=$as_save_IFS
9478
9479 fi
9480 fi
9481 T1ASM=$ac_cv_prog_T1ASM
9482 if test -n "$T1ASM"; then
9483   { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
9484 $as_echo "$T1ASM" >&6; }
9485 else
9486   { $as_echo "$as_me:$LINENO: result: no" >&5
9487 $as_echo "no" >&6; }
9488 fi
9489
9490
9491   test -n "$T1ASM" && break
9492 done
9493 test -n "$T1ASM" || T1ASM="no"
9494
9495
9496
9497     r="`eval echo '$'"T1ASM"`"
9498     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"T1ASM"`' : '.*\(echo\)' > /dev/null; then
9499         true
9500     else
9501         ##STEPMAKE_WARN(cannot find . )
9502         false
9503     fi
9504
9505     if test $? -ne 0; then
9506
9507     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"t1asm\"`\"
9508
9509         if test "REQUIRED" = "REQUIRED"; then
9510             command="echo ERROR: t1asm not found"
9511             # abort configure process here?
9512         else
9513             command="- echo t1asm not found"
9514         fi
9515         eval "T1ASM"='$command'
9516         false
9517     else
9518         true
9519     fi
9520
9521     if test $? -eq 0; then
9522         # Extract the first word of "t1asm", so it can be a program name with args.
9523 set dummy t1asm; ac_word=$2
9524 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9525 $as_echo_n "checking for $ac_word... " >&6; }
9526 if test "${ac_cv_path_T1ASM+set}" = set; then
9527   $as_echo_n "(cached) " >&6
9528 else
9529   case $T1ASM in
9530   [\\/]* | ?:[\\/]*)
9531   ac_cv_path_T1ASM="$T1ASM" # Let the user override the test with a path.
9532   ;;
9533   *)
9534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9535 for as_dir in $PATH
9536 do
9537   IFS=$as_save_IFS
9538   test -z "$as_dir" && as_dir=.
9539   for ac_exec_ext in '' $ac_executable_extensions; do
9540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9541     ac_cv_path_T1ASM="$as_dir/$ac_word$ac_exec_ext"
9542     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9543     break 2
9544   fi
9545 done
9546 done
9547 IFS=$as_save_IFS
9548
9549   ;;
9550 esac
9551 fi
9552 T1ASM=$ac_cv_path_T1ASM
9553 if test -n "$T1ASM"; then
9554   { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
9555 $as_echo "$T1ASM" >&6; }
9556 else
9557   { $as_echo "$as_me:$LINENO: result: no" >&5
9558 $as_echo "no" >&6; }
9559 fi
9560
9561
9562         if test -n ""; then
9563
9564     r="`eval echo '$'"T1ASM"`"
9565     { $as_echo "$as_me:$LINENO: checking $r version" >&5
9566 $as_echo_n "checking $r version... " >&6; }
9567     exe=`
9568     ## which doesn't work in ash, if /usr/bin/which isn't installed
9569     ## type -p doesn't work in ash
9570     ## command -v doesn't work in zsh
9571     ## command -v "$r" 2>&1
9572     ## this test should work in ash, bash, pdksh (ksh), zsh
9573     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9574 `
9575     if test -n ""; then
9576         ver=""
9577     else
9578         ver=`
9579     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9580     ##
9581     ## ARG.
9582     ## Workaround for broken Debian gcc version string:
9583     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9584     ##
9585     ## -V: Workaround for python
9586
9587     #dnl
9588
9589     ## Assume and hunt for dotted version multiplet.
9590     ## use eval trickery, because we cannot use multi-level $() instead of ``
9591     ## for compatibility reasons.
9592
9593     ## grab the first version number in  --version output.
9594     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9595                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9596                 head -n 1 |
9597                 tr ' ' '\n' |
9598                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9599                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9600                 head -n 1\`\"
9601
9602     if test -z "$_ver"; then
9603         ## If empty, try date [fontforge]
9604         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9605             | head -n 1 \
9606             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9607     fi
9608     echo "$_ver"
9609     #dnl
9610 `
9611     fi
9612     num=`
9613     echo "$ver" | awk -F. '
9614     {
9615       if ($3) {three = $3}
9616       else {three = 0}
9617     }
9618     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9619 `
9620     req=`
9621     echo "" | awk -F. '
9622     {
9623       if ($3) {three = $3}
9624       else {three = 0}
9625     }
9626     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9627 `
9628     { $as_echo "$as_me:$LINENO: result: $ver" >&5
9629 $as_echo "$ver" >&6; }
9630     if test "$num" -lt "$req"; then
9631
9632     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
9633
9634     fi
9635     vervar="`echo T1ASM | tr 'a-z' 'A-Z'`_VERSION"
9636     eval `echo $vervar=$num`
9637 ##    AC_SUBST(`eval echo $vervar`)
9638
9639         fi
9640     fi
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650 for ac_header in assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h
9651 do
9652 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9654   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9655 $as_echo_n "checking for $ac_header... " >&6; }
9656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9657   $as_echo_n "(cached) " >&6
9658 fi
9659 ac_res=`eval 'as_val=${'$as_ac_Header'}
9660                  $as_echo "$as_val"'`
9661                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9662 $as_echo "$ac_res" >&6; }
9663 else
9664   # Is the header compilable?
9665 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9666 $as_echo_n "checking $ac_header usability... " >&6; }
9667 cat >conftest.$ac_ext <<_ACEOF
9668 /* confdefs.h.  */
9669 _ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h.  */
9673 $ac_includes_default
9674 #include <$ac_header>
9675 _ACEOF
9676 rm -f conftest.$ac_objext
9677 if { (ac_try="$ac_compile"
9678 case "(($ac_try" in
9679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680   *) ac_try_echo=$ac_try;;
9681 esac
9682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9683 $as_echo "$ac_try_echo") >&5
9684   (eval "$ac_compile") 2>conftest.er1
9685   ac_status=$?
9686   grep -v '^ *+' conftest.er1 >conftest.err
9687   rm -f conftest.er1
9688   cat conftest.err >&5
9689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); } && {
9691          test -z "$ac_cxx_werror_flag" ||
9692          test ! -s conftest.err
9693        } && test -s conftest.$ac_objext; then
9694   ac_header_compiler=yes
9695 else
9696   $as_echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9698
9699         ac_header_compiler=no
9700 fi
9701
9702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9703 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9704 $as_echo "$ac_header_compiler" >&6; }
9705
9706 # Is the header present?
9707 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9708 $as_echo_n "checking $ac_header presence... " >&6; }
9709 cat >conftest.$ac_ext <<_ACEOF
9710 /* confdefs.h.  */
9711 _ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h.  */
9715 #include <$ac_header>
9716 _ACEOF
9717 if { (ac_try="$ac_cpp conftest.$ac_ext"
9718 case "(($ac_try" in
9719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720   *) ac_try_echo=$ac_try;;
9721 esac
9722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9723 $as_echo "$ac_try_echo") >&5
9724   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9725   ac_status=$?
9726   grep -v '^ *+' conftest.er1 >conftest.err
9727   rm -f conftest.er1
9728   cat conftest.err >&5
9729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730   (exit $ac_status); } >/dev/null && {
9731          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9732          test ! -s conftest.err
9733        }; then
9734   ac_header_preproc=yes
9735 else
9736   $as_echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9738
9739   ac_header_preproc=no
9740 fi
9741
9742 rm -f conftest.err conftest.$ac_ext
9743 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9744 $as_echo "$ac_header_preproc" >&6; }
9745
9746 # So?  What about this header?
9747 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9748   yes:no: )
9749     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9750 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9751     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9752 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9753     ac_header_preproc=yes
9754     ;;
9755   no:yes:* )
9756     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9757 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9758     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9759 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9760     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9761 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9762     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9763 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9764     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9765 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9766     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9767 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9768
9769     ;;
9770 esac
9771 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9772 $as_echo_n "checking for $ac_header... " >&6; }
9773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9774   $as_echo_n "(cached) " >&6
9775 else
9776   eval "$as_ac_Header=\$ac_header_preproc"
9777 fi
9778 ac_res=`eval 'as_val=${'$as_ac_Header'}
9779                  $as_echo "$as_val"'`
9780                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9781 $as_echo "$ac_res" >&6; }
9782
9783 fi
9784 as_val=`eval 'as_val=${'$as_ac_Header'}
9785                  $as_echo "$as_val"'`
9786    if test "x$as_val" = x""yes; then
9787   cat >>confdefs.h <<_ACEOF
9788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9789 _ACEOF
9790
9791 fi
9792
9793 done
9794
9795
9796 for ac_header in sstream
9797 do
9798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9800   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9801 $as_echo_n "checking for $ac_header... " >&6; }
9802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9803   $as_echo_n "(cached) " >&6
9804 fi
9805 ac_res=`eval 'as_val=${'$as_ac_Header'}
9806                  $as_echo "$as_val"'`
9807                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9808 $as_echo "$ac_res" >&6; }
9809 else
9810   # Is the header compilable?
9811 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9812 $as_echo_n "checking $ac_header usability... " >&6; }
9813 cat >conftest.$ac_ext <<_ACEOF
9814 /* confdefs.h.  */
9815 _ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h.  */
9819 $ac_includes_default
9820 #include <$ac_header>
9821 _ACEOF
9822 rm -f conftest.$ac_objext
9823 if { (ac_try="$ac_compile"
9824 case "(($ac_try" in
9825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826   *) ac_try_echo=$ac_try;;
9827 esac
9828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9829 $as_echo "$ac_try_echo") >&5
9830   (eval "$ac_compile") 2>conftest.er1
9831   ac_status=$?
9832   grep -v '^ *+' conftest.er1 >conftest.err
9833   rm -f conftest.er1
9834   cat conftest.err >&5
9835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); } && {
9837          test -z "$ac_cxx_werror_flag" ||
9838          test ! -s conftest.err
9839        } && test -s conftest.$ac_objext; then
9840   ac_header_compiler=yes
9841 else
9842   $as_echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9844
9845         ac_header_compiler=no
9846 fi
9847
9848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9849 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9850 $as_echo "$ac_header_compiler" >&6; }
9851
9852 # Is the header present?
9853 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9854 $as_echo_n "checking $ac_header presence... " >&6; }
9855 cat >conftest.$ac_ext <<_ACEOF
9856 /* confdefs.h.  */
9857 _ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h.  */
9861 #include <$ac_header>
9862 _ACEOF
9863 if { (ac_try="$ac_cpp conftest.$ac_ext"
9864 case "(($ac_try" in
9865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866   *) ac_try_echo=$ac_try;;
9867 esac
9868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9869 $as_echo "$ac_try_echo") >&5
9870   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9871   ac_status=$?
9872   grep -v '^ *+' conftest.er1 >conftest.err
9873   rm -f conftest.er1
9874   cat conftest.err >&5
9875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); } >/dev/null && {
9877          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9878          test ! -s conftest.err
9879        }; then
9880   ac_header_preproc=yes
9881 else
9882   $as_echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9884
9885   ac_header_preproc=no
9886 fi
9887
9888 rm -f conftest.err conftest.$ac_ext
9889 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9890 $as_echo "$ac_header_preproc" >&6; }
9891
9892 # So?  What about this header?
9893 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9894   yes:no: )
9895     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9896 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9897     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9898 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9899     ac_header_preproc=yes
9900     ;;
9901   no:yes:* )
9902     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9903 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9904     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9905 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9906     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9907 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9908     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9909 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9910     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9911 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9912     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9913 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9914
9915     ;;
9916 esac
9917 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9918 $as_echo_n "checking for $ac_header... " >&6; }
9919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9920   $as_echo_n "(cached) " >&6
9921 else
9922   eval "$as_ac_Header=\$ac_header_preproc"
9923 fi
9924 ac_res=`eval 'as_val=${'$as_ac_Header'}
9925                  $as_echo "$as_val"'`
9926                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9927 $as_echo "$ac_res" >&6; }
9928
9929 fi
9930 as_val=`eval 'as_val=${'$as_ac_Header'}
9931                  $as_echo "$as_val"'`
9932    if test "x$as_val" = x""yes; then
9933   cat >>confdefs.h <<_ACEOF
9934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9935 _ACEOF
9936
9937 fi
9938
9939 done
9940
9941 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9942 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9943 if test "${ac_cv_header_stat_broken+set}" = set; then
9944   $as_echo_n "(cached) " >&6
9945 else
9946   cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h.  */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h.  */
9952 #include <sys/types.h>
9953 #include <sys/stat.h>
9954
9955 #if defined S_ISBLK && defined S_IFDIR
9956 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9957 #endif
9958
9959 #if defined S_ISBLK && defined S_IFCHR
9960 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9961 #endif
9962
9963 #if defined S_ISLNK && defined S_IFREG
9964 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9965 #endif
9966
9967 #if defined S_ISSOCK && defined S_IFREG
9968 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9969 #endif
9970
9971 _ACEOF
9972 rm -f conftest.$ac_objext
9973 if { (ac_try="$ac_compile"
9974 case "(($ac_try" in
9975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976   *) ac_try_echo=$ac_try;;
9977 esac
9978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9979 $as_echo "$ac_try_echo") >&5
9980   (eval "$ac_compile") 2>conftest.er1
9981   ac_status=$?
9982   grep -v '^ *+' conftest.er1 >conftest.err
9983   rm -f conftest.er1
9984   cat conftest.err >&5
9985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); } && {
9987          test -z "$ac_cxx_werror_flag" ||
9988          test ! -s conftest.err
9989        } && test -s conftest.$ac_objext; then
9990   ac_cv_header_stat_broken=no
9991 else
9992   $as_echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9994
9995         ac_cv_header_stat_broken=yes
9996 fi
9997
9998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9999 fi
10000 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10001 $as_echo "$ac_cv_header_stat_broken" >&6; }
10002 if test $ac_cv_header_stat_broken = yes; then
10003
10004 cat >>confdefs.h <<\_ACEOF
10005 #define STAT_MACROS_BROKEN 1
10006 _ACEOF
10007
10008 fi
10009
10010 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
10011 $as_echo_n "checking for working memcmp... " >&6; }
10012 if test "${ac_cv_func_memcmp_working+set}" = set; then
10013   $as_echo_n "(cached) " >&6
10014 else
10015   if test "$cross_compiling" = yes; then
10016   ac_cv_func_memcmp_working=no
10017 else
10018   cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h.  */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h.  */
10024 $ac_includes_default
10025 int
10026 main ()
10027 {
10028
10029   /* Some versions of memcmp are not 8-bit clean.  */
10030   char c0 = '\100', c1 = '\200', c2 = '\201';
10031   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10032     return 1;
10033
10034   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10035      or more and with at least one buffer not starting on a 4-byte boundary.
10036      William Lewis provided this test program.   */
10037   {
10038     char foo[21];
10039     char bar[21];
10040     int i;
10041     for (i = 0; i < 4; i++)
10042       {
10043         char *a = foo + i;
10044         char *b = bar + i;
10045         strcpy (a, "--------01111111");
10046         strcpy (b, "--------10000000");
10047         if (memcmp (a, b, 16) >= 0)
10048           return 1;
10049       }
10050     return 0;
10051   }
10052
10053   ;
10054   return 0;
10055 }
10056 _ACEOF
10057 rm -f conftest$ac_exeext
10058 if { (ac_try="$ac_link"
10059 case "(($ac_try" in
10060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061   *) ac_try_echo=$ac_try;;
10062 esac
10063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10064 $as_echo "$ac_try_echo") >&5
10065   (eval "$ac_link") 2>&5
10066   ac_status=$?
10067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10069   { (case "(($ac_try" in
10070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071   *) ac_try_echo=$ac_try;;
10072 esac
10073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10074 $as_echo "$ac_try_echo") >&5
10075   (eval "$ac_try") 2>&5
10076   ac_status=$?
10077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078   (exit $ac_status); }; }; then
10079   ac_cv_func_memcmp_working=yes
10080 else
10081   $as_echo "$as_me: program exited with status $ac_status" >&5
10082 $as_echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10084
10085 ( exit $ac_status )
10086 ac_cv_func_memcmp_working=no
10087 fi
10088 rm -rf conftest.dSYM
10089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10090 fi
10091
10092
10093 fi
10094 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10095 $as_echo "$ac_cv_func_memcmp_working" >&6; }
10096 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10097   *" memcmp.$ac_objext "* ) ;;
10098   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10099  ;;
10100 esac
10101
10102
10103
10104 for ac_func in vprintf
10105 do
10106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10107 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10108 $as_echo_n "checking for $ac_func... " >&6; }
10109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10110   $as_echo_n "(cached) " >&6
10111 else
10112   cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h.  */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h.  */
10118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10120 #define $ac_func innocuous_$ac_func
10121
10122 /* System header to define __stub macros and hopefully few prototypes,
10123     which can conflict with char $ac_func (); below.
10124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10125     <limits.h> exists even on freestanding compilers.  */
10126
10127 #ifdef __STDC__
10128 # include <limits.h>
10129 #else
10130 # include <assert.h>
10131 #endif
10132
10133 #undef $ac_func
10134
10135 /* Override any GCC internal prototype to avoid an error.
10136    Use char because int might match the return type of a GCC
10137    builtin and then its argument prototype would still apply.  */
10138 #ifdef __cplusplus
10139 extern "C"
10140 #endif
10141 char $ac_func ();
10142 /* The GNU C library defines this for functions which it implements
10143     to always fail with ENOSYS.  Some functions are actually named
10144     something starting with __ and the normal name is an alias.  */
10145 #if defined __stub_$ac_func || defined __stub___$ac_func
10146 choke me
10147 #endif
10148
10149 int
10150 main ()
10151 {
10152 return $ac_func ();
10153   ;
10154   return 0;
10155 }
10156 _ACEOF
10157 rm -f conftest.$ac_objext conftest$ac_exeext
10158 if { (ac_try="$ac_link"
10159 case "(($ac_try" in
10160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161   *) ac_try_echo=$ac_try;;
10162 esac
10163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10164 $as_echo "$ac_try_echo") >&5
10165   (eval "$ac_link") 2>conftest.er1
10166   ac_status=$?
10167   grep -v '^ *+' conftest.er1 >conftest.err
10168   rm -f conftest.er1
10169   cat conftest.err >&5
10170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); } && {
10172          test -z "$ac_cxx_werror_flag" ||
10173          test ! -s conftest.err
10174        } && test -s conftest$ac_exeext && {
10175          test "$cross_compiling" = yes ||
10176          $as_test_x conftest$ac_exeext
10177        }; then
10178   eval "$as_ac_var=yes"
10179 else
10180   $as_echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10182
10183         eval "$as_ac_var=no"
10184 fi
10185
10186 rm -rf conftest.dSYM
10187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10188       conftest$ac_exeext conftest.$ac_ext
10189 fi
10190 ac_res=`eval 'as_val=${'$as_ac_var'}
10191                  $as_echo "$as_val"'`
10192                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10193 $as_echo "$ac_res" >&6; }
10194 as_val=`eval 'as_val=${'$as_ac_var'}
10195                  $as_echo "$as_val"'`
10196    if test "x$as_val" = x""yes; then
10197   cat >>confdefs.h <<_ACEOF
10198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10199 _ACEOF
10200
10201 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
10202 $as_echo_n "checking for _doprnt... " >&6; }
10203 if test "${ac_cv_func__doprnt+set}" = set; then
10204   $as_echo_n "(cached) " >&6
10205 else
10206   cat >conftest.$ac_ext <<_ACEOF
10207 /* confdefs.h.  */
10208 _ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h.  */
10212 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10214 #define _doprnt innocuous__doprnt
10215
10216 /* System header to define __stub macros and hopefully few prototypes,
10217     which can conflict with char _doprnt (); below.
10218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10219     <limits.h> exists even on freestanding compilers.  */
10220
10221 #ifdef __STDC__
10222 # include <limits.h>
10223 #else
10224 # include <assert.h>
10225 #endif
10226
10227 #undef _doprnt
10228
10229 /* Override any GCC internal prototype to avoid an error.
10230    Use char because int might match the return type of a GCC
10231    builtin and then its argument prototype would still apply.  */
10232 #ifdef __cplusplus
10233 extern "C"
10234 #endif
10235 char _doprnt ();
10236 /* The GNU C library defines this for functions which it implements
10237     to always fail with ENOSYS.  Some functions are actually named
10238     something starting with __ and the normal name is an alias.  */
10239 #if defined __stub__doprnt || defined __stub____doprnt
10240 choke me
10241 #endif
10242
10243 int
10244 main ()
10245 {
10246 return _doprnt ();
10247   ;
10248   return 0;
10249 }
10250 _ACEOF
10251 rm -f conftest.$ac_objext conftest$ac_exeext
10252 if { (ac_try="$ac_link"
10253 case "(($ac_try" in
10254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255   *) ac_try_echo=$ac_try;;
10256 esac
10257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10258 $as_echo "$ac_try_echo") >&5
10259   (eval "$ac_link") 2>conftest.er1
10260   ac_status=$?
10261   grep -v '^ *+' conftest.er1 >conftest.err
10262   rm -f conftest.er1
10263   cat conftest.err >&5
10264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); } && {
10266          test -z "$ac_cxx_werror_flag" ||
10267          test ! -s conftest.err
10268        } && test -s conftest$ac_exeext && {
10269          test "$cross_compiling" = yes ||
10270          $as_test_x conftest$ac_exeext
10271        }; then
10272   ac_cv_func__doprnt=yes
10273 else
10274   $as_echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277         ac_cv_func__doprnt=no
10278 fi
10279
10280 rm -rf conftest.dSYM
10281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10282       conftest$ac_exeext conftest.$ac_ext
10283 fi
10284 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10285 $as_echo "$ac_cv_func__doprnt" >&6; }
10286 if test "x$ac_cv_func__doprnt" = x""yes; then
10287
10288 cat >>confdefs.h <<\_ACEOF
10289 #define HAVE_DOPRNT 1
10290 _ACEOF
10291
10292 fi
10293
10294 fi
10295 done
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305 for ac_func in chroot fopencookie gettext isinf memmem snprintf vsnprintf
10306 do
10307 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10308 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10309 $as_echo_n "checking for $ac_func... " >&6; }
10310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10311   $as_echo_n "(cached) " >&6
10312 else
10313   cat >conftest.$ac_ext <<_ACEOF
10314 /* confdefs.h.  */
10315 _ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h.  */
10319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10321 #define $ac_func innocuous_$ac_func
10322
10323 /* System header to define __stub macros and hopefully few prototypes,
10324     which can conflict with char $ac_func (); below.
10325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10326     <limits.h> exists even on freestanding compilers.  */
10327
10328 #ifdef __STDC__
10329 # include <limits.h>
10330 #else
10331 # include <assert.h>
10332 #endif
10333
10334 #undef $ac_func
10335
10336 /* Override any GCC internal prototype to avoid an error.
10337    Use char because int might match the return type of a GCC
10338    builtin and then its argument prototype would still apply.  */
10339 #ifdef __cplusplus
10340 extern "C"
10341 #endif
10342 char $ac_func ();
10343 /* The GNU C library defines this for functions which it implements
10344     to always fail with ENOSYS.  Some functions are actually named
10345     something starting with __ and the normal name is an alias.  */
10346 #if defined __stub_$ac_func || defined __stub___$ac_func
10347 choke me
10348 #endif
10349
10350 int
10351 main ()
10352 {
10353 return $ac_func ();
10354   ;
10355   return 0;
10356 }
10357 _ACEOF
10358 rm -f conftest.$ac_objext conftest$ac_exeext
10359 if { (ac_try="$ac_link"
10360 case "(($ac_try" in
10361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362   *) ac_try_echo=$ac_try;;
10363 esac
10364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10365 $as_echo "$ac_try_echo") >&5
10366   (eval "$ac_link") 2>conftest.er1
10367   ac_status=$?
10368   grep -v '^ *+' conftest.er1 >conftest.err
10369   rm -f conftest.er1
10370   cat conftest.err >&5
10371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); } && {
10373          test -z "$ac_cxx_werror_flag" ||
10374          test ! -s conftest.err
10375        } && test -s conftest$ac_exeext && {
10376          test "$cross_compiling" = yes ||
10377          $as_test_x conftest$ac_exeext
10378        }; then
10379   eval "$as_ac_var=yes"
10380 else
10381   $as_echo "$as_me: failed program was:" >&5
10382 sed 's/^/| /' conftest.$ac_ext >&5
10383
10384         eval "$as_ac_var=no"
10385 fi
10386
10387 rm -rf conftest.dSYM
10388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10389       conftest$ac_exeext conftest.$ac_ext
10390 fi
10391 ac_res=`eval 'as_val=${'$as_ac_var'}
10392                  $as_echo "$as_val"'`
10393                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10394 $as_echo "$ac_res" >&6; }
10395 as_val=`eval 'as_val=${'$as_ac_var'}
10396                  $as_echo "$as_val"'`
10397    if test "x$as_val" = x""yes; then
10398   cat >>confdefs.h <<_ACEOF
10399 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10400 _ACEOF
10401
10402 fi
10403 done
10404
10405
10406
10407     for ac_prog in pkg-config
10408 do
10409   # Extract the first word of "$ac_prog", so it can be a program name with args.
10410 set dummy $ac_prog; ac_word=$2
10411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10412 $as_echo_n "checking for $ac_word... " >&6; }
10413 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
10414   $as_echo_n "(cached) " >&6
10415 else
10416   if test -n "$PKG_CONFIG"; then
10417   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
10418 else
10419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420 for as_dir in $PATH
10421 do
10422   IFS=$as_save_IFS
10423   test -z "$as_dir" && as_dir=.
10424   for ac_exec_ext in '' $ac_executable_extensions; do
10425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10426     ac_cv_prog_PKG_CONFIG="$ac_prog"
10427     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10428     break 2
10429   fi
10430 done
10431 done
10432 IFS=$as_save_IFS
10433
10434 fi
10435 fi
10436 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
10437 if test -n "$PKG_CONFIG"; then
10438   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10439 $as_echo "$PKG_CONFIG" >&6; }
10440 else
10441   { $as_echo "$as_me:$LINENO: result: no" >&5
10442 $as_echo "no" >&6; }
10443 fi
10444
10445
10446   test -n "$PKG_CONFIG" && break
10447 done
10448 test -n "$PKG_CONFIG" || PKG_CONFIG="no"
10449
10450
10451
10452     r="`eval echo '$'"PKG_CONFIG"`"
10453     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PKG_CONFIG"`' : '.*\(echo\)' > /dev/null; then
10454         true
10455     else
10456         ##STEPMAKE_WARN(cannot find . )
10457         false
10458     fi
10459
10460     if test $? -ne 0; then
10461
10462     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"pkg-config\"`\"
10463
10464         if test "REQUIRED" = "REQUIRED"; then
10465             command="echo ERROR: pkg-config not found"
10466             # abort configure process here?
10467         else
10468             command="- echo pkg-config not found"
10469         fi
10470         eval "PKG_CONFIG"='$command'
10471         false
10472     else
10473         true
10474     fi
10475
10476     if test $? -eq 0 -a -n "0.9.0"; then
10477
10478     r="`eval echo '$'"PKG_CONFIG"`"
10479     { $as_echo "$as_me:$LINENO: checking $r version" >&5
10480 $as_echo_n "checking $r version... " >&6; }
10481     exe=`
10482     ## which doesn't work in ash, if /usr/bin/which isn't installed
10483     ## type -p doesn't work in ash
10484     ## command -v doesn't work in zsh
10485     ## command -v "$r" 2>&1
10486     ## this test should work in ash, bash, pdksh (ksh), zsh
10487     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10488 `
10489     if test -n ""; then
10490         ver=""
10491     else
10492         ver=`
10493     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10494     ##
10495     ## ARG.
10496     ## Workaround for broken Debian gcc version string:
10497     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10498     ##
10499     ## -V: Workaround for python
10500
10501     #dnl
10502
10503     ## Assume and hunt for dotted version multiplet.
10504     ## use eval trickery, because we cannot use multi-level $() instead of ``
10505     ## for compatibility reasons.
10506
10507     ## grab the first version number in  --version output.
10508     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10509                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10510                 head -n 1 |
10511                 tr ' ' '\n' |
10512                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10513                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10514                 head -n 1\`\"
10515
10516     if test -z "$_ver"; then
10517         ## If empty, try date [fontforge]
10518         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
10519             | head -n 1 \
10520             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10521     fi
10522     echo "$_ver"
10523     #dnl
10524 `
10525     fi
10526     num=`
10527     echo "$ver" | awk -F. '
10528     {
10529       if ($3) {three = $3}
10530       else {three = 0}
10531     }
10532     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10533 `
10534     req=`
10535     echo "0.9.0" | awk -F. '
10536     {
10537       if ($3) {three = $3}
10538       else {three = 0}
10539     }
10540     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10541 `
10542     { $as_echo "$as_me:$LINENO: result: $ver" >&5
10543 $as_echo "$ver" >&6; }
10544     if test "$num" -lt "$req"; then
10545
10546     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 0.9.0 (installed: $ver)"\"`\"
10547
10548     fi
10549     vervar="`echo PKG_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
10550     eval `echo $vervar=$num`
10551 ##    AC_SUBST(`eval echo $vervar`)
10552
10553     fi
10554
10555
10556 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic relocation" >&5
10557 $as_echo_n "checking whether to enable dynamic relocation... " >&6; }
10558 if test "$reloc_b" = "yes"; then
10559     cat >>confdefs.h <<\_ACEOF
10560 #define ARGV0_RELOCATION 1
10561 _ACEOF
10562
10563 fi
10564 { $as_echo "$as_me:$LINENO: result: $reloc_b" >&5
10565 $as_echo "$reloc_b" >&6; }
10566
10567 { $as_echo "$as_me:$LINENO: checking for rpath linkage" >&5
10568 $as_echo_n "checking for rpath linkage... " >&6; }
10569 if test "$rpath_b" = "yes"; then
10570     LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib"
10571 elif test "$rpath_b" != "no"; then
10572     LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b"
10573 fi
10574 { $as_echo "$as_me:$LINENO: result: $rpath_b" >&5
10575 $as_echo "$rpath_b" >&6; }
10576
10577 HOST_ARCH=`$CC -dumpmachine`
10578
10579
10580
10581
10582   succeeded=no
10583
10584   if test -z "$PKG_CONFIG"; then
10585     # Extract the first word of "pkg-config", so it can be a program name with args.
10586 set dummy pkg-config; ac_word=$2
10587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10588 $as_echo_n "checking for $ac_word... " >&6; }
10589 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10590   $as_echo_n "(cached) " >&6
10591 else
10592   case $PKG_CONFIG in
10593   [\\/]* | ?:[\\/]*)
10594   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10595   ;;
10596   *)
10597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598 for as_dir in $PATH
10599 do
10600   IFS=$as_save_IFS
10601   test -z "$as_dir" && as_dir=.
10602   for ac_exec_ext in '' $ac_executable_extensions; do
10603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10604     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10605     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10606     break 2
10607   fi
10608 done
10609 done
10610 IFS=$as_save_IFS
10611
10612   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10613   ;;
10614 esac
10615 fi
10616 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10617 if test -n "$PKG_CONFIG"; then
10618   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10619 $as_echo "$PKG_CONFIG" >&6; }
10620 else
10621   { $as_echo "$as_me:$LINENO: result: no" >&5
10622 $as_echo "no" >&6; }
10623 fi
10624
10625
10626   fi
10627
10628   if test "$PKG_CONFIG" = "no" ; then
10629      echo "*** The pkg-config script could not be found. Make sure it is"
10630      echo "*** in your path, or set the PKG_CONFIG environment variable"
10631      echo "*** to the full path to pkg-config."
10632      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10633   else
10634      PKG_CONFIG_MIN_VERSION=0.9.0
10635      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10636         { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.6.0" >&5
10637 $as_echo_n "checking for pangoft2 >= 1.6.0... " >&6; }
10638
10639         if $PKG_CONFIG --exists "pangoft2 >= 1.6.0" ; then
10640             { $as_echo "$as_me:$LINENO: result: yes" >&5
10641 $as_echo "yes" >&6; }
10642             succeeded=yes
10643
10644             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
10645 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
10646             PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.6.0"`
10647             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
10648 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
10649
10650             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
10651 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
10652             PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.6.0"`
10653             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
10654 $as_echo "$PANGO_FT2_LIBS" >&6; }
10655         else
10656             PANGO_FT2_CFLAGS=""
10657             PANGO_FT2_LIBS=""
10658             ## If we have a custom action on failure, don't print errors, but
10659             ## do set a variable so people can do so.
10660             PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.6.0"`
10661
10662         fi
10663
10664
10665
10666      fi
10667   fi
10668
10669   if test $succeeded = yes; then
10670      have_pangoft2=yes
10671   else
10672      true
10673   fi
10674
10675     if test "$have_pangoft2" = yes ; then
10676         cat >>confdefs.h <<\_ACEOF
10677 #define HAVE_PANGO16 1
10678 _ACEOF
10679
10680         cat >>confdefs.h <<\_ACEOF
10681 #define HAVE_PANGO_FT2 1
10682 _ACEOF
10683
10684         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
10685         save_CPPFLAGS="$CPPFLAGS"
10686         save_LIBS="$LIBS"
10687         CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
10688         LIBS="$PANGO_FT2_LIBS $LIBS"
10689
10690 for ac_header in pango/pangoft2.h
10691 do
10692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10694   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10695 $as_echo_n "checking for $ac_header... " >&6; }
10696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10697   $as_echo_n "(cached) " >&6
10698 fi
10699 ac_res=`eval 'as_val=${'$as_ac_Header'}
10700                  $as_echo "$as_val"'`
10701                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10702 $as_echo "$ac_res" >&6; }
10703 else
10704   # Is the header compilable?
10705 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10706 $as_echo_n "checking $ac_header usability... " >&6; }
10707 cat >conftest.$ac_ext <<_ACEOF
10708 /* confdefs.h.  */
10709 _ACEOF
10710 cat confdefs.h >>conftest.$ac_ext
10711 cat >>conftest.$ac_ext <<_ACEOF
10712 /* end confdefs.h.  */
10713 $ac_includes_default
10714 #include <$ac_header>
10715 _ACEOF
10716 rm -f conftest.$ac_objext
10717 if { (ac_try="$ac_compile"
10718 case "(($ac_try" in
10719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720   *) ac_try_echo=$ac_try;;
10721 esac
10722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10723 $as_echo "$ac_try_echo") >&5
10724   (eval "$ac_compile") 2>conftest.er1
10725   ac_status=$?
10726   grep -v '^ *+' conftest.er1 >conftest.err
10727   rm -f conftest.er1
10728   cat conftest.err >&5
10729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730   (exit $ac_status); } && {
10731          test -z "$ac_cxx_werror_flag" ||
10732          test ! -s conftest.err
10733        } && test -s conftest.$ac_objext; then
10734   ac_header_compiler=yes
10735 else
10736   $as_echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10738
10739         ac_header_compiler=no
10740 fi
10741
10742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10744 $as_echo "$ac_header_compiler" >&6; }
10745
10746 # Is the header present?
10747 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10748 $as_echo_n "checking $ac_header presence... " >&6; }
10749 cat >conftest.$ac_ext <<_ACEOF
10750 /* confdefs.h.  */
10751 _ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h.  */
10755 #include <$ac_header>
10756 _ACEOF
10757 if { (ac_try="$ac_cpp conftest.$ac_ext"
10758 case "(($ac_try" in
10759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760   *) ac_try_echo=$ac_try;;
10761 esac
10762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10763 $as_echo "$ac_try_echo") >&5
10764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10765   ac_status=$?
10766   grep -v '^ *+' conftest.er1 >conftest.err
10767   rm -f conftest.er1
10768   cat conftest.err >&5
10769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770   (exit $ac_status); } >/dev/null && {
10771          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10772          test ! -s conftest.err
10773        }; then
10774   ac_header_preproc=yes
10775 else
10776   $as_echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10778
10779   ac_header_preproc=no
10780 fi
10781
10782 rm -f conftest.err conftest.$ac_ext
10783 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10784 $as_echo "$ac_header_preproc" >&6; }
10785
10786 # So?  What about this header?
10787 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10788   yes:no: )
10789     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10790 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10791     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10793     ac_header_preproc=yes
10794     ;;
10795   no:yes:* )
10796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10797 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10798     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10799 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10800     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10801 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10802     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10803 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10804     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10805 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10806     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10807 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10808
10809     ;;
10810 esac
10811 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10812 $as_echo_n "checking for $ac_header... " >&6; }
10813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10814   $as_echo_n "(cached) " >&6
10815 else
10816   eval "$as_ac_Header=\$ac_header_preproc"
10817 fi
10818 ac_res=`eval 'as_val=${'$as_ac_Header'}
10819                  $as_echo "$as_val"'`
10820                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10821 $as_echo "$ac_res" >&6; }
10822
10823 fi
10824 as_val=`eval 'as_val=${'$as_ac_Header'}
10825                  $as_echo "$as_val"'`
10826    if test "x$as_val" = x""yes; then
10827   cat >>confdefs.h <<_ACEOF
10828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10829 _ACEOF
10830
10831 fi
10832
10833 done
10834
10835
10836 for ac_func in pango_ft2_font_map_create_context
10837 do
10838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10839 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10840 $as_echo_n "checking for $ac_func... " >&6; }
10841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10842   $as_echo_n "(cached) " >&6
10843 else
10844   cat >conftest.$ac_ext <<_ACEOF
10845 /* confdefs.h.  */
10846 _ACEOF
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h.  */
10850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10852 #define $ac_func innocuous_$ac_func
10853
10854 /* System header to define __stub macros and hopefully few prototypes,
10855     which can conflict with char $ac_func (); below.
10856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10857     <limits.h> exists even on freestanding compilers.  */
10858
10859 #ifdef __STDC__
10860 # include <limits.h>
10861 #else
10862 # include <assert.h>
10863 #endif
10864
10865 #undef $ac_func
10866
10867 /* Override any GCC internal prototype to avoid an error.
10868    Use char because int might match the return type of a GCC
10869    builtin and then its argument prototype would still apply.  */
10870 #ifdef __cplusplus
10871 extern "C"
10872 #endif
10873 char $ac_func ();
10874 /* The GNU C library defines this for functions which it implements
10875     to always fail with ENOSYS.  Some functions are actually named
10876     something starting with __ and the normal name is an alias.  */
10877 #if defined __stub_$ac_func || defined __stub___$ac_func
10878 choke me
10879 #endif
10880
10881 int
10882 main ()
10883 {
10884 return $ac_func ();
10885   ;
10886   return 0;
10887 }
10888 _ACEOF
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (ac_try="$ac_link"
10891 case "(($ac_try" in
10892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893   *) ac_try_echo=$ac_try;;
10894 esac
10895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10896 $as_echo "$ac_try_echo") >&5
10897   (eval "$ac_link") 2>conftest.er1
10898   ac_status=$?
10899   grep -v '^ *+' conftest.er1 >conftest.err
10900   rm -f conftest.er1
10901   cat conftest.err >&5
10902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903   (exit $ac_status); } && {
10904          test -z "$ac_cxx_werror_flag" ||
10905          test ! -s conftest.err
10906        } && test -s conftest$ac_exeext && {
10907          test "$cross_compiling" = yes ||
10908          $as_test_x conftest$ac_exeext
10909        }; then
10910   eval "$as_ac_var=yes"
10911 else
10912   $as_echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10914
10915         eval "$as_ac_var=no"
10916 fi
10917
10918 rm -rf conftest.dSYM
10919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10920       conftest$ac_exeext conftest.$ac_ext
10921 fi
10922 ac_res=`eval 'as_val=${'$as_ac_var'}
10923                  $as_echo "$as_val"'`
10924                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10925 $as_echo "$ac_res" >&6; }
10926 as_val=`eval 'as_val=${'$as_ac_var'}
10927                  $as_echo "$as_val"'`
10928    if test "x$as_val" = x""yes; then
10929   cat >>confdefs.h <<_ACEOF
10930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10931 _ACEOF
10932
10933 fi
10934 done
10935
10936
10937
10938         CPPFLAGS="$save_CPPFLAGS"
10939         LIBS="$save_LIBS"
10940     else
10941         # UGR
10942         #r="libpangoft2-dev or pangoft2-devel"e
10943         r="libpango1.0-dev or pango?-devel"
10944         ver="`pkg-config --modversion pangoft2`"
10945
10946     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.6.0 (installed: $ver)"\"`\"
10947
10948     fi
10949
10950
10951
10952   succeeded=no
10953
10954   if test -z "$PKG_CONFIG"; then
10955     # Extract the first word of "pkg-config", so it can be a program name with args.
10956 set dummy pkg-config; ac_word=$2
10957 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10958 $as_echo_n "checking for $ac_word... " >&6; }
10959 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10960   $as_echo_n "(cached) " >&6
10961 else
10962   case $PKG_CONFIG in
10963   [\\/]* | ?:[\\/]*)
10964   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10965   ;;
10966   *)
10967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968 for as_dir in $PATH
10969 do
10970   IFS=$as_save_IFS
10971   test -z "$as_dir" && as_dir=.
10972   for ac_exec_ext in '' $ac_executable_extensions; do
10973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10974     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10975     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10976     break 2
10977   fi
10978 done
10979 done
10980 IFS=$as_save_IFS
10981
10982   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10983   ;;
10984 esac
10985 fi
10986 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10987 if test -n "$PKG_CONFIG"; then
10988   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10989 $as_echo "$PKG_CONFIG" >&6; }
10990 else
10991   { $as_echo "$as_me:$LINENO: result: no" >&5
10992 $as_echo "no" >&6; }
10993 fi
10994
10995
10996   fi
10997
10998   if test "$PKG_CONFIG" = "no" ; then
10999      echo "*** The pkg-config script could not be found. Make sure it is"
11000      echo "*** in your path, or set the PKG_CONFIG environment variable"
11001      echo "*** to the full path to pkg-config."
11002      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11003   else
11004      PKG_CONFIG_MIN_VERSION=0.9.0
11005      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11006         { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.4.0" >&5
11007 $as_echo_n "checking for fontconfig >= 2.4.0... " >&6; }
11008
11009         if $PKG_CONFIG --exists "fontconfig >= 2.4.0" ; then
11010             { $as_echo "$as_me:$LINENO: result: yes" >&5
11011 $as_echo "yes" >&6; }
11012             succeeded=yes
11013
11014             { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
11015 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11016             FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4.0"`
11017             { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
11018 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11019
11020             { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
11021 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11022             FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4.0"`
11023             { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
11024 $as_echo "$FONTCONFIG_LIBS" >&6; }
11025         else
11026             FONTCONFIG_CFLAGS=""
11027             FONTCONFIG_LIBS=""
11028             ## If we have a custom action on failure, don't print errors, but
11029             ## do set a variable so people can do so.
11030             FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.4.0"`
11031
11032         fi
11033
11034
11035
11036      fi
11037   fi
11038
11039   if test $succeeded = yes; then
11040      have_fontconfig=yes
11041   else
11042      true
11043   fi
11044
11045     if test "$have_fontconfig" = yes ; then
11046         cat >>confdefs.h <<\_ACEOF
11047 #define HAVE_FONTCONFIG 1
11048 _ACEOF
11049
11050         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11051         save_CPPFLAGS="$CPPFLAGS"
11052         save_LIBS="$LIBS"
11053         CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
11054         LIBS="$FONTCONFIG_LIBS $LIBS"
11055
11056
11057         CPPFLAGS="$save_CPPFLAGS"
11058         LIBS="$save_LIBS"
11059     else
11060         r="libfontconfig-dev or fontconfig-devel"
11061         ver="`pkg-config --modversion fontconfig`"
11062
11063     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.4.0 (installed: $ver)"\"`\"
11064
11065     fi
11066
11067
11068
11069   succeeded=no
11070
11071   if test -z "$PKG_CONFIG"; then
11072     # Extract the first word of "pkg-config", so it can be a program name with args.
11073 set dummy pkg-config; ac_word=$2
11074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11075 $as_echo_n "checking for $ac_word... " >&6; }
11076 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11077   $as_echo_n "(cached) " >&6
11078 else
11079   case $PKG_CONFIG in
11080   [\\/]* | ?:[\\/]*)
11081   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11082   ;;
11083   *)
11084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085 for as_dir in $PATH
11086 do
11087   IFS=$as_save_IFS
11088   test -z "$as_dir" && as_dir=.
11089   for ac_exec_ext in '' $ac_executable_extensions; do
11090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11091     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11092     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11093     break 2
11094   fi
11095 done
11096 done
11097 IFS=$as_save_IFS
11098
11099   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11100   ;;
11101 esac
11102 fi
11103 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11104 if test -n "$PKG_CONFIG"; then
11105   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11106 $as_echo "$PKG_CONFIG" >&6; }
11107 else
11108   { $as_echo "$as_me:$LINENO: result: no" >&5
11109 $as_echo "no" >&6; }
11110 fi
11111
11112
11113   fi
11114
11115   if test "$PKG_CONFIG" = "no" ; then
11116      echo "*** The pkg-config script could not be found. Make sure it is"
11117      echo "*** in your path, or set the PKG_CONFIG environment variable"
11118      echo "*** to the full path to pkg-config."
11119      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11120   else
11121      PKG_CONFIG_MIN_VERSION=0.9.0
11122      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11123         { $as_echo "$as_me:$LINENO: checking for freetype2 >= 2.1.10" >&5
11124 $as_echo_n "checking for freetype2 >= 2.1.10... " >&6; }
11125
11126         if $PKG_CONFIG --exists "freetype2 >= 2.1.10" ; then
11127             { $as_echo "$as_me:$LINENO: result: yes" >&5
11128 $as_echo "yes" >&6; }
11129             succeeded=yes
11130
11131             { $as_echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
11132 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
11133             FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.10"`
11134             { $as_echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
11135 $as_echo "$FREETYPE2_CFLAGS" >&6; }
11136
11137             { $as_echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
11138 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
11139             FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.10"`
11140             { $as_echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
11141 $as_echo "$FREETYPE2_LIBS" >&6; }
11142         else
11143             FREETYPE2_CFLAGS=""
11144             FREETYPE2_LIBS=""
11145             ## If we have a custom action on failure, don't print errors, but
11146             ## do set a variable so people can do so.
11147             FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.1.10"`
11148
11149         fi
11150
11151
11152
11153      fi
11154   fi
11155
11156   if test $succeeded = yes; then
11157      have_freetype2=yes
11158   else
11159      true
11160   fi
11161
11162     if test "$have_freetype2" = yes; then
11163         cat >>confdefs.h <<\_ACEOF
11164 #define HAVE_FREETYPE2 1
11165 _ACEOF
11166
11167         save_CPPFLAGS="$CPPFLAGS"
11168         save_LIBS="$LIBS"
11169         CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
11170         LIBS="$FREETYPE2_LIBS $LIBS"
11171
11172
11173         CPPFLAGS="$save_CPPFLAGS"
11174         LIBS="$save_LIBS"
11175     else
11176         # UGR
11177         #r="libfreetype2-dev or freetype2-devel"
11178         r="libfreetype6-dev or freetype?-devel"
11179         ver="`pkg-config --modversion freetype2`"
11180
11181     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.1.10 (installed: $ver)"\"`\"
11182
11183     fi
11184
11185
11186
11187     { $as_echo "$as_me:$LINENO: checking host system type" >&5
11188 $as_echo_n "checking host system type... " >&6; }
11189 if test "${ac_cv_host+set}" = set; then
11190   $as_echo_n "(cached) " >&6
11191 else
11192   if test "x$host_alias" = x; then
11193   ac_cv_host=$ac_cv_build
11194 else
11195   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11196     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11197 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11198    { (exit 1); exit 1; }; }
11199 fi
11200
11201 fi
11202 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11203 $as_echo "$ac_cv_host" >&6; }
11204 case $ac_cv_host in
11205 *-*-*) ;;
11206 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11207 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11208    { (exit 1); exit 1; }; };;
11209 esac
11210 host=$ac_cv_host
11211 ac_save_IFS=$IFS; IFS='-'
11212 set x $ac_cv_host
11213 shift
11214 host_cpu=$1
11215 host_vendor=$2
11216 shift; shift
11217 # Remember, the first character of IFS is used to create $*,
11218 # except with old shells:
11219 host_os=$*
11220 IFS=$ac_save_IFS
11221 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11222
11223
11224 case $host_os in
11225   *cygwin* ) CYGWIN=yes;;
11226          * ) CYGWIN=no;;
11227 esac
11228
11229     { $as_echo "$as_me:$LINENO: checking host system type" >&5
11230 $as_echo_n "checking host system type... " >&6; }
11231 if test "${ac_cv_host+set}" = set; then
11232   $as_echo_n "(cached) " >&6
11233 else
11234   if test "x$host_alias" = x; then
11235   ac_cv_host=$ac_cv_build
11236 else
11237   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11238     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11239 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11240    { (exit 1); exit 1; }; }
11241 fi
11242
11243 fi
11244 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11245 $as_echo "$ac_cv_host" >&6; }
11246 case $ac_cv_host in
11247 *-*-*) ;;
11248 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11249 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11250    { (exit 1); exit 1; }; };;
11251 esac
11252 host=$ac_cv_host
11253 ac_save_IFS=$IFS; IFS='-'
11254 set x $ac_cv_host
11255 shift
11256 host_cpu=$1
11257 host_vendor=$2
11258 shift; shift
11259 # Remember, the first character of IFS is used to create $*,
11260 # except with old shells:
11261 host_os=$*
11262 IFS=$ac_save_IFS
11263 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11264
11265
11266 case $host_os in
11267   *mingw32* ) MINGW32=yes;;
11268           * ) MINGW32=no;;
11269 esac
11270
11271
11272     if test "$CYGWIN" = "yes"; then
11273         LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
11274         program_suffix=.exe
11275         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11276     elif test "$MINGW32" = "yes"; then
11277         LN='cp -r'
11278         LN_S='cp -r'
11279         program_suffix=.exe
11280         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11281         PATHSEP=';'
11282     fi
11283
11284
11285
11286     cat >>confdefs.h <<_ACEOF
11287 #define DIRSEP '${DIRSEP}'
11288 _ACEOF
11289
11290     cat >>confdefs.h <<_ACEOF
11291 #define PATHSEP '${PATHSEP}'
11292 _ACEOF
11293
11294
11295
11296
11297
11298     { $as_echo "$as_me:$LINENO: checking for some flavor of Windows" >&5
11299 $as_echo_n "checking for some flavor of Windows... " >&6; }
11300     if test "$CYGWIN$MINGW32" = "nono"; then
11301         PLATFORM_WINDOWS=no
11302     else
11303         PLATFORM_WINDOWS=yes
11304     fi
11305     { $as_echo "$as_me:$LINENO: result: $PLATFORM_WINDOWS" >&5
11306 $as_echo "$PLATFORM_WINDOWS" >&6; }
11307
11308
11309     for ac_prog in $target-windres windres
11310 do
11311   # Extract the first word of "$ac_prog", so it can be a program name with args.
11312 set dummy $ac_prog; ac_word=$2
11313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11314 $as_echo_n "checking for $ac_word... " >&6; }
11315 if test "${ac_cv_prog_WINDRES+set}" = set; then
11316   $as_echo_n "(cached) " >&6
11317 else
11318   if test -n "$WINDRES"; then
11319   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11320 else
11321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322 for as_dir in $PATH
11323 do
11324   IFS=$as_save_IFS
11325   test -z "$as_dir" && as_dir=.
11326   for ac_exec_ext in '' $ac_executable_extensions; do
11327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11328     ac_cv_prog_WINDRES="$ac_prog"
11329     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11330     break 2
11331   fi
11332 done
11333 done
11334 IFS=$as_save_IFS
11335
11336 fi
11337 fi
11338 WINDRES=$ac_cv_prog_WINDRES
11339 if test -n "$WINDRES"; then
11340   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
11341 $as_echo "$WINDRES" >&6; }
11342 else
11343   { $as_echo "$as_me:$LINENO: result: no" >&5
11344 $as_echo "no" >&6; }
11345 fi
11346
11347
11348   test -n "$WINDRES" && break
11349 done
11350 test -n "$WINDRES" || WINDRES="no"
11351
11352
11353
11354     r="`eval echo '$'"WINDRES"`"
11355     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"WINDRES"`' : '.*\(echo\)' > /dev/null; then
11356         true
11357     else
11358         ##STEPMAKE_WARN(cannot find . )
11359         false
11360     fi
11361
11362     if test $? -ne 0; then
11363
11364     eval "x"=\"`eval echo \"'$'x\" \"$target-windres windres\"`\"
11365
11366         if test "x" = "REQUIRED"; then
11367             command="echo ERROR: $target-windres windres not found"
11368             # abort configure process here?
11369         else
11370             command="- echo $target-windres windres not found"
11371         fi
11372         eval "WINDRES"='$command'
11373         false
11374     else
11375         true
11376     fi
11377
11378     if test $? -eq 0 -a -n ""; then
11379
11380     r="`eval echo '$'"WINDRES"`"
11381     { $as_echo "$as_me:$LINENO: checking $r version" >&5
11382 $as_echo_n "checking $r version... " >&6; }
11383     exe=`
11384     ## which doesn't work in ash, if /usr/bin/which isn't installed
11385     ## type -p doesn't work in ash
11386     ## command -v doesn't work in zsh
11387     ## command -v "$r" 2>&1
11388     ## this test should work in ash, bash, pdksh (ksh), zsh
11389     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11390 `
11391     if test -n ""; then
11392         ver=""
11393     else
11394         ver=`
11395     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11396     ##
11397     ## ARG.
11398     ## Workaround for broken Debian gcc version string:
11399     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11400     ##
11401     ## -V: Workaround for python
11402
11403     #dnl
11404
11405     ## Assume and hunt for dotted version multiplet.
11406     ## use eval trickery, because we cannot use multi-level $() instead of ``
11407     ## for compatibility reasons.
11408
11409     ## grab the first version number in  --version output.
11410     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11411                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11412                 head -n 1 |
11413                 tr ' ' '\n' |
11414                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11415                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11416                 head -n 1\`\"
11417
11418     if test -z "$_ver"; then
11419         ## If empty, try date [fontforge]
11420         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11421             | head -n 1 \
11422             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11423     fi
11424     echo "$_ver"
11425     #dnl
11426 `
11427     fi
11428     num=`
11429     echo "$ver" | awk -F. '
11430     {
11431       if ($3) {three = $3}
11432       else {three = 0}
11433     }
11434     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11435 `
11436     req=`
11437     echo "" | awk -F. '
11438     {
11439       if ($3) {three = $3}
11440       else {three = 0}
11441     }
11442     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11443 `
11444     { $as_echo "$as_me:$LINENO: result: $ver" >&5
11445 $as_echo "$ver" >&6; }
11446     if test "$num" -lt "$req"; then
11447
11448     eval "x"=\"`eval echo \"'$'x\" \""$r >=  (installed: $ver)"\"`\"
11449
11450     fi
11451     vervar="`echo WINDRES | tr 'a-z' 'A-Z'`_VERSION"
11452     eval `echo $vervar=$num`
11453 ##    AC_SUBST(`eval echo $vervar`)
11454
11455     fi
11456
11457
11458
11459
11460 ## Optional tools for building documentation, website, extra fonts.
11461
11462 # guile executable for some scripts
11463
11464
11465     for ac_prog in guile
11466 do
11467   # Extract the first word of "$ac_prog", so it can be a program name with args.
11468 set dummy $ac_prog; ac_word=$2
11469 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11470 $as_echo_n "checking for $ac_word... " >&6; }
11471 if test "${ac_cv_prog_GUILE+set}" = set; then
11472   $as_echo_n "(cached) " >&6
11473 else
11474   if test -n "$GUILE"; then
11475   ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
11476 else
11477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11478 for as_dir in $PATH
11479 do
11480   IFS=$as_save_IFS
11481   test -z "$as_dir" && as_dir=.
11482   for ac_exec_ext in '' $ac_executable_extensions; do
11483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11484     ac_cv_prog_GUILE="$ac_prog"
11485     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11486     break 2
11487   fi
11488 done
11489 done
11490 IFS=$as_save_IFS
11491
11492 fi
11493 fi
11494 GUILE=$ac_cv_prog_GUILE
11495 if test -n "$GUILE"; then
11496   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
11497 $as_echo "$GUILE" >&6; }
11498 else
11499   { $as_echo "$as_me:$LINENO: result: no" >&5
11500 $as_echo "no" >&6; }
11501 fi
11502
11503
11504   test -n "$GUILE" && break
11505 done
11506 test -n "$GUILE" || GUILE="no"
11507
11508
11509
11510     r="`eval echo '$'"GUILE"`"
11511     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
11512         true
11513     else
11514         ##STEPMAKE_WARN(cannot find . )
11515         false
11516     fi
11517
11518     if test $? -ne 0; then
11519
11520     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"guile\"`\"
11521
11522         if test "OPTIONAL" = "REQUIRED"; then
11523             command="echo ERROR: guile not found"
11524             # abort configure process here?
11525         else
11526             command="- echo guile not found"
11527         fi
11528         eval "GUILE"='$command'
11529         false
11530     else
11531         true
11532     fi
11533
11534     if test $? -eq 0; then
11535         # Extract the first word of "guile", so it can be a program name with args.
11536 set dummy guile; ac_word=$2
11537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11538 $as_echo_n "checking for $ac_word... " >&6; }
11539 if test "${ac_cv_path_GUILE+set}" = set; then
11540   $as_echo_n "(cached) " >&6
11541 else
11542   case $GUILE in
11543   [\\/]* | ?:[\\/]*)
11544   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
11545   ;;
11546   *)
11547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11548 for as_dir in $PATH
11549 do
11550   IFS=$as_save_IFS
11551   test -z "$as_dir" && as_dir=.
11552   for ac_exec_ext in '' $ac_executable_extensions; do
11553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11554     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
11555     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11556     break 2
11557   fi
11558 done
11559 done
11560 IFS=$as_save_IFS
11561
11562   ;;
11563 esac
11564 fi
11565 GUILE=$ac_cv_path_GUILE
11566 if test -n "$GUILE"; then
11567   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
11568 $as_echo "$GUILE" >&6; }
11569 else
11570   { $as_echo "$as_me:$LINENO: result: no" >&5
11571 $as_echo "no" >&6; }
11572 fi
11573
11574
11575         if test -n ""; then
11576
11577     r="`eval echo '$'"GUILE"`"
11578     { $as_echo "$as_me:$LINENO: checking $r version" >&5
11579 $as_echo_n "checking $r version... " >&6; }
11580     exe=`
11581     ## which doesn't work in ash, if /usr/bin/which isn't installed
11582     ## type -p doesn't work in ash
11583     ## command -v doesn't work in zsh
11584     ## command -v "$r" 2>&1
11585     ## this test should work in ash, bash, pdksh (ksh), zsh
11586     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11587 `
11588     if test -n ""; then
11589         ver=""
11590     else
11591         ver=`
11592     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11593     ##
11594     ## ARG.
11595     ## Workaround for broken Debian gcc version string:
11596     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11597     ##
11598     ## -V: Workaround for python
11599
11600     #dnl
11601
11602     ## Assume and hunt for dotted version multiplet.
11603     ## use eval trickery, because we cannot use multi-level $() instead of ``
11604     ## for compatibility reasons.
11605
11606     ## grab the first version number in  --version output.
11607     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11608                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11609                 head -n 1 |
11610                 tr ' ' '\n' |
11611                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11612                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11613                 head -n 1\`\"
11614
11615     if test -z "$_ver"; then
11616         ## If empty, try date [fontforge]
11617         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11618             | head -n 1 \
11619             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11620     fi
11621     echo "$_ver"
11622     #dnl
11623 `
11624     fi
11625     num=`
11626     echo "$ver" | awk -F. '
11627     {
11628       if ($3) {three = $3}
11629       else {three = 0}
11630     }
11631     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11632 `
11633     req=`
11634     echo "" | awk -F. '
11635     {
11636       if ($3) {three = $3}
11637       else {three = 0}
11638     }
11639     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11640 `
11641     { $as_echo "$as_me:$LINENO: result: $ver" >&5
11642 $as_echo "$ver" >&6; }
11643     if test "$num" -lt "$req"; then
11644
11645     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
11646
11647     fi
11648     vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
11649     eval `echo $vervar=$num`
11650 ##    AC_SUBST(`eval echo $vervar`)
11651
11652         fi
11653     fi
11654
11655
11656
11657 # perl for help2man.
11658
11659
11660     for ac_prog in perl
11661 do
11662   # Extract the first word of "$ac_prog", so it can be a program name with args.
11663 set dummy $ac_prog; ac_word=$2
11664 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11665 $as_echo_n "checking for $ac_word... " >&6; }
11666 if test "${ac_cv_prog_PERL+set}" = set; then
11667   $as_echo_n "(cached) " >&6
11668 else
11669   if test -n "$PERL"; then
11670   ac_cv_prog_PERL="$PERL" # Let the user override the test.
11671 else
11672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673 for as_dir in $PATH
11674 do
11675   IFS=$as_save_IFS
11676   test -z "$as_dir" && as_dir=.
11677   for ac_exec_ext in '' $ac_executable_extensions; do
11678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11679     ac_cv_prog_PERL="$ac_prog"
11680     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11681     break 2
11682   fi
11683 done
11684 done
11685 IFS=$as_save_IFS
11686
11687 fi
11688 fi
11689 PERL=$ac_cv_prog_PERL
11690 if test -n "$PERL"; then
11691   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
11692 $as_echo "$PERL" >&6; }
11693 else
11694   { $as_echo "$as_me:$LINENO: result: no" >&5
11695 $as_echo "no" >&6; }
11696 fi
11697
11698
11699   test -n "$PERL" && break
11700 done
11701 test -n "$PERL" || PERL="no"
11702
11703
11704
11705     r="`eval echo '$'"PERL"`"
11706     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
11707         true
11708     else
11709         ##STEPMAKE_WARN(cannot find . )
11710         false
11711     fi
11712
11713     if test $? -ne 0; then
11714
11715     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"perl\"`\"
11716
11717         if test "OPTIONAL" = "REQUIRED"; then
11718             command="echo ERROR: perl not found"
11719             # abort configure process here?
11720         else
11721             command="- echo perl not found"
11722         fi
11723         eval "PERL"='$command'
11724         false
11725     else
11726         true
11727     fi
11728
11729     if test $? -eq 0; then
11730         # Extract the first word of "perl", so it can be a program name with args.
11731 set dummy perl; ac_word=$2
11732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11733 $as_echo_n "checking for $ac_word... " >&6; }
11734 if test "${ac_cv_path_PERL+set}" = set; then
11735   $as_echo_n "(cached) " >&6
11736 else
11737   case $PERL in
11738   [\\/]* | ?:[\\/]*)
11739   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11740   ;;
11741   *)
11742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743 for as_dir in $PATH
11744 do
11745   IFS=$as_save_IFS
11746   test -z "$as_dir" && as_dir=.
11747   for ac_exec_ext in '' $ac_executable_extensions; do
11748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11749     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11750     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11751     break 2
11752   fi
11753 done
11754 done
11755 IFS=$as_save_IFS
11756
11757   ;;
11758 esac
11759 fi
11760 PERL=$ac_cv_path_PERL
11761 if test -n "$PERL"; then
11762   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
11763 $as_echo "$PERL" >&6; }
11764 else
11765   { $as_echo "$as_me:$LINENO: result: no" >&5
11766 $as_echo "no" >&6; }
11767 fi
11768
11769
11770         if test -n ""; then
11771
11772     r="`eval echo '$'"PERL"`"
11773     { $as_echo "$as_me:$LINENO: checking $r version" >&5
11774 $as_echo_n "checking $r version... " >&6; }
11775     exe=`
11776     ## which doesn't work in ash, if /usr/bin/which isn't installed
11777     ## type -p doesn't work in ash
11778     ## command -v doesn't work in zsh
11779     ## command -v "$r" 2>&1
11780     ## this test should work in ash, bash, pdksh (ksh), zsh
11781     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11782 `
11783     if test -n ""; then
11784         ver=""
11785     else
11786         ver=`
11787     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11788     ##
11789     ## ARG.
11790     ## Workaround for broken Debian gcc version string:
11791     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11792     ##
11793     ## -V: Workaround for python
11794
11795     #dnl
11796
11797     ## Assume and hunt for dotted version multiplet.
11798     ## use eval trickery, because we cannot use multi-level $() instead of ``
11799     ## for compatibility reasons.
11800
11801     ## grab the first version number in  --version output.
11802     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11803                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11804                 head -n 1 |
11805                 tr ' ' '\n' |
11806                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11807                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11808                 head -n 1\`\"
11809
11810     if test -z "$_ver"; then
11811         ## If empty, try date [fontforge]
11812         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11813             | head -n 1 \
11814             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11815     fi
11816     echo "$_ver"
11817     #dnl
11818 `
11819     fi
11820     num=`
11821     echo "$ver" | awk -F. '
11822     {
11823       if ($3) {three = $3}
11824       else {three = 0}
11825     }
11826     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11827 `
11828     req=`
11829     echo "" | awk -F. '
11830     {
11831       if ($3) {three = $3}
11832       else {three = 0}
11833     }
11834     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11835 `
11836     { $as_echo "$as_me:$LINENO: result: $ver" >&5
11837 $as_echo "$ver" >&6; }
11838     if test "$num" -lt "$req"; then
11839
11840     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
11841
11842     fi
11843     vervar="`echo PERL | tr 'a-z' 'A-Z'`_VERSION"
11844     eval `echo $vervar=$num`
11845 ##    AC_SUBST(`eval echo $vervar`)
11846
11847         fi
11848     fi
11849
11850
11851
11852
11853     for ac_prog in makeinfo
11854 do
11855   # Extract the first word of "$ac_prog", so it can be a program name with args.
11856 set dummy $ac_prog; ac_word=$2
11857 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11858 $as_echo_n "checking for $ac_word... " >&6; }
11859 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11860   $as_echo_n "(cached) " >&6
11861 else
11862   if test -n "$MAKEINFO"; then
11863   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11864 else
11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866 for as_dir in $PATH
11867 do
11868   IFS=$as_save_IFS
11869   test -z "$as_dir" && as_dir=.
11870   for ac_exec_ext in '' $ac_executable_extensions; do
11871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11872     ac_cv_prog_MAKEINFO="$ac_prog"
11873     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11874     break 2
11875   fi
11876 done
11877 done
11878 IFS=$as_save_IFS
11879
11880 fi
11881 fi
11882 MAKEINFO=$ac_cv_prog_MAKEINFO
11883 if test -n "$MAKEINFO"; then
11884   { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11885 $as_echo "$MAKEINFO" >&6; }
11886 else
11887   { $as_echo "$as_me:$LINENO: result: no" >&5
11888 $as_echo "no" >&6; }
11889 fi
11890
11891
11892   test -n "$MAKEINFO" && break
11893 done
11894 test -n "$MAKEINFO" || MAKEINFO="no"
11895
11896
11897
11898     r="`eval echo '$'"MAKEINFO"`"
11899     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
11900         true
11901     else
11902         ##STEPMAKE_WARN(cannot find . )
11903         false
11904     fi
11905
11906     if test $? -ne 0; then
11907
11908     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
11909
11910         if test "REQUIRED" = "REQUIRED"; then
11911             command="echo ERROR: makeinfo not found"
11912             # abort configure process here?
11913         else
11914             command="- echo makeinfo not found"
11915         fi
11916         eval "MAKEINFO"='$command'
11917         false
11918     else
11919         true
11920     fi
11921
11922     if test $? -eq 0 -a -n "4.11"; then
11923
11924     r="`eval echo '$'"MAKEINFO"`"
11925     { $as_echo "$as_me:$LINENO: checking $r version" >&5
11926 $as_echo_n "checking $r version... " >&6; }
11927     exe=`
11928     ## which doesn't work in ash, if /usr/bin/which isn't installed
11929     ## type -p doesn't work in ash
11930     ## command -v doesn't work in zsh
11931     ## command -v "$r" 2>&1
11932     ## this test should work in ash, bash, pdksh (ksh), zsh
11933     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11934 `
11935     if test -n ""; then
11936         ver=""
11937     else
11938         ver=`
11939     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11940     ##
11941     ## ARG.
11942     ## Workaround for broken Debian gcc version string:
11943     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11944     ##
11945     ## -V: Workaround for python
11946
11947     #dnl
11948
11949     ## Assume and hunt for dotted version multiplet.
11950     ## use eval trickery, because we cannot use multi-level $() instead of ``
11951     ## for compatibility reasons.
11952
11953     ## grab the first version number in  --version output.
11954     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11955                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11956                 head -n 1 |
11957                 tr ' ' '\n' |
11958                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11959                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11960                 head -n 1\`\"
11961
11962     if test -z "$_ver"; then
11963         ## If empty, try date [fontforge]
11964         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11965             | head -n 1 \
11966             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11967     fi
11968     echo "$_ver"
11969     #dnl
11970 `
11971     fi
11972     num=`
11973     echo "$ver" | awk -F. '
11974     {
11975       if ($3) {three = $3}
11976       else {three = 0}
11977     }
11978     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11979 `
11980     req=`
11981     echo "4.11" | awk -F. '
11982     {
11983       if ($3) {three = $3}
11984       else {three = 0}
11985     }
11986     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11987 `
11988     { $as_echo "$as_me:$LINENO: result: $ver" >&5
11989 $as_echo "$ver" >&6; }
11990     if test "$num" -lt "$req"; then
11991
11992     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 4.11 (installed: $ver)"\"`\"
11993
11994     fi
11995     vervar="`echo MAKEINFO | tr 'a-z' 'A-Z'`_VERSION"
11996     eval `echo $vervar=$num`
11997 ##    AC_SUBST(`eval echo $vervar`)
11998
11999     fi
12000
12001
12002     for ac_prog in texi2html
12003 do
12004   # Extract the first word of "$ac_prog", so it can be a program name with args.
12005 set dummy $ac_prog; ac_word=$2
12006 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12007 $as_echo_n "checking for $ac_word... " >&6; }
12008 if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
12009   $as_echo_n "(cached) " >&6
12010 else
12011   if test -n "$TEXI2HTML"; then
12012   ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
12013 else
12014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12015 for as_dir in $PATH
12016 do
12017   IFS=$as_save_IFS
12018   test -z "$as_dir" && as_dir=.
12019   for ac_exec_ext in '' $ac_executable_extensions; do
12020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12021     ac_cv_prog_TEXI2HTML="$ac_prog"
12022     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12023     break 2
12024   fi
12025 done
12026 done
12027 IFS=$as_save_IFS
12028
12029 fi
12030 fi
12031 TEXI2HTML=$ac_cv_prog_TEXI2HTML
12032 if test -n "$TEXI2HTML"; then
12033   { $as_echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
12034 $as_echo "$TEXI2HTML" >&6; }
12035 else
12036   { $as_echo "$as_me:$LINENO: result: no" >&5
12037 $as_echo "no" >&6; }
12038 fi
12039
12040
12041   test -n "$TEXI2HTML" && break
12042 done
12043 test -n "$TEXI2HTML" || TEXI2HTML="no"
12044
12045
12046
12047     r="`eval echo '$'"TEXI2HTML"`"
12048     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2HTML"`' : '.*\(echo\)' > /dev/null; then
12049         true
12050     else
12051         ##STEPMAKE_WARN(cannot find . )
12052         false
12053     fi
12054
12055     if test $? -ne 0; then
12056
12057     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"texi2html\"`\"
12058
12059         if test "OPTIONAL" = "REQUIRED"; then
12060             command="echo ERROR: texi2html not found"
12061             # abort configure process here?
12062         else
12063             command="- echo texi2html not found"
12064         fi
12065         eval "TEXI2HTML"='$command'
12066         false
12067     else
12068         true
12069     fi
12070
12071     if test $? -eq 0 -a -n "1.82"; then
12072
12073     r="`eval echo '$'"TEXI2HTML"`"
12074     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12075 $as_echo_n "checking $r version... " >&6; }
12076     exe=`
12077     ## which doesn't work in ash, if /usr/bin/which isn't installed
12078     ## type -p doesn't work in ash
12079     ## command -v doesn't work in zsh
12080     ## command -v "$r" 2>&1
12081     ## this test should work in ash, bash, pdksh (ksh), zsh
12082     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12083 `
12084     if test -n ""; then
12085         ver=""
12086     else
12087         ver=`
12088     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12089     ##
12090     ## ARG.
12091     ## Workaround for broken Debian gcc version string:
12092     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12093     ##
12094     ## -V: Workaround for python
12095
12096     #dnl
12097
12098     ## Assume and hunt for dotted version multiplet.
12099     ## use eval trickery, because we cannot use multi-level $() instead of ``
12100     ## for compatibility reasons.
12101
12102     ## grab the first version number in  --version output.
12103     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12104                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12105                 head -n 1 |
12106                 tr ' ' '\n' |
12107                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12108                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12109                 head -n 1\`\"
12110
12111     if test -z "$_ver"; then
12112         ## If empty, try date [fontforge]
12113         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12114             | head -n 1 \
12115             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12116     fi
12117     echo "$_ver"
12118     #dnl
12119 `
12120     fi
12121     num=`
12122     echo "$ver" | awk -F. '
12123     {
12124       if ($3) {three = $3}
12125       else {three = 0}
12126     }
12127     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12128 `
12129     req=`
12130     echo "1.82" | awk -F. '
12131     {
12132       if ($3) {three = $3}
12133       else {three = 0}
12134     }
12135     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12136 `
12137     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12138 $as_echo "$ver" >&6; }
12139     if test "$num" -lt "$req"; then
12140
12141     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 1.82 (installed: $ver)"\"`\"
12142
12143     fi
12144     vervar="`echo TEXI2HTML | tr 'a-z' 'A-Z'`_VERSION"
12145     eval `echo $vervar=$num`
12146 ##    AC_SUBST(`eval echo $vervar`)
12147
12148     fi
12149
12150
12151     for ac_prog in dblatex
12152 do
12153   # Extract the first word of "$ac_prog", so it can be a program name with args.
12154 set dummy $ac_prog; ac_word=$2
12155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12156 $as_echo_n "checking for $ac_word... " >&6; }
12157 if test "${ac_cv_prog_DBLATEX+set}" = set; then
12158   $as_echo_n "(cached) " >&6
12159 else
12160   if test -n "$DBLATEX"; then
12161   ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
12162 else
12163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12164 for as_dir in $PATH
12165 do
12166   IFS=$as_save_IFS
12167   test -z "$as_dir" && as_dir=.
12168   for ac_exec_ext in '' $ac_executable_extensions; do
12169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12170     ac_cv_prog_DBLATEX="$ac_prog"
12171     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12172     break 2
12173   fi
12174 done
12175 done
12176 IFS=$as_save_IFS
12177
12178 fi
12179 fi
12180 DBLATEX=$ac_cv_prog_DBLATEX
12181 if test -n "$DBLATEX"; then
12182   { $as_echo "$as_me:$LINENO: result: $DBLATEX" >&5
12183 $as_echo "$DBLATEX" >&6; }
12184 else
12185   { $as_echo "$as_me:$LINENO: result: no" >&5
12186 $as_echo "no" >&6; }
12187 fi
12188
12189
12190   test -n "$DBLATEX" && break
12191 done
12192 test -n "$DBLATEX" || DBLATEX="no"
12193
12194
12195
12196     r="`eval echo '$'"DBLATEX"`"
12197     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"DBLATEX"`' : '.*\(echo\)' > /dev/null; then
12198         true
12199     else
12200         ##STEPMAKE_WARN(cannot find . )
12201         false
12202     fi
12203
12204     if test $? -ne 0; then
12205
12206     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"dblatex\"`\"
12207
12208         if test "OPTIONAL" = "REQUIRED"; then
12209             command="echo ERROR: dblatex not found"
12210             # abort configure process here?
12211         else
12212             command="- echo dblatex not found"
12213         fi
12214         eval "DBLATEX"='$command'
12215         false
12216     else
12217         true
12218     fi
12219
12220     if test $? -eq 0 -a -n ""; then
12221
12222     r="`eval echo '$'"DBLATEX"`"
12223     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12224 $as_echo_n "checking $r version... " >&6; }
12225     exe=`
12226     ## which doesn't work in ash, if /usr/bin/which isn't installed
12227     ## type -p doesn't work in ash
12228     ## command -v doesn't work in zsh
12229     ## command -v "$r" 2>&1
12230     ## this test should work in ash, bash, pdksh (ksh), zsh
12231     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12232 `
12233     if test -n ""; then
12234         ver=""
12235     else
12236         ver=`
12237     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12238     ##
12239     ## ARG.
12240     ## Workaround for broken Debian gcc version string:
12241     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12242     ##
12243     ## -V: Workaround for python
12244
12245     #dnl
12246
12247     ## Assume and hunt for dotted version multiplet.
12248     ## use eval trickery, because we cannot use multi-level $() instead of ``
12249     ## for compatibility reasons.
12250
12251     ## grab the first version number in  --version output.
12252     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12253                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12254                 head -n 1 |
12255                 tr ' ' '\n' |
12256                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12257                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12258                 head -n 1\`\"
12259
12260     if test -z "$_ver"; then
12261         ## If empty, try date [fontforge]
12262         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12263             | head -n 1 \
12264             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12265     fi
12266     echo "$_ver"
12267     #dnl
12268 `
12269     fi
12270     num=`
12271     echo "$ver" | awk -F. '
12272     {
12273       if ($3) {three = $3}
12274       else {three = 0}
12275     }
12276     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12277 `
12278     req=`
12279     echo "" | awk -F. '
12280     {
12281       if ($3) {three = $3}
12282       else {three = 0}
12283     }
12284     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12285 `
12286     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12287 $as_echo "$ver" >&6; }
12288     if test "$num" -lt "$req"; then
12289
12290     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
12291
12292     fi
12293     vervar="`echo DBLATEX | tr 'a-z' 'A-Z'`_VERSION"
12294     eval `echo $vervar=$num`
12295 ##    AC_SUBST(`eval echo $vervar`)
12296
12297     fi
12298
12299
12300     for ac_prog in pdflatex
12301 do
12302   # Extract the first word of "$ac_prog", so it can be a program name with args.
12303 set dummy $ac_prog; ac_word=$2
12304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12305 $as_echo_n "checking for $ac_word... " >&6; }
12306 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
12307   $as_echo_n "(cached) " >&6
12308 else
12309   if test -n "$PDFLATEX"; then
12310   ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
12311 else
12312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313 for as_dir in $PATH
12314 do
12315   IFS=$as_save_IFS
12316   test -z "$as_dir" && as_dir=.
12317   for ac_exec_ext in '' $ac_executable_extensions; do
12318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12319     ac_cv_prog_PDFLATEX="$ac_prog"
12320     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12321     break 2
12322   fi
12323 done
12324 done
12325 IFS=$as_save_IFS
12326
12327 fi
12328 fi
12329 PDFLATEX=$ac_cv_prog_PDFLATEX
12330 if test -n "$PDFLATEX"; then
12331   { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
12332 $as_echo "$PDFLATEX" >&6; }
12333 else
12334   { $as_echo "$as_me:$LINENO: result: no" >&5
12335 $as_echo "no" >&6; }
12336 fi
12337
12338
12339   test -n "$PDFLATEX" && break
12340 done
12341 test -n "$PDFLATEX" || PDFLATEX="no"
12342
12343
12344
12345     r="`eval echo '$'"PDFLATEX"`"
12346     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFLATEX"`' : '.*\(echo\)' > /dev/null; then
12347         true
12348     else
12349         ##STEPMAKE_WARN(cannot find . )
12350         false
12351     fi
12352
12353     if test $? -ne 0; then
12354
12355     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"pdflatex\"`\"
12356
12357         if test "OPTIONAL" = "REQUIRED"; then
12358             command="echo ERROR: pdflatex not found"
12359             # abort configure process here?
12360         else
12361             command="- echo pdflatex not found"
12362         fi
12363         eval "PDFLATEX"='$command'
12364         false
12365     else
12366         true
12367     fi
12368
12369     if test $? -eq 0 -a -n ""; then
12370
12371     r="`eval echo '$'"PDFLATEX"`"
12372     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12373 $as_echo_n "checking $r version... " >&6; }
12374     exe=`
12375     ## which doesn't work in ash, if /usr/bin/which isn't installed
12376     ## type -p doesn't work in ash
12377     ## command -v doesn't work in zsh
12378     ## command -v "$r" 2>&1
12379     ## this test should work in ash, bash, pdksh (ksh), zsh
12380     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12381 `
12382     if test -n ""; then
12383         ver=""
12384     else
12385         ver=`
12386     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12387     ##
12388     ## ARG.
12389     ## Workaround for broken Debian gcc version string:
12390     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12391     ##
12392     ## -V: Workaround for python
12393
12394     #dnl
12395
12396     ## Assume and hunt for dotted version multiplet.
12397     ## use eval trickery, because we cannot use multi-level $() instead of ``
12398     ## for compatibility reasons.
12399
12400     ## grab the first version number in  --version output.
12401     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12402                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12403                 head -n 1 |
12404                 tr ' ' '\n' |
12405                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12406                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12407                 head -n 1\`\"
12408
12409     if test -z "$_ver"; then
12410         ## If empty, try date [fontforge]
12411         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12412             | head -n 1 \
12413             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12414     fi
12415     echo "$_ver"
12416     #dnl
12417 `
12418     fi
12419     num=`
12420     echo "$ver" | awk -F. '
12421     {
12422       if ($3) {three = $3}
12423       else {three = 0}
12424     }
12425     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12426 `
12427     req=`
12428     echo "" | awk -F. '
12429     {
12430       if ($3) {three = $3}
12431       else {three = 0}
12432     }
12433     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12434 `
12435     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12436 $as_echo "$ver" >&6; }
12437     if test "$num" -lt "$req"; then
12438
12439     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
12440
12441     fi
12442     vervar="`echo PDFLATEX | tr 'a-z' 'A-Z'`_VERSION"
12443     eval `echo $vervar=$num`
12444 ##    AC_SUBST(`eval echo $vervar`)
12445
12446     fi
12447
12448
12449     for ac_prog in pngtopnm
12450 do
12451   # Extract the first word of "$ac_prog", so it can be a program name with args.
12452 set dummy $ac_prog; ac_word=$2
12453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12454 $as_echo_n "checking for $ac_word... " >&6; }
12455 if test "${ac_cv_prog_NETPBM+set}" = set; then
12456   $as_echo_n "(cached) " >&6
12457 else
12458   if test -n "$NETPBM"; then
12459   ac_cv_prog_NETPBM="$NETPBM" # Let the user override the test.
12460 else
12461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462 for as_dir in $PATH
12463 do
12464   IFS=$as_save_IFS
12465   test -z "$as_dir" && as_dir=.
12466   for ac_exec_ext in '' $ac_executable_extensions; do
12467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12468     ac_cv_prog_NETPBM="$ac_prog"
12469     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12470     break 2
12471   fi
12472 done
12473 done
12474 IFS=$as_save_IFS
12475
12476 fi
12477 fi
12478 NETPBM=$ac_cv_prog_NETPBM
12479 if test -n "$NETPBM"; then
12480   { $as_echo "$as_me:$LINENO: result: $NETPBM" >&5
12481 $as_echo "$NETPBM" >&6; }
12482 else
12483   { $as_echo "$as_me:$LINENO: result: no" >&5
12484 $as_echo "no" >&6; }
12485 fi
12486
12487
12488   test -n "$NETPBM" && break
12489 done
12490 test -n "$NETPBM" || NETPBM="no"
12491
12492
12493
12494     r="`eval echo '$'"NETPBM"`"
12495     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"NETPBM"`' : '.*\(echo\)' > /dev/null; then
12496         true
12497     else
12498         ##STEPMAKE_WARN(cannot find . )
12499         false
12500     fi
12501
12502     if test $? -ne 0; then
12503
12504     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"pngtopnm\"`\"
12505
12506         if test "OPTIONAL" = "REQUIRED"; then
12507             command="echo ERROR: pngtopnm not found"
12508             # abort configure process here?
12509         else
12510             command="- echo pngtopnm not found"
12511         fi
12512         eval "NETPBM"='$command'
12513         false
12514     else
12515         true
12516     fi
12517
12518     if test $? -eq 0 -a -n ""; then
12519
12520     r="`eval echo '$'"NETPBM"`"
12521     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12522 $as_echo_n "checking $r version... " >&6; }
12523     exe=`
12524     ## which doesn't work in ash, if /usr/bin/which isn't installed
12525     ## type -p doesn't work in ash
12526     ## command -v doesn't work in zsh
12527     ## command -v "$r" 2>&1
12528     ## this test should work in ash, bash, pdksh (ksh), zsh
12529     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12530 `
12531     if test -n ""; then
12532         ver=""
12533     else
12534         ver=`
12535     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12536     ##
12537     ## ARG.
12538     ## Workaround for broken Debian gcc version string:
12539     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12540     ##
12541     ## -V: Workaround for python
12542
12543     #dnl
12544
12545     ## Assume and hunt for dotted version multiplet.
12546     ## use eval trickery, because we cannot use multi-level $() instead of ``
12547     ## for compatibility reasons.
12548
12549     ## grab the first version number in  --version output.
12550     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12551                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12552                 head -n 1 |
12553                 tr ' ' '\n' |
12554                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12555                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12556                 head -n 1\`\"
12557
12558     if test -z "$_ver"; then
12559         ## If empty, try date [fontforge]
12560         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12561             | head -n 1 \
12562             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12563     fi
12564     echo "$_ver"
12565     #dnl
12566 `
12567     fi
12568     num=`
12569     echo "$ver" | awk -F. '
12570     {
12571       if ($3) {three = $3}
12572       else {three = 0}
12573     }
12574     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12575 `
12576     req=`
12577     echo "" | awk -F. '
12578     {
12579       if ($3) {three = $3}
12580       else {three = 0}
12581     }
12582     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12583 `
12584     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12585 $as_echo "$ver" >&6; }
12586     if test "$num" -lt "$req"; then
12587
12588     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
12589
12590     fi
12591     vervar="`echo NETPBM | tr 'a-z' 'A-Z'`_VERSION"
12592     eval `echo $vervar=$num`
12593 ##    AC_SUBST(`eval echo $vervar`)
12594
12595     fi
12596
12597
12598     for ac_prog in convert
12599 do
12600   # Extract the first word of "$ac_prog", so it can be a program name with args.
12601 set dummy $ac_prog; ac_word=$2
12602 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12603 $as_echo_n "checking for $ac_word... " >&6; }
12604 if test "${ac_cv_prog_IMAGEMAGICK+set}" = set; then
12605   $as_echo_n "(cached) " >&6
12606 else
12607   if test -n "$IMAGEMAGICK"; then
12608   ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
12609 else
12610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12611 for as_dir in $PATH
12612 do
12613   IFS=$as_save_IFS
12614   test -z "$as_dir" && as_dir=.
12615   for ac_exec_ext in '' $ac_executable_extensions; do
12616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12617     ac_cv_prog_IMAGEMAGICK="$ac_prog"
12618     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12619     break 2
12620   fi
12621 done
12622 done
12623 IFS=$as_save_IFS
12624
12625 fi
12626 fi
12627 IMAGEMAGICK=$ac_cv_prog_IMAGEMAGICK
12628 if test -n "$IMAGEMAGICK"; then
12629   { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK" >&5
12630 $as_echo "$IMAGEMAGICK" >&6; }
12631 else
12632   { $as_echo "$as_me:$LINENO: result: no" >&5
12633 $as_echo "no" >&6; }
12634 fi
12635
12636
12637   test -n "$IMAGEMAGICK" && break
12638 done
12639 test -n "$IMAGEMAGICK" || IMAGEMAGICK="no"
12640
12641
12642
12643     r="`eval echo '$'"IMAGEMAGICK"`"
12644     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"IMAGEMAGICK"`' : '.*\(echo\)' > /dev/null; then
12645         true
12646     else
12647         ##STEPMAKE_WARN(cannot find . )
12648         false
12649     fi
12650
12651     if test $? -ne 0; then
12652
12653     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"convert\"`\"
12654
12655         if test "OPTIONAL" = "REQUIRED"; then
12656             command="echo ERROR: convert not found"
12657             # abort configure process here?
12658         else
12659             command="- echo convert not found"
12660         fi
12661         eval "IMAGEMAGICK"='$command'
12662         false
12663     else
12664         true
12665     fi
12666
12667     if test $? -eq 0 -a -n ""; then
12668
12669     r="`eval echo '$'"IMAGEMAGICK"`"
12670     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12671 $as_echo_n "checking $r version... " >&6; }
12672     exe=`
12673     ## which doesn't work in ash, if /usr/bin/which isn't installed
12674     ## type -p doesn't work in ash
12675     ## command -v doesn't work in zsh
12676     ## command -v "$r" 2>&1
12677     ## this test should work in ash, bash, pdksh (ksh), zsh
12678     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12679 `
12680     if test -n ""; then
12681         ver=""
12682     else
12683         ver=`
12684     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12685     ##
12686     ## ARG.
12687     ## Workaround for broken Debian gcc version string:
12688     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12689     ##
12690     ## -V: Workaround for python
12691
12692     #dnl
12693
12694     ## Assume and hunt for dotted version multiplet.
12695     ## use eval trickery, because we cannot use multi-level $() instead of ``
12696     ## for compatibility reasons.
12697
12698     ## grab the first version number in  --version output.
12699     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12700                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12701                 head -n 1 |
12702                 tr ' ' '\n' |
12703                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12704                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12705                 head -n 1\`\"
12706
12707     if test -z "$_ver"; then
12708         ## If empty, try date [fontforge]
12709         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12710             | head -n 1 \
12711             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12712     fi
12713     echo "$_ver"
12714     #dnl
12715 `
12716     fi
12717     num=`
12718     echo "$ver" | awk -F. '
12719     {
12720       if ($3) {three = $3}
12721       else {three = 0}
12722     }
12723     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12724 `
12725     req=`
12726     echo "" | awk -F. '
12727     {
12728       if ($3) {three = $3}
12729       else {three = 0}
12730     }
12731     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12732 `
12733     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12734 $as_echo "$ver" >&6; }
12735     if test "$num" -lt "$req"; then
12736
12737     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
12738
12739     fi
12740     vervar="`echo IMAGEMAGICK | tr 'a-z' 'A-Z'`_VERSION"
12741     eval `echo $vervar=$num`
12742 ##    AC_SUBST(`eval echo $vervar`)
12743
12744     fi
12745
12746 # this name avoids a conflict with ZIP in stepmake/aclocal.m4
12747
12748     for ac_prog in zip
12749 do
12750   # Extract the first word of "$ac_prog", so it can be a program name with args.
12751 set dummy $ac_prog; ac_word=$2
12752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12753 $as_echo_n "checking for $ac_word... " >&6; }
12754 if test "${ac_cv_prog_ZIPDOC+set}" = set; then
12755   $as_echo_n "(cached) " >&6
12756 else
12757   if test -n "$ZIPDOC"; then
12758   ac_cv_prog_ZIPDOC="$ZIPDOC" # Let the user override the test.
12759 else
12760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12761 for as_dir in $PATH
12762 do
12763   IFS=$as_save_IFS
12764   test -z "$as_dir" && as_dir=.
12765   for ac_exec_ext in '' $ac_executable_extensions; do
12766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12767     ac_cv_prog_ZIPDOC="$ac_prog"
12768     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12769     break 2
12770   fi
12771 done
12772 done
12773 IFS=$as_save_IFS
12774
12775 fi
12776 fi
12777 ZIPDOC=$ac_cv_prog_ZIPDOC
12778 if test -n "$ZIPDOC"; then
12779   { $as_echo "$as_me:$LINENO: result: $ZIPDOC" >&5
12780 $as_echo "$ZIPDOC" >&6; }
12781 else
12782   { $as_echo "$as_me:$LINENO: result: no" >&5
12783 $as_echo "no" >&6; }
12784 fi
12785
12786
12787   test -n "$ZIPDOC" && break
12788 done
12789 test -n "$ZIPDOC" || ZIPDOC="no"
12790
12791
12792
12793     r="`eval echo '$'"ZIPDOC"`"
12794     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"ZIPDOC"`' : '.*\(echo\)' > /dev/null; then
12795         true
12796     else
12797         ##STEPMAKE_WARN(cannot find . )
12798         false
12799     fi
12800
12801     if test $? -ne 0; then
12802
12803     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"zip\"`\"
12804
12805         if test "OPTIONAL" = "REQUIRED"; then
12806             command="echo ERROR: zip not found"
12807             # abort configure process here?
12808         else
12809             command="- echo zip not found"
12810         fi
12811         eval "ZIPDOC"='$command'
12812         false
12813     else
12814         true
12815     fi
12816
12817     if test $? -eq 0 -a -n ""; then
12818
12819     r="`eval echo '$'"ZIPDOC"`"
12820     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12821 $as_echo_n "checking $r version... " >&6; }
12822     exe=`
12823     ## which doesn't work in ash, if /usr/bin/which isn't installed
12824     ## type -p doesn't work in ash
12825     ## command -v doesn't work in zsh
12826     ## command -v "$r" 2>&1
12827     ## this test should work in ash, bash, pdksh (ksh), zsh
12828     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12829 `
12830     if test -n ""; then
12831         ver=""
12832     else
12833         ver=`
12834     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12835     ##
12836     ## ARG.
12837     ## Workaround for broken Debian gcc version string:
12838     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12839     ##
12840     ## -V: Workaround for python
12841
12842     #dnl
12843
12844     ## Assume and hunt for dotted version multiplet.
12845     ## use eval trickery, because we cannot use multi-level $() instead of ``
12846     ## for compatibility reasons.
12847
12848     ## grab the first version number in  --version output.
12849     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12850                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12851                 head -n 1 |
12852                 tr ' ' '\n' |
12853                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12854                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12855                 head -n 1\`\"
12856
12857     if test -z "$_ver"; then
12858         ## If empty, try date [fontforge]
12859         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12860             | head -n 1 \
12861             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12862     fi
12863     echo "$_ver"
12864     #dnl
12865 `
12866     fi
12867     num=`
12868     echo "$ver" | awk -F. '
12869     {
12870       if ($3) {three = $3}
12871       else {three = 0}
12872     }
12873     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12874 `
12875     req=`
12876     echo "" | awk -F. '
12877     {
12878       if ($3) {three = $3}
12879       else {three = 0}
12880     }
12881     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12882 `
12883     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12884 $as_echo "$ver" >&6; }
12885     if test "$num" -lt "$req"; then
12886
12887     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
12888
12889     fi
12890     vervar="`echo ZIPDOC | tr 'a-z' 'A-Z'`_VERSION"
12891     eval `echo $vervar=$num`
12892 ##    AC_SUBST(`eval echo $vervar`)
12893
12894     fi
12895
12896
12897     for ac_prog in rsync
12898 do
12899   # Extract the first word of "$ac_prog", so it can be a program name with args.
12900 set dummy $ac_prog; ac_word=$2
12901 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12902 $as_echo_n "checking for $ac_word... " >&6; }
12903 if test "${ac_cv_prog_RSYNC+set}" = set; then
12904   $as_echo_n "(cached) " >&6
12905 else
12906   if test -n "$RSYNC"; then
12907   ac_cv_prog_RSYNC="$RSYNC" # Let the user override the test.
12908 else
12909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12910 for as_dir in $PATH
12911 do
12912   IFS=$as_save_IFS
12913   test -z "$as_dir" && as_dir=.
12914   for ac_exec_ext in '' $ac_executable_extensions; do
12915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12916     ac_cv_prog_RSYNC="$ac_prog"
12917     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12918     break 2
12919   fi
12920 done
12921 done
12922 IFS=$as_save_IFS
12923
12924 fi
12925 fi
12926 RSYNC=$ac_cv_prog_RSYNC
12927 if test -n "$RSYNC"; then
12928   { $as_echo "$as_me:$LINENO: result: $RSYNC" >&5
12929 $as_echo "$RSYNC" >&6; }
12930 else
12931   { $as_echo "$as_me:$LINENO: result: no" >&5
12932 $as_echo "no" >&6; }
12933 fi
12934
12935
12936   test -n "$RSYNC" && break
12937 done
12938 test -n "$RSYNC" || RSYNC="no"
12939
12940
12941
12942     r="`eval echo '$'"RSYNC"`"
12943     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RSYNC"`' : '.*\(echo\)' > /dev/null; then
12944         true
12945     else
12946         ##STEPMAKE_WARN(cannot find . )
12947         false
12948     fi
12949
12950     if test $? -ne 0; then
12951
12952     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"rsync\"`\"
12953
12954         if test "OPTIONAL" = "REQUIRED"; then
12955             command="echo ERROR: rsync not found"
12956             # abort configure process here?
12957         else
12958             command="- echo rsync not found"
12959         fi
12960         eval "RSYNC"='$command'
12961         false
12962     else
12963         true
12964     fi
12965
12966     if test $? -eq 0 -a -n ""; then
12967
12968     r="`eval echo '$'"RSYNC"`"
12969     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12970 $as_echo_n "checking $r version... " >&6; }
12971     exe=`
12972     ## which doesn't work in ash, if /usr/bin/which isn't installed
12973     ## type -p doesn't work in ash
12974     ## command -v doesn't work in zsh
12975     ## command -v "$r" 2>&1
12976     ## this test should work in ash, bash, pdksh (ksh), zsh
12977     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12978 `
12979     if test -n ""; then
12980         ver=""
12981     else
12982         ver=`
12983     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12984     ##
12985     ## ARG.
12986     ## Workaround for broken Debian gcc version string:
12987     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12988     ##
12989     ## -V: Workaround for python
12990
12991     #dnl
12992
12993     ## Assume and hunt for dotted version multiplet.
12994     ## use eval trickery, because we cannot use multi-level $() instead of ``
12995     ## for compatibility reasons.
12996
12997     ## grab the first version number in  --version output.
12998     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12999                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13000                 head -n 1 |
13001                 tr ' ' '\n' |
13002                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13003                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13004                 head -n 1\`\"
13005
13006     if test -z "$_ver"; then
13007         ## If empty, try date [fontforge]
13008         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13009             | head -n 1 \
13010             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13011     fi
13012     echo "$_ver"
13013     #dnl
13014 `
13015     fi
13016     num=`
13017     echo "$ver" | awk -F. '
13018     {
13019       if ($3) {three = $3}
13020       else {three = 0}
13021     }
13022     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13023 `
13024     req=`
13025     echo "" | awk -F. '
13026     {
13027       if ($3) {three = $3}
13028       else {three = 0}
13029     }
13030     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13031 `
13032     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13033 $as_echo "$ver" >&6; }
13034     if test "$num" -lt "$req"; then
13035
13036     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
13037
13038     fi
13039     vervar="`echo RSYNC | tr 'a-z' 'A-Z'`_VERSION"
13040     eval `echo $vervar=$num`
13041 ##    AC_SUBST(`eval echo $vervar`)
13042
13043     fi
13044
13045
13046
13047 cat >>confdefs.h <<_ACEOF
13048 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
13049 _ACEOF
13050
13051
13052 # must also have local.make if configure fails.
13053 touch local.make
13054
13055 if test "$reloc_b$rpath_b" = "yesno"; then
13056
13057     { $as_echo "$as_me:$LINENO: WARNING: Using --enable-relocation without --enable-rpath.  LilyPond may have trouble finding libraries." >&5
13058 $as_echo "$as_me: WARNING: Using --enable-relocation without --enable-rpath.  LilyPond may have trouble finding libraries." >&2;}
13059     warn_b=yes
13060
13061 fi
13062
13063 # Gather requirements and generate output.
13064
13065
13066     # undo expanding of explicit --infodir=/usr/share
13067     # to ease install-time override with prefix=...
13068     strip=`echo $includedir | eval sed s@^$prefix@@`
13069     if test "$includedir" = "`eval echo $prefix$strip`"; then
13070             includedir='${prefix}'$strip''
13071     fi
13072     strip=`echo $libdir | eval sed s@^$exec_prefix@@`
13073     if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
13074             libdir='${exec_prefix}'$strip''
13075     fi
13076     strip=`echo $infodir | eval sed s@^$datarootdir@@`
13077     if test "$infodir" = "`eval echo $datarootdir$strip`"; then
13078             infodir='${datarootdir}'$strip''
13079     fi
13080     strip=`echo $mandir | eval sed s@^$datarootdir@@`
13081     if test "$mandir" = "`eval echo $datarootdir$strip`"; then
13082             mandir='${datarootdir}'$strip''
13083     fi
13084
13085
13086
13087
13088
13089     ac_config_files="$ac_config_files $CONFIGFILE.make:config.make.in"
13090
13091     cat >confcache <<\_ACEOF
13092 # This file is a shell script that caches the results of configure
13093 # tests run on this system so they can be shared between configure
13094 # scripts and configure runs, see configure's option --config-cache.
13095 # It is not useful on other systems.  If it contains results you don't
13096 # want to keep, you may remove or edit it.
13097 #
13098 # config.status only pays attention to the cache file if you give it
13099 # the --recheck option to rerun configure.
13100 #
13101 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13102 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13103 # following values.
13104
13105 _ACEOF
13106
13107 # The following way of writing the cache mishandles newlines in values,
13108 # but we know of no workaround that is simple, portable, and efficient.
13109 # So, we kill variables containing newlines.
13110 # Ultrix sh set writes to stderr and can't be redirected directly,
13111 # and sets the high bit in the cache file unless we assign to the vars.
13112 (
13113   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13114     eval ac_val=\$$ac_var
13115     case $ac_val in #(
13116     *${as_nl}*)
13117       case $ac_var in #(
13118       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13119 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13120       esac
13121       case $ac_var in #(
13122       _ | IFS | as_nl) ;; #(
13123       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13124       *) $as_unset $ac_var ;;
13125       esac ;;
13126     esac
13127   done
13128
13129   (set) 2>&1 |
13130     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13131     *${as_nl}ac_space=\ *)
13132       # `set' does not quote correctly, so add quotes (double-quote
13133       # substitution turns \\\\ into \\, and sed turns \\ into \).
13134       sed -n \
13135         "s/'/'\\\\''/g;
13136           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13137       ;; #(
13138     *)
13139       # `set' quotes correctly as required by POSIX, so do not add quotes.
13140       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13141       ;;
13142     esac |
13143     sort
13144 ) |
13145   sed '
13146      /^ac_cv_env_/b end
13147      t clear
13148      :clear
13149      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13150      t end
13151      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13152      :end' >>confcache
13153 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13154   if test -w "$cache_file"; then
13155     test "x$cache_file" != "x/dev/null" &&
13156       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13157 $as_echo "$as_me: updating cache $cache_file" >&6;}
13158     cat confcache >$cache_file
13159   else
13160     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13161 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13162   fi
13163 fi
13164 rm -f confcache
13165
13166 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13167 # Let make expand exec_prefix.
13168 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13169
13170 DEFS=-DHAVE_CONFIG_H
13171
13172 ac_libobjs=
13173 ac_ltlibobjs=
13174 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13175   # 1. Remove the extension, and $U if already installed.
13176   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13177   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13178   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13179   #    will be set to the directory where LIBOBJS objects are built.
13180   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13181   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13182 done
13183 LIBOBJS=$ac_libobjs
13184
13185 LTLIBOBJS=$ac_ltlibobjs
13186
13187
13188
13189 : ${CONFIG_STATUS=./config.status}
13190 ac_write_fail=0
13191 ac_clean_files_save=$ac_clean_files
13192 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13193 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13194 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13195 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13196 #! $SHELL
13197 # Generated by $as_me.
13198 # Run this file to recreate the current configuration.
13199 # Compiler output produced by configure, useful for debugging
13200 # configure, is in config.log if it exists.
13201
13202 debug=false
13203 ac_cs_recheck=false
13204 ac_cs_silent=false
13205 SHELL=\${CONFIG_SHELL-$SHELL}
13206 _ACEOF
13207
13208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13209 ## --------------------- ##
13210 ## M4sh Initialization.  ##
13211 ## --------------------- ##
13212
13213 # Be more Bourne compatible
13214 DUALCASE=1; export DUALCASE # for MKS sh
13215 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13216   emulate sh
13217   NULLCMD=:
13218   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13219   # is contrary to our usage.  Disable this feature.
13220   alias -g '${1+"$@"}'='"$@"'
13221   setopt NO_GLOB_SUBST
13222 else
13223   case `(set -o) 2>/dev/null` in
13224   *posix*) set -o posix ;;
13225 esac
13226
13227 fi
13228
13229
13230
13231
13232 # PATH needs CR
13233 # Avoid depending upon Character Ranges.
13234 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13235 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13236 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13237 as_cr_digits='0123456789'
13238 as_cr_alnum=$as_cr_Letters$as_cr_digits
13239
13240 as_nl='
13241 '
13242 export as_nl
13243 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13244 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13245 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13246 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13247 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13248   as_echo='printf %s\n'
13249   as_echo_n='printf %s'
13250 else
13251   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13252     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13253     as_echo_n='/usr/ucb/echo -n'
13254   else
13255     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13256     as_echo_n_body='eval
13257       arg=$1;
13258       case $arg in
13259       *"$as_nl"*)
13260         expr "X$arg" : "X\\(.*\\)$as_nl";
13261         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13262       esac;
13263       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13264     '
13265     export as_echo_n_body
13266     as_echo_n='sh -c $as_echo_n_body as_echo'
13267   fi
13268   export as_echo_body
13269   as_echo='sh -c $as_echo_body as_echo'
13270 fi
13271
13272 # The user is always right.
13273 if test "${PATH_SEPARATOR+set}" != set; then
13274   PATH_SEPARATOR=:
13275   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13276     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13277       PATH_SEPARATOR=';'
13278   }
13279 fi
13280
13281 # Support unset when possible.
13282 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13283   as_unset=unset
13284 else
13285   as_unset=false
13286 fi
13287
13288
13289 # IFS
13290 # We need space, tab and new line, in precisely that order.  Quoting is
13291 # there to prevent editors from complaining about space-tab.
13292 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13293 # splitting by setting IFS to empty value.)
13294 IFS=" ""        $as_nl"
13295
13296 # Find who we are.  Look in the path if we contain no directory separator.
13297 case $0 in
13298   *[\\/]* ) as_myself=$0 ;;
13299   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13300 for as_dir in $PATH
13301 do
13302   IFS=$as_save_IFS
13303   test -z "$as_dir" && as_dir=.
13304   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13305 done
13306 IFS=$as_save_IFS
13307
13308      ;;
13309 esac
13310 # We did not find ourselves, most probably we were run as `sh COMMAND'
13311 # in which case we are not to be found in the path.
13312 if test "x$as_myself" = x; then
13313   as_myself=$0
13314 fi
13315 if test ! -f "$as_myself"; then
13316   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13317   { (exit 1); exit 1; }
13318 fi
13319
13320 # Work around bugs in pre-3.0 UWIN ksh.
13321 for as_var in ENV MAIL MAILPATH
13322 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13323 done
13324 PS1='$ '
13325 PS2='> '
13326 PS4='+ '
13327
13328 # NLS nuisances.
13329 LC_ALL=C
13330 export LC_ALL
13331 LANGUAGE=C
13332 export LANGUAGE
13333
13334 # Required to use basename.
13335 if expr a : '\(a\)' >/dev/null 2>&1 &&
13336    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13337   as_expr=expr
13338 else
13339   as_expr=false
13340 fi
13341
13342 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13343   as_basename=basename
13344 else
13345   as_basename=false
13346 fi
13347
13348
13349 # Name of the executable.
13350 as_me=`$as_basename -- "$0" ||
13351 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13352          X"$0" : 'X\(//\)$' \| \
13353          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13354 $as_echo X/"$0" |
13355     sed '/^.*\/\([^/][^/]*\)\/*$/{
13356             s//\1/
13357             q
13358           }
13359           /^X\/\(\/\/\)$/{
13360             s//\1/
13361             q
13362           }
13363           /^X\/\(\/\).*/{
13364             s//\1/
13365             q
13366           }
13367           s/.*/./; q'`
13368
13369 # CDPATH.
13370 $as_unset CDPATH
13371
13372
13373
13374   as_lineno_1=$LINENO
13375   as_lineno_2=$LINENO
13376   test "x$as_lineno_1" != "x$as_lineno_2" &&
13377   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13378
13379   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13380   # uniformly replaced by the line number.  The first 'sed' inserts a
13381   # line-number line after each line using $LINENO; the second 'sed'
13382   # does the real work.  The second script uses 'N' to pair each
13383   # line-number line with the line containing $LINENO, and appends
13384   # trailing '-' during substitution so that $LINENO is not a special
13385   # case at line end.
13386   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13387   # scripts with optimization help from Paolo Bonzini.  Blame Lee
13388   # E. McMahon (1931-1989) for sed's syntax.  :-)
13389   sed -n '
13390     p
13391     /[$]LINENO/=
13392   ' <$as_myself |
13393     sed '
13394       s/[$]LINENO.*/&-/
13395       t lineno
13396       b
13397       :lineno
13398       N
13399       :loop
13400       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13401       t loop
13402       s/-\n.*//
13403     ' >$as_me.lineno &&
13404   chmod +x "$as_me.lineno" ||
13405     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13406    { (exit 1); exit 1; }; }
13407
13408   # Don't try to exec as it changes $[0], causing all sort of problems
13409   # (the dirname of $[0] is not the place where we might find the
13410   # original and so on.  Autoconf is especially sensitive to this).
13411   . "./$as_me.lineno"
13412   # Exit status is that of the last command.
13413   exit
13414 }
13415
13416
13417 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13418   as_dirname=dirname
13419 else
13420   as_dirname=false
13421 fi
13422
13423 ECHO_C= ECHO_N= ECHO_T=
13424 case `echo -n x` in
13425 -n*)
13426   case `echo 'x\c'` in
13427   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13428   *)   ECHO_C='\c';;
13429   esac;;
13430 *)
13431   ECHO_N='-n';;
13432 esac
13433 if expr a : '\(a\)' >/dev/null 2>&1 &&
13434    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13435   as_expr=expr
13436 else
13437   as_expr=false
13438 fi
13439
13440 rm -f conf$$ conf$$.exe conf$$.file
13441 if test -d conf$$.dir; then
13442   rm -f conf$$.dir/conf$$.file
13443 else
13444   rm -f conf$$.dir
13445   mkdir conf$$.dir 2>/dev/null
13446 fi
13447 if (echo >conf$$.file) 2>/dev/null; then
13448   if ln -s conf$$.file conf$$ 2>/dev/null; then
13449     as_ln_s='ln -s'
13450     # ... but there are two gotchas:
13451     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13452     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13453     # In both cases, we have to default to `cp -p'.
13454     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13455       as_ln_s='cp -p'
13456   elif ln conf$$.file conf$$ 2>/dev/null; then
13457     as_ln_s=ln
13458   else
13459     as_ln_s='cp -p'
13460   fi
13461 else
13462   as_ln_s='cp -p'
13463 fi
13464 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13465 rmdir conf$$.dir 2>/dev/null
13466
13467 if mkdir -p . 2>/dev/null; then
13468   as_mkdir_p=:
13469 else
13470   test -d ./-p && rmdir ./-p
13471   as_mkdir_p=false
13472 fi
13473
13474 if test -x / >/dev/null 2>&1; then
13475   as_test_x='test -x'
13476 else
13477   if ls -dL / >/dev/null 2>&1; then
13478     as_ls_L_option=L
13479   else
13480     as_ls_L_option=
13481   fi
13482   as_test_x='
13483     eval sh -c '\''
13484       if test -d "$1"; then
13485         test -d "$1/.";
13486       else
13487         case $1 in
13488         -*)set "./$1";;
13489         esac;
13490         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13491         ???[sx]*):;;*)false;;esac;fi
13492     '\'' sh
13493   '
13494 fi
13495 as_executable_p=$as_test_x
13496
13497 # Sed expression to map a string onto a valid CPP name.
13498 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13499
13500 # Sed expression to map a string onto a valid variable name.
13501 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13502
13503
13504 exec 6>&1
13505
13506 # Save the log message, to keep $[0] and so on meaningful, and to
13507 # report actual input values of CONFIG_FILES etc. instead of their
13508 # values after options handling.
13509 ac_log="
13510 This file was extended by $as_me, which was
13511 generated by GNU Autoconf 2.63.  Invocation command line was
13512
13513   CONFIG_FILES    = $CONFIG_FILES
13514   CONFIG_HEADERS  = $CONFIG_HEADERS
13515   CONFIG_LINKS    = $CONFIG_LINKS
13516   CONFIG_COMMANDS = $CONFIG_COMMANDS
13517   $ $0 $@
13518
13519 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13520 "
13521
13522 _ACEOF
13523
13524 case $ac_config_files in *"
13525 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13526 esac
13527
13528 case $ac_config_headers in *"
13529 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13530 esac
13531
13532
13533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13534 # Files that config.status was made for.
13535 config_files="$ac_config_files"
13536 config_headers="$ac_config_headers"
13537
13538 _ACEOF
13539
13540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13541 ac_cs_usage="\
13542 \`$as_me' instantiates files from templates according to the
13543 current configuration.
13544
13545 Usage: $0 [OPTION]... [FILE]...
13546
13547   -h, --help       print this help, then exit
13548   -V, --version    print version number and configuration settings, then exit
13549   -q, --quiet, --silent
13550                    do not print progress messages
13551   -d, --debug      don't remove temporary files
13552       --recheck    update $as_me by reconfiguring in the same conditions
13553       --file=FILE[:TEMPLATE]
13554                    instantiate the configuration file FILE
13555       --header=FILE[:TEMPLATE]
13556                    instantiate the configuration header FILE
13557
13558 Configuration files:
13559 $config_files
13560
13561 Configuration headers:
13562 $config_headers
13563
13564 Report bugs to <bug-autoconf@gnu.org>."
13565
13566 _ACEOF
13567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13568 ac_cs_version="\\
13569 config.status
13570 configured by $0, generated by GNU Autoconf 2.63,
13571   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13572
13573 Copyright (C) 2008 Free Software Foundation, Inc.
13574 This config.status script is free software; the Free Software Foundation
13575 gives unlimited permission to copy, distribute and modify it."
13576
13577 ac_pwd='$ac_pwd'
13578 srcdir='$srcdir'
13579 test -n "\$AWK" || AWK=awk
13580 _ACEOF
13581
13582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13583 # The default lists apply if the user does not specify any file.
13584 ac_need_defaults=:
13585 while test $# != 0
13586 do
13587   case $1 in
13588   --*=*)
13589     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13590     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13591     ac_shift=:
13592     ;;
13593   *)
13594     ac_option=$1
13595     ac_optarg=$2
13596     ac_shift=shift
13597     ;;
13598   esac
13599
13600   case $ac_option in
13601   # Handling of the options.
13602   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13603     ac_cs_recheck=: ;;
13604   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13605     $as_echo "$ac_cs_version"; exit ;;
13606   --debug | --debu | --deb | --de | --d | -d )
13607     debug=: ;;
13608   --file | --fil | --fi | --f )
13609     $ac_shift
13610     case $ac_optarg in
13611     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13612     esac
13613     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13614     ac_need_defaults=false;;
13615   --header | --heade | --head | --hea )
13616     $ac_shift
13617     case $ac_optarg in
13618     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13619     esac
13620     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13621     ac_need_defaults=false;;
13622   --he | --h)
13623     # Conflict between --help and --header
13624     { $as_echo "$as_me: error: ambiguous option: $1
13625 Try \`$0 --help' for more information." >&2
13626    { (exit 1); exit 1; }; };;
13627   --help | --hel | -h )
13628     $as_echo "$ac_cs_usage"; exit ;;
13629   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13630   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13631     ac_cs_silent=: ;;
13632
13633   # This is an error.
13634   -*) { $as_echo "$as_me: error: unrecognized option: $1
13635 Try \`$0 --help' for more information." >&2
13636    { (exit 1); exit 1; }; } ;;
13637
13638   *) ac_config_targets="$ac_config_targets $1"
13639      ac_need_defaults=false ;;
13640
13641   esac
13642   shift
13643 done
13644
13645 ac_configure_extra_args=
13646
13647 if $ac_cs_silent; then
13648   exec 6>/dev/null
13649   ac_configure_extra_args="$ac_configure_extra_args --silent"
13650 fi
13651
13652 _ACEOF
13653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13654 if \$ac_cs_recheck; then
13655   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13656   shift
13657   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13658   CONFIG_SHELL='$SHELL'
13659   export CONFIG_SHELL
13660   exec "\$@"
13661 fi
13662
13663 _ACEOF
13664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13665 exec 5>>config.log
13666 {
13667   echo
13668   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13669 ## Running $as_me. ##
13670 _ASBOX
13671   $as_echo "$ac_log"
13672 } >&5
13673
13674 _ACEOF
13675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13676 _ACEOF
13677
13678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13679
13680 # Handling of arguments.
13681 for ac_config_target in $ac_config_targets
13682 do
13683   case $ac_config_target in
13684     "$CONFIGFILE.hh") CONFIG_HEADERS="$CONFIG_HEADERS $CONFIGFILE.hh:config.hh.in" ;;
13685     "$CONFIGFILE.make") CONFIG_FILES="$CONFIG_FILES $CONFIGFILE.make:config.make.in" ;;
13686
13687   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13688 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13689    { (exit 1); exit 1; }; };;
13690   esac
13691 done
13692
13693
13694 # If the user did not use the arguments to specify the items to instantiate,
13695 # then the envvar interface is used.  Set only those that are not.
13696 # We use the long form for the default assignment because of an extremely
13697 # bizarre bug on SunOS 4.1.3.
13698 if $ac_need_defaults; then
13699   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13700   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13701 fi
13702
13703 # Have a temporary directory for convenience.  Make it in the build tree
13704 # simply because there is no reason against having it here, and in addition,
13705 # creating and moving files from /tmp can sometimes cause problems.
13706 # Hook for its removal unless debugging.
13707 # Note that there is a small window in which the directory will not be cleaned:
13708 # after its creation but before its name has been assigned to `$tmp'.
13709 $debug ||
13710 {
13711   tmp=
13712   trap 'exit_status=$?
13713   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13714 ' 0
13715   trap '{ (exit 1); exit 1; }' 1 2 13 15
13716 }
13717 # Create a (secure) tmp directory for tmp files.
13718
13719 {
13720   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13721   test -n "$tmp" && test -d "$tmp"
13722 }  ||
13723 {
13724   tmp=./conf$$-$RANDOM
13725   (umask 077 && mkdir "$tmp")
13726 } ||
13727 {
13728    $as_echo "$as_me: cannot create a temporary directory in ." >&2
13729    { (exit 1); exit 1; }
13730 }
13731
13732 # Set up the scripts for CONFIG_FILES section.
13733 # No need to generate them if there are no CONFIG_FILES.
13734 # This happens for instance with `./config.status config.h'.
13735 if test -n "$CONFIG_FILES"; then
13736
13737
13738 ac_cr='\r'
13739 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13740 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13741   ac_cs_awk_cr='\\r'
13742 else
13743   ac_cs_awk_cr=$ac_cr
13744 fi
13745
13746 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13747 _ACEOF
13748
13749
13750 {
13751   echo "cat >conf$$subs.awk <<_ACEOF" &&
13752   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13753   echo "_ACEOF"
13754 } >conf$$subs.sh ||
13755   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13756 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13757    { (exit 1); exit 1; }; }
13758 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13759 ac_delim='%!_!# '
13760 for ac_last_try in false false false false false :; do
13761   . ./conf$$subs.sh ||
13762     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13763 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13764    { (exit 1); exit 1; }; }
13765
13766   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13767   if test $ac_delim_n = $ac_delim_num; then
13768     break
13769   elif $ac_last_try; then
13770     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13771 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13772    { (exit 1); exit 1; }; }
13773   else
13774     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13775   fi
13776 done
13777 rm -f conf$$subs.sh
13778
13779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13780 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13781 _ACEOF
13782 sed -n '
13783 h
13784 s/^/S["/; s/!.*/"]=/
13785 p
13786 g
13787 s/^[^!]*!//
13788 :repl
13789 t repl
13790 s/'"$ac_delim"'$//
13791 t delim
13792 :nl
13793 h
13794 s/\(.\{148\}\).*/\1/
13795 t more1
13796 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13797 p
13798 n
13799 b repl
13800 :more1
13801 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13802 p
13803 g
13804 s/.\{148\}//
13805 t nl
13806 :delim
13807 h
13808 s/\(.\{148\}\).*/\1/
13809 t more2
13810 s/["\\]/\\&/g; s/^/"/; s/$/"/
13811 p
13812 b
13813 :more2
13814 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13815 p
13816 g
13817 s/.\{148\}//
13818 t delim
13819 ' <conf$$subs.awk | sed '
13820 /^[^""]/{
13821   N
13822   s/\n//
13823 }
13824 ' >>$CONFIG_STATUS || ac_write_fail=1
13825 rm -f conf$$subs.awk
13826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13827 _ACAWK
13828 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13829   for (key in S) S_is_set[key] = 1
13830   FS = "\a"
13831
13832 }
13833 {
13834   line = $ 0
13835   nfields = split(line, field, "@")
13836   substed = 0
13837   len = length(field[1])
13838   for (i = 2; i < nfields; i++) {
13839     key = field[i]
13840     keylen = length(key)
13841     if (S_is_set[key]) {
13842       value = S[key]
13843       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13844       len += length(value) + length(field[++i])
13845       substed = 1
13846     } else
13847       len += 1 + keylen
13848   }
13849
13850   print line
13851 }
13852
13853 _ACAWK
13854 _ACEOF
13855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13856 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13857   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13858 else
13859   cat
13860 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13861   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13862 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13863    { (exit 1); exit 1; }; }
13864 _ACEOF
13865
13866 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13867 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13868 # trailing colons and then remove the whole line if VPATH becomes empty
13869 # (actually we leave an empty line to preserve line numbers).
13870 if test "x$srcdir" = x.; then
13871   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13872 s/:*\$(srcdir):*/:/
13873 s/:*\${srcdir}:*/:/
13874 s/:*@srcdir@:*/:/
13875 s/^\([^=]*=[     ]*\):*/\1/
13876 s/:*$//
13877 s/^[^=]*=[       ]*$//
13878 }'
13879 fi
13880
13881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13882 fi # test -n "$CONFIG_FILES"
13883
13884 # Set up the scripts for CONFIG_HEADERS section.
13885 # No need to generate them if there are no CONFIG_HEADERS.
13886 # This happens for instance with `./config.status Makefile'.
13887 if test -n "$CONFIG_HEADERS"; then
13888 cat >"$tmp/defines.awk" <<\_ACAWK ||
13889 BEGIN {
13890 _ACEOF
13891
13892 # Transform confdefs.h into an awk script `defines.awk', embedded as
13893 # here-document in config.status, that substitutes the proper values into
13894 # config.h.in to produce config.h.
13895
13896 # Create a delimiter string that does not exist in confdefs.h, to ease
13897 # handling of long lines.
13898 ac_delim='%!_!# '
13899 for ac_last_try in false false :; do
13900   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13901   if test -z "$ac_t"; then
13902     break
13903   elif $ac_last_try; then
13904     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13905 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13906    { (exit 1); exit 1; }; }
13907   else
13908     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13909   fi
13910 done
13911
13912 # For the awk script, D is an array of macro values keyed by name,
13913 # likewise P contains macro parameters if any.  Preserve backslash
13914 # newline sequences.
13915
13916 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13917 sed -n '
13918 s/.\{148\}/&'"$ac_delim"'/g
13919 t rset
13920 :rset
13921 s/^[     ]*#[    ]*define[       ][      ]*/ /
13922 t def
13923 d
13924 :def
13925 s/\\$//
13926 t bsnl
13927 s/["\\]/\\&/g
13928 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13929 D["\1"]=" \3"/p
13930 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13931 d
13932 :bsnl
13933 s/["\\]/\\&/g
13934 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13935 D["\1"]=" \3\\\\\\n"\\/p
13936 t cont
13937 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13938 t cont
13939 d
13940 :cont
13941 n
13942 s/.\{148\}/&'"$ac_delim"'/g
13943 t clear
13944 :clear
13945 s/\\$//
13946 t bsnlc
13947 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13948 d
13949 :bsnlc
13950 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13951 b cont
13952 ' <confdefs.h | sed '
13953 s/'"$ac_delim"'/"\\\
13954 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13955
13956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13957   for (key in D) D_is_set[key] = 1
13958   FS = "\a"
13959 }
13960 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13961   line = \$ 0
13962   split(line, arg, " ")
13963   if (arg[1] == "#") {
13964     defundef = arg[2]
13965     mac1 = arg[3]
13966   } else {
13967     defundef = substr(arg[1], 2)
13968     mac1 = arg[2]
13969   }
13970   split(mac1, mac2, "(") #)
13971   macro = mac2[1]
13972   prefix = substr(line, 1, index(line, defundef) - 1)
13973   if (D_is_set[macro]) {
13974     # Preserve the white space surrounding the "#".
13975     print prefix "define", macro P[macro] D[macro]
13976     next
13977   } else {
13978     # Replace #undef with comments.  This is necessary, for example,
13979     # in the case of _POSIX_SOURCE, which is predefined and required
13980     # on some systems where configure will not decide to define it.
13981     if (defundef == "undef") {
13982       print "/*", prefix defundef, macro, "*/"
13983       next
13984     }
13985   }
13986 }
13987 { print }
13988 _ACAWK
13989 _ACEOF
13990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13991   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13992 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13993    { (exit 1); exit 1; }; }
13994 fi # test -n "$CONFIG_HEADERS"
13995
13996
13997 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
13998 shift
13999 for ac_tag
14000 do
14001   case $ac_tag in
14002   :[FHLC]) ac_mode=$ac_tag; continue;;
14003   esac
14004   case $ac_mode$ac_tag in
14005   :[FHL]*:*);;
14006   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14007 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14008    { (exit 1); exit 1; }; };;
14009   :[FH]-) ac_tag=-:-;;
14010   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14011   esac
14012   ac_save_IFS=$IFS
14013   IFS=:
14014   set x $ac_tag
14015   IFS=$ac_save_IFS
14016   shift
14017   ac_file=$1
14018   shift
14019
14020   case $ac_mode in
14021   :L) ac_source=$1;;
14022   :[FH])
14023     ac_file_inputs=
14024     for ac_f
14025     do
14026       case $ac_f in
14027       -) ac_f="$tmp/stdin";;
14028       *) # Look for the file first in the build tree, then in the source tree
14029          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14030          # because $ac_f cannot contain `:'.
14031          test -f "$ac_f" ||
14032            case $ac_f in
14033            [\\/$]*) false;;
14034            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14035            esac ||
14036            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14037 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14038    { (exit 1); exit 1; }; };;
14039       esac
14040       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14041       ac_file_inputs="$ac_file_inputs '$ac_f'"
14042     done
14043
14044     # Let's still pretend it is `configure' which instantiates (i.e., don't
14045     # use $as_me), people would be surprised to read:
14046     #    /* config.h.  Generated by config.status.  */
14047     configure_input='Generated from '`
14048           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14049         `' by configure.'
14050     if test x"$ac_file" != x-; then
14051       configure_input="$ac_file.  $configure_input"
14052       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14053 $as_echo "$as_me: creating $ac_file" >&6;}
14054     fi
14055     # Neutralize special characters interpreted by sed in replacement strings.
14056     case $configure_input in #(
14057     *\&* | *\|* | *\\* )
14058        ac_sed_conf_input=`$as_echo "$configure_input" |
14059        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14060     *) ac_sed_conf_input=$configure_input;;
14061     esac
14062
14063     case $ac_tag in
14064     *:-:* | *:-) cat >"$tmp/stdin" \
14065       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14066 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14067    { (exit 1); exit 1; }; } ;;
14068     esac
14069     ;;
14070   esac
14071
14072   ac_dir=`$as_dirname -- "$ac_file" ||
14073 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14074          X"$ac_file" : 'X\(//\)[^/]' \| \
14075          X"$ac_file" : 'X\(//\)$' \| \
14076          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14077 $as_echo X"$ac_file" |
14078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14079             s//\1/
14080             q
14081           }
14082           /^X\(\/\/\)[^/].*/{
14083             s//\1/
14084             q
14085           }
14086           /^X\(\/\/\)$/{
14087             s//\1/
14088             q
14089           }
14090           /^X\(\/\).*/{
14091             s//\1/
14092             q
14093           }
14094           s/.*/./; q'`
14095   { as_dir="$ac_dir"
14096   case $as_dir in #(
14097   -*) as_dir=./$as_dir;;
14098   esac
14099   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14100     as_dirs=
14101     while :; do
14102       case $as_dir in #(
14103       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14104       *) as_qdir=$as_dir;;
14105       esac
14106       as_dirs="'$as_qdir' $as_dirs"
14107       as_dir=`$as_dirname -- "$as_dir" ||
14108 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14109          X"$as_dir" : 'X\(//\)[^/]' \| \
14110          X"$as_dir" : 'X\(//\)$' \| \
14111          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14112 $as_echo X"$as_dir" |
14113     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14114             s//\1/
14115             q
14116           }
14117           /^X\(\/\/\)[^/].*/{
14118             s//\1/
14119             q
14120           }
14121           /^X\(\/\/\)$/{
14122             s//\1/
14123             q
14124           }
14125           /^X\(\/\).*/{
14126             s//\1/
14127             q
14128           }
14129           s/.*/./; q'`
14130       test -d "$as_dir" && break
14131     done
14132     test -z "$as_dirs" || eval "mkdir $as_dirs"
14133   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14134 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14135    { (exit 1); exit 1; }; }; }
14136   ac_builddir=.
14137
14138 case "$ac_dir" in
14139 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14140 *)
14141   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14142   # A ".." for each directory in $ac_dir_suffix.
14143   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14144   case $ac_top_builddir_sub in
14145   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14146   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14147   esac ;;
14148 esac
14149 ac_abs_top_builddir=$ac_pwd
14150 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14151 # for backward compatibility:
14152 ac_top_builddir=$ac_top_build_prefix
14153
14154 case $srcdir in
14155   .)  # We are building in place.
14156     ac_srcdir=.
14157     ac_top_srcdir=$ac_top_builddir_sub
14158     ac_abs_top_srcdir=$ac_pwd ;;
14159   [\\/]* | ?:[\\/]* )  # Absolute name.
14160     ac_srcdir=$srcdir$ac_dir_suffix;
14161     ac_top_srcdir=$srcdir
14162     ac_abs_top_srcdir=$srcdir ;;
14163   *) # Relative name.
14164     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14165     ac_top_srcdir=$ac_top_build_prefix$srcdir
14166     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14167 esac
14168 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14169
14170
14171   case $ac_mode in
14172   :F)
14173   #
14174   # CONFIG_FILE
14175   #
14176
14177 _ACEOF
14178
14179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14180 # If the template does not know about datarootdir, expand it.
14181 # FIXME: This hack should be removed a few years after 2.60.
14182 ac_datarootdir_hack=; ac_datarootdir_seen=
14183
14184 ac_sed_dataroot='
14185 /datarootdir/ {
14186   p
14187   q
14188 }
14189 /@datadir@/p
14190 /@docdir@/p
14191 /@infodir@/p
14192 /@localedir@/p
14193 /@mandir@/p
14194 '
14195 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14196 *datarootdir*) ac_datarootdir_seen=yes;;
14197 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14198   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14199 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14200 _ACEOF
14201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14202   ac_datarootdir_hack='
14203   s&@datadir@&$datadir&g
14204   s&@docdir@&$docdir&g
14205   s&@infodir@&$infodir&g
14206   s&@localedir@&$localedir&g
14207   s&@mandir@&$mandir&g
14208     s&\\\${datarootdir}&$datarootdir&g' ;;
14209 esac
14210 _ACEOF
14211
14212 # Neutralize VPATH when `$srcdir' = `.'.
14213 # Shell code in configure.ac might set extrasub.
14214 # FIXME: do we really want to maintain this feature?
14215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14216 ac_sed_extra="$ac_vpsub
14217 $extrasub
14218 _ACEOF
14219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14220 :t
14221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14222 s|@configure_input@|$ac_sed_conf_input|;t t
14223 s&@top_builddir@&$ac_top_builddir_sub&;t t
14224 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14225 s&@srcdir@&$ac_srcdir&;t t
14226 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14227 s&@top_srcdir@&$ac_top_srcdir&;t t
14228 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14229 s&@builddir@&$ac_builddir&;t t
14230 s&@abs_builddir@&$ac_abs_builddir&;t t
14231 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14232 $ac_datarootdir_hack
14233 "
14234 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14235   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14236 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14237    { (exit 1); exit 1; }; }
14238
14239 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14240   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14241   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14242   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14243 which seems to be undefined.  Please make sure it is defined." >&5
14244 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14245 which seems to be undefined.  Please make sure it is defined." >&2;}
14246
14247   rm -f "$tmp/stdin"
14248   case $ac_file in
14249   -) cat "$tmp/out" && rm -f "$tmp/out";;
14250   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14251   esac \
14252   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14253 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14254    { (exit 1); exit 1; }; }
14255  ;;
14256   :H)
14257   #
14258   # CONFIG_HEADER
14259   #
14260   if test x"$ac_file" != x-; then
14261     {
14262       $as_echo "/* $configure_input  */" \
14263       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14264     } >"$tmp/config.h" \
14265       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14266 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14267    { (exit 1); exit 1; }; }
14268     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14269       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14270 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14271     else
14272       rm -f "$ac_file"
14273       mv "$tmp/config.h" "$ac_file" \
14274         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14275 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14276    { (exit 1); exit 1; }; }
14277     fi
14278   else
14279     $as_echo "/* $configure_input  */" \
14280       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14281       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14282 $as_echo "$as_me: error: could not create -" >&2;}
14283    { (exit 1); exit 1; }; }
14284   fi
14285  ;;
14286
14287
14288   esac
14289
14290 done # for ac_tag
14291
14292
14293 { (exit 0); exit 0; }
14294 _ACEOF
14295 chmod +x $CONFIG_STATUS
14296 ac_clean_files=$ac_clean_files_save
14297
14298 test $ac_write_fail = 0 ||
14299   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14300 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14301    { (exit 1); exit 1; }; }
14302
14303
14304 # configure is writing to config.log, and then calls config.status.
14305 # config.status does its own redirection, appending to config.log.
14306 # Unfortunately, on DOS this fails, as config.log is still kept open
14307 # by configure, so config.status won't be able to write to it; its
14308 # output is simply discarded.  So we exec the FD to /dev/null,
14309 # effectively closing config.log, so it can be properly (re)opened and
14310 # appended to by config.status.  When coming back to configure, we
14311 # need to make the FD available again.
14312 if test "$no_create" != yes; then
14313   ac_cs_success=:
14314   ac_config_status_args=
14315   test "$silent" = yes &&
14316     ac_config_status_args="$ac_config_status_args --quiet"
14317   exec 5>/dev/null
14318   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14319   exec 5>>config.log
14320   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14321   # would make configure fail if this is the last instruction.
14322   $ac_cs_success || { (exit 1); exit 1; }
14323 fi
14324 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14325   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14326 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14327 fi
14328
14329
14330     if test -n "$OPTIONAL"; then
14331         echo
14332         echo "WARNING: Please consider installing optional programs: $OPTIONAL"
14333     fi
14334
14335     if test -n "$REQUIRED"; then
14336         echo
14337         echo "ERROR: Please install required programs: $REQUIRED"
14338     fi
14339
14340     if test -n "$UNSUPPORTED"; then
14341         echo
14342         echo "ERROR: Please use older version of programs: $UNSUPPORTED"
14343     fi
14344
14345     if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
14346         echo
14347         echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
14348         if test -f config.cache ; then
14349             echo "Remove config.cache before rerunning ./configure"
14350         fi
14351     fi
14352
14353     if test -n "$REQUIRED$UNSUPPORTED"; then
14354         rm -f $srcdir/GNUmakefile
14355         exit 1
14356     fi
14357
14358     # regular in-place build
14359     # test for srcdir_build = yes ?
14360     if test "$srcdir_build" = "yes"; then
14361         rm -f $srcdir/GNUmakefile
14362         cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
14363         chmod 444 $srcdir/GNUmakefile
14364     else
14365         if test -f $srcdir/GNUmakefile; then
14366             cat <<EOF
14367 Source directory already configured.  Please clean the source directory
14368
14369      make -C $srcdir distclean
14370
14371 and rerun configure.
14372 EOF
14373             exit 2
14374         fi
14375
14376         for d in 2 3 4 ; do
14377             for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name GNUmakefile`; do
14378                 mkdir -p $(dirname $mf)
14379                 cat <<EOF | $PYTHON -  > $mf
14380 print 'depth=' + ('../' * ( $d-1 ) )
14381 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
14382 print 'include \$(configure-srcdir)/$mf'
14383 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
14384 EOF
14385             done
14386             for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
14387                 mkdir -p $(dirname $mf)
14388                 cat <<EOF | $PYTHON -  > $mf
14389 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
14390 print 'include \$(configure-srcdir)/$mf'
14391 EOF
14392             done
14393         done
14394
14395
14396         cat <<EOF > GNUmakefile
14397 depth = .
14398 include config\$(if \$(conf),-\$(conf),).make
14399 include \$(configure-srcdir)/GNUmakefile.in
14400 EOF
14401
14402     fi
14403
14404
14405 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
14406
14407 if make top-doc 1>/dev/null 2>&1; then
14408     rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt .
14409     rm -f README.txt && ln Documentation/topdocs/out/README.txt .
14410 fi
14411
14412 cat <<EOF
14413
14414 Type:
14415     make$mc all       to build LilyPond
14416     make$mc install   to install LilyPond
14417     make$mc help      to see all possible targets
14418
14419 Edit local.make for local Makefile overrides.
14420
14421
14422 EOF