]> git.donarmstrong.com Git - lilypond.git/blob - configure
Merge tag 'upstream/2.16.0' into debian
[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 CXXABI_LIBS
668 GUILE_LDFLAGS
669 GUILE_CFLAGS
670 GUILE_CONFIG
671 KPSEWHICH
672 MFMODE
673 METAPOST
674 METAFONT
675 MSGFMT
676 FLEXLEXER_FILE
677 FLEX
678 BISON
679 YFLAGS
680 YACC
681 RANLIB
682 AR
683 EGREP
684 GREP
685 CXXCPP
686 ac_ct_CXX
687 CXXFLAGS
688 CXX
689 NCSB_DIR
690 NCSB_SOURCE_FILES
691 FCLIST
692 EXTRA_LIBS
693 DEFINES
694 cross_compiling
695 LD
696 OBJEXT
697 EXEEXT
698 ac_ct_CC
699 CPPFLAGS
700 LDFLAGS
701 CFLAGS
702 CC
703 LINK_GXX_STATICALLY
704 DOCUMENTATION
705 build_package_libdir
706 build_package_datadir
707 ROOTSEP
708 PATHSEP
709 DIRSEP
710 LN_S
711 LN
712 ZIP
713 program_suffix
714 program_prefix
715 PYTHON
716 BASH
717 KSH
718 TAR
719 FIND
720 MAKE
721 host_os
722 host_vendor
723 host_cpu
724 host
725 build_os
726 build_vendor
727 build_cpu
728 build
729 CONFIGSUFFIX
730 AUTOGENERATE
731 package_depth
732 TOPLEVEL_VERSION
733 PATCH_LEVEL
734 MICRO_VERSION
735 MINOR_VERSION
736 MAJOR_VERSION
737 VERSION
738 PACKAGE
739 package
740 stepmake
741 srcdir
742 ugh_ugh_autoconf250_builddir
743 target_alias
744 host_alias
745 build_alias
746 LIBS
747 ECHO_T
748 ECHO_N
749 ECHO_C
750 DEFS
751 mandir
752 localedir
753 libdir
754 psdir
755 pdfdir
756 dvidir
757 htmldir
758 infodir
759 docdir
760 oldincludedir
761 includedir
762 localstatedir
763 sharedstatedir
764 sysconfdir
765 datadir
766 datarootdir
767 libexecdir
768 sbindir
769 bindir
770 program_transform_name
771 prefix
772 exec_prefix
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_config
784 enable_documentation
785 with_ncsb_dir
786 enable_relocation
787 enable_rpath
788 enable_static_gxx
789 enable_debugging
790 enable_optimising
791 enable_profiling
792 enable_pipe
793 with_localedir
794 with_lang
795 with_python_include
796 with_python_lib
797 '
798       ac_precious_vars='build_alias
799 host_alias
800 target_alias
801 CC
802 CFLAGS
803 LDFLAGS
804 LIBS
805 CPPFLAGS
806 CXX
807 CXXFLAGS
808 CCC
809 CXXCPP
810 YACC
811 YFLAGS'
812
813
814 # Initialize some variables set by options.
815 ac_init_help=
816 ac_init_version=false
817 ac_unrecognized_opts=
818 ac_unrecognized_sep=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
821 cache_file=/dev/null
822 exec_prefix=NONE
823 no_create=
824 no_recursion=
825 prefix=NONE
826 program_prefix=NONE
827 program_suffix=NONE
828 program_transform_name=s,x,x,
829 silent=
830 site=
831 srcdir=
832 verbose=
833 x_includes=NONE
834 x_libraries=NONE
835
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE}'
853 infodir='${datarootdir}/info'
854 htmldir='${docdir}'
855 dvidir='${docdir}'
856 pdfdir='${docdir}'
857 psdir='${docdir}'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
861
862 ac_prev=
863 ac_dashdash=
864 for ac_option
865 do
866   # If the previous option needs an argument, assign it.
867   if test -n "$ac_prev"; then
868     eval $ac_prev=\$ac_option
869     ac_prev=
870     continue
871   fi
872
873   case $ac_option in
874   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875   *)    ac_optarg=yes ;;
876   esac
877
878   # Accept the important Cygnus configure options, so we can diagnose typos.
879
880   case $ac_dashdash$ac_option in
881   --)
882     ac_dashdash=yes ;;
883
884   -bindir | --bindir | --bindi | --bind | --bin | --bi)
885     ac_prev=bindir ;;
886   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887     bindir=$ac_optarg ;;
888
889   -build | --build | --buil | --bui | --bu)
890     ac_prev=build_alias ;;
891   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892     build_alias=$ac_optarg ;;
893
894   -cache-file | --cache-file | --cache-fil | --cache-fi \
895   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896     ac_prev=cache_file ;;
897   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899     cache_file=$ac_optarg ;;
900
901   --config-cache | -C)
902     cache_file=config.cache ;;
903
904   -datadir | --datadir | --datadi | --datad)
905     ac_prev=datadir ;;
906   -datadir=* | --datadir=* | --datadi=* | --datad=*)
907     datadir=$ac_optarg ;;
908
909   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910   | --dataroo | --dataro | --datar)
911     ac_prev=datarootdir ;;
912   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914     datarootdir=$ac_optarg ;;
915
916   -disable-* | --disable-*)
917     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918     # Reject names that are not valid shell variable names.
919     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
921    { (exit 1); exit 1; }; }
922     ac_useropt_orig=$ac_useropt
923     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924     case $ac_user_opts in
925       *"
926 "enable_$ac_useropt"
927 "*) ;;
928       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929          ac_unrecognized_sep=', ';;
930     esac
931     eval enable_$ac_useropt=no ;;
932
933   -docdir | --docdir | --docdi | --doc | --do)
934     ac_prev=docdir ;;
935   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936     docdir=$ac_optarg ;;
937
938   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939     ac_prev=dvidir ;;
940   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941     dvidir=$ac_optarg ;;
942
943   -enable-* | --enable-*)
944     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945     # Reject names that are not valid shell variable names.
946     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
948    { (exit 1); exit 1; }; }
949     ac_useropt_orig=$ac_useropt
950     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951     case $ac_user_opts in
952       *"
953 "enable_$ac_useropt"
954 "*) ;;
955       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956          ac_unrecognized_sep=', ';;
957     esac
958     eval enable_$ac_useropt=\$ac_optarg ;;
959
960   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962   | --exec | --exe | --ex)
963     ac_prev=exec_prefix ;;
964   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966   | --exec=* | --exe=* | --ex=*)
967     exec_prefix=$ac_optarg ;;
968
969   -gas | --gas | --ga | --g)
970     # Obsolete; use --with-gas.
971     with_gas=yes ;;
972
973   -help | --help | --hel | --he | -h)
974     ac_init_help=long ;;
975   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976     ac_init_help=recursive ;;
977   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978     ac_init_help=short ;;
979
980   -host | --host | --hos | --ho)
981     ac_prev=host_alias ;;
982   -host=* | --host=* | --hos=* | --ho=*)
983     host_alias=$ac_optarg ;;
984
985   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986     ac_prev=htmldir ;;
987   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988   | --ht=*)
989     htmldir=$ac_optarg ;;
990
991   -includedir | --includedir | --includedi | --included | --include \
992   | --includ | --inclu | --incl | --inc)
993     ac_prev=includedir ;;
994   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995   | --includ=* | --inclu=* | --incl=* | --inc=*)
996     includedir=$ac_optarg ;;
997
998   -infodir | --infodir | --infodi | --infod | --info | --inf)
999     ac_prev=infodir ;;
1000   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001     infodir=$ac_optarg ;;
1002
1003   -libdir | --libdir | --libdi | --libd)
1004     ac_prev=libdir ;;
1005   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006     libdir=$ac_optarg ;;
1007
1008   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009   | --libexe | --libex | --libe)
1010     ac_prev=libexecdir ;;
1011   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012   | --libexe=* | --libex=* | --libe=*)
1013     libexecdir=$ac_optarg ;;
1014
1015   -localedir | --localedir | --localedi | --localed | --locale)
1016     ac_prev=localedir ;;
1017   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018     localedir=$ac_optarg ;;
1019
1020   -localstatedir | --localstatedir | --localstatedi | --localstated \
1021   | --localstate | --localstat | --localsta | --localst | --locals)
1022     ac_prev=localstatedir ;;
1023   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025     localstatedir=$ac_optarg ;;
1026
1027   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028     ac_prev=mandir ;;
1029   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030     mandir=$ac_optarg ;;
1031
1032   -nfp | --nfp | --nf)
1033     # Obsolete; use --without-fp.
1034     with_fp=no ;;
1035
1036   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037   | --no-cr | --no-c | -n)
1038     no_create=yes ;;
1039
1040   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042     no_recursion=yes ;;
1043
1044   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046   | --oldin | --oldi | --old | --ol | --o)
1047     ac_prev=oldincludedir ;;
1048   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051     oldincludedir=$ac_optarg ;;
1052
1053   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054     ac_prev=prefix ;;
1055   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056     prefix=$ac_optarg ;;
1057
1058   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059   | --program-pre | --program-pr | --program-p)
1060     ac_prev=program_prefix ;;
1061   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063     program_prefix=$ac_optarg ;;
1064
1065   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066   | --program-suf | --program-su | --program-s)
1067     ac_prev=program_suffix ;;
1068   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070     program_suffix=$ac_optarg ;;
1071
1072   -program-transform-name | --program-transform-name \
1073   | --program-transform-nam | --program-transform-na \
1074   | --program-transform-n | --program-transform- \
1075   | --program-transform | --program-transfor \
1076   | --program-transfo | --program-transf \
1077   | --program-trans | --program-tran \
1078   | --progr-tra | --program-tr | --program-t)
1079     ac_prev=program_transform_name ;;
1080   -program-transform-name=* | --program-transform-name=* \
1081   | --program-transform-nam=* | --program-transform-na=* \
1082   | --program-transform-n=* | --program-transform-=* \
1083   | --program-transform=* | --program-transfor=* \
1084   | --program-transfo=* | --program-transf=* \
1085   | --program-trans=* | --program-tran=* \
1086   | --progr-tra=* | --program-tr=* | --program-t=*)
1087     program_transform_name=$ac_optarg ;;
1088
1089   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090     ac_prev=pdfdir ;;
1091   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092     pdfdir=$ac_optarg ;;
1093
1094   -psdir | --psdir | --psdi | --psd | --ps)
1095     ac_prev=psdir ;;
1096   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097     psdir=$ac_optarg ;;
1098
1099   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100   | -silent | --silent | --silen | --sile | --sil)
1101     silent=yes ;;
1102
1103   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104     ac_prev=sbindir ;;
1105   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106   | --sbi=* | --sb=*)
1107     sbindir=$ac_optarg ;;
1108
1109   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111   | --sharedst | --shareds | --shared | --share | --shar \
1112   | --sha | --sh)
1113     ac_prev=sharedstatedir ;;
1114   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117   | --sha=* | --sh=*)
1118     sharedstatedir=$ac_optarg ;;
1119
1120   -site | --site | --sit)
1121     ac_prev=site ;;
1122   -site=* | --site=* | --sit=*)
1123     site=$ac_optarg ;;
1124
1125   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126     ac_prev=srcdir ;;
1127   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128     srcdir=$ac_optarg ;;
1129
1130   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131   | --syscon | --sysco | --sysc | --sys | --sy)
1132     ac_prev=sysconfdir ;;
1133   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135     sysconfdir=$ac_optarg ;;
1136
1137   -target | --target | --targe | --targ | --tar | --ta | --t)
1138     ac_prev=target_alias ;;
1139   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140     target_alias=$ac_optarg ;;
1141
1142   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143     verbose=yes ;;
1144
1145   -version | --version | --versio | --versi | --vers | -V)
1146     ac_init_version=: ;;
1147
1148   -with-* | --with-*)
1149     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150     # Reject names that are not valid shell variable names.
1151     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1153    { (exit 1); exit 1; }; }
1154     ac_useropt_orig=$ac_useropt
1155     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156     case $ac_user_opts in
1157       *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161          ac_unrecognized_sep=', ';;
1162     esac
1163     eval with_$ac_useropt=\$ac_optarg ;;
1164
1165   -without-* | --without-*)
1166     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167     # Reject names that are not valid shell variable names.
1168     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1170    { (exit 1); exit 1; }; }
1171     ac_useropt_orig=$ac_useropt
1172     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173     case $ac_user_opts in
1174       *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178          ac_unrecognized_sep=', ';;
1179     esac
1180     eval with_$ac_useropt=no ;;
1181
1182   --x)
1183     # Obsolete; use --with-x.
1184     with_x=yes ;;
1185
1186   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187   | --x-incl | --x-inc | --x-in | --x-i)
1188     ac_prev=x_includes ;;
1189   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191     x_includes=$ac_optarg ;;
1192
1193   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195     ac_prev=x_libraries ;;
1196   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198     x_libraries=$ac_optarg ;;
1199
1200   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1201 Try \`$0 --help' for more information." >&2
1202    { (exit 1); exit 1; }; }
1203     ;;
1204
1205   *=*)
1206     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207     # Reject names that are not valid shell variable names.
1208     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1209       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1210    { (exit 1); exit 1; }; }
1211     eval $ac_envvar=\$ac_optarg
1212     export $ac_envvar ;;
1213
1214   *)
1215     # FIXME: should be removed in autoconf 3.0.
1216     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1220     ;;
1221
1222   esac
1223 done
1224
1225 if test -n "$ac_prev"; then
1226   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1228    { (exit 1); exit 1; }; }
1229 fi
1230
1231 if test -n "$ac_unrecognized_opts"; then
1232   case $enable_option_checking in
1233     no) ;;
1234     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1235    { (exit 1); exit 1; }; } ;;
1236     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237   esac
1238 fi
1239
1240 # Check all directory arguments for consistency.
1241 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242                 datadir sysconfdir sharedstatedir localstatedir includedir \
1243                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244                 libdir localedir mandir
1245 do
1246   eval ac_val=\$$ac_var
1247   # Remove trailing slashes.
1248   case $ac_val in
1249     */ )
1250       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251       eval $ac_var=\$ac_val;;
1252   esac
1253   # Be sure to have absolute directory names.
1254   case $ac_val in
1255     [\\/$]* | ?:[\\/]* )  continue;;
1256     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257   esac
1258   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1259    { (exit 1); exit 1; }; }
1260 done
1261
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1265 build=$build_alias
1266 host=$host_alias
1267 target=$target_alias
1268
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x; then
1271   if test "x$build_alias" = x; then
1272     cross_compiling=maybe
1273     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1274     If a cross compiler is detected then cross compile mode will be used." >&2
1275   elif test "x$build_alias" != "x$host_alias"; then
1276     cross_compiling=yes
1277   fi
1278 fi
1279
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283 test "$silent" = yes && exec 6>/dev/null
1284
1285
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1290    { (exit 1); exit 1; }; }
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1293    { (exit 1); exit 1; }; }
1294
1295
1296 # Find the source files, if location was not specified.
1297 if test -z "$srcdir"; then
1298   ac_srcdir_defaulted=yes
1299   # Try the directory containing this script, then the parent directory.
1300   ac_confdir=`$as_dirname -- "$as_myself" ||
1301 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1302          X"$as_myself" : 'X\(//\)[^/]' \| \
1303          X"$as_myself" : 'X\(//\)$' \| \
1304          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1305 $as_echo X"$as_myself" |
1306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307             s//\1/
1308             q
1309           }
1310           /^X\(\/\/\)[^/].*/{
1311             s//\1/
1312             q
1313           }
1314           /^X\(\/\/\)$/{
1315             s//\1/
1316             q
1317           }
1318           /^X\(\/\).*/{
1319             s//\1/
1320             q
1321           }
1322           s/.*/./; q'`
1323   srcdir=$ac_confdir
1324   if test ! -r "$srcdir/$ac_unique_file"; then
1325     srcdir=..
1326   fi
1327 else
1328   ac_srcdir_defaulted=no
1329 fi
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1332   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1333    { (exit 1); exit 1; }; }
1334 fi
1335 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1336 ac_abs_confdir=`(
1337         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1338    { (exit 1); exit 1; }; }
1339         pwd)`
1340 # When building in place, set srcdir=.
1341 if test "$ac_abs_confdir" = "$ac_pwd"; then
1342   srcdir=.
1343 fi
1344 # Remove unnecessary trailing slashes from srcdir.
1345 # Double slashes in file names in object file debugging info
1346 # mess up M-x gdb in Emacs.
1347 case $srcdir in
1348 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349 esac
1350 for ac_var in $ac_precious_vars; do
1351   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1352   eval ac_env_${ac_var}_value=\$${ac_var}
1353   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1354   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1355 done
1356
1357 #
1358 # Report the --help message.
1359 #
1360 if test "$ac_init_help" = "long"; then
1361   # Omit some internal or obsolete options to make the list less imposing.
1362   # This message is too long to be a string in the A/UX 3.1 sh.
1363   cat <<_ACEOF
1364 \`configure' configures this package to adapt to many kinds of systems.
1365
1366 Usage: $0 [OPTION]... [VAR=VALUE]...
1367
1368 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1369 VAR=VALUE.  See below for descriptions of some of the useful variables.
1370
1371 Defaults for the options are specified in brackets.
1372
1373 Configuration:
1374   -h, --help              display this help and exit
1375       --help=short        display options specific to this package
1376       --help=recursive    display the short help of all the included packages
1377   -V, --version           display version information and exit
1378   -q, --quiet, --silent   do not print \`checking...' messages
1379       --cache-file=FILE   cache test results in FILE [disabled]
1380   -C, --config-cache      alias for \`--cache-file=config.cache'
1381   -n, --no-create         do not create output files
1382       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1383
1384 Installation directories:
1385   --prefix=PREFIX         install architecture-independent files in PREFIX
1386                           [$ac_default_prefix]
1387   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1388                           [PREFIX]
1389
1390 By default, \`make install' will install all the files in
1391 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1392 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1393 for instance \`--prefix=\$HOME'.
1394
1395 For better control, use the options below.
1396
1397 Fine tuning of the installation directories:
1398   --bindir=DIR            user executables [EPREFIX/bin]
1399   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1400   --libexecdir=DIR        program executables [EPREFIX/libexec]
1401   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1402   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1403   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1404   --libdir=DIR            object code libraries [EPREFIX/lib]
1405   --includedir=DIR        C header files [PREFIX/include]
1406   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1407   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1408   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1409   --infodir=DIR           info documentation [DATAROOTDIR/info]
1410   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1411   --mandir=DIR            man documentation [DATAROOTDIR/man]
1412   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1413   --htmldir=DIR           html documentation [DOCDIR]
1414   --dvidir=DIR            dvi documentation [DOCDIR]
1415   --pdfdir=DIR            pdf documentation [DOCDIR]
1416   --psdir=DIR             ps documentation [DOCDIR]
1417 _ACEOF
1418
1419   cat <<\_ACEOF
1420
1421 System types:
1422   --build=BUILD     configure for building on BUILD [guessed]
1423   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1424 _ACEOF
1425 fi
1426
1427 if test -n "$ac_init_help"; then
1428
1429   cat <<\_ACEOF
1430
1431 Optional Features:
1432   --disable-option-checking  ignore unrecognized --enable/--with options
1433   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1434   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1435   --enable-config=CONF    put settings in config-CONF.make and config-CONF.h;
1436                           do `make conf=CONF' to get output in ./out-CONF
1437   --enable-documentation  build Documentation. Default: on
1438   --enable-relocation     compile with dynamic relocation. Default: off
1439   --enable-rpath          hardcode runtime library path. Default: off
1440   --enable-static-gxx     link libstdc++.a statically. Default: off
1441   --enable-debugging      compile with debugging info. Default: on
1442   --enable-optimising     compile with optimising. Default: on
1443   --enable-profiling      compile with gprof support. Default: off
1444   --enable-pipe           compile with -pipe. Default: on
1445
1446 Optional Packages:
1447   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1448   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1449   --with-ncsb-dir=DIR     location of Century Schoolbook fonts.
1450   --with-localedir=DIR    location of locales. Default: PREFIX/share/locale
1451   --with-lang=LANG        use LANG as language to emit messages
1452   --with-python-include=DIR
1453                           location of the python include dir
1454   --with-python-lib=NAME  name of the python lib
1455
1456 Some influential environment variables:
1457   CC          C compiler command
1458   CFLAGS      C compiler flags
1459   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1460               nonstandard directory <lib dir>
1461   LIBS        libraries to pass to the linker, e.g. -l<library>
1462   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1463               you have headers in a nonstandard directory <include dir>
1464   CXX         C++ compiler command
1465   CXXFLAGS    C++ compiler flags
1466   CXXCPP      C++ preprocessor
1467   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1468               the first program found out of: `bison -y', `byacc', `yacc'.
1469   YFLAGS      The list of arguments that will be passed by default to $YACC.
1470               This script will default YFLAGS to the empty string to avoid a
1471               default value of `-d' given by some make applications.
1472
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1475
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481   # If there are subdirs, report their specific --help.
1482   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483     test -d "$ac_dir" ||
1484       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485       continue
1486     ac_builddir=.
1487
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *)
1491   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492   # A ".." for each directory in $ac_dir_suffix.
1493   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494   case $ac_top_builddir_sub in
1495   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497   esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1503
1504 case $srcdir in
1505   .)  # We are building in place.
1506     ac_srcdir=.
1507     ac_top_srcdir=$ac_top_builddir_sub
1508     ac_abs_top_srcdir=$ac_pwd ;;
1509   [\\/]* | ?:[\\/]* )  # Absolute name.
1510     ac_srcdir=$srcdir$ac_dir_suffix;
1511     ac_top_srcdir=$srcdir
1512     ac_abs_top_srcdir=$srcdir ;;
1513   *) # Relative name.
1514     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515     ac_top_srcdir=$ac_top_build_prefix$srcdir
1516     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520     cd "$ac_dir" || { ac_status=$?; continue; }
1521     # Check for guested configure.
1522     if test -f "$ac_srcdir/configure.gnu"; then
1523       echo &&
1524       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525     elif test -f "$ac_srcdir/configure"; then
1526       echo &&
1527       $SHELL "$ac_srcdir/configure" --help=recursive
1528     else
1529       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530     fi || ac_status=$?
1531     cd "$ac_pwd" || { ac_status=$?; break; }
1532   done
1533 fi
1534
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537   cat <<\_ACEOF
1538 configure
1539 generated by GNU Autoconf 2.63
1540
1541 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1542 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1543 This configure script is free software; the Free Software Foundation
1544 gives unlimited permission to copy, distribute and modify it.
1545 _ACEOF
1546   exit
1547 fi
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1551
1552 It was created by $as_me, which was
1553 generated by GNU Autoconf 2.63.  Invocation command line was
1554
1555   $ $0 $@
1556
1557 _ACEOF
1558 exec 5>>config.log
1559 {
1560 cat <<_ASUNAME
1561 ## --------- ##
1562 ## Platform. ##
1563 ## --------- ##
1564
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1573
1574 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1575 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1578 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1579 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1580 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1581
1582 _ASUNAME
1583
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587   IFS=$as_save_IFS
1588   test -z "$as_dir" && as_dir=.
1589   $as_echo "PATH: $as_dir"
1590 done
1591 IFS=$as_save_IFS
1592
1593 } >&5
1594
1595 cat >&5 <<_ACEOF
1596
1597
1598 ## ----------- ##
1599 ## Core tests. ##
1600 ## ----------- ##
1601
1602 _ACEOF
1603
1604
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_configure_args=
1611 ac_configure_args0=
1612 ac_configure_args1=
1613 ac_must_keep_next=false
1614 for ac_pass in 1 2
1615 do
1616   for ac_arg
1617   do
1618     case $ac_arg in
1619     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621     | -silent | --silent | --silen | --sile | --sil)
1622       continue ;;
1623     *\'*)
1624       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625     esac
1626     case $ac_pass in
1627     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1628     2)
1629       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630       if test $ac_must_keep_next = true; then
1631         ac_must_keep_next=false # Got value, back to normal.
1632       else
1633         case $ac_arg in
1634           *=* | --config-cache | -C | -disable-* | --disable-* \
1635           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637           | -with-* | --with-* | -without-* | --without-* | --x)
1638             case "$ac_configure_args0 " in
1639               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640             esac
1641             ;;
1642           -* ) ac_must_keep_next=true ;;
1643         esac
1644       fi
1645       ac_configure_args="$ac_configure_args '$ac_arg'"
1646       ;;
1647     esac
1648   done
1649 done
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1652
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log.  We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659   # Save into config.log some information that might help in debugging.
1660   {
1661     echo
1662
1663     cat <<\_ASBOX
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1667 _ASBOX
1668     echo
1669     # The following way of writing the cache mishandles newlines in values,
1670 (
1671   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672     eval ac_val=\$$ac_var
1673     case $ac_val in #(
1674     *${as_nl}*)
1675       case $ac_var in #(
1676       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1677 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1678       esac
1679       case $ac_var in #(
1680       _ | IFS | as_nl) ;; #(
1681       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1682       *) $as_unset $ac_var ;;
1683       esac ;;
1684     esac
1685   done
1686   (set) 2>&1 |
1687     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688     *${as_nl}ac_space=\ *)
1689       sed -n \
1690         "s/'\''/'\''\\\\'\'''\''/g;
1691           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692       ;; #(
1693     *)
1694       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1695       ;;
1696     esac |
1697     sort
1698 )
1699     echo
1700
1701     cat <<\_ASBOX
1702 ## ----------------- ##
1703 ## Output variables. ##
1704 ## ----------------- ##
1705 _ASBOX
1706     echo
1707     for ac_var in $ac_subst_vars
1708     do
1709       eval ac_val=\$$ac_var
1710       case $ac_val in
1711       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712       esac
1713       $as_echo "$ac_var='\''$ac_val'\''"
1714     done | sort
1715     echo
1716
1717     if test -n "$ac_subst_files"; then
1718       cat <<\_ASBOX
1719 ## ------------------- ##
1720 ## File substitutions. ##
1721 ## ------------------- ##
1722 _ASBOX
1723       echo
1724       for ac_var in $ac_subst_files
1725       do
1726         eval ac_val=\$$ac_var
1727         case $ac_val in
1728         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729         esac
1730         $as_echo "$ac_var='\''$ac_val'\''"
1731       done | sort
1732       echo
1733     fi
1734
1735     if test -s confdefs.h; then
1736       cat <<\_ASBOX
1737 ## ----------- ##
1738 ## confdefs.h. ##
1739 ## ----------- ##
1740 _ASBOX
1741       echo
1742       cat confdefs.h
1743       echo
1744     fi
1745     test "$ac_signal" != 0 &&
1746       $as_echo "$as_me: caught signal $ac_signal"
1747     $as_echo "$as_me: exit $exit_status"
1748   } >&5
1749   rm -f core *.core core.conftest.* &&
1750     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1751     exit $exit_status
1752 ' 0
1753 for ac_signal in 1 2 13 15; do
1754   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1755 done
1756 ac_signal=0
1757
1758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1759 rm -f -r conftest* confdefs.h
1760
1761 # Predefined preprocessor variables.
1762
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_NAME "$PACKAGE_NAME"
1765 _ACEOF
1766
1767
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770 _ACEOF
1771
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1775 _ACEOF
1776
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_STRING "$PACKAGE_STRING"
1780 _ACEOF
1781
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785 _ACEOF
1786
1787
1788 # Let the site file select an alternate cache file if it wants to.
1789 # Prefer an explicitly selected file to automatically selected ones.
1790 ac_site_file1=NONE
1791 ac_site_file2=NONE
1792 if test -n "$CONFIG_SITE"; then
1793   ac_site_file1=$CONFIG_SITE
1794 elif test "x$prefix" != xNONE; then
1795   ac_site_file1=$prefix/share/config.site
1796   ac_site_file2=$prefix/etc/config.site
1797 else
1798   ac_site_file1=$ac_default_prefix/share/config.site
1799   ac_site_file2=$ac_default_prefix/etc/config.site
1800 fi
1801 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1802 do
1803   test "x$ac_site_file" = xNONE && continue
1804   if test -r "$ac_site_file"; then
1805     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1806 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1807     sed 's/^/| /' "$ac_site_file" >&5
1808     . "$ac_site_file"
1809   fi
1810 done
1811
1812 if test -r "$cache_file"; then
1813   # Some versions of bash will fail to source /dev/null (special
1814   # files actually), so we avoid doing that.
1815   if test -f "$cache_file"; then
1816     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1817 $as_echo "$as_me: loading cache $cache_file" >&6;}
1818     case $cache_file in
1819       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1820       *)                      . "./$cache_file";;
1821     esac
1822   fi
1823 else
1824   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1825 $as_echo "$as_me: creating cache $cache_file" >&6;}
1826   >$cache_file
1827 fi
1828
1829 # Check that the precious variables saved in the cache have kept the same
1830 # value.
1831 ac_cache_corrupted=false
1832 for ac_var in $ac_precious_vars; do
1833   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1834   eval ac_new_set=\$ac_env_${ac_var}_set
1835   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1836   eval ac_new_val=\$ac_env_${ac_var}_value
1837   case $ac_old_set,$ac_new_set in
1838     set,)
1839       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1840 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1841       ac_cache_corrupted=: ;;
1842     ,set)
1843       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1844 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1845       ac_cache_corrupted=: ;;
1846     ,);;
1847     *)
1848       if test "x$ac_old_val" != "x$ac_new_val"; then
1849         # differences in whitespace do not lead to failure.
1850         ac_old_val_w=`echo x $ac_old_val`
1851         ac_new_val_w=`echo x $ac_new_val`
1852         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1853           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1854 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1855           ac_cache_corrupted=:
1856         else
1857           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1858 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1859           eval $ac_var=\$ac_old_val
1860         fi
1861         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1862 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1863         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1864 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1865       fi;;
1866   esac
1867   # Pass precious variables to config.status.
1868   if test "$ac_new_set" = set; then
1869     case $ac_new_val in
1870     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1871     *) ac_arg=$ac_var=$ac_new_val ;;
1872     esac
1873     case " $ac_configure_args " in
1874       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1875       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1876     esac
1877   fi
1878 done
1879 if $ac_cache_corrupted; then
1880   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1882   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1883 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1884   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1885 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1886    { (exit 1); exit 1; }; }
1887 fi
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905 ac_ext=c
1906 ac_cpp='$CPP $CPPFLAGS'
1907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1910
1911
1912
1913 # Bootstrap StepMake configure
1914 # For user package:
1915 ac_aux_dir=
1916 for ac_dir in stepmake/bin "$srcdir"/stepmake/bin; do
1917   if test -f "$ac_dir/install-sh"; then
1918     ac_aux_dir=$ac_dir
1919     ac_install_sh="$ac_aux_dir/install-sh -c"
1920     break
1921   elif test -f "$ac_dir/install.sh"; then
1922     ac_aux_dir=$ac_dir
1923     ac_install_sh="$ac_aux_dir/install.sh -c"
1924     break
1925   elif test -f "$ac_dir/shtool"; then
1926     ac_aux_dir=$ac_dir
1927     ac_install_sh="$ac_aux_dir/shtool install -c"
1928     break
1929   fi
1930 done
1931 if test -z "$ac_aux_dir"; then
1932   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in stepmake/bin \"$srcdir\"/stepmake/bin" >&5
1933 $as_echo "$as_me: error: cannot find install-sh or install.sh in stepmake/bin \"$srcdir\"/stepmake/bin" >&2;}
1934    { (exit 1); exit 1; }; }
1935 fi
1936
1937 # These three variables are undocumented and unsupported,
1938 # and are intended to be withdrawn in a future Autoconf release.
1939 # They can cause serious problems if a builder's source tree is in a directory
1940 # whose full name contains unusual characters.
1941 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1942 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1943 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1944
1945
1946
1947 # For stepmake package:
1948 # AC_CONFIG_AUX_DIR(bin)
1949
1950
1951 # Make sure we can run config.sub.
1952 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1953   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1954 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1955    { (exit 1); exit 1; }; }
1956
1957 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1958 $as_echo_n "checking build system type... " >&6; }
1959 if test "${ac_cv_build+set}" = set; then
1960   $as_echo_n "(cached) " >&6
1961 else
1962   ac_build_alias=$build_alias
1963 test "x$ac_build_alias" = x &&
1964   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1965 test "x$ac_build_alias" = x &&
1966   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1967 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1968    { (exit 1); exit 1; }; }
1969 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1970   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1971 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1972    { (exit 1); exit 1; }; }
1973
1974 fi
1975 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1976 $as_echo "$ac_cv_build" >&6; }
1977 case $ac_cv_build in
1978 *-*-*) ;;
1979 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1980 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1981    { (exit 1); exit 1; }; };;
1982 esac
1983 build=$ac_cv_build
1984 ac_save_IFS=$IFS; IFS='-'
1985 set x $ac_cv_build
1986 shift
1987 build_cpu=$1
1988 build_vendor=$2
1989 shift; shift
1990 # Remember, the first character of IFS is used to create $*,
1991 # except with old shells:
1992 build_os=$*
1993 IFS=$ac_save_IFS
1994 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1995
1996
1997
1998
1999     . $srcdir/VERSION
2000     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
2001     MICRO_VERSION=$PATCH_LEVEL
2002     TOPLEVEL_VERSION=$FULL_VERSION
2003     if test x$MY_PATCH_LEVEL != x; then
2004         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
2005     fi
2006     VERSION=$FULL_VERSION
2007     export MAJOR_VERSION MINOR_VERSION PATCH_LEVEL
2008     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
2009     #dnl
2010     PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
2011     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
2012     #dnl
2013
2014     # No versioning on directory names of sub-packages
2015     # urg, urg
2016     stepmake=${datadir}/stepmake
2017     presome=${prefix}
2018     if test "$prefix" = "NONE"; then
2019             presome=${ac_default_prefix}
2020     fi
2021     stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
2022
2023     # urg, how is this supposed to work?
2024     if test "$program_prefix" = "NONE"; then
2025           program_prefix=
2026     fi
2027     if test "$program_suffix" = "NONE"; then
2028           program_suffix=
2029     fi
2030
2031     { $as_echo "$as_me:$LINENO: checking Package" >&5
2032 $as_echo_n "checking Package... " >&6; }
2033     if test "$PACKAGE" = "STEPMAKE"; then
2034         { $as_echo "$as_me:$LINENO: result: Stepmake package!" >&5
2035 $as_echo "Stepmake package!" >&6; }
2036
2037         { $as_echo "$as_me:$LINENO: checking builddir" >&5
2038 $as_echo_n "checking builddir... " >&6; }
2039
2040         ugh_ugh_autoconf250_builddir="`pwd`"
2041
2042         if test "$srcdir" = "."; then
2043             srcdir_build=yes
2044         else
2045             srcdir_build=no
2046             package_builddir="`dirname $ugh_ugh_autoconf250_builddir`"
2047             package_srcdir="`dirname  $srcdir`"
2048         fi
2049         { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2050 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2051
2052         (cd stepmake 2>/dev/null || mkdir stepmake)
2053         (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
2054         stepmake=stepmake
2055     else
2056         { $as_echo "$as_me:$LINENO: result: $PACKAGE" >&5
2057 $as_echo "$PACKAGE" >&6; }
2058
2059         { $as_echo "$as_me:$LINENO: checking builddir" >&5
2060 $as_echo_n "checking builddir... " >&6; }
2061         ugh_ugh_autoconf250_builddir="`pwd`"
2062
2063         here_dir=$(cd . && pwd)
2064         full_src_dir=$(cd $srcdir && pwd)
2065
2066         if test "$full_src_dir" = "$here_dir"; then
2067             srcdir_build=yes
2068         else
2069             srcdir_build=no
2070         fi
2071         { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2072 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2073
2074         { $as_echo "$as_me:$LINENO: checking for stepmake" >&5
2075 $as_echo_n "checking for stepmake... " >&6; }
2076         # Check for installed stepmake
2077         if test -d $stepmake; then
2078             { $as_echo "$as_me:$LINENO: result: $stepmake" >&5
2079 $as_echo "$stepmake" >&6; }
2080         else
2081             stepmake="`cd $srcdir/stepmake; pwd`"
2082             { $as_echo "$as_me:$LINENO: result: $srcdir/stepmake  ($datadir/stepmake not found)" >&5
2083 $as_echo "$srcdir/stepmake  ($datadir/stepmake not found)" >&6; }
2084         fi
2085     fi
2086
2087
2088
2089     # Use absolute directory for non-srcdir builds, so that build
2090     # dir can be moved.
2091     if test "$srcdir_build" = "no" ;  then
2092         srcdir="`cd $srcdir; pwd`"
2093     fi
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105     # stepmake nonstandard names
2106
2107
2108
2109     # We don't need the upper case variant,
2110     # so stick to macros are uppercase convention.
2111     # AC_DEFINE_UNQUOTED(package, ["${package}"])
2112     # AC_DEFINE_UNQUOTED(PACKAGE, ["${PACKAGE}"])
2113     cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE "${package}"
2115 _ACEOF
2116
2117     cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_NAME "${PACKAGE_NAME}"
2119 _ACEOF
2120
2121     cat >>confdefs.h <<_ACEOF
2122 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2123 _ACEOF
2124
2125
2126     if test -z "$package_depth"; then
2127         package_depth="."
2128     else
2129         package_depth="../$package_depth"
2130     fi
2131     export package_depth
2132
2133
2134     AUTOGENERATE="This file was automatically generated by configure"
2135
2136
2137     CONFIGSUFFIX=
2138     # Check whether --enable-config was given.
2139 if test "${enable_config+set}" = set; then
2140   enableval=$enable_config; CONFIGURATION=$enableval
2141 fi
2142
2143
2144     ##'`#
2145
2146     test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
2147     CONFIGFILE=config$CONFIGSUFFIX
2148
2149
2150     { $as_echo "$as_me:$LINENO: checking host system type" >&5
2151 $as_echo_n "checking host system type... " >&6; }
2152 if test "${ac_cv_host+set}" = set; then
2153   $as_echo_n "(cached) " >&6
2154 else
2155   if test "x$host_alias" = x; then
2156   ac_cv_host=$ac_cv_build
2157 else
2158   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2159     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2160 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2161    { (exit 1); exit 1; }; }
2162 fi
2163
2164 fi
2165 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2166 $as_echo "$ac_cv_host" >&6; }
2167 case $ac_cv_host in
2168 *-*-*) ;;
2169 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2170 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2171    { (exit 1); exit 1; }; };;
2172 esac
2173 host=$ac_cv_host
2174 ac_save_IFS=$IFS; IFS='-'
2175 set x $ac_cv_host
2176 shift
2177 host_cpu=$1
2178 host_vendor=$2
2179 shift; shift
2180 # Remember, the first character of IFS is used to create $*,
2181 # except with old shells:
2182 host_os=$*
2183 IFS=$ac_save_IFS
2184 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2185
2186
2187
2188     for ac_prog in gmake make
2189 do
2190   # Extract the first word of "$ac_prog", so it can be a program name with args.
2191 set dummy $ac_prog; ac_word=$2
2192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 $as_echo_n "checking for $ac_word... " >&6; }
2194 if test "${ac_cv_prog_MAKE+set}" = set; then
2195   $as_echo_n "(cached) " >&6
2196 else
2197   if test -n "$MAKE"; then
2198   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2199 else
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 for as_dir in $PATH
2202 do
2203   IFS=$as_save_IFS
2204   test -z "$as_dir" && as_dir=.
2205   for ac_exec_ext in '' $ac_executable_extensions; do
2206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2207     ac_cv_prog_MAKE="$ac_prog"
2208     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209     break 2
2210   fi
2211 done
2212 done
2213 IFS=$as_save_IFS
2214
2215 fi
2216 fi
2217 MAKE=$ac_cv_prog_MAKE
2218 if test -n "$MAKE"; then
2219   { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
2220 $as_echo "$MAKE" >&6; }
2221 else
2222   { $as_echo "$as_me:$LINENO: result: no" >&5
2223 $as_echo "no" >&6; }
2224 fi
2225
2226
2227   test -n "$MAKE" && break
2228 done
2229 test -n "$MAKE" || MAKE="no"
2230
2231
2232
2233     r="`eval echo '$'"MAKE"`"
2234     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
2235         true
2236     else
2237         ##STEPMAKE_WARN(cannot find . )
2238         false
2239     fi
2240
2241     if test $? -ne 0; then
2242
2243     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
2244
2245         if test "REQUIRED" = "REQUIRED"; then
2246             command="echo ERROR: gmake make not found"
2247             # abort configure process here?
2248         else
2249             command="- echo gmake make not found"
2250         fi
2251         eval "MAKE"='$command'
2252         false
2253     else
2254         true
2255     fi
2256
2257     if test $? -eq 0 -a -n ""; then
2258
2259     r="`eval echo '$'"MAKE"`"
2260     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2261 $as_echo_n "checking $r version... " >&6; }
2262     exe=`
2263     ## which doesn't work in ash, if /usr/bin/which isn't installed
2264     ## type -p doesn't work in ash
2265     ## command -v doesn't work in zsh
2266     ## command -v "$r" 2>&1
2267     ## this test should work in ash, bash, pdksh (ksh), zsh
2268     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2269 `
2270     if test -n ""; then
2271         ver=""
2272     else
2273         ver=`
2274     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2275     ##
2276     ## ARG.
2277     ## Workaround for broken Debian gcc version string:
2278     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2279     ##
2280     ## -V: Workaround for python
2281
2282     #dnl
2283
2284     ## Assume and hunt for dotted version multiplet.
2285     ## use eval trickery, because we cannot use multi-level $() instead of ``
2286     ## for compatibility reasons.
2287
2288     ## grab the first version number in  --version output.
2289     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2290                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2291                 head -n 1 |
2292                 tr ' ' '\n' |
2293                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2294                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2295                 head -n 1\`\"
2296
2297     if test -z "$_ver"; then
2298         ## If empty, try date [fontforge]
2299         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2300             | head -n 1 \
2301             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2302     fi
2303     echo "$_ver"
2304     #dnl
2305 `
2306     fi
2307     num=`
2308     echo "$ver" | awk -F. '
2309     {
2310       if ($3) {three = $3}
2311       else {three = 0}
2312     }
2313     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2314 `
2315     req=`
2316     echo "" | awk -F. '
2317     {
2318       if ($3) {three = $3}
2319       else {three = 0}
2320     }
2321     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2322 `
2323     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2324 $as_echo "$ver" >&6; }
2325     if test "$num" -lt "$req"; then
2326
2327     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2328
2329     fi
2330     vervar="`echo MAKE | tr 'a-z' 'A-Z'`_VERSION"
2331     eval `echo $vervar=$num`
2332 ##    AC_SUBST(`eval echo $vervar`)
2333
2334     fi
2335
2336
2337     for ac_prog in find
2338 do
2339   # Extract the first word of "$ac_prog", so it can be a program name with args.
2340 set dummy $ac_prog; ac_word=$2
2341 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 $as_echo_n "checking for $ac_word... " >&6; }
2343 if test "${ac_cv_prog_FIND+set}" = set; then
2344   $as_echo_n "(cached) " >&6
2345 else
2346   if test -n "$FIND"; then
2347   ac_cv_prog_FIND="$FIND" # Let the user override the test.
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2351 do
2352   IFS=$as_save_IFS
2353   test -z "$as_dir" && as_dir=.
2354   for ac_exec_ext in '' $ac_executable_extensions; do
2355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356     ac_cv_prog_FIND="$ac_prog"
2357     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358     break 2
2359   fi
2360 done
2361 done
2362 IFS=$as_save_IFS
2363
2364 fi
2365 fi
2366 FIND=$ac_cv_prog_FIND
2367 if test -n "$FIND"; then
2368   { $as_echo "$as_me:$LINENO: result: $FIND" >&5
2369 $as_echo "$FIND" >&6; }
2370 else
2371   { $as_echo "$as_me:$LINENO: result: no" >&5
2372 $as_echo "no" >&6; }
2373 fi
2374
2375
2376   test -n "$FIND" && break
2377 done
2378 test -n "$FIND" || FIND="no"
2379
2380
2381
2382     r="`eval echo '$'"FIND"`"
2383     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
2384         true
2385     else
2386         ##STEPMAKE_WARN(cannot find . )
2387         false
2388     fi
2389
2390     if test $? -ne 0; then
2391
2392     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
2393
2394         if test "REQUIRED" = "REQUIRED"; then
2395             command="echo ERROR: find not found"
2396             # abort configure process here?
2397         else
2398             command="- echo find not found"
2399         fi
2400         eval "FIND"='$command'
2401         false
2402     else
2403         true
2404     fi
2405
2406     if test $? -eq 0 -a -n ""; then
2407
2408     r="`eval echo '$'"FIND"`"
2409     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2410 $as_echo_n "checking $r version... " >&6; }
2411     exe=`
2412     ## which doesn't work in ash, if /usr/bin/which isn't installed
2413     ## type -p doesn't work in ash
2414     ## command -v doesn't work in zsh
2415     ## command -v "$r" 2>&1
2416     ## this test should work in ash, bash, pdksh (ksh), zsh
2417     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2418 `
2419     if test -n ""; then
2420         ver=""
2421     else
2422         ver=`
2423     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2424     ##
2425     ## ARG.
2426     ## Workaround for broken Debian gcc version string:
2427     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2428     ##
2429     ## -V: Workaround for python
2430
2431     #dnl
2432
2433     ## Assume and hunt for dotted version multiplet.
2434     ## use eval trickery, because we cannot use multi-level $() instead of ``
2435     ## for compatibility reasons.
2436
2437     ## grab the first version number in  --version output.
2438     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2439                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2440                 head -n 1 |
2441                 tr ' ' '\n' |
2442                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2443                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2444                 head -n 1\`\"
2445
2446     if test -z "$_ver"; then
2447         ## If empty, try date [fontforge]
2448         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2449             | head -n 1 \
2450             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2451     fi
2452     echo "$_ver"
2453     #dnl
2454 `
2455     fi
2456     num=`
2457     echo "$ver" | awk -F. '
2458     {
2459       if ($3) {three = $3}
2460       else {three = 0}
2461     }
2462     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2463 `
2464     req=`
2465     echo "" | awk -F. '
2466     {
2467       if ($3) {three = $3}
2468       else {three = 0}
2469     }
2470     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2471 `
2472     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2473 $as_echo "$ver" >&6; }
2474     if test "$num" -lt "$req"; then
2475
2476     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2477
2478     fi
2479     vervar="`echo FIND | tr 'a-z' 'A-Z'`_VERSION"
2480     eval `echo $vervar=$num`
2481 ##    AC_SUBST(`eval echo $vervar`)
2482
2483     fi
2484
2485
2486
2487     for ac_prog in tar
2488 do
2489   # Extract the first word of "$ac_prog", so it can be a program name with args.
2490 set dummy $ac_prog; ac_word=$2
2491 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 $as_echo_n "checking for $ac_word... " >&6; }
2493 if test "${ac_cv_prog_TAR+set}" = set; then
2494   $as_echo_n "(cached) " >&6
2495 else
2496   if test -n "$TAR"; then
2497   ac_cv_prog_TAR="$TAR" # Let the user override the test.
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2501 do
2502   IFS=$as_save_IFS
2503   test -z "$as_dir" && as_dir=.
2504   for ac_exec_ext in '' $ac_executable_extensions; do
2505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506     ac_cv_prog_TAR="$ac_prog"
2507     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508     break 2
2509   fi
2510 done
2511 done
2512 IFS=$as_save_IFS
2513
2514 fi
2515 fi
2516 TAR=$ac_cv_prog_TAR
2517 if test -n "$TAR"; then
2518   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
2519 $as_echo "$TAR" >&6; }
2520 else
2521   { $as_echo "$as_me:$LINENO: result: no" >&5
2522 $as_echo "no" >&6; }
2523 fi
2524
2525
2526   test -n "$TAR" && break
2527 done
2528 test -n "$TAR" || TAR="no"
2529
2530
2531
2532     r="`eval echo '$'"TAR"`"
2533     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
2534         true
2535     else
2536         ##STEPMAKE_WARN(cannot find . )
2537         false
2538     fi
2539
2540     if test $? -ne 0; then
2541
2542     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
2543
2544         if test "REQUIRED" = "REQUIRED"; then
2545             command="echo ERROR: tar not found"
2546             # abort configure process here?
2547         else
2548             command="- echo tar not found"
2549         fi
2550         eval "TAR"='$command'
2551         false
2552     else
2553         true
2554     fi
2555
2556     if test $? -eq 0 -a -n ""; then
2557
2558     r="`eval echo '$'"TAR"`"
2559     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2560 $as_echo_n "checking $r version... " >&6; }
2561     exe=`
2562     ## which doesn't work in ash, if /usr/bin/which isn't installed
2563     ## type -p doesn't work in ash
2564     ## command -v doesn't work in zsh
2565     ## command -v "$r" 2>&1
2566     ## this test should work in ash, bash, pdksh (ksh), zsh
2567     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2568 `
2569     if test -n ""; then
2570         ver=""
2571     else
2572         ver=`
2573     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2574     ##
2575     ## ARG.
2576     ## Workaround for broken Debian gcc version string:
2577     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2578     ##
2579     ## -V: Workaround for python
2580
2581     #dnl
2582
2583     ## Assume and hunt for dotted version multiplet.
2584     ## use eval trickery, because we cannot use multi-level $() instead of ``
2585     ## for compatibility reasons.
2586
2587     ## grab the first version number in  --version output.
2588     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2589                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2590                 head -n 1 |
2591                 tr ' ' '\n' |
2592                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2593                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2594                 head -n 1\`\"
2595
2596     if test -z "$_ver"; then
2597         ## If empty, try date [fontforge]
2598         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2599             | head -n 1 \
2600             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2601     fi
2602     echo "$_ver"
2603     #dnl
2604 `
2605     fi
2606     num=`
2607     echo "$ver" | awk -F. '
2608     {
2609       if ($3) {three = $3}
2610       else {three = 0}
2611     }
2612     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2613 `
2614     req=`
2615     echo "" | awk -F. '
2616     {
2617       if ($3) {three = $3}
2618       else {three = 0}
2619     }
2620     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2621 `
2622     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2623 $as_echo "$ver" >&6; }
2624     if test "$num" -lt "$req"; then
2625
2626     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2627
2628     fi
2629     vervar="`echo TAR | tr 'a-z' 'A-Z'`_VERSION"
2630     eval `echo $vervar=$num`
2631 ##    AC_SUBST(`eval echo $vervar`)
2632
2633     fi
2634
2635
2636     if test "$(echo 2)" != "2" ||
2637         test "x`uname`" = "xHP-UX"; then
2638         # Extract the first word of "ksh", so it can be a program name with args.
2639 set dummy ksh; ac_word=$2
2640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_path_KSH+set}" = set; then
2643   $as_echo_n "(cached) " >&6
2644 else
2645   case $KSH in
2646   [\\/]* | ?:[\\/]*)
2647   ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2648   ;;
2649   *)
2650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655   for ac_exec_ext in '' $ac_executable_extensions; do
2656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657     ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
2658     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659     break 2
2660   fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665   test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="/bin/ksh"
2666   ;;
2667 esac
2668 fi
2669 KSH=$ac_cv_path_KSH
2670 if test -n "$KSH"; then
2671   { $as_echo "$as_me:$LINENO: result: $KSH" >&5
2672 $as_echo "$KSH" >&6; }
2673 else
2674   { $as_echo "$as_me:$LINENO: result: no" >&5
2675 $as_echo "no" >&6; }
2676 fi
2677
2678
2679         # Extract the first word of "bash", so it can be a program name with args.
2680 set dummy bash; ac_word=$2
2681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if test "${ac_cv_path_BASH+set}" = set; then
2684   $as_echo_n "(cached) " >&6
2685 else
2686   case $BASH in
2687   [\\/]* | ?:[\\/]*)
2688   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2689   ;;
2690   *)
2691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694   IFS=$as_save_IFS
2695   test -z "$as_dir" && as_dir=.
2696   for ac_exec_ext in '' $ac_executable_extensions; do
2697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2699     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700     break 2
2701   fi
2702 done
2703 done
2704 IFS=$as_save_IFS
2705
2706   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$KSH"
2707   ;;
2708 esac
2709 fi
2710 BASH=$ac_cv_path_BASH
2711 if test -n "$BASH"; then
2712   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2713 $as_echo "$BASH" >&6; }
2714 else
2715   { $as_echo "$as_me:$LINENO: result: no" >&5
2716 $as_echo "no" >&6; }
2717 fi
2718
2719
2720
2721     { $as_echo "$as_me:$LINENO: WARNING: avoiding buggy /bin/sh" >&5
2722 $as_echo "$as_me: WARNING: avoiding buggy /bin/sh" >&2;}
2723     warn_b=yes
2724
2725         # Extract the first word of "bash", so it can be a program name with args.
2726 set dummy bash; ac_word=$2
2727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if test "${ac_cv_path_SHELL+set}" = set; then
2730   $as_echo_n "(cached) " >&6
2731 else
2732   case $SHELL in
2733   [\\/]* | ?:[\\/]*)
2734   ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2735   ;;
2736   *)
2737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740   IFS=$as_save_IFS
2741   test -z "$as_dir" && as_dir=.
2742   for ac_exec_ext in '' $ac_executable_extensions; do
2743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744     ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2745     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2746     break 2
2747   fi
2748 done
2749 done
2750 IFS=$as_save_IFS
2751
2752   test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="$KSH"
2753   ;;
2754 esac
2755 fi
2756 SHELL=$ac_cv_path_SHELL
2757 if test -n "$SHELL"; then
2758   { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
2759 $as_echo "$SHELL" >&6; }
2760 else
2761   { $as_echo "$as_me:$LINENO: result: no" >&5
2762 $as_echo "no" >&6; }
2763 fi
2764
2765
2766     else
2767         SHELL=/bin/sh
2768         # Extract the first word of "bash", so it can be a program name with args.
2769 set dummy bash; ac_word=$2
2770 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if test "${ac_cv_path_BASH+set}" = set; then
2773   $as_echo_n "(cached) " >&6
2774 else
2775   case $BASH in
2776   [\\/]* | ?:[\\/]*)
2777   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2778   ;;
2779   *)
2780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783   IFS=$as_save_IFS
2784   test -z "$as_dir" && as_dir=.
2785   for ac_exec_ext in '' $ac_executable_extensions; do
2786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2788     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789     break 2
2790   fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$SHELL"
2796   ;;
2797 esac
2798 fi
2799 BASH=$ac_cv_path_BASH
2800 if test -n "$BASH"; then
2801   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2802 $as_echo "$BASH" >&6; }
2803 else
2804   { $as_echo "$as_me:$LINENO: result: no" >&5
2805 $as_echo "no" >&6; }
2806 fi
2807
2808
2809     fi
2810
2811
2812
2813     unset pv
2814     { $as_echo "$as_me:$LINENO: checking for python" >&5
2815 $as_echo_n "checking for python... " >&6; }
2816     for python in $PYTHON python python2 python2.4 python2.3 python2.2 python2.1 python2.0; do
2817         { $as_echo "$as_me:$LINENO: result: $python" >&5
2818 $as_echo "$python" >&6; }
2819         if ! $python -V > /dev/null 2>&1 ; then
2820             #AC_MSG_WARN([cannot execute $python])
2821             PYTHON='echo no python'
2822         else
2823             unset pv
2824
2825     r="`eval echo '$'"python"`"
2826     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2827 $as_echo_n "checking $r version... " >&6; }
2828     exe=`
2829     ## which doesn't work in ash, if /usr/bin/which isn't installed
2830     ## type -p doesn't work in ash
2831     ## command -v doesn't work in zsh
2832     ## command -v "$r" 2>&1
2833     ## this test should work in ash, bash, pdksh (ksh), zsh
2834     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2835 `
2836     if test -n ""; then
2837         ver=""
2838     else
2839         ver=`
2840     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2841     ##
2842     ## ARG.
2843     ## Workaround for broken Debian gcc version string:
2844     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2845     ##
2846     ## -V: Workaround for python
2847
2848     #dnl
2849
2850     ## Assume and hunt for dotted version multiplet.
2851     ## use eval trickery, because we cannot use multi-level $() instead of ``
2852     ## for compatibility reasons.
2853
2854     ## grab the first version number in  --version output.
2855     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2856                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2857                 head -n 1 |
2858                 tr ' ' '\n' |
2859                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2860                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2861                 head -n 1\`\"
2862
2863     if test -z "$_ver"; then
2864         ## If empty, try date [fontforge]
2865         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2866             | head -n 1 \
2867             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2868     fi
2869     echo "$_ver"
2870     #dnl
2871 `
2872     fi
2873     num=`
2874     echo "$ver" | awk -F. '
2875     {
2876       if ($3) {three = $3}
2877       else {three = 0}
2878     }
2879     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2880 `
2881     req=`
2882     echo "1.5" | awk -F. '
2883     {
2884       if ($3) {three = $3}
2885       else {three = 0}
2886     }
2887     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2888 `
2889     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2890 $as_echo "$ver" >&6; }
2891     if test "$num" -lt "$req"; then
2892
2893     eval "pv"=\"`eval echo \"'$'pv\" \""$r >= 1.5 (installed: $ver)"\"`\"
2894
2895     fi
2896     vervar="`echo python | tr 'a-z' 'A-Z'`_VERSION"
2897     eval `echo $vervar=$num`
2898 ##    AC_SUBST(`eval echo $vervar`)
2899
2900             if test -z "$pv"; then
2901                 PYTHON=$python
2902                 break
2903             fi
2904         fi
2905     done
2906     if test -n "$pv"; then
2907
2908     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$pv\"`\"
2909
2910     fi
2911     # clear cached value since arg 2 might point us to a new binary
2912     unset ac_cv_path_PYTHON
2913
2914     # Extract the first word of "$PYTHON", so it can be a program name with args.
2915 set dummy $PYTHON; ac_word=$2
2916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if test "${ac_cv_path_PYTHON+set}" = set; then
2919   $as_echo_n "(cached) " >&6
2920 else
2921   case $PYTHON in
2922   [\\/]* | ?:[\\/]*)
2923   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2924   ;;
2925   *)
2926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929   IFS=$as_save_IFS
2930   test -z "$as_dir" && as_dir=.
2931   for ac_exec_ext in '' $ac_executable_extensions; do
2932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2934     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935     break 2
2936   fi
2937 done
2938 done
2939 IFS=$as_save_IFS
2940
2941   ;;
2942 esac
2943 fi
2944 PYTHON=$ac_cv_path_PYTHON
2945 if test -n "$PYTHON"; then
2946   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
2947 $as_echo "$PYTHON" >&6; }
2948 else
2949   { $as_echo "$as_me:$LINENO: result: no" >&5
2950 $as_echo "no" >&6; }
2951 fi
2952
2953
2954
2955
2956
2957     if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
2958         $MAKE -v 2> /dev/null | grep GNU > /dev/null
2959         if test "$?" = 1; then
2960             warn='make (Please install *GNU* make)'
2961             # STEPMAKE_WARN($warn)
2962
2963     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
2964
2965         fi
2966     fi
2967
2968     ROOTSEP=':'
2969     DIRSEP='/'
2970     PATHSEP=':'
2971     LN=ln
2972     LN_S='ln -s'
2973     ZIP="zip -r -9"
2974
2975
2976
2977
2978
2979
2980     cat >>confdefs.h <<_ACEOF
2981 #define DIRSEP '${DIRSEP}'
2982 _ACEOF
2983
2984     cat >>confdefs.h <<_ACEOF
2985 #define PATHSEP '${PATHSEP}'
2986 _ACEOF
2987
2988
2989
2990
2991
2992
2993     if test "$datadir" = "\${prefix}/share"; then
2994             datadir='${prefix}/share'
2995     fi
2996     presome=${prefix}
2997     if test "$prefix" = "NONE"; then
2998         presome=${ac_default_prefix}
2999     fi
3000
3001     build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
3002
3003     DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${prefix}/share!"`
3004     DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
3005     BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
3006
3007
3008
3009
3010     cat >>confdefs.h <<_ACEOF
3011 #define DATADIR "${DATADIR}"
3012 _ACEOF
3013
3014     cat >>confdefs.h <<_ACEOF
3015 #define BUILD_PACKAGE_DATADIR "${BUILD_PACKAGE_DATADIR}"
3016 _ACEOF
3017
3018
3019
3020
3021     if test "$libdir" = "\${exec_prefix}/lib"; then
3022         libdir='${exec_prefix}/lib'
3023     fi
3024     presome=$exec_prefix
3025     build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
3026
3027     LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3028     BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3029
3030
3031
3032     cat >>confdefs.h <<_ACEOF
3033 #define LIBDIR "${LIBDIR}"
3034 _ACEOF
3035
3036     cat >>confdefs.h <<_ACEOF
3037 #define BUILD_PACKAGE_LIBDIR "${BUILD_PACKAGE_LIBDIR}"
3038 _ACEOF
3039
3040
3041
3042
3043 # List a file that identifies your package.
3044
3045
3046 # Move to aclocal.m4?
3047 ac_config_headers="$ac_config_headers $CONFIGFILE.hh:config.hh.in"
3048
3049
3050 # Uncomment the configuration options your package needs.
3051
3052 DOCUMENTATION=yes
3053 # Check whether --enable-documentation was given.
3054 if test "${enable_documentation+set}" = set; then
3055   enableval=$enable_documentation; DOCUMENTATION=$enableval
3056 fi
3057
3058
3059
3060
3061 # Check whether --with-ncsb-dir was given.
3062 if test "${with_ncsb_dir+set}" = set; then
3063   withval=$with_ncsb_dir; NCSB_DIR=$withval
3064 else
3065   NCSB_DIR=""
3066 fi
3067
3068
3069 reloc_b=no
3070 # Check whether --enable-relocation was given.
3071 if test "${enable_relocation+set}" = set; then
3072   enableval=$enable_relocation; reloc_b=$enableval
3073 fi
3074
3075
3076 rpath_b=no
3077 # Check whether --enable-rpath was given.
3078 if test "${enable_rpath+set}" = set; then
3079   enableval=$enable_rpath; rpath_b=$enableval
3080 fi
3081
3082
3083 LINK_GXX_STATICALLY=no
3084 # Check whether --enable-static-gxx was given.
3085 if test "${enable_static_gxx+set}" = set; then
3086   enableval=$enable_static_gxx; LINK_GXX_STATICALLY=$enableval
3087 fi
3088
3089
3090
3091 # must come before any header checks
3092
3093     # -O is necessary to get inlining
3094     CFLAGS=${CFLAGS-""}
3095     CXXFLAGS=${CXXFLAGS-$CFLAGS}
3096     LDFLAGS=${LDFLAGS-""}
3097     optimise_b=yes
3098     profile_b=no
3099     debug_b=yes
3100     pipe_b=yes
3101
3102     # Check whether --enable-debugging was given.
3103 if test "${enable_debugging+set}" = set; then
3104   enableval=$enable_debugging; debug_b=$enableval
3105 fi
3106
3107
3108     # Check whether --enable-optimising was given.
3109 if test "${enable_optimising+set}" = set; then
3110   enableval=$enable_optimising; optimise_b=$enableval
3111 fi
3112
3113
3114     # Check whether --enable-profiling was given.
3115 if test "${enable_profiling+set}" = set; then
3116   enableval=$enable_profiling; profile_b=$enableval
3117 fi
3118
3119
3120     # Check whether --enable-pipe was given.
3121 if test "${enable_pipe+set}" = set; then
3122   enableval=$enable_pipe; pipe_b=$enableval
3123 fi
3124
3125
3126     if test "$optimise_b" = yes; then
3127         cat >>confdefs.h <<\_ACEOF
3128 #define NDEBUG 1
3129 _ACEOF
3130
3131         DEFINES="$DEFINES -DNDEBUG"
3132         OPTIMIZE=" -O2 -finline-functions"
3133     fi
3134
3135     if test $profile_b = yes; then
3136         EXTRA_LIBS="-pg"
3137         OPTIMIZE="$OPTIMIZE -pg"
3138     fi
3139
3140     if test $debug_b = yes; then
3141         OPTIMIZE="$OPTIMIZE -g"
3142     fi
3143
3144 ac_ext=c
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 if test -n "$ac_tool_prefix"; then
3150   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_CC+set}" = set; then
3155   $as_echo_n "(cached) " >&6
3156 else
3157   if test -n "$CC"; then
3158   ac_cv_prog_CC="$CC" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163   IFS=$as_save_IFS
3164   test -z "$as_dir" && as_dir=.
3165   for ac_exec_ext in '' $ac_executable_extensions; do
3166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3168     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3169     break 2
3170   fi
3171 done
3172 done
3173 IFS=$as_save_IFS
3174
3175 fi
3176 fi
3177 CC=$ac_cv_prog_CC
3178 if test -n "$CC"; then
3179   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3181 else
3182   { $as_echo "$as_me:$LINENO: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186
3187 fi
3188 if test -z "$ac_cv_prog_CC"; then
3189   ac_ct_CC=$CC
3190   # Extract the first word of "gcc", so it can be a program name with args.
3191 set dummy gcc; ac_word=$2
3192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3195   $as_echo_n "(cached) " >&6
3196 else
3197   if test -n "$ac_ct_CC"; then
3198   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205   for ac_exec_ext in '' $ac_executable_extensions; do
3206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207     ac_cv_prog_ac_ct_CC="gcc"
3208     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209     break 2
3210   fi
3211 done
3212 done
3213 IFS=$as_save_IFS
3214
3215 fi
3216 fi
3217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3218 if test -n "$ac_ct_CC"; then
3219   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3220 $as_echo "$ac_ct_CC" >&6; }
3221 else
3222   { $as_echo "$as_me:$LINENO: result: no" >&5
3223 $as_echo "no" >&6; }
3224 fi
3225
3226   if test "x$ac_ct_CC" = x; then
3227     CC=""
3228   else
3229     case $cross_compiling:$ac_tool_warned in
3230 yes:)
3231 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233 ac_tool_warned=yes ;;
3234 esac
3235     CC=$ac_ct_CC
3236   fi
3237 else
3238   CC="$ac_cv_prog_CC"
3239 fi
3240
3241 if test -z "$CC"; then
3242           if test -n "$ac_tool_prefix"; then
3243     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}cc; ac_word=$2
3245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then
3248   $as_echo_n "(cached) " >&6
3249 else
3250   if test -n "$CC"; then
3251   ac_cv_prog_CC="$CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256   IFS=$as_save_IFS
3257   test -z "$as_dir" && as_dir=.
3258   for ac_exec_ext in '' $ac_executable_extensions; do
3259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260     ac_cv_prog_CC="${ac_tool_prefix}cc"
3261     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262     break 2
3263   fi
3264 done
3265 done
3266 IFS=$as_save_IFS
3267
3268 fi
3269 fi
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3274 else
3275   { $as_echo "$as_me:$LINENO: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279
3280   fi
3281 fi
3282 if test -z "$CC"; then
3283   # Extract the first word of "cc", so it can be a program name with args.
3284 set dummy cc; ac_word=$2
3285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then
3288   $as_echo_n "(cached) " >&6
3289 else
3290   if test -n "$CC"; then
3291   ac_cv_prog_CC="$CC" # Let the user override the test.
3292 else
3293   ac_prog_rejected=no
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299   for ac_exec_ext in '' $ac_executable_extensions; do
3300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3302        ac_prog_rejected=yes
3303        continue
3304      fi
3305     ac_cv_prog_CC="cc"
3306     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307     break 2
3308   fi
3309 done
3310 done
3311 IFS=$as_save_IFS
3312
3313 if test $ac_prog_rejected = yes; then
3314   # We found a bogon in the path, so make sure we never use it.
3315   set dummy $ac_cv_prog_CC
3316   shift
3317   if test $# != 0; then
3318     # We chose a different compiler from the bogus one.
3319     # However, it has the same basename, so the bogon will be chosen
3320     # first if we set CC to just the basename; use the full file name.
3321     shift
3322     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3323   fi
3324 fi
3325 fi
3326 fi
3327 CC=$ac_cv_prog_CC
3328 if test -n "$CC"; then
3329   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3330 $as_echo "$CC" >&6; }
3331 else
3332   { $as_echo "$as_me:$LINENO: result: no" >&5
3333 $as_echo "no" >&6; }
3334 fi
3335
3336
3337 fi
3338 if test -z "$CC"; then
3339   if test -n "$ac_tool_prefix"; then
3340   for ac_prog in cl.exe
3341   do
3342     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if test "${ac_cv_prog_CC+set}" = set; then
3347   $as_echo_n "(cached) " >&6
3348 else
3349   if test -n "$CC"; then
3350   ac_cv_prog_CC="$CC" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3354 do
3355   IFS=$as_save_IFS
3356   test -z "$as_dir" && as_dir=.
3357   for ac_exec_ext in '' $ac_executable_extensions; do
3358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3360     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361     break 2
3362   fi
3363 done
3364 done
3365 IFS=$as_save_IFS
3366
3367 fi
3368 fi
3369 CC=$ac_cv_prog_CC
3370 if test -n "$CC"; then
3371   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3372 $as_echo "$CC" >&6; }
3373 else
3374   { $as_echo "$as_me:$LINENO: result: no" >&5
3375 $as_echo "no" >&6; }
3376 fi
3377
3378
3379     test -n "$CC" && break
3380   done
3381 fi
3382 if test -z "$CC"; then
3383   ac_ct_CC=$CC
3384   for ac_prog in cl.exe
3385 do
3386   # Extract the first word of "$ac_prog", so it can be a program name with args.
3387 set dummy $ac_prog; ac_word=$2
3388 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3391   $as_echo_n "(cached) " >&6
3392 else
3393   if test -n "$ac_ct_CC"; then
3394   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3395 else
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3398 do
3399   IFS=$as_save_IFS
3400   test -z "$as_dir" && as_dir=.
3401   for ac_exec_ext in '' $ac_executable_extensions; do
3402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403     ac_cv_prog_ac_ct_CC="$ac_prog"
3404     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405     break 2
3406   fi
3407 done
3408 done
3409 IFS=$as_save_IFS
3410
3411 fi
3412 fi
3413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3414 if test -n "$ac_ct_CC"; then
3415   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3416 $as_echo "$ac_ct_CC" >&6; }
3417 else
3418   { $as_echo "$as_me:$LINENO: result: no" >&5
3419 $as_echo "no" >&6; }
3420 fi
3421
3422
3423   test -n "$ac_ct_CC" && break
3424 done
3425
3426   if test "x$ac_ct_CC" = x; then
3427     CC=""
3428   else
3429     case $cross_compiling:$ac_tool_warned in
3430 yes:)
3431 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned=yes ;;
3434 esac
3435     CC=$ac_ct_CC
3436   fi
3437 fi
3438
3439 fi
3440
3441
3442 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3445 See \`config.log' for more details." >&5
3446 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3447 See \`config.log' for more details." >&2;}
3448    { (exit 1); exit 1; }; }; }
3449
3450 # Provide some information about the compiler.
3451 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3452 set X $ac_compile
3453 ac_compiler=$2
3454 { (ac_try="$ac_compiler --version >&5"
3455 case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3460 $as_echo "$ac_try_echo") >&5
3461   (eval "$ac_compiler --version >&5") 2>&5
3462   ac_status=$?
3463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); }
3465 { (ac_try="$ac_compiler -v >&5"
3466 case "(($ac_try" in
3467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468   *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3471 $as_echo "$ac_try_echo") >&5
3472   (eval "$ac_compiler -v >&5") 2>&5
3473   ac_status=$?
3474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); }
3476 { (ac_try="$ac_compiler -V >&5"
3477 case "(($ac_try" in
3478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479   *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3482 $as_echo "$ac_try_echo") >&5
3483   (eval "$ac_compiler -V >&5") 2>&5
3484   ac_status=$?
3485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); }
3487
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h.  */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h.  */
3494
3495 int
3496 main ()
3497 {
3498
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 ac_clean_files_save=$ac_clean_files
3504 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3505 # Try to create an executable without -o first, disregard a.out.
3506 # It will help us diagnose broken compilers, and finding out an intuition
3507 # of exeext.
3508 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3509 $as_echo_n "checking for C compiler default output file name... " >&6; }
3510 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3511
3512 # The possible output files:
3513 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3514
3515 ac_rmfiles=
3516 for ac_file in $ac_files
3517 do
3518   case $ac_file in
3519     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3520     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3521   esac
3522 done
3523 rm -f $ac_rmfiles
3524
3525 if { (ac_try="$ac_link_default"
3526 case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3531 $as_echo "$ac_try_echo") >&5
3532   (eval "$ac_link_default") 2>&5
3533   ac_status=$?
3534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); }; then
3536   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3537 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3538 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3539 # so that the user can short-circuit this test for compilers unknown to
3540 # Autoconf.
3541 for ac_file in $ac_files ''
3542 do
3543   test -f "$ac_file" || continue
3544   case $ac_file in
3545     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3546         ;;
3547     [ab].out )
3548         # We found the default executable, but exeext='' is most
3549         # certainly right.
3550         break;;
3551     *.* )
3552         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3553         then :; else
3554            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3555         fi
3556         # We set ac_cv_exeext here because the later test for it is not
3557         # safe: cross compilers may not add the suffix if given an `-o'
3558         # argument, so we may need to know it at that point already.
3559         # Even if this section looks crufty: it has the advantage of
3560         # actually working.
3561         break;;
3562     * )
3563         break;;
3564   esac
3565 done
3566 test "$ac_cv_exeext" = no && ac_cv_exeext=
3567
3568 else
3569   ac_file=''
3570 fi
3571
3572 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3573 $as_echo "$ac_file" >&6; }
3574 if test -z "$ac_file"; then
3575   $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3581 See \`config.log' for more details." >&5
3582 $as_echo "$as_me: error: C compiler cannot create executables
3583 See \`config.log' for more details." >&2;}
3584    { (exit 77); exit 77; }; }; }
3585 fi
3586
3587 ac_exeext=$ac_cv_exeext
3588
3589 # Check that the compiler produces executables we can run.  If not, either
3590 # the compiler is broken, or we cross compile.
3591 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3592 $as_echo_n "checking whether the C compiler works... " >&6; }
3593 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3594 # If not cross compiling, check that we can run a simple program.
3595 if test "$cross_compiling" != yes; then
3596   if { ac_try='./$ac_file'
3597   { (case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3602 $as_echo "$ac_try_echo") >&5
3603   (eval "$ac_try") 2>&5
3604   ac_status=$?
3605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); }; }; then
3607     cross_compiling=no
3608   else
3609     if test "$cross_compiling" = maybe; then
3610         cross_compiling=yes
3611     else
3612         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3615 If you meant to cross compile, use \`--host'.
3616 See \`config.log' for more details." >&5
3617 $as_echo "$as_me: error: cannot run C compiled programs.
3618 If you meant to cross compile, use \`--host'.
3619 See \`config.log' for more details." >&2;}
3620    { (exit 1); exit 1; }; }; }
3621     fi
3622   fi
3623 fi
3624 { $as_echo "$as_me:$LINENO: result: yes" >&5
3625 $as_echo "yes" >&6; }
3626
3627 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3628 ac_clean_files=$ac_clean_files_save
3629 # Check that the compiler produces executables we can run.  If not, either
3630 # the compiler is broken, or we cross compile.
3631 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3632 $as_echo_n "checking whether we are cross compiling... " >&6; }
3633 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3634 $as_echo "$cross_compiling" >&6; }
3635
3636 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3637 $as_echo_n "checking for suffix of executables... " >&6; }
3638 if { (ac_try="$ac_link"
3639 case "(($ac_try" in
3640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641   *) ac_try_echo=$ac_try;;
3642 esac
3643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3644 $as_echo "$ac_try_echo") >&5
3645   (eval "$ac_link") 2>&5
3646   ac_status=$?
3647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); }; then
3649   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3650 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3651 # work properly (i.e., refer to `conftest.exe'), while it won't with
3652 # `rm'.
3653 for ac_file in conftest.exe conftest conftest.*; do
3654   test -f "$ac_file" || continue
3655   case $ac_file in
3656     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3657     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3658           break;;
3659     * ) break;;
3660   esac
3661 done
3662 else
3663   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3666 See \`config.log' for more details." >&5
3667 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3668 See \`config.log' for more details." >&2;}
3669    { (exit 1); exit 1; }; }; }
3670 fi
3671
3672 rm -f conftest$ac_cv_exeext
3673 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3674 $as_echo "$ac_cv_exeext" >&6; }
3675
3676 rm -f conftest.$ac_ext
3677 EXEEXT=$ac_cv_exeext
3678 ac_exeext=$EXEEXT
3679 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3680 $as_echo_n "checking for suffix of object files... " >&6; }
3681 if test "${ac_cv_objext+set}" = set; then
3682   $as_echo_n "(cached) " >&6
3683 else
3684   cat >conftest.$ac_ext <<_ACEOF
3685 /* confdefs.h.  */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h.  */
3690
3691 int
3692 main ()
3693 {
3694
3695   ;
3696   return 0;
3697 }
3698 _ACEOF
3699 rm -f conftest.o conftest.obj
3700 if { (ac_try="$ac_compile"
3701 case "(($ac_try" in
3702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703   *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706 $as_echo "$ac_try_echo") >&5
3707   (eval "$ac_compile") 2>&5
3708   ac_status=$?
3709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); }; then
3711   for ac_file in conftest.o conftest.obj conftest.*; do
3712   test -f "$ac_file" || continue;
3713   case $ac_file in
3714     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3715     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3716        break;;
3717   esac
3718 done
3719 else
3720   $as_echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3726 See \`config.log' for more details." >&5
3727 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3728 See \`config.log' for more details." >&2;}
3729    { (exit 1); exit 1; }; }; }
3730 fi
3731
3732 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3733 fi
3734 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3735 $as_echo "$ac_cv_objext" >&6; }
3736 OBJEXT=$ac_cv_objext
3737 ac_objext=$OBJEXT
3738 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3739 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3740 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3741   $as_echo_n "(cached) " >&6
3742 else
3743   cat >conftest.$ac_ext <<_ACEOF
3744 /* confdefs.h.  */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h.  */
3749
3750 int
3751 main ()
3752 {
3753 #ifndef __GNUC__
3754        choke me
3755 #endif
3756
3757   ;
3758   return 0;
3759 }
3760 _ACEOF
3761 rm -f conftest.$ac_objext
3762 if { (ac_try="$ac_compile"
3763 case "(($ac_try" in
3764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765   *) ac_try_echo=$ac_try;;
3766 esac
3767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3768 $as_echo "$ac_try_echo") >&5
3769   (eval "$ac_compile") 2>conftest.er1
3770   ac_status=$?
3771   grep -v '^ *+' conftest.er1 >conftest.err
3772   rm -f conftest.er1
3773   cat conftest.err >&5
3774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); } && {
3776          test -z "$ac_c_werror_flag" ||
3777          test ! -s conftest.err
3778        } && test -s conftest.$ac_objext; then
3779   ac_compiler_gnu=yes
3780 else
3781   $as_echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3783
3784         ac_compiler_gnu=no
3785 fi
3786
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3789
3790 fi
3791 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3792 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3793 if test $ac_compiler_gnu = yes; then
3794   GCC=yes
3795 else
3796   GCC=
3797 fi
3798 ac_test_CFLAGS=${CFLAGS+set}
3799 ac_save_CFLAGS=$CFLAGS
3800 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3801 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3802 if test "${ac_cv_prog_cc_g+set}" = set; then
3803   $as_echo_n "(cached) " >&6
3804 else
3805   ac_save_c_werror_flag=$ac_c_werror_flag
3806    ac_c_werror_flag=yes
3807    ac_cv_prog_cc_g=no
3808    CFLAGS="-g"
3809    cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h.  */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h.  */
3815
3816 int
3817 main ()
3818 {
3819
3820   ;
3821   return 0;
3822 }
3823 _ACEOF
3824 rm -f conftest.$ac_objext
3825 if { (ac_try="$ac_compile"
3826 case "(($ac_try" in
3827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828   *) ac_try_echo=$ac_try;;
3829 esac
3830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3831 $as_echo "$ac_try_echo") >&5
3832   (eval "$ac_compile") 2>conftest.er1
3833   ac_status=$?
3834   grep -v '^ *+' conftest.er1 >conftest.err
3835   rm -f conftest.er1
3836   cat conftest.err >&5
3837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838   (exit $ac_status); } && {
3839          test -z "$ac_c_werror_flag" ||
3840          test ! -s conftest.err
3841        } && test -s conftest.$ac_objext; then
3842   ac_cv_prog_cc_g=yes
3843 else
3844   $as_echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3846
3847         CFLAGS=""
3848       cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h.  */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h.  */
3854
3855 int
3856 main ()
3857 {
3858
3859   ;
3860   return 0;
3861 }
3862 _ACEOF
3863 rm -f conftest.$ac_objext
3864 if { (ac_try="$ac_compile"
3865 case "(($ac_try" in
3866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867   *) ac_try_echo=$ac_try;;
3868 esac
3869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3870 $as_echo "$ac_try_echo") >&5
3871   (eval "$ac_compile") 2>conftest.er1
3872   ac_status=$?
3873   grep -v '^ *+' conftest.er1 >conftest.err
3874   rm -f conftest.er1
3875   cat conftest.err >&5
3876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); } && {
3878          test -z "$ac_c_werror_flag" ||
3879          test ! -s conftest.err
3880        } && test -s conftest.$ac_objext; then
3881   :
3882 else
3883   $as_echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3885
3886         ac_c_werror_flag=$ac_save_c_werror_flag
3887          CFLAGS="-g"
3888          cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h.  */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h.  */
3894
3895 int
3896 main ()
3897 {
3898
3899   ;
3900   return 0;
3901 }
3902 _ACEOF
3903 rm -f conftest.$ac_objext
3904 if { (ac_try="$ac_compile"
3905 case "(($ac_try" in
3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907   *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3910 $as_echo "$ac_try_echo") >&5
3911   (eval "$ac_compile") 2>conftest.er1
3912   ac_status=$?
3913   grep -v '^ *+' conftest.er1 >conftest.err
3914   rm -f conftest.er1
3915   cat conftest.err >&5
3916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917   (exit $ac_status); } && {
3918          test -z "$ac_c_werror_flag" ||
3919          test ! -s conftest.err
3920        } && test -s conftest.$ac_objext; then
3921   ac_cv_prog_cc_g=yes
3922 else
3923   $as_echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926
3927 fi
3928
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 fi
3931
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 fi
3934
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936    ac_c_werror_flag=$ac_save_c_werror_flag
3937 fi
3938 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3939 $as_echo "$ac_cv_prog_cc_g" >&6; }
3940 if test "$ac_test_CFLAGS" = set; then
3941   CFLAGS=$ac_save_CFLAGS
3942 elif test $ac_cv_prog_cc_g = yes; then
3943   if test "$GCC" = yes; then
3944     CFLAGS="-g -O2"
3945   else
3946     CFLAGS="-g"
3947   fi
3948 else
3949   if test "$GCC" = yes; then
3950     CFLAGS="-O2"
3951   else
3952     CFLAGS=
3953   fi
3954 fi
3955 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3956 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3957 if test "${ac_cv_prog_cc_c89+set}" = set; then
3958   $as_echo_n "(cached) " >&6
3959 else
3960   ac_cv_prog_cc_c89=no
3961 ac_save_CC=$CC
3962 cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h.  */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h.  */
3968 #include <stdarg.h>
3969 #include <stdio.h>
3970 #include <sys/types.h>
3971 #include <sys/stat.h>
3972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3973 struct buf { int x; };
3974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3975 static char *e (p, i)
3976      char **p;
3977      int i;
3978 {
3979   return p[i];
3980 }
3981 static char *f (char * (*g) (char **, int), char **p, ...)
3982 {
3983   char *s;
3984   va_list v;
3985   va_start (v,p);
3986   s = g (p, va_arg (v,int));
3987   va_end (v);
3988   return s;
3989 }
3990
3991 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3992    function prototypes and stuff, but not '\xHH' hex character constants.
3993    These don't provoke an error unfortunately, instead are silently treated
3994    as 'x'.  The following induces an error, until -std is added to get
3995    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3996    array size at least.  It's necessary to write '\x00'==0 to get something
3997    that's true only with -std.  */
3998 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3999
4000 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4001    inside strings and character constants.  */
4002 #define FOO(x) 'x'
4003 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4004
4005 int test (int i, double x);
4006 struct s1 {int (*f) (int a);};
4007 struct s2 {int (*f) (double a);};
4008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4009 int argc;
4010 char **argv;
4011 int
4012 main ()
4013 {
4014 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4015   ;
4016   return 0;
4017 }
4018 _ACEOF
4019 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4020         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4021 do
4022   CC="$ac_save_CC $ac_arg"
4023   rm -f conftest.$ac_objext
4024 if { (ac_try="$ac_compile"
4025 case "(($ac_try" in
4026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027   *) ac_try_echo=$ac_try;;
4028 esac
4029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4030 $as_echo "$ac_try_echo") >&5
4031   (eval "$ac_compile") 2>conftest.er1
4032   ac_status=$?
4033   grep -v '^ *+' conftest.er1 >conftest.err
4034   rm -f conftest.er1
4035   cat conftest.err >&5
4036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); } && {
4038          test -z "$ac_c_werror_flag" ||
4039          test ! -s conftest.err
4040        } && test -s conftest.$ac_objext; then
4041   ac_cv_prog_cc_c89=$ac_arg
4042 else
4043   $as_echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4045
4046
4047 fi
4048
4049 rm -f core conftest.err conftest.$ac_objext
4050   test "x$ac_cv_prog_cc_c89" != "xno" && break
4051 done
4052 rm -f conftest.$ac_ext
4053 CC=$ac_save_CC
4054
4055 fi
4056 # AC_CACHE_VAL
4057 case "x$ac_cv_prog_cc_c89" in
4058   x)
4059     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4060 $as_echo "none needed" >&6; } ;;
4061   xno)
4062     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4063 $as_echo "unsupported" >&6; } ;;
4064   *)
4065     CC="$CC $ac_cv_prog_cc_c89"
4066     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4067 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4068 esac
4069
4070
4071 ac_ext=c
4072 ac_cpp='$CPP $CPPFLAGS'
4073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076
4077
4078
4079
4080
4081
4082
4083
4084     r="`eval echo '$'"CC"`"
4085     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
4086         true
4087     else
4088         ##STEPMAKE_WARN(cannot find . )
4089         false
4090     fi
4091
4092     if test $? -ne 0; then
4093
4094     eval ""=\"`eval echo \"'$'\" \"cc\"`\"
4095
4096         if test "" = "REQUIRED"; then
4097             command="echo ERROR: cc not found"
4098             # abort configure process here?
4099         else
4100             command="- echo cc not found"
4101         fi
4102         eval "CC"='$command'
4103         false
4104     else
4105         true
4106     fi
4107
4108     LD='$(CC)'
4109
4110
4111     # If -pipe requested, test if it works and add to CFLAGS.
4112     if test "$pipe_b" = yes; then
4113         save_cflags="$CFLAGS"
4114         CFLAGS=" -pipe $CFLAGS";
4115         { $as_echo "$as_me:$LINENO: checking whether compiler understands -pipe" >&5
4116 $as_echo_n "checking whether compiler understands -pipe... " >&6; }
4117 if test "${stepmake_cv_cflags_pipe+set}" = set; then
4118   $as_echo_n "(cached) " >&6
4119 else
4120
4121 cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h.  */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h.  */
4127 /* -pipe test */
4128 int
4129 main ()
4130 {
4131
4132   ;
4133   return 0;
4134 }
4135 _ACEOF
4136 rm -f conftest.$ac_objext
4137 if { (ac_try="$ac_compile"
4138 case "(($ac_try" in
4139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140   *) ac_try_echo=$ac_try;;
4141 esac
4142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4143 $as_echo "$ac_try_echo") >&5
4144   (eval "$ac_compile") 2>conftest.er1
4145   ac_status=$?
4146   grep -v '^ *+' conftest.er1 >conftest.err
4147   rm -f conftest.er1
4148   cat conftest.err >&5
4149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); } && {
4151          test -z "$ac_c_werror_flag" ||
4152          test ! -s conftest.err
4153        } && test -s conftest.$ac_objext; then
4154   stepmake_cv_cflags_pipe=yes
4155 else
4156   $as_echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159         stepmake_cv_cflags_pipe=no
4160 fi
4161
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 fi
4164 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_cflags_pipe" >&5
4165 $as_echo "$stepmake_cv_cflags_pipe" >&6; }
4166         CFLAGS=$save_cflags
4167         if test $stepmake_cv_cflags_pipe = yes; then
4168             OPTIMIZE="$OPTIMIZE -pipe"
4169         fi
4170     fi
4171
4172     CFLAGS="$CFLAGS $OPTIMIZE"
4173     CPPFLAGS=${CPPFLAGS-""}
4174
4175     { $as_echo "$as_me:$LINENO: checking for IEEE-conformance compiler flags" >&5
4176 $as_echo_n "checking for IEEE-conformance compiler flags... " >&6; }
4177     save_cflags="$CFLAGS"
4178     case "$host" in
4179         alpha*-*-*)
4180                     { $as_echo "$as_me:$LINENO: result: -mieee" >&5
4181 $as_echo "-mieee" >&6; }
4182             CFLAGS=" -mieee $CFLAGS"
4183             ;;
4184         *)
4185             { $as_echo "$as_me:$LINENO: result: none" >&5
4186 $as_echo "none" >&6; }
4187             ;;
4188     esac
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198 # Extract the first word of "fc-list", so it can be a program name with args.
4199 set dummy fc-list; ac_word=$2
4200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if test "${ac_cv_prog_FCLIST+set}" = set; then
4203   $as_echo_n "(cached) " >&6
4204 else
4205   if test -n "$FCLIST"; then
4206   ac_cv_prog_FCLIST="$FCLIST" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211   IFS=$as_save_IFS
4212   test -z "$as_dir" && as_dir=.
4213   for ac_exec_ext in '' $ac_executable_extensions; do
4214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215     ac_cv_prog_FCLIST="fc-list"
4216     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217     break 2
4218   fi
4219 done
4220 done
4221 IFS=$as_save_IFS
4222
4223 fi
4224 fi
4225 FCLIST=$ac_cv_prog_FCLIST
4226 if test -n "$FCLIST"; then
4227   { $as_echo "$as_me:$LINENO: result: $FCLIST" >&5
4228 $as_echo "$FCLIST" >&6; }
4229 else
4230   { $as_echo "$as_me:$LINENO: result: no" >&5
4231 $as_echo "no" >&6; }
4232 fi
4233
4234
4235 { $as_echo "$as_me:$LINENO: checking New Century Schoolbook PFB files" >&5
4236 $as_echo_n "checking New Century Schoolbook PFB files... " >&6; }
4237
4238
4239 UNCHECKED_NCSB_SOURCE_FILES=""
4240 if test "$NCSB_DIR" != "" ;  then
4241   for f in c059013l c059016l c059033l c059036l; do
4242     if test ! -f "$NCSB_DIR/$f.pfb"; then
4243
4244     { $as_echo "$as_me:$LINENO: WARNING: $NCSB_DIR does not contain $f.pfb." >&5
4245 $as_echo "$as_me: WARNING: $NCSB_DIR does not contain $f.pfb." >&2;}
4246     warn_b=yes
4247
4248     else
4249       UNCHECKED_NCSB_SOURCE_FILES="$NCSB_DIR/$f.pfb $UNCHECKED_NCSB_SOURCE_FILES"
4250     fi
4251   done
4252 else
4253   if test "$FCLIST" != ""; then
4254     for style in Roman Italic "Bold Italic" Bold; do
4255       NCSB_FILE=`$FCLIST "Century Schoolbook L:style=$style:foundry=urw:fontformat=Type 1" file \
4256                 | head -n 1`
4257       NCSB_FILE=`echo $NCSB_FILE | sed 's/\(:.*\)$//g'`
4258       NCSB_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $NCSB_FILE`
4259       UNCHECKED_NCSB_SOURCE_FILES="$NCSB_FILE $UNCHECKED_NCSB_SOURCE_FILES"
4260     done
4261     NCSB_DIR=`$as_dirname -- $NCSB_FILE ||
4262 $as_expr X$NCSB_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4263          X$NCSB_FILE : 'X\(//\)[^/]' \| \
4264          X$NCSB_FILE : 'X\(//\)$' \| \
4265          X$NCSB_FILE : 'X\(/\)' \| . 2>/dev/null ||
4266 $as_echo X$NCSB_FILE |
4267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4268             s//\1/
4269             q
4270           }
4271           /^X\(\/\/\)[^/].*/{
4272             s//\1/
4273             q
4274           }
4275           /^X\(\/\/\)$/{
4276             s//\1/
4277             q
4278           }
4279           /^X\(\/\).*/{
4280             s//\1/
4281             q
4282           }
4283           s/.*/./; q'`
4284   else
4285     { $as_echo "$as_me:$LINENO: result: not found" >&5
4286 $as_echo "not found" >&6; }
4287     echo "Can't find Century Schoolbook files. Install FontConfig's fc-list,"
4288     echo "or use --with-ncsb-dir"
4289   fi
4290 fi
4291 NCSB_SOURCE_FILES=""
4292 for f in $UNCHECKED_NCSB_SOURCE_FILES; do
4293   if test "`grep Cyrillic "$f"`" = ""; then
4294
4295     { $as_echo "$as_me:$LINENO: WARNING: $f does not have Cyrillic characters." >&5
4296 $as_echo "$as_me: WARNING: $f does not have Cyrillic characters." >&2;}
4297     warn_b=yes
4298
4299   else
4300     NCSB_SOURCE_FILES="$f $NCSB_SOURCE_FILES"
4301   fi
4302 done
4303 { $as_echo "$as_me:$LINENO: result: $NCSB_SOURCE_FILES" >&5
4304 $as_echo "$NCSB_SOURCE_FILES" >&6; }
4305
4306 ac_ext=cpp
4307 ac_cpp='$CXXCPP $CPPFLAGS'
4308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4311
4312
4313
4314     unset pv
4315     { $as_echo "$as_me:$LINENO: checking for python" >&5
4316 $as_echo_n "checking for python... " >&6; }
4317     for python in $PYTHON python python2 python2.4 python2.3 python2.2 python2.1 python2.0; do
4318         { $as_echo "$as_me:$LINENO: result: $python" >&5
4319 $as_echo "$python" >&6; }
4320         if ! $python -V > /dev/null 2>&1 ; then
4321             #AC_MSG_WARN([cannot execute $python])
4322             PYTHON='echo no python'
4323         else
4324             unset pv
4325
4326     r="`eval echo '$'"python"`"
4327     { $as_echo "$as_me:$LINENO: checking $r version" >&5
4328 $as_echo_n "checking $r version... " >&6; }
4329     exe=`
4330     ## which doesn't work in ash, if /usr/bin/which isn't installed
4331     ## type -p doesn't work in ash
4332     ## command -v doesn't work in zsh
4333     ## command -v "$r" 2>&1
4334     ## this test should work in ash, bash, pdksh (ksh), zsh
4335     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4336 `
4337     if test -n ""; then
4338         ver=""
4339     else
4340         ver=`
4341     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4342     ##
4343     ## ARG.
4344     ## Workaround for broken Debian gcc version string:
4345     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4346     ##
4347     ## -V: Workaround for python
4348
4349     #dnl
4350
4351     ## Assume and hunt for dotted version multiplet.
4352     ## use eval trickery, because we cannot use multi-level $() instead of ``
4353     ## for compatibility reasons.
4354
4355     ## grab the first version number in  --version output.
4356     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4357                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4358                 head -n 1 |
4359                 tr ' ' '\n' |
4360                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4361                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4362                 head -n 1\`\"
4363
4364     if test -z "$_ver"; then
4365         ## If empty, try date [fontforge]
4366         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
4367             | head -n 1 \
4368             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4369     fi
4370     echo "$_ver"
4371     #dnl
4372 `
4373     fi
4374     num=`
4375     echo "$ver" | awk -F. '
4376     {
4377       if ($3) {three = $3}
4378       else {three = 0}
4379     }
4380     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4381 `
4382     req=`
4383     echo "2.4" | awk -F. '
4384     {
4385       if ($3) {three = $3}
4386       else {three = 0}
4387     }
4388     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4389 `
4390     { $as_echo "$as_me:$LINENO: result: $ver" >&5
4391 $as_echo "$ver" >&6; }
4392     if test "$num" -lt "$req"; then
4393
4394     eval "pv"=\"`eval echo \"'$'pv\" \""$r >= 2.4 (installed: $ver)"\"`\"
4395
4396     fi
4397     vervar="`echo python | tr 'a-z' 'A-Z'`_VERSION"
4398     eval `echo $vervar=$num`
4399 ##    AC_SUBST(`eval echo $vervar`)
4400
4401             if test -z "$pv"; then
4402                 PYTHON=$python
4403                 break
4404             fi
4405         fi
4406     done
4407     if test -n "$pv"; then
4408
4409     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$pv\"`\"
4410
4411     fi
4412     # clear cached value since arg 2 might point us to a new binary
4413     unset ac_cv_path_PYTHON
4414
4415     # Extract the first word of "$PYTHON", so it can be a program name with args.
4416 set dummy $PYTHON; ac_word=$2
4417 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 $as_echo_n "checking for $ac_word... " >&6; }
4419 if test "${ac_cv_path_PYTHON+set}" = set; then
4420   $as_echo_n "(cached) " >&6
4421 else
4422   case $PYTHON in
4423   [\\/]* | ?:[\\/]*)
4424   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4425   ;;
4426   *)
4427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4429 do
4430   IFS=$as_save_IFS
4431   test -z "$as_dir" && as_dir=.
4432   for ac_exec_ext in '' $ac_executable_extensions; do
4433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4435     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436     break 2
4437   fi
4438 done
4439 done
4440 IFS=$as_save_IFS
4441
4442   ;;
4443 esac
4444 fi
4445 PYTHON=$ac_cv_path_PYTHON
4446 if test -n "$PYTHON"; then
4447   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
4448 $as_echo "$PYTHON" >&6; }
4449 else
4450   { $as_echo "$as_me:$LINENO: result: no" >&5
4451 $as_echo "no" >&6; }
4452 fi
4453
4454
4455
4456
4457 # this checks if we have GNU C by compiling a program with
4458 # __GNUC__, but that macro now unofficially means "the compiler
4459 # supports the GNU C extensions" -- the intel C compiler and clang
4460 # both support __GNUC__!
4461 ac_ext=cpp
4462 ac_cpp='$CXXCPP $CPPFLAGS'
4463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4466 if test -z "$CXX"; then
4467   if test -n "$CCC"; then
4468     CXX=$CCC
4469   else
4470     if test -n "$ac_tool_prefix"; then
4471   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4472   do
4473     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4476 $as_echo_n "checking for $ac_word... " >&6; }
4477 if test "${ac_cv_prog_CXX+set}" = set; then
4478   $as_echo_n "(cached) " >&6
4479 else
4480   if test -n "$CXX"; then
4481   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4482 else
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4485 do
4486   IFS=$as_save_IFS
4487   test -z "$as_dir" && as_dir=.
4488   for ac_exec_ext in '' $ac_executable_extensions; do
4489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4491     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492     break 2
4493   fi
4494 done
4495 done
4496 IFS=$as_save_IFS
4497
4498 fi
4499 fi
4500 CXX=$ac_cv_prog_CXX
4501 if test -n "$CXX"; then
4502   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4503 $as_echo "$CXX" >&6; }
4504 else
4505   { $as_echo "$as_me:$LINENO: result: no" >&5
4506 $as_echo "no" >&6; }
4507 fi
4508
4509
4510     test -n "$CXX" && break
4511   done
4512 fi
4513 if test -z "$CXX"; then
4514   ac_ct_CXX=$CXX
4515   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4516 do
4517   # Extract the first word of "$ac_prog", so it can be a program name with args.
4518 set dummy $ac_prog; ac_word=$2
4519 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 $as_echo_n "checking for $ac_word... " >&6; }
4521 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4522   $as_echo_n "(cached) " >&6
4523 else
4524   if test -n "$ac_ct_CXX"; then
4525   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4526 else
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4529 do
4530   IFS=$as_save_IFS
4531   test -z "$as_dir" && as_dir=.
4532   for ac_exec_ext in '' $ac_executable_extensions; do
4533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4534     ac_cv_prog_ac_ct_CXX="$ac_prog"
4535     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536     break 2
4537   fi
4538 done
4539 done
4540 IFS=$as_save_IFS
4541
4542 fi
4543 fi
4544 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4545 if test -n "$ac_ct_CXX"; then
4546   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4547 $as_echo "$ac_ct_CXX" >&6; }
4548 else
4549   { $as_echo "$as_me:$LINENO: result: no" >&5
4550 $as_echo "no" >&6; }
4551 fi
4552
4553
4554   test -n "$ac_ct_CXX" && break
4555 done
4556
4557   if test "x$ac_ct_CXX" = x; then
4558     CXX="g++"
4559   else
4560     case $cross_compiling:$ac_tool_warned in
4561 yes:)
4562 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4564 ac_tool_warned=yes ;;
4565 esac
4566     CXX=$ac_ct_CXX
4567   fi
4568 fi
4569
4570   fi
4571 fi
4572 # Provide some information about the compiler.
4573 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4574 set X $ac_compile
4575 ac_compiler=$2
4576 { (ac_try="$ac_compiler --version >&5"
4577 case "(($ac_try" in
4578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579   *) ac_try_echo=$ac_try;;
4580 esac
4581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4582 $as_echo "$ac_try_echo") >&5
4583   (eval "$ac_compiler --version >&5") 2>&5
4584   ac_status=$?
4585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); }
4587 { (ac_try="$ac_compiler -v >&5"
4588 case "(($ac_try" in
4589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590   *) ac_try_echo=$ac_try;;
4591 esac
4592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4593 $as_echo "$ac_try_echo") >&5
4594   (eval "$ac_compiler -v >&5") 2>&5
4595   ac_status=$?
4596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); }
4598 { (ac_try="$ac_compiler -V >&5"
4599 case "(($ac_try" in
4600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601   *) ac_try_echo=$ac_try;;
4602 esac
4603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4604 $as_echo "$ac_try_echo") >&5
4605   (eval "$ac_compiler -V >&5") 2>&5
4606   ac_status=$?
4607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); }
4609
4610 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4611 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4612 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4613   $as_echo_n "(cached) " >&6
4614 else
4615   cat >conftest.$ac_ext <<_ACEOF
4616 /* confdefs.h.  */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h.  */
4621
4622 int
4623 main ()
4624 {
4625 #ifndef __GNUC__
4626        choke me
4627 #endif
4628
4629   ;
4630   return 0;
4631 }
4632 _ACEOF
4633 rm -f conftest.$ac_objext
4634 if { (ac_try="$ac_compile"
4635 case "(($ac_try" in
4636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637   *) ac_try_echo=$ac_try;;
4638 esac
4639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4640 $as_echo "$ac_try_echo") >&5
4641   (eval "$ac_compile") 2>conftest.er1
4642   ac_status=$?
4643   grep -v '^ *+' conftest.er1 >conftest.err
4644   rm -f conftest.er1
4645   cat conftest.err >&5
4646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); } && {
4648          test -z "$ac_cxx_werror_flag" ||
4649          test ! -s conftest.err
4650        } && test -s conftest.$ac_objext; then
4651   ac_compiler_gnu=yes
4652 else
4653   $as_echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4655
4656         ac_compiler_gnu=no
4657 fi
4658
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4661
4662 fi
4663 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4664 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4665 if test $ac_compiler_gnu = yes; then
4666   GXX=yes
4667 else
4668   GXX=
4669 fi
4670 ac_test_CXXFLAGS=${CXXFLAGS+set}
4671 ac_save_CXXFLAGS=$CXXFLAGS
4672 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4673 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4674 if test "${ac_cv_prog_cxx_g+set}" = set; then
4675   $as_echo_n "(cached) " >&6
4676 else
4677   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4678    ac_cxx_werror_flag=yes
4679    ac_cv_prog_cxx_g=no
4680    CXXFLAGS="-g"
4681    cat >conftest.$ac_ext <<_ACEOF
4682 /* confdefs.h.  */
4683 _ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h.  */
4687
4688 int
4689 main ()
4690 {
4691
4692   ;
4693   return 0;
4694 }
4695 _ACEOF
4696 rm -f conftest.$ac_objext
4697 if { (ac_try="$ac_compile"
4698 case "(($ac_try" in
4699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700   *) ac_try_echo=$ac_try;;
4701 esac
4702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4703 $as_echo "$ac_try_echo") >&5
4704   (eval "$ac_compile") 2>conftest.er1
4705   ac_status=$?
4706   grep -v '^ *+' conftest.er1 >conftest.err
4707   rm -f conftest.er1
4708   cat conftest.err >&5
4709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710   (exit $ac_status); } && {
4711          test -z "$ac_cxx_werror_flag" ||
4712          test ! -s conftest.err
4713        } && test -s conftest.$ac_objext; then
4714   ac_cv_prog_cxx_g=yes
4715 else
4716   $as_echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4718
4719         CXXFLAGS=""
4720       cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h.  */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h.  */
4726
4727 int
4728 main ()
4729 {
4730
4731   ;
4732   return 0;
4733 }
4734 _ACEOF
4735 rm -f conftest.$ac_objext
4736 if { (ac_try="$ac_compile"
4737 case "(($ac_try" in
4738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739   *) ac_try_echo=$ac_try;;
4740 esac
4741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4742 $as_echo "$ac_try_echo") >&5
4743   (eval "$ac_compile") 2>conftest.er1
4744   ac_status=$?
4745   grep -v '^ *+' conftest.er1 >conftest.err
4746   rm -f conftest.er1
4747   cat conftest.err >&5
4748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); } && {
4750          test -z "$ac_cxx_werror_flag" ||
4751          test ! -s conftest.err
4752        } && test -s conftest.$ac_objext; then
4753   :
4754 else
4755   $as_echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4757
4758         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4759          CXXFLAGS="-g"
4760          cat >conftest.$ac_ext <<_ACEOF
4761 /* confdefs.h.  */
4762 _ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h.  */
4766
4767 int
4768 main ()
4769 {
4770
4771   ;
4772   return 0;
4773 }
4774 _ACEOF
4775 rm -f conftest.$ac_objext
4776 if { (ac_try="$ac_compile"
4777 case "(($ac_try" in
4778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779   *) ac_try_echo=$ac_try;;
4780 esac
4781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4782 $as_echo "$ac_try_echo") >&5
4783   (eval "$ac_compile") 2>conftest.er1
4784   ac_status=$?
4785   grep -v '^ *+' conftest.er1 >conftest.err
4786   rm -f conftest.er1
4787   cat conftest.err >&5
4788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); } && {
4790          test -z "$ac_cxx_werror_flag" ||
4791          test ! -s conftest.err
4792        } && test -s conftest.$ac_objext; then
4793   ac_cv_prog_cxx_g=yes
4794 else
4795   $as_echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4797
4798
4799 fi
4800
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 fi
4803
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4809 fi
4810 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4811 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4812 if test "$ac_test_CXXFLAGS" = set; then
4813   CXXFLAGS=$ac_save_CXXFLAGS
4814 elif test $ac_cv_prog_cxx_g = yes; then
4815   if test "$GXX" = yes; then
4816     CXXFLAGS="-g -O2"
4817   else
4818     CXXFLAGS="-g"
4819   fi
4820 else
4821   if test "$GXX" = yes; then
4822     CXXFLAGS="-O2"
4823   else
4824     CXXFLAGS=
4825   fi
4826 fi
4827 ac_ext=cpp
4828 ac_cpp='$CXXCPP $CPPFLAGS'
4829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4832
4833
4834 ac_ext=cpp
4835 ac_cpp='$CXXCPP $CPPFLAGS'
4836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4839 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4840 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4841 if test -z "$CXXCPP"; then
4842   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4843   $as_echo_n "(cached) " >&6
4844 else
4845       # Double quotes because CXXCPP needs to be expanded
4846     for CXXCPP in "$CXX -E" "/lib/cpp"
4847     do
4848       ac_preproc_ok=false
4849 for ac_cxx_preproc_warn_flag in '' yes
4850 do
4851   # Use a header file that comes with gcc, so configuring glibc
4852   # with a fresh cross-compiler works.
4853   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4854   # <limits.h> exists even on freestanding compilers.
4855   # On the NeXT, cc -E runs the code through the compiler's parser,
4856   # not just through cpp. "Syntax error" is here to catch this case.
4857   cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h.  */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h.  */
4863 #ifdef __STDC__
4864 # include <limits.h>
4865 #else
4866 # include <assert.h>
4867 #endif
4868                      Syntax error
4869 _ACEOF
4870 if { (ac_try="$ac_cpp conftest.$ac_ext"
4871 case "(($ac_try" in
4872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873   *) ac_try_echo=$ac_try;;
4874 esac
4875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4876 $as_echo "$ac_try_echo") >&5
4877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4878   ac_status=$?
4879   grep -v '^ *+' conftest.er1 >conftest.err
4880   rm -f conftest.er1
4881   cat conftest.err >&5
4882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); } >/dev/null && {
4884          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4885          test ! -s conftest.err
4886        }; then
4887   :
4888 else
4889   $as_echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4891
4892   # Broken: fails on valid input.
4893 continue
4894 fi
4895
4896 rm -f conftest.err conftest.$ac_ext
4897
4898   # OK, works on sane cases.  Now check whether nonexistent headers
4899   # can be detected and how.
4900   cat >conftest.$ac_ext <<_ACEOF
4901 /* confdefs.h.  */
4902 _ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h.  */
4906 #include <ac_nonexistent.h>
4907 _ACEOF
4908 if { (ac_try="$ac_cpp conftest.$ac_ext"
4909 case "(($ac_try" in
4910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911   *) ac_try_echo=$ac_try;;
4912 esac
4913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4914 $as_echo "$ac_try_echo") >&5
4915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4916   ac_status=$?
4917   grep -v '^ *+' conftest.er1 >conftest.err
4918   rm -f conftest.er1
4919   cat conftest.err >&5
4920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); } >/dev/null && {
4922          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4923          test ! -s conftest.err
4924        }; then
4925   # Broken: success on invalid input.
4926 continue
4927 else
4928   $as_echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4930
4931   # Passes both tests.
4932 ac_preproc_ok=:
4933 break
4934 fi
4935
4936 rm -f conftest.err conftest.$ac_ext
4937
4938 done
4939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4940 rm -f conftest.err conftest.$ac_ext
4941 if $ac_preproc_ok; then
4942   break
4943 fi
4944
4945     done
4946     ac_cv_prog_CXXCPP=$CXXCPP
4947
4948 fi
4949   CXXCPP=$ac_cv_prog_CXXCPP
4950 else
4951   ac_cv_prog_CXXCPP=$CXXCPP
4952 fi
4953 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
4954 $as_echo "$CXXCPP" >&6; }
4955 ac_preproc_ok=false
4956 for ac_cxx_preproc_warn_flag in '' yes
4957 do
4958   # Use a header file that comes with gcc, so configuring glibc
4959   # with a fresh cross-compiler works.
4960   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4961   # <limits.h> exists even on freestanding compilers.
4962   # On the NeXT, cc -E runs the code through the compiler's parser,
4963   # not just through cpp. "Syntax error" is here to catch this case.
4964   cat >conftest.$ac_ext <<_ACEOF
4965 /* confdefs.h.  */
4966 _ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h.  */
4970 #ifdef __STDC__
4971 # include <limits.h>
4972 #else
4973 # include <assert.h>
4974 #endif
4975                      Syntax error
4976 _ACEOF
4977 if { (ac_try="$ac_cpp conftest.$ac_ext"
4978 case "(($ac_try" in
4979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980   *) ac_try_echo=$ac_try;;
4981 esac
4982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4983 $as_echo "$ac_try_echo") >&5
4984   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4985   ac_status=$?
4986   grep -v '^ *+' conftest.er1 >conftest.err
4987   rm -f conftest.er1
4988   cat conftest.err >&5
4989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990   (exit $ac_status); } >/dev/null && {
4991          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4992          test ! -s conftest.err
4993        }; then
4994   :
4995 else
4996   $as_echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4998
4999   # Broken: fails on valid input.
5000 continue
5001 fi
5002
5003 rm -f conftest.err conftest.$ac_ext
5004
5005   # OK, works on sane cases.  Now check whether nonexistent headers
5006   # can be detected and how.
5007   cat >conftest.$ac_ext <<_ACEOF
5008 /* confdefs.h.  */
5009 _ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h.  */
5013 #include <ac_nonexistent.h>
5014 _ACEOF
5015 if { (ac_try="$ac_cpp conftest.$ac_ext"
5016 case "(($ac_try" in
5017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018   *) ac_try_echo=$ac_try;;
5019 esac
5020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5021 $as_echo "$ac_try_echo") >&5
5022   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5023   ac_status=$?
5024   grep -v '^ *+' conftest.er1 >conftest.err
5025   rm -f conftest.er1
5026   cat conftest.err >&5
5027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); } >/dev/null && {
5029          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5030          test ! -s conftest.err
5031        }; then
5032   # Broken: success on invalid input.
5033 continue
5034 else
5035   $as_echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5037
5038   # Passes both tests.
5039 ac_preproc_ok=:
5040 break
5041 fi
5042
5043 rm -f conftest.err conftest.$ac_ext
5044
5045 done
5046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5047 rm -f conftest.err conftest.$ac_ext
5048 if $ac_preproc_ok; then
5049   :
5050 else
5051   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5053 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5054 See \`config.log' for more details." >&5
5055 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5056 See \`config.log' for more details." >&2;}
5057    { (exit 1); exit 1; }; }; }
5058 fi
5059
5060 ac_ext=cpp
5061 ac_cpp='$CXXCPP $CPPFLAGS'
5062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5065
5066
5067 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5068 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5069 if test "${ac_cv_path_GREP+set}" = set; then
5070   $as_echo_n "(cached) " >&6
5071 else
5072   if test -z "$GREP"; then
5073   ac_path_GREP_found=false
5074   # Loop through the user's path and test for each of PROGNAME-LIST
5075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5077 do
5078   IFS=$as_save_IFS
5079   test -z "$as_dir" && as_dir=.
5080   for ac_prog in grep ggrep; do
5081     for ac_exec_ext in '' $ac_executable_extensions; do
5082       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5083       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5084 # Check for GNU ac_path_GREP and select it if it is found.
5085   # Check for GNU $ac_path_GREP
5086 case `"$ac_path_GREP" --version 2>&1` in
5087 *GNU*)
5088   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5089 *)
5090   ac_count=0
5091   $as_echo_n 0123456789 >"conftest.in"
5092   while :
5093   do
5094     cat "conftest.in" "conftest.in" >"conftest.tmp"
5095     mv "conftest.tmp" "conftest.in"
5096     cp "conftest.in" "conftest.nl"
5097     $as_echo 'GREP' >> "conftest.nl"
5098     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5099     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5100     ac_count=`expr $ac_count + 1`
5101     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5102       # Best one so far, save it but keep looking for a better one
5103       ac_cv_path_GREP="$ac_path_GREP"
5104       ac_path_GREP_max=$ac_count
5105     fi
5106     # 10*(2^10) chars as input seems more than enough
5107     test $ac_count -gt 10 && break
5108   done
5109   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5110 esac
5111
5112       $ac_path_GREP_found && break 3
5113     done
5114   done
5115 done
5116 IFS=$as_save_IFS
5117   if test -z "$ac_cv_path_GREP"; then
5118     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5119 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5120    { (exit 1); exit 1; }; }
5121   fi
5122 else
5123   ac_cv_path_GREP=$GREP
5124 fi
5125
5126 fi
5127 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5128 $as_echo "$ac_cv_path_GREP" >&6; }
5129  GREP="$ac_cv_path_GREP"
5130
5131
5132 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5133 $as_echo_n "checking for egrep... " >&6; }
5134 if test "${ac_cv_path_EGREP+set}" = set; then
5135   $as_echo_n "(cached) " >&6
5136 else
5137   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5138    then ac_cv_path_EGREP="$GREP -E"
5139    else
5140      if test -z "$EGREP"; then
5141   ac_path_EGREP_found=false
5142   # Loop through the user's path and test for each of PROGNAME-LIST
5143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5145 do
5146   IFS=$as_save_IFS
5147   test -z "$as_dir" && as_dir=.
5148   for ac_prog in egrep; do
5149     for ac_exec_ext in '' $ac_executable_extensions; do
5150       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5151       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5152 # Check for GNU ac_path_EGREP and select it if it is found.
5153   # Check for GNU $ac_path_EGREP
5154 case `"$ac_path_EGREP" --version 2>&1` in
5155 *GNU*)
5156   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5157 *)
5158   ac_count=0
5159   $as_echo_n 0123456789 >"conftest.in"
5160   while :
5161   do
5162     cat "conftest.in" "conftest.in" >"conftest.tmp"
5163     mv "conftest.tmp" "conftest.in"
5164     cp "conftest.in" "conftest.nl"
5165     $as_echo 'EGREP' >> "conftest.nl"
5166     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5167     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5168     ac_count=`expr $ac_count + 1`
5169     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5170       # Best one so far, save it but keep looking for a better one
5171       ac_cv_path_EGREP="$ac_path_EGREP"
5172       ac_path_EGREP_max=$ac_count
5173     fi
5174     # 10*(2^10) chars as input seems more than enough
5175     test $ac_count -gt 10 && break
5176   done
5177   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5178 esac
5179
5180       $ac_path_EGREP_found && break 3
5181     done
5182   done
5183 done
5184 IFS=$as_save_IFS
5185   if test -z "$ac_cv_path_EGREP"; then
5186     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5187 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5188    { (exit 1); exit 1; }; }
5189   fi
5190 else
5191   ac_cv_path_EGREP=$EGREP
5192 fi
5193
5194    fi
5195 fi
5196 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5197 $as_echo "$ac_cv_path_EGREP" >&6; }
5198  EGREP="$ac_cv_path_EGREP"
5199
5200
5201
5202
5203     cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h.  */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h.  */
5209 #ifdef __clang__
5210        yes
5211        #endif
5212
5213 _ACEOF
5214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5215   $EGREP "yes" >/dev/null 2>&1; then
5216   HAS_CLANG=yes
5217 else
5218   HAS_CLANG=no
5219 fi
5220 rm -f conftest*
5221
5222
5223     if test "$HAS_CLANG" = "no"; then
5224         if test "$GCC" = "yes"; then
5225
5226     r="`eval echo '$'"CC"`"
5227     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5228 $as_echo_n "checking $r version... " >&6; }
5229     exe=`
5230     ## which doesn't work in ash, if /usr/bin/which isn't installed
5231     ## type -p doesn't work in ash
5232     ## command -v doesn't work in zsh
5233     ## command -v "$r" 2>&1
5234     ## this test should work in ash, bash, pdksh (ksh), zsh
5235     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5236 `
5237     if test -n ""; then
5238         ver=""
5239     else
5240         ver=`
5241     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5242     ##
5243     ## ARG.
5244     ## Workaround for broken Debian gcc version string:
5245     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5246     ##
5247     ## -V: Workaround for python
5248
5249     #dnl
5250
5251     ## Assume and hunt for dotted version multiplet.
5252     ## use eval trickery, because we cannot use multi-level $() instead of ``
5253     ## for compatibility reasons.
5254
5255     ## grab the first version number in  --version output.
5256     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5257                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5258                 head -n 1 |
5259                 tr ' ' '\n' |
5260                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5261                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5262                 head -n 1\`\"
5263
5264     if test -z "$_ver"; then
5265         ## If empty, try date [fontforge]
5266         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5267             | head -n 1 \
5268             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5269     fi
5270     echo "$_ver"
5271     #dnl
5272 `
5273     fi
5274     num=`
5275     echo "$ver" | awk -F. '
5276     {
5277       if ($3) {three = $3}
5278       else {three = 0}
5279     }
5280     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5281 `
5282     req=`
5283     echo "3.4" | awk -F. '
5284     {
5285       if ($3) {three = $3}
5286       else {three = 0}
5287     }
5288     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5289 `
5290     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5291 $as_echo "$ver" >&6; }
5292     if test "$num" -lt "$req"; then
5293
5294     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5295
5296     fi
5297     vervar="`echo CC | tr 'a-z' 'A-Z'`_VERSION"
5298     eval `echo $vervar=$num`
5299 ##    AC_SUBST(`eval echo $vervar`)
5300
5301         else
5302             warn="$CC (Please install *GNU* cc)"
5303
5304     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5305
5306         fi
5307     fi
5308     # no else, we're fine with any clang
5309
5310
5311
5312     ac_ext=cpp
5313 ac_cpp='$CXXCPP $CPPFLAGS'
5314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5317 if test -z "$CXX"; then
5318   if test -n "$CCC"; then
5319     CXX=$CCC
5320   else
5321     if test -n "$ac_tool_prefix"; then
5322   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5323   do
5324     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if test "${ac_cv_prog_CXX+set}" = set; then
5329   $as_echo_n "(cached) " >&6
5330 else
5331   if test -n "$CXX"; then
5332   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337   IFS=$as_save_IFS
5338   test -z "$as_dir" && as_dir=.
5339   for ac_exec_ext in '' $ac_executable_extensions; do
5340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5342     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5343     break 2
5344   fi
5345 done
5346 done
5347 IFS=$as_save_IFS
5348
5349 fi
5350 fi
5351 CXX=$ac_cv_prog_CXX
5352 if test -n "$CXX"; then
5353   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5354 $as_echo "$CXX" >&6; }
5355 else
5356   { $as_echo "$as_me:$LINENO: result: no" >&5
5357 $as_echo "no" >&6; }
5358 fi
5359
5360
5361     test -n "$CXX" && break
5362   done
5363 fi
5364 if test -z "$CXX"; then
5365   ac_ct_CXX=$CXX
5366   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5367 do
5368   # Extract the first word of "$ac_prog", so it can be a program name with args.
5369 set dummy $ac_prog; ac_word=$2
5370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5373   $as_echo_n "(cached) " >&6
5374 else
5375   if test -n "$ac_ct_CXX"; then
5376   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5377 else
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381   IFS=$as_save_IFS
5382   test -z "$as_dir" && as_dir=.
5383   for ac_exec_ext in '' $ac_executable_extensions; do
5384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385     ac_cv_prog_ac_ct_CXX="$ac_prog"
5386     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387     break 2
5388   fi
5389 done
5390 done
5391 IFS=$as_save_IFS
5392
5393 fi
5394 fi
5395 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5396 if test -n "$ac_ct_CXX"; then
5397   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5398 $as_echo "$ac_ct_CXX" >&6; }
5399 else
5400   { $as_echo "$as_me:$LINENO: result: no" >&5
5401 $as_echo "no" >&6; }
5402 fi
5403
5404
5405   test -n "$ac_ct_CXX" && break
5406 done
5407
5408   if test "x$ac_ct_CXX" = x; then
5409     CXX="g++"
5410   else
5411     case $cross_compiling:$ac_tool_warned in
5412 yes:)
5413 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415 ac_tool_warned=yes ;;
5416 esac
5417     CXX=$ac_ct_CXX
5418   fi
5419 fi
5420
5421   fi
5422 fi
5423 # Provide some information about the compiler.
5424 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5425 set X $ac_compile
5426 ac_compiler=$2
5427 { (ac_try="$ac_compiler --version >&5"
5428 case "(($ac_try" in
5429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430   *) ac_try_echo=$ac_try;;
5431 esac
5432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5433 $as_echo "$ac_try_echo") >&5
5434   (eval "$ac_compiler --version >&5") 2>&5
5435   ac_status=$?
5436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); }
5438 { (ac_try="$ac_compiler -v >&5"
5439 case "(($ac_try" in
5440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441   *) ac_try_echo=$ac_try;;
5442 esac
5443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5444 $as_echo "$ac_try_echo") >&5
5445   (eval "$ac_compiler -v >&5") 2>&5
5446   ac_status=$?
5447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448   (exit $ac_status); }
5449 { (ac_try="$ac_compiler -V >&5"
5450 case "(($ac_try" in
5451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5452   *) ac_try_echo=$ac_try;;
5453 esac
5454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5455 $as_echo "$ac_try_echo") >&5
5456   (eval "$ac_compiler -V >&5") 2>&5
5457   ac_status=$?
5458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); }
5460
5461 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5462 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5463 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5464   $as_echo_n "(cached) " >&6
5465 else
5466   cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h.  */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h.  */
5472
5473 int
5474 main ()
5475 {
5476 #ifndef __GNUC__
5477        choke me
5478 #endif
5479
5480   ;
5481   return 0;
5482 }
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5486 case "(($ac_try" in
5487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488   *) ac_try_echo=$ac_try;;
5489 esac
5490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5491 $as_echo "$ac_try_echo") >&5
5492   (eval "$ac_compile") 2>conftest.er1
5493   ac_status=$?
5494   grep -v '^ *+' conftest.er1 >conftest.err
5495   rm -f conftest.er1
5496   cat conftest.err >&5
5497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); } && {
5499          test -z "$ac_cxx_werror_flag" ||
5500          test ! -s conftest.err
5501        } && test -s conftest.$ac_objext; then
5502   ac_compiler_gnu=yes
5503 else
5504   $as_echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5506
5507         ac_compiler_gnu=no
5508 fi
5509
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5512
5513 fi
5514 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5515 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5516 if test $ac_compiler_gnu = yes; then
5517   GXX=yes
5518 else
5519   GXX=
5520 fi
5521 ac_test_CXXFLAGS=${CXXFLAGS+set}
5522 ac_save_CXXFLAGS=$CXXFLAGS
5523 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5524 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5525 if test "${ac_cv_prog_cxx_g+set}" = set; then
5526   $as_echo_n "(cached) " >&6
5527 else
5528   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5529    ac_cxx_werror_flag=yes
5530    ac_cv_prog_cxx_g=no
5531    CXXFLAGS="-g"
5532    cat >conftest.$ac_ext <<_ACEOF
5533 /* confdefs.h.  */
5534 _ACEOF
5535 cat confdefs.h >>conftest.$ac_ext
5536 cat >>conftest.$ac_ext <<_ACEOF
5537 /* end confdefs.h.  */
5538
5539 int
5540 main ()
5541 {
5542
5543   ;
5544   return 0;
5545 }
5546 _ACEOF
5547 rm -f conftest.$ac_objext
5548 if { (ac_try="$ac_compile"
5549 case "(($ac_try" in
5550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551   *) ac_try_echo=$ac_try;;
5552 esac
5553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5554 $as_echo "$ac_try_echo") >&5
5555   (eval "$ac_compile") 2>conftest.er1
5556   ac_status=$?
5557   grep -v '^ *+' conftest.er1 >conftest.err
5558   rm -f conftest.er1
5559   cat conftest.err >&5
5560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); } && {
5562          test -z "$ac_cxx_werror_flag" ||
5563          test ! -s conftest.err
5564        } && test -s conftest.$ac_objext; then
5565   ac_cv_prog_cxx_g=yes
5566 else
5567   $as_echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5569
5570         CXXFLAGS=""
5571       cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h.  */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h.  */
5577
5578 int
5579 main ()
5580 {
5581
5582   ;
5583   return 0;
5584 }
5585 _ACEOF
5586 rm -f conftest.$ac_objext
5587 if { (ac_try="$ac_compile"
5588 case "(($ac_try" in
5589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590   *) ac_try_echo=$ac_try;;
5591 esac
5592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5593 $as_echo "$ac_try_echo") >&5
5594   (eval "$ac_compile") 2>conftest.er1
5595   ac_status=$?
5596   grep -v '^ *+' conftest.er1 >conftest.err
5597   rm -f conftest.er1
5598   cat conftest.err >&5
5599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); } && {
5601          test -z "$ac_cxx_werror_flag" ||
5602          test ! -s conftest.err
5603        } && test -s conftest.$ac_objext; then
5604   :
5605 else
5606   $as_echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5608
5609         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5610          CXXFLAGS="-g"
5611          cat >conftest.$ac_ext <<_ACEOF
5612 /* confdefs.h.  */
5613 _ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h.  */
5617
5618 int
5619 main ()
5620 {
5621
5622   ;
5623   return 0;
5624 }
5625 _ACEOF
5626 rm -f conftest.$ac_objext
5627 if { (ac_try="$ac_compile"
5628 case "(($ac_try" in
5629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630   *) ac_try_echo=$ac_try;;
5631 esac
5632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5633 $as_echo "$ac_try_echo") >&5
5634   (eval "$ac_compile") 2>conftest.er1
5635   ac_status=$?
5636   grep -v '^ *+' conftest.er1 >conftest.err
5637   rm -f conftest.er1
5638   cat conftest.err >&5
5639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); } && {
5641          test -z "$ac_cxx_werror_flag" ||
5642          test ! -s conftest.err
5643        } && test -s conftest.$ac_objext; then
5644   ac_cv_prog_cxx_g=yes
5645 else
5646   $as_echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5648
5649
5650 fi
5651
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 fi
5654
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 fi
5657
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5660 fi
5661 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5662 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5663 if test "$ac_test_CXXFLAGS" = set; then
5664   CXXFLAGS=$ac_save_CXXFLAGS
5665 elif test $ac_cv_prog_cxx_g = yes; then
5666   if test "$GXX" = yes; then
5667     CXXFLAGS="-g -O2"
5668   else
5669     CXXFLAGS="-g"
5670   fi
5671 else
5672   if test "$GXX" = yes; then
5673     CXXFLAGS="-O2"
5674   else
5675     CXXFLAGS=
5676   fi
5677 fi
5678 ac_ext=cpp
5679 ac_cpp='$CXXCPP $CPPFLAGS'
5680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5683
5684
5685
5686     r="`eval echo '$'"CXX"`"
5687     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
5688         true
5689     else
5690         ##STEPMAKE_WARN(cannot find . )
5691         false
5692     fi
5693
5694     if test $? -ne 0; then
5695
5696     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
5697
5698         if test "REQUIRED" = "REQUIRED"; then
5699             command="echo ERROR: c++ not found"
5700             # abort configure process here?
5701         else
5702             command="- echo c++ not found"
5703         fi
5704         eval "CXX"='$command'
5705         false
5706     else
5707         true
5708     fi
5709
5710
5711     CXXFLAGS="$CXXFLAGS $OPTIMIZE"
5712     LD='$(CXX)'
5713
5714
5715
5716
5717
5718
5719
5720     cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h.  */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h.  */
5726 #ifdef __clang__
5727        yes
5728        #endif
5729
5730 _ACEOF
5731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5732   $EGREP "yes" >/dev/null 2>&1; then
5733   HAS_CLANG=yes
5734 else
5735   HAS_CLANG=no
5736 fi
5737 rm -f conftest*
5738
5739
5740     if test "$HAS_CLANG" = "no"; then
5741         if test "$GXX" = "yes"; then
5742
5743     r="`eval echo '$'"CXX"`"
5744     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5745 $as_echo_n "checking $r version... " >&6; }
5746     exe=`
5747     ## which doesn't work in ash, if /usr/bin/which isn't installed
5748     ## type -p doesn't work in ash
5749     ## command -v doesn't work in zsh
5750     ## command -v "$r" 2>&1
5751     ## this test should work in ash, bash, pdksh (ksh), zsh
5752     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5753 `
5754     if test -n ""; then
5755         ver=""
5756     else
5757         ver=`
5758     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5759     ##
5760     ## ARG.
5761     ## Workaround for broken Debian gcc version string:
5762     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5763     ##
5764     ## -V: Workaround for python
5765
5766     #dnl
5767
5768     ## Assume and hunt for dotted version multiplet.
5769     ## use eval trickery, because we cannot use multi-level $() instead of ``
5770     ## for compatibility reasons.
5771
5772     ## grab the first version number in  --version output.
5773     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5774                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5775                 head -n 1 |
5776                 tr ' ' '\n' |
5777                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5778                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5779                 head -n 1\`\"
5780
5781     if test -z "$_ver"; then
5782         ## If empty, try date [fontforge]
5783         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5784             | head -n 1 \
5785             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5786     fi
5787     echo "$_ver"
5788     #dnl
5789 `
5790     fi
5791     num=`
5792     echo "$ver" | awk -F. '
5793     {
5794       if ($3) {three = $3}
5795       else {three = 0}
5796     }
5797     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5798 `
5799     req=`
5800     echo "3.4" | awk -F. '
5801     {
5802       if ($3) {three = $3}
5803       else {three = 0}
5804     }
5805     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5806 `
5807     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5808 $as_echo "$ver" >&6; }
5809     if test "$num" -lt "$req"; then
5810
5811     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5812
5813     fi
5814     vervar="`echo CXX | tr 'a-z' 'A-Z'`_VERSION"
5815     eval `echo $vervar=$num`
5816 ##    AC_SUBST(`eval echo $vervar`)
5817
5818         else
5819             warn="$CXX (Please install *GNU* c++)"
5820
5821     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5822
5823         fi
5824     fi
5825     # no else, we're fine with any clang
5826
5827
5828     { $as_echo "$as_me:$LINENO: checking options for known g++ bugs" >&5
5829 $as_echo_n "checking options for known g++ bugs... " >&6; }
5830     case "$GXX:$CXX_VERSION" in
5831         yes:400600[0-2])
5832             { $as_echo "$as_me:$LINENO: result: -fno-optimize-sibling-calls (tail call bug)" >&5
5833 $as_echo "-fno-optimize-sibling-calls (tail call bug)" >&6; }
5834             CXXFLAGS="$CXXFLAGS -fno-optimize-sibling-calls"
5835             ;;
5836         yes:400700?)
5837             { $as_echo "$as_me:$LINENO: result: -fno-tree-vrp (comparison bug)" >&5
5838 $as_echo "-fno-tree-vrp (comparison bug)" >&6; }
5839             CXXFLAGS="$CXXFLAGS -fno-tree-vrp"
5840             ;;
5841         *) { $as_echo "$as_me:$LINENO: result: none" >&5
5842 $as_echo "none" >&6; }
5843     esac
5844
5845
5846
5847     { $as_echo "$as_me:$LINENO: checking whether explicit instantiation is needed" >&5
5848 $as_echo_n "checking whether explicit instantiation is needed... " >&6; }
5849 if test "${stepmake_cv_need_explicit_instantiation+set}" = set; then
5850   $as_echo_n "(cached) " >&6
5851 else
5852   cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h.  */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h.  */
5858
5859     template <class T> struct foo { static int baz; };
5860     template <class T> int foo<T>::baz = 1;
5861
5862 int
5863 main ()
5864 {
5865  return foo<int>::baz;
5866   ;
5867   return 0;
5868 }
5869 _ACEOF
5870 rm -f conftest.$ac_objext conftest$ac_exeext
5871 if { (ac_try="$ac_link"
5872 case "(($ac_try" in
5873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874   *) ac_try_echo=$ac_try;;
5875 esac
5876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5877 $as_echo "$ac_try_echo") >&5
5878   (eval "$ac_link") 2>conftest.er1
5879   ac_status=$?
5880   grep -v '^ *+' conftest.er1 >conftest.err
5881   rm -f conftest.er1
5882   cat conftest.err >&5
5883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); } && {
5885          test -z "$ac_cxx_werror_flag" ||
5886          test ! -s conftest.err
5887        } && test -s conftest$ac_exeext && {
5888          test "$cross_compiling" = yes ||
5889          $as_test_x conftest$ac_exeext
5890        }; then
5891   stepmake_cv_need_explicit_instantiation=no
5892 else
5893   $as_echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5895
5896         stepmake_cv_need_explicit_instantiation=yes
5897 fi
5898
5899 rm -rf conftest.dSYM
5900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5901       conftest$ac_exeext conftest.$ac_ext
5902 fi
5903 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_need_explicit_instantiation" >&5
5904 $as_echo "$stepmake_cv_need_explicit_instantiation" >&6; }
5905     if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
5906         cat >>confdefs.h <<\_ACEOF
5907 #define NEED_EXPLICIT_INSTANTIATION 1
5908 _ACEOF
5909
5910     fi
5911
5912
5913     { $as_echo "$as_me:$LINENO: checking for stl.data () method" >&5
5914 $as_echo_n "checking for stl.data () method... " >&6; }
5915 if test "${stepmake_cv_stl_data_method+set}" = set; then
5916   $as_echo_n "(cached) " >&6
5917 else
5918   cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h.  */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h.  */
5924
5925 #include <vector>
5926 using namespace std;
5927 vector <int> v;
5928 void *p = v.data ();
5929
5930 int
5931 main ()
5932 {
5933
5934   ;
5935   return 0;
5936 }
5937 _ACEOF
5938 rm -f conftest.$ac_objext
5939 if { (ac_try="$ac_compile"
5940 case "(($ac_try" in
5941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942   *) ac_try_echo=$ac_try;;
5943 esac
5944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5945 $as_echo "$ac_try_echo") >&5
5946   (eval "$ac_compile") 2>conftest.er1
5947   ac_status=$?
5948   grep -v '^ *+' conftest.er1 >conftest.err
5949   rm -f conftest.er1
5950   cat conftest.err >&5
5951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); } && {
5953          test -z "$ac_cxx_werror_flag" ||
5954          test ! -s conftest.err
5955        } && test -s conftest.$ac_objext; then
5956   stepmake_cv_stl_data_method=yes
5957 else
5958   $as_echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5960
5961         stepmake_cv_stl_data_method=no
5962 fi
5963
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 fi
5966 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_stl_data_method" >&5
5967 $as_echo "$stepmake_cv_stl_data_method" >&6; }
5968     if test $stepmake_cv_stl_data_method = yes; then
5969
5970 cat >>confdefs.h <<\_ACEOF
5971 #define HAVE_STL_DATA_METHOD 1
5972 _ACEOF
5973
5974     fi
5975
5976
5977
5978     for ac_prog in ar
5979 do
5980   # Extract the first word of "$ac_prog", so it can be a program name with args.
5981 set dummy $ac_prog; ac_word=$2
5982 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 $as_echo_n "checking for $ac_word... " >&6; }
5984 if test "${ac_cv_prog_AR+set}" = set; then
5985   $as_echo_n "(cached) " >&6
5986 else
5987   if test -n "$AR"; then
5988   ac_cv_prog_AR="$AR" # Let the user override the test.
5989 else
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH
5992 do
5993   IFS=$as_save_IFS
5994   test -z "$as_dir" && as_dir=.
5995   for ac_exec_ext in '' $ac_executable_extensions; do
5996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997     ac_cv_prog_AR="$ac_prog"
5998     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999     break 2
6000   fi
6001 done
6002 done
6003 IFS=$as_save_IFS
6004
6005 fi
6006 fi
6007 AR=$ac_cv_prog_AR
6008 if test -n "$AR"; then
6009   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6010 $as_echo "$AR" >&6; }
6011 else
6012   { $as_echo "$as_me:$LINENO: result: no" >&5
6013 $as_echo "no" >&6; }
6014 fi
6015
6016
6017   test -n "$AR" && break
6018 done
6019 test -n "$AR" || AR="no"
6020
6021
6022
6023     r="`eval echo '$'"AR"`"
6024     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
6025         true
6026     else
6027         ##STEPMAKE_WARN(cannot find . )
6028         false
6029     fi
6030
6031     if test $? -ne 0; then
6032
6033     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
6034
6035         if test "REQUIRED" = "REQUIRED"; then
6036             command="echo ERROR: ar not found"
6037             # abort configure process here?
6038         else
6039             command="- echo ar not found"
6040         fi
6041         eval "AR"='$command'
6042         false
6043     else
6044         true
6045     fi
6046
6047     if test $? -eq 0 -a -n ""; then
6048
6049     r="`eval echo '$'"AR"`"
6050     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6051 $as_echo_n "checking $r version... " >&6; }
6052     exe=`
6053     ## which doesn't work in ash, if /usr/bin/which isn't installed
6054     ## type -p doesn't work in ash
6055     ## command -v doesn't work in zsh
6056     ## command -v "$r" 2>&1
6057     ## this test should work in ash, bash, pdksh (ksh), zsh
6058     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6059 `
6060     if test -n ""; then
6061         ver=""
6062     else
6063         ver=`
6064     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6065     ##
6066     ## ARG.
6067     ## Workaround for broken Debian gcc version string:
6068     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6069     ##
6070     ## -V: Workaround for python
6071
6072     #dnl
6073
6074     ## Assume and hunt for dotted version multiplet.
6075     ## use eval trickery, because we cannot use multi-level $() instead of ``
6076     ## for compatibility reasons.
6077
6078     ## grab the first version number in  --version output.
6079     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6080                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6081                 head -n 1 |
6082                 tr ' ' '\n' |
6083                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6084                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6085                 head -n 1\`\"
6086
6087     if test -z "$_ver"; then
6088         ## If empty, try date [fontforge]
6089         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6090             | head -n 1 \
6091             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6092     fi
6093     echo "$_ver"
6094     #dnl
6095 `
6096     fi
6097     num=`
6098     echo "$ver" | awk -F. '
6099     {
6100       if ($3) {three = $3}
6101       else {three = 0}
6102     }
6103     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6104 `
6105     req=`
6106     echo "" | awk -F. '
6107     {
6108       if ($3) {three = $3}
6109       else {three = 0}
6110     }
6111     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6112 `
6113     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6114 $as_echo "$ver" >&6; }
6115     if test "$num" -lt "$req"; then
6116
6117     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6118
6119     fi
6120     vervar="`echo AR | tr 'a-z' 'A-Z'`_VERSION"
6121     eval `echo $vervar=$num`
6122 ##    AC_SUBST(`eval echo $vervar`)
6123
6124     fi
6125
6126     if test -n "$ac_tool_prefix"; then
6127   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if test "${ac_cv_prog_RANLIB+set}" = set; then
6132   $as_echo_n "(cached) " >&6
6133 else
6134   if test -n "$RANLIB"; then
6135   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140   IFS=$as_save_IFS
6141   test -z "$as_dir" && as_dir=.
6142   for ac_exec_ext in '' $ac_executable_extensions; do
6143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6145     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146     break 2
6147   fi
6148 done
6149 done
6150 IFS=$as_save_IFS
6151
6152 fi
6153 fi
6154 RANLIB=$ac_cv_prog_RANLIB
6155 if test -n "$RANLIB"; then
6156   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6157 $as_echo "$RANLIB" >&6; }
6158 else
6159   { $as_echo "$as_me:$LINENO: result: no" >&5
6160 $as_echo "no" >&6; }
6161 fi
6162
6163
6164 fi
6165 if test -z "$ac_cv_prog_RANLIB"; then
6166   ac_ct_RANLIB=$RANLIB
6167   # Extract the first word of "ranlib", so it can be a program name with args.
6168 set dummy ranlib; ac_word=$2
6169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6172   $as_echo_n "(cached) " >&6
6173 else
6174   if test -n "$ac_ct_RANLIB"; then
6175   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180   IFS=$as_save_IFS
6181   test -z "$as_dir" && as_dir=.
6182   for ac_exec_ext in '' $ac_executable_extensions; do
6183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184     ac_cv_prog_ac_ct_RANLIB="ranlib"
6185     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186     break 2
6187   fi
6188 done
6189 done
6190 IFS=$as_save_IFS
6191
6192 fi
6193 fi
6194 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6195 if test -n "$ac_ct_RANLIB"; then
6196   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6197 $as_echo "$ac_ct_RANLIB" >&6; }
6198 else
6199   { $as_echo "$as_me:$LINENO: result: no" >&5
6200 $as_echo "no" >&6; }
6201 fi
6202
6203   if test "x$ac_ct_RANLIB" = x; then
6204     RANLIB=":"
6205   else
6206     case $cross_compiling:$ac_tool_warned in
6207 yes:)
6208 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210 ac_tool_warned=yes ;;
6211 esac
6212     RANLIB=$ac_ct_RANLIB
6213   fi
6214 else
6215   RANLIB="$ac_cv_prog_RANLIB"
6216 fi
6217
6218
6219
6220     r="`eval echo '$'"RANLIB"`"
6221     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
6222         true
6223     else
6224         ##STEPMAKE_WARN(cannot find . )
6225         false
6226     fi
6227
6228     if test $? -ne 0; then
6229
6230     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
6231
6232         if test "REQUIRED" = "REQUIRED"; then
6233             command="echo ERROR: ranlib not found"
6234             # abort configure process here?
6235         else
6236             command="- echo ranlib not found"
6237         fi
6238         eval "RANLIB"='$command'
6239         false
6240     else
6241         true
6242     fi
6243
6244
6245
6246
6247 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6248 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6249 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6250   $as_echo_n "(cached) " >&6
6251 else
6252   ac_check_lib_save_LIBS=$LIBS
6253 LIBS="-ldl  $LIBS"
6254 cat >conftest.$ac_ext <<_ACEOF
6255 /* confdefs.h.  */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h.  */
6260
6261 /* Override any GCC internal prototype to avoid an error.
6262    Use char because int might match the return type of a GCC
6263    builtin and then its argument prototype would still apply.  */
6264 #ifdef __cplusplus
6265 extern "C"
6266 #endif
6267 char dlopen ();
6268 int
6269 main ()
6270 {
6271 return dlopen ();
6272   ;
6273   return 0;
6274 }
6275 _ACEOF
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (ac_try="$ac_link"
6278 case "(($ac_try" in
6279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280   *) ac_try_echo=$ac_try;;
6281 esac
6282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6283 $as_echo "$ac_try_echo") >&5
6284   (eval "$ac_link") 2>conftest.er1
6285   ac_status=$?
6286   grep -v '^ *+' conftest.er1 >conftest.err
6287   rm -f conftest.er1
6288   cat conftest.err >&5
6289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); } && {
6291          test -z "$ac_cxx_werror_flag" ||
6292          test ! -s conftest.err
6293        } && test -s conftest$ac_exeext && {
6294          test "$cross_compiling" = yes ||
6295          $as_test_x conftest$ac_exeext
6296        }; then
6297   ac_cv_lib_dl_dlopen=yes
6298 else
6299   $as_echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302         ac_cv_lib_dl_dlopen=no
6303 fi
6304
6305 rm -rf conftest.dSYM
6306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6307       conftest$ac_exeext conftest.$ac_ext
6308 LIBS=$ac_check_lib_save_LIBS
6309 fi
6310 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6311 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6312 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
6313   cat >>confdefs.h <<_ACEOF
6314 #define HAVE_LIBDL 1
6315 _ACEOF
6316
6317   LIBS="-ldl $LIBS"
6318
6319 fi
6320
6321
6322 for ac_func in dlopen
6323 do
6324 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6325 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6326 $as_echo_n "checking for $ac_func... " >&6; }
6327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6328   $as_echo_n "(cached) " >&6
6329 else
6330   cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h.  */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h.  */
6336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6338 #define $ac_func innocuous_$ac_func
6339
6340 /* System header to define __stub macros and hopefully few prototypes,
6341     which can conflict with char $ac_func (); below.
6342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6343     <limits.h> exists even on freestanding compilers.  */
6344
6345 #ifdef __STDC__
6346 # include <limits.h>
6347 #else
6348 # include <assert.h>
6349 #endif
6350
6351 #undef $ac_func
6352
6353 /* Override any GCC internal prototype to avoid an error.
6354    Use char because int might match the return type of a GCC
6355    builtin and then its argument prototype would still apply.  */
6356 #ifdef __cplusplus
6357 extern "C"
6358 #endif
6359 char $ac_func ();
6360 /* The GNU C library defines this for functions which it implements
6361     to always fail with ENOSYS.  Some functions are actually named
6362     something starting with __ and the normal name is an alias.  */
6363 #if defined __stub_$ac_func || defined __stub___$ac_func
6364 choke me
6365 #endif
6366
6367 int
6368 main ()
6369 {
6370 return $ac_func ();
6371   ;
6372   return 0;
6373 }
6374 _ACEOF
6375 rm -f conftest.$ac_objext conftest$ac_exeext
6376 if { (ac_try="$ac_link"
6377 case "(($ac_try" in
6378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379   *) ac_try_echo=$ac_try;;
6380 esac
6381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6382 $as_echo "$ac_try_echo") >&5
6383   (eval "$ac_link") 2>conftest.er1
6384   ac_status=$?
6385   grep -v '^ *+' conftest.er1 >conftest.err
6386   rm -f conftest.er1
6387   cat conftest.err >&5
6388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389   (exit $ac_status); } && {
6390          test -z "$ac_cxx_werror_flag" ||
6391          test ! -s conftest.err
6392        } && test -s conftest$ac_exeext && {
6393          test "$cross_compiling" = yes ||
6394          $as_test_x conftest$ac_exeext
6395        }; then
6396   eval "$as_ac_var=yes"
6397 else
6398   $as_echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6400
6401         eval "$as_ac_var=no"
6402 fi
6403
6404 rm -rf conftest.dSYM
6405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6406       conftest$ac_exeext conftest.$ac_ext
6407 fi
6408 ac_res=`eval 'as_val=${'$as_ac_var'}
6409                  $as_echo "$as_val"'`
6410                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6411 $as_echo "$ac_res" >&6; }
6412 as_val=`eval 'as_val=${'$as_ac_var'}
6413                  $as_echo "$as_val"'`
6414    if test "x$as_val" = x""yes; then
6415   cat >>confdefs.h <<_ACEOF
6416 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6417 _ACEOF
6418
6419 fi
6420 done
6421
6422
6423 # Do not use bison 1.50 and 1.75.
6424 # 1.29 is required fr %locations, but I'm not sure it's enough --ns
6425
6426     # ugh, automake: we want (and check for) bison
6427     for ac_prog in 'bison -y' byacc
6428 do
6429   # Extract the first word of "$ac_prog", so it can be a program name with args.
6430 set dummy $ac_prog; ac_word=$2
6431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if test "${ac_cv_prog_YACC+set}" = set; then
6434   $as_echo_n "(cached) " >&6
6435 else
6436   if test -n "$YACC"; then
6437   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6441 do
6442   IFS=$as_save_IFS
6443   test -z "$as_dir" && as_dir=.
6444   for ac_exec_ext in '' $ac_executable_extensions; do
6445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446     ac_cv_prog_YACC="$ac_prog"
6447     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6448     break 2
6449   fi
6450 done
6451 done
6452 IFS=$as_save_IFS
6453
6454 fi
6455 fi
6456 YACC=$ac_cv_prog_YACC
6457 if test -n "$YACC"; then
6458   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6459 $as_echo "$YACC" >&6; }
6460 else
6461   { $as_echo "$as_me:$LINENO: result: no" >&5
6462 $as_echo "no" >&6; }
6463 fi
6464
6465
6466   test -n "$YACC" && break
6467 done
6468 test -n "$YACC" || YACC="yacc"
6469
6470
6471
6472     for ac_prog in bison
6473 do
6474   # Extract the first word of "$ac_prog", so it can be a program name with args.
6475 set dummy $ac_prog; ac_word=$2
6476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if test "${ac_cv_prog_BISON+set}" = set; then
6479   $as_echo_n "(cached) " >&6
6480 else
6481   if test -n "$BISON"; then
6482   ac_cv_prog_BISON="$BISON" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487   IFS=$as_save_IFS
6488   test -z "$as_dir" && as_dir=.
6489   for ac_exec_ext in '' $ac_executable_extensions; do
6490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491     ac_cv_prog_BISON="$ac_prog"
6492     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493     break 2
6494   fi
6495 done
6496 done
6497 IFS=$as_save_IFS
6498
6499 fi
6500 fi
6501 BISON=$ac_cv_prog_BISON
6502 if test -n "$BISON"; then
6503   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6504 $as_echo "$BISON" >&6; }
6505 else
6506   { $as_echo "$as_me:$LINENO: result: no" >&5
6507 $as_echo "no" >&6; }
6508 fi
6509
6510
6511   test -n "$BISON" && break
6512 done
6513 test -n "$BISON" || BISON="no"
6514
6515
6516
6517     r="`eval echo '$'"BISON"`"
6518     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
6519         true
6520     else
6521         ##STEPMAKE_WARN(cannot find . )
6522         false
6523     fi
6524
6525     if test $? -ne 0; then
6526
6527     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"bison\"`\"
6528
6529         if test "OPTIONAL" = "REQUIRED"; then
6530             command="echo ERROR: bison not found"
6531             # abort configure process here?
6532         else
6533             command="- echo bison not found"
6534         fi
6535         eval "BISON"='$command'
6536         false
6537     else
6538         true
6539     fi
6540
6541     if test $? -eq 0 -a -n ""; then
6542
6543     r="`eval echo '$'"BISON"`"
6544     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6545 $as_echo_n "checking $r version... " >&6; }
6546     exe=`
6547     ## which doesn't work in ash, if /usr/bin/which isn't installed
6548     ## type -p doesn't work in ash
6549     ## command -v doesn't work in zsh
6550     ## command -v "$r" 2>&1
6551     ## this test should work in ash, bash, pdksh (ksh), zsh
6552     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6553 `
6554     if test -n ""; then
6555         ver=""
6556     else
6557         ver=`
6558     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6559     ##
6560     ## ARG.
6561     ## Workaround for broken Debian gcc version string:
6562     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6563     ##
6564     ## -V: Workaround for python
6565
6566     #dnl
6567
6568     ## Assume and hunt for dotted version multiplet.
6569     ## use eval trickery, because we cannot use multi-level $() instead of ``
6570     ## for compatibility reasons.
6571
6572     ## grab the first version number in  --version output.
6573     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6574                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6575                 head -n 1 |
6576                 tr ' ' '\n' |
6577                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6578                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6579                 head -n 1\`\"
6580
6581     if test -z "$_ver"; then
6582         ## If empty, try date [fontforge]
6583         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6584             | head -n 1 \
6585             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6586     fi
6587     echo "$_ver"
6588     #dnl
6589 `
6590     fi
6591     num=`
6592     echo "$ver" | awk -F. '
6593     {
6594       if ($3) {three = $3}
6595       else {three = 0}
6596     }
6597     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6598 `
6599     req=`
6600     echo "" | awk -F. '
6601     {
6602       if ($3) {three = $3}
6603       else {three = 0}
6604     }
6605     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6606 `
6607     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6608 $as_echo "$ver" >&6; }
6609     if test "$num" -lt "$req"; then
6610
6611     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
6612
6613     fi
6614     vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6615     eval `echo $vervar=$num`
6616 ##    AC_SUBST(`eval echo $vervar`)
6617
6618     fi
6619
6620
6621     # urg.  should test functionality rather than version.
6622     if test "$BISON" = "bison" -a -n "1.29"; then
6623
6624     r="`eval echo '$'"BISON"`"
6625     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6626 $as_echo_n "checking $r version... " >&6; }
6627     exe=`
6628     ## which doesn't work in ash, if /usr/bin/which isn't installed
6629     ## type -p doesn't work in ash
6630     ## command -v doesn't work in zsh
6631     ## command -v "$r" 2>&1
6632     ## this test should work in ash, bash, pdksh (ksh), zsh
6633     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6634 `
6635     if test -n ""; then
6636         ver=""
6637     else
6638         ver=`
6639     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6640     ##
6641     ## ARG.
6642     ## Workaround for broken Debian gcc version string:
6643     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6644     ##
6645     ## -V: Workaround for python
6646
6647     #dnl
6648
6649     ## Assume and hunt for dotted version multiplet.
6650     ## use eval trickery, because we cannot use multi-level $() instead of ``
6651     ## for compatibility reasons.
6652
6653     ## grab the first version number in  --version output.
6654     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6655                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6656                 head -n 1 |
6657                 tr ' ' '\n' |
6658                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6659                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6660                 head -n 1\`\"
6661
6662     if test -z "$_ver"; then
6663         ## If empty, try date [fontforge]
6664         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6665             | head -n 1 \
6666             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6667     fi
6668     echo "$_ver"
6669     #dnl
6670 `
6671     fi
6672     num=`
6673     echo "$ver" | awk -F. '
6674     {
6675       if ($3) {three = $3}
6676       else {three = 0}
6677     }
6678     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6679 `
6680     req=`
6681     echo "1.29" | awk -F. '
6682     {
6683       if ($3) {three = $3}
6684       else {three = 0}
6685     }
6686     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6687 `
6688     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6689 $as_echo "$ver" >&6; }
6690     if test "$num" -lt "$req"; then
6691
6692     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 1.29 (installed: $ver)"\"`\"
6693
6694     fi
6695     vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6696     eval `echo $vervar=$num`
6697 ##    AC_SUBST(`eval echo $vervar`)
6698
6699     fi
6700
6701
6702     # ugh, automake: we want (and check for) flex
6703     # AC_PROG_LEX
6704     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
6705
6706     # AC_PROG_LEX()
6707     # ugh, ugh
6708     ac_cv_prog_lex_root=lex.yy
6709
6710     for ac_prog in flex
6711 do
6712   # Extract the first word of "$ac_prog", so it can be a program name with args.
6713 set dummy $ac_prog; ac_word=$2
6714 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if test "${ac_cv_prog_FLEX+set}" = set; then
6717   $as_echo_n "(cached) " >&6
6718 else
6719   if test -n "$FLEX"; then
6720   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725   IFS=$as_save_IFS
6726   test -z "$as_dir" && as_dir=.
6727   for ac_exec_ext in '' $ac_executable_extensions; do
6728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6729     ac_cv_prog_FLEX="$ac_prog"
6730     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731     break 2
6732   fi
6733 done
6734 done
6735 IFS=$as_save_IFS
6736
6737 fi
6738 fi
6739 FLEX=$ac_cv_prog_FLEX
6740 if test -n "$FLEX"; then
6741   { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
6742 $as_echo "$FLEX" >&6; }
6743 else
6744   { $as_echo "$as_me:$LINENO: result: no" >&5
6745 $as_echo "no" >&6; }
6746 fi
6747
6748
6749   test -n "$FLEX" && break
6750 done
6751 test -n "$FLEX" || FLEX="no"
6752
6753
6754
6755     r="`eval echo '$'"FLEX"`"
6756     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
6757         true
6758     else
6759         ##STEPMAKE_WARN(cannot find . )
6760         false
6761     fi
6762
6763     if test $? -ne 0; then
6764
6765     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
6766
6767         if test "REQUIRED" = "REQUIRED"; then
6768             command="echo ERROR: flex not found"
6769             # abort configure process here?
6770         else
6771             command="- echo flex not found"
6772         fi
6773         eval "FLEX"='$command'
6774         false
6775     else
6776         true
6777     fi
6778
6779     if test $? -eq 0 -a -n ""; then
6780
6781     r="`eval echo '$'"FLEX"`"
6782     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6783 $as_echo_n "checking $r version... " >&6; }
6784     exe=`
6785     ## which doesn't work in ash, if /usr/bin/which isn't installed
6786     ## type -p doesn't work in ash
6787     ## command -v doesn't work in zsh
6788     ## command -v "$r" 2>&1
6789     ## this test should work in ash, bash, pdksh (ksh), zsh
6790     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6791 `
6792     if test -n ""; then
6793         ver=""
6794     else
6795         ver=`
6796     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6797     ##
6798     ## ARG.
6799     ## Workaround for broken Debian gcc version string:
6800     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6801     ##
6802     ## -V: Workaround for python
6803
6804     #dnl
6805
6806     ## Assume and hunt for dotted version multiplet.
6807     ## use eval trickery, because we cannot use multi-level $() instead of ``
6808     ## for compatibility reasons.
6809
6810     ## grab the first version number in  --version output.
6811     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6812                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6813                 head -n 1 |
6814                 tr ' ' '\n' |
6815                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6816                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6817                 head -n 1\`\"
6818
6819     if test -z "$_ver"; then
6820         ## If empty, try date [fontforge]
6821         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6822             | head -n 1 \
6823             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6824     fi
6825     echo "$_ver"
6826     #dnl
6827 `
6828     fi
6829     num=`
6830     echo "$ver" | awk -F. '
6831     {
6832       if ($3) {three = $3}
6833       else {three = 0}
6834     }
6835     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6836 `
6837     req=`
6838     echo "" | awk -F. '
6839     {
6840       if ($3) {three = $3}
6841       else {three = 0}
6842     }
6843     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6844 `
6845     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6846 $as_echo "$ver" >&6; }
6847     if test "$num" -lt "$req"; then
6848
6849     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6850
6851     fi
6852     vervar="`echo FLEX | tr 'a-z' 'A-Z'`_VERSION"
6853     eval `echo $vervar=$num`
6854 ##    AC_SUBST(`eval echo $vervar`)
6855
6856     fi
6857
6858
6859 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6860 $as_echo_n "checking for ANSI C header files... " >&6; }
6861 if test "${ac_cv_header_stdc+set}" = set; then
6862   $as_echo_n "(cached) " >&6
6863 else
6864   cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h.  */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h.  */
6870 #include <stdlib.h>
6871 #include <stdarg.h>
6872 #include <string.h>
6873 #include <float.h>
6874
6875 int
6876 main ()
6877 {
6878
6879   ;
6880   return 0;
6881 }
6882 _ACEOF
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6885 case "(($ac_try" in
6886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887   *) ac_try_echo=$ac_try;;
6888 esac
6889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6890 $as_echo "$ac_try_echo") >&5
6891   (eval "$ac_compile") 2>conftest.er1
6892   ac_status=$?
6893   grep -v '^ *+' conftest.er1 >conftest.err
6894   rm -f conftest.er1
6895   cat conftest.err >&5
6896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); } && {
6898          test -z "$ac_cxx_werror_flag" ||
6899          test ! -s conftest.err
6900        } && test -s conftest.$ac_objext; then
6901   ac_cv_header_stdc=yes
6902 else
6903   $as_echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6905
6906         ac_cv_header_stdc=no
6907 fi
6908
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910
6911 if test $ac_cv_header_stdc = yes; then
6912   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6913   cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h.  */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h.  */
6919 #include <string.h>
6920
6921 _ACEOF
6922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6923   $EGREP "memchr" >/dev/null 2>&1; then
6924   :
6925 else
6926   ac_cv_header_stdc=no
6927 fi
6928 rm -f conftest*
6929
6930 fi
6931
6932 if test $ac_cv_header_stdc = yes; then
6933   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6934   cat >conftest.$ac_ext <<_ACEOF
6935 /* confdefs.h.  */
6936 _ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h.  */
6940 #include <stdlib.h>
6941
6942 _ACEOF
6943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6944   $EGREP "free" >/dev/null 2>&1; then
6945   :
6946 else
6947   ac_cv_header_stdc=no
6948 fi
6949 rm -f conftest*
6950
6951 fi
6952
6953 if test $ac_cv_header_stdc = yes; then
6954   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6955   if test "$cross_compiling" = yes; then
6956   :
6957 else
6958   cat >conftest.$ac_ext <<_ACEOF
6959 /* confdefs.h.  */
6960 _ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h.  */
6964 #include <ctype.h>
6965 #include <stdlib.h>
6966 #if ((' ' & 0x0FF) == 0x020)
6967 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6968 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6969 #else
6970 # define ISLOWER(c) \
6971                    (('a' <= (c) && (c) <= 'i') \
6972                      || ('j' <= (c) && (c) <= 'r') \
6973                      || ('s' <= (c) && (c) <= 'z'))
6974 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6975 #endif
6976
6977 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6978 int
6979 main ()
6980 {
6981   int i;
6982   for (i = 0; i < 256; i++)
6983     if (XOR (islower (i), ISLOWER (i))
6984         || toupper (i) != TOUPPER (i))
6985       return 2;
6986   return 0;
6987 }
6988 _ACEOF
6989 rm -f conftest$ac_exeext
6990 if { (ac_try="$ac_link"
6991 case "(($ac_try" in
6992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993   *) ac_try_echo=$ac_try;;
6994 esac
6995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6996 $as_echo "$ac_try_echo") >&5
6997   (eval "$ac_link") 2>&5
6998   ac_status=$?
6999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7001   { (case "(($ac_try" in
7002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003   *) ac_try_echo=$ac_try;;
7004 esac
7005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7006 $as_echo "$ac_try_echo") >&5
7007   (eval "$ac_try") 2>&5
7008   ac_status=$?
7009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); }; }; then
7011   :
7012 else
7013   $as_echo "$as_me: program exited with status $ac_status" >&5
7014 $as_echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7016
7017 ( exit $ac_status )
7018 ac_cv_header_stdc=no
7019 fi
7020 rm -rf conftest.dSYM
7021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7022 fi
7023
7024
7025 fi
7026 fi
7027 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7028 $as_echo "$ac_cv_header_stdc" >&6; }
7029 if test $ac_cv_header_stdc = yes; then
7030
7031 cat >>confdefs.h <<\_ACEOF
7032 #define STDC_HEADERS 1
7033 _ACEOF
7034
7035 fi
7036
7037 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7048                   inttypes.h stdint.h unistd.h
7049 do
7050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7051 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7052 $as_echo_n "checking for $ac_header... " >&6; }
7053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7054   $as_echo_n "(cached) " >&6
7055 else
7056   cat >conftest.$ac_ext <<_ACEOF
7057 /* confdefs.h.  */
7058 _ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h.  */
7062 $ac_includes_default
7063
7064 #include <$ac_header>
7065 _ACEOF
7066 rm -f conftest.$ac_objext
7067 if { (ac_try="$ac_compile"
7068 case "(($ac_try" in
7069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070   *) ac_try_echo=$ac_try;;
7071 esac
7072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7073 $as_echo "$ac_try_echo") >&5
7074   (eval "$ac_compile") 2>conftest.er1
7075   ac_status=$?
7076   grep -v '^ *+' conftest.er1 >conftest.err
7077   rm -f conftest.er1
7078   cat conftest.err >&5
7079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); } && {
7081          test -z "$ac_cxx_werror_flag" ||
7082          test ! -s conftest.err
7083        } && test -s conftest.$ac_objext; then
7084   eval "$as_ac_Header=yes"
7085 else
7086   $as_echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7088
7089         eval "$as_ac_Header=no"
7090 fi
7091
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093 fi
7094 ac_res=`eval 'as_val=${'$as_ac_Header'}
7095                  $as_echo "$as_val"'`
7096                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7097 $as_echo "$ac_res" >&6; }
7098 as_val=`eval 'as_val=${'$as_ac_Header'}
7099                  $as_echo "$as_val"'`
7100    if test "x$as_val" = x""yes; then
7101   cat >>confdefs.h <<_ACEOF
7102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7103 _ACEOF
7104
7105 fi
7106
7107 done
7108
7109
7110
7111
7112 for ac_header in FlexLexer.h
7113 do
7114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7116   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7117 $as_echo_n "checking for $ac_header... " >&6; }
7118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7119   $as_echo_n "(cached) " >&6
7120 fi
7121 ac_res=`eval 'as_val=${'$as_ac_Header'}
7122                  $as_echo "$as_val"'`
7123                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7124 $as_echo "$ac_res" >&6; }
7125 else
7126   # Is the header compilable?
7127 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7128 $as_echo_n "checking $ac_header usability... " >&6; }
7129 cat >conftest.$ac_ext <<_ACEOF
7130 /* confdefs.h.  */
7131 _ACEOF
7132 cat confdefs.h >>conftest.$ac_ext
7133 cat >>conftest.$ac_ext <<_ACEOF
7134 /* end confdefs.h.  */
7135 $ac_includes_default
7136 #include <$ac_header>
7137 _ACEOF
7138 rm -f conftest.$ac_objext
7139 if { (ac_try="$ac_compile"
7140 case "(($ac_try" in
7141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142   *) ac_try_echo=$ac_try;;
7143 esac
7144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7145 $as_echo "$ac_try_echo") >&5
7146   (eval "$ac_compile") 2>conftest.er1
7147   ac_status=$?
7148   grep -v '^ *+' conftest.er1 >conftest.err
7149   rm -f conftest.er1
7150   cat conftest.err >&5
7151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152   (exit $ac_status); } && {
7153          test -z "$ac_cxx_werror_flag" ||
7154          test ! -s conftest.err
7155        } && test -s conftest.$ac_objext; then
7156   ac_header_compiler=yes
7157 else
7158   $as_echo "$as_me: failed program was:" >&5
7159 sed 's/^/| /' conftest.$ac_ext >&5
7160
7161         ac_header_compiler=no
7162 fi
7163
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7166 $as_echo "$ac_header_compiler" >&6; }
7167
7168 # Is the header present?
7169 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7170 $as_echo_n "checking $ac_header presence... " >&6; }
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h.  */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h.  */
7177 #include <$ac_header>
7178 _ACEOF
7179 if { (ac_try="$ac_cpp conftest.$ac_ext"
7180 case "(($ac_try" in
7181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182   *) ac_try_echo=$ac_try;;
7183 esac
7184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7185 $as_echo "$ac_try_echo") >&5
7186   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7187   ac_status=$?
7188   grep -v '^ *+' conftest.er1 >conftest.err
7189   rm -f conftest.er1
7190   cat conftest.err >&5
7191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192   (exit $ac_status); } >/dev/null && {
7193          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7194          test ! -s conftest.err
7195        }; then
7196   ac_header_preproc=yes
7197 else
7198   $as_echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7200
7201   ac_header_preproc=no
7202 fi
7203
7204 rm -f conftest.err conftest.$ac_ext
7205 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7206 $as_echo "$ac_header_preproc" >&6; }
7207
7208 # So?  What about this header?
7209 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7210   yes:no: )
7211     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7212 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7213     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7215     ac_header_preproc=yes
7216     ;;
7217   no:yes:* )
7218     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7219 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7220     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7221 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7222     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7223 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7224     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7225 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7226     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7228     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7229 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7230
7231     ;;
7232 esac
7233 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7234 $as_echo_n "checking for $ac_header... " >&6; }
7235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7236   $as_echo_n "(cached) " >&6
7237 else
7238   eval "$as_ac_Header=\$ac_header_preproc"
7239 fi
7240 ac_res=`eval 'as_val=${'$as_ac_Header'}
7241                  $as_echo "$as_val"'`
7242                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7243 $as_echo "$ac_res" >&6; }
7244
7245 fi
7246 as_val=`eval 'as_val=${'$as_ac_Header'}
7247                  $as_echo "$as_val"'`
7248    if test "x$as_val" = x""yes; then
7249   cat >>confdefs.h <<_ACEOF
7250 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7251 _ACEOF
7252  true
7253 else
7254   false
7255 fi
7256
7257 done
7258
7259     if test $? -ne 0; then
7260         warn='FlexLexer.h (flex package)'
7261
7262     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
7263
7264     fi
7265     # check for yyFlexLexer.yy_current_buffer,
7266     # in 2.5.4 <= flex < 2.5.29
7267     { $as_echo "$as_me:$LINENO: checking for yyFlexLexer.yy_current_buffer" >&5
7268 $as_echo_n "checking for yyFlexLexer.yy_current_buffer... " >&6; }
7269 if test "${stepmake_cv_flexlexer_yy_current_buffer+set}" = set; then
7270   $as_echo_n "(cached) " >&6
7271 else
7272   cat >conftest.$ac_ext <<_ACEOF
7273 /* confdefs.h.  */
7274 _ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h.  */
7278
7279 using namespace std;
7280 #include <FlexLexer.h>
7281 class yy_flex_lexer: public yyFlexLexer
7282 {
7283   public:
7284     yy_flex_lexer ()
7285     {
7286       yy_current_buffer = 0;
7287     }
7288 };
7289
7290 int
7291 main ()
7292 {
7293
7294   ;
7295   return 0;
7296 }
7297 _ACEOF
7298 rm -f conftest.$ac_objext
7299 if { (ac_try="$ac_compile"
7300 case "(($ac_try" in
7301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302   *) ac_try_echo=$ac_try;;
7303 esac
7304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7305 $as_echo "$ac_try_echo") >&5
7306   (eval "$ac_compile") 2>conftest.er1
7307   ac_status=$?
7308   grep -v '^ *+' conftest.er1 >conftest.err
7309   rm -f conftest.er1
7310   cat conftest.err >&5
7311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312   (exit $ac_status); } && {
7313          test -z "$ac_cxx_werror_flag" ||
7314          test ! -s conftest.err
7315        } && test -s conftest.$ac_objext; then
7316   stepmake_cv_flexlexer_yy_current_buffer=yes
7317 else
7318   $as_echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7320
7321         stepmake_cv_flexlexer_yy_current_buffer=no
7322 fi
7323
7324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325 fi
7326 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_flexlexer_yy_current_buffer" >&5
7327 $as_echo "$stepmake_cv_flexlexer_yy_current_buffer" >&6; }
7328     if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
7329
7330 cat >>confdefs.h <<\_ACEOF
7331 #define HAVE_FLEXLEXER_YY_CURRENT_BUFFER 1
7332 _ACEOF
7333
7334     fi
7335
7336
7337         { $as_echo "$as_me:$LINENO: checking FlexLexer.h location" >&5
7338 $as_echo_n "checking FlexLexer.h location... " >&6; }
7339
7340         # ugh.
7341         cat <<EOF > conftest.cc
7342 using namespace std;
7343 #include <FlexLexer.h>
7344 EOF
7345         FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
7346           sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
7347           sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
7348         rm conftest.cc
7349
7350         { $as_echo "$as_me:$LINENO: result: $FLEXLEXER_FILE" >&5
7351 $as_echo "$FLEXLEXER_FILE" >&6; }
7352
7353
7354     lang=English
7355     ALL_LINGUAS="en nl"
7356
7357     # with/enable ??
7358
7359 # Check whether --with-localedir was given.
7360 if test "${with_localedir+set}" = set; then
7361   withval=$with_localedir; localedir=$with_localedir
7362 else
7363   localedir='${prefix}/share/locale'
7364 fi
7365
7366
7367
7368 # Check whether --with-lang was given.
7369 if test "${with_lang+set}" = set; then
7370   withval=$with_lang; language=$with_lang
7371 else
7372   language=English
7373 fi
7374
7375
7376     { $as_echo "$as_me:$LINENO: checking language" >&5
7377 $as_echo_n "checking language... " >&6; }
7378     case "$language" in
7379       En* | en* | Am* | am* | US* | us*)
7380             lang=English;;
7381       NL | nl | Du* | du* | Ned* | ned*)
7382             lang=Dutch;;
7383       "")
7384             lang=English;;
7385       *)
7386             lang=unknown;;
7387     esac
7388     { $as_echo "$as_me:$LINENO: result: $lang" >&5
7389 $as_echo "$lang" >&6; }
7390
7391     if test "$lang" = "unknown" ; then
7392
7393     { $as_echo "$as_me:$LINENO: WARNING: $language not supported; available are: $ALL_LINGUAS" >&5
7394 $as_echo "$as_me: WARNING: $language not supported; available are: $ALL_LINGUAS" >&2;}
7395     warn_b=yes
7396
7397     fi
7398
7399
7400
7401     presome=${prefix}
7402     if test "$prefix" = "NONE"; then
7403             presome=${ac_default_prefix}
7404     fi
7405     LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
7406
7407
7408     cat >>confdefs.h <<_ACEOF
7409 #define LOCALEDIR "${LOCALEDIR}"
7410 _ACEOF
7411
7412
7413 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
7414 $as_echo_n "checking for gettext in -lintl... " >&6; }
7415 if test "${ac_cv_lib_intl_gettext+set}" = set; then
7416   $as_echo_n "(cached) " >&6
7417 else
7418   ac_check_lib_save_LIBS=$LIBS
7419 LIBS="-lintl  $LIBS"
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h.  */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h.  */
7426
7427 /* Override any GCC internal prototype to avoid an error.
7428    Use char because int might match the return type of a GCC
7429    builtin and then its argument prototype would still apply.  */
7430 #ifdef __cplusplus
7431 extern "C"
7432 #endif
7433 char gettext ();
7434 int
7435 main ()
7436 {
7437 return gettext ();
7438   ;
7439   return 0;
7440 }
7441 _ACEOF
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (ac_try="$ac_link"
7444 case "(($ac_try" in
7445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446   *) ac_try_echo=$ac_try;;
7447 esac
7448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7449 $as_echo "$ac_try_echo") >&5
7450   (eval "$ac_link") 2>conftest.er1
7451   ac_status=$?
7452   grep -v '^ *+' conftest.er1 >conftest.err
7453   rm -f conftest.er1
7454   cat conftest.err >&5
7455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); } && {
7457          test -z "$ac_cxx_werror_flag" ||
7458          test ! -s conftest.err
7459        } && test -s conftest$ac_exeext && {
7460          test "$cross_compiling" = yes ||
7461          $as_test_x conftest$ac_exeext
7462        }; then
7463   ac_cv_lib_intl_gettext=yes
7464 else
7465   $as_echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7467
7468         ac_cv_lib_intl_gettext=no
7469 fi
7470
7471 rm -rf conftest.dSYM
7472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7473       conftest$ac_exeext conftest.$ac_ext
7474 LIBS=$ac_check_lib_save_LIBS
7475 fi
7476 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
7477 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
7478 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
7479   cat >>confdefs.h <<_ACEOF
7480 #define HAVE_LIBINTL 1
7481 _ACEOF
7482
7483   LIBS="-lintl $LIBS"
7484
7485 fi
7486
7487
7488 for ac_func in gettext
7489 do
7490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7491 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7492 $as_echo_n "checking for $ac_func... " >&6; }
7493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7494   $as_echo_n "(cached) " >&6
7495 else
7496   cat >conftest.$ac_ext <<_ACEOF
7497 /* confdefs.h.  */
7498 _ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h.  */
7502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7504 #define $ac_func innocuous_$ac_func
7505
7506 /* System header to define __stub macros and hopefully few prototypes,
7507     which can conflict with char $ac_func (); below.
7508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7509     <limits.h> exists even on freestanding compilers.  */
7510
7511 #ifdef __STDC__
7512 # include <limits.h>
7513 #else
7514 # include <assert.h>
7515 #endif
7516
7517 #undef $ac_func
7518
7519 /* Override any GCC internal prototype to avoid an error.
7520    Use char because int might match the return type of a GCC
7521    builtin and then its argument prototype would still apply.  */
7522 #ifdef __cplusplus
7523 extern "C"
7524 #endif
7525 char $ac_func ();
7526 /* The GNU C library defines this for functions which it implements
7527     to always fail with ENOSYS.  Some functions are actually named
7528     something starting with __ and the normal name is an alias.  */
7529 #if defined __stub_$ac_func || defined __stub___$ac_func
7530 choke me
7531 #endif
7532
7533 int
7534 main ()
7535 {
7536 return $ac_func ();
7537   ;
7538   return 0;
7539 }
7540 _ACEOF
7541 rm -f conftest.$ac_objext conftest$ac_exeext
7542 if { (ac_try="$ac_link"
7543 case "(($ac_try" in
7544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545   *) ac_try_echo=$ac_try;;
7546 esac
7547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7548 $as_echo "$ac_try_echo") >&5
7549   (eval "$ac_link") 2>conftest.er1
7550   ac_status=$?
7551   grep -v '^ *+' conftest.er1 >conftest.err
7552   rm -f conftest.er1
7553   cat conftest.err >&5
7554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); } && {
7556          test -z "$ac_cxx_werror_flag" ||
7557          test ! -s conftest.err
7558        } && test -s conftest$ac_exeext && {
7559          test "$cross_compiling" = yes ||
7560          $as_test_x conftest$ac_exeext
7561        }; then
7562   eval "$as_ac_var=yes"
7563 else
7564   $as_echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7566
7567         eval "$as_ac_var=no"
7568 fi
7569
7570 rm -rf conftest.dSYM
7571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7572       conftest$ac_exeext conftest.$ac_ext
7573 fi
7574 ac_res=`eval 'as_val=${'$as_ac_var'}
7575                  $as_echo "$as_val"'`
7576                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7577 $as_echo "$ac_res" >&6; }
7578 as_val=`eval 'as_val=${'$as_ac_var'}
7579                  $as_echo "$as_val"'`
7580    if test "x$as_val" = x""yes; then
7581   cat >>confdefs.h <<_ACEOF
7582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7583 _ACEOF
7584
7585 fi
7586 done
7587
7588
7589
7590
7591     for ac_prog in msgfmt
7592 do
7593   # Extract the first word of "$ac_prog", so it can be a program name with args.
7594 set dummy $ac_prog; ac_word=$2
7595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if test "${ac_cv_prog_MSGFMT+set}" = set; then
7598   $as_echo_n "(cached) " >&6
7599 else
7600   if test -n "$MSGFMT"; then
7601   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606   IFS=$as_save_IFS
7607   test -z "$as_dir" && as_dir=.
7608   for ac_exec_ext in '' $ac_executable_extensions; do
7609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610     ac_cv_prog_MSGFMT="$ac_prog"
7611     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612     break 2
7613   fi
7614 done
7615 done
7616 IFS=$as_save_IFS
7617
7618 fi
7619 fi
7620 MSGFMT=$ac_cv_prog_MSGFMT
7621 if test -n "$MSGFMT"; then
7622   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7623 $as_echo "$MSGFMT" >&6; }
7624 else
7625   { $as_echo "$as_me:$LINENO: result: no" >&5
7626 $as_echo "no" >&6; }
7627 fi
7628
7629
7630   test -n "$MSGFMT" && break
7631 done
7632 test -n "$MSGFMT" || MSGFMT="no"
7633
7634
7635
7636     r="`eval echo '$'"MSGFMT"`"
7637     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
7638         true
7639     else
7640         ##STEPMAKE_WARN(cannot find . )
7641         false
7642     fi
7643
7644     if test $? -ne 0; then
7645
7646     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
7647
7648         if test "REQUIRED" = "REQUIRED"; then
7649             command="echo ERROR: msgfmt not found"
7650             # abort configure process here?
7651         else
7652             command="- echo msgfmt not found"
7653         fi
7654         eval "MSGFMT"='$command'
7655         false
7656     else
7657         true
7658     fi
7659
7660     if test $? -eq 0 -a -n ""; then
7661
7662     r="`eval echo '$'"MSGFMT"`"
7663     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7664 $as_echo_n "checking $r version... " >&6; }
7665     exe=`
7666     ## which doesn't work in ash, if /usr/bin/which isn't installed
7667     ## type -p doesn't work in ash
7668     ## command -v doesn't work in zsh
7669     ## command -v "$r" 2>&1
7670     ## this test should work in ash, bash, pdksh (ksh), zsh
7671     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7672 `
7673     if test -n ""; then
7674         ver=""
7675     else
7676         ver=`
7677     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7678     ##
7679     ## ARG.
7680     ## Workaround for broken Debian gcc version string:
7681     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7682     ##
7683     ## -V: Workaround for python
7684
7685     #dnl
7686
7687     ## Assume and hunt for dotted version multiplet.
7688     ## use eval trickery, because we cannot use multi-level $() instead of ``
7689     ## for compatibility reasons.
7690
7691     ## grab the first version number in  --version output.
7692     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7693                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7694                 head -n 1 |
7695                 tr ' ' '\n' |
7696                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7697                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7698                 head -n 1\`\"
7699
7700     if test -z "$_ver"; then
7701         ## If empty, try date [fontforge]
7702         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7703             | head -n 1 \
7704             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7705     fi
7706     echo "$_ver"
7707     #dnl
7708 `
7709     fi
7710     num=`
7711     echo "$ver" | awk -F. '
7712     {
7713       if ($3) {three = $3}
7714       else {three = 0}
7715     }
7716     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7717 `
7718     req=`
7719     echo "" | awk -F. '
7720     {
7721       if ($3) {three = $3}
7722       else {three = 0}
7723     }
7724     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7725 `
7726     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7727 $as_echo "$ver" >&6; }
7728     if test "$num" -lt "$req"; then
7729
7730     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
7731
7732     fi
7733     vervar="`echo MSGFMT | tr 'a-z' 'A-Z'`_VERSION"
7734     eval `echo $vervar=$num`
7735 ##    AC_SUBST(`eval echo $vervar`)
7736
7737     fi
7738
7739
7740
7741
7742     for ac_prog in mf-nowin mf mfw mfont
7743 do
7744   # Extract the first word of "$ac_prog", so it can be a program name with args.
7745 set dummy $ac_prog; ac_word=$2
7746 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if test "${ac_cv_prog_METAFONT+set}" = set; then
7749   $as_echo_n "(cached) " >&6
7750 else
7751   if test -n "$METAFONT"; then
7752   ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
7753 else
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757   IFS=$as_save_IFS
7758   test -z "$as_dir" && as_dir=.
7759   for ac_exec_ext in '' $ac_executable_extensions; do
7760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761     ac_cv_prog_METAFONT="$ac_prog"
7762     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763     break 2
7764   fi
7765 done
7766 done
7767 IFS=$as_save_IFS
7768
7769 fi
7770 fi
7771 METAFONT=$ac_cv_prog_METAFONT
7772 if test -n "$METAFONT"; then
7773   { $as_echo "$as_me:$LINENO: result: $METAFONT" >&5
7774 $as_echo "$METAFONT" >&6; }
7775 else
7776   { $as_echo "$as_me:$LINENO: result: no" >&5
7777 $as_echo "no" >&6; }
7778 fi
7779
7780
7781   test -n "$METAFONT" && break
7782 done
7783 test -n "$METAFONT" || METAFONT="no"
7784
7785
7786
7787     r="`eval echo '$'"METAFONT"`"
7788     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
7789         true
7790     else
7791         ##STEPMAKE_WARN(cannot find . )
7792         false
7793     fi
7794
7795     if test $? -ne 0; then
7796
7797     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mf-nowin mf mfw mfont\"`\"
7798
7799         if test "REQUIRED" = "REQUIRED"; then
7800             command="echo ERROR: mf-nowin mf mfw mfont not found"
7801             # abort configure process here?
7802         else
7803             command="- echo mf-nowin mf mfw mfont not found"
7804         fi
7805         eval "METAFONT"='$command'
7806         false
7807     else
7808         true
7809     fi
7810
7811     if test $? -eq 0 -a -n ""; then
7812
7813     r="`eval echo '$'"METAFONT"`"
7814     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7815 $as_echo_n "checking $r version... " >&6; }
7816     exe=`
7817     ## which doesn't work in ash, if /usr/bin/which isn't installed
7818     ## type -p doesn't work in ash
7819     ## command -v doesn't work in zsh
7820     ## command -v "$r" 2>&1
7821     ## this test should work in ash, bash, pdksh (ksh), zsh
7822     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7823 `
7824     if test -n ""; then
7825         ver=""
7826     else
7827         ver=`
7828     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7829     ##
7830     ## ARG.
7831     ## Workaround for broken Debian gcc version string:
7832     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7833     ##
7834     ## -V: Workaround for python
7835
7836     #dnl
7837
7838     ## Assume and hunt for dotted version multiplet.
7839     ## use eval trickery, because we cannot use multi-level $() instead of ``
7840     ## for compatibility reasons.
7841
7842     ## grab the first version number in  --version output.
7843     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7844                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7845                 head -n 1 |
7846                 tr ' ' '\n' |
7847                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7848                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7849                 head -n 1\`\"
7850
7851     if test -z "$_ver"; then
7852         ## If empty, try date [fontforge]
7853         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7854             | head -n 1 \
7855             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7856     fi
7857     echo "$_ver"
7858     #dnl
7859 `
7860     fi
7861     num=`
7862     echo "$ver" | awk -F. '
7863     {
7864       if ($3) {three = $3}
7865       else {three = 0}
7866     }
7867     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7868 `
7869     req=`
7870     echo "" | awk -F. '
7871     {
7872       if ($3) {three = $3}
7873       else {three = 0}
7874     }
7875     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7876 `
7877     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7878 $as_echo "$ver" >&6; }
7879     if test "$num" -lt "$req"; then
7880
7881     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
7882
7883     fi
7884     vervar="`echo METAFONT | tr 'a-z' 'A-Z'`_VERSION"
7885     eval `echo $vervar=$num`
7886 ##    AC_SUBST(`eval echo $vervar`)
7887
7888     fi
7889
7890
7891     for ac_prog in mpost
7892 do
7893   # Extract the first word of "$ac_prog", so it can be a program name with args.
7894 set dummy $ac_prog; ac_word=$2
7895 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if test "${ac_cv_prog_METAPOST+set}" = set; then
7898   $as_echo_n "(cached) " >&6
7899 else
7900   if test -n "$METAPOST"; then
7901   ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
7902 else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7905 do
7906   IFS=$as_save_IFS
7907   test -z "$as_dir" && as_dir=.
7908   for ac_exec_ext in '' $ac_executable_extensions; do
7909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7910     ac_cv_prog_METAPOST="$ac_prog"
7911     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7912     break 2
7913   fi
7914 done
7915 done
7916 IFS=$as_save_IFS
7917
7918 fi
7919 fi
7920 METAPOST=$ac_cv_prog_METAPOST
7921 if test -n "$METAPOST"; then
7922   { $as_echo "$as_me:$LINENO: result: $METAPOST" >&5
7923 $as_echo "$METAPOST" >&6; }
7924 else
7925   { $as_echo "$as_me:$LINENO: result: no" >&5
7926 $as_echo "no" >&6; }
7927 fi
7928
7929
7930   test -n "$METAPOST" && break
7931 done
7932 test -n "$METAPOST" || METAPOST="no"
7933
7934
7935
7936     r="`eval echo '$'"METAPOST"`"
7937     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAPOST"`' : '.*\(echo\)' > /dev/null; then
7938         true
7939     else
7940         ##STEPMAKE_WARN(cannot find . )
7941         false
7942     fi
7943
7944     if test $? -ne 0; then
7945
7946     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mpost\"`\"
7947
7948         if test "REQUIRED" = "REQUIRED"; then
7949             command="echo ERROR: mpost not found"
7950             # abort configure process here?
7951         else
7952             command="- echo mpost not found"
7953         fi
7954         eval "METAPOST"='$command'
7955         false
7956     else
7957         true
7958     fi
7959
7960     if test $? -eq 0 -a -n ""; then
7961
7962     r="`eval echo '$'"METAPOST"`"
7963     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7964 $as_echo_n "checking $r version... " >&6; }
7965     exe=`
7966     ## which doesn't work in ash, if /usr/bin/which isn't installed
7967     ## type -p doesn't work in ash
7968     ## command -v doesn't work in zsh
7969     ## command -v "$r" 2>&1
7970     ## this test should work in ash, bash, pdksh (ksh), zsh
7971     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7972 `
7973     if test -n ""; then
7974         ver=""
7975     else
7976         ver=`
7977     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7978     ##
7979     ## ARG.
7980     ## Workaround for broken Debian gcc version string:
7981     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7982     ##
7983     ## -V: Workaround for python
7984
7985     #dnl
7986
7987     ## Assume and hunt for dotted version multiplet.
7988     ## use eval trickery, because we cannot use multi-level $() instead of ``
7989     ## for compatibility reasons.
7990
7991     ## grab the first version number in  --version output.
7992     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7993                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7994                 head -n 1 |
7995                 tr ' ' '\n' |
7996                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7997                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7998                 head -n 1\`\"
7999
8000     if test -z "$_ver"; then
8001         ## If empty, try date [fontforge]
8002         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8003             | head -n 1 \
8004             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8005     fi
8006     echo "$_ver"
8007     #dnl
8008 `
8009     fi
8010     num=`
8011     echo "$ver" | awk -F. '
8012     {
8013       if ($3) {three = $3}
8014       else {three = 0}
8015     }
8016     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8017 `
8018     req=`
8019     echo "" | awk -F. '
8020     {
8021       if ($3) {three = $3}
8022       else {three = 0}
8023     }
8024     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8025 `
8026     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8027 $as_echo "$ver" >&6; }
8028     if test "$num" -lt "$req"; then
8029
8030     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
8031
8032     fi
8033     vervar="`echo METAPOST | tr 'a-z' 'A-Z'`_VERSION"
8034     eval `echo $vervar=$num`
8035 ##    AC_SUBST(`eval echo $vervar`)
8036
8037     fi
8038
8039
8040     { $as_echo "$as_me:$LINENO: checking for working metafont mode" >&5
8041 $as_echo_n "checking for working metafont mode... " >&6; }
8042     modelist='ljfour lj4 lj3 lj2 ljet laserjet'
8043     for MFMODE in $modelist; do
8044         $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
8045         if test -f mfput.tfm; then
8046             break;
8047         fi
8048     done
8049     { $as_echo "$as_me:$LINENO: result: $MFMODE" >&5
8050 $as_echo "$MFMODE" >&6; }
8051
8052     rm -f mfput.*
8053
8054
8055
8056
8057     # ugh
8058
8059     for ac_prog in kpsewhich
8060 do
8061   # Extract the first word of "$ac_prog", so it can be a program name with args.
8062 set dummy $ac_prog; ac_word=$2
8063 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8064 $as_echo_n "checking for $ac_word... " >&6; }
8065 if test "${ac_cv_prog_KPSEWHICH+set}" = set; then
8066   $as_echo_n "(cached) " >&6
8067 else
8068   if test -n "$KPSEWHICH"; then
8069   ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
8070 else
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072 for as_dir in $PATH
8073 do
8074   IFS=$as_save_IFS
8075   test -z "$as_dir" && as_dir=.
8076   for ac_exec_ext in '' $ac_executable_extensions; do
8077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8078     ac_cv_prog_KPSEWHICH="$ac_prog"
8079     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8080     break 2
8081   fi
8082 done
8083 done
8084 IFS=$as_save_IFS
8085
8086 fi
8087 fi
8088 KPSEWHICH=$ac_cv_prog_KPSEWHICH
8089 if test -n "$KPSEWHICH"; then
8090   { $as_echo "$as_me:$LINENO: result: $KPSEWHICH" >&5
8091 $as_echo "$KPSEWHICH" >&6; }
8092 else
8093   { $as_echo "$as_me:$LINENO: result: no" >&5
8094 $as_echo "no" >&6; }
8095 fi
8096
8097
8098   test -n "$KPSEWHICH" && break
8099 done
8100 test -n "$KPSEWHICH" || KPSEWHICH="no"
8101
8102
8103
8104     r="`eval echo '$'"KPSEWHICH"`"
8105     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
8106         true
8107     else
8108         ##STEPMAKE_WARN(cannot find . )
8109         false
8110     fi
8111
8112     if test $? -ne 0; then
8113
8114     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"kpsewhich\"`\"
8115
8116         if test "OPTIONAL" = "REQUIRED"; then
8117             command="echo ERROR: kpsewhich not found"
8118             # abort configure process here?
8119         else
8120             command="- echo kpsewhich not found"
8121         fi
8122         eval "KPSEWHICH"='$command'
8123         false
8124     else
8125         true
8126     fi
8127
8128     if test $? -eq 0 -a -n ""; then
8129
8130     r="`eval echo '$'"KPSEWHICH"`"
8131     { $as_echo "$as_me:$LINENO: checking $r version" >&5
8132 $as_echo_n "checking $r version... " >&6; }
8133     exe=`
8134     ## which doesn't work in ash, if /usr/bin/which isn't installed
8135     ## type -p doesn't work in ash
8136     ## command -v doesn't work in zsh
8137     ## command -v "$r" 2>&1
8138     ## this test should work in ash, bash, pdksh (ksh), zsh
8139     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8140 `
8141     if test -n ""; then
8142         ver=""
8143     else
8144         ver=`
8145     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8146     ##
8147     ## ARG.
8148     ## Workaround for broken Debian gcc version string:
8149     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8150     ##
8151     ## -V: Workaround for python
8152
8153     #dnl
8154
8155     ## Assume and hunt for dotted version multiplet.
8156     ## use eval trickery, because we cannot use multi-level $() instead of ``
8157     ## for compatibility reasons.
8158
8159     ## grab the first version number in  --version output.
8160     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8161                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8162                 head -n 1 |
8163                 tr ' ' '\n' |
8164                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8165                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8166                 head -n 1\`\"
8167
8168     if test -z "$_ver"; then
8169         ## If empty, try date [fontforge]
8170         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8171             | head -n 1 \
8172             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8173     fi
8174     echo "$_ver"
8175     #dnl
8176 `
8177     fi
8178     num=`
8179     echo "$ver" | awk -F. '
8180     {
8181       if ($3) {three = $3}
8182       else {three = 0}
8183     }
8184     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8185 `
8186     req=`
8187     echo "" | awk -F. '
8188     {
8189       if ($3) {three = $3}
8190       else {three = 0}
8191     }
8192     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8193 `
8194     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8195 $as_echo "$ver" >&6; }
8196     if test "$num" -lt "$req"; then
8197
8198     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
8199
8200     fi
8201     vervar="`echo KPSEWHICH | tr 'a-z' 'A-Z'`_VERSION"
8202     eval `echo $vervar=$num`
8203 ##    AC_SUBST(`eval echo $vervar`)
8204
8205     fi
8206
8207
8208
8209     ## First, let's just see if we can find Guile at all.
8210     test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8211     test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8212     { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8213 $as_echo_n "checking for guile-config... " >&6; }
8214     for guile_config in $GUILE_CONFIG $target_guile_config $host_guile_config $build_guile_config guile-config guile1-config; do
8215         { $as_echo "$as_me:$LINENO: result: $guile_config" >&5
8216 $as_echo "$guile_config" >&6; }
8217         if ! $guile_config --version > /dev/null 2>&1 ; then
8218             { $as_echo "$as_me:$LINENO: WARNING: cannot execute $guile_config" >&5
8219 $as_echo "$as_me: WARNING: cannot execute $guile_config" >&2;}
8220             { $as_echo "$as_me:$LINENO: checking if we are cross compiling" >&5
8221 $as_echo_n "checking if we are cross compiling... " >&6; }
8222             GUILE_CONFIG='echo no guile-config'
8223         else
8224             GUILE_CONFIG=$guile_config
8225             break
8226         fi
8227     done
8228
8229
8230     r="`eval echo '$'"GUILE_CONFIG"`"
8231     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
8232         true
8233     else
8234         ##STEPMAKE_WARN(cannot find . )
8235         false
8236     fi
8237
8238     if test $? -ne 0; then
8239
8240     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$guile_config\"`\"
8241
8242         if test "REQUIRED" = "REQUIRED"; then
8243             command="echo ERROR: $guile_config not found"
8244             # abort configure process here?
8245         else
8246             command="- echo $guile_config not found"
8247         fi
8248         eval "GUILE_CONFIG"='$command'
8249         false
8250     else
8251         true
8252     fi
8253
8254     if test $? -ne 0; then
8255
8256     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'guile-config (guile-devel, guile-dev or libguile-dev package) or guile1-config (guile1-devel package)'\"`\"
8257
8258     fi
8259
8260
8261     r="`eval echo '$'"GUILE_CONFIG"`"
8262     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
8263         true
8264     else
8265         ##STEPMAKE_WARN(cannot find . )
8266         false
8267     fi
8268
8269     # urg.  should test functionality rather than version.
8270     if test $? -eq 0 -a -n "1.8.2"; then
8271
8272     r="`eval echo '$'"GUILE_CONFIG"`"
8273     { $as_echo "$as_me:$LINENO: checking $r version" >&5
8274 $as_echo_n "checking $r version... " >&6; }
8275     exe=`
8276     ## which doesn't work in ash, if /usr/bin/which isn't installed
8277     ## type -p doesn't work in ash
8278     ## command -v doesn't work in zsh
8279     ## command -v "$r" 2>&1
8280     ## this test should work in ash, bash, pdksh (ksh), zsh
8281     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8282 `
8283     if test -n ""; then
8284         ver=""
8285     else
8286         ver=`
8287     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8288     ##
8289     ## ARG.
8290     ## Workaround for broken Debian gcc version string:
8291     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8292     ##
8293     ## -V: Workaround for python
8294
8295     #dnl
8296
8297     ## Assume and hunt for dotted version multiplet.
8298     ## use eval trickery, because we cannot use multi-level $() instead of ``
8299     ## for compatibility reasons.
8300
8301     ## grab the first version number in  --version output.
8302     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8303                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8304                 head -n 1 |
8305                 tr ' ' '\n' |
8306                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8307                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8308                 head -n 1\`\"
8309
8310     if test -z "$_ver"; then
8311         ## If empty, try date [fontforge]
8312         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8313             | head -n 1 \
8314             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8315     fi
8316     echo "$_ver"
8317     #dnl
8318 `
8319     fi
8320     num=`
8321     echo "$ver" | awk -F. '
8322     {
8323       if ($3) {three = $3}
8324       else {three = 0}
8325     }
8326     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8327 `
8328     req=`
8329     echo "1.8.2" | awk -F. '
8330     {
8331       if ($3) {three = $3}
8332       else {three = 0}
8333     }
8334     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8335 `
8336     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8337 $as_echo "$ver" >&6; }
8338     if test "$num" -lt "$req"; then
8339
8340     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.8.2 (installed: $ver)"\"`\"
8341
8342     fi
8343     vervar="`echo GUILE_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
8344     eval `echo $vervar=$num`
8345 ##    AC_SUBST(`eval echo $vervar`)
8346
8347     fi
8348
8349
8350
8351     guile_version="$ver"
8352     #dnl
8353     GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
8354     GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
8355     GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8356     #dnl
8357
8358     exe=`
8359     ## which doesn't work in ash, if /usr/bin/which isn't installed
8360     ## type -p doesn't work in ash
8361     ## command -v doesn't work in zsh
8362     ## command -v "$guile_config" 2>&1
8363     ## this test should work in ash, bash, pdksh (ksh), zsh
8364     type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
8365 `
8366     if test -x $exe; then
8367         { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
8368 $as_echo_n "checking guile compile flags... " >&6; }
8369         GUILE_CFLAGS="`$guile_config compile`"
8370         { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
8371 $as_echo "$GUILE_CFLAGS" >&6; }
8372         { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
8373 $as_echo_n "checking guile link flags... " >&6; }
8374         GUILE_LDFLAGS="`$guile_config link`"
8375         { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
8376 $as_echo "$GUILE_LDFLAGS" >&6; }
8377     fi
8378
8379
8380
8381     save_CPPFLAGS="$CPPFLAGS"
8382     save_LIBS="$LIBS"
8383     CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8384     LIBS="$GUILE_LDFLAGS $LIBS"
8385
8386 for ac_header in libguile.h
8387 do
8388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8390   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8391 $as_echo_n "checking for $ac_header... " >&6; }
8392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8393   $as_echo_n "(cached) " >&6
8394 fi
8395 ac_res=`eval 'as_val=${'$as_ac_Header'}
8396                  $as_echo "$as_val"'`
8397                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8398 $as_echo "$ac_res" >&6; }
8399 else
8400   # Is the header compilable?
8401 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8402 $as_echo_n "checking $ac_header usability... " >&6; }
8403 cat >conftest.$ac_ext <<_ACEOF
8404 /* confdefs.h.  */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h.  */
8409 $ac_includes_default
8410 #include <$ac_header>
8411 _ACEOF
8412 rm -f conftest.$ac_objext
8413 if { (ac_try="$ac_compile"
8414 case "(($ac_try" in
8415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416   *) ac_try_echo=$ac_try;;
8417 esac
8418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8419 $as_echo "$ac_try_echo") >&5
8420   (eval "$ac_compile") 2>conftest.er1
8421   ac_status=$?
8422   grep -v '^ *+' conftest.er1 >conftest.err
8423   rm -f conftest.er1
8424   cat conftest.err >&5
8425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); } && {
8427          test -z "$ac_cxx_werror_flag" ||
8428          test ! -s conftest.err
8429        } && test -s conftest.$ac_objext; then
8430   ac_header_compiler=yes
8431 else
8432   $as_echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8434
8435         ac_header_compiler=no
8436 fi
8437
8438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8439 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8440 $as_echo "$ac_header_compiler" >&6; }
8441
8442 # Is the header present?
8443 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8444 $as_echo_n "checking $ac_header presence... " >&6; }
8445 cat >conftest.$ac_ext <<_ACEOF
8446 /* confdefs.h.  */
8447 _ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h.  */
8451 #include <$ac_header>
8452 _ACEOF
8453 if { (ac_try="$ac_cpp conftest.$ac_ext"
8454 case "(($ac_try" in
8455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456   *) ac_try_echo=$ac_try;;
8457 esac
8458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8459 $as_echo "$ac_try_echo") >&5
8460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8461   ac_status=$?
8462   grep -v '^ *+' conftest.er1 >conftest.err
8463   rm -f conftest.er1
8464   cat conftest.err >&5
8465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); } >/dev/null && {
8467          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8468          test ! -s conftest.err
8469        }; then
8470   ac_header_preproc=yes
8471 else
8472   $as_echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475   ac_header_preproc=no
8476 fi
8477
8478 rm -f conftest.err conftest.$ac_ext
8479 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8480 $as_echo "$ac_header_preproc" >&6; }
8481
8482 # So?  What about this header?
8483 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8484   yes:no: )
8485     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8486 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8487     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8488 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8489     ac_header_preproc=yes
8490     ;;
8491   no:yes:* )
8492     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8493 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8494     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8495 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8496     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8497 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8498     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8499 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8500     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8501 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8502     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8503 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8504
8505     ;;
8506 esac
8507 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8508 $as_echo_n "checking for $ac_header... " >&6; }
8509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8510   $as_echo_n "(cached) " >&6
8511 else
8512   eval "$as_ac_Header=\$ac_header_preproc"
8513 fi
8514 ac_res=`eval 'as_val=${'$as_ac_Header'}
8515                  $as_echo "$as_val"'`
8516                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8517 $as_echo "$ac_res" >&6; }
8518
8519 fi
8520 as_val=`eval 'as_val=${'$as_ac_Header'}
8521                  $as_echo "$as_val"'`
8522    if test "x$as_val" = x""yes; then
8523   cat >>confdefs.h <<_ACEOF
8524 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8525 _ACEOF
8526
8527 fi
8528
8529 done
8530
8531
8532 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
8533 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
8534 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
8535   $as_echo_n "(cached) " >&6
8536 else
8537   ac_check_lib_save_LIBS=$LIBS
8538 LIBS="-lguile  $LIBS"
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h.  */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h.  */
8545
8546 /* Override any GCC internal prototype to avoid an error.
8547    Use char because int might match the return type of a GCC
8548    builtin and then its argument prototype would still apply.  */
8549 #ifdef __cplusplus
8550 extern "C"
8551 #endif
8552 char scm_boot_guile ();
8553 int
8554 main ()
8555 {
8556 return scm_boot_guile ();
8557   ;
8558   return 0;
8559 }
8560 _ACEOF
8561 rm -f conftest.$ac_objext conftest$ac_exeext
8562 if { (ac_try="$ac_link"
8563 case "(($ac_try" in
8564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565   *) ac_try_echo=$ac_try;;
8566 esac
8567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8568 $as_echo "$ac_try_echo") >&5
8569   (eval "$ac_link") 2>conftest.er1
8570   ac_status=$?
8571   grep -v '^ *+' conftest.er1 >conftest.err
8572   rm -f conftest.er1
8573   cat conftest.err >&5
8574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575   (exit $ac_status); } && {
8576          test -z "$ac_cxx_werror_flag" ||
8577          test ! -s conftest.err
8578        } && test -s conftest$ac_exeext && {
8579          test "$cross_compiling" = yes ||
8580          $as_test_x conftest$ac_exeext
8581        }; then
8582   ac_cv_lib_guile_scm_boot_guile=yes
8583 else
8584   $as_echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8586
8587         ac_cv_lib_guile_scm_boot_guile=no
8588 fi
8589
8590 rm -rf conftest.dSYM
8591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8592       conftest$ac_exeext conftest.$ac_ext
8593 LIBS=$ac_check_lib_save_LIBS
8594 fi
8595 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
8596 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
8597 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
8598   cat >>confdefs.h <<_ACEOF
8599 #define HAVE_LIBGUILE 1
8600 _ACEOF
8601
8602   LIBS="-lguile $LIBS"
8603
8604 fi
8605
8606
8607 for ac_func in scm_boot_guile
8608 do
8609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8610 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8611 $as_echo_n "checking for $ac_func... " >&6; }
8612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8613   $as_echo_n "(cached) " >&6
8614 else
8615   cat >conftest.$ac_ext <<_ACEOF
8616 /* confdefs.h.  */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h.  */
8621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8623 #define $ac_func innocuous_$ac_func
8624
8625 /* System header to define __stub macros and hopefully few prototypes,
8626     which can conflict with char $ac_func (); below.
8627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8628     <limits.h> exists even on freestanding compilers.  */
8629
8630 #ifdef __STDC__
8631 # include <limits.h>
8632 #else
8633 # include <assert.h>
8634 #endif
8635
8636 #undef $ac_func
8637
8638 /* Override any GCC internal prototype to avoid an error.
8639    Use char because int might match the return type of a GCC
8640    builtin and then its argument prototype would still apply.  */
8641 #ifdef __cplusplus
8642 extern "C"
8643 #endif
8644 char $ac_func ();
8645 /* The GNU C library defines this for functions which it implements
8646     to always fail with ENOSYS.  Some functions are actually named
8647     something starting with __ and the normal name is an alias.  */
8648 #if defined __stub_$ac_func || defined __stub___$ac_func
8649 choke me
8650 #endif
8651
8652 int
8653 main ()
8654 {
8655 return $ac_func ();
8656   ;
8657   return 0;
8658 }
8659 _ACEOF
8660 rm -f conftest.$ac_objext conftest$ac_exeext
8661 if { (ac_try="$ac_link"
8662 case "(($ac_try" in
8663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664   *) ac_try_echo=$ac_try;;
8665 esac
8666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8667 $as_echo "$ac_try_echo") >&5
8668   (eval "$ac_link") 2>conftest.er1
8669   ac_status=$?
8670   grep -v '^ *+' conftest.er1 >conftest.err
8671   rm -f conftest.er1
8672   cat conftest.err >&5
8673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); } && {
8675          test -z "$ac_cxx_werror_flag" ||
8676          test ! -s conftest.err
8677        } && test -s conftest$ac_exeext && {
8678          test "$cross_compiling" = yes ||
8679          $as_test_x conftest$ac_exeext
8680        }; then
8681   eval "$as_ac_var=yes"
8682 else
8683   $as_echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8685
8686         eval "$as_ac_var=no"
8687 fi
8688
8689 rm -rf conftest.dSYM
8690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8691       conftest$ac_exeext conftest.$ac_ext
8692 fi
8693 ac_res=`eval 'as_val=${'$as_ac_var'}
8694                  $as_echo "$as_val"'`
8695                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8696 $as_echo "$ac_res" >&6; }
8697 as_val=`eval 'as_val=${'$as_ac_var'}
8698                  $as_echo "$as_val"'`
8699    if test "x$as_val" = x""yes; then
8700   cat >>confdefs.h <<_ACEOF
8701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8702 _ACEOF
8703
8704 else
8705   libguile_b=no
8706 fi
8707 done
8708
8709     if test "$libguile_b" = "no"; then
8710             warn='libguile (libguile-dev, guile-devel or guile-dev
8711    package).'
8712
8713     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8714
8715     fi
8716     CPPFLAGS="$save_CPPFLAGS"
8717     LIBS="$save_LIBS"
8718     cat >>confdefs.h <<_ACEOF
8719 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
8720 _ACEOF
8721
8722     cat >>confdefs.h <<_ACEOF
8723 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
8724 _ACEOF
8725
8726     cat >>confdefs.h <<_ACEOF
8727 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
8728 _ACEOF
8729
8730
8731
8732 # check for 3 typedefs added in Guile 1.9
8733 save_CXXFLAGS="$CXXFLAGS"
8734 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS"
8735 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_fold_fn" >&5
8736 $as_echo_n "checking for scm_t_hash_fold_fn... " >&6; }
8737 if test "${ac_cv_type_scm_t_hash_fold_fn+set}" = set; then
8738   $as_echo_n "(cached) " >&6
8739 else
8740   ac_cv_type_scm_t_hash_fold_fn=no
8741 cat >conftest.$ac_ext <<_ACEOF
8742 /* confdefs.h.  */
8743 _ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h.  */
8747 #include <libguile.h>
8748
8749 int
8750 main ()
8751 {
8752 if (sizeof (scm_t_hash_fold_fn))
8753        return 0;
8754   ;
8755   return 0;
8756 }
8757 _ACEOF
8758 rm -f conftest.$ac_objext
8759 if { (ac_try="$ac_compile"
8760 case "(($ac_try" in
8761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762   *) ac_try_echo=$ac_try;;
8763 esac
8764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8765 $as_echo "$ac_try_echo") >&5
8766   (eval "$ac_compile") 2>conftest.er1
8767   ac_status=$?
8768   grep -v '^ *+' conftest.er1 >conftest.err
8769   rm -f conftest.er1
8770   cat conftest.err >&5
8771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); } && {
8773          test -z "$ac_cxx_werror_flag" ||
8774          test ! -s conftest.err
8775        } && test -s conftest.$ac_objext; then
8776   cat >conftest.$ac_ext <<_ACEOF
8777 /* confdefs.h.  */
8778 _ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h.  */
8782 #include <libguile.h>
8783
8784 int
8785 main ()
8786 {
8787 if (sizeof ((scm_t_hash_fold_fn)))
8788           return 0;
8789   ;
8790   return 0;
8791 }
8792 _ACEOF
8793 rm -f conftest.$ac_objext
8794 if { (ac_try="$ac_compile"
8795 case "(($ac_try" in
8796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797   *) ac_try_echo=$ac_try;;
8798 esac
8799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8800 $as_echo "$ac_try_echo") >&5
8801   (eval "$ac_compile") 2>conftest.er1
8802   ac_status=$?
8803   grep -v '^ *+' conftest.er1 >conftest.err
8804   rm -f conftest.er1
8805   cat conftest.err >&5
8806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); } && {
8808          test -z "$ac_cxx_werror_flag" ||
8809          test ! -s conftest.err
8810        } && test -s conftest.$ac_objext; then
8811   :
8812 else
8813   $as_echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8815
8816         ac_cv_type_scm_t_hash_fold_fn=yes
8817 fi
8818
8819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820 else
8821   $as_echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8823
8824
8825 fi
8826
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 fi
8829 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_fold_fn" >&5
8830 $as_echo "$ac_cv_type_scm_t_hash_fold_fn" >&6; }
8831 if test "x$ac_cv_type_scm_t_hash_fold_fn" = x""yes; then
8832
8833 cat >>confdefs.h <<_ACEOF
8834 #define HAVE_SCM_T_HASH_FOLD_FN 1
8835 _ACEOF
8836
8837 cat >>confdefs.h <<\_ACEOF
8838 #define HAVE_GUILE_HASH_FUNC 1
8839 _ACEOF
8840
8841 fi
8842 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_handle_fn" >&5
8843 $as_echo_n "checking for scm_t_hash_handle_fn... " >&6; }
8844 if test "${ac_cv_type_scm_t_hash_handle_fn+set}" = set; then
8845   $as_echo_n "(cached) " >&6
8846 else
8847   ac_cv_type_scm_t_hash_handle_fn=no
8848 cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h.  */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h.  */
8854 #include <libguile.h>
8855
8856 int
8857 main ()
8858 {
8859 if (sizeof (scm_t_hash_handle_fn))
8860        return 0;
8861   ;
8862   return 0;
8863 }
8864 _ACEOF
8865 rm -f conftest.$ac_objext
8866 if { (ac_try="$ac_compile"
8867 case "(($ac_try" in
8868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869   *) ac_try_echo=$ac_try;;
8870 esac
8871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8872 $as_echo "$ac_try_echo") >&5
8873   (eval "$ac_compile") 2>conftest.er1
8874   ac_status=$?
8875   grep -v '^ *+' conftest.er1 >conftest.err
8876   rm -f conftest.er1
8877   cat conftest.err >&5
8878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); } && {
8880          test -z "$ac_cxx_werror_flag" ||
8881          test ! -s conftest.err
8882        } && test -s conftest.$ac_objext; then
8883   cat >conftest.$ac_ext <<_ACEOF
8884 /* confdefs.h.  */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h.  */
8889 #include <libguile.h>
8890
8891 int
8892 main ()
8893 {
8894 if (sizeof ((scm_t_hash_handle_fn)))
8895           return 0;
8896   ;
8897   return 0;
8898 }
8899 _ACEOF
8900 rm -f conftest.$ac_objext
8901 if { (ac_try="$ac_compile"
8902 case "(($ac_try" in
8903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904   *) ac_try_echo=$ac_try;;
8905 esac
8906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8907 $as_echo "$ac_try_echo") >&5
8908   (eval "$ac_compile") 2>conftest.er1
8909   ac_status=$?
8910   grep -v '^ *+' conftest.er1 >conftest.err
8911   rm -f conftest.er1
8912   cat conftest.err >&5
8913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); } && {
8915          test -z "$ac_cxx_werror_flag" ||
8916          test ! -s conftest.err
8917        } && test -s conftest.$ac_objext; then
8918   :
8919 else
8920   $as_echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8922
8923         ac_cv_type_scm_t_hash_handle_fn=yes
8924 fi
8925
8926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8927 else
8928   $as_echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8930
8931
8932 fi
8933
8934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8935 fi
8936 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_handle_fn" >&5
8937 $as_echo "$ac_cv_type_scm_t_hash_handle_fn" >&6; }
8938 if test "x$ac_cv_type_scm_t_hash_handle_fn" = x""yes; then
8939
8940 cat >>confdefs.h <<_ACEOF
8941 #define HAVE_SCM_T_HASH_HANDLE_FN 1
8942 _ACEOF
8943
8944 cat >>confdefs.h <<\_ACEOF
8945 #define HAVE_GUILE_HASH_FUNC 1
8946 _ACEOF
8947
8948 fi
8949
8950 { $as_echo "$as_me:$LINENO: checking for scm_t_subr" >&5
8951 $as_echo_n "checking for scm_t_subr... " >&6; }
8952 if test "${ac_cv_type_scm_t_subr+set}" = set; then
8953   $as_echo_n "(cached) " >&6
8954 else
8955   ac_cv_type_scm_t_subr=no
8956 cat >conftest.$ac_ext <<_ACEOF
8957 /* confdefs.h.  */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h.  */
8962 #include <libguile.h>
8963
8964 int
8965 main ()
8966 {
8967 if (sizeof (scm_t_subr))
8968        return 0;
8969   ;
8970   return 0;
8971 }
8972 _ACEOF
8973 rm -f conftest.$ac_objext
8974 if { (ac_try="$ac_compile"
8975 case "(($ac_try" in
8976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8977   *) ac_try_echo=$ac_try;;
8978 esac
8979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8980 $as_echo "$ac_try_echo") >&5
8981   (eval "$ac_compile") 2>conftest.er1
8982   ac_status=$?
8983   grep -v '^ *+' conftest.er1 >conftest.err
8984   rm -f conftest.er1
8985   cat conftest.err >&5
8986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); } && {
8988          test -z "$ac_cxx_werror_flag" ||
8989          test ! -s conftest.err
8990        } && test -s conftest.$ac_objext; then
8991   cat >conftest.$ac_ext <<_ACEOF
8992 /* confdefs.h.  */
8993 _ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h.  */
8997 #include <libguile.h>
8998
8999 int
9000 main ()
9001 {
9002 if (sizeof ((scm_t_subr)))
9003           return 0;
9004   ;
9005   return 0;
9006 }
9007 _ACEOF
9008 rm -f conftest.$ac_objext
9009 if { (ac_try="$ac_compile"
9010 case "(($ac_try" in
9011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012   *) ac_try_echo=$ac_try;;
9013 esac
9014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9015 $as_echo "$ac_try_echo") >&5
9016   (eval "$ac_compile") 2>conftest.er1
9017   ac_status=$?
9018   grep -v '^ *+' conftest.er1 >conftest.err
9019   rm -f conftest.er1
9020   cat conftest.err >&5
9021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022   (exit $ac_status); } && {
9023          test -z "$ac_cxx_werror_flag" ||
9024          test ! -s conftest.err
9025        } && test -s conftest.$ac_objext; then
9026   :
9027 else
9028   $as_echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031         ac_cv_type_scm_t_subr=yes
9032 fi
9033
9034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035 else
9036   $as_echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9038
9039
9040 fi
9041
9042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9043 fi
9044 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_subr" >&5
9045 $as_echo "$ac_cv_type_scm_t_subr" >&6; }
9046 if test "x$ac_cv_type_scm_t_subr" = x""yes; then
9047
9048 cat >>confdefs.h <<_ACEOF
9049 #define HAVE_SCM_T_SUBR 1
9050 _ACEOF
9051
9052 cat >>confdefs.h <<\_ACEOF
9053 #define HAVE_GUILE_SUBR_TYPE 1
9054 _ACEOF
9055
9056 fi
9057
9058 CXXFLAGS="$save_CXXFLAGS"
9059
9060 ## Check for usable cxxabi
9061 save_LIBS="$LIBS"
9062 LIBS="$LIBS $CXXABI_LIBS"
9063 { $as_echo "$as_me:$LINENO: checking for usable C++ demangler" >&5
9064 $as_echo_n "checking for usable C++ demangler... " >&6; }
9065 cat >conftest.$ac_ext <<_ACEOF
9066 /* confdefs.h.  */
9067 _ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h.  */
9071 #include <cxxabi.h>
9072 int
9073 main ()
9074 {
9075 abi::__cxa_demangle ("", 0, 0, 0)
9076   ;
9077   return 0;
9078 }
9079 _ACEOF
9080 rm -f conftest.$ac_objext conftest$ac_exeext
9081 if { (ac_try="$ac_link"
9082 case "(($ac_try" in
9083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9084   *) ac_try_echo=$ac_try;;
9085 esac
9086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9087 $as_echo "$ac_try_echo") >&5
9088   (eval "$ac_link") 2>conftest.er1
9089   ac_status=$?
9090   grep -v '^ *+' conftest.er1 >conftest.err
9091   rm -f conftest.er1
9092   cat conftest.err >&5
9093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094   (exit $ac_status); } && {
9095          test -z "$ac_cxx_werror_flag" ||
9096          test ! -s conftest.err
9097        } && test -s conftest$ac_exeext && {
9098          test "$cross_compiling" = yes ||
9099          $as_test_x conftest$ac_exeext
9100        }; then
9101   cat >>confdefs.h <<\_ACEOF
9102 #define HAVE_CXA_DEMANGLE 1
9103 _ACEOF
9104
9105         { $as_echo "$as_me:$LINENO: result: yes" >&5
9106 $as_echo "yes" >&6; }
9107 else
9108   $as_echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9110
9111
9112         LIBS="$LIBS -lsupc++"
9113         cat >conftest.$ac_ext <<_ACEOF
9114 /* confdefs.h.  */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h.  */
9119 #include <cxxabi.h>
9120 int
9121 main ()
9122 {
9123 abi::__cxa_demangle ("", 0, 0, 0)
9124   ;
9125   return 0;
9126 }
9127 _ACEOF
9128 rm -f conftest.$ac_objext conftest$ac_exeext
9129 if { (ac_try="$ac_link"
9130 case "(($ac_try" in
9131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132   *) ac_try_echo=$ac_try;;
9133 esac
9134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9135 $as_echo "$ac_try_echo") >&5
9136   (eval "$ac_link") 2>conftest.er1
9137   ac_status=$?
9138   grep -v '^ *+' conftest.er1 >conftest.err
9139   rm -f conftest.er1
9140   cat conftest.err >&5
9141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); } && {
9143          test -z "$ac_cxx_werror_flag" ||
9144          test ! -s conftest.err
9145        } && test -s conftest$ac_exeext && {
9146          test "$cross_compiling" = yes ||
9147          $as_test_x conftest$ac_exeext
9148        }; then
9149   cat >>confdefs.h <<\_ACEOF
9150 #define HAVE_CXA_DEMANGLE 1
9151 _ACEOF
9152
9153                 { $as_echo "$as_me:$LINENO: result: yes, using -lsupc++" >&5
9154 $as_echo "yes, using -lsupc++" >&6; }
9155                 CXXABI_LIBS="$CXXABI_LIBS -lsupc++"
9156 else
9157   $as_echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9159
9160         { $as_echo "$as_me:$LINENO: result: no, use c++filt -t for manual demangling" >&5
9161 $as_echo "no, use c++filt -t for manual demangling" >&6; }
9162 fi
9163
9164 rm -rf conftest.dSYM
9165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9166       conftest$ac_exeext conftest.$ac_ext
9167 fi
9168
9169 rm -rf conftest.dSYM
9170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9171       conftest$ac_exeext conftest.$ac_ext
9172 LIBS="$save_LIBS"
9173
9174
9175 ## check rational bugfix.
9176 save_CPPFLAGS="$CPPFLAGS"
9177 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9178 { $as_echo "$as_me:$LINENO: checking GUILE rational bugfix" >&5
9179 $as_echo_n "checking GUILE rational bugfix... " >&6; }
9180 cat >conftest.$ac_ext <<_ACEOF
9181 /* confdefs.h.  */
9182 _ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h.  */
9186 #include <libguile.h>
9187 #ifdef SCM_FRACTION_REDUCED_BIT
9188 #error
9189 #endif
9190
9191 _ACEOF
9192 if { (ac_try="$ac_cpp conftest.$ac_ext"
9193 case "(($ac_try" in
9194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9195   *) ac_try_echo=$ac_try;;
9196 esac
9197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9198 $as_echo "$ac_try_echo") >&5
9199   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9200   ac_status=$?
9201   grep -v '^ *+' conftest.er1 >conftest.err
9202   rm -f conftest.er1
9203   cat conftest.err >&5
9204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); } >/dev/null && {
9206          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9207          test ! -s conftest.err
9208        }; then
9209   { $as_echo "$as_me:$LINENO: result: ok" >&5
9210 $as_echo "ok" >&6; }
9211 else
9212   $as_echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9214
9215   REQUIRED="$REQUIRED GUILE-with-rational-bugfix"
9216 { $as_echo "$as_me:$LINENO: result: Must have patched GUILE rational support. See INSTALL.txt" >&5
9217 $as_echo "Must have patched GUILE rational support. See INSTALL.txt" >&6; }
9218 fi
9219
9220 rm -f conftest.err conftest.$ac_ext
9221 CPPFLAGS="$save_CPPFLAGS"
9222
9223
9224
9225
9226 # Check whether --with-python-include was given.
9227 if test "${with_python_include+set}" = set; then
9228   withval=$with_python_include;
9229         if test "$withval" = "yes" -o "$withval" = "no"; then
9230             { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-include=includedir" >&5
9231 $as_echo "$as_me: WARNING: Usage: --with-python-include=includedir" >&2;}
9232         else
9233             PYTHON_CFLAGS="-I${withval}"
9234         fi
9235
9236 fi
9237
9238
9239
9240 # Check whether --with-python-lib was given.
9241 if test "${with_python_lib+set}" = set; then
9242   withval=$with_python_lib;
9243         if test "$withval" = "yes" -o "$withval" = "no"; then
9244             { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-lib=name" >&5
9245 $as_echo "$as_me: WARNING: Usage: --with-python-lib=name" >&2;}
9246         else
9247             LDFLAGS="$LDFLAGS -l${withval}"
9248         fi
9249
9250 fi
9251
9252
9253     for ac_prog in python-config
9254 do
9255   # Extract the first word of "$ac_prog", so it can be a program name with args.
9256 set dummy $ac_prog; ac_word=$2
9257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9258 $as_echo_n "checking for $ac_word... " >&6; }
9259 if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then
9260   $as_echo_n "(cached) " >&6
9261 else
9262   if test -n "$PYTHON_CONFIG"; then
9263   ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
9264 else
9265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9266 for as_dir in $PATH
9267 do
9268   IFS=$as_save_IFS
9269   test -z "$as_dir" && as_dir=.
9270   for ac_exec_ext in '' $ac_executable_extensions; do
9271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9272     ac_cv_prog_PYTHON_CONFIG="$ac_prog"
9273     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9274     break 2
9275   fi
9276 done
9277 done
9278 IFS=$as_save_IFS
9279
9280 fi
9281 fi
9282 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
9283 if test -n "$PYTHON_CONFIG"; then
9284   { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
9285 $as_echo "$PYTHON_CONFIG" >&6; }
9286 else
9287   { $as_echo "$as_me:$LINENO: result: no" >&5
9288 $as_echo "no" >&6; }
9289 fi
9290
9291
9292   test -n "$PYTHON_CONFIG" && break
9293 done
9294 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
9295
9296
9297     if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
9298         # Clean out junk: http://bugs.python.org/issue3290
9299         # Python headers may need some -f* flags, leave them in.
9300         # We want the sed commands to look like 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' and 's/-arch [^[:space:]]*//g', but automake eats brackets.
9301          #PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/-[[WDOm]][[[:alnum:][:punct:]]][[[:alnum:][:punct:]]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
9302          # The above sed BRE matches parts of legal options, stipping down part of that option, resulting in invalid gcc arguments. Gentoo Bug #415793
9303          # For instance, '-floop-stip-mime' becomes '-floop-strip', and '-fvect-cost-model' becomes '-fvect-cost'.
9304          # Tentative fix to require a non alphanumeric character before the initial hyphen of the BRE or the hyphen being the first character in the string.
9305          PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/\(^\|[^[:alnum:]]\)-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
9306         PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
9307     fi
9308
9309     if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
9310         #dnl
9311         # alternatively, for python >= 2.0
9312         # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
9313         PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
9314         PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
9315         #dnl
9316     fi
9317
9318     if test -z "$PYTHON_HEADER"; then
9319         CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
9320
9321 for ac_header in Python.h
9322 do
9323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9325   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9326 $as_echo_n "checking for $ac_header... " >&6; }
9327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9328   $as_echo_n "(cached) " >&6
9329 fi
9330 ac_res=`eval 'as_val=${'$as_ac_Header'}
9331                  $as_echo "$as_val"'`
9332                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9333 $as_echo "$ac_res" >&6; }
9334 else
9335   # Is the header compilable?
9336 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9337 $as_echo_n "checking $ac_header usability... " >&6; }
9338 cat >conftest.$ac_ext <<_ACEOF
9339 /* confdefs.h.  */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h.  */
9344 $ac_includes_default
9345 #include <$ac_header>
9346 _ACEOF
9347 rm -f conftest.$ac_objext
9348 if { (ac_try="$ac_compile"
9349 case "(($ac_try" in
9350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351   *) ac_try_echo=$ac_try;;
9352 esac
9353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9354 $as_echo "$ac_try_echo") >&5
9355   (eval "$ac_compile") 2>conftest.er1
9356   ac_status=$?
9357   grep -v '^ *+' conftest.er1 >conftest.err
9358   rm -f conftest.er1
9359   cat conftest.err >&5
9360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); } && {
9362          test -z "$ac_cxx_werror_flag" ||
9363          test ! -s conftest.err
9364        } && test -s conftest.$ac_objext; then
9365   ac_header_compiler=yes
9366 else
9367   $as_echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.$ac_ext >&5
9369
9370         ac_header_compiler=no
9371 fi
9372
9373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9374 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9375 $as_echo "$ac_header_compiler" >&6; }
9376
9377 # Is the header present?
9378 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9379 $as_echo_n "checking $ac_header presence... " >&6; }
9380 cat >conftest.$ac_ext <<_ACEOF
9381 /* confdefs.h.  */
9382 _ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h.  */
9386 #include <$ac_header>
9387 _ACEOF
9388 if { (ac_try="$ac_cpp conftest.$ac_ext"
9389 case "(($ac_try" in
9390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391   *) ac_try_echo=$ac_try;;
9392 esac
9393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9394 $as_echo "$ac_try_echo") >&5
9395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9396   ac_status=$?
9397   grep -v '^ *+' conftest.er1 >conftest.err
9398   rm -f conftest.er1
9399   cat conftest.err >&5
9400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); } >/dev/null && {
9402          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9403          test ! -s conftest.err
9404        }; then
9405   ac_header_preproc=yes
9406 else
9407   $as_echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9409
9410   ac_header_preproc=no
9411 fi
9412
9413 rm -f conftest.err conftest.$ac_ext
9414 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9415 $as_echo "$ac_header_preproc" >&6; }
9416
9417 # So?  What about this header?
9418 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9419   yes:no: )
9420     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9421 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9422     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9423 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9424     ac_header_preproc=yes
9425     ;;
9426   no:yes:* )
9427     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9428 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9429     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9430 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9431     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9432 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9433     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9434 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9435     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9436 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9437     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9438 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9439
9440     ;;
9441 esac
9442 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9443 $as_echo_n "checking for $ac_header... " >&6; }
9444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9445   $as_echo_n "(cached) " >&6
9446 else
9447   eval "$as_ac_Header=\$ac_header_preproc"
9448 fi
9449 ac_res=`eval 'as_val=${'$as_ac_Header'}
9450                  $as_echo "$as_val"'`
9451                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9452 $as_echo "$ac_res" >&6; }
9453
9454 fi
9455 as_val=`eval 'as_val=${'$as_ac_Header'}
9456                  $as_echo "$as_val"'`
9457    if test "x$as_val" = x""yes; then
9458   cat >>confdefs.h <<_ACEOF
9459 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9460 _ACEOF
9461  PYTHON_HEADER=yes
9462 fi
9463
9464 done
9465
9466     fi
9467
9468     if test -z "$PYTHON_HEADER"; then
9469         warn="Python.h (python-devel, python-dev or libpython-dev package)"
9470
9471     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
9472
9473     fi
9474
9475
9476
9477     for ac_prog in gs
9478 do
9479   # Extract the first word of "$ac_prog", so it can be a program name with args.
9480 set dummy $ac_prog; ac_word=$2
9481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9482 $as_echo_n "checking for $ac_word... " >&6; }
9483 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
9484   $as_echo_n "(cached) " >&6
9485 else
9486   if test -n "$GHOSTSCRIPT"; then
9487   ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
9488 else
9489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490 for as_dir in $PATH
9491 do
9492   IFS=$as_save_IFS
9493   test -z "$as_dir" && as_dir=.
9494   for ac_exec_ext in '' $ac_executable_extensions; do
9495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9496     ac_cv_prog_GHOSTSCRIPT="$ac_prog"
9497     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9498     break 2
9499   fi
9500 done
9501 done
9502 IFS=$as_save_IFS
9503
9504 fi
9505 fi
9506 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
9507 if test -n "$GHOSTSCRIPT"; then
9508   { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
9509 $as_echo "$GHOSTSCRIPT" >&6; }
9510 else
9511   { $as_echo "$as_me:$LINENO: result: no" >&5
9512 $as_echo "no" >&6; }
9513 fi
9514
9515
9516   test -n "$GHOSTSCRIPT" && break
9517 done
9518 test -n "$GHOSTSCRIPT" || GHOSTSCRIPT="no"
9519
9520
9521
9522     r="`eval echo '$'"GHOSTSCRIPT"`"
9523     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GHOSTSCRIPT"`' : '.*\(echo\)' > /dev/null; then
9524         true
9525     else
9526         ##STEPMAKE_WARN(cannot find . )
9527         false
9528     fi
9529
9530     if test $? -ne 0; then
9531
9532     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"gs\"`\"
9533
9534         if test "OPTIONAL" = "REQUIRED"; then
9535             command="echo ERROR: gs not found"
9536             # abort configure process here?
9537         else
9538             command="- echo gs not found"
9539         fi
9540         eval "GHOSTSCRIPT"='$command'
9541         false
9542     else
9543         true
9544     fi
9545
9546     if test $? -eq 0; then
9547         for ac_prog in gs
9548 do
9549   # Extract the first word of "$ac_prog", so it can be a program name with args.
9550 set dummy $ac_prog; ac_word=$2
9551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9552 $as_echo_n "checking for $ac_word... " >&6; }
9553 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
9554   $as_echo_n "(cached) " >&6
9555 else
9556   case $GHOSTSCRIPT in
9557   [\\/]* | ?:[\\/]*)
9558   ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
9559   ;;
9560   *)
9561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9562 for as_dir in $PATH
9563 do
9564   IFS=$as_save_IFS
9565   test -z "$as_dir" && as_dir=.
9566   for ac_exec_ext in '' $ac_executable_extensions; do
9567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9568     ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
9569     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9570     break 2
9571   fi
9572 done
9573 done
9574 IFS=$as_save_IFS
9575
9576   ;;
9577 esac
9578 fi
9579 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
9580 if test -n "$GHOSTSCRIPT"; then
9581   { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
9582 $as_echo "$GHOSTSCRIPT" >&6; }
9583 else
9584   { $as_echo "$as_me:$LINENO: result: no" >&5
9585 $as_echo "no" >&6; }
9586 fi
9587
9588
9589   test -n "$GHOSTSCRIPT" && break
9590 done
9591
9592         if test -n "8.60"; then
9593
9594     r="`eval echo '$'"GHOSTSCRIPT"`"
9595     { $as_echo "$as_me:$LINENO: checking $r version" >&5
9596 $as_echo_n "checking $r version... " >&6; }
9597     exe=`
9598     ## which doesn't work in ash, if /usr/bin/which isn't installed
9599     ## type -p doesn't work in ash
9600     ## command -v doesn't work in zsh
9601     ## command -v "$r" 2>&1
9602     ## this test should work in ash, bash, pdksh (ksh), zsh
9603     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9604 `
9605     if test -n ""; then
9606         ver=""
9607     else
9608         ver=`
9609     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9610     ##
9611     ## ARG.
9612     ## Workaround for broken Debian gcc version string:
9613     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9614     ##
9615     ## -V: Workaround for python
9616
9617     #dnl
9618
9619     ## Assume and hunt for dotted version multiplet.
9620     ## use eval trickery, because we cannot use multi-level $() instead of ``
9621     ## for compatibility reasons.
9622
9623     ## grab the first version number in  --version output.
9624     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9625                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9626                 head -n 1 |
9627                 tr ' ' '\n' |
9628                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9629                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9630                 head -n 1\`\"
9631
9632     if test -z "$_ver"; then
9633         ## If empty, try date [fontforge]
9634         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9635             | head -n 1 \
9636             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9637     fi
9638     echo "$_ver"
9639     #dnl
9640 `
9641     fi
9642     num=`
9643     echo "$ver" | awk -F. '
9644     {
9645       if ($3) {three = $3}
9646       else {three = 0}
9647     }
9648     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9649 `
9650     req=`
9651     echo "8.60" | awk -F. '
9652     {
9653       if ($3) {three = $3}
9654       else {three = 0}
9655     }
9656     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9657 `
9658     { $as_echo "$as_me:$LINENO: result: $ver" >&5
9659 $as_echo "$ver" >&6; }
9660     if test "$num" -lt "$req"; then
9661
9662     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 8.60 (installed: $ver)"\"`\"
9663
9664     fi
9665     vervar="`echo GHOSTSCRIPT | tr 'a-z' 'A-Z'`_VERSION"
9666     eval `echo $vervar=$num`
9667 ##    AC_SUBST(`eval echo $vervar`)
9668
9669         fi
9670     fi
9671
9672
9673
9674     for ac_prog in fontforge
9675 do
9676   # Extract the first word of "$ac_prog", so it can be a program name with args.
9677 set dummy $ac_prog; ac_word=$2
9678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9679 $as_echo_n "checking for $ac_word... " >&6; }
9680 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
9681   $as_echo_n "(cached) " >&6
9682 else
9683   if test -n "$FONTFORGE"; then
9684   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
9685 else
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687 for as_dir in $PATH
9688 do
9689   IFS=$as_save_IFS
9690   test -z "$as_dir" && as_dir=.
9691   for ac_exec_ext in '' $ac_executable_extensions; do
9692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693     ac_cv_prog_FONTFORGE="$ac_prog"
9694     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9695     break 2
9696   fi
9697 done
9698 done
9699 IFS=$as_save_IFS
9700
9701 fi
9702 fi
9703 FONTFORGE=$ac_cv_prog_FONTFORGE
9704 if test -n "$FONTFORGE"; then
9705   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9706 $as_echo "$FONTFORGE" >&6; }
9707 else
9708   { $as_echo "$as_me:$LINENO: result: no" >&5
9709 $as_echo "no" >&6; }
9710 fi
9711
9712
9713   test -n "$FONTFORGE" && break
9714 done
9715 test -n "$FONTFORGE" || FONTFORGE="no"
9716
9717
9718
9719     r="`eval echo '$'"FONTFORGE"`"
9720     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
9721         true
9722     else
9723         ##STEPMAKE_WARN(cannot find . )
9724         false
9725     fi
9726
9727     if test $? -ne 0; then
9728
9729     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"fontforge\"`\"
9730
9731         if test "REQUIRED" = "REQUIRED"; then
9732             command="echo ERROR: fontforge not found"
9733             # abort configure process here?
9734         else
9735             command="- echo fontforge not found"
9736         fi
9737         eval "FONTFORGE"='$command'
9738         false
9739     else
9740         true
9741     fi
9742
9743     if test $? -eq 0; then
9744         for ac_prog in fontforge
9745 do
9746   # Extract the first word of "$ac_prog", so it can be a program name with args.
9747 set dummy $ac_prog; ac_word=$2
9748 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9749 $as_echo_n "checking for $ac_word... " >&6; }
9750 if test "${ac_cv_path_FONTFORGE+set}" = set; then
9751   $as_echo_n "(cached) " >&6
9752 else
9753   case $FONTFORGE in
9754   [\\/]* | ?:[\\/]*)
9755   ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
9756   ;;
9757   *)
9758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759 for as_dir in $PATH
9760 do
9761   IFS=$as_save_IFS
9762   test -z "$as_dir" && as_dir=.
9763   for ac_exec_ext in '' $ac_executable_extensions; do
9764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9765     ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
9766     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9767     break 2
9768   fi
9769 done
9770 done
9771 IFS=$as_save_IFS
9772
9773   ;;
9774 esac
9775 fi
9776 FONTFORGE=$ac_cv_path_FONTFORGE
9777 if test -n "$FONTFORGE"; then
9778   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9779 $as_echo "$FONTFORGE" >&6; }
9780 else
9781   { $as_echo "$as_me:$LINENO: result: no" >&5
9782 $as_echo "no" >&6; }
9783 fi
9784
9785
9786   test -n "$FONTFORGE" && break
9787 done
9788
9789         if test -n "20100501"; then
9790
9791     r="`eval echo '$'"FONTFORGE"`"
9792     { $as_echo "$as_me:$LINENO: checking $r version" >&5
9793 $as_echo_n "checking $r version... " >&6; }
9794     exe=`
9795     ## which doesn't work in ash, if /usr/bin/which isn't installed
9796     ## type -p doesn't work in ash
9797     ## command -v doesn't work in zsh
9798     ## command -v "$r" 2>&1
9799     ## this test should work in ash, bash, pdksh (ksh), zsh
9800     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9801 `
9802     if test -n ""; then
9803         ver=""
9804     else
9805         ver=`
9806     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9807     ##
9808     ## ARG.
9809     ## Workaround for broken Debian gcc version string:
9810     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9811     ##
9812     ## -V: Workaround for python
9813
9814     #dnl
9815
9816     ## Assume and hunt for dotted version multiplet.
9817     ## use eval trickery, because we cannot use multi-level $() instead of ``
9818     ## for compatibility reasons.
9819
9820     ## grab the first version number in  --version output.
9821     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9822                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9823                 head -n 1 |
9824                 tr ' ' '\n' |
9825                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9826                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9827                 head -n 1\`\"
9828
9829     if test -z "$_ver"; then
9830         ## If empty, try date [fontforge]
9831         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9832             | head -n 1 \
9833             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9834     fi
9835     echo "$_ver"
9836     #dnl
9837 `
9838     fi
9839     num=`
9840     echo "$ver" | awk -F. '
9841     {
9842       if ($3) {three = $3}
9843       else {three = 0}
9844     }
9845     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9846 `
9847     req=`
9848     echo "20100501" | awk -F. '
9849     {
9850       if ($3) {three = $3}
9851       else {three = 0}
9852     }
9853     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9854 `
9855     { $as_echo "$as_me:$LINENO: result: $ver" >&5
9856 $as_echo "$ver" >&6; }
9857     if test "$num" -lt "$req"; then
9858
9859     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 20100501 (installed: $ver)"\"`\"
9860
9861     fi
9862     vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
9863     eval `echo $vervar=$num`
9864 ##    AC_SUBST(`eval echo $vervar`)
9865
9866         fi
9867     fi
9868
9869
9870     for ac_prog in fontforge
9871 do
9872   # Extract the first word of "$ac_prog", so it can be a program name with args.
9873 set dummy $ac_prog; ac_word=$2
9874 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9875 $as_echo_n "checking for $ac_word... " >&6; }
9876 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
9877   $as_echo_n "(cached) " >&6
9878 else
9879   if test -n "$FONTFORGE"; then
9880   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
9881 else
9882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9883 for as_dir in $PATH
9884 do
9885   IFS=$as_save_IFS
9886   test -z "$as_dir" && as_dir=.
9887   for ac_exec_ext in '' $ac_executable_extensions; do
9888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9889     ac_cv_prog_FONTFORGE="$ac_prog"
9890     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9891     break 2
9892   fi
9893 done
9894 done
9895 IFS=$as_save_IFS
9896
9897 fi
9898 fi
9899 FONTFORGE=$ac_cv_prog_FONTFORGE
9900 if test -n "$FONTFORGE"; then
9901   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9902 $as_echo "$FONTFORGE" >&6; }
9903 else
9904   { $as_echo "$as_me:$LINENO: result: no" >&5
9905 $as_echo "no" >&6; }
9906 fi
9907
9908
9909   test -n "$FONTFORGE" && break
9910 done
9911 test -n "$FONTFORGE" || FONTFORGE="no"
9912
9913
9914
9915     r="`eval echo '$'"FONTFORGE"`"
9916     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
9917         true
9918     else
9919         ##STEPMAKE_WARN(cannot find . )
9920         false
9921     fi
9922
9923     if test $? -ne 0; then
9924
9925     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"fontforge\"`\"
9926
9927         if test "OPTIONAL" = "REQUIRED"; then
9928             command="echo ERROR: fontforge not found"
9929             # abort configure process here?
9930         else
9931             command="- echo fontforge not found"
9932         fi
9933         eval "FONTFORGE"='$command'
9934         false
9935     else
9936         true
9937     fi
9938
9939     if test $? -eq 0; then
9940         for ac_prog in fontforge
9941 do
9942   # Extract the first word of "$ac_prog", so it can be a program name with args.
9943 set dummy $ac_prog; ac_word=$2
9944 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9945 $as_echo_n "checking for $ac_word... " >&6; }
9946 if test "${ac_cv_path_FONTFORGE+set}" = set; then
9947   $as_echo_n "(cached) " >&6
9948 else
9949   case $FONTFORGE in
9950   [\\/]* | ?:[\\/]*)
9951   ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
9952   ;;
9953   *)
9954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9955 for as_dir in $PATH
9956 do
9957   IFS=$as_save_IFS
9958   test -z "$as_dir" && as_dir=.
9959   for ac_exec_ext in '' $ac_executable_extensions; do
9960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9961     ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
9962     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9963     break 2
9964   fi
9965 done
9966 done
9967 IFS=$as_save_IFS
9968
9969   ;;
9970 esac
9971 fi
9972 FONTFORGE=$ac_cv_path_FONTFORGE
9973 if test -n "$FONTFORGE"; then
9974   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9975 $as_echo "$FONTFORGE" >&6; }
9976 else
9977   { $as_echo "$as_me:$LINENO: result: no" >&5
9978 $as_echo "no" >&6; }
9979 fi
9980
9981
9982   test -n "$FONTFORGE" && break
9983 done
9984
9985         if test -n "20110222"; then
9986
9987     r="`eval echo '$'"FONTFORGE"`"
9988     { $as_echo "$as_me:$LINENO: checking $r version" >&5
9989 $as_echo_n "checking $r version... " >&6; }
9990     exe=`
9991     ## which doesn't work in ash, if /usr/bin/which isn't installed
9992     ## type -p doesn't work in ash
9993     ## command -v doesn't work in zsh
9994     ## command -v "$r" 2>&1
9995     ## this test should work in ash, bash, pdksh (ksh), zsh
9996     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9997 `
9998     if test -n ""; then
9999         ver=""
10000     else
10001         ver=`
10002     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10003     ##
10004     ## ARG.
10005     ## Workaround for broken Debian gcc version string:
10006     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10007     ##
10008     ## -V: Workaround for python
10009
10010     #dnl
10011
10012     ## Assume and hunt for dotted version multiplet.
10013     ## use eval trickery, because we cannot use multi-level $() instead of ``
10014     ## for compatibility reasons.
10015
10016     ## grab the first version number in  --version output.
10017     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10018                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10019                 head -n 1 |
10020                 tr ' ' '\n' |
10021                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10022                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10023                 head -n 1\`\"
10024
10025     if test -z "$_ver"; then
10026         ## If empty, try date [fontforge]
10027         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
10028             | head -n 1 \
10029             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10030     fi
10031     echo "$_ver"
10032     #dnl
10033 `
10034     fi
10035     num=`
10036     echo "$ver" | awk -F. '
10037     {
10038       if ($3) {three = $3}
10039       else {three = 0}
10040     }
10041     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10042 `
10043     req=`
10044     echo "20110222" | awk -F. '
10045     {
10046       if ($3) {three = $3}
10047       else {three = 0}
10048     }
10049     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10050 `
10051     { $as_echo "$as_me:$LINENO: result: $ver" >&5
10052 $as_echo "$ver" >&6; }
10053     if test "$num" -lt "$req"; then
10054
10055     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 20110222 (installed: $ver)"\"`\"
10056
10057     fi
10058     vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
10059     eval `echo $vervar=$num`
10060 ##    AC_SUBST(`eval echo $vervar`)
10061
10062         fi
10063     fi
10064
10065
10066
10067     for ac_prog in t1asm
10068 do
10069   # Extract the first word of "$ac_prog", so it can be a program name with args.
10070 set dummy $ac_prog; ac_word=$2
10071 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10072 $as_echo_n "checking for $ac_word... " >&6; }
10073 if test "${ac_cv_prog_T1ASM+set}" = set; then
10074   $as_echo_n "(cached) " >&6
10075 else
10076   if test -n "$T1ASM"; then
10077   ac_cv_prog_T1ASM="$T1ASM" # Let the user override the test.
10078 else
10079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080 for as_dir in $PATH
10081 do
10082   IFS=$as_save_IFS
10083   test -z "$as_dir" && as_dir=.
10084   for ac_exec_ext in '' $ac_executable_extensions; do
10085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10086     ac_cv_prog_T1ASM="$ac_prog"
10087     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10088     break 2
10089   fi
10090 done
10091 done
10092 IFS=$as_save_IFS
10093
10094 fi
10095 fi
10096 T1ASM=$ac_cv_prog_T1ASM
10097 if test -n "$T1ASM"; then
10098   { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10099 $as_echo "$T1ASM" >&6; }
10100 else
10101   { $as_echo "$as_me:$LINENO: result: no" >&5
10102 $as_echo "no" >&6; }
10103 fi
10104
10105
10106   test -n "$T1ASM" && break
10107 done
10108 test -n "$T1ASM" || T1ASM="no"
10109
10110
10111
10112     r="`eval echo '$'"T1ASM"`"
10113     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"T1ASM"`' : '.*\(echo\)' > /dev/null; then
10114         true
10115     else
10116         ##STEPMAKE_WARN(cannot find . )
10117         false
10118     fi
10119
10120     if test $? -ne 0; then
10121
10122     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"t1asm\"`\"
10123
10124         if test "REQUIRED" = "REQUIRED"; then
10125             command="echo ERROR: t1asm not found"
10126             # abort configure process here?
10127         else
10128             command="- echo t1asm not found"
10129         fi
10130         eval "T1ASM"='$command'
10131         false
10132     else
10133         true
10134     fi
10135
10136     if test $? -eq 0; then
10137         for ac_prog in t1asm
10138 do
10139   # Extract the first word of "$ac_prog", so it can be a program name with args.
10140 set dummy $ac_prog; ac_word=$2
10141 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10142 $as_echo_n "checking for $ac_word... " >&6; }
10143 if test "${ac_cv_path_T1ASM+set}" = set; then
10144   $as_echo_n "(cached) " >&6
10145 else
10146   case $T1ASM in
10147   [\\/]* | ?:[\\/]*)
10148   ac_cv_path_T1ASM="$T1ASM" # Let the user override the test with a path.
10149   ;;
10150   *)
10151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in $PATH
10153 do
10154   IFS=$as_save_IFS
10155   test -z "$as_dir" && as_dir=.
10156   for ac_exec_ext in '' $ac_executable_extensions; do
10157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10158     ac_cv_path_T1ASM="$as_dir/$ac_word$ac_exec_ext"
10159     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10160     break 2
10161   fi
10162 done
10163 done
10164 IFS=$as_save_IFS
10165
10166   ;;
10167 esac
10168 fi
10169 T1ASM=$ac_cv_path_T1ASM
10170 if test -n "$T1ASM"; then
10171   { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10172 $as_echo "$T1ASM" >&6; }
10173 else
10174   { $as_echo "$as_me:$LINENO: result: no" >&5
10175 $as_echo "no" >&6; }
10176 fi
10177
10178
10179   test -n "$T1ASM" && break
10180 done
10181
10182         if test -n ""; then
10183
10184     r="`eval echo '$'"T1ASM"`"
10185     { $as_echo "$as_me:$LINENO: checking $r version" >&5
10186 $as_echo_n "checking $r version... " >&6; }
10187     exe=`
10188     ## which doesn't work in ash, if /usr/bin/which isn't installed
10189     ## type -p doesn't work in ash
10190     ## command -v doesn't work in zsh
10191     ## command -v "$r" 2>&1
10192     ## this test should work in ash, bash, pdksh (ksh), zsh
10193     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10194 `
10195     if test -n ""; then
10196         ver=""
10197     else
10198         ver=`
10199     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10200     ##
10201     ## ARG.
10202     ## Workaround for broken Debian gcc version string:
10203     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10204     ##
10205     ## -V: Workaround for python
10206
10207     #dnl
10208
10209     ## Assume and hunt for dotted version multiplet.
10210     ## use eval trickery, because we cannot use multi-level $() instead of ``
10211     ## for compatibility reasons.
10212
10213     ## grab the first version number in  --version output.
10214     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10215                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10216                 head -n 1 |
10217                 tr ' ' '\n' |
10218                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10219                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10220                 head -n 1\`\"
10221
10222     if test -z "$_ver"; then
10223         ## If empty, try date [fontforge]
10224         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
10225             | head -n 1 \
10226             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10227     fi
10228     echo "$_ver"
10229     #dnl
10230 `
10231     fi
10232     num=`
10233     echo "$ver" | awk -F. '
10234     {
10235       if ($3) {three = $3}
10236       else {three = 0}
10237     }
10238     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10239 `
10240     req=`
10241     echo "" | awk -F. '
10242     {
10243       if ($3) {three = $3}
10244       else {three = 0}
10245     }
10246     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10247 `
10248     { $as_echo "$as_me:$LINENO: result: $ver" >&5
10249 $as_echo "$ver" >&6; }
10250     if test "$num" -lt "$req"; then
10251
10252     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
10253
10254     fi
10255     vervar="`echo T1ASM | tr 'a-z' 'A-Z'`_VERSION"
10256     eval `echo $vervar=$num`
10257 ##    AC_SUBST(`eval echo $vervar`)
10258
10259         fi
10260     fi
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270 for ac_header in assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h
10271 do
10272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10274   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10275 $as_echo_n "checking for $ac_header... " >&6; }
10276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10277   $as_echo_n "(cached) " >&6
10278 fi
10279 ac_res=`eval 'as_val=${'$as_ac_Header'}
10280                  $as_echo "$as_val"'`
10281                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10282 $as_echo "$ac_res" >&6; }
10283 else
10284   # Is the header compilable?
10285 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10286 $as_echo_n "checking $ac_header usability... " >&6; }
10287 cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h.  */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h.  */
10293 $ac_includes_default
10294 #include <$ac_header>
10295 _ACEOF
10296 rm -f conftest.$ac_objext
10297 if { (ac_try="$ac_compile"
10298 case "(($ac_try" in
10299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300   *) ac_try_echo=$ac_try;;
10301 esac
10302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10303 $as_echo "$ac_try_echo") >&5
10304   (eval "$ac_compile") 2>conftest.er1
10305   ac_status=$?
10306   grep -v '^ *+' conftest.er1 >conftest.err
10307   rm -f conftest.er1
10308   cat conftest.err >&5
10309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); } && {
10311          test -z "$ac_cxx_werror_flag" ||
10312          test ! -s conftest.err
10313        } && test -s conftest.$ac_objext; then
10314   ac_header_compiler=yes
10315 else
10316   $as_echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10318
10319         ac_header_compiler=no
10320 fi
10321
10322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10323 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10324 $as_echo "$ac_header_compiler" >&6; }
10325
10326 # Is the header present?
10327 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10328 $as_echo_n "checking $ac_header presence... " >&6; }
10329 cat >conftest.$ac_ext <<_ACEOF
10330 /* confdefs.h.  */
10331 _ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h.  */
10335 #include <$ac_header>
10336 _ACEOF
10337 if { (ac_try="$ac_cpp conftest.$ac_ext"
10338 case "(($ac_try" in
10339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340   *) ac_try_echo=$ac_try;;
10341 esac
10342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10343 $as_echo "$ac_try_echo") >&5
10344   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10345   ac_status=$?
10346   grep -v '^ *+' conftest.er1 >conftest.err
10347   rm -f conftest.er1
10348   cat conftest.err >&5
10349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350   (exit $ac_status); } >/dev/null && {
10351          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10352          test ! -s conftest.err
10353        }; then
10354   ac_header_preproc=yes
10355 else
10356   $as_echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10358
10359   ac_header_preproc=no
10360 fi
10361
10362 rm -f conftest.err conftest.$ac_ext
10363 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10364 $as_echo "$ac_header_preproc" >&6; }
10365
10366 # So?  What about this header?
10367 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10368   yes:no: )
10369     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10370 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10371     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10373     ac_header_preproc=yes
10374     ;;
10375   no:yes:* )
10376     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10377 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10378     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10379 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10380     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10381 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10382     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10383 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10384     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10385 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10386     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10387 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10388
10389     ;;
10390 esac
10391 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10392 $as_echo_n "checking for $ac_header... " >&6; }
10393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10394   $as_echo_n "(cached) " >&6
10395 else
10396   eval "$as_ac_Header=\$ac_header_preproc"
10397 fi
10398 ac_res=`eval 'as_val=${'$as_ac_Header'}
10399                  $as_echo "$as_val"'`
10400                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10401 $as_echo "$ac_res" >&6; }
10402
10403 fi
10404 as_val=`eval 'as_val=${'$as_ac_Header'}
10405                  $as_echo "$as_val"'`
10406    if test "x$as_val" = x""yes; then
10407   cat >>confdefs.h <<_ACEOF
10408 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10409 _ACEOF
10410
10411 fi
10412
10413 done
10414
10415
10416 for ac_header in sstream
10417 do
10418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10420   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10421 $as_echo_n "checking for $ac_header... " >&6; }
10422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10423   $as_echo_n "(cached) " >&6
10424 fi
10425 ac_res=`eval 'as_val=${'$as_ac_Header'}
10426                  $as_echo "$as_val"'`
10427                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10428 $as_echo "$ac_res" >&6; }
10429 else
10430   # Is the header compilable?
10431 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10432 $as_echo_n "checking $ac_header usability... " >&6; }
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h.  */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h.  */
10439 $ac_includes_default
10440 #include <$ac_header>
10441 _ACEOF
10442 rm -f conftest.$ac_objext
10443 if { (ac_try="$ac_compile"
10444 case "(($ac_try" in
10445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446   *) ac_try_echo=$ac_try;;
10447 esac
10448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10449 $as_echo "$ac_try_echo") >&5
10450   (eval "$ac_compile") 2>conftest.er1
10451   ac_status=$?
10452   grep -v '^ *+' conftest.er1 >conftest.err
10453   rm -f conftest.er1
10454   cat conftest.err >&5
10455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); } && {
10457          test -z "$ac_cxx_werror_flag" ||
10458          test ! -s conftest.err
10459        } && test -s conftest.$ac_objext; then
10460   ac_header_compiler=yes
10461 else
10462   $as_echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10464
10465         ac_header_compiler=no
10466 fi
10467
10468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10469 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10470 $as_echo "$ac_header_compiler" >&6; }
10471
10472 # Is the header present?
10473 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10474 $as_echo_n "checking $ac_header presence... " >&6; }
10475 cat >conftest.$ac_ext <<_ACEOF
10476 /* confdefs.h.  */
10477 _ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h.  */
10481 #include <$ac_header>
10482 _ACEOF
10483 if { (ac_try="$ac_cpp conftest.$ac_ext"
10484 case "(($ac_try" in
10485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10486   *) ac_try_echo=$ac_try;;
10487 esac
10488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10489 $as_echo "$ac_try_echo") >&5
10490   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10491   ac_status=$?
10492   grep -v '^ *+' conftest.er1 >conftest.err
10493   rm -f conftest.er1
10494   cat conftest.err >&5
10495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); } >/dev/null && {
10497          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10498          test ! -s conftest.err
10499        }; then
10500   ac_header_preproc=yes
10501 else
10502   $as_echo "$as_me: failed program was:" >&5
10503 sed 's/^/| /' conftest.$ac_ext >&5
10504
10505   ac_header_preproc=no
10506 fi
10507
10508 rm -f conftest.err conftest.$ac_ext
10509 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10510 $as_echo "$ac_header_preproc" >&6; }
10511
10512 # So?  What about this header?
10513 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10514   yes:no: )
10515     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10516 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10517     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10518 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10519     ac_header_preproc=yes
10520     ;;
10521   no:yes:* )
10522     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10523 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10524     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10525 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10526     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10527 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10528     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10529 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10530     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10531 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10532     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10533 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10534
10535     ;;
10536 esac
10537 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10538 $as_echo_n "checking for $ac_header... " >&6; }
10539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10540   $as_echo_n "(cached) " >&6
10541 else
10542   eval "$as_ac_Header=\$ac_header_preproc"
10543 fi
10544 ac_res=`eval 'as_val=${'$as_ac_Header'}
10545                  $as_echo "$as_val"'`
10546                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10547 $as_echo "$ac_res" >&6; }
10548
10549 fi
10550 as_val=`eval 'as_val=${'$as_ac_Header'}
10551                  $as_echo "$as_val"'`
10552    if test "x$as_val" = x""yes; then
10553   cat >>confdefs.h <<_ACEOF
10554 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10555 _ACEOF
10556
10557 fi
10558
10559 done
10560
10561 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10562 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10563 if test "${ac_cv_header_stat_broken+set}" = set; then
10564   $as_echo_n "(cached) " >&6
10565 else
10566   cat >conftest.$ac_ext <<_ACEOF
10567 /* confdefs.h.  */
10568 _ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h.  */
10572 #include <sys/types.h>
10573 #include <sys/stat.h>
10574
10575 #if defined S_ISBLK && defined S_IFDIR
10576 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10577 #endif
10578
10579 #if defined S_ISBLK && defined S_IFCHR
10580 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10581 #endif
10582
10583 #if defined S_ISLNK && defined S_IFREG
10584 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10585 #endif
10586
10587 #if defined S_ISSOCK && defined S_IFREG
10588 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10589 #endif
10590
10591 _ACEOF
10592 rm -f conftest.$ac_objext
10593 if { (ac_try="$ac_compile"
10594 case "(($ac_try" in
10595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596   *) ac_try_echo=$ac_try;;
10597 esac
10598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10599 $as_echo "$ac_try_echo") >&5
10600   (eval "$ac_compile") 2>conftest.er1
10601   ac_status=$?
10602   grep -v '^ *+' conftest.er1 >conftest.err
10603   rm -f conftest.er1
10604   cat conftest.err >&5
10605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606   (exit $ac_status); } && {
10607          test -z "$ac_cxx_werror_flag" ||
10608          test ! -s conftest.err
10609        } && test -s conftest.$ac_objext; then
10610   ac_cv_header_stat_broken=no
10611 else
10612   $as_echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10614
10615         ac_cv_header_stat_broken=yes
10616 fi
10617
10618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10619 fi
10620 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10621 $as_echo "$ac_cv_header_stat_broken" >&6; }
10622 if test $ac_cv_header_stat_broken = yes; then
10623
10624 cat >>confdefs.h <<\_ACEOF
10625 #define STAT_MACROS_BROKEN 1
10626 _ACEOF
10627
10628 fi
10629
10630 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
10631 $as_echo_n "checking for working memcmp... " >&6; }
10632 if test "${ac_cv_func_memcmp_working+set}" = set; then
10633   $as_echo_n "(cached) " >&6
10634 else
10635   if test "$cross_compiling" = yes; then
10636   ac_cv_func_memcmp_working=no
10637 else
10638   cat >conftest.$ac_ext <<_ACEOF
10639 /* confdefs.h.  */
10640 _ACEOF
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>conftest.$ac_ext <<_ACEOF
10643 /* end confdefs.h.  */
10644 $ac_includes_default
10645 int
10646 main ()
10647 {
10648
10649   /* Some versions of memcmp are not 8-bit clean.  */
10650   char c0 = '\100', c1 = '\200', c2 = '\201';
10651   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10652     return 1;
10653
10654   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10655      or more and with at least one buffer not starting on a 4-byte boundary.
10656      William Lewis provided this test program.   */
10657   {
10658     char foo[21];
10659     char bar[21];
10660     int i;
10661     for (i = 0; i < 4; i++)
10662       {
10663         char *a = foo + i;
10664         char *b = bar + i;
10665         strcpy (a, "--------01111111");
10666         strcpy (b, "--------10000000");
10667         if (memcmp (a, b, 16) >= 0)
10668           return 1;
10669       }
10670     return 0;
10671   }
10672
10673   ;
10674   return 0;
10675 }
10676 _ACEOF
10677 rm -f conftest$ac_exeext
10678 if { (ac_try="$ac_link"
10679 case "(($ac_try" in
10680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681   *) ac_try_echo=$ac_try;;
10682 esac
10683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10684 $as_echo "$ac_try_echo") >&5
10685   (eval "$ac_link") 2>&5
10686   ac_status=$?
10687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10689   { (case "(($ac_try" in
10690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691   *) ac_try_echo=$ac_try;;
10692 esac
10693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10694 $as_echo "$ac_try_echo") >&5
10695   (eval "$ac_try") 2>&5
10696   ac_status=$?
10697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); }; }; then
10699   ac_cv_func_memcmp_working=yes
10700 else
10701   $as_echo "$as_me: program exited with status $ac_status" >&5
10702 $as_echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10704
10705 ( exit $ac_status )
10706 ac_cv_func_memcmp_working=no
10707 fi
10708 rm -rf conftest.dSYM
10709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10710 fi
10711
10712
10713 fi
10714 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10715 $as_echo "$ac_cv_func_memcmp_working" >&6; }
10716 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10717   *" memcmp.$ac_objext "* ) ;;
10718   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10719  ;;
10720 esac
10721
10722
10723
10724 for ac_func in vprintf
10725 do
10726 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10727 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10728 $as_echo_n "checking for $ac_func... " >&6; }
10729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10730   $as_echo_n "(cached) " >&6
10731 else
10732   cat >conftest.$ac_ext <<_ACEOF
10733 /* confdefs.h.  */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h.  */
10738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10740 #define $ac_func innocuous_$ac_func
10741
10742 /* System header to define __stub macros and hopefully few prototypes,
10743     which can conflict with char $ac_func (); below.
10744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10745     <limits.h> exists even on freestanding compilers.  */
10746
10747 #ifdef __STDC__
10748 # include <limits.h>
10749 #else
10750 # include <assert.h>
10751 #endif
10752
10753 #undef $ac_func
10754
10755 /* Override any GCC internal prototype to avoid an error.
10756    Use char because int might match the return type of a GCC
10757    builtin and then its argument prototype would still apply.  */
10758 #ifdef __cplusplus
10759 extern "C"
10760 #endif
10761 char $ac_func ();
10762 /* The GNU C library defines this for functions which it implements
10763     to always fail with ENOSYS.  Some functions are actually named
10764     something starting with __ and the normal name is an alias.  */
10765 #if defined __stub_$ac_func || defined __stub___$ac_func
10766 choke me
10767 #endif
10768
10769 int
10770 main ()
10771 {
10772 return $ac_func ();
10773   ;
10774   return 0;
10775 }
10776 _ACEOF
10777 rm -f conftest.$ac_objext conftest$ac_exeext
10778 if { (ac_try="$ac_link"
10779 case "(($ac_try" in
10780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781   *) ac_try_echo=$ac_try;;
10782 esac
10783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10784 $as_echo "$ac_try_echo") >&5
10785   (eval "$ac_link") 2>conftest.er1
10786   ac_status=$?
10787   grep -v '^ *+' conftest.er1 >conftest.err
10788   rm -f conftest.er1
10789   cat conftest.err >&5
10790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); } && {
10792          test -z "$ac_cxx_werror_flag" ||
10793          test ! -s conftest.err
10794        } && test -s conftest$ac_exeext && {
10795          test "$cross_compiling" = yes ||
10796          $as_test_x conftest$ac_exeext
10797        }; then
10798   eval "$as_ac_var=yes"
10799 else
10800   $as_echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10802
10803         eval "$as_ac_var=no"
10804 fi
10805
10806 rm -rf conftest.dSYM
10807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10808       conftest$ac_exeext conftest.$ac_ext
10809 fi
10810 ac_res=`eval 'as_val=${'$as_ac_var'}
10811                  $as_echo "$as_val"'`
10812                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10813 $as_echo "$ac_res" >&6; }
10814 as_val=`eval 'as_val=${'$as_ac_var'}
10815                  $as_echo "$as_val"'`
10816    if test "x$as_val" = x""yes; then
10817   cat >>confdefs.h <<_ACEOF
10818 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10819 _ACEOF
10820
10821 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
10822 $as_echo_n "checking for _doprnt... " >&6; }
10823 if test "${ac_cv_func__doprnt+set}" = set; then
10824   $as_echo_n "(cached) " >&6
10825 else
10826   cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h.  */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h.  */
10832 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10834 #define _doprnt innocuous__doprnt
10835
10836 /* System header to define __stub macros and hopefully few prototypes,
10837     which can conflict with char _doprnt (); below.
10838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10839     <limits.h> exists even on freestanding compilers.  */
10840
10841 #ifdef __STDC__
10842 # include <limits.h>
10843 #else
10844 # include <assert.h>
10845 #endif
10846
10847 #undef _doprnt
10848
10849 /* Override any GCC internal prototype to avoid an error.
10850    Use char because int might match the return type of a GCC
10851    builtin and then its argument prototype would still apply.  */
10852 #ifdef __cplusplus
10853 extern "C"
10854 #endif
10855 char _doprnt ();
10856 /* The GNU C library defines this for functions which it implements
10857     to always fail with ENOSYS.  Some functions are actually named
10858     something starting with __ and the normal name is an alias.  */
10859 #if defined __stub__doprnt || defined __stub____doprnt
10860 choke me
10861 #endif
10862
10863 int
10864 main ()
10865 {
10866 return _doprnt ();
10867   ;
10868   return 0;
10869 }
10870 _ACEOF
10871 rm -f conftest.$ac_objext conftest$ac_exeext
10872 if { (ac_try="$ac_link"
10873 case "(($ac_try" in
10874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875   *) ac_try_echo=$ac_try;;
10876 esac
10877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10878 $as_echo "$ac_try_echo") >&5
10879   (eval "$ac_link") 2>conftest.er1
10880   ac_status=$?
10881   grep -v '^ *+' conftest.er1 >conftest.err
10882   rm -f conftest.er1
10883   cat conftest.err >&5
10884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); } && {
10886          test -z "$ac_cxx_werror_flag" ||
10887          test ! -s conftest.err
10888        } && test -s conftest$ac_exeext && {
10889          test "$cross_compiling" = yes ||
10890          $as_test_x conftest$ac_exeext
10891        }; then
10892   ac_cv_func__doprnt=yes
10893 else
10894   $as_echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10896
10897         ac_cv_func__doprnt=no
10898 fi
10899
10900 rm -rf conftest.dSYM
10901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10902       conftest$ac_exeext conftest.$ac_ext
10903 fi
10904 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10905 $as_echo "$ac_cv_func__doprnt" >&6; }
10906 if test "x$ac_cv_func__doprnt" = x""yes; then
10907
10908 cat >>confdefs.h <<\_ACEOF
10909 #define HAVE_DOPRNT 1
10910 _ACEOF
10911
10912 fi
10913
10914 fi
10915 done
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925 for ac_func in chroot fopencookie gettext isinf memmem snprintf vsnprintf
10926 do
10927 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10928 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10929 $as_echo_n "checking for $ac_func... " >&6; }
10930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10931   $as_echo_n "(cached) " >&6
10932 else
10933   cat >conftest.$ac_ext <<_ACEOF
10934 /* confdefs.h.  */
10935 _ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h.  */
10939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10941 #define $ac_func innocuous_$ac_func
10942
10943 /* System header to define __stub macros and hopefully few prototypes,
10944     which can conflict with char $ac_func (); below.
10945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10946     <limits.h> exists even on freestanding compilers.  */
10947
10948 #ifdef __STDC__
10949 # include <limits.h>
10950 #else
10951 # include <assert.h>
10952 #endif
10953
10954 #undef $ac_func
10955
10956 /* Override any GCC internal prototype to avoid an error.
10957    Use char because int might match the return type of a GCC
10958    builtin and then its argument prototype would still apply.  */
10959 #ifdef __cplusplus
10960 extern "C"
10961 #endif
10962 char $ac_func ();
10963 /* The GNU C library defines this for functions which it implements
10964     to always fail with ENOSYS.  Some functions are actually named
10965     something starting with __ and the normal name is an alias.  */
10966 #if defined __stub_$ac_func || defined __stub___$ac_func
10967 choke me
10968 #endif
10969
10970 int
10971 main ()
10972 {
10973 return $ac_func ();
10974   ;
10975   return 0;
10976 }
10977 _ACEOF
10978 rm -f conftest.$ac_objext conftest$ac_exeext
10979 if { (ac_try="$ac_link"
10980 case "(($ac_try" in
10981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10982   *) ac_try_echo=$ac_try;;
10983 esac
10984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10985 $as_echo "$ac_try_echo") >&5
10986   (eval "$ac_link") 2>conftest.er1
10987   ac_status=$?
10988   grep -v '^ *+' conftest.er1 >conftest.err
10989   rm -f conftest.er1
10990   cat conftest.err >&5
10991   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); } && {
10993          test -z "$ac_cxx_werror_flag" ||
10994          test ! -s conftest.err
10995        } && test -s conftest$ac_exeext && {
10996          test "$cross_compiling" = yes ||
10997          $as_test_x conftest$ac_exeext
10998        }; then
10999   eval "$as_ac_var=yes"
11000 else
11001   $as_echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11003
11004         eval "$as_ac_var=no"
11005 fi
11006
11007 rm -rf conftest.dSYM
11008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11009       conftest$ac_exeext conftest.$ac_ext
11010 fi
11011 ac_res=`eval 'as_val=${'$as_ac_var'}
11012                  $as_echo "$as_val"'`
11013                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11014 $as_echo "$ac_res" >&6; }
11015 as_val=`eval 'as_val=${'$as_ac_var'}
11016                  $as_echo "$as_val"'`
11017    if test "x$as_val" = x""yes; then
11018   cat >>confdefs.h <<_ACEOF
11019 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11020 _ACEOF
11021
11022 fi
11023 done
11024
11025
11026
11027     for ac_prog in pkg-config
11028 do
11029   # Extract the first word of "$ac_prog", so it can be a program name with args.
11030 set dummy $ac_prog; ac_word=$2
11031 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11032 $as_echo_n "checking for $ac_word... " >&6; }
11033 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
11034   $as_echo_n "(cached) " >&6
11035 else
11036   if test -n "$PKG_CONFIG"; then
11037   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
11038 else
11039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040 for as_dir in $PATH
11041 do
11042   IFS=$as_save_IFS
11043   test -z "$as_dir" && as_dir=.
11044   for ac_exec_ext in '' $ac_executable_extensions; do
11045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11046     ac_cv_prog_PKG_CONFIG="$ac_prog"
11047     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11048     break 2
11049   fi
11050 done
11051 done
11052 IFS=$as_save_IFS
11053
11054 fi
11055 fi
11056 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
11057 if test -n "$PKG_CONFIG"; then
11058   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11059 $as_echo "$PKG_CONFIG" >&6; }
11060 else
11061   { $as_echo "$as_me:$LINENO: result: no" >&5
11062 $as_echo "no" >&6; }
11063 fi
11064
11065
11066   test -n "$PKG_CONFIG" && break
11067 done
11068 test -n "$PKG_CONFIG" || PKG_CONFIG="no"
11069
11070
11071
11072     r="`eval echo '$'"PKG_CONFIG"`"
11073     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PKG_CONFIG"`' : '.*\(echo\)' > /dev/null; then
11074         true
11075     else
11076         ##STEPMAKE_WARN(cannot find . )
11077         false
11078     fi
11079
11080     if test $? -ne 0; then
11081
11082     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"pkg-config\"`\"
11083
11084         if test "REQUIRED" = "REQUIRED"; then
11085             command="echo ERROR: pkg-config not found"
11086             # abort configure process here?
11087         else
11088             command="- echo pkg-config not found"
11089         fi
11090         eval "PKG_CONFIG"='$command'
11091         false
11092     else
11093         true
11094     fi
11095
11096     if test $? -eq 0 -a -n "0.9.0"; then
11097
11098     r="`eval echo '$'"PKG_CONFIG"`"
11099     { $as_echo "$as_me:$LINENO: checking $r version" >&5
11100 $as_echo_n "checking $r version... " >&6; }
11101     exe=`
11102     ## which doesn't work in ash, if /usr/bin/which isn't installed
11103     ## type -p doesn't work in ash
11104     ## command -v doesn't work in zsh
11105     ## command -v "$r" 2>&1
11106     ## this test should work in ash, bash, pdksh (ksh), zsh
11107     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11108 `
11109     if test -n ""; then
11110         ver=""
11111     else
11112         ver=`
11113     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11114     ##
11115     ## ARG.
11116     ## Workaround for broken Debian gcc version string:
11117     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11118     ##
11119     ## -V: Workaround for python
11120
11121     #dnl
11122
11123     ## Assume and hunt for dotted version multiplet.
11124     ## use eval trickery, because we cannot use multi-level $() instead of ``
11125     ## for compatibility reasons.
11126
11127     ## grab the first version number in  --version output.
11128     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11129                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11130                 head -n 1 |
11131                 tr ' ' '\n' |
11132                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11133                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11134                 head -n 1\`\"
11135
11136     if test -z "$_ver"; then
11137         ## If empty, try date [fontforge]
11138         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11139             | head -n 1 \
11140             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11141     fi
11142     echo "$_ver"
11143     #dnl
11144 `
11145     fi
11146     num=`
11147     echo "$ver" | awk -F. '
11148     {
11149       if ($3) {three = $3}
11150       else {three = 0}
11151     }
11152     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11153 `
11154     req=`
11155     echo "0.9.0" | awk -F. '
11156     {
11157       if ($3) {three = $3}
11158       else {three = 0}
11159     }
11160     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11161 `
11162     { $as_echo "$as_me:$LINENO: result: $ver" >&5
11163 $as_echo "$ver" >&6; }
11164     if test "$num" -lt "$req"; then
11165
11166     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 0.9.0 (installed: $ver)"\"`\"
11167
11168     fi
11169     vervar="`echo PKG_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
11170     eval `echo $vervar=$num`
11171 ##    AC_SUBST(`eval echo $vervar`)
11172
11173     fi
11174
11175
11176 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic relocation" >&5
11177 $as_echo_n "checking whether to enable dynamic relocation... " >&6; }
11178 if test "$reloc_b" = "yes"; then
11179     cat >>confdefs.h <<\_ACEOF
11180 #define ARGV0_RELOCATION 1
11181 _ACEOF
11182
11183 fi
11184 { $as_echo "$as_me:$LINENO: result: $reloc_b" >&5
11185 $as_echo "$reloc_b" >&6; }
11186
11187 { $as_echo "$as_me:$LINENO: checking for rpath linkage" >&5
11188 $as_echo_n "checking for rpath linkage... " >&6; }
11189 if test "$rpath_b" = "yes"; then
11190     LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib"
11191 elif test "$rpath_b" != "no"; then
11192     LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b"
11193 fi
11194 { $as_echo "$as_me:$LINENO: result: $rpath_b" >&5
11195 $as_echo "$rpath_b" >&6; }
11196
11197 HOST_ARCH=`$CC -dumpmachine`
11198
11199
11200
11201
11202   succeeded=no
11203
11204   if test -z "$PKG_CONFIG"; then
11205     # Extract the first word of "pkg-config", so it can be a program name with args.
11206 set dummy pkg-config; ac_word=$2
11207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11208 $as_echo_n "checking for $ac_word... " >&6; }
11209 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11210   $as_echo_n "(cached) " >&6
11211 else
11212   case $PKG_CONFIG in
11213   [\\/]* | ?:[\\/]*)
11214   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11215   ;;
11216   *)
11217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in $PATH
11219 do
11220   IFS=$as_save_IFS
11221   test -z "$as_dir" && as_dir=.
11222   for ac_exec_ext in '' $ac_executable_extensions; do
11223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11224     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11225     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11226     break 2
11227   fi
11228 done
11229 done
11230 IFS=$as_save_IFS
11231
11232   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11233   ;;
11234 esac
11235 fi
11236 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11237 if test -n "$PKG_CONFIG"; then
11238   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11239 $as_echo "$PKG_CONFIG" >&6; }
11240 else
11241   { $as_echo "$as_me:$LINENO: result: no" >&5
11242 $as_echo "no" >&6; }
11243 fi
11244
11245
11246   fi
11247
11248   if test "$PKG_CONFIG" = "no" ; then
11249      echo "*** The pkg-config script could not be found. Make sure it is"
11250      echo "*** in your path, or set the PKG_CONFIG environment variable"
11251      echo "*** to the full path to pkg-config."
11252      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11253   else
11254      PKG_CONFIG_MIN_VERSION=0.9.0
11255      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11256         { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.6.0" >&5
11257 $as_echo_n "checking for pangoft2 >= 1.6.0... " >&6; }
11258
11259         if $PKG_CONFIG --exists "pangoft2 >= 1.6.0" ; then
11260             { $as_echo "$as_me:$LINENO: result: yes" >&5
11261 $as_echo "yes" >&6; }
11262             succeeded=yes
11263
11264             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
11265 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
11266             PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.6.0"`
11267             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
11268 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
11269
11270             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
11271 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
11272             PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.6.0"`
11273             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
11274 $as_echo "$PANGO_FT2_LIBS" >&6; }
11275         else
11276             PANGO_FT2_CFLAGS=""
11277             PANGO_FT2_LIBS=""
11278             ## If we have a custom action on failure, don't print errors, but
11279             ## do set a variable so people can do so.
11280             PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.6.0"`
11281
11282         fi
11283
11284
11285
11286      fi
11287   fi
11288
11289   if test $succeeded = yes; then
11290      have_pangoft2=yes
11291   else
11292      true
11293   fi
11294
11295     if test "$have_pangoft2" = yes ; then
11296         cat >>confdefs.h <<\_ACEOF
11297 #define HAVE_PANGO16 1
11298 _ACEOF
11299
11300         cat >>confdefs.h <<\_ACEOF
11301 #define HAVE_PANGO_FT2 1
11302 _ACEOF
11303
11304         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11305         save_CPPFLAGS="$CPPFLAGS"
11306         save_LIBS="$LIBS"
11307         CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
11308         LIBS="$PANGO_FT2_LIBS $LIBS"
11309
11310 for ac_header in pango/pangoft2.h
11311 do
11312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11315 $as_echo_n "checking for $ac_header... " >&6; }
11316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317   $as_echo_n "(cached) " >&6
11318 fi
11319 ac_res=`eval 'as_val=${'$as_ac_Header'}
11320                  $as_echo "$as_val"'`
11321                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11322 $as_echo "$ac_res" >&6; }
11323 else
11324   # Is the header compilable?
11325 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11326 $as_echo_n "checking $ac_header usability... " >&6; }
11327 cat >conftest.$ac_ext <<_ACEOF
11328 /* confdefs.h.  */
11329 _ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h.  */
11333 $ac_includes_default
11334 #include <$ac_header>
11335 _ACEOF
11336 rm -f conftest.$ac_objext
11337 if { (ac_try="$ac_compile"
11338 case "(($ac_try" in
11339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340   *) ac_try_echo=$ac_try;;
11341 esac
11342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11343 $as_echo "$ac_try_echo") >&5
11344   (eval "$ac_compile") 2>conftest.er1
11345   ac_status=$?
11346   grep -v '^ *+' conftest.er1 >conftest.err
11347   rm -f conftest.er1
11348   cat conftest.err >&5
11349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); } && {
11351          test -z "$ac_cxx_werror_flag" ||
11352          test ! -s conftest.err
11353        } && test -s conftest.$ac_objext; then
11354   ac_header_compiler=yes
11355 else
11356   $as_echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11358
11359         ac_header_compiler=no
11360 fi
11361
11362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11364 $as_echo "$ac_header_compiler" >&6; }
11365
11366 # Is the header present?
11367 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11368 $as_echo_n "checking $ac_header presence... " >&6; }
11369 cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h.  */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h.  */
11375 #include <$ac_header>
11376 _ACEOF
11377 if { (ac_try="$ac_cpp conftest.$ac_ext"
11378 case "(($ac_try" in
11379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380   *) ac_try_echo=$ac_try;;
11381 esac
11382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11383 $as_echo "$ac_try_echo") >&5
11384   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11385   ac_status=$?
11386   grep -v '^ *+' conftest.er1 >conftest.err
11387   rm -f conftest.er1
11388   cat conftest.err >&5
11389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390   (exit $ac_status); } >/dev/null && {
11391          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11392          test ! -s conftest.err
11393        }; then
11394   ac_header_preproc=yes
11395 else
11396   $as_echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11398
11399   ac_header_preproc=no
11400 fi
11401
11402 rm -f conftest.err conftest.$ac_ext
11403 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11404 $as_echo "$ac_header_preproc" >&6; }
11405
11406 # So?  What about this header?
11407 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11408   yes:no: )
11409     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11410 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11411     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11412 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11413     ac_header_preproc=yes
11414     ;;
11415   no:yes:* )
11416     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11417 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11418     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11419 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11420     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11421 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11422     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11423 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11424     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11425 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11426     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11427 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11428
11429     ;;
11430 esac
11431 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11432 $as_echo_n "checking for $ac_header... " >&6; }
11433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434   $as_echo_n "(cached) " >&6
11435 else
11436   eval "$as_ac_Header=\$ac_header_preproc"
11437 fi
11438 ac_res=`eval 'as_val=${'$as_ac_Header'}
11439                  $as_echo "$as_val"'`
11440                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11441 $as_echo "$ac_res" >&6; }
11442
11443 fi
11444 as_val=`eval 'as_val=${'$as_ac_Header'}
11445                  $as_echo "$as_val"'`
11446    if test "x$as_val" = x""yes; then
11447   cat >>confdefs.h <<_ACEOF
11448 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11449 _ACEOF
11450
11451 fi
11452
11453 done
11454
11455
11456 for ac_func in pango_ft2_font_map_create_context
11457 do
11458 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11459 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11460 $as_echo_n "checking for $ac_func... " >&6; }
11461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11462   $as_echo_n "(cached) " >&6
11463 else
11464   cat >conftest.$ac_ext <<_ACEOF
11465 /* confdefs.h.  */
11466 _ACEOF
11467 cat confdefs.h >>conftest.$ac_ext
11468 cat >>conftest.$ac_ext <<_ACEOF
11469 /* end confdefs.h.  */
11470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11472 #define $ac_func innocuous_$ac_func
11473
11474 /* System header to define __stub macros and hopefully few prototypes,
11475     which can conflict with char $ac_func (); below.
11476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11477     <limits.h> exists even on freestanding compilers.  */
11478
11479 #ifdef __STDC__
11480 # include <limits.h>
11481 #else
11482 # include <assert.h>
11483 #endif
11484
11485 #undef $ac_func
11486
11487 /* Override any GCC internal prototype to avoid an error.
11488    Use char because int might match the return type of a GCC
11489    builtin and then its argument prototype would still apply.  */
11490 #ifdef __cplusplus
11491 extern "C"
11492 #endif
11493 char $ac_func ();
11494 /* The GNU C library defines this for functions which it implements
11495     to always fail with ENOSYS.  Some functions are actually named
11496     something starting with __ and the normal name is an alias.  */
11497 #if defined __stub_$ac_func || defined __stub___$ac_func
11498 choke me
11499 #endif
11500
11501 int
11502 main ()
11503 {
11504 return $ac_func ();
11505   ;
11506   return 0;
11507 }
11508 _ACEOF
11509 rm -f conftest.$ac_objext conftest$ac_exeext
11510 if { (ac_try="$ac_link"
11511 case "(($ac_try" in
11512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513   *) ac_try_echo=$ac_try;;
11514 esac
11515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11516 $as_echo "$ac_try_echo") >&5
11517   (eval "$ac_link") 2>conftest.er1
11518   ac_status=$?
11519   grep -v '^ *+' conftest.er1 >conftest.err
11520   rm -f conftest.er1
11521   cat conftest.err >&5
11522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); } && {
11524          test -z "$ac_cxx_werror_flag" ||
11525          test ! -s conftest.err
11526        } && test -s conftest$ac_exeext && {
11527          test "$cross_compiling" = yes ||
11528          $as_test_x conftest$ac_exeext
11529        }; then
11530   eval "$as_ac_var=yes"
11531 else
11532   $as_echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11534
11535         eval "$as_ac_var=no"
11536 fi
11537
11538 rm -rf conftest.dSYM
11539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11540       conftest$ac_exeext conftest.$ac_ext
11541 fi
11542 ac_res=`eval 'as_val=${'$as_ac_var'}
11543                  $as_echo "$as_val"'`
11544                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11545 $as_echo "$ac_res" >&6; }
11546 as_val=`eval 'as_val=${'$as_ac_var'}
11547                  $as_echo "$as_val"'`
11548    if test "x$as_val" = x""yes; then
11549   cat >>confdefs.h <<_ACEOF
11550 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11551 _ACEOF
11552
11553 fi
11554 done
11555
11556
11557
11558         CPPFLAGS="$save_CPPFLAGS"
11559         LIBS="$save_LIBS"
11560     else
11561         # UGR
11562         #r="libpangoft2-dev or pangoft2-devel"e
11563         r="libpango1.0-dev or pango?-devel"
11564         ver="`pkg-config --modversion pangoft2`"
11565
11566     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.6.0 (installed: $ver)"\"`\"
11567
11568     fi
11569
11570
11571
11572   succeeded=no
11573
11574   if test -z "$PKG_CONFIG"; then
11575     # Extract the first word of "pkg-config", so it can be a program name with args.
11576 set dummy pkg-config; ac_word=$2
11577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11578 $as_echo_n "checking for $ac_word... " >&6; }
11579 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11580   $as_echo_n "(cached) " >&6
11581 else
11582   case $PKG_CONFIG in
11583   [\\/]* | ?:[\\/]*)
11584   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11585   ;;
11586   *)
11587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11588 for as_dir in $PATH
11589 do
11590   IFS=$as_save_IFS
11591   test -z "$as_dir" && as_dir=.
11592   for ac_exec_ext in '' $ac_executable_extensions; do
11593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11594     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11595     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11596     break 2
11597   fi
11598 done
11599 done
11600 IFS=$as_save_IFS
11601
11602   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11603   ;;
11604 esac
11605 fi
11606 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11607 if test -n "$PKG_CONFIG"; then
11608   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11609 $as_echo "$PKG_CONFIG" >&6; }
11610 else
11611   { $as_echo "$as_me:$LINENO: result: no" >&5
11612 $as_echo "no" >&6; }
11613 fi
11614
11615
11616   fi
11617
11618   if test "$PKG_CONFIG" = "no" ; then
11619      echo "*** The pkg-config script could not be found. Make sure it is"
11620      echo "*** in your path, or set the PKG_CONFIG environment variable"
11621      echo "*** to the full path to pkg-config."
11622      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11623   else
11624      PKG_CONFIG_MIN_VERSION=0.9.0
11625      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11626         { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.4.0" >&5
11627 $as_echo_n "checking for fontconfig >= 2.4.0... " >&6; }
11628
11629         if $PKG_CONFIG --exists "fontconfig >= 2.4.0" ; then
11630             { $as_echo "$as_me:$LINENO: result: yes" >&5
11631 $as_echo "yes" >&6; }
11632             succeeded=yes
11633
11634             { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
11635 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11636             FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4.0"`
11637             { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
11638 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11639
11640             { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
11641 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11642             FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4.0"`
11643             { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
11644 $as_echo "$FONTCONFIG_LIBS" >&6; }
11645         else
11646             FONTCONFIG_CFLAGS=""
11647             FONTCONFIG_LIBS=""
11648             ## If we have a custom action on failure, don't print errors, but
11649             ## do set a variable so people can do so.
11650             FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.4.0"`
11651
11652         fi
11653
11654
11655
11656      fi
11657   fi
11658
11659   if test $succeeded = yes; then
11660      have_fontconfig=yes
11661   else
11662      true
11663   fi
11664
11665     if test "$have_fontconfig" = yes ; then
11666         cat >>confdefs.h <<\_ACEOF
11667 #define HAVE_FONTCONFIG 1
11668 _ACEOF
11669
11670         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11671         save_CPPFLAGS="$CPPFLAGS"
11672         save_LIBS="$LIBS"
11673         CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
11674         LIBS="$FONTCONFIG_LIBS $LIBS"
11675
11676
11677         CPPFLAGS="$save_CPPFLAGS"
11678         LIBS="$save_LIBS"
11679     else
11680         r="libfontconfig-dev or fontconfig-devel"
11681         ver="`pkg-config --modversion fontconfig`"
11682
11683     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.4.0 (installed: $ver)"\"`\"
11684
11685     fi
11686
11687
11688
11689   succeeded=no
11690
11691   if test -z "$PKG_CONFIG"; then
11692     # Extract the first word of "pkg-config", so it can be a program name with args.
11693 set dummy pkg-config; ac_word=$2
11694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11695 $as_echo_n "checking for $ac_word... " >&6; }
11696 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11697   $as_echo_n "(cached) " >&6
11698 else
11699   case $PKG_CONFIG in
11700   [\\/]* | ?:[\\/]*)
11701   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11702   ;;
11703   *)
11704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11706 do
11707   IFS=$as_save_IFS
11708   test -z "$as_dir" && as_dir=.
11709   for ac_exec_ext in '' $ac_executable_extensions; do
11710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11711     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11712     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11713     break 2
11714   fi
11715 done
11716 done
11717 IFS=$as_save_IFS
11718
11719   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11720   ;;
11721 esac
11722 fi
11723 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11724 if test -n "$PKG_CONFIG"; then
11725   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11726 $as_echo "$PKG_CONFIG" >&6; }
11727 else
11728   { $as_echo "$as_me:$LINENO: result: no" >&5
11729 $as_echo "no" >&6; }
11730 fi
11731
11732
11733   fi
11734
11735   if test "$PKG_CONFIG" = "no" ; then
11736      echo "*** The pkg-config script could not be found. Make sure it is"
11737      echo "*** in your path, or set the PKG_CONFIG environment variable"
11738      echo "*** to the full path to pkg-config."
11739      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11740   else
11741      PKG_CONFIG_MIN_VERSION=0.9.0
11742      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11743         { $as_echo "$as_me:$LINENO: checking for freetype2 >= 2.1.10" >&5
11744 $as_echo_n "checking for freetype2 >= 2.1.10... " >&6; }
11745
11746         if $PKG_CONFIG --exists "freetype2 >= 2.1.10" ; then
11747             { $as_echo "$as_me:$LINENO: result: yes" >&5
11748 $as_echo "yes" >&6; }
11749             succeeded=yes
11750
11751             { $as_echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
11752 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
11753             FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.10"`
11754             { $as_echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
11755 $as_echo "$FREETYPE2_CFLAGS" >&6; }
11756
11757             { $as_echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
11758 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
11759             FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.10"`
11760             { $as_echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
11761 $as_echo "$FREETYPE2_LIBS" >&6; }
11762         else
11763             FREETYPE2_CFLAGS=""
11764             FREETYPE2_LIBS=""
11765             ## If we have a custom action on failure, don't print errors, but
11766             ## do set a variable so people can do so.
11767             FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.1.10"`
11768
11769         fi
11770
11771
11772
11773      fi
11774   fi
11775
11776   if test $succeeded = yes; then
11777      have_freetype2=yes
11778   else
11779      true
11780   fi
11781
11782     if test "$have_freetype2" = yes; then
11783         cat >>confdefs.h <<\_ACEOF
11784 #define HAVE_FREETYPE2 1
11785 _ACEOF
11786
11787         save_CPPFLAGS="$CPPFLAGS"
11788         save_LIBS="$LIBS"
11789         CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
11790         LIBS="$FREETYPE2_LIBS $LIBS"
11791
11792
11793         CPPFLAGS="$save_CPPFLAGS"
11794         LIBS="$save_LIBS"
11795     else
11796         # UGR
11797         #r="libfreetype2-dev or freetype2-devel"
11798         r="libfreetype6-dev or freetype?-devel"
11799         ver="`pkg-config --modversion freetype2`"
11800
11801     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.1.10 (installed: $ver)"\"`\"
11802
11803     fi
11804
11805
11806
11807     { $as_echo "$as_me:$LINENO: checking host system type" >&5
11808 $as_echo_n "checking host system type... " >&6; }
11809 if test "${ac_cv_host+set}" = set; then
11810   $as_echo_n "(cached) " >&6
11811 else
11812   if test "x$host_alias" = x; then
11813   ac_cv_host=$ac_cv_build
11814 else
11815   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11816     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11817 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11818    { (exit 1); exit 1; }; }
11819 fi
11820
11821 fi
11822 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11823 $as_echo "$ac_cv_host" >&6; }
11824 case $ac_cv_host in
11825 *-*-*) ;;
11826 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11827 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11828    { (exit 1); exit 1; }; };;
11829 esac
11830 host=$ac_cv_host
11831 ac_save_IFS=$IFS; IFS='-'
11832 set x $ac_cv_host
11833 shift
11834 host_cpu=$1
11835 host_vendor=$2
11836 shift; shift
11837 # Remember, the first character of IFS is used to create $*,
11838 # except with old shells:
11839 host_os=$*
11840 IFS=$ac_save_IFS
11841 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11842
11843
11844 case $host_os in
11845   *cygwin* ) CYGWIN=yes;;
11846          * ) CYGWIN=no;;
11847 esac
11848
11849     { $as_echo "$as_me:$LINENO: checking host system type" >&5
11850 $as_echo_n "checking host system type... " >&6; }
11851 if test "${ac_cv_host+set}" = set; then
11852   $as_echo_n "(cached) " >&6
11853 else
11854   if test "x$host_alias" = x; then
11855   ac_cv_host=$ac_cv_build
11856 else
11857   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11858     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11859 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11860    { (exit 1); exit 1; }; }
11861 fi
11862
11863 fi
11864 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11865 $as_echo "$ac_cv_host" >&6; }
11866 case $ac_cv_host in
11867 *-*-*) ;;
11868 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11869 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11870    { (exit 1); exit 1; }; };;
11871 esac
11872 host=$ac_cv_host
11873 ac_save_IFS=$IFS; IFS='-'
11874 set x $ac_cv_host
11875 shift
11876 host_cpu=$1
11877 host_vendor=$2
11878 shift; shift
11879 # Remember, the first character of IFS is used to create $*,
11880 # except with old shells:
11881 host_os=$*
11882 IFS=$ac_save_IFS
11883 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11884
11885
11886 case $host_os in
11887   *mingw32* ) MINGW32=yes;;
11888           * ) MINGW32=no;;
11889 esac
11890
11891
11892     if test "$CYGWIN" = "yes"; then
11893         LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
11894         program_suffix=.exe
11895         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11896     elif test "$MINGW32" = "yes"; then
11897         LN='cp -r'
11898         LN_S='cp -r'
11899         program_suffix=.exe
11900         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11901         PATHSEP=';'
11902     fi
11903
11904
11905
11906     cat >>confdefs.h <<_ACEOF
11907 #define DIRSEP '${DIRSEP}'
11908 _ACEOF
11909
11910     cat >>confdefs.h <<_ACEOF
11911 #define PATHSEP '${PATHSEP}'
11912 _ACEOF
11913
11914
11915
11916
11917
11918     { $as_echo "$as_me:$LINENO: checking for some flavor of Windows" >&5
11919 $as_echo_n "checking for some flavor of Windows... " >&6; }
11920     if test "$CYGWIN$MINGW32" = "nono"; then
11921         PLATFORM_WINDOWS=no
11922     else
11923         PLATFORM_WINDOWS=yes
11924     fi
11925     { $as_echo "$as_me:$LINENO: result: $PLATFORM_WINDOWS" >&5
11926 $as_echo "$PLATFORM_WINDOWS" >&6; }
11927
11928
11929     for ac_prog in $target-windres windres
11930 do
11931   # Extract the first word of "$ac_prog", so it can be a program name with args.
11932 set dummy $ac_prog; ac_word=$2
11933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11934 $as_echo_n "checking for $ac_word... " >&6; }
11935 if test "${ac_cv_prog_WINDRES+set}" = set; then
11936   $as_echo_n "(cached) " >&6
11937 else
11938   if test -n "$WINDRES"; then
11939   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11940 else
11941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11942 for as_dir in $PATH
11943 do
11944   IFS=$as_save_IFS
11945   test -z "$as_dir" && as_dir=.
11946   for ac_exec_ext in '' $ac_executable_extensions; do
11947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11948     ac_cv_prog_WINDRES="$ac_prog"
11949     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11950     break 2
11951   fi
11952 done
11953 done
11954 IFS=$as_save_IFS
11955
11956 fi
11957 fi
11958 WINDRES=$ac_cv_prog_WINDRES
11959 if test -n "$WINDRES"; then
11960   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
11961 $as_echo "$WINDRES" >&6; }
11962 else
11963   { $as_echo "$as_me:$LINENO: result: no" >&5
11964 $as_echo "no" >&6; }
11965 fi
11966
11967
11968   test -n "$WINDRES" && break
11969 done
11970 test -n "$WINDRES" || WINDRES="no"
11971
11972
11973
11974     r="`eval echo '$'"WINDRES"`"
11975     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"WINDRES"`' : '.*\(echo\)' > /dev/null; then
11976         true
11977     else
11978         ##STEPMAKE_WARN(cannot find . )
11979         false
11980     fi
11981
11982     if test $? -ne 0; then
11983
11984     eval "x"=\"`eval echo \"'$'x\" \"$target-windres windres\"`\"
11985
11986         if test "x" = "REQUIRED"; then
11987             command="echo ERROR: $target-windres windres not found"
11988             # abort configure process here?
11989         else
11990             command="- echo $target-windres windres not found"
11991         fi
11992         eval "WINDRES"='$command'
11993         false
11994     else
11995         true
11996     fi
11997
11998     if test $? -eq 0 -a -n ""; then
11999
12000     r="`eval echo '$'"WINDRES"`"
12001     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12002 $as_echo_n "checking $r version... " >&6; }
12003     exe=`
12004     ## which doesn't work in ash, if /usr/bin/which isn't installed
12005     ## type -p doesn't work in ash
12006     ## command -v doesn't work in zsh
12007     ## command -v "$r" 2>&1
12008     ## this test should work in ash, bash, pdksh (ksh), zsh
12009     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12010 `
12011     if test -n ""; then
12012         ver=""
12013     else
12014         ver=`
12015     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12016     ##
12017     ## ARG.
12018     ## Workaround for broken Debian gcc version string:
12019     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12020     ##
12021     ## -V: Workaround for python
12022
12023     #dnl
12024
12025     ## Assume and hunt for dotted version multiplet.
12026     ## use eval trickery, because we cannot use multi-level $() instead of ``
12027     ## for compatibility reasons.
12028
12029     ## grab the first version number in  --version output.
12030     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12031                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12032                 head -n 1 |
12033                 tr ' ' '\n' |
12034                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12035                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12036                 head -n 1\`\"
12037
12038     if test -z "$_ver"; then
12039         ## If empty, try date [fontforge]
12040         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12041             | head -n 1 \
12042             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12043     fi
12044     echo "$_ver"
12045     #dnl
12046 `
12047     fi
12048     num=`
12049     echo "$ver" | awk -F. '
12050     {
12051       if ($3) {three = $3}
12052       else {three = 0}
12053     }
12054     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12055 `
12056     req=`
12057     echo "" | awk -F. '
12058     {
12059       if ($3) {three = $3}
12060       else {three = 0}
12061     }
12062     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12063 `
12064     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12065 $as_echo "$ver" >&6; }
12066     if test "$num" -lt "$req"; then
12067
12068     eval "x"=\"`eval echo \"'$'x\" \""$r >=  (installed: $ver)"\"`\"
12069
12070     fi
12071     vervar="`echo WINDRES | tr 'a-z' 'A-Z'`_VERSION"
12072     eval `echo $vervar=$num`
12073 ##    AC_SUBST(`eval echo $vervar`)
12074
12075     fi
12076
12077
12078
12079
12080 ## Optional tools for building documentation, website, extra fonts.
12081
12082 # guile executable for some scripts
12083
12084
12085     for ac_prog in guile guile1
12086 do
12087   # Extract the first word of "$ac_prog", so it can be a program name with args.
12088 set dummy $ac_prog; ac_word=$2
12089 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12090 $as_echo_n "checking for $ac_word... " >&6; }
12091 if test "${ac_cv_prog_GUILE+set}" = set; then
12092   $as_echo_n "(cached) " >&6
12093 else
12094   if test -n "$GUILE"; then
12095   ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
12096 else
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH
12099 do
12100   IFS=$as_save_IFS
12101   test -z "$as_dir" && as_dir=.
12102   for ac_exec_ext in '' $ac_executable_extensions; do
12103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12104     ac_cv_prog_GUILE="$ac_prog"
12105     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12106     break 2
12107   fi
12108 done
12109 done
12110 IFS=$as_save_IFS
12111
12112 fi
12113 fi
12114 GUILE=$ac_cv_prog_GUILE
12115 if test -n "$GUILE"; then
12116   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12117 $as_echo "$GUILE" >&6; }
12118 else
12119   { $as_echo "$as_me:$LINENO: result: no" >&5
12120 $as_echo "no" >&6; }
12121 fi
12122
12123
12124   test -n "$GUILE" && break
12125 done
12126 test -n "$GUILE" || GUILE="no"
12127
12128
12129
12130     r="`eval echo '$'"GUILE"`"
12131     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
12132         true
12133     else
12134         ##STEPMAKE_WARN(cannot find . )
12135         false
12136     fi
12137
12138     if test $? -ne 0; then
12139
12140     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"guile guile1\"`\"
12141
12142         if test "OPTIONAL" = "REQUIRED"; then
12143             command="echo ERROR: guile guile1 not found"
12144             # abort configure process here?
12145         else
12146             command="- echo guile guile1 not found"
12147         fi
12148         eval "GUILE"='$command'
12149         false
12150     else
12151         true
12152     fi
12153
12154     if test $? -eq 0; then
12155         for ac_prog in guile guile1
12156 do
12157   # Extract the first word of "$ac_prog", so it can be a program name with args.
12158 set dummy $ac_prog; ac_word=$2
12159 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12160 $as_echo_n "checking for $ac_word... " >&6; }
12161 if test "${ac_cv_path_GUILE+set}" = set; then
12162   $as_echo_n "(cached) " >&6
12163 else
12164   case $GUILE in
12165   [\\/]* | ?:[\\/]*)
12166   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
12167   ;;
12168   *)
12169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170 for as_dir in $PATH
12171 do
12172   IFS=$as_save_IFS
12173   test -z "$as_dir" && as_dir=.
12174   for ac_exec_ext in '' $ac_executable_extensions; do
12175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12176     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
12177     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12178     break 2
12179   fi
12180 done
12181 done
12182 IFS=$as_save_IFS
12183
12184   ;;
12185 esac
12186 fi
12187 GUILE=$ac_cv_path_GUILE
12188 if test -n "$GUILE"; then
12189   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12190 $as_echo "$GUILE" >&6; }
12191 else
12192   { $as_echo "$as_me:$LINENO: result: no" >&5
12193 $as_echo "no" >&6; }
12194 fi
12195
12196
12197   test -n "$GUILE" && break
12198 done
12199
12200         if test -n ""; then
12201
12202     r="`eval echo '$'"GUILE"`"
12203     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12204 $as_echo_n "checking $r version... " >&6; }
12205     exe=`
12206     ## which doesn't work in ash, if /usr/bin/which isn't installed
12207     ## type -p doesn't work in ash
12208     ## command -v doesn't work in zsh
12209     ## command -v "$r" 2>&1
12210     ## this test should work in ash, bash, pdksh (ksh), zsh
12211     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12212 `
12213     if test -n ""; then
12214         ver=""
12215     else
12216         ver=`
12217     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12218     ##
12219     ## ARG.
12220     ## Workaround for broken Debian gcc version string:
12221     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12222     ##
12223     ## -V: Workaround for python
12224
12225     #dnl
12226
12227     ## Assume and hunt for dotted version multiplet.
12228     ## use eval trickery, because we cannot use multi-level $() instead of ``
12229     ## for compatibility reasons.
12230
12231     ## grab the first version number in  --version output.
12232     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12233                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12234                 head -n 1 |
12235                 tr ' ' '\n' |
12236                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12237                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12238                 head -n 1\`\"
12239
12240     if test -z "$_ver"; then
12241         ## If empty, try date [fontforge]
12242         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12243             | head -n 1 \
12244             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12245     fi
12246     echo "$_ver"
12247     #dnl
12248 `
12249     fi
12250     num=`
12251     echo "$ver" | awk -F. '
12252     {
12253       if ($3) {three = $3}
12254       else {three = 0}
12255     }
12256     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12257 `
12258     req=`
12259     echo "" | awk -F. '
12260     {
12261       if ($3) {three = $3}
12262       else {three = 0}
12263     }
12264     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12265 `
12266     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12267 $as_echo "$ver" >&6; }
12268     if test "$num" -lt "$req"; then
12269
12270     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
12271
12272     fi
12273     vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
12274     eval `echo $vervar=$num`
12275 ##    AC_SUBST(`eval echo $vervar`)
12276
12277         fi
12278     fi
12279
12280
12281
12282 # perl for help2man.
12283
12284
12285     for ac_prog in perl
12286 do
12287   # Extract the first word of "$ac_prog", so it can be a program name with args.
12288 set dummy $ac_prog; ac_word=$2
12289 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12290 $as_echo_n "checking for $ac_word... " >&6; }
12291 if test "${ac_cv_prog_PERL+set}" = set; then
12292   $as_echo_n "(cached) " >&6
12293 else
12294   if test -n "$PERL"; then
12295   ac_cv_prog_PERL="$PERL" # Let the user override the test.
12296 else
12297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298 for as_dir in $PATH
12299 do
12300   IFS=$as_save_IFS
12301   test -z "$as_dir" && as_dir=.
12302   for ac_exec_ext in '' $ac_executable_extensions; do
12303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12304     ac_cv_prog_PERL="$ac_prog"
12305     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12306     break 2
12307   fi
12308 done
12309 done
12310 IFS=$as_save_IFS
12311
12312 fi
12313 fi
12314 PERL=$ac_cv_prog_PERL
12315 if test -n "$PERL"; then
12316   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12317 $as_echo "$PERL" >&6; }
12318 else
12319   { $as_echo "$as_me:$LINENO: result: no" >&5
12320 $as_echo "no" >&6; }
12321 fi
12322
12323
12324   test -n "$PERL" && break
12325 done
12326 test -n "$PERL" || PERL="no"
12327
12328
12329
12330     r="`eval echo '$'"PERL"`"
12331     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
12332         true
12333     else
12334         ##STEPMAKE_WARN(cannot find . )
12335         false
12336     fi
12337
12338     if test $? -ne 0; then
12339
12340     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"perl\"`\"
12341
12342         if test "OPTIONAL" = "REQUIRED"; then
12343             command="echo ERROR: perl not found"
12344             # abort configure process here?
12345         else
12346             command="- echo perl not found"
12347         fi
12348         eval "PERL"='$command'
12349         false
12350     else
12351         true
12352     fi
12353
12354     if test $? -eq 0; then
12355         for ac_prog in perl
12356 do
12357   # Extract the first word of "$ac_prog", so it can be a program name with args.
12358 set dummy $ac_prog; ac_word=$2
12359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12360 $as_echo_n "checking for $ac_word... " >&6; }
12361 if test "${ac_cv_path_PERL+set}" = set; then
12362   $as_echo_n "(cached) " >&6
12363 else
12364   case $PERL in
12365   [\\/]* | ?:[\\/]*)
12366   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12367   ;;
12368   *)
12369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370 for as_dir in $PATH
12371 do
12372   IFS=$as_save_IFS
12373   test -z "$as_dir" && as_dir=.
12374   for ac_exec_ext in '' $ac_executable_extensions; do
12375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12376     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12377     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12378     break 2
12379   fi
12380 done
12381 done
12382 IFS=$as_save_IFS
12383
12384   ;;
12385 esac
12386 fi
12387 PERL=$ac_cv_path_PERL
12388 if test -n "$PERL"; then
12389   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12390 $as_echo "$PERL" >&6; }
12391 else
12392   { $as_echo "$as_me:$LINENO: result: no" >&5
12393 $as_echo "no" >&6; }
12394 fi
12395
12396
12397   test -n "$PERL" && break
12398 done
12399
12400         if test -n ""; then
12401
12402     r="`eval echo '$'"PERL"`"
12403     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12404 $as_echo_n "checking $r version... " >&6; }
12405     exe=`
12406     ## which doesn't work in ash, if /usr/bin/which isn't installed
12407     ## type -p doesn't work in ash
12408     ## command -v doesn't work in zsh
12409     ## command -v "$r" 2>&1
12410     ## this test should work in ash, bash, pdksh (ksh), zsh
12411     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12412 `
12413     if test -n ""; then
12414         ver=""
12415     else
12416         ver=`
12417     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12418     ##
12419     ## ARG.
12420     ## Workaround for broken Debian gcc version string:
12421     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12422     ##
12423     ## -V: Workaround for python
12424
12425     #dnl
12426
12427     ## Assume and hunt for dotted version multiplet.
12428     ## use eval trickery, because we cannot use multi-level $() instead of ``
12429     ## for compatibility reasons.
12430
12431     ## grab the first version number in  --version output.
12432     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12433                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12434                 head -n 1 |
12435                 tr ' ' '\n' |
12436                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12437                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12438                 head -n 1\`\"
12439
12440     if test -z "$_ver"; then
12441         ## If empty, try date [fontforge]
12442         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12443             | head -n 1 \
12444             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12445     fi
12446     echo "$_ver"
12447     #dnl
12448 `
12449     fi
12450     num=`
12451     echo "$ver" | awk -F. '
12452     {
12453       if ($3) {three = $3}
12454       else {three = 0}
12455     }
12456     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12457 `
12458     req=`
12459     echo "" | awk -F. '
12460     {
12461       if ($3) {three = $3}
12462       else {three = 0}
12463     }
12464     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12465 `
12466     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12467 $as_echo "$ver" >&6; }
12468     if test "$num" -lt "$req"; then
12469
12470     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
12471
12472     fi
12473     vervar="`echo PERL | tr 'a-z' 'A-Z'`_VERSION"
12474     eval `echo $vervar=$num`
12475 ##    AC_SUBST(`eval echo $vervar`)
12476
12477         fi
12478     fi
12479
12480
12481
12482
12483     for ac_prog in makeinfo
12484 do
12485   # Extract the first word of "$ac_prog", so it can be a program name with args.
12486 set dummy $ac_prog; ac_word=$2
12487 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
12490   $as_echo_n "(cached) " >&6
12491 else
12492   if test -n "$MAKEINFO"; then
12493   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12494 else
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12497 do
12498   IFS=$as_save_IFS
12499   test -z "$as_dir" && as_dir=.
12500   for ac_exec_ext in '' $ac_executable_extensions; do
12501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12502     ac_cv_prog_MAKEINFO="$ac_prog"
12503     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12504     break 2
12505   fi
12506 done
12507 done
12508 IFS=$as_save_IFS
12509
12510 fi
12511 fi
12512 MAKEINFO=$ac_cv_prog_MAKEINFO
12513 if test -n "$MAKEINFO"; then
12514   { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12515 $as_echo "$MAKEINFO" >&6; }
12516 else
12517   { $as_echo "$as_me:$LINENO: result: no" >&5
12518 $as_echo "no" >&6; }
12519 fi
12520
12521
12522   test -n "$MAKEINFO" && break
12523 done
12524 test -n "$MAKEINFO" || MAKEINFO="no"
12525
12526
12527
12528     r="`eval echo '$'"MAKEINFO"`"
12529     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
12530         true
12531     else
12532         ##STEPMAKE_WARN(cannot find . )
12533         false
12534     fi
12535
12536     if test $? -ne 0; then
12537
12538     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
12539
12540         if test "REQUIRED" = "REQUIRED"; then
12541             command="echo ERROR: makeinfo not found"
12542             # abort configure process here?
12543         else
12544             command="- echo makeinfo not found"
12545         fi
12546         eval "MAKEINFO"='$command'
12547         false
12548     else
12549         true
12550     fi
12551
12552     if test $? -eq 0 -a -n "4.11"; then
12553
12554     r="`eval echo '$'"MAKEINFO"`"
12555     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12556 $as_echo_n "checking $r version... " >&6; }
12557     exe=`
12558     ## which doesn't work in ash, if /usr/bin/which isn't installed
12559     ## type -p doesn't work in ash
12560     ## command -v doesn't work in zsh
12561     ## command -v "$r" 2>&1
12562     ## this test should work in ash, bash, pdksh (ksh), zsh
12563     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12564 `
12565     if test -n ""; then
12566         ver=""
12567     else
12568         ver=`
12569     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12570     ##
12571     ## ARG.
12572     ## Workaround for broken Debian gcc version string:
12573     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12574     ##
12575     ## -V: Workaround for python
12576
12577     #dnl
12578
12579     ## Assume and hunt for dotted version multiplet.
12580     ## use eval trickery, because we cannot use multi-level $() instead of ``
12581     ## for compatibility reasons.
12582
12583     ## grab the first version number in  --version output.
12584     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12585                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12586                 head -n 1 |
12587                 tr ' ' '\n' |
12588                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12589                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12590                 head -n 1\`\"
12591
12592     if test -z "$_ver"; then
12593         ## If empty, try date [fontforge]
12594         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12595             | head -n 1 \
12596             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12597     fi
12598     echo "$_ver"
12599     #dnl
12600 `
12601     fi
12602     num=`
12603     echo "$ver" | awk -F. '
12604     {
12605       if ($3) {three = $3}
12606       else {three = 0}
12607     }
12608     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12609 `
12610     req=`
12611     echo "4.11" | awk -F. '
12612     {
12613       if ($3) {three = $3}
12614       else {three = 0}
12615     }
12616     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12617 `
12618     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12619 $as_echo "$ver" >&6; }
12620     if test "$num" -lt "$req"; then
12621
12622     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 4.11 (installed: $ver)"\"`\"
12623
12624     fi
12625     vervar="`echo MAKEINFO | tr 'a-z' 'A-Z'`_VERSION"
12626     eval `echo $vervar=$num`
12627 ##    AC_SUBST(`eval echo $vervar`)
12628
12629     fi
12630
12631
12632     for ac_prog in texi2html
12633 do
12634   # Extract the first word of "$ac_prog", so it can be a program name with args.
12635 set dummy $ac_prog; ac_word=$2
12636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12637 $as_echo_n "checking for $ac_word... " >&6; }
12638 if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
12639   $as_echo_n "(cached) " >&6
12640 else
12641   if test -n "$TEXI2HTML"; then
12642   ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
12643 else
12644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12645 for as_dir in $PATH
12646 do
12647   IFS=$as_save_IFS
12648   test -z "$as_dir" && as_dir=.
12649   for ac_exec_ext in '' $ac_executable_extensions; do
12650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12651     ac_cv_prog_TEXI2HTML="$ac_prog"
12652     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12653     break 2
12654   fi
12655 done
12656 done
12657 IFS=$as_save_IFS
12658
12659 fi
12660 fi
12661 TEXI2HTML=$ac_cv_prog_TEXI2HTML
12662 if test -n "$TEXI2HTML"; then
12663   { $as_echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
12664 $as_echo "$TEXI2HTML" >&6; }
12665 else
12666   { $as_echo "$as_me:$LINENO: result: no" >&5
12667 $as_echo "no" >&6; }
12668 fi
12669
12670
12671   test -n "$TEXI2HTML" && break
12672 done
12673 test -n "$TEXI2HTML" || TEXI2HTML="no"
12674
12675
12676
12677     r="`eval echo '$'"TEXI2HTML"`"
12678     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2HTML"`' : '.*\(echo\)' > /dev/null; then
12679         true
12680     else
12681         ##STEPMAKE_WARN(cannot find . )
12682         false
12683     fi
12684
12685     if test $? -ne 0; then
12686
12687     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"texi2html\"`\"
12688
12689         if test "OPTIONAL" = "REQUIRED"; then
12690             command="echo ERROR: texi2html not found"
12691             # abort configure process here?
12692         else
12693             command="- echo texi2html not found"
12694         fi
12695         eval "TEXI2HTML"='$command'
12696         false
12697     else
12698         true
12699     fi
12700
12701     if test $? -eq 0 -a -n "1.82"; then
12702
12703     r="`eval echo '$'"TEXI2HTML"`"
12704     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12705 $as_echo_n "checking $r version... " >&6; }
12706     exe=`
12707     ## which doesn't work in ash, if /usr/bin/which isn't installed
12708     ## type -p doesn't work in ash
12709     ## command -v doesn't work in zsh
12710     ## command -v "$r" 2>&1
12711     ## this test should work in ash, bash, pdksh (ksh), zsh
12712     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12713 `
12714     if test -n ""; then
12715         ver=""
12716     else
12717         ver=`
12718     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12719     ##
12720     ## ARG.
12721     ## Workaround for broken Debian gcc version string:
12722     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12723     ##
12724     ## -V: Workaround for python
12725
12726     #dnl
12727
12728     ## Assume and hunt for dotted version multiplet.
12729     ## use eval trickery, because we cannot use multi-level $() instead of ``
12730     ## for compatibility reasons.
12731
12732     ## grab the first version number in  --version output.
12733     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12734                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12735                 head -n 1 |
12736                 tr ' ' '\n' |
12737                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12738                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12739                 head -n 1\`\"
12740
12741     if test -z "$_ver"; then
12742         ## If empty, try date [fontforge]
12743         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12744             | head -n 1 \
12745             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12746     fi
12747     echo "$_ver"
12748     #dnl
12749 `
12750     fi
12751     num=`
12752     echo "$ver" | awk -F. '
12753     {
12754       if ($3) {three = $3}
12755       else {three = 0}
12756     }
12757     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12758 `
12759     req=`
12760     echo "1.82" | awk -F. '
12761     {
12762       if ($3) {three = $3}
12763       else {three = 0}
12764     }
12765     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12766 `
12767     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12768 $as_echo "$ver" >&6; }
12769     if test "$num" -lt "$req"; then
12770
12771     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 1.82 (installed: $ver)"\"`\"
12772
12773     fi
12774     vervar="`echo TEXI2HTML | tr 'a-z' 'A-Z'`_VERSION"
12775     eval `echo $vervar=$num`
12776 ##    AC_SUBST(`eval echo $vervar`)
12777
12778     fi
12779
12780
12781     for ac_prog in dblatex
12782 do
12783   # Extract the first word of "$ac_prog", so it can be a program name with args.
12784 set dummy $ac_prog; ac_word=$2
12785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12786 $as_echo_n "checking for $ac_word... " >&6; }
12787 if test "${ac_cv_prog_DBLATEX+set}" = set; then
12788   $as_echo_n "(cached) " >&6
12789 else
12790   if test -n "$DBLATEX"; then
12791   ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
12792 else
12793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794 for as_dir in $PATH
12795 do
12796   IFS=$as_save_IFS
12797   test -z "$as_dir" && as_dir=.
12798   for ac_exec_ext in '' $ac_executable_extensions; do
12799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12800     ac_cv_prog_DBLATEX="$ac_prog"
12801     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12802     break 2
12803   fi
12804 done
12805 done
12806 IFS=$as_save_IFS
12807
12808 fi
12809 fi
12810 DBLATEX=$ac_cv_prog_DBLATEX
12811 if test -n "$DBLATEX"; then
12812   { $as_echo "$as_me:$LINENO: result: $DBLATEX" >&5
12813 $as_echo "$DBLATEX" >&6; }
12814 else
12815   { $as_echo "$as_me:$LINENO: result: no" >&5
12816 $as_echo "no" >&6; }
12817 fi
12818
12819
12820   test -n "$DBLATEX" && break
12821 done
12822 test -n "$DBLATEX" || DBLATEX="no"
12823
12824
12825
12826     r="`eval echo '$'"DBLATEX"`"
12827     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"DBLATEX"`' : '.*\(echo\)' > /dev/null; then
12828         true
12829     else
12830         ##STEPMAKE_WARN(cannot find . )
12831         false
12832     fi
12833
12834     if test $? -ne 0; then
12835
12836     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"dblatex\"`\"
12837
12838         if test "OPTIONAL" = "REQUIRED"; then
12839             command="echo ERROR: dblatex not found"
12840             # abort configure process here?
12841         else
12842             command="- echo dblatex not found"
12843         fi
12844         eval "DBLATEX"='$command'
12845         false
12846     else
12847         true
12848     fi
12849
12850     if test $? -eq 0 -a -n "0.1.4"; then
12851
12852     r="`eval echo '$'"DBLATEX"`"
12853     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12854 $as_echo_n "checking $r version... " >&6; }
12855     exe=`
12856     ## which doesn't work in ash, if /usr/bin/which isn't installed
12857     ## type -p doesn't work in ash
12858     ## command -v doesn't work in zsh
12859     ## command -v "$r" 2>&1
12860     ## this test should work in ash, bash, pdksh (ksh), zsh
12861     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12862 `
12863     if test -n ""; then
12864         ver=""
12865     else
12866         ver=`
12867     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12868     ##
12869     ## ARG.
12870     ## Workaround for broken Debian gcc version string:
12871     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12872     ##
12873     ## -V: Workaround for python
12874
12875     #dnl
12876
12877     ## Assume and hunt for dotted version multiplet.
12878     ## use eval trickery, because we cannot use multi-level $() instead of ``
12879     ## for compatibility reasons.
12880
12881     ## grab the first version number in  --version output.
12882     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12883                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12884                 head -n 1 |
12885                 tr ' ' '\n' |
12886                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12887                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12888                 head -n 1\`\"
12889
12890     if test -z "$_ver"; then
12891         ## If empty, try date [fontforge]
12892         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12893             | head -n 1 \
12894             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12895     fi
12896     echo "$_ver"
12897     #dnl
12898 `
12899     fi
12900     num=`
12901     echo "$ver" | awk -F. '
12902     {
12903       if ($3) {three = $3}
12904       else {three = 0}
12905     }
12906     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12907 `
12908     req=`
12909     echo "0.1.4" | awk -F. '
12910     {
12911       if ($3) {three = $3}
12912       else {three = 0}
12913     }
12914     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12915 `
12916     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12917 $as_echo "$ver" >&6; }
12918     if test "$num" -lt "$req"; then
12919
12920     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 0.1.4 (installed: $ver)"\"`\"
12921
12922     fi
12923     vervar="`echo DBLATEX | tr 'a-z' 'A-Z'`_VERSION"
12924     eval `echo $vervar=$num`
12925 ##    AC_SUBST(`eval echo $vervar`)
12926
12927     fi
12928
12929
12930     for ac_prog in pdflatex
12931 do
12932   # Extract the first word of "$ac_prog", so it can be a program name with args.
12933 set dummy $ac_prog; ac_word=$2
12934 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12935 $as_echo_n "checking for $ac_word... " >&6; }
12936 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
12937   $as_echo_n "(cached) " >&6
12938 else
12939   if test -n "$PDFLATEX"; then
12940   ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
12941 else
12942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943 for as_dir in $PATH
12944 do
12945   IFS=$as_save_IFS
12946   test -z "$as_dir" && as_dir=.
12947   for ac_exec_ext in '' $ac_executable_extensions; do
12948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12949     ac_cv_prog_PDFLATEX="$ac_prog"
12950     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12951     break 2
12952   fi
12953 done
12954 done
12955 IFS=$as_save_IFS
12956
12957 fi
12958 fi
12959 PDFLATEX=$ac_cv_prog_PDFLATEX
12960 if test -n "$PDFLATEX"; then
12961   { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
12962 $as_echo "$PDFLATEX" >&6; }
12963 else
12964   { $as_echo "$as_me:$LINENO: result: no" >&5
12965 $as_echo "no" >&6; }
12966 fi
12967
12968
12969   test -n "$PDFLATEX" && break
12970 done
12971 test -n "$PDFLATEX" || PDFLATEX="no"
12972
12973
12974
12975     r="`eval echo '$'"PDFLATEX"`"
12976     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFLATEX"`' : '.*\(echo\)' > /dev/null; then
12977         true
12978     else
12979         ##STEPMAKE_WARN(cannot find . )
12980         false
12981     fi
12982
12983     if test $? -ne 0; then
12984
12985     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"pdflatex\"`\"
12986
12987         if test "OPTIONAL" = "REQUIRED"; then
12988             command="echo ERROR: pdflatex not found"
12989             # abort configure process here?
12990         else
12991             command="- echo pdflatex not found"
12992         fi
12993         eval "PDFLATEX"='$command'
12994         false
12995     else
12996         true
12997     fi
12998
12999     if test $? -eq 0 -a -n ""; then
13000
13001     r="`eval echo '$'"PDFLATEX"`"
13002     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13003 $as_echo_n "checking $r version... " >&6; }
13004     exe=`
13005     ## which doesn't work in ash, if /usr/bin/which isn't installed
13006     ## type -p doesn't work in ash
13007     ## command -v doesn't work in zsh
13008     ## command -v "$r" 2>&1
13009     ## this test should work in ash, bash, pdksh (ksh), zsh
13010     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13011 `
13012     if test -n ""; then
13013         ver=""
13014     else
13015         ver=`
13016     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13017     ##
13018     ## ARG.
13019     ## Workaround for broken Debian gcc version string:
13020     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13021     ##
13022     ## -V: Workaround for python
13023
13024     #dnl
13025
13026     ## Assume and hunt for dotted version multiplet.
13027     ## use eval trickery, because we cannot use multi-level $() instead of ``
13028     ## for compatibility reasons.
13029
13030     ## grab the first version number in  --version output.
13031     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13032                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13033                 head -n 1 |
13034                 tr ' ' '\n' |
13035                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13036                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13037                 head -n 1\`\"
13038
13039     if test -z "$_ver"; then
13040         ## If empty, try date [fontforge]
13041         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13042             | head -n 1 \
13043             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13044     fi
13045     echo "$_ver"
13046     #dnl
13047 `
13048     fi
13049     num=`
13050     echo "$ver" | awk -F. '
13051     {
13052       if ($3) {three = $3}
13053       else {three = 0}
13054     }
13055     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13056 `
13057     req=`
13058     echo "" | awk -F. '
13059     {
13060       if ($3) {three = $3}
13061       else {three = 0}
13062     }
13063     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13064 `
13065     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13066 $as_echo "$ver" >&6; }
13067     if test "$num" -lt "$req"; then
13068
13069     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
13070
13071     fi
13072     vervar="`echo PDFLATEX | tr 'a-z' 'A-Z'`_VERSION"
13073     eval `echo $vervar=$num`
13074 ##    AC_SUBST(`eval echo $vervar`)
13075
13076     fi
13077
13078
13079     for ac_prog in pngtopnm
13080 do
13081   # Extract the first word of "$ac_prog", so it can be a program name with args.
13082 set dummy $ac_prog; ac_word=$2
13083 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13084 $as_echo_n "checking for $ac_word... " >&6; }
13085 if test "${ac_cv_prog_NETPBM+set}" = set; then
13086   $as_echo_n "(cached) " >&6
13087 else
13088   if test -n "$NETPBM"; then
13089   ac_cv_prog_NETPBM="$NETPBM" # Let the user override the test.
13090 else
13091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092 for as_dir in $PATH
13093 do
13094   IFS=$as_save_IFS
13095   test -z "$as_dir" && as_dir=.
13096   for ac_exec_ext in '' $ac_executable_extensions; do
13097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13098     ac_cv_prog_NETPBM="$ac_prog"
13099     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13100     break 2
13101   fi
13102 done
13103 done
13104 IFS=$as_save_IFS
13105
13106 fi
13107 fi
13108 NETPBM=$ac_cv_prog_NETPBM
13109 if test -n "$NETPBM"; then
13110   { $as_echo "$as_me:$LINENO: result: $NETPBM" >&5
13111 $as_echo "$NETPBM" >&6; }
13112 else
13113   { $as_echo "$as_me:$LINENO: result: no" >&5
13114 $as_echo "no" >&6; }
13115 fi
13116
13117
13118   test -n "$NETPBM" && break
13119 done
13120 test -n "$NETPBM" || NETPBM="no"
13121
13122
13123
13124     r="`eval echo '$'"NETPBM"`"
13125     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"NETPBM"`' : '.*\(echo\)' > /dev/null; then
13126         true
13127     else
13128         ##STEPMAKE_WARN(cannot find . )
13129         false
13130     fi
13131
13132     if test $? -ne 0; then
13133
13134     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"pngtopnm\"`\"
13135
13136         if test "OPTIONAL" = "REQUIRED"; then
13137             command="echo ERROR: pngtopnm not found"
13138             # abort configure process here?
13139         else
13140             command="- echo pngtopnm not found"
13141         fi
13142         eval "NETPBM"='$command'
13143         false
13144     else
13145         true
13146     fi
13147
13148     if test $? -eq 0 -a -n ""; then
13149
13150     r="`eval echo '$'"NETPBM"`"
13151     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13152 $as_echo_n "checking $r version... " >&6; }
13153     exe=`
13154     ## which doesn't work in ash, if /usr/bin/which isn't installed
13155     ## type -p doesn't work in ash
13156     ## command -v doesn't work in zsh
13157     ## command -v "$r" 2>&1
13158     ## this test should work in ash, bash, pdksh (ksh), zsh
13159     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13160 `
13161     if test -n ""; then
13162         ver=""
13163     else
13164         ver=`
13165     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13166     ##
13167     ## ARG.
13168     ## Workaround for broken Debian gcc version string:
13169     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13170     ##
13171     ## -V: Workaround for python
13172
13173     #dnl
13174
13175     ## Assume and hunt for dotted version multiplet.
13176     ## use eval trickery, because we cannot use multi-level $() instead of ``
13177     ## for compatibility reasons.
13178
13179     ## grab the first version number in  --version output.
13180     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13181                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13182                 head -n 1 |
13183                 tr ' ' '\n' |
13184                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13185                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13186                 head -n 1\`\"
13187
13188     if test -z "$_ver"; then
13189         ## If empty, try date [fontforge]
13190         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13191             | head -n 1 \
13192             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13193     fi
13194     echo "$_ver"
13195     #dnl
13196 `
13197     fi
13198     num=`
13199     echo "$ver" | awk -F. '
13200     {
13201       if ($3) {three = $3}
13202       else {three = 0}
13203     }
13204     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13205 `
13206     req=`
13207     echo "" | awk -F. '
13208     {
13209       if ($3) {three = $3}
13210       else {three = 0}
13211     }
13212     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13213 `
13214     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13215 $as_echo "$ver" >&6; }
13216     if test "$num" -lt "$req"; then
13217
13218     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
13219
13220     fi
13221     vervar="`echo NETPBM | tr 'a-z' 'A-Z'`_VERSION"
13222     eval `echo $vervar=$num`
13223 ##    AC_SUBST(`eval echo $vervar`)
13224
13225     fi
13226
13227
13228     for ac_prog in convert
13229 do
13230   # Extract the first word of "$ac_prog", so it can be a program name with args.
13231 set dummy $ac_prog; ac_word=$2
13232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13233 $as_echo_n "checking for $ac_word... " >&6; }
13234 if test "${ac_cv_prog_IMAGEMAGICK+set}" = set; then
13235   $as_echo_n "(cached) " >&6
13236 else
13237   if test -n "$IMAGEMAGICK"; then
13238   ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
13239 else
13240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13241 for as_dir in $PATH
13242 do
13243   IFS=$as_save_IFS
13244   test -z "$as_dir" && as_dir=.
13245   for ac_exec_ext in '' $ac_executable_extensions; do
13246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13247     ac_cv_prog_IMAGEMAGICK="$ac_prog"
13248     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13249     break 2
13250   fi
13251 done
13252 done
13253 IFS=$as_save_IFS
13254
13255 fi
13256 fi
13257 IMAGEMAGICK=$ac_cv_prog_IMAGEMAGICK
13258 if test -n "$IMAGEMAGICK"; then
13259   { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK" >&5
13260 $as_echo "$IMAGEMAGICK" >&6; }
13261 else
13262   { $as_echo "$as_me:$LINENO: result: no" >&5
13263 $as_echo "no" >&6; }
13264 fi
13265
13266
13267   test -n "$IMAGEMAGICK" && break
13268 done
13269 test -n "$IMAGEMAGICK" || IMAGEMAGICK="no"
13270
13271
13272
13273     r="`eval echo '$'"IMAGEMAGICK"`"
13274     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"IMAGEMAGICK"`' : '.*\(echo\)' > /dev/null; then
13275         true
13276     else
13277         ##STEPMAKE_WARN(cannot find . )
13278         false
13279     fi
13280
13281     if test $? -ne 0; then
13282
13283     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"convert\"`\"
13284
13285         if test "OPTIONAL" = "REQUIRED"; then
13286             command="echo ERROR: convert not found"
13287             # abort configure process here?
13288         else
13289             command="- echo convert not found"
13290         fi
13291         eval "IMAGEMAGICK"='$command'
13292         false
13293     else
13294         true
13295     fi
13296
13297     if test $? -eq 0 -a -n ""; then
13298
13299     r="`eval echo '$'"IMAGEMAGICK"`"
13300     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13301 $as_echo_n "checking $r version... " >&6; }
13302     exe=`
13303     ## which doesn't work in ash, if /usr/bin/which isn't installed
13304     ## type -p doesn't work in ash
13305     ## command -v doesn't work in zsh
13306     ## command -v "$r" 2>&1
13307     ## this test should work in ash, bash, pdksh (ksh), zsh
13308     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13309 `
13310     if test -n ""; then
13311         ver=""
13312     else
13313         ver=`
13314     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13315     ##
13316     ## ARG.
13317     ## Workaround for broken Debian gcc version string:
13318     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13319     ##
13320     ## -V: Workaround for python
13321
13322     #dnl
13323
13324     ## Assume and hunt for dotted version multiplet.
13325     ## use eval trickery, because we cannot use multi-level $() instead of ``
13326     ## for compatibility reasons.
13327
13328     ## grab the first version number in  --version output.
13329     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13330                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13331                 head -n 1 |
13332                 tr ' ' '\n' |
13333                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13334                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13335                 head -n 1\`\"
13336
13337     if test -z "$_ver"; then
13338         ## If empty, try date [fontforge]
13339         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13340             | head -n 1 \
13341             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13342     fi
13343     echo "$_ver"
13344     #dnl
13345 `
13346     fi
13347     num=`
13348     echo "$ver" | awk -F. '
13349     {
13350       if ($3) {three = $3}
13351       else {three = 0}
13352     }
13353     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13354 `
13355     req=`
13356     echo "" | awk -F. '
13357     {
13358       if ($3) {three = $3}
13359       else {three = 0}
13360     }
13361     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13362 `
13363     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13364 $as_echo "$ver" >&6; }
13365     if test "$num" -lt "$req"; then
13366
13367     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
13368
13369     fi
13370     vervar="`echo IMAGEMAGICK | tr 'a-z' 'A-Z'`_VERSION"
13371     eval `echo $vervar=$num`
13372 ##    AC_SUBST(`eval echo $vervar`)
13373
13374     fi
13375
13376 # this name avoids a conflict with ZIP in stepmake/aclocal.m4
13377
13378     for ac_prog in zip
13379 do
13380   # Extract the first word of "$ac_prog", so it can be a program name with args.
13381 set dummy $ac_prog; ac_word=$2
13382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13383 $as_echo_n "checking for $ac_word... " >&6; }
13384 if test "${ac_cv_prog_ZIPDOC+set}" = set; then
13385   $as_echo_n "(cached) " >&6
13386 else
13387   if test -n "$ZIPDOC"; then
13388   ac_cv_prog_ZIPDOC="$ZIPDOC" # Let the user override the test.
13389 else
13390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391 for as_dir in $PATH
13392 do
13393   IFS=$as_save_IFS
13394   test -z "$as_dir" && as_dir=.
13395   for ac_exec_ext in '' $ac_executable_extensions; do
13396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13397     ac_cv_prog_ZIPDOC="$ac_prog"
13398     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13399     break 2
13400   fi
13401 done
13402 done
13403 IFS=$as_save_IFS
13404
13405 fi
13406 fi
13407 ZIPDOC=$ac_cv_prog_ZIPDOC
13408 if test -n "$ZIPDOC"; then
13409   { $as_echo "$as_me:$LINENO: result: $ZIPDOC" >&5
13410 $as_echo "$ZIPDOC" >&6; }
13411 else
13412   { $as_echo "$as_me:$LINENO: result: no" >&5
13413 $as_echo "no" >&6; }
13414 fi
13415
13416
13417   test -n "$ZIPDOC" && break
13418 done
13419 test -n "$ZIPDOC" || ZIPDOC="no"
13420
13421
13422
13423     r="`eval echo '$'"ZIPDOC"`"
13424     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"ZIPDOC"`' : '.*\(echo\)' > /dev/null; then
13425         true
13426     else
13427         ##STEPMAKE_WARN(cannot find . )
13428         false
13429     fi
13430
13431     if test $? -ne 0; then
13432
13433     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"zip\"`\"
13434
13435         if test "OPTIONAL" = "REQUIRED"; then
13436             command="echo ERROR: zip not found"
13437             # abort configure process here?
13438         else
13439             command="- echo zip not found"
13440         fi
13441         eval "ZIPDOC"='$command'
13442         false
13443     else
13444         true
13445     fi
13446
13447     if test $? -eq 0 -a -n ""; then
13448
13449     r="`eval echo '$'"ZIPDOC"`"
13450     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13451 $as_echo_n "checking $r version... " >&6; }
13452     exe=`
13453     ## which doesn't work in ash, if /usr/bin/which isn't installed
13454     ## type -p doesn't work in ash
13455     ## command -v doesn't work in zsh
13456     ## command -v "$r" 2>&1
13457     ## this test should work in ash, bash, pdksh (ksh), zsh
13458     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13459 `
13460     if test -n ""; then
13461         ver=""
13462     else
13463         ver=`
13464     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13465     ##
13466     ## ARG.
13467     ## Workaround for broken Debian gcc version string:
13468     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13469     ##
13470     ## -V: Workaround for python
13471
13472     #dnl
13473
13474     ## Assume and hunt for dotted version multiplet.
13475     ## use eval trickery, because we cannot use multi-level $() instead of ``
13476     ## for compatibility reasons.
13477
13478     ## grab the first version number in  --version output.
13479     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13480                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13481                 head -n 1 |
13482                 tr ' ' '\n' |
13483                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13484                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13485                 head -n 1\`\"
13486
13487     if test -z "$_ver"; then
13488         ## If empty, try date [fontforge]
13489         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13490             | head -n 1 \
13491             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13492     fi
13493     echo "$_ver"
13494     #dnl
13495 `
13496     fi
13497     num=`
13498     echo "$ver" | awk -F. '
13499     {
13500       if ($3) {three = $3}
13501       else {three = 0}
13502     }
13503     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13504 `
13505     req=`
13506     echo "" | awk -F. '
13507     {
13508       if ($3) {three = $3}
13509       else {three = 0}
13510     }
13511     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13512 `
13513     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13514 $as_echo "$ver" >&6; }
13515     if test "$num" -lt "$req"; then
13516
13517     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
13518
13519     fi
13520     vervar="`echo ZIPDOC | tr 'a-z' 'A-Z'`_VERSION"
13521     eval `echo $vervar=$num`
13522 ##    AC_SUBST(`eval echo $vervar`)
13523
13524     fi
13525
13526
13527     for ac_prog in rsync
13528 do
13529   # Extract the first word of "$ac_prog", so it can be a program name with args.
13530 set dummy $ac_prog; ac_word=$2
13531 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13532 $as_echo_n "checking for $ac_word... " >&6; }
13533 if test "${ac_cv_prog_RSYNC+set}" = set; then
13534   $as_echo_n "(cached) " >&6
13535 else
13536   if test -n "$RSYNC"; then
13537   ac_cv_prog_RSYNC="$RSYNC" # Let the user override the test.
13538 else
13539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13540 for as_dir in $PATH
13541 do
13542   IFS=$as_save_IFS
13543   test -z "$as_dir" && as_dir=.
13544   for ac_exec_ext in '' $ac_executable_extensions; do
13545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13546     ac_cv_prog_RSYNC="$ac_prog"
13547     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13548     break 2
13549   fi
13550 done
13551 done
13552 IFS=$as_save_IFS
13553
13554 fi
13555 fi
13556 RSYNC=$ac_cv_prog_RSYNC
13557 if test -n "$RSYNC"; then
13558   { $as_echo "$as_me:$LINENO: result: $RSYNC" >&5
13559 $as_echo "$RSYNC" >&6; }
13560 else
13561   { $as_echo "$as_me:$LINENO: result: no" >&5
13562 $as_echo "no" >&6; }
13563 fi
13564
13565
13566   test -n "$RSYNC" && break
13567 done
13568 test -n "$RSYNC" || RSYNC="no"
13569
13570
13571
13572     r="`eval echo '$'"RSYNC"`"
13573     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RSYNC"`' : '.*\(echo\)' > /dev/null; then
13574         true
13575     else
13576         ##STEPMAKE_WARN(cannot find . )
13577         false
13578     fi
13579
13580     if test $? -ne 0; then
13581
13582     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"rsync\"`\"
13583
13584         if test "OPTIONAL" = "REQUIRED"; then
13585             command="echo ERROR: rsync not found"
13586             # abort configure process here?
13587         else
13588             command="- echo rsync not found"
13589         fi
13590         eval "RSYNC"='$command'
13591         false
13592     else
13593         true
13594     fi
13595
13596     if test $? -eq 0 -a -n ""; then
13597
13598     r="`eval echo '$'"RSYNC"`"
13599     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13600 $as_echo_n "checking $r version... " >&6; }
13601     exe=`
13602     ## which doesn't work in ash, if /usr/bin/which isn't installed
13603     ## type -p doesn't work in ash
13604     ## command -v doesn't work in zsh
13605     ## command -v "$r" 2>&1
13606     ## this test should work in ash, bash, pdksh (ksh), zsh
13607     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13608 `
13609     if test -n ""; then
13610         ver=""
13611     else
13612         ver=`
13613     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13614     ##
13615     ## ARG.
13616     ## Workaround for broken Debian gcc version string:
13617     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13618     ##
13619     ## -V: Workaround for python
13620
13621     #dnl
13622
13623     ## Assume and hunt for dotted version multiplet.
13624     ## use eval trickery, because we cannot use multi-level $() instead of ``
13625     ## for compatibility reasons.
13626
13627     ## grab the first version number in  --version output.
13628     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13629                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13630                 head -n 1 |
13631                 tr ' ' '\n' |
13632                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13633                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13634                 head -n 1\`\"
13635
13636     if test -z "$_ver"; then
13637         ## If empty, try date [fontforge]
13638         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13639             | head -n 1 \
13640             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13641     fi
13642     echo "$_ver"
13643     #dnl
13644 `
13645     fi
13646     num=`
13647     echo "$ver" | awk -F. '
13648     {
13649       if ($3) {three = $3}
13650       else {three = 0}
13651     }
13652     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13653 `
13654     req=`
13655     echo "" | awk -F. '
13656     {
13657       if ($3) {three = $3}
13658       else {three = 0}
13659     }
13660     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13661 `
13662     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13663 $as_echo "$ver" >&6; }
13664     if test "$num" -lt "$req"; then
13665
13666     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
13667
13668     fi
13669     vervar="`echo RSYNC | tr 'a-z' 'A-Z'`_VERSION"
13670     eval `echo $vervar=$num`
13671 ##    AC_SUBST(`eval echo $vervar`)
13672
13673     fi
13674
13675
13676
13677 cat >>confdefs.h <<_ACEOF
13678 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
13679 _ACEOF
13680
13681
13682 # must also have local.make if configure fails.
13683 touch local.make
13684
13685 if test "$reloc_b$rpath_b" = "yesno"; then
13686
13687     { $as_echo "$as_me:$LINENO: WARNING: Using --enable-relocation without --enable-rpath.  LilyPond may have trouble finding libraries." >&5
13688 $as_echo "$as_me: WARNING: Using --enable-relocation without --enable-rpath.  LilyPond may have trouble finding libraries." >&2;}
13689     warn_b=yes
13690
13691 fi
13692
13693 # Gather requirements and generate output.
13694
13695
13696     # undo expanding of explicit --infodir=/usr/share
13697     # to ease install-time override with prefix=...
13698     strip=`echo $includedir | eval sed s@^$prefix@@`
13699     if test "$includedir" = "`eval echo $prefix$strip`"; then
13700             includedir='${prefix}'$strip''
13701     fi
13702     strip=`echo $libdir | eval sed s@^$exec_prefix@@`
13703     if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
13704             libdir='${exec_prefix}'$strip''
13705     fi
13706     strip=`echo $infodir | eval sed s@^$datarootdir@@`
13707     if test "$infodir" = "`eval echo $datarootdir$strip`"; then
13708             infodir='${datarootdir}'$strip''
13709     fi
13710     strip=`echo $mandir | eval sed s@^$datarootdir@@`
13711     if test "$mandir" = "`eval echo $datarootdir$strip`"; then
13712             mandir='${datarootdir}'$strip''
13713     fi
13714
13715
13716
13717
13718
13719     ac_config_files="$ac_config_files $CONFIGFILE.make:config.make.in"
13720
13721     cat >confcache <<\_ACEOF
13722 # This file is a shell script that caches the results of configure
13723 # tests run on this system so they can be shared between configure
13724 # scripts and configure runs, see configure's option --config-cache.
13725 # It is not useful on other systems.  If it contains results you don't
13726 # want to keep, you may remove or edit it.
13727 #
13728 # config.status only pays attention to the cache file if you give it
13729 # the --recheck option to rerun configure.
13730 #
13731 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13732 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13733 # following values.
13734
13735 _ACEOF
13736
13737 # The following way of writing the cache mishandles newlines in values,
13738 # but we know of no workaround that is simple, portable, and efficient.
13739 # So, we kill variables containing newlines.
13740 # Ultrix sh set writes to stderr and can't be redirected directly,
13741 # and sets the high bit in the cache file unless we assign to the vars.
13742 (
13743   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13744     eval ac_val=\$$ac_var
13745     case $ac_val in #(
13746     *${as_nl}*)
13747       case $ac_var in #(
13748       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13749 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13750       esac
13751       case $ac_var in #(
13752       _ | IFS | as_nl) ;; #(
13753       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13754       *) $as_unset $ac_var ;;
13755       esac ;;
13756     esac
13757   done
13758
13759   (set) 2>&1 |
13760     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13761     *${as_nl}ac_space=\ *)
13762       # `set' does not quote correctly, so add quotes (double-quote
13763       # substitution turns \\\\ into \\, and sed turns \\ into \).
13764       sed -n \
13765         "s/'/'\\\\''/g;
13766           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13767       ;; #(
13768     *)
13769       # `set' quotes correctly as required by POSIX, so do not add quotes.
13770       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13771       ;;
13772     esac |
13773     sort
13774 ) |
13775   sed '
13776      /^ac_cv_env_/b end
13777      t clear
13778      :clear
13779      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13780      t end
13781      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13782      :end' >>confcache
13783 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13784   if test -w "$cache_file"; then
13785     test "x$cache_file" != "x/dev/null" &&
13786       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13787 $as_echo "$as_me: updating cache $cache_file" >&6;}
13788     cat confcache >$cache_file
13789   else
13790     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13791 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13792   fi
13793 fi
13794 rm -f confcache
13795
13796 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13797 # Let make expand exec_prefix.
13798 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13799
13800 DEFS=-DHAVE_CONFIG_H
13801
13802 ac_libobjs=
13803 ac_ltlibobjs=
13804 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13805   # 1. Remove the extension, and $U if already installed.
13806   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13807   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13808   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13809   #    will be set to the directory where LIBOBJS objects are built.
13810   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13811   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13812 done
13813 LIBOBJS=$ac_libobjs
13814
13815 LTLIBOBJS=$ac_ltlibobjs
13816
13817
13818
13819 : ${CONFIG_STATUS=./config.status}
13820 ac_write_fail=0
13821 ac_clean_files_save=$ac_clean_files
13822 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13823 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13824 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13825 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13826 #! $SHELL
13827 # Generated by $as_me.
13828 # Run this file to recreate the current configuration.
13829 # Compiler output produced by configure, useful for debugging
13830 # configure, is in config.log if it exists.
13831
13832 debug=false
13833 ac_cs_recheck=false
13834 ac_cs_silent=false
13835 SHELL=\${CONFIG_SHELL-$SHELL}
13836 _ACEOF
13837
13838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13839 ## --------------------- ##
13840 ## M4sh Initialization.  ##
13841 ## --------------------- ##
13842
13843 # Be more Bourne compatible
13844 DUALCASE=1; export DUALCASE # for MKS sh
13845 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13846   emulate sh
13847   NULLCMD=:
13848   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13849   # is contrary to our usage.  Disable this feature.
13850   alias -g '${1+"$@"}'='"$@"'
13851   setopt NO_GLOB_SUBST
13852 else
13853   case `(set -o) 2>/dev/null` in
13854   *posix*) set -o posix ;;
13855 esac
13856
13857 fi
13858
13859
13860
13861
13862 # PATH needs CR
13863 # Avoid depending upon Character Ranges.
13864 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13865 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13866 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13867 as_cr_digits='0123456789'
13868 as_cr_alnum=$as_cr_Letters$as_cr_digits
13869
13870 as_nl='
13871 '
13872 export as_nl
13873 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13874 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13875 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13876 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13877 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13878   as_echo='printf %s\n'
13879   as_echo_n='printf %s'
13880 else
13881   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13882     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13883     as_echo_n='/usr/ucb/echo -n'
13884   else
13885     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13886     as_echo_n_body='eval
13887       arg=$1;
13888       case $arg in
13889       *"$as_nl"*)
13890         expr "X$arg" : "X\\(.*\\)$as_nl";
13891         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13892       esac;
13893       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13894     '
13895     export as_echo_n_body
13896     as_echo_n='sh -c $as_echo_n_body as_echo'
13897   fi
13898   export as_echo_body
13899   as_echo='sh -c $as_echo_body as_echo'
13900 fi
13901
13902 # The user is always right.
13903 if test "${PATH_SEPARATOR+set}" != set; then
13904   PATH_SEPARATOR=:
13905   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13906     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13907       PATH_SEPARATOR=';'
13908   }
13909 fi
13910
13911 # Support unset when possible.
13912 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13913   as_unset=unset
13914 else
13915   as_unset=false
13916 fi
13917
13918
13919 # IFS
13920 # We need space, tab and new line, in precisely that order.  Quoting is
13921 # there to prevent editors from complaining about space-tab.
13922 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13923 # splitting by setting IFS to empty value.)
13924 IFS=" ""        $as_nl"
13925
13926 # Find who we are.  Look in the path if we contain no directory separator.
13927 case $0 in
13928   *[\\/]* ) as_myself=$0 ;;
13929   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13930 for as_dir in $PATH
13931 do
13932   IFS=$as_save_IFS
13933   test -z "$as_dir" && as_dir=.
13934   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13935 done
13936 IFS=$as_save_IFS
13937
13938      ;;
13939 esac
13940 # We did not find ourselves, most probably we were run as `sh COMMAND'
13941 # in which case we are not to be found in the path.
13942 if test "x$as_myself" = x; then
13943   as_myself=$0
13944 fi
13945 if test ! -f "$as_myself"; then
13946   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13947   { (exit 1); exit 1; }
13948 fi
13949
13950 # Work around bugs in pre-3.0 UWIN ksh.
13951 for as_var in ENV MAIL MAILPATH
13952 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13953 done
13954 PS1='$ '
13955 PS2='> '
13956 PS4='+ '
13957
13958 # NLS nuisances.
13959 LC_ALL=C
13960 export LC_ALL
13961 LANGUAGE=C
13962 export LANGUAGE
13963
13964 # Required to use basename.
13965 if expr a : '\(a\)' >/dev/null 2>&1 &&
13966    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13967   as_expr=expr
13968 else
13969   as_expr=false
13970 fi
13971
13972 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13973   as_basename=basename
13974 else
13975   as_basename=false
13976 fi
13977
13978
13979 # Name of the executable.
13980 as_me=`$as_basename -- "$0" ||
13981 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13982          X"$0" : 'X\(//\)$' \| \
13983          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13984 $as_echo X/"$0" |
13985     sed '/^.*\/\([^/][^/]*\)\/*$/{
13986             s//\1/
13987             q
13988           }
13989           /^X\/\(\/\/\)$/{
13990             s//\1/
13991             q
13992           }
13993           /^X\/\(\/\).*/{
13994             s//\1/
13995             q
13996           }
13997           s/.*/./; q'`
13998
13999 # CDPATH.
14000 $as_unset CDPATH
14001
14002
14003
14004   as_lineno_1=$LINENO
14005   as_lineno_2=$LINENO
14006   test "x$as_lineno_1" != "x$as_lineno_2" &&
14007   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14008
14009   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14010   # uniformly replaced by the line number.  The first 'sed' inserts a
14011   # line-number line after each line using $LINENO; the second 'sed'
14012   # does the real work.  The second script uses 'N' to pair each
14013   # line-number line with the line containing $LINENO, and appends
14014   # trailing '-' during substitution so that $LINENO is not a special
14015   # case at line end.
14016   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14017   # scripts with optimization help from Paolo Bonzini.  Blame Lee
14018   # E. McMahon (1931-1989) for sed's syntax.  :-)
14019   sed -n '
14020     p
14021     /[$]LINENO/=
14022   ' <$as_myself |
14023     sed '
14024       s/[$]LINENO.*/&-/
14025       t lineno
14026       b
14027       :lineno
14028       N
14029       :loop
14030       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14031       t loop
14032       s/-\n.*//
14033     ' >$as_me.lineno &&
14034   chmod +x "$as_me.lineno" ||
14035     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14036    { (exit 1); exit 1; }; }
14037
14038   # Don't try to exec as it changes $[0], causing all sort of problems
14039   # (the dirname of $[0] is not the place where we might find the
14040   # original and so on.  Autoconf is especially sensitive to this).
14041   . "./$as_me.lineno"
14042   # Exit status is that of the last command.
14043   exit
14044 }
14045
14046
14047 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14048   as_dirname=dirname
14049 else
14050   as_dirname=false
14051 fi
14052
14053 ECHO_C= ECHO_N= ECHO_T=
14054 case `echo -n x` in
14055 -n*)
14056   case `echo 'x\c'` in
14057   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14058   *)   ECHO_C='\c';;
14059   esac;;
14060 *)
14061   ECHO_N='-n';;
14062 esac
14063 if expr a : '\(a\)' >/dev/null 2>&1 &&
14064    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14065   as_expr=expr
14066 else
14067   as_expr=false
14068 fi
14069
14070 rm -f conf$$ conf$$.exe conf$$.file
14071 if test -d conf$$.dir; then
14072   rm -f conf$$.dir/conf$$.file
14073 else
14074   rm -f conf$$.dir
14075   mkdir conf$$.dir 2>/dev/null
14076 fi
14077 if (echo >conf$$.file) 2>/dev/null; then
14078   if ln -s conf$$.file conf$$ 2>/dev/null; then
14079     as_ln_s='ln -s'
14080     # ... but there are two gotchas:
14081     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14082     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14083     # In both cases, we have to default to `cp -p'.
14084     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14085       as_ln_s='cp -p'
14086   elif ln conf$$.file conf$$ 2>/dev/null; then
14087     as_ln_s=ln
14088   else
14089     as_ln_s='cp -p'
14090   fi
14091 else
14092   as_ln_s='cp -p'
14093 fi
14094 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14095 rmdir conf$$.dir 2>/dev/null
14096
14097 if mkdir -p . 2>/dev/null; then
14098   as_mkdir_p=:
14099 else
14100   test -d ./-p && rmdir ./-p
14101   as_mkdir_p=false
14102 fi
14103
14104 if test -x / >/dev/null 2>&1; then
14105   as_test_x='test -x'
14106 else
14107   if ls -dL / >/dev/null 2>&1; then
14108     as_ls_L_option=L
14109   else
14110     as_ls_L_option=
14111   fi
14112   as_test_x='
14113     eval sh -c '\''
14114       if test -d "$1"; then
14115         test -d "$1/.";
14116       else
14117         case $1 in
14118         -*)set "./$1";;
14119         esac;
14120         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14121         ???[sx]*):;;*)false;;esac;fi
14122     '\'' sh
14123   '
14124 fi
14125 as_executable_p=$as_test_x
14126
14127 # Sed expression to map a string onto a valid CPP name.
14128 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14129
14130 # Sed expression to map a string onto a valid variable name.
14131 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14132
14133
14134 exec 6>&1
14135
14136 # Save the log message, to keep $[0] and so on meaningful, and to
14137 # report actual input values of CONFIG_FILES etc. instead of their
14138 # values after options handling.
14139 ac_log="
14140 This file was extended by $as_me, which was
14141 generated by GNU Autoconf 2.63.  Invocation command line was
14142
14143   CONFIG_FILES    = $CONFIG_FILES
14144   CONFIG_HEADERS  = $CONFIG_HEADERS
14145   CONFIG_LINKS    = $CONFIG_LINKS
14146   CONFIG_COMMANDS = $CONFIG_COMMANDS
14147   $ $0 $@
14148
14149 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14150 "
14151
14152 _ACEOF
14153
14154 case $ac_config_files in *"
14155 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14156 esac
14157
14158 case $ac_config_headers in *"
14159 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14160 esac
14161
14162
14163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14164 # Files that config.status was made for.
14165 config_files="$ac_config_files"
14166 config_headers="$ac_config_headers"
14167
14168 _ACEOF
14169
14170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14171 ac_cs_usage="\
14172 \`$as_me' instantiates files from templates according to the
14173 current configuration.
14174
14175 Usage: $0 [OPTION]... [FILE]...
14176
14177   -h, --help       print this help, then exit
14178   -V, --version    print version number and configuration settings, then exit
14179   -q, --quiet, --silent
14180                    do not print progress messages
14181   -d, --debug      don't remove temporary files
14182       --recheck    update $as_me by reconfiguring in the same conditions
14183       --file=FILE[:TEMPLATE]
14184                    instantiate the configuration file FILE
14185       --header=FILE[:TEMPLATE]
14186                    instantiate the configuration header FILE
14187
14188 Configuration files:
14189 $config_files
14190
14191 Configuration headers:
14192 $config_headers
14193
14194 Report bugs to <bug-autoconf@gnu.org>."
14195
14196 _ACEOF
14197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14198 ac_cs_version="\\
14199 config.status
14200 configured by $0, generated by GNU Autoconf 2.63,
14201   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14202
14203 Copyright (C) 2008 Free Software Foundation, Inc.
14204 This config.status script is free software; the Free Software Foundation
14205 gives unlimited permission to copy, distribute and modify it."
14206
14207 ac_pwd='$ac_pwd'
14208 srcdir='$srcdir'
14209 test -n "\$AWK" || AWK=awk
14210 _ACEOF
14211
14212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14213 # The default lists apply if the user does not specify any file.
14214 ac_need_defaults=:
14215 while test $# != 0
14216 do
14217   case $1 in
14218   --*=*)
14219     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14220     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14221     ac_shift=:
14222     ;;
14223   *)
14224     ac_option=$1
14225     ac_optarg=$2
14226     ac_shift=shift
14227     ;;
14228   esac
14229
14230   case $ac_option in
14231   # Handling of the options.
14232   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14233     ac_cs_recheck=: ;;
14234   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14235     $as_echo "$ac_cs_version"; exit ;;
14236   --debug | --debu | --deb | --de | --d | -d )
14237     debug=: ;;
14238   --file | --fil | --fi | --f )
14239     $ac_shift
14240     case $ac_optarg in
14241     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14242     esac
14243     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14244     ac_need_defaults=false;;
14245   --header | --heade | --head | --hea )
14246     $ac_shift
14247     case $ac_optarg in
14248     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14249     esac
14250     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14251     ac_need_defaults=false;;
14252   --he | --h)
14253     # Conflict between --help and --header
14254     { $as_echo "$as_me: error: ambiguous option: $1
14255 Try \`$0 --help' for more information." >&2
14256    { (exit 1); exit 1; }; };;
14257   --help | --hel | -h )
14258     $as_echo "$ac_cs_usage"; exit ;;
14259   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14260   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14261     ac_cs_silent=: ;;
14262
14263   # This is an error.
14264   -*) { $as_echo "$as_me: error: unrecognized option: $1
14265 Try \`$0 --help' for more information." >&2
14266    { (exit 1); exit 1; }; } ;;
14267
14268   *) ac_config_targets="$ac_config_targets $1"
14269      ac_need_defaults=false ;;
14270
14271   esac
14272   shift
14273 done
14274
14275 ac_configure_extra_args=
14276
14277 if $ac_cs_silent; then
14278   exec 6>/dev/null
14279   ac_configure_extra_args="$ac_configure_extra_args --silent"
14280 fi
14281
14282 _ACEOF
14283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14284 if \$ac_cs_recheck; then
14285   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14286   shift
14287   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14288   CONFIG_SHELL='$SHELL'
14289   export CONFIG_SHELL
14290   exec "\$@"
14291 fi
14292
14293 _ACEOF
14294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14295 exec 5>>config.log
14296 {
14297   echo
14298   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14299 ## Running $as_me. ##
14300 _ASBOX
14301   $as_echo "$ac_log"
14302 } >&5
14303
14304 _ACEOF
14305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14306 _ACEOF
14307
14308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14309
14310 # Handling of arguments.
14311 for ac_config_target in $ac_config_targets
14312 do
14313   case $ac_config_target in
14314     "$CONFIGFILE.hh") CONFIG_HEADERS="$CONFIG_HEADERS $CONFIGFILE.hh:config.hh.in" ;;
14315     "$CONFIGFILE.make") CONFIG_FILES="$CONFIG_FILES $CONFIGFILE.make:config.make.in" ;;
14316
14317   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14318 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14319    { (exit 1); exit 1; }; };;
14320   esac
14321 done
14322
14323
14324 # If the user did not use the arguments to specify the items to instantiate,
14325 # then the envvar interface is used.  Set only those that are not.
14326 # We use the long form for the default assignment because of an extremely
14327 # bizarre bug on SunOS 4.1.3.
14328 if $ac_need_defaults; then
14329   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14330   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14331 fi
14332
14333 # Have a temporary directory for convenience.  Make it in the build tree
14334 # simply because there is no reason against having it here, and in addition,
14335 # creating and moving files from /tmp can sometimes cause problems.
14336 # Hook for its removal unless debugging.
14337 # Note that there is a small window in which the directory will not be cleaned:
14338 # after its creation but before its name has been assigned to `$tmp'.
14339 $debug ||
14340 {
14341   tmp=
14342   trap 'exit_status=$?
14343   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14344 ' 0
14345   trap '{ (exit 1); exit 1; }' 1 2 13 15
14346 }
14347 # Create a (secure) tmp directory for tmp files.
14348
14349 {
14350   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14351   test -n "$tmp" && test -d "$tmp"
14352 }  ||
14353 {
14354   tmp=./conf$$-$RANDOM
14355   (umask 077 && mkdir "$tmp")
14356 } ||
14357 {
14358    $as_echo "$as_me: cannot create a temporary directory in ." >&2
14359    { (exit 1); exit 1; }
14360 }
14361
14362 # Set up the scripts for CONFIG_FILES section.
14363 # No need to generate them if there are no CONFIG_FILES.
14364 # This happens for instance with `./config.status config.h'.
14365 if test -n "$CONFIG_FILES"; then
14366
14367
14368 ac_cr='\r'
14369 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14370 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14371   ac_cs_awk_cr='\\r'
14372 else
14373   ac_cs_awk_cr=$ac_cr
14374 fi
14375
14376 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14377 _ACEOF
14378
14379
14380 {
14381   echo "cat >conf$$subs.awk <<_ACEOF" &&
14382   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14383   echo "_ACEOF"
14384 } >conf$$subs.sh ||
14385   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14386 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14387    { (exit 1); exit 1; }; }
14388 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14389 ac_delim='%!_!# '
14390 for ac_last_try in false false false false false :; do
14391   . ./conf$$subs.sh ||
14392     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14393 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14394    { (exit 1); exit 1; }; }
14395
14396   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14397   if test $ac_delim_n = $ac_delim_num; then
14398     break
14399   elif $ac_last_try; then
14400     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14401 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14402    { (exit 1); exit 1; }; }
14403   else
14404     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14405   fi
14406 done
14407 rm -f conf$$subs.sh
14408
14409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14410 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14411 _ACEOF
14412 sed -n '
14413 h
14414 s/^/S["/; s/!.*/"]=/
14415 p
14416 g
14417 s/^[^!]*!//
14418 :repl
14419 t repl
14420 s/'"$ac_delim"'$//
14421 t delim
14422 :nl
14423 h
14424 s/\(.\{148\}\).*/\1/
14425 t more1
14426 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14427 p
14428 n
14429 b repl
14430 :more1
14431 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14432 p
14433 g
14434 s/.\{148\}//
14435 t nl
14436 :delim
14437 h
14438 s/\(.\{148\}\).*/\1/
14439 t more2
14440 s/["\\]/\\&/g; s/^/"/; s/$/"/
14441 p
14442 b
14443 :more2
14444 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14445 p
14446 g
14447 s/.\{148\}//
14448 t delim
14449 ' <conf$$subs.awk | sed '
14450 /^[^""]/{
14451   N
14452   s/\n//
14453 }
14454 ' >>$CONFIG_STATUS || ac_write_fail=1
14455 rm -f conf$$subs.awk
14456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14457 _ACAWK
14458 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14459   for (key in S) S_is_set[key] = 1
14460   FS = "\a"
14461
14462 }
14463 {
14464   line = $ 0
14465   nfields = split(line, field, "@")
14466   substed = 0
14467   len = length(field[1])
14468   for (i = 2; i < nfields; i++) {
14469     key = field[i]
14470     keylen = length(key)
14471     if (S_is_set[key]) {
14472       value = S[key]
14473       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14474       len += length(value) + length(field[++i])
14475       substed = 1
14476     } else
14477       len += 1 + keylen
14478   }
14479
14480   print line
14481 }
14482
14483 _ACAWK
14484 _ACEOF
14485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14486 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14487   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14488 else
14489   cat
14490 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14491   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14492 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14493    { (exit 1); exit 1; }; }
14494 _ACEOF
14495
14496 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14497 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14498 # trailing colons and then remove the whole line if VPATH becomes empty
14499 # (actually we leave an empty line to preserve line numbers).
14500 if test "x$srcdir" = x.; then
14501   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14502 s/:*\$(srcdir):*/:/
14503 s/:*\${srcdir}:*/:/
14504 s/:*@srcdir@:*/:/
14505 s/^\([^=]*=[     ]*\):*/\1/
14506 s/:*$//
14507 s/^[^=]*=[       ]*$//
14508 }'
14509 fi
14510
14511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14512 fi # test -n "$CONFIG_FILES"
14513
14514 # Set up the scripts for CONFIG_HEADERS section.
14515 # No need to generate them if there are no CONFIG_HEADERS.
14516 # This happens for instance with `./config.status Makefile'.
14517 if test -n "$CONFIG_HEADERS"; then
14518 cat >"$tmp/defines.awk" <<\_ACAWK ||
14519 BEGIN {
14520 _ACEOF
14521
14522 # Transform confdefs.h into an awk script `defines.awk', embedded as
14523 # here-document in config.status, that substitutes the proper values into
14524 # config.h.in to produce config.h.
14525
14526 # Create a delimiter string that does not exist in confdefs.h, to ease
14527 # handling of long lines.
14528 ac_delim='%!_!# '
14529 for ac_last_try in false false :; do
14530   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14531   if test -z "$ac_t"; then
14532     break
14533   elif $ac_last_try; then
14534     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14535 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14536    { (exit 1); exit 1; }; }
14537   else
14538     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14539   fi
14540 done
14541
14542 # For the awk script, D is an array of macro values keyed by name,
14543 # likewise P contains macro parameters if any.  Preserve backslash
14544 # newline sequences.
14545
14546 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14547 sed -n '
14548 s/.\{148\}/&'"$ac_delim"'/g
14549 t rset
14550 :rset
14551 s/^[     ]*#[    ]*define[       ][      ]*/ /
14552 t def
14553 d
14554 :def
14555 s/\\$//
14556 t bsnl
14557 s/["\\]/\\&/g
14558 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14559 D["\1"]=" \3"/p
14560 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14561 d
14562 :bsnl
14563 s/["\\]/\\&/g
14564 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14565 D["\1"]=" \3\\\\\\n"\\/p
14566 t cont
14567 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14568 t cont
14569 d
14570 :cont
14571 n
14572 s/.\{148\}/&'"$ac_delim"'/g
14573 t clear
14574 :clear
14575 s/\\$//
14576 t bsnlc
14577 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14578 d
14579 :bsnlc
14580 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14581 b cont
14582 ' <confdefs.h | sed '
14583 s/'"$ac_delim"'/"\\\
14584 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14585
14586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14587   for (key in D) D_is_set[key] = 1
14588   FS = "\a"
14589 }
14590 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14591   line = \$ 0
14592   split(line, arg, " ")
14593   if (arg[1] == "#") {
14594     defundef = arg[2]
14595     mac1 = arg[3]
14596   } else {
14597     defundef = substr(arg[1], 2)
14598     mac1 = arg[2]
14599   }
14600   split(mac1, mac2, "(") #)
14601   macro = mac2[1]
14602   prefix = substr(line, 1, index(line, defundef) - 1)
14603   if (D_is_set[macro]) {
14604     # Preserve the white space surrounding the "#".
14605     print prefix "define", macro P[macro] D[macro]
14606     next
14607   } else {
14608     # Replace #undef with comments.  This is necessary, for example,
14609     # in the case of _POSIX_SOURCE, which is predefined and required
14610     # on some systems where configure will not decide to define it.
14611     if (defundef == "undef") {
14612       print "/*", prefix defundef, macro, "*/"
14613       next
14614     }
14615   }
14616 }
14617 { print }
14618 _ACAWK
14619 _ACEOF
14620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14621   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14622 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14623    { (exit 1); exit 1; }; }
14624 fi # test -n "$CONFIG_HEADERS"
14625
14626
14627 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
14628 shift
14629 for ac_tag
14630 do
14631   case $ac_tag in
14632   :[FHLC]) ac_mode=$ac_tag; continue;;
14633   esac
14634   case $ac_mode$ac_tag in
14635   :[FHL]*:*);;
14636   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14637 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14638    { (exit 1); exit 1; }; };;
14639   :[FH]-) ac_tag=-:-;;
14640   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14641   esac
14642   ac_save_IFS=$IFS
14643   IFS=:
14644   set x $ac_tag
14645   IFS=$ac_save_IFS
14646   shift
14647   ac_file=$1
14648   shift
14649
14650   case $ac_mode in
14651   :L) ac_source=$1;;
14652   :[FH])
14653     ac_file_inputs=
14654     for ac_f
14655     do
14656       case $ac_f in
14657       -) ac_f="$tmp/stdin";;
14658       *) # Look for the file first in the build tree, then in the source tree
14659          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14660          # because $ac_f cannot contain `:'.
14661          test -f "$ac_f" ||
14662            case $ac_f in
14663            [\\/$]*) false;;
14664            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14665            esac ||
14666            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14667 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14668    { (exit 1); exit 1; }; };;
14669       esac
14670       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14671       ac_file_inputs="$ac_file_inputs '$ac_f'"
14672     done
14673
14674     # Let's still pretend it is `configure' which instantiates (i.e., don't
14675     # use $as_me), people would be surprised to read:
14676     #    /* config.h.  Generated by config.status.  */
14677     configure_input='Generated from '`
14678           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14679         `' by configure.'
14680     if test x"$ac_file" != x-; then
14681       configure_input="$ac_file.  $configure_input"
14682       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14683 $as_echo "$as_me: creating $ac_file" >&6;}
14684     fi
14685     # Neutralize special characters interpreted by sed in replacement strings.
14686     case $configure_input in #(
14687     *\&* | *\|* | *\\* )
14688        ac_sed_conf_input=`$as_echo "$configure_input" |
14689        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14690     *) ac_sed_conf_input=$configure_input;;
14691     esac
14692
14693     case $ac_tag in
14694     *:-:* | *:-) cat >"$tmp/stdin" \
14695       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14696 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14697    { (exit 1); exit 1; }; } ;;
14698     esac
14699     ;;
14700   esac
14701
14702   ac_dir=`$as_dirname -- "$ac_file" ||
14703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14704          X"$ac_file" : 'X\(//\)[^/]' \| \
14705          X"$ac_file" : 'X\(//\)$' \| \
14706          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14707 $as_echo X"$ac_file" |
14708     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14709             s//\1/
14710             q
14711           }
14712           /^X\(\/\/\)[^/].*/{
14713             s//\1/
14714             q
14715           }
14716           /^X\(\/\/\)$/{
14717             s//\1/
14718             q
14719           }
14720           /^X\(\/\).*/{
14721             s//\1/
14722             q
14723           }
14724           s/.*/./; q'`
14725   { as_dir="$ac_dir"
14726   case $as_dir in #(
14727   -*) as_dir=./$as_dir;;
14728   esac
14729   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14730     as_dirs=
14731     while :; do
14732       case $as_dir in #(
14733       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14734       *) as_qdir=$as_dir;;
14735       esac
14736       as_dirs="'$as_qdir' $as_dirs"
14737       as_dir=`$as_dirname -- "$as_dir" ||
14738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14739          X"$as_dir" : 'X\(//\)[^/]' \| \
14740          X"$as_dir" : 'X\(//\)$' \| \
14741          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14742 $as_echo X"$as_dir" |
14743     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14744             s//\1/
14745             q
14746           }
14747           /^X\(\/\/\)[^/].*/{
14748             s//\1/
14749             q
14750           }
14751           /^X\(\/\/\)$/{
14752             s//\1/
14753             q
14754           }
14755           /^X\(\/\).*/{
14756             s//\1/
14757             q
14758           }
14759           s/.*/./; q'`
14760       test -d "$as_dir" && break
14761     done
14762     test -z "$as_dirs" || eval "mkdir $as_dirs"
14763   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14764 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14765    { (exit 1); exit 1; }; }; }
14766   ac_builddir=.
14767
14768 case "$ac_dir" in
14769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14770 *)
14771   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14772   # A ".." for each directory in $ac_dir_suffix.
14773   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14774   case $ac_top_builddir_sub in
14775   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14776   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14777   esac ;;
14778 esac
14779 ac_abs_top_builddir=$ac_pwd
14780 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14781 # for backward compatibility:
14782 ac_top_builddir=$ac_top_build_prefix
14783
14784 case $srcdir in
14785   .)  # We are building in place.
14786     ac_srcdir=.
14787     ac_top_srcdir=$ac_top_builddir_sub
14788     ac_abs_top_srcdir=$ac_pwd ;;
14789   [\\/]* | ?:[\\/]* )  # Absolute name.
14790     ac_srcdir=$srcdir$ac_dir_suffix;
14791     ac_top_srcdir=$srcdir
14792     ac_abs_top_srcdir=$srcdir ;;
14793   *) # Relative name.
14794     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14795     ac_top_srcdir=$ac_top_build_prefix$srcdir
14796     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14797 esac
14798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14799
14800
14801   case $ac_mode in
14802   :F)
14803   #
14804   # CONFIG_FILE
14805   #
14806
14807 _ACEOF
14808
14809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14810 # If the template does not know about datarootdir, expand it.
14811 # FIXME: This hack should be removed a few years after 2.60.
14812 ac_datarootdir_hack=; ac_datarootdir_seen=
14813
14814 ac_sed_dataroot='
14815 /datarootdir/ {
14816   p
14817   q
14818 }
14819 /@datadir@/p
14820 /@docdir@/p
14821 /@infodir@/p
14822 /@localedir@/p
14823 /@mandir@/p
14824 '
14825 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14826 *datarootdir*) ac_datarootdir_seen=yes;;
14827 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14828   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14829 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14830 _ACEOF
14831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14832   ac_datarootdir_hack='
14833   s&@datadir@&$datadir&g
14834   s&@docdir@&$docdir&g
14835   s&@infodir@&$infodir&g
14836   s&@localedir@&$localedir&g
14837   s&@mandir@&$mandir&g
14838     s&\\\${datarootdir}&$datarootdir&g' ;;
14839 esac
14840 _ACEOF
14841
14842 # Neutralize VPATH when `$srcdir' = `.'.
14843 # Shell code in configure.ac might set extrasub.
14844 # FIXME: do we really want to maintain this feature?
14845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14846 ac_sed_extra="$ac_vpsub
14847 $extrasub
14848 _ACEOF
14849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14850 :t
14851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14852 s|@configure_input@|$ac_sed_conf_input|;t t
14853 s&@top_builddir@&$ac_top_builddir_sub&;t t
14854 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14855 s&@srcdir@&$ac_srcdir&;t t
14856 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14857 s&@top_srcdir@&$ac_top_srcdir&;t t
14858 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14859 s&@builddir@&$ac_builddir&;t t
14860 s&@abs_builddir@&$ac_abs_builddir&;t t
14861 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14862 $ac_datarootdir_hack
14863 "
14864 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14865   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14866 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14867    { (exit 1); exit 1; }; }
14868
14869 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14870   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14871   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14872   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14873 which seems to be undefined.  Please make sure it is defined." >&5
14874 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14875 which seems to be undefined.  Please make sure it is defined." >&2;}
14876
14877   rm -f "$tmp/stdin"
14878   case $ac_file in
14879   -) cat "$tmp/out" && rm -f "$tmp/out";;
14880   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14881   esac \
14882   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14883 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14884    { (exit 1); exit 1; }; }
14885  ;;
14886   :H)
14887   #
14888   # CONFIG_HEADER
14889   #
14890   if test x"$ac_file" != x-; then
14891     {
14892       $as_echo "/* $configure_input  */" \
14893       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14894     } >"$tmp/config.h" \
14895       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14896 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14897    { (exit 1); exit 1; }; }
14898     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14899       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14900 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14901     else
14902       rm -f "$ac_file"
14903       mv "$tmp/config.h" "$ac_file" \
14904         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14905 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14906    { (exit 1); exit 1; }; }
14907     fi
14908   else
14909     $as_echo "/* $configure_input  */" \
14910       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14911       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14912 $as_echo "$as_me: error: could not create -" >&2;}
14913    { (exit 1); exit 1; }; }
14914   fi
14915  ;;
14916
14917
14918   esac
14919
14920 done # for ac_tag
14921
14922
14923 { (exit 0); exit 0; }
14924 _ACEOF
14925 chmod +x $CONFIG_STATUS
14926 ac_clean_files=$ac_clean_files_save
14927
14928 test $ac_write_fail = 0 ||
14929   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14930 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14931    { (exit 1); exit 1; }; }
14932
14933
14934 # configure is writing to config.log, and then calls config.status.
14935 # config.status does its own redirection, appending to config.log.
14936 # Unfortunately, on DOS this fails, as config.log is still kept open
14937 # by configure, so config.status won't be able to write to it; its
14938 # output is simply discarded.  So we exec the FD to /dev/null,
14939 # effectively closing config.log, so it can be properly (re)opened and
14940 # appended to by config.status.  When coming back to configure, we
14941 # need to make the FD available again.
14942 if test "$no_create" != yes; then
14943   ac_cs_success=:
14944   ac_config_status_args=
14945   test "$silent" = yes &&
14946     ac_config_status_args="$ac_config_status_args --quiet"
14947   exec 5>/dev/null
14948   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14949   exec 5>>config.log
14950   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14951   # would make configure fail if this is the last instruction.
14952   $ac_cs_success || { (exit 1); exit 1; }
14953 fi
14954 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14955   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14956 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14957 fi
14958
14959
14960     if test -n "$OPTIONAL"; then
14961         echo
14962         echo "WARNING: Please consider installing optional programs: $OPTIONAL"
14963     fi
14964
14965     if test -n "$REQUIRED"; then
14966         echo
14967         echo "ERROR: Please install required programs: $REQUIRED"
14968     fi
14969
14970     if test -n "$UNSUPPORTED"; then
14971         echo
14972         echo "ERROR: Please use older version of programs: $UNSUPPORTED"
14973     fi
14974
14975     if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
14976         echo
14977         echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
14978         if test -f config.cache ; then
14979             echo "Remove config.cache before rerunning ./configure"
14980         fi
14981     fi
14982
14983     if test -n "$REQUIRED$UNSUPPORTED"; then
14984         rm -f $srcdir/GNUmakefile
14985         exit 1
14986     fi
14987
14988     # regular in-place build
14989     # test for srcdir_build = yes ?
14990     if test "$srcdir_build" = "yes"; then
14991         rm -f $srcdir/GNUmakefile
14992         cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
14993         chmod 444 $srcdir/GNUmakefile
14994     else
14995         if test -f $srcdir/GNUmakefile; then
14996             cat <<EOF
14997 Source directory already configured.  Please clean the source directory
14998
14999      make -C $srcdir distclean
15000
15001 and rerun configure.
15002 EOF
15003             exit 2
15004         fi
15005
15006         abssrcdir="`cd $srcdir; pwd`"
15007         absbuilddir="`pwd`"
15008         for d in 2 3 4 5 ; do
15009             for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name GNUmakefile`; do
15010                 case "$abssrcdir" in
15011                     "$absbuilddir"/*)
15012 # source is below build directory, always copy
15013                         ;;
15014                     *)
15015                         case "$abssrcdir/${mf#./}" in
15016                             "$absbuilddir"/*)
15017 # find descended into build directory, don't copy
15018                                 continue
15019                         esac
15020                 esac
15021                 mkdir -p ${mf%/*}
15022                 cat <<EOF | $PYTHON -  > $mf
15023 print 'depth=' + ('../' * ( $d-1 ) )
15024 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
15025 print 'include \$(configure-srcdir)/$mf'
15026 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
15027 EOF
15028             done
15029             for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
15030                 case "$abssrcdir" in
15031                     "$absbuilddir"/*)
15032 # source is below build directory, always copy
15033                         ;;
15034                     *)
15035                         case "$abssrcdir/${mf#./}" in
15036                             "$absbuilddir"/*)
15037 # find descended into build directory, don't copy
15038                                 continue
15039                         esac
15040                 esac
15041                 mkdir -p ${mf%/*}
15042                 cat <<EOF | $PYTHON -  > $mf
15043 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
15044 print 'include \$(configure-srcdir)/$mf'
15045 EOF
15046             done
15047         done
15048
15049         rm -f GNUmakefile
15050         cat <<EOF > GNUmakefile
15051 depth = .
15052 include config\$(if \$(conf),-\$(conf),).make
15053 include \$(configure-srcdir)/GNUmakefile.in
15054 EOF
15055         chmod 444 GNUmakefile
15056
15057     fi
15058
15059
15060 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
15061
15062 if make top-doc 1>/dev/null 2>&1; then
15063     rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt .
15064     rm -f README.txt && ln Documentation/topdocs/out/README.txt .
15065 fi
15066
15067 cat <<EOF
15068
15069 Type:
15070     make$mc all       to build LilyPond
15071     make$mc install   to install LilyPond
15072     make$mc help      to see all possible targets
15073
15074 Edit local.make for local Makefile overrides.
15075
15076
15077 EOF