]> git.donarmstrong.com Git - lilypond.git/blob - configure
Imported Upstream version 2.19.53
[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 TEXINDEX
647 TEXI2PDF
648 PDFTEX
649 PDFLATEX
650 BIBTEX
651 DBLATEX
652 TEXI2HTML
653 MAKEINFO
654 USE_EXTRACTPDFMARK
655 EXTRACTPDFMARK
656 GS920
657 GHOSTSCRIPT
658 PERL
659 GUILE
660 WINDRES
661 PLATFORM_WINDOWS
662 FREETYPE2_LIBS
663 FREETYPE2_CFLAGS
664 FONTCONFIG_LIBS
665 FONTCONFIG_CFLAGS
666 PANGO_FT2_LIBS
667 PANGO_FT2_CFLAGS
668 HOST_ARCH
669 PKG_CONFIG
670 LIBOBJS
671 T1ASM
672 FONTFORGE
673 PYTHON_LDFLAGS
674 PYTHON_CFLAGS
675 PYTHON_CONFIG
676 CXXABI_LIBS
677 GUILE_LDFLAGS
678 GUILE_CFLAGS
679 GUILE_CONFIG
680 KPSEWHICH
681 MFMODE
682 METAPOST
683 METAFONT
684 MSGFMT
685 FLEXLEXER_FILE
686 FLEX
687 BISON
688 YFLAGS
689 YACC
690 RANLIB
691 AR
692 EGREP
693 GREP
694 CXXCPP
695 ac_ct_CXX
696 CXXFLAGS
697 CXX
698 URWOTF_FILES
699 URWOTF_DIR
700 TEXGYRE_FILES
701 TEXGYRE_DIR
702 FCLIST
703 EXTRA_LIBS
704 DEFINES
705 cross_compiling
706 LD
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
713 CC
714 LINK_GXX_STATICALLY
715 DOCUMENTATION
716 build_package_libdir
717 build_package_datadir
718 ROOTSEP
719 PATHSEP
720 DIRSEP
721 LN_S
722 LN
723 ZIP
724 program_suffix
725 program_prefix
726 PYTHON
727 BASH
728 KSH
729 TAR
730 FIND
731 MAKE
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 CONFIGSUFFIX
741 AUTOGENERATE
742 package_depth
743 TOPLEVEL_VERSION
744 PATCH_LEVEL
745 MICRO_VERSION
746 MINOR_VERSION
747 MAJOR_VERSION
748 VERSION
749 PACKAGE
750 package
751 stepmake
752 srcdir
753 ugh_ugh_autoconf250_builddir
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_config
795 enable_documentation
796 enable_guile2
797 with_texgyre_dir
798 with_urwotf_dir
799 enable_relocation
800 enable_rpath
801 enable_static_gxx
802 enable_debugging
803 enable_checking
804 enable_optimising
805 enable_profiling
806 enable_pipe
807 with_localedir
808 with_lang
809 with_python_include
810 with_python_lib
811 '
812       ac_precious_vars='build_alias
813 host_alias
814 target_alias
815 CC
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
820 CXX
821 CXXFLAGS
822 CCC
823 CXXCPP
824 YACC
825 YFLAGS'
826
827
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
875
876 ac_prev=
877 ac_dashdash=
878 for ac_option
879 do
880   # If the previous option needs an argument, assign it.
881   if test -n "$ac_prev"; then
882     eval $ac_prev=\$ac_option
883     ac_prev=
884     continue
885   fi
886
887   case $ac_option in
888   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889   *)    ac_optarg=yes ;;
890   esac
891
892   # Accept the important Cygnus configure options, so we can diagnose typos.
893
894   case $ac_dashdash$ac_option in
895   --)
896     ac_dashdash=yes ;;
897
898   -bindir | --bindir | --bindi | --bind | --bin | --bi)
899     ac_prev=bindir ;;
900   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901     bindir=$ac_optarg ;;
902
903   -build | --build | --buil | --bui | --bu)
904     ac_prev=build_alias ;;
905   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906     build_alias=$ac_optarg ;;
907
908   -cache-file | --cache-file | --cache-fil | --cache-fi \
909   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910     ac_prev=cache_file ;;
911   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913     cache_file=$ac_optarg ;;
914
915   --config-cache | -C)
916     cache_file=config.cache ;;
917
918   -datadir | --datadir | --datadi | --datad)
919     ac_prev=datadir ;;
920   -datadir=* | --datadir=* | --datadi=* | --datad=*)
921     datadir=$ac_optarg ;;
922
923   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924   | --dataroo | --dataro | --datar)
925     ac_prev=datarootdir ;;
926   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928     datarootdir=$ac_optarg ;;
929
930   -disable-* | --disable-*)
931     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932     # Reject names that are not valid shell variable names.
933     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
935    { (exit 1); exit 1; }; }
936     ac_useropt_orig=$ac_useropt
937     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938     case $ac_user_opts in
939       *"
940 "enable_$ac_useropt"
941 "*) ;;
942       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943          ac_unrecognized_sep=', ';;
944     esac
945     eval enable_$ac_useropt=no ;;
946
947   -docdir | --docdir | --docdi | --doc | --do)
948     ac_prev=docdir ;;
949   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950     docdir=$ac_optarg ;;
951
952   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953     ac_prev=dvidir ;;
954   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955     dvidir=$ac_optarg ;;
956
957   -enable-* | --enable-*)
958     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959     # Reject names that are not valid shell variable names.
960     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
962    { (exit 1); exit 1; }; }
963     ac_useropt_orig=$ac_useropt
964     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965     case $ac_user_opts in
966       *"
967 "enable_$ac_useropt"
968 "*) ;;
969       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970          ac_unrecognized_sep=', ';;
971     esac
972     eval enable_$ac_useropt=\$ac_optarg ;;
973
974   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976   | --exec | --exe | --ex)
977     ac_prev=exec_prefix ;;
978   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980   | --exec=* | --exe=* | --ex=*)
981     exec_prefix=$ac_optarg ;;
982
983   -gas | --gas | --ga | --g)
984     # Obsolete; use --with-gas.
985     with_gas=yes ;;
986
987   -help | --help | --hel | --he | -h)
988     ac_init_help=long ;;
989   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990     ac_init_help=recursive ;;
991   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992     ac_init_help=short ;;
993
994   -host | --host | --hos | --ho)
995     ac_prev=host_alias ;;
996   -host=* | --host=* | --hos=* | --ho=*)
997     host_alias=$ac_optarg ;;
998
999   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000     ac_prev=htmldir ;;
1001   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002   | --ht=*)
1003     htmldir=$ac_optarg ;;
1004
1005   -includedir | --includedir | --includedi | --included | --include \
1006   | --includ | --inclu | --incl | --inc)
1007     ac_prev=includedir ;;
1008   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009   | --includ=* | --inclu=* | --incl=* | --inc=*)
1010     includedir=$ac_optarg ;;
1011
1012   -infodir | --infodir | --infodi | --infod | --info | --inf)
1013     ac_prev=infodir ;;
1014   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015     infodir=$ac_optarg ;;
1016
1017   -libdir | --libdir | --libdi | --libd)
1018     ac_prev=libdir ;;
1019   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020     libdir=$ac_optarg ;;
1021
1022   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023   | --libexe | --libex | --libe)
1024     ac_prev=libexecdir ;;
1025   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026   | --libexe=* | --libex=* | --libe=*)
1027     libexecdir=$ac_optarg ;;
1028
1029   -localedir | --localedir | --localedi | --localed | --locale)
1030     ac_prev=localedir ;;
1031   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032     localedir=$ac_optarg ;;
1033
1034   -localstatedir | --localstatedir | --localstatedi | --localstated \
1035   | --localstate | --localstat | --localsta | --localst | --locals)
1036     ac_prev=localstatedir ;;
1037   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039     localstatedir=$ac_optarg ;;
1040
1041   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042     ac_prev=mandir ;;
1043   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044     mandir=$ac_optarg ;;
1045
1046   -nfp | --nfp | --nf)
1047     # Obsolete; use --without-fp.
1048     with_fp=no ;;
1049
1050   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051   | --no-cr | --no-c | -n)
1052     no_create=yes ;;
1053
1054   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056     no_recursion=yes ;;
1057
1058   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060   | --oldin | --oldi | --old | --ol | --o)
1061     ac_prev=oldincludedir ;;
1062   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065     oldincludedir=$ac_optarg ;;
1066
1067   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068     ac_prev=prefix ;;
1069   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070     prefix=$ac_optarg ;;
1071
1072   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073   | --program-pre | --program-pr | --program-p)
1074     ac_prev=program_prefix ;;
1075   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077     program_prefix=$ac_optarg ;;
1078
1079   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080   | --program-suf | --program-su | --program-s)
1081     ac_prev=program_suffix ;;
1082   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084     program_suffix=$ac_optarg ;;
1085
1086   -program-transform-name | --program-transform-name \
1087   | --program-transform-nam | --program-transform-na \
1088   | --program-transform-n | --program-transform- \
1089   | --program-transform | --program-transfor \
1090   | --program-transfo | --program-transf \
1091   | --program-trans | --program-tran \
1092   | --progr-tra | --program-tr | --program-t)
1093     ac_prev=program_transform_name ;;
1094   -program-transform-name=* | --program-transform-name=* \
1095   | --program-transform-nam=* | --program-transform-na=* \
1096   | --program-transform-n=* | --program-transform-=* \
1097   | --program-transform=* | --program-transfor=* \
1098   | --program-transfo=* | --program-transf=* \
1099   | --program-trans=* | --program-tran=* \
1100   | --progr-tra=* | --program-tr=* | --program-t=*)
1101     program_transform_name=$ac_optarg ;;
1102
1103   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104     ac_prev=pdfdir ;;
1105   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106     pdfdir=$ac_optarg ;;
1107
1108   -psdir | --psdir | --psdi | --psd | --ps)
1109     ac_prev=psdir ;;
1110   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111     psdir=$ac_optarg ;;
1112
1113   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114   | -silent | --silent | --silen | --sile | --sil)
1115     silent=yes ;;
1116
1117   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118     ac_prev=sbindir ;;
1119   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120   | --sbi=* | --sb=*)
1121     sbindir=$ac_optarg ;;
1122
1123   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125   | --sharedst | --shareds | --shared | --share | --shar \
1126   | --sha | --sh)
1127     ac_prev=sharedstatedir ;;
1128   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131   | --sha=* | --sh=*)
1132     sharedstatedir=$ac_optarg ;;
1133
1134   -site | --site | --sit)
1135     ac_prev=site ;;
1136   -site=* | --site=* | --sit=*)
1137     site=$ac_optarg ;;
1138
1139   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140     ac_prev=srcdir ;;
1141   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142     srcdir=$ac_optarg ;;
1143
1144   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145   | --syscon | --sysco | --sysc | --sys | --sy)
1146     ac_prev=sysconfdir ;;
1147   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149     sysconfdir=$ac_optarg ;;
1150
1151   -target | --target | --targe | --targ | --tar | --ta | --t)
1152     ac_prev=target_alias ;;
1153   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154     target_alias=$ac_optarg ;;
1155
1156   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157     verbose=yes ;;
1158
1159   -version | --version | --versio | --versi | --vers | -V)
1160     ac_init_version=: ;;
1161
1162   -with-* | --with-*)
1163     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164     # Reject names that are not valid shell variable names.
1165     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1167    { (exit 1); exit 1; }; }
1168     ac_useropt_orig=$ac_useropt
1169     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170     case $ac_user_opts in
1171       *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175          ac_unrecognized_sep=', ';;
1176     esac
1177     eval with_$ac_useropt=\$ac_optarg ;;
1178
1179   -without-* | --without-*)
1180     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1184    { (exit 1); exit 1; }; }
1185     ac_useropt_orig=$ac_useropt
1186     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187     case $ac_user_opts in
1188       *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192          ac_unrecognized_sep=', ';;
1193     esac
1194     eval with_$ac_useropt=no ;;
1195
1196   --x)
1197     # Obsolete; use --with-x.
1198     with_x=yes ;;
1199
1200   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201   | --x-incl | --x-inc | --x-in | --x-i)
1202     ac_prev=x_includes ;;
1203   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205     x_includes=$ac_optarg ;;
1206
1207   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209     ac_prev=x_libraries ;;
1210   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212     x_libraries=$ac_optarg ;;
1213
1214   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1215 Try \`$0 --help' for more information." >&2
1216    { (exit 1); exit 1; }; }
1217     ;;
1218
1219   *=*)
1220     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1223       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1224    { (exit 1); exit 1; }; }
1225     eval $ac_envvar=\$ac_optarg
1226     export $ac_envvar ;;
1227
1228   *)
1229     # FIXME: should be removed in autoconf 3.0.
1230     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1234     ;;
1235
1236   esac
1237 done
1238
1239 if test -n "$ac_prev"; then
1240   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1242    { (exit 1); exit 1; }; }
1243 fi
1244
1245 if test -n "$ac_unrecognized_opts"; then
1246   case $enable_option_checking in
1247     no) ;;
1248     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1249    { (exit 1); exit 1; }; } ;;
1250     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251   esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256                 datadir sysconfdir sharedstatedir localstatedir includedir \
1257                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258                 libdir localedir mandir
1259 do
1260   eval ac_val=\$$ac_var
1261   # Remove trailing slashes.
1262   case $ac_val in
1263     */ )
1264       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265       eval $ac_var=\$ac_val;;
1266   esac
1267   # Be sure to have absolute directory names.
1268   case $ac_val in
1269     [\\/$]* | ?:[\\/]* )  continue;;
1270     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271   esac
1272   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1273    { (exit 1); exit 1; }; }
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285   if test "x$build_alias" = x; then
1286     cross_compiling=maybe
1287     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288     If a cross compiler is detected then cross compile mode will be used." >&2
1289   elif test "x$build_alias" != "x$host_alias"; then
1290     cross_compiling=yes
1291   fi
1292 fi
1293
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297 test "$silent" = yes && exec 6>/dev/null
1298
1299
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1304    { (exit 1); exit 1; }; }
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1307    { (exit 1); exit 1; }; }
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312   ac_srcdir_defaulted=yes
1313   # Try the directory containing this script, then the parent directory.
1314   ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316          X"$as_myself" : 'X\(//\)[^/]' \| \
1317          X"$as_myself" : 'X\(//\)$' \| \
1318          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\/\)[^/].*/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\).*/{
1333             s//\1/
1334             q
1335           }
1336           s/.*/./; q'`
1337   srcdir=$ac_confdir
1338   if test ! -r "$srcdir/$ac_unique_file"; then
1339     srcdir=..
1340   fi
1341 else
1342   ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1347    { (exit 1); exit 1; }; }
1348 fi
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1352    { (exit 1); exit 1; }; }
1353         pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356   srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_env_${ac_var}_value=\$${ac_var}
1367   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375   # Omit some internal or obsolete options to make the list less imposing.
1376   # This message is too long to be a string in the A/UX 3.1 sh.
1377   cat <<_ACEOF
1378 \`configure' configures this package to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE.  See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388   -h, --help              display this help and exit
1389       --help=short        display options specific to this package
1390       --help=recursive    display the short help of all the included packages
1391   -V, --version           display version information and exit
1392   -q, --quiet, --silent   do not print \`checking...' messages
1393       --cache-file=FILE   cache test results in FILE [disabled]
1394   -C, --config-cache      alias for \`--cache-file=config.cache'
1395   -n, --no-create         do not create output files
1396       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399   --prefix=PREFIX         install architecture-independent files in PREFIX
1400                           [$ac_default_prefix]
1401   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1402                           [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412   --bindir=DIR            user executables [EPREFIX/bin]
1413   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1414   --libexecdir=DIR        program executables [EPREFIX/libexec]
1415   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1416   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1417   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1418   --libdir=DIR            object code libraries [EPREFIX/lib]
1419   --includedir=DIR        C header files [PREFIX/include]
1420   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1421   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1422   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1423   --infodir=DIR           info documentation [DATAROOTDIR/info]
1424   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1425   --mandir=DIR            man documentation [DATAROOTDIR/man]
1426   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1427   --htmldir=DIR           html documentation [DOCDIR]
1428   --dvidir=DIR            dvi documentation [DOCDIR]
1429   --pdfdir=DIR            pdf documentation [DOCDIR]
1430   --psdir=DIR             ps documentation [DOCDIR]
1431 _ACEOF
1432
1433   cat <<\_ACEOF
1434
1435 System types:
1436   --build=BUILD     configure for building on BUILD [guessed]
1437   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442
1443   cat <<\_ACEOF
1444
1445 Optional Features:
1446   --disable-option-checking  ignore unrecognized --enable/--with options
1447   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1448   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1449   --enable-config=CONF    put settings in config-CONF.make and config-CONF.h;
1450                           do `make conf=CONF' to get output in ./out-CONF
1451   --enable-documentation  build Documentation. Default: on
1452   --enable-guile2         highly experimental GUILE 2 support. Default: off
1453   --enable-relocation     compile with dynamic relocation. Default: off
1454   --enable-rpath          hardcode runtime library path. Default: off
1455   --enable-static-gxx     link libstdc++.a statically. Default: off
1456   --enable-debugging      compile with debugging info. Default: on
1457   --enable-checking       compile with expensive run-time checks. Default: off
1458   --enable-optimising     compile with optimising. Default: on
1459   --enable-profiling      compile with gprof support. Default: off
1460   --enable-pipe           compile with -pipe. Default: on
1461
1462 Optional Packages:
1463   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1464   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1465   --with-texgyre-dir=DIR  location of TeX Gyre fonts.
1466   --with-urwotf-dir=DIR   location of URW++ OTF fonts.
1467   --with-localedir=DIR    location of locales. Default: PREFIX/share/locale
1468   --with-lang=LANG        use LANG as language to emit messages
1469   --with-python-include=DIR
1470                           location of the python include dir
1471   --with-python-lib=NAME  name of the python lib
1472
1473 Some influential environment variables:
1474   CC          C compiler command
1475   CFLAGS      C compiler flags
1476   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1477               nonstandard directory <lib dir>
1478   LIBS        libraries to pass to the linker, e.g. -l<library>
1479   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1480               you have headers in a nonstandard directory <include dir>
1481   CXX         C++ compiler command
1482   CXXFLAGS    C++ compiler flags
1483   CXXCPP      C++ preprocessor
1484   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1485               the first program found out of: `bison -y', `byacc', `yacc'.
1486   YFLAGS      The list of arguments that will be passed by default to $YACC.
1487               This script will default YFLAGS to the empty string to avoid a
1488               default value of `-d' given by some make applications.
1489
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1492
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498   # If there are subdirs, report their specific --help.
1499   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500     test -d "$ac_dir" ||
1501       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502       continue
1503     ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509   # A ".." for each directory in $ac_dir_suffix.
1510   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511   case $ac_top_builddir_sub in
1512   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514   esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522   .)  # We are building in place.
1523     ac_srcdir=.
1524     ac_top_srcdir=$ac_top_builddir_sub
1525     ac_abs_top_srcdir=$ac_pwd ;;
1526   [\\/]* | ?:[\\/]* )  # Absolute name.
1527     ac_srcdir=$srcdir$ac_dir_suffix;
1528     ac_top_srcdir=$srcdir
1529     ac_abs_top_srcdir=$srcdir ;;
1530   *) # Relative name.
1531     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532     ac_top_srcdir=$ac_top_build_prefix$srcdir
1533     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537     cd "$ac_dir" || { ac_status=$?; continue; }
1538     # Check for guested configure.
1539     if test -f "$ac_srcdir/configure.gnu"; then
1540       echo &&
1541       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542     elif test -f "$ac_srcdir/configure"; then
1543       echo &&
1544       $SHELL "$ac_srcdir/configure" --help=recursive
1545     else
1546       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547     fi || ac_status=$?
1548     cd "$ac_pwd" || { ac_status=$?; break; }
1549   done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554   cat <<\_ACEOF
1555 configure
1556 generated by GNU Autoconf 2.63
1557
1558 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1559 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563   exit
1564 fi
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1568
1569 It was created by $as_me, which was
1570 generated by GNU Autoconf 2.63.  Invocation command line was
1571
1572   $ $0 $@
1573
1574 _ACEOF
1575 exec 5>>config.log
1576 {
1577 cat <<_ASUNAME
1578 ## --------- ##
1579 ## Platform. ##
1580 ## --------- ##
1581
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1587
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1590
1591 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1592 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1595 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1596 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1597 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1598
1599 _ASUNAME
1600
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604   IFS=$as_save_IFS
1605   test -z "$as_dir" && as_dir=.
1606   $as_echo "PATH: $as_dir"
1607 done
1608 IFS=$as_save_IFS
1609
1610 } >&5
1611
1612 cat >&5 <<_ACEOF
1613
1614
1615 ## ----------- ##
1616 ## Core tests. ##
1617 ## ----------- ##
1618
1619 _ACEOF
1620
1621
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1627 ac_configure_args=
1628 ac_configure_args0=
1629 ac_configure_args1=
1630 ac_must_keep_next=false
1631 for ac_pass in 1 2
1632 do
1633   for ac_arg
1634   do
1635     case $ac_arg in
1636     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638     | -silent | --silent | --silen | --sile | --sil)
1639       continue ;;
1640     *\'*)
1641       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1642     esac
1643     case $ac_pass in
1644     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1645     2)
1646       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647       if test $ac_must_keep_next = true; then
1648         ac_must_keep_next=false # Got value, back to normal.
1649       else
1650         case $ac_arg in
1651           *=* | --config-cache | -C | -disable-* | --disable-* \
1652           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654           | -with-* | --with-* | -without-* | --without-* | --x)
1655             case "$ac_configure_args0 " in
1656               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1657             esac
1658             ;;
1659           -* ) ac_must_keep_next=true ;;
1660         esac
1661       fi
1662       ac_configure_args="$ac_configure_args '$ac_arg'"
1663       ;;
1664     esac
1665   done
1666 done
1667 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1669
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log.  We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676   # Save into config.log some information that might help in debugging.
1677   {
1678     echo
1679
1680     cat <<\_ASBOX
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1684 _ASBOX
1685     echo
1686     # The following way of writing the cache mishandles newlines in values,
1687 (
1688   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689     eval ac_val=\$$ac_var
1690     case $ac_val in #(
1691     *${as_nl}*)
1692       case $ac_var in #(
1693       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1694 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1695       esac
1696       case $ac_var in #(
1697       _ | IFS | as_nl) ;; #(
1698       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1699       *) $as_unset $ac_var ;;
1700       esac ;;
1701     esac
1702   done
1703   (set) 2>&1 |
1704     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1705     *${as_nl}ac_space=\ *)
1706       sed -n \
1707         "s/'\''/'\''\\\\'\'''\''/g;
1708           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1709       ;; #(
1710     *)
1711       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1712       ;;
1713     esac |
1714     sort
1715 )
1716     echo
1717
1718     cat <<\_ASBOX
1719 ## ----------------- ##
1720 ## Output variables. ##
1721 ## ----------------- ##
1722 _ASBOX
1723     echo
1724     for ac_var in $ac_subst_vars
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
1734     if test -n "$ac_subst_files"; then
1735       cat <<\_ASBOX
1736 ## ------------------- ##
1737 ## File substitutions. ##
1738 ## ------------------- ##
1739 _ASBOX
1740       echo
1741       for ac_var in $ac_subst_files
1742       do
1743         eval ac_val=\$$ac_var
1744         case $ac_val in
1745         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746         esac
1747         $as_echo "$ac_var='\''$ac_val'\''"
1748       done | sort
1749       echo
1750     fi
1751
1752     if test -s confdefs.h; then
1753       cat <<\_ASBOX
1754 ## ----------- ##
1755 ## confdefs.h. ##
1756 ## ----------- ##
1757 _ASBOX
1758       echo
1759       cat confdefs.h
1760       echo
1761     fi
1762     test "$ac_signal" != 0 &&
1763       $as_echo "$as_me: caught signal $ac_signal"
1764     $as_echo "$as_me: exit $exit_status"
1765   } >&5
1766   rm -f core *.core core.conftest.* &&
1767     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1768     exit $exit_status
1769 ' 0
1770 for ac_signal in 1 2 13 15; do
1771   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1772 done
1773 ac_signal=0
1774
1775 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1776 rm -f -r conftest* confdefs.h
1777
1778 # Predefined preprocessor variables.
1779
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_NAME "$PACKAGE_NAME"
1782 _ACEOF
1783
1784
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1787 _ACEOF
1788
1789
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1792 _ACEOF
1793
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_STRING "$PACKAGE_STRING"
1797 _ACEOF
1798
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1802 _ACEOF
1803
1804
1805 # Let the site file select an alternate cache file if it wants to.
1806 # Prefer an explicitly selected file to automatically selected ones.
1807 ac_site_file1=NONE
1808 ac_site_file2=NONE
1809 if test -n "$CONFIG_SITE"; then
1810   ac_site_file1=$CONFIG_SITE
1811 elif test "x$prefix" != xNONE; then
1812   ac_site_file1=$prefix/share/config.site
1813   ac_site_file2=$prefix/etc/config.site
1814 else
1815   ac_site_file1=$ac_default_prefix/share/config.site
1816   ac_site_file2=$ac_default_prefix/etc/config.site
1817 fi
1818 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1819 do
1820   test "x$ac_site_file" = xNONE && continue
1821   if test -r "$ac_site_file"; then
1822     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1823 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1824     sed 's/^/| /' "$ac_site_file" >&5
1825     . "$ac_site_file"
1826   fi
1827 done
1828
1829 if test -r "$cache_file"; then
1830   # Some versions of bash will fail to source /dev/null (special
1831   # files actually), so we avoid doing that.
1832   if test -f "$cache_file"; then
1833     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1834 $as_echo "$as_me: loading cache $cache_file" >&6;}
1835     case $cache_file in
1836       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1837       *)                      . "./$cache_file";;
1838     esac
1839   fi
1840 else
1841   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1842 $as_echo "$as_me: creating cache $cache_file" >&6;}
1843   >$cache_file
1844 fi
1845
1846 # Check that the precious variables saved in the cache have kept the same
1847 # value.
1848 ac_cache_corrupted=false
1849 for ac_var in $ac_precious_vars; do
1850   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1851   eval ac_new_set=\$ac_env_${ac_var}_set
1852   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1853   eval ac_new_val=\$ac_env_${ac_var}_value
1854   case $ac_old_set,$ac_new_set in
1855     set,)
1856       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1857 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1858       ac_cache_corrupted=: ;;
1859     ,set)
1860       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1861 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1862       ac_cache_corrupted=: ;;
1863     ,);;
1864     *)
1865       if test "x$ac_old_val" != "x$ac_new_val"; then
1866         # differences in whitespace do not lead to failure.
1867         ac_old_val_w=`echo x $ac_old_val`
1868         ac_new_val_w=`echo x $ac_new_val`
1869         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1870           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1871 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1872           ac_cache_corrupted=:
1873         else
1874           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1875 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1876           eval $ac_var=\$ac_old_val
1877         fi
1878         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1879 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1880         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1881 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1882       fi;;
1883   esac
1884   # Pass precious variables to config.status.
1885   if test "$ac_new_set" = set; then
1886     case $ac_new_val in
1887     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1888     *) ac_arg=$ac_var=$ac_new_val ;;
1889     esac
1890     case " $ac_configure_args " in
1891       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1892       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893     esac
1894   fi
1895 done
1896 if $ac_cache_corrupted; then
1897   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1899   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903    { (exit 1); exit 1; }; }
1904 fi
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922 ac_ext=c
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1927
1928
1929
1930 # Bootstrap StepMake configure
1931 ac_aux_dir=
1932 for ac_dir in config "$srcdir"/config; do
1933   if test -f "$ac_dir/install-sh"; then
1934     ac_aux_dir=$ac_dir
1935     ac_install_sh="$ac_aux_dir/install-sh -c"
1936     break
1937   elif test -f "$ac_dir/install.sh"; then
1938     ac_aux_dir=$ac_dir
1939     ac_install_sh="$ac_aux_dir/install.sh -c"
1940     break
1941   elif test -f "$ac_dir/shtool"; then
1942     ac_aux_dir=$ac_dir
1943     ac_install_sh="$ac_aux_dir/shtool install -c"
1944     break
1945   fi
1946 done
1947 if test -z "$ac_aux_dir"; then
1948   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1949 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1950    { (exit 1); exit 1; }; }
1951 fi
1952
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1960
1961
1962
1963 # Make sure we can run config.sub.
1964 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1965   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1966 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1967    { (exit 1); exit 1; }; }
1968
1969 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1970 $as_echo_n "checking build system type... " >&6; }
1971 if test "${ac_cv_build+set}" = set; then
1972   $as_echo_n "(cached) " >&6
1973 else
1974   ac_build_alias=$build_alias
1975 test "x$ac_build_alias" = x &&
1976   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1977 test "x$ac_build_alias" = x &&
1978   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1979 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1980    { (exit 1); exit 1; }; }
1981 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1982   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1983 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1984    { (exit 1); exit 1; }; }
1985
1986 fi
1987 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1988 $as_echo "$ac_cv_build" >&6; }
1989 case $ac_cv_build in
1990 *-*-*) ;;
1991 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1992 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1993    { (exit 1); exit 1; }; };;
1994 esac
1995 build=$ac_cv_build
1996 ac_save_IFS=$IFS; IFS='-'
1997 set x $ac_cv_build
1998 shift
1999 build_cpu=$1
2000 build_vendor=$2
2001 shift; shift
2002 # Remember, the first character of IFS is used to create $*,
2003 # except with old shells:
2004 build_os=$*
2005 IFS=$ac_save_IFS
2006 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2007
2008
2009
2010
2011     . $srcdir/VERSION
2012     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
2013     MICRO_VERSION=$PATCH_LEVEL
2014     TOPLEVEL_VERSION=$FULL_VERSION
2015     if test x$MY_PATCH_LEVEL != x; then
2016         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
2017     fi
2018     VERSION=$FULL_VERSION
2019     export MAJOR_VERSION MINOR_VERSION PATCH_LEVEL
2020     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
2021     #dnl
2022     PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
2023     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
2024     #dnl
2025
2026     # No versioning on directory names of sub-packages
2027     # urg, urg
2028     stepmake=${datadir}/stepmake
2029     presome=${prefix}
2030     if test "$prefix" = "NONE"; then
2031             presome=${ac_default_prefix}
2032     fi
2033     stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
2034
2035     # urg, how is this supposed to work?
2036     if test "$program_prefix" = "NONE"; then
2037           program_prefix=
2038     fi
2039     if test "$program_suffix" = "NONE"; then
2040           program_suffix=
2041     fi
2042
2043     { $as_echo "$as_me:$LINENO: checking Package" >&5
2044 $as_echo_n "checking Package... " >&6; }
2045     if test "$PACKAGE" = "STEPMAKE"; then
2046         { $as_echo "$as_me:$LINENO: result: Stepmake package!" >&5
2047 $as_echo "Stepmake package!" >&6; }
2048
2049         { $as_echo "$as_me:$LINENO: checking builddir" >&5
2050 $as_echo_n "checking builddir... " >&6; }
2051
2052         ugh_ugh_autoconf250_builddir="`pwd`"
2053
2054         if test "$srcdir" = "."; then
2055             srcdir_build=yes
2056         else
2057             srcdir_build=no
2058             package_builddir="`dirname $ugh_ugh_autoconf250_builddir`"
2059             package_srcdir="`dirname  $srcdir`"
2060         fi
2061         { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2062 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2063
2064         (cd stepmake 2>/dev/null || mkdir stepmake)
2065         (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
2066         stepmake=stepmake
2067     else
2068         { $as_echo "$as_me:$LINENO: result: $PACKAGE" >&5
2069 $as_echo "$PACKAGE" >&6; }
2070
2071         { $as_echo "$as_me:$LINENO: checking builddir" >&5
2072 $as_echo_n "checking builddir... " >&6; }
2073         ugh_ugh_autoconf250_builddir="`pwd`"
2074
2075         here_dir=$(cd . && pwd)
2076         full_src_dir=$(cd $srcdir && pwd)
2077
2078         if test "$full_src_dir" = "$here_dir"; then
2079             srcdir_build=yes
2080         else
2081             srcdir_build=no
2082         fi
2083         { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2084 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2085
2086         { $as_echo "$as_me:$LINENO: checking for stepmake" >&5
2087 $as_echo_n "checking for stepmake... " >&6; }
2088         # Check for installed stepmake
2089         if test -d $stepmake; then
2090             { $as_echo "$as_me:$LINENO: result: $stepmake" >&5
2091 $as_echo "$stepmake" >&6; }
2092         else
2093             stepmake="`cd $srcdir/stepmake; pwd`"
2094             { $as_echo "$as_me:$LINENO: result: $srcdir/stepmake  ($datadir/stepmake not found)" >&5
2095 $as_echo "$srcdir/stepmake  ($datadir/stepmake not found)" >&6; }
2096         fi
2097     fi
2098
2099
2100
2101     # Use absolute directory for non-srcdir builds, so that build
2102     # dir can be moved.
2103     if test "$srcdir_build" = "no" ;  then
2104         srcdir="`cd $srcdir; pwd`"
2105     fi
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117     # stepmake nonstandard names
2118
2119
2120
2121     # We don't need the upper case variant,
2122     # so stick to macros are uppercase convention.
2123     # AC_DEFINE_UNQUOTED(package, ["${package}"])
2124     # AC_DEFINE_UNQUOTED(PACKAGE, ["${PACKAGE}"])
2125     cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE "${package}"
2127 _ACEOF
2128
2129     cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_NAME "${PACKAGE_NAME}"
2131 _ACEOF
2132
2133     cat >>confdefs.h <<_ACEOF
2134 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2135 _ACEOF
2136
2137
2138     if test -z "$package_depth"; then
2139         package_depth="."
2140     else
2141         package_depth="../$package_depth"
2142     fi
2143     export package_depth
2144
2145
2146     AUTOGENERATE="This file was automatically generated by configure"
2147
2148
2149     CONFIGSUFFIX=
2150     # Check whether --enable-config was given.
2151 if test "${enable_config+set}" = set; then
2152   enableval=$enable_config; CONFIGURATION=$enableval
2153 fi
2154
2155
2156     ##'`#
2157
2158     test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
2159     CONFIGFILE=config$CONFIGSUFFIX
2160
2161
2162     { $as_echo "$as_me:$LINENO: checking host system type" >&5
2163 $as_echo_n "checking host system type... " >&6; }
2164 if test "${ac_cv_host+set}" = set; then
2165   $as_echo_n "(cached) " >&6
2166 else
2167   if test "x$host_alias" = x; then
2168   ac_cv_host=$ac_cv_build
2169 else
2170   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2171     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2172 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2173    { (exit 1); exit 1; }; }
2174 fi
2175
2176 fi
2177 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2178 $as_echo "$ac_cv_host" >&6; }
2179 case $ac_cv_host in
2180 *-*-*) ;;
2181 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2182 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2183    { (exit 1); exit 1; }; };;
2184 esac
2185 host=$ac_cv_host
2186 ac_save_IFS=$IFS; IFS='-'
2187 set x $ac_cv_host
2188 shift
2189 host_cpu=$1
2190 host_vendor=$2
2191 shift; shift
2192 # Remember, the first character of IFS is used to create $*,
2193 # except with old shells:
2194 host_os=$*
2195 IFS=$ac_save_IFS
2196 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2197
2198
2199
2200     for ac_prog in gmake make
2201 do
2202   # Extract the first word of "$ac_prog", so it can be a program name with args.
2203 set dummy $ac_prog; ac_word=$2
2204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 $as_echo_n "checking for $ac_word... " >&6; }
2206 if test "${ac_cv_prog_MAKE+set}" = set; then
2207   $as_echo_n "(cached) " >&6
2208 else
2209   if test -n "$MAKE"; then
2210   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2211 else
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2214 do
2215   IFS=$as_save_IFS
2216   test -z "$as_dir" && as_dir=.
2217   for ac_exec_ext in '' $ac_executable_extensions; do
2218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219     ac_cv_prog_MAKE="$ac_prog"
2220     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221     break 2
2222   fi
2223 done
2224 done
2225 IFS=$as_save_IFS
2226
2227 fi
2228 fi
2229 MAKE=$ac_cv_prog_MAKE
2230 if test -n "$MAKE"; then
2231   { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
2232 $as_echo "$MAKE" >&6; }
2233 else
2234   { $as_echo "$as_me:$LINENO: result: no" >&5
2235 $as_echo "no" >&6; }
2236 fi
2237
2238
2239   test -n "$MAKE" && break
2240 done
2241 test -n "$MAKE" || MAKE="no"
2242
2243
2244
2245     r="`eval echo '$'"MAKE"`"
2246     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
2247         true
2248     else
2249         ##STEPMAKE_WARN(cannot find . )
2250         false
2251     fi
2252
2253     if test $? -ne 0; then
2254
2255     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
2256
2257         if test "REQUIRED" = "REQUIRED"; then
2258             command="echo ERROR: gmake make not found"
2259             # abort configure process here?
2260         else
2261             command="- echo gmake make not found"
2262         fi
2263         eval "MAKE"='$command'
2264         false
2265     else
2266         true
2267     fi
2268
2269     if test $? -eq 0 -a -n ""; then
2270
2271     r="`eval echo '$'"MAKE"`"
2272     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2273 $as_echo_n "checking $r version... " >&6; }
2274     exe=`
2275     ## which doesn't work in ash, if /usr/bin/which isn't installed
2276     ## type -p doesn't work in ash
2277     ## command -v doesn't work in zsh
2278     ## command -v "$r" 2>&1
2279     ## this test should work in ash, bash, pdksh (ksh), zsh
2280     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2281 `
2282     if test -n ""; then
2283         ver=""
2284     else
2285         ver=`
2286     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2287     ##
2288     ## ARG.
2289     ## Workaround for broken Debian gcc version string:
2290     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2291     ##
2292     ## -V: Workaround for python
2293
2294     #dnl
2295
2296     ## Assume and hunt for dotted version multiplet.
2297     ## use eval trickery, because we cannot use multi-level $() instead of ``
2298     ## for compatibility reasons.
2299
2300     ## grab the first version number in  --version output.
2301     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2302                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2303                 head -n 1 |
2304                 tr ' ' '\n' |
2305                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2306                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2307                 head -n 1\`\"
2308
2309     if test -z "$_ver"; then
2310         ## If empty, try date [fontforge]
2311         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2312             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2313             | head -n 1 \
2314             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2315     fi
2316     echo "$_ver"
2317     #dnl
2318 `
2319     fi
2320     num=`
2321     echo "$ver" | awk -F. '
2322     {
2323       if ($3) {three = $3}
2324       else {three = 0}
2325     }
2326     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2327 `
2328     req=`
2329     echo "" | awk -F. '
2330     {
2331       if ($3) {three = $3}
2332       else {three = 0}
2333     }
2334     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2335 `
2336     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2337 $as_echo "$ver" >&6; }
2338     if test "$num" -lt "$req"; then
2339
2340     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2341
2342     fi
2343     vervar="`echo MAKE | tr 'a-z' 'A-Z'`_VERSION"
2344     eval `echo $vervar=$num`
2345 ##    AC_SUBST(`eval echo $vervar`)
2346
2347     fi
2348
2349
2350     for ac_prog in find
2351 do
2352   # Extract the first word of "$ac_prog", so it can be a program name with args.
2353 set dummy $ac_prog; ac_word=$2
2354 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 $as_echo_n "checking for $ac_word... " >&6; }
2356 if test "${ac_cv_prog_FIND+set}" = set; then
2357   $as_echo_n "(cached) " >&6
2358 else
2359   if test -n "$FIND"; then
2360   ac_cv_prog_FIND="$FIND" # Let the user override the test.
2361 else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2364 do
2365   IFS=$as_save_IFS
2366   test -z "$as_dir" && as_dir=.
2367   for ac_exec_ext in '' $ac_executable_extensions; do
2368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369     ac_cv_prog_FIND="$ac_prog"
2370     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371     break 2
2372   fi
2373 done
2374 done
2375 IFS=$as_save_IFS
2376
2377 fi
2378 fi
2379 FIND=$ac_cv_prog_FIND
2380 if test -n "$FIND"; then
2381   { $as_echo "$as_me:$LINENO: result: $FIND" >&5
2382 $as_echo "$FIND" >&6; }
2383 else
2384   { $as_echo "$as_me:$LINENO: result: no" >&5
2385 $as_echo "no" >&6; }
2386 fi
2387
2388
2389   test -n "$FIND" && break
2390 done
2391 test -n "$FIND" || FIND="no"
2392
2393
2394
2395     r="`eval echo '$'"FIND"`"
2396     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
2397         true
2398     else
2399         ##STEPMAKE_WARN(cannot find . )
2400         false
2401     fi
2402
2403     if test $? -ne 0; then
2404
2405     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
2406
2407         if test "REQUIRED" = "REQUIRED"; then
2408             command="echo ERROR: find not found"
2409             # abort configure process here?
2410         else
2411             command="- echo find not found"
2412         fi
2413         eval "FIND"='$command'
2414         false
2415     else
2416         true
2417     fi
2418
2419     if test $? -eq 0 -a -n ""; then
2420
2421     r="`eval echo '$'"FIND"`"
2422     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2423 $as_echo_n "checking $r version... " >&6; }
2424     exe=`
2425     ## which doesn't work in ash, if /usr/bin/which isn't installed
2426     ## type -p doesn't work in ash
2427     ## command -v doesn't work in zsh
2428     ## command -v "$r" 2>&1
2429     ## this test should work in ash, bash, pdksh (ksh), zsh
2430     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2431 `
2432     if test -n ""; then
2433         ver=""
2434     else
2435         ver=`
2436     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2437     ##
2438     ## ARG.
2439     ## Workaround for broken Debian gcc version string:
2440     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2441     ##
2442     ## -V: Workaround for python
2443
2444     #dnl
2445
2446     ## Assume and hunt for dotted version multiplet.
2447     ## use eval trickery, because we cannot use multi-level $() instead of ``
2448     ## for compatibility reasons.
2449
2450     ## grab the first version number in  --version output.
2451     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2452                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2453                 head -n 1 |
2454                 tr ' ' '\n' |
2455                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2456                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2457                 head -n 1\`\"
2458
2459     if test -z "$_ver"; then
2460         ## If empty, try date [fontforge]
2461         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2462             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2463             | head -n 1 \
2464             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2465     fi
2466     echo "$_ver"
2467     #dnl
2468 `
2469     fi
2470     num=`
2471     echo "$ver" | awk -F. '
2472     {
2473       if ($3) {three = $3}
2474       else {three = 0}
2475     }
2476     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2477 `
2478     req=`
2479     echo "" | awk -F. '
2480     {
2481       if ($3) {three = $3}
2482       else {three = 0}
2483     }
2484     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2485 `
2486     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2487 $as_echo "$ver" >&6; }
2488     if test "$num" -lt "$req"; then
2489
2490     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2491
2492     fi
2493     vervar="`echo FIND | tr 'a-z' 'A-Z'`_VERSION"
2494     eval `echo $vervar=$num`
2495 ##    AC_SUBST(`eval echo $vervar`)
2496
2497     fi
2498
2499
2500
2501     for ac_prog in tar
2502 do
2503   # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if test "${ac_cv_prog_TAR+set}" = set; then
2508   $as_echo_n "(cached) " >&6
2509 else
2510   if test -n "$TAR"; then
2511   ac_cv_prog_TAR="$TAR" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516   IFS=$as_save_IFS
2517   test -z "$as_dir" && as_dir=.
2518   for ac_exec_ext in '' $ac_executable_extensions; do
2519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520     ac_cv_prog_TAR="$ac_prog"
2521     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522     break 2
2523   fi
2524 done
2525 done
2526 IFS=$as_save_IFS
2527
2528 fi
2529 fi
2530 TAR=$ac_cv_prog_TAR
2531 if test -n "$TAR"; then
2532   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
2533 $as_echo "$TAR" >&6; }
2534 else
2535   { $as_echo "$as_me:$LINENO: result: no" >&5
2536 $as_echo "no" >&6; }
2537 fi
2538
2539
2540   test -n "$TAR" && break
2541 done
2542 test -n "$TAR" || TAR="no"
2543
2544
2545
2546     r="`eval echo '$'"TAR"`"
2547     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
2548         true
2549     else
2550         ##STEPMAKE_WARN(cannot find . )
2551         false
2552     fi
2553
2554     if test $? -ne 0; then
2555
2556     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
2557
2558         if test "REQUIRED" = "REQUIRED"; then
2559             command="echo ERROR: tar not found"
2560             # abort configure process here?
2561         else
2562             command="- echo tar not found"
2563         fi
2564         eval "TAR"='$command'
2565         false
2566     else
2567         true
2568     fi
2569
2570     if test $? -eq 0 -a -n ""; then
2571
2572     r="`eval echo '$'"TAR"`"
2573     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2574 $as_echo_n "checking $r version... " >&6; }
2575     exe=`
2576     ## which doesn't work in ash, if /usr/bin/which isn't installed
2577     ## type -p doesn't work in ash
2578     ## command -v doesn't work in zsh
2579     ## command -v "$r" 2>&1
2580     ## this test should work in ash, bash, pdksh (ksh), zsh
2581     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2582 `
2583     if test -n ""; then
2584         ver=""
2585     else
2586         ver=`
2587     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2588     ##
2589     ## ARG.
2590     ## Workaround for broken Debian gcc version string:
2591     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2592     ##
2593     ## -V: Workaround for python
2594
2595     #dnl
2596
2597     ## Assume and hunt for dotted version multiplet.
2598     ## use eval trickery, because we cannot use multi-level $() instead of ``
2599     ## for compatibility reasons.
2600
2601     ## grab the first version number in  --version output.
2602     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2603                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2604                 head -n 1 |
2605                 tr ' ' '\n' |
2606                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2607                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2608                 head -n 1\`\"
2609
2610     if test -z "$_ver"; then
2611         ## If empty, try date [fontforge]
2612         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2613             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2614             | head -n 1 \
2615             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2616     fi
2617     echo "$_ver"
2618     #dnl
2619 `
2620     fi
2621     num=`
2622     echo "$ver" | awk -F. '
2623     {
2624       if ($3) {three = $3}
2625       else {three = 0}
2626     }
2627     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2628 `
2629     req=`
2630     echo "" | awk -F. '
2631     {
2632       if ($3) {three = $3}
2633       else {three = 0}
2634     }
2635     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2636 `
2637     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2638 $as_echo "$ver" >&6; }
2639     if test "$num" -lt "$req"; then
2640
2641     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2642
2643     fi
2644     vervar="`echo TAR | tr 'a-z' 'A-Z'`_VERSION"
2645     eval `echo $vervar=$num`
2646 ##    AC_SUBST(`eval echo $vervar`)
2647
2648     fi
2649
2650
2651     if test "$(echo 2)" != "2" ||
2652         test "x`uname`" = "xHP-UX"; then
2653         # Extract the first word of "ksh", so it can be a program name with args.
2654 set dummy ksh; ac_word=$2
2655 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if test "${ac_cv_path_KSH+set}" = set; then
2658   $as_echo_n "(cached) " >&6
2659 else
2660   case $KSH in
2661   [\\/]* | ?:[\\/]*)
2662   ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2663   ;;
2664   *)
2665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668   IFS=$as_save_IFS
2669   test -z "$as_dir" && as_dir=.
2670   for ac_exec_ext in '' $ac_executable_extensions; do
2671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672     ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
2673     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674     break 2
2675   fi
2676 done
2677 done
2678 IFS=$as_save_IFS
2679
2680   test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="/bin/ksh"
2681   ;;
2682 esac
2683 fi
2684 KSH=$ac_cv_path_KSH
2685 if test -n "$KSH"; then
2686   { $as_echo "$as_me:$LINENO: result: $KSH" >&5
2687 $as_echo "$KSH" >&6; }
2688 else
2689   { $as_echo "$as_me:$LINENO: result: no" >&5
2690 $as_echo "no" >&6; }
2691 fi
2692
2693
2694         # Extract the first word of "bash", so it can be a program name with args.
2695 set dummy bash; ac_word=$2
2696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if test "${ac_cv_path_BASH+set}" = set; then
2699   $as_echo_n "(cached) " >&6
2700 else
2701   case $BASH in
2702   [\\/]* | ?:[\\/]*)
2703   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2704   ;;
2705   *)
2706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709   IFS=$as_save_IFS
2710   test -z "$as_dir" && as_dir=.
2711   for ac_exec_ext in '' $ac_executable_extensions; do
2712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2714     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2715     break 2
2716   fi
2717 done
2718 done
2719 IFS=$as_save_IFS
2720
2721   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$KSH"
2722   ;;
2723 esac
2724 fi
2725 BASH=$ac_cv_path_BASH
2726 if test -n "$BASH"; then
2727   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2728 $as_echo "$BASH" >&6; }
2729 else
2730   { $as_echo "$as_me:$LINENO: result: no" >&5
2731 $as_echo "no" >&6; }
2732 fi
2733
2734
2735
2736     { $as_echo "$as_me:$LINENO: WARNING: avoiding buggy /bin/sh" >&5
2737 $as_echo "$as_me: WARNING: avoiding buggy /bin/sh" >&2;}
2738     warn_b=yes
2739
2740         # Extract the first word of "bash", so it can be a program name with args.
2741 set dummy bash; ac_word=$2
2742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if test "${ac_cv_path_SHELL+set}" = set; then
2745   $as_echo_n "(cached) " >&6
2746 else
2747   case $SHELL in
2748   [\\/]* | ?:[\\/]*)
2749   ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2750   ;;
2751   *)
2752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755   IFS=$as_save_IFS
2756   test -z "$as_dir" && as_dir=.
2757   for ac_exec_ext in '' $ac_executable_extensions; do
2758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759     ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2760     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761     break 2
2762   fi
2763 done
2764 done
2765 IFS=$as_save_IFS
2766
2767   test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="$KSH"
2768   ;;
2769 esac
2770 fi
2771 SHELL=$ac_cv_path_SHELL
2772 if test -n "$SHELL"; then
2773   { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
2774 $as_echo "$SHELL" >&6; }
2775 else
2776   { $as_echo "$as_me:$LINENO: result: no" >&5
2777 $as_echo "no" >&6; }
2778 fi
2779
2780
2781     else
2782         SHELL=/bin/sh
2783         # Extract the first word of "bash", so it can be a program name with args.
2784 set dummy bash; ac_word=$2
2785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if test "${ac_cv_path_BASH+set}" = set; then
2788   $as_echo_n "(cached) " >&6
2789 else
2790   case $BASH in
2791   [\\/]* | ?:[\\/]*)
2792   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2793   ;;
2794   *)
2795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798   IFS=$as_save_IFS
2799   test -z "$as_dir" && as_dir=.
2800   for ac_exec_ext in '' $ac_executable_extensions; do
2801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2802     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2803     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804     break 2
2805   fi
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$SHELL"
2811   ;;
2812 esac
2813 fi
2814 BASH=$ac_cv_path_BASH
2815 if test -n "$BASH"; then
2816   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2817 $as_echo "$BASH" >&6; }
2818 else
2819   { $as_echo "$as_me:$LINENO: result: no" >&5
2820 $as_echo "no" >&6; }
2821 fi
2822
2823
2824     fi
2825
2826
2827
2828     { $as_echo "$as_me:$LINENO: checking for python" >&5
2829 $as_echo_n "checking for python... " >&6; }
2830     python="python"
2831     found="no"
2832     for r in $PYTHON python python3 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0; do
2833         exe=`
2834     ## which doesn't work in ash, if /usr/bin/which isn't installed
2835     ## type -p doesn't work in ash
2836     ## command -v doesn't work in zsh
2837     ## command -v "$r" 2>&1
2838     ## this test should work in ash, bash, pdksh (ksh), zsh
2839     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2840 `
2841         if ! $exe -V > /dev/null 2>&1 ; then
2842             continue
2843         fi
2844         ver=`
2845     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2846     ##
2847     ## ARG.
2848     ## Workaround for broken Debian gcc version string:
2849     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2850     ##
2851     ## -V: Workaround for python
2852
2853     #dnl
2854
2855     ## Assume and hunt for dotted version multiplet.
2856     ## use eval trickery, because we cannot use multi-level $() instead of ``
2857     ## for compatibility reasons.
2858
2859     ## grab the first version number in  --version output.
2860     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2861                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2862                 head -n 1 |
2863                 tr ' ' '\n' |
2864                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2865                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2866                 head -n 1\`\"
2867
2868     if test -z "$_ver"; then
2869         ## If empty, try date [fontforge]
2870         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2871             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2872             | head -n 1 \
2873             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2874     fi
2875     echo "$_ver"
2876     #dnl
2877 `
2878         num=`
2879     echo "$ver" | awk -F. '
2880     {
2881       if ($3) {three = $3}
2882       else {three = 0}
2883     }
2884     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2885 `
2886         req=`
2887     echo "1.5" | awk -F. '
2888     {
2889       if ($3) {three = $3}
2890       else {three = 0}
2891     }
2892     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2893 `
2894         sup=`
2895     echo "3.0" | awk -F. '
2896     {
2897       if ($3) {three = $3}
2898       else {three = 0}
2899     }
2900     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2901 `
2902         if test -n "1.5" && test "$num" -lt "$req"; then
2903             python="$r >= 1.5 (installed: $ver)"
2904             continue
2905         else
2906             if test -n "3.0" && test "$num" -ge "$sup"; then
2907                 python="$r < 3.0 (installed: $ver)"
2908                 continue
2909             else
2910                 python=$r
2911                 found=$r
2912                 break
2913             fi
2914         fi
2915     done
2916     { $as_echo "$as_me:$LINENO: result: $found" >&5
2917 $as_echo "$found" >&6; }
2918     if test "$found" != "no"; then
2919         { $as_echo "$as_me:$LINENO: checking $python version" >&5
2920 $as_echo_n "checking $python version... " >&6; }
2921         { $as_echo "$as_me:$LINENO: result: $ver" >&5
2922 $as_echo "$ver" >&6; }
2923         PYTHON=$found
2924     else
2925
2926     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
2927
2928     fi
2929     # Extract the first word of "$PYTHON", so it can be a program name with args.
2930 set dummy $PYTHON; ac_word=$2
2931 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if test "${ac_cv_path_PYTHON+set}" = set; then
2934   $as_echo_n "(cached) " >&6
2935 else
2936   case $PYTHON in
2937   [\\/]* | ?:[\\/]*)
2938   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2939   ;;
2940   *)
2941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944   IFS=$as_save_IFS
2945   test -z "$as_dir" && as_dir=.
2946   for ac_exec_ext in '' $ac_executable_extensions; do
2947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2949     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950     break 2
2951   fi
2952 done
2953 done
2954 IFS=$as_save_IFS
2955
2956   ;;
2957 esac
2958 fi
2959 PYTHON=$ac_cv_path_PYTHON
2960 if test -n "$PYTHON"; then
2961   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
2962 $as_echo "$PYTHON" >&6; }
2963 else
2964   { $as_echo "$as_me:$LINENO: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969
2970
2971
2972     if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
2973         $MAKE -v 2> /dev/null | grep GNU > /dev/null
2974         if test "$?" = 1; then
2975             warn='make (Please install *GNU* make)'
2976             # STEPMAKE_WARN($warn)
2977
2978     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
2979
2980         fi
2981     fi
2982
2983     ROOTSEP=':'
2984     DIRSEP='/'
2985     PATHSEP=':'
2986     LN=ln
2987     LN_S='ln -s'
2988     ZIP="zip -r -9"
2989
2990
2991
2992
2993
2994
2995     cat >>confdefs.h <<_ACEOF
2996 #define DIRSEP '${DIRSEP}'
2997 _ACEOF
2998
2999     cat >>confdefs.h <<_ACEOF
3000 #define PATHSEP '${PATHSEP}'
3001 _ACEOF
3002
3003
3004
3005
3006
3007
3008     presome=${prefix}
3009     if test "$prefix" = "NONE"; then
3010         presome=${ac_default_prefix}
3011     fi
3012
3013     build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
3014
3015     DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${presome}/share!"`
3016     DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
3017     BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
3018
3019
3020
3021
3022     cat >>confdefs.h <<_ACEOF
3023 #define DATADIR "${DATADIR}"
3024 _ACEOF
3025
3026     cat >>confdefs.h <<_ACEOF
3027 #define BUILD_PACKAGE_DATADIR "${BUILD_PACKAGE_DATADIR}"
3028 _ACEOF
3029
3030
3031
3032     presome=${exec_prefix}
3033     if test "$presome" = "NONE"; then
3034             presome=${prefix}
3035     fi
3036     if test "$presome" = "NONE"; then
3037             presome=${ac_default_prefix}
3038     fi
3039
3040     build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
3041
3042     LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3043     BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3044
3045
3046
3047     cat >>confdefs.h <<_ACEOF
3048 #define LIBDIR "${LIBDIR}"
3049 _ACEOF
3050
3051     cat >>confdefs.h <<_ACEOF
3052 #define BUILD_PACKAGE_LIBDIR "${BUILD_PACKAGE_LIBDIR}"
3053 _ACEOF
3054
3055
3056
3057
3058 # List a file that identifies your package.
3059
3060
3061 # Move to aclocal.m4?
3062 ac_config_headers="$ac_config_headers $CONFIGFILE.hh:config.hh.in"
3063
3064
3065 # Uncomment the configuration options your package needs.
3066
3067 DOCUMENTATION=yes
3068 # Check whether --enable-documentation was given.
3069 if test "${enable_documentation+set}" = set; then
3070   enableval=$enable_documentation; DOCUMENTATION=$enableval
3071 fi
3072
3073
3074
3075 GUILEv2=no
3076 # Check whether --enable-guile2 was given.
3077 if test "${enable_guile2+set}" = set; then
3078   enableval=$enable_guile2; GUILEv2=$enableval
3079 fi
3080
3081
3082
3083 # Check whether --with-texgyre-dir was given.
3084 if test "${with_texgyre_dir+set}" = set; then
3085   withval=$with_texgyre_dir; TEXGYRE_DIR=$withval
3086 else
3087   TEXGYRE_DIR=""
3088 fi
3089
3090
3091
3092 # Check whether --with-urwotf-dir was given.
3093 if test "${with_urwotf_dir+set}" = set; then
3094   withval=$with_urwotf_dir; URWOTF_DIR=$withval
3095 else
3096   URWOTF_DIR=""
3097 fi
3098
3099
3100 reloc_b=no
3101 # Check whether --enable-relocation was given.
3102 if test "${enable_relocation+set}" = set; then
3103   enableval=$enable_relocation; reloc_b=$enableval
3104 fi
3105
3106
3107 rpath_b=no
3108 # Check whether --enable-rpath was given.
3109 if test "${enable_rpath+set}" = set; then
3110   enableval=$enable_rpath; rpath_b=$enableval
3111 fi
3112
3113
3114 LINK_GXX_STATICALLY=no
3115 # Check whether --enable-static-gxx was given.
3116 if test "${enable_static_gxx+set}" = set; then
3117   enableval=$enable_static_gxx; LINK_GXX_STATICALLY=$enableval
3118 fi
3119
3120
3121
3122 # must come before any header checks
3123
3124     # -O is necessary to get inlining
3125     CFLAGS=${CFLAGS-""}
3126     CXXFLAGS=${CXXFLAGS-$CFLAGS}
3127     LDFLAGS=${LDFLAGS-""}
3128     optimise_b=yes
3129     checks_b=no
3130     profile_b=no
3131     debug_b=yes
3132     pipe_b=yes
3133
3134     # Check whether --enable-debugging was given.
3135 if test "${enable_debugging+set}" = set; then
3136   enableval=$enable_debugging; debug_b=$enableval
3137 fi
3138
3139
3140     # Check whether --enable-checking was given.
3141 if test "${enable_checking+set}" = set; then
3142   enableval=$enable_checking; checks_b=$enableval
3143 fi
3144
3145
3146     # Check whether --enable-optimising was given.
3147 if test "${enable_optimising+set}" = set; then
3148   enableval=$enable_optimising; optimise_b=$enableval
3149 fi
3150
3151
3152     # Check whether --enable-profiling was given.
3153 if test "${enable_profiling+set}" = set; then
3154   enableval=$enable_profiling; profile_b=$enableval
3155 fi
3156
3157
3158     # Check whether --enable-pipe was given.
3159 if test "${enable_pipe+set}" = set; then
3160   enableval=$enable_pipe; pipe_b=$enableval
3161 fi
3162
3163
3164     if test "$optimise_b" = yes; then
3165         OPTIMIZE=" -O2 -finline-functions"
3166         # following two lines are compatibility while Patchy has not
3167         # yet learnt about --enable-checking.  But once it has, we
3168         # don't want -DDEBUG twice, so we omit it here if it is going
3169         # to get added anyway later.
3170     elif test "$checks_b" != yes; then
3171         DEFINES="$DEFINES -DDEBUG"
3172     fi
3173
3174     if test "$checks_b" = yes; then
3175         DEFINES="$DEFINES -DDEBUG"
3176     fi
3177
3178     if test $profile_b = yes; then
3179         EXTRA_LIBS="-pg"
3180         OPTIMIZE="$OPTIMIZE -pg"
3181     fi
3182
3183     if test $debug_b = yes; then
3184         OPTIMIZE="$OPTIMIZE -g"
3185     fi
3186
3187 ac_ext=c
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 if test -n "$ac_tool_prefix"; then
3193   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3194 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if test "${ac_cv_prog_CC+set}" = set; then
3198   $as_echo_n "(cached) " >&6
3199 else
3200   if test -n "$CC"; then
3201   ac_cv_prog_CC="$CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206   IFS=$as_save_IFS
3207   test -z "$as_dir" && as_dir=.
3208   for ac_exec_ext in '' $ac_executable_extensions; do
3209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3211     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212     break 2
3213   fi
3214 done
3215 done
3216 IFS=$as_save_IFS
3217
3218 fi
3219 fi
3220 CC=$ac_cv_prog_CC
3221 if test -n "$CC"; then
3222   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3224 else
3225   { $as_echo "$as_me:$LINENO: result: no" >&5
3226 $as_echo "no" >&6; }
3227 fi
3228
3229
3230 fi
3231 if test -z "$ac_cv_prog_CC"; then
3232   ac_ct_CC=$CC
3233   # Extract the first word of "gcc", so it can be a program name with args.
3234 set dummy gcc; ac_word=$2
3235 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3238   $as_echo_n "(cached) " >&6
3239 else
3240   if test -n "$ac_ct_CC"; then
3241   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246   IFS=$as_save_IFS
3247   test -z "$as_dir" && as_dir=.
3248   for ac_exec_ext in '' $ac_executable_extensions; do
3249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250     ac_cv_prog_ac_ct_CC="gcc"
3251     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3252     break 2
3253   fi
3254 done
3255 done
3256 IFS=$as_save_IFS
3257
3258 fi
3259 fi
3260 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3261 if test -n "$ac_ct_CC"; then
3262   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3263 $as_echo "$ac_ct_CC" >&6; }
3264 else
3265   { $as_echo "$as_me:$LINENO: result: no" >&5
3266 $as_echo "no" >&6; }
3267 fi
3268
3269   if test "x$ac_ct_CC" = x; then
3270     CC=""
3271   else
3272     case $cross_compiling:$ac_tool_warned in
3273 yes:)
3274 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3276 ac_tool_warned=yes ;;
3277 esac
3278     CC=$ac_ct_CC
3279   fi
3280 else
3281   CC="$ac_cv_prog_CC"
3282 fi
3283
3284 if test -z "$CC"; then
3285           if test -n "$ac_tool_prefix"; then
3286     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3287 set dummy ${ac_tool_prefix}cc; ac_word=$2
3288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3289 $as_echo_n "checking for $ac_word... " >&6; }
3290 if test "${ac_cv_prog_CC+set}" = set; then
3291   $as_echo_n "(cached) " >&6
3292 else
3293   if test -n "$CC"; then
3294   ac_cv_prog_CC="$CC" # Let the user override the test.
3295 else
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299   IFS=$as_save_IFS
3300   test -z "$as_dir" && as_dir=.
3301   for ac_exec_ext in '' $ac_executable_extensions; do
3302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303     ac_cv_prog_CC="${ac_tool_prefix}cc"
3304     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305     break 2
3306   fi
3307 done
3308 done
3309 IFS=$as_save_IFS
3310
3311 fi
3312 fi
3313 CC=$ac_cv_prog_CC
3314 if test -n "$CC"; then
3315   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3316 $as_echo "$CC" >&6; }
3317 else
3318   { $as_echo "$as_me:$LINENO: result: no" >&5
3319 $as_echo "no" >&6; }
3320 fi
3321
3322
3323   fi
3324 fi
3325 if test -z "$CC"; then
3326   # Extract the first word of "cc", so it can be a program name with args.
3327 set dummy cc; ac_word=$2
3328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if test "${ac_cv_prog_CC+set}" = set; then
3331   $as_echo_n "(cached) " >&6
3332 else
3333   if test -n "$CC"; then
3334   ac_cv_prog_CC="$CC" # Let the user override the test.
3335 else
3336   ac_prog_rejected=no
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3339 do
3340   IFS=$as_save_IFS
3341   test -z "$as_dir" && as_dir=.
3342   for ac_exec_ext in '' $ac_executable_extensions; do
3343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3345        ac_prog_rejected=yes
3346        continue
3347      fi
3348     ac_cv_prog_CC="cc"
3349     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350     break 2
3351   fi
3352 done
3353 done
3354 IFS=$as_save_IFS
3355
3356 if test $ac_prog_rejected = yes; then
3357   # We found a bogon in the path, so make sure we never use it.
3358   set dummy $ac_cv_prog_CC
3359   shift
3360   if test $# != 0; then
3361     # We chose a different compiler from the bogus one.
3362     # However, it has the same basename, so the bogon will be chosen
3363     # first if we set CC to just the basename; use the full file name.
3364     shift
3365     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3366   fi
3367 fi
3368 fi
3369 fi
3370 CC=$ac_cv_prog_CC
3371 if test -n "$CC"; then
3372   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3373 $as_echo "$CC" >&6; }
3374 else
3375   { $as_echo "$as_me:$LINENO: result: no" >&5
3376 $as_echo "no" >&6; }
3377 fi
3378
3379
3380 fi
3381 if test -z "$CC"; then
3382   if test -n "$ac_tool_prefix"; then
3383   for ac_prog in cl.exe
3384   do
3385     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if test "${ac_cv_prog_CC+set}" = set; then
3390   $as_echo_n "(cached) " >&6
3391 else
3392   if test -n "$CC"; then
3393   ac_cv_prog_CC="$CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398   IFS=$as_save_IFS
3399   test -z "$as_dir" && as_dir=.
3400   for ac_exec_ext in '' $ac_executable_extensions; do
3401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3403     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404     break 2
3405   fi
3406 done
3407 done
3408 IFS=$as_save_IFS
3409
3410 fi
3411 fi
3412 CC=$ac_cv_prog_CC
3413 if test -n "$CC"; then
3414   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3415 $as_echo "$CC" >&6; }
3416 else
3417   { $as_echo "$as_me:$LINENO: result: no" >&5
3418 $as_echo "no" >&6; }
3419 fi
3420
3421
3422     test -n "$CC" && break
3423   done
3424 fi
3425 if test -z "$CC"; then
3426   ac_ct_CC=$CC
3427   for ac_prog in cl.exe
3428 do
3429   # Extract the first word of "$ac_prog", so it can be a program name with args.
3430 set dummy $ac_prog; ac_word=$2
3431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 $as_echo_n "checking for $ac_word... " >&6; }
3433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3434   $as_echo_n "(cached) " >&6
3435 else
3436   if test -n "$ac_ct_CC"; then
3437   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3438 else
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 for as_dir in $PATH
3441 do
3442   IFS=$as_save_IFS
3443   test -z "$as_dir" && as_dir=.
3444   for ac_exec_ext in '' $ac_executable_extensions; do
3445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3446     ac_cv_prog_ac_ct_CC="$ac_prog"
3447     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3448     break 2
3449   fi
3450 done
3451 done
3452 IFS=$as_save_IFS
3453
3454 fi
3455 fi
3456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3457 if test -n "$ac_ct_CC"; then
3458   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3459 $as_echo "$ac_ct_CC" >&6; }
3460 else
3461   { $as_echo "$as_me:$LINENO: result: no" >&5
3462 $as_echo "no" >&6; }
3463 fi
3464
3465
3466   test -n "$ac_ct_CC" && break
3467 done
3468
3469   if test "x$ac_ct_CC" = x; then
3470     CC=""
3471   else
3472     case $cross_compiling:$ac_tool_warned in
3473 yes:)
3474 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3476 ac_tool_warned=yes ;;
3477 esac
3478     CC=$ac_ct_CC
3479   fi
3480 fi
3481
3482 fi
3483
3484
3485 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3488 See \`config.log' for more details." >&5
3489 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3490 See \`config.log' for more details." >&2;}
3491    { (exit 1); exit 1; }; }; }
3492
3493 # Provide some information about the compiler.
3494 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3495 set X $ac_compile
3496 ac_compiler=$2
3497 { (ac_try="$ac_compiler --version >&5"
3498 case "(($ac_try" in
3499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500   *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503 $as_echo "$ac_try_echo") >&5
3504   (eval "$ac_compiler --version >&5") 2>&5
3505   ac_status=$?
3506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); }
3508 { (ac_try="$ac_compiler -v >&5"
3509 case "(($ac_try" in
3510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511   *) ac_try_echo=$ac_try;;
3512 esac
3513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3514 $as_echo "$ac_try_echo") >&5
3515   (eval "$ac_compiler -v >&5") 2>&5
3516   ac_status=$?
3517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518   (exit $ac_status); }
3519 { (ac_try="$ac_compiler -V >&5"
3520 case "(($ac_try" in
3521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522   *) ac_try_echo=$ac_try;;
3523 esac
3524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3525 $as_echo "$ac_try_echo") >&5
3526   (eval "$ac_compiler -V >&5") 2>&5
3527   ac_status=$?
3528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }
3530
3531 cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h.  */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h.  */
3537
3538 int
3539 main ()
3540 {
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 ac_clean_files_save=$ac_clean_files
3547 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3548 # Try to create an executable without -o first, disregard a.out.
3549 # It will help us diagnose broken compilers, and finding out an intuition
3550 # of exeext.
3551 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3552 $as_echo_n "checking for C compiler default output file name... " >&6; }
3553 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3554
3555 # The possible output files:
3556 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3557
3558 ac_rmfiles=
3559 for ac_file in $ac_files
3560 do
3561   case $ac_file in
3562     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3563     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3564   esac
3565 done
3566 rm -f $ac_rmfiles
3567
3568 if { (ac_try="$ac_link_default"
3569 case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3574 $as_echo "$ac_try_echo") >&5
3575   (eval "$ac_link_default") 2>&5
3576   ac_status=$?
3577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); }; then
3579   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3580 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3581 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3582 # so that the user can short-circuit this test for compilers unknown to
3583 # Autoconf.
3584 for ac_file in $ac_files ''
3585 do
3586   test -f "$ac_file" || continue
3587   case $ac_file in
3588     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3589         ;;
3590     [ab].out )
3591         # We found the default executable, but exeext='' is most
3592         # certainly right.
3593         break;;
3594     *.* )
3595         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3596         then :; else
3597            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3598         fi
3599         # We set ac_cv_exeext here because the later test for it is not
3600         # safe: cross compilers may not add the suffix if given an `-o'
3601         # argument, so we may need to know it at that point already.
3602         # Even if this section looks crufty: it has the advantage of
3603         # actually working.
3604         break;;
3605     * )
3606         break;;
3607   esac
3608 done
3609 test "$ac_cv_exeext" = no && ac_cv_exeext=
3610
3611 else
3612   ac_file=''
3613 fi
3614
3615 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3616 $as_echo "$ac_file" >&6; }
3617 if test -z "$ac_file"; then
3618   $as_echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3620
3621 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3624 See \`config.log' for more details." >&5
3625 $as_echo "$as_me: error: C compiler cannot create executables
3626 See \`config.log' for more details." >&2;}
3627    { (exit 77); exit 77; }; }; }
3628 fi
3629
3630 ac_exeext=$ac_cv_exeext
3631
3632 # Check that the compiler produces executables we can run.  If not, either
3633 # the compiler is broken, or we cross compile.
3634 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3635 $as_echo_n "checking whether the C compiler works... " >&6; }
3636 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3637 # If not cross compiling, check that we can run a simple program.
3638 if test "$cross_compiling" != yes; then
3639   if { ac_try='./$ac_file'
3640   { (case "(($ac_try" in
3641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642   *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646   (eval "$ac_try") 2>&5
3647   ac_status=$?
3648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); }; }; then
3650     cross_compiling=no
3651   else
3652     if test "$cross_compiling" = maybe; then
3653         cross_compiling=yes
3654     else
3655         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3658 If you meant to cross compile, use \`--host'.
3659 See \`config.log' for more details." >&5
3660 $as_echo "$as_me: error: cannot run C compiled programs.
3661 If you meant to cross compile, use \`--host'.
3662 See \`config.log' for more details." >&2;}
3663    { (exit 1); exit 1; }; }; }
3664     fi
3665   fi
3666 fi
3667 { $as_echo "$as_me:$LINENO: result: yes" >&5
3668 $as_echo "yes" >&6; }
3669
3670 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3671 ac_clean_files=$ac_clean_files_save
3672 # Check that the compiler produces executables we can run.  If not, either
3673 # the compiler is broken, or we cross compile.
3674 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3675 $as_echo_n "checking whether we are cross compiling... " >&6; }
3676 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3677 $as_echo "$cross_compiling" >&6; }
3678
3679 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3680 $as_echo_n "checking for suffix of executables... " >&6; }
3681 if { (ac_try="$ac_link"
3682 case "(($ac_try" in
3683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684   *) ac_try_echo=$ac_try;;
3685 esac
3686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3687 $as_echo "$ac_try_echo") >&5
3688   (eval "$ac_link") 2>&5
3689   ac_status=$?
3690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691   (exit $ac_status); }; then
3692   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3693 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3694 # work properly (i.e., refer to `conftest.exe'), while it won't with
3695 # `rm'.
3696 for ac_file in conftest.exe conftest conftest.*; do
3697   test -f "$ac_file" || continue
3698   case $ac_file in
3699     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3700     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3701           break;;
3702     * ) break;;
3703   esac
3704 done
3705 else
3706   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3709 See \`config.log' for more details." >&5
3710 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3711 See \`config.log' for more details." >&2;}
3712    { (exit 1); exit 1; }; }; }
3713 fi
3714
3715 rm -f conftest$ac_cv_exeext
3716 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3717 $as_echo "$ac_cv_exeext" >&6; }
3718
3719 rm -f conftest.$ac_ext
3720 EXEEXT=$ac_cv_exeext
3721 ac_exeext=$EXEEXT
3722 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3723 $as_echo_n "checking for suffix of object files... " >&6; }
3724 if test "${ac_cv_objext+set}" = set; then
3725   $as_echo_n "(cached) " >&6
3726 else
3727   cat >conftest.$ac_ext <<_ACEOF
3728 /* confdefs.h.  */
3729 _ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h.  */
3733
3734 int
3735 main ()
3736 {
3737
3738   ;
3739   return 0;
3740 }
3741 _ACEOF
3742 rm -f conftest.o conftest.obj
3743 if { (ac_try="$ac_compile"
3744 case "(($ac_try" in
3745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746   *) ac_try_echo=$ac_try;;
3747 esac
3748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3749 $as_echo "$ac_try_echo") >&5
3750   (eval "$ac_compile") 2>&5
3751   ac_status=$?
3752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); }; then
3754   for ac_file in conftest.o conftest.obj conftest.*; do
3755   test -f "$ac_file" || continue;
3756   case $ac_file in
3757     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3758     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3759        break;;
3760   esac
3761 done
3762 else
3763   $as_echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3765
3766 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3769 See \`config.log' for more details." >&5
3770 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3771 See \`config.log' for more details." >&2;}
3772    { (exit 1); exit 1; }; }; }
3773 fi
3774
3775 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3776 fi
3777 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3778 $as_echo "$ac_cv_objext" >&6; }
3779 OBJEXT=$ac_cv_objext
3780 ac_objext=$OBJEXT
3781 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3782 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3783 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3784   $as_echo_n "(cached) " >&6
3785 else
3786   cat >conftest.$ac_ext <<_ACEOF
3787 /* confdefs.h.  */
3788 _ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h.  */
3792
3793 int
3794 main ()
3795 {
3796 #ifndef __GNUC__
3797        choke me
3798 #endif
3799
3800   ;
3801   return 0;
3802 }
3803 _ACEOF
3804 rm -f conftest.$ac_objext
3805 if { (ac_try="$ac_compile"
3806 case "(($ac_try" in
3807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808   *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3811 $as_echo "$ac_try_echo") >&5
3812   (eval "$ac_compile") 2>conftest.er1
3813   ac_status=$?
3814   grep -v '^ *+' conftest.er1 >conftest.err
3815   rm -f conftest.er1
3816   cat conftest.err >&5
3817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818   (exit $ac_status); } && {
3819          test -z "$ac_c_werror_flag" ||
3820          test ! -s conftest.err
3821        } && test -s conftest.$ac_objext; then
3822   ac_compiler_gnu=yes
3823 else
3824   $as_echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827         ac_compiler_gnu=no
3828 fi
3829
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3832
3833 fi
3834 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3835 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3836 if test $ac_compiler_gnu = yes; then
3837   GCC=yes
3838 else
3839   GCC=
3840 fi
3841 ac_test_CFLAGS=${CFLAGS+set}
3842 ac_save_CFLAGS=$CFLAGS
3843 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3844 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3845 if test "${ac_cv_prog_cc_g+set}" = set; then
3846   $as_echo_n "(cached) " >&6
3847 else
3848   ac_save_c_werror_flag=$ac_c_werror_flag
3849    ac_c_werror_flag=yes
3850    ac_cv_prog_cc_g=no
3851    CFLAGS="-g"
3852    cat >conftest.$ac_ext <<_ACEOF
3853 /* confdefs.h.  */
3854 _ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h.  */
3858
3859 int
3860 main ()
3861 {
3862
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867 rm -f conftest.$ac_objext
3868 if { (ac_try="$ac_compile"
3869 case "(($ac_try" in
3870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871   *) ac_try_echo=$ac_try;;
3872 esac
3873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3874 $as_echo "$ac_try_echo") >&5
3875   (eval "$ac_compile") 2>conftest.er1
3876   ac_status=$?
3877   grep -v '^ *+' conftest.er1 >conftest.err
3878   rm -f conftest.er1
3879   cat conftest.err >&5
3880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881   (exit $ac_status); } && {
3882          test -z "$ac_c_werror_flag" ||
3883          test ! -s conftest.err
3884        } && test -s conftest.$ac_objext; then
3885   ac_cv_prog_cc_g=yes
3886 else
3887   $as_echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890         CFLAGS=""
3891       cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897
3898 int
3899 main ()
3900 {
3901
3902   ;
3903   return 0;
3904 }
3905 _ACEOF
3906 rm -f conftest.$ac_objext
3907 if { (ac_try="$ac_compile"
3908 case "(($ac_try" in
3909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910   *) ac_try_echo=$ac_try;;
3911 esac
3912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3913 $as_echo "$ac_try_echo") >&5
3914   (eval "$ac_compile") 2>conftest.er1
3915   ac_status=$?
3916   grep -v '^ *+' conftest.er1 >conftest.err
3917   rm -f conftest.er1
3918   cat conftest.err >&5
3919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); } && {
3921          test -z "$ac_c_werror_flag" ||
3922          test ! -s conftest.err
3923        } && test -s conftest.$ac_objext; then
3924   :
3925 else
3926   $as_echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929         ac_c_werror_flag=$ac_save_c_werror_flag
3930          CFLAGS="-g"
3931          cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h.  */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h.  */
3937
3938 int
3939 main ()
3940 {
3941
3942   ;
3943   return 0;
3944 }
3945 _ACEOF
3946 rm -f conftest.$ac_objext
3947 if { (ac_try="$ac_compile"
3948 case "(($ac_try" in
3949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950   *) ac_try_echo=$ac_try;;
3951 esac
3952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3953 $as_echo "$ac_try_echo") >&5
3954   (eval "$ac_compile") 2>conftest.er1
3955   ac_status=$?
3956   grep -v '^ *+' conftest.er1 >conftest.err
3957   rm -f conftest.er1
3958   cat conftest.err >&5
3959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); } && {
3961          test -z "$ac_c_werror_flag" ||
3962          test ! -s conftest.err
3963        } && test -s conftest.$ac_objext; then
3964   ac_cv_prog_cc_g=yes
3965 else
3966   $as_echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3968
3969
3970 fi
3971
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 fi
3974
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 fi
3977
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979    ac_c_werror_flag=$ac_save_c_werror_flag
3980 fi
3981 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3982 $as_echo "$ac_cv_prog_cc_g" >&6; }
3983 if test "$ac_test_CFLAGS" = set; then
3984   CFLAGS=$ac_save_CFLAGS
3985 elif test $ac_cv_prog_cc_g = yes; then
3986   if test "$GCC" = yes; then
3987     CFLAGS="-g -O2"
3988   else
3989     CFLAGS="-g"
3990   fi
3991 else
3992   if test "$GCC" = yes; then
3993     CFLAGS="-O2"
3994   else
3995     CFLAGS=
3996   fi
3997 fi
3998 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3999 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4000 if test "${ac_cv_prog_cc_c89+set}" = set; then
4001   $as_echo_n "(cached) " >&6
4002 else
4003   ac_cv_prog_cc_c89=no
4004 ac_save_CC=$CC
4005 cat >conftest.$ac_ext <<_ACEOF
4006 /* confdefs.h.  */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h.  */
4011 #include <stdarg.h>
4012 #include <stdio.h>
4013 #include <sys/types.h>
4014 #include <sys/stat.h>
4015 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4016 struct buf { int x; };
4017 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4018 static char *e (p, i)
4019      char **p;
4020      int i;
4021 {
4022   return p[i];
4023 }
4024 static char *f (char * (*g) (char **, int), char **p, ...)
4025 {
4026   char *s;
4027   va_list v;
4028   va_start (v,p);
4029   s = g (p, va_arg (v,int));
4030   va_end (v);
4031   return s;
4032 }
4033
4034 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4035    function prototypes and stuff, but not '\xHH' hex character constants.
4036    These don't provoke an error unfortunately, instead are silently treated
4037    as 'x'.  The following induces an error, until -std is added to get
4038    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4039    array size at least.  It's necessary to write '\x00'==0 to get something
4040    that's true only with -std.  */
4041 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4042
4043 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4044    inside strings and character constants.  */
4045 #define FOO(x) 'x'
4046 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4047
4048 int test (int i, double x);
4049 struct s1 {int (*f) (int a);};
4050 struct s2 {int (*f) (double a);};
4051 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4052 int argc;
4053 char **argv;
4054 int
4055 main ()
4056 {
4057 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4058   ;
4059   return 0;
4060 }
4061 _ACEOF
4062 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4063         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4064 do
4065   CC="$ac_save_CC $ac_arg"
4066   rm -f conftest.$ac_objext
4067 if { (ac_try="$ac_compile"
4068 case "(($ac_try" in
4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070   *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4073 $as_echo "$ac_try_echo") >&5
4074   (eval "$ac_compile") 2>conftest.er1
4075   ac_status=$?
4076   grep -v '^ *+' conftest.er1 >conftest.err
4077   rm -f conftest.er1
4078   cat conftest.err >&5
4079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); } && {
4081          test -z "$ac_c_werror_flag" ||
4082          test ! -s conftest.err
4083        } && test -s conftest.$ac_objext; then
4084   ac_cv_prog_cc_c89=$ac_arg
4085 else
4086   $as_echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4088
4089
4090 fi
4091
4092 rm -f core conftest.err conftest.$ac_objext
4093   test "x$ac_cv_prog_cc_c89" != "xno" && break
4094 done
4095 rm -f conftest.$ac_ext
4096 CC=$ac_save_CC
4097
4098 fi
4099 # AC_CACHE_VAL
4100 case "x$ac_cv_prog_cc_c89" in
4101   x)
4102     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4103 $as_echo "none needed" >&6; } ;;
4104   xno)
4105     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4106 $as_echo "unsupported" >&6; } ;;
4107   *)
4108     CC="$CC $ac_cv_prog_cc_c89"
4109     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4110 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4111 esac
4112
4113
4114 ac_ext=c
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119
4120
4121
4122
4123
4124
4125
4126
4127     r="`eval echo '$'"CC"`"
4128     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
4129         true
4130     else
4131         ##STEPMAKE_WARN(cannot find . )
4132         false
4133     fi
4134
4135     if test $? -ne 0; then
4136
4137     eval ""=\"`eval echo \"'$'\" \"cc\"`\"
4138
4139         if test "" = "REQUIRED"; then
4140             command="echo ERROR: cc not found"
4141             # abort configure process here?
4142         else
4143             command="- echo cc not found"
4144         fi
4145         eval "CC"='$command'
4146         false
4147     else
4148         true
4149     fi
4150
4151     LD='$(CC)'
4152
4153
4154     # If -pipe requested, test if it works and add to CFLAGS.
4155     if test "$pipe_b" = yes; then
4156         save_cflags="$CFLAGS"
4157         CFLAGS=" -pipe $CFLAGS";
4158         { $as_echo "$as_me:$LINENO: checking whether compiler understands -pipe" >&5
4159 $as_echo_n "checking whether compiler understands -pipe... " >&6; }
4160 if test "${stepmake_cv_cflags_pipe+set}" = set; then
4161   $as_echo_n "(cached) " >&6
4162 else
4163
4164 cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h.  */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h.  */
4170 /* -pipe test */
4171 int
4172 main ()
4173 {
4174
4175   ;
4176   return 0;
4177 }
4178 _ACEOF
4179 rm -f conftest.$ac_objext
4180 if { (ac_try="$ac_compile"
4181 case "(($ac_try" in
4182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183   *) ac_try_echo=$ac_try;;
4184 esac
4185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186 $as_echo "$ac_try_echo") >&5
4187   (eval "$ac_compile") 2>conftest.er1
4188   ac_status=$?
4189   grep -v '^ *+' conftest.er1 >conftest.err
4190   rm -f conftest.er1
4191   cat conftest.err >&5
4192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); } && {
4194          test -z "$ac_c_werror_flag" ||
4195          test ! -s conftest.err
4196        } && test -s conftest.$ac_objext; then
4197   stepmake_cv_cflags_pipe=yes
4198 else
4199   $as_echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4201
4202         stepmake_cv_cflags_pipe=no
4203 fi
4204
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 fi
4207 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_cflags_pipe" >&5
4208 $as_echo "$stepmake_cv_cflags_pipe" >&6; }
4209         CFLAGS=$save_cflags
4210         if test $stepmake_cv_cflags_pipe = yes; then
4211             OPTIMIZE="$OPTIMIZE -pipe"
4212         fi
4213     fi
4214
4215     CFLAGS="$CFLAGS $OPTIMIZE"
4216     CPPFLAGS=${CPPFLAGS-""}
4217
4218     { $as_echo "$as_me:$LINENO: checking for IEEE-conformance compiler flags" >&5
4219 $as_echo_n "checking for IEEE-conformance compiler flags... " >&6; }
4220     save_cflags="$CFLAGS"
4221     case "$host" in
4222         alpha*-*-*)
4223                     { $as_echo "$as_me:$LINENO: result: -mieee" >&5
4224 $as_echo "-mieee" >&6; }
4225             CFLAGS=" -mieee $CFLAGS"
4226             ;;
4227         *)
4228             { $as_echo "$as_me:$LINENO: result: none" >&5
4229 $as_echo "none" >&6; }
4230             ;;
4231     esac
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241 # Extract the first word of "fc-list", so it can be a program name with args.
4242 set dummy fc-list; ac_word=$2
4243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 $as_echo_n "checking for $ac_word... " >&6; }
4245 if test "${ac_cv_prog_FCLIST+set}" = set; then
4246   $as_echo_n "(cached) " >&6
4247 else
4248   if test -n "$FCLIST"; then
4249   ac_cv_prog_FCLIST="$FCLIST" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254   IFS=$as_save_IFS
4255   test -z "$as_dir" && as_dir=.
4256   for ac_exec_ext in '' $ac_executable_extensions; do
4257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4258     ac_cv_prog_FCLIST="fc-list"
4259     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260     break 2
4261   fi
4262 done
4263 done
4264 IFS=$as_save_IFS
4265
4266 fi
4267 fi
4268 FCLIST=$ac_cv_prog_FCLIST
4269 if test -n "$FCLIST"; then
4270   { $as_echo "$as_me:$LINENO: result: $FCLIST" >&5
4271 $as_echo "$FCLIST" >&6; }
4272 else
4273   { $as_echo "$as_me:$LINENO: result: no" >&5
4274 $as_echo "no" >&6; }
4275 fi
4276
4277
4278 { $as_echo "$as_me:$LINENO: checking for TeX Gyre fonts OTF files" >&5
4279 $as_echo_n "checking for TeX Gyre fonts OTF files... " >&6; }
4280
4281
4282 if test "$TEXGYRE_DIR" = ""; then
4283   if test "$FCLIST" != ""; then
4284     TEXGYRE_FILE=`$FCLIST "TeX Gyre Schola:fontformat=CFF" file | head -n 1`
4285     if test "$TEXGYRE_FILE" != ""; then
4286       TEXGYRE_FILE=`echo $TEXGYRE_FILE | sed 's/\(:.*\)$//g'`
4287       TEXGYRE_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $TEXGYRE_FILE`
4288       TEXGYRE_DIR=`$as_dirname -- $TEXGYRE_FILE ||
4289 $as_expr X$TEXGYRE_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4290          X$TEXGYRE_FILE : 'X\(//\)[^/]' \| \
4291          X$TEXGYRE_FILE : 'X\(//\)$' \| \
4292          X$TEXGYRE_FILE : 'X\(/\)' \| . 2>/dev/null ||
4293 $as_echo X$TEXGYRE_FILE |
4294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4295             s//\1/
4296             q
4297           }
4298           /^X\(\/\/\)[^/].*/{
4299             s//\1/
4300             q
4301           }
4302           /^X\(\/\/\)$/{
4303             s//\1/
4304             q
4305           }
4306           /^X\(\/\).*/{
4307             s//\1/
4308             q
4309           }
4310           s/.*/./; q'`
4311     fi
4312   fi
4313 fi
4314 if test "$TEXGYRE_DIR" != "" ;  then
4315   for f in texgyreschola-regular.otf texgyreschola-italic.otf \
4316            texgyreschola-bold.otf texgyreschola-bolditalic.otf \
4317            texgyreheros-regular.otf texgyreheros-italic.otf \
4318            texgyreheros-bold.otf texgyreheros-bolditalic.otf \
4319            texgyrecursor-regular.otf texgyrecursor-italic.otf \
4320            texgyrecursor-bold.otf texgyrecursor-bolditalic.otf; do
4321     if test ! -f "$TEXGYRE_DIR/$f"; then
4322       MISSING_TEXGYRE_FILES="$MISSING_TEXGYRE_FILES $f"
4323     else
4324       TEXGYRE_FILES="$TEXGYRE_FILES $f"
4325     fi
4326   done
4327 fi
4328 if test "$TEXGYRE_DIR" = "" -o "$MISSING_TEXGYRE_FILES" != ""; then
4329   { $as_echo "$as_me:$LINENO: result: no" >&5
4330 $as_echo "no" >&6; }
4331
4332     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"TeX Gyre fonts OTF\"`\"
4333
4334   if test "$TEXGYRE_DIR" = ""; then
4335     if test "$FCLIST" = ""; then
4336
4337     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(install the fc-list utility from FontConfig, or use --with-texgyre-dir)'\"`\"
4338
4339     else
4340
4341     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""(make sure the fc-list utility can see them, e.g. 'sudo apt-get install fonts-texgyre', or use --with-texgyre-dir)"\"`\"
4342
4343     fi
4344   else
4345
4346     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(these files are missing: $MISSING_TEXGYRE_FILES)'\"`\"
4347
4348   fi
4349 else
4350   { $as_echo "$as_me:$LINENO: result: yes" >&5
4351 $as_echo "yes" >&6; }
4352 fi
4353 { $as_echo "$as_me:$LINENO: checking for URW++ OTF files" >&5
4354 $as_echo_n "checking for URW++ OTF files... " >&6; }
4355
4356
4357 if test "$URWOTF_DIR" = ""; then
4358   if test "$FCLIST" != ""; then
4359     URWOTF_FILE=`$FCLIST "C059:fontformat=CFF" file | head -n 1`
4360     if test "$URWOTF_FILE" != ""; then
4361       URWOTF_FILE=`echo $URWOTF_FILE | sed 's/\(:.*\)$//g'`
4362       URWOTF_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $URWOTF_FILE`
4363       URWOTF_DIR=`$as_dirname -- $URWOTF_FILE ||
4364 $as_expr X$URWOTF_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4365          X$URWOTF_FILE : 'X\(//\)[^/]' \| \
4366          X$URWOTF_FILE : 'X\(//\)$' \| \
4367          X$URWOTF_FILE : 'X\(/\)' \| . 2>/dev/null ||
4368 $as_echo X$URWOTF_FILE |
4369     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4370             s//\1/
4371             q
4372           }
4373           /^X\(\/\/\)[^/].*/{
4374             s//\1/
4375             q
4376           }
4377           /^X\(\/\/\)$/{
4378             s//\1/
4379             q
4380           }
4381           /^X\(\/\).*/{
4382             s//\1/
4383             q
4384           }
4385           s/.*/./; q'`
4386     fi
4387   fi
4388 fi
4389 if test "$URWOTF_DIR" != "" ;  then
4390   for f in C059-BdIta.otf C059-Bold.otf \
4391            C059-Italic.otf C059-Roman.otf \
4392            NimbusMonoPS-Bold.otf NimbusMonoPS-BoldItalic.otf \
4393            NimbusMonoPS-Italic.otf NimbusMonoPS-Regular.otf \
4394            NimbusSans-Bold.otf NimbusSans-BoldOblique.otf \
4395            NimbusSans-Oblique.otf NimbusSans-Regular.otf; do
4396     if test ! -f "$URWOTF_DIR/$f"; then
4397       MISSING_URWOTF_FILES="$MISSING_URWOTF_FILES $f"
4398     else
4399       URWOTF_FILES="$URWOTF_FILES $f"
4400     fi
4401   done
4402 fi
4403 if test "$URWOTF_DIR" = "" -o "$MISSING_URWOTF_FILES" != ""; then
4404   { $as_echo "$as_me:$LINENO: result: no" >&5
4405 $as_echo "no" >&6; }
4406
4407     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"URW++ OTF fonts\"`\"
4408
4409   if test "$URWOTF_DIR" = ""; then
4410     if test "$FCLIST" = ""; then
4411
4412     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"'(install the fc-list utility from FontConfig, or use --with-urwotf-dir)'\"`\"
4413
4414     else
4415
4416     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""(download OTF files from 'http://git.ghostscript.com/?p=urw-core35-fonts.git;a=commit;h=79bcdfb34fbce12b592cce389fa7a19da6b5b018' and put them under '~/.local/share/fonts' etc., or use --with-urwotf-dir)"\"`\"
4417
4418     fi
4419   else
4420
4421     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"'(these files are missing: $MISSING_URWOTF_FILES)'\"`\"
4422
4423   fi
4424 else
4425   { $as_echo "$as_me:$LINENO: result: yes" >&5
4426 $as_echo "yes" >&6; }
4427 fi
4428
4429 ac_ext=cpp
4430 ac_cpp='$CXXCPP $CPPFLAGS'
4431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4434
4435
4436
4437     { $as_echo "$as_me:$LINENO: checking for python" >&5
4438 $as_echo_n "checking for python... " >&6; }
4439     python="python"
4440     found="no"
4441     for r in $PYTHON python python3 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0; do
4442         exe=`
4443     ## which doesn't work in ash, if /usr/bin/which isn't installed
4444     ## type -p doesn't work in ash
4445     ## command -v doesn't work in zsh
4446     ## command -v "$r" 2>&1
4447     ## this test should work in ash, bash, pdksh (ksh), zsh
4448     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4449 `
4450         if ! $exe -V > /dev/null 2>&1 ; then
4451             continue
4452         fi
4453         ver=`
4454     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4455     ##
4456     ## ARG.
4457     ## Workaround for broken Debian gcc version string:
4458     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4459     ##
4460     ## -V: Workaround for python
4461
4462     #dnl
4463
4464     ## Assume and hunt for dotted version multiplet.
4465     ## use eval trickery, because we cannot use multi-level $() instead of ``
4466     ## for compatibility reasons.
4467
4468     ## grab the first version number in  --version output.
4469     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4470                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4471                 head -n 1 |
4472                 tr ' ' '\n' |
4473                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4474                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4475                 head -n 1\`\"
4476
4477     if test -z "$_ver"; then
4478         ## If empty, try date [fontforge]
4479         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
4480             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
4481             | head -n 1 \
4482             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4483     fi
4484     echo "$_ver"
4485     #dnl
4486 `
4487         num=`
4488     echo "$ver" | awk -F. '
4489     {
4490       if ($3) {three = $3}
4491       else {three = 0}
4492     }
4493     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4494 `
4495         req=`
4496     echo "2.4" | awk -F. '
4497     {
4498       if ($3) {three = $3}
4499       else {three = 0}
4500     }
4501     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4502 `
4503         sup=`
4504     echo "3.0" | awk -F. '
4505     {
4506       if ($3) {three = $3}
4507       else {three = 0}
4508     }
4509     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4510 `
4511         if test -n "2.4" && test "$num" -lt "$req"; then
4512             python="$r >= 2.4 (installed: $ver)"
4513             continue
4514         else
4515             if test -n "3.0" && test "$num" -ge "$sup"; then
4516                 python="$r < 3.0 (installed: $ver)"
4517                 continue
4518             else
4519                 python=$r
4520                 found=$r
4521                 break
4522             fi
4523         fi
4524     done
4525     { $as_echo "$as_me:$LINENO: result: $found" >&5
4526 $as_echo "$found" >&6; }
4527     if test "$found" != "no"; then
4528         { $as_echo "$as_me:$LINENO: checking $python version" >&5
4529 $as_echo_n "checking $python version... " >&6; }
4530         { $as_echo "$as_me:$LINENO: result: $ver" >&5
4531 $as_echo "$ver" >&6; }
4532         PYTHON=$found
4533     else
4534
4535     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
4536
4537     fi
4538     # Extract the first word of "$PYTHON", so it can be a program name with args.
4539 set dummy $PYTHON; ac_word=$2
4540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if test "${ac_cv_path_PYTHON+set}" = set; then
4543   $as_echo_n "(cached) " >&6
4544 else
4545   case $PYTHON in
4546   [\\/]* | ?:[\\/]*)
4547   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4548   ;;
4549   *)
4550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH
4552 do
4553   IFS=$as_save_IFS
4554   test -z "$as_dir" && as_dir=.
4555   for ac_exec_ext in '' $ac_executable_extensions; do
4556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4557     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4558     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559     break 2
4560   fi
4561 done
4562 done
4563 IFS=$as_save_IFS
4564
4565   ;;
4566 esac
4567 fi
4568 PYTHON=$ac_cv_path_PYTHON
4569 if test -n "$PYTHON"; then
4570   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
4571 $as_echo "$PYTHON" >&6; }
4572 else
4573   { $as_echo "$as_me:$LINENO: result: no" >&5
4574 $as_echo "no" >&6; }
4575 fi
4576
4577
4578
4579
4580 # this checks if we have GNU C by compiling a program with
4581 # __GNUC__, but that macro now unofficially means "the compiler
4582 # supports the GNU C extensions" -- the intel C compiler and clang
4583 # both support __GNUC__!
4584 ac_ext=cpp
4585 ac_cpp='$CXXCPP $CPPFLAGS'
4586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4589 if test -z "$CXX"; then
4590   if test -n "$CCC"; then
4591     CXX=$CCC
4592   else
4593     if test -n "$ac_tool_prefix"; then
4594   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4595   do
4596     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if test "${ac_cv_prog_CXX+set}" = set; then
4601   $as_echo_n "(cached) " >&6
4602 else
4603   if test -n "$CXX"; then
4604   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4608 do
4609   IFS=$as_save_IFS
4610   test -z "$as_dir" && as_dir=.
4611   for ac_exec_ext in '' $ac_executable_extensions; do
4612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4613     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4614     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615     break 2
4616   fi
4617 done
4618 done
4619 IFS=$as_save_IFS
4620
4621 fi
4622 fi
4623 CXX=$ac_cv_prog_CXX
4624 if test -n "$CXX"; then
4625   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4626 $as_echo "$CXX" >&6; }
4627 else
4628   { $as_echo "$as_me:$LINENO: result: no" >&5
4629 $as_echo "no" >&6; }
4630 fi
4631
4632
4633     test -n "$CXX" && break
4634   done
4635 fi
4636 if test -z "$CXX"; then
4637   ac_ct_CXX=$CXX
4638   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4639 do
4640   # Extract the first word of "$ac_prog", so it can be a program name with args.
4641 set dummy $ac_prog; ac_word=$2
4642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4645   $as_echo_n "(cached) " >&6
4646 else
4647   if test -n "$ac_ct_CXX"; then
4648   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653   IFS=$as_save_IFS
4654   test -z "$as_dir" && as_dir=.
4655   for ac_exec_ext in '' $ac_executable_extensions; do
4656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657     ac_cv_prog_ac_ct_CXX="$ac_prog"
4658     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659     break 2
4660   fi
4661 done
4662 done
4663 IFS=$as_save_IFS
4664
4665 fi
4666 fi
4667 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4668 if test -n "$ac_ct_CXX"; then
4669   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4670 $as_echo "$ac_ct_CXX" >&6; }
4671 else
4672   { $as_echo "$as_me:$LINENO: result: no" >&5
4673 $as_echo "no" >&6; }
4674 fi
4675
4676
4677   test -n "$ac_ct_CXX" && break
4678 done
4679
4680   if test "x$ac_ct_CXX" = x; then
4681     CXX="g++"
4682   else
4683     case $cross_compiling:$ac_tool_warned in
4684 yes:)
4685 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4687 ac_tool_warned=yes ;;
4688 esac
4689     CXX=$ac_ct_CXX
4690   fi
4691 fi
4692
4693   fi
4694 fi
4695 # Provide some information about the compiler.
4696 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4697 set X $ac_compile
4698 ac_compiler=$2
4699 { (ac_try="$ac_compiler --version >&5"
4700 case "(($ac_try" in
4701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702   *) ac_try_echo=$ac_try;;
4703 esac
4704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4705 $as_echo "$ac_try_echo") >&5
4706   (eval "$ac_compiler --version >&5") 2>&5
4707   ac_status=$?
4708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709   (exit $ac_status); }
4710 { (ac_try="$ac_compiler -v >&5"
4711 case "(($ac_try" in
4712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713   *) ac_try_echo=$ac_try;;
4714 esac
4715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4716 $as_echo "$ac_try_echo") >&5
4717   (eval "$ac_compiler -v >&5") 2>&5
4718   ac_status=$?
4719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); }
4721 { (ac_try="$ac_compiler -V >&5"
4722 case "(($ac_try" in
4723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724   *) ac_try_echo=$ac_try;;
4725 esac
4726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4727 $as_echo "$ac_try_echo") >&5
4728   (eval "$ac_compiler -V >&5") 2>&5
4729   ac_status=$?
4730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731   (exit $ac_status); }
4732
4733 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4734 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4735 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4736   $as_echo_n "(cached) " >&6
4737 else
4738   cat >conftest.$ac_ext <<_ACEOF
4739 /* confdefs.h.  */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h.  */
4744
4745 int
4746 main ()
4747 {
4748 #ifndef __GNUC__
4749        choke me
4750 #endif
4751
4752   ;
4753   return 0;
4754 }
4755 _ACEOF
4756 rm -f conftest.$ac_objext
4757 if { (ac_try="$ac_compile"
4758 case "(($ac_try" in
4759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760   *) ac_try_echo=$ac_try;;
4761 esac
4762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4763 $as_echo "$ac_try_echo") >&5
4764   (eval "$ac_compile") 2>conftest.er1
4765   ac_status=$?
4766   grep -v '^ *+' conftest.er1 >conftest.err
4767   rm -f conftest.er1
4768   cat conftest.err >&5
4769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); } && {
4771          test -z "$ac_cxx_werror_flag" ||
4772          test ! -s conftest.err
4773        } && test -s conftest.$ac_objext; then
4774   ac_compiler_gnu=yes
4775 else
4776   $as_echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4778
4779         ac_compiler_gnu=no
4780 fi
4781
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4784
4785 fi
4786 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4787 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4788 if test $ac_compiler_gnu = yes; then
4789   GXX=yes
4790 else
4791   GXX=
4792 fi
4793 ac_test_CXXFLAGS=${CXXFLAGS+set}
4794 ac_save_CXXFLAGS=$CXXFLAGS
4795 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4796 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4797 if test "${ac_cv_prog_cxx_g+set}" = set; then
4798   $as_echo_n "(cached) " >&6
4799 else
4800   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4801    ac_cxx_werror_flag=yes
4802    ac_cv_prog_cxx_g=no
4803    CXXFLAGS="-g"
4804    cat >conftest.$ac_ext <<_ACEOF
4805 /* confdefs.h.  */
4806 _ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h.  */
4810
4811 int
4812 main ()
4813 {
4814
4815   ;
4816   return 0;
4817 }
4818 _ACEOF
4819 rm -f conftest.$ac_objext
4820 if { (ac_try="$ac_compile"
4821 case "(($ac_try" in
4822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823   *) ac_try_echo=$ac_try;;
4824 esac
4825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4826 $as_echo "$ac_try_echo") >&5
4827   (eval "$ac_compile") 2>conftest.er1
4828   ac_status=$?
4829   grep -v '^ *+' conftest.er1 >conftest.err
4830   rm -f conftest.er1
4831   cat conftest.err >&5
4832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); } && {
4834          test -z "$ac_cxx_werror_flag" ||
4835          test ! -s conftest.err
4836        } && test -s conftest.$ac_objext; then
4837   ac_cv_prog_cxx_g=yes
4838 else
4839   $as_echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4841
4842         CXXFLAGS=""
4843       cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h.  */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h.  */
4849
4850 int
4851 main ()
4852 {
4853
4854   ;
4855   return 0;
4856 }
4857 _ACEOF
4858 rm -f conftest.$ac_objext
4859 if { (ac_try="$ac_compile"
4860 case "(($ac_try" in
4861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862   *) ac_try_echo=$ac_try;;
4863 esac
4864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4865 $as_echo "$ac_try_echo") >&5
4866   (eval "$ac_compile") 2>conftest.er1
4867   ac_status=$?
4868   grep -v '^ *+' conftest.er1 >conftest.err
4869   rm -f conftest.er1
4870   cat conftest.err >&5
4871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872   (exit $ac_status); } && {
4873          test -z "$ac_cxx_werror_flag" ||
4874          test ! -s conftest.err
4875        } && test -s conftest.$ac_objext; then
4876   :
4877 else
4878   $as_echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4880
4881         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4882          CXXFLAGS="-g"
4883          cat >conftest.$ac_ext <<_ACEOF
4884 /* confdefs.h.  */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h.  */
4889
4890 int
4891 main ()
4892 {
4893
4894   ;
4895   return 0;
4896 }
4897 _ACEOF
4898 rm -f conftest.$ac_objext
4899 if { (ac_try="$ac_compile"
4900 case "(($ac_try" in
4901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902   *) ac_try_echo=$ac_try;;
4903 esac
4904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4905 $as_echo "$ac_try_echo") >&5
4906   (eval "$ac_compile") 2>conftest.er1
4907   ac_status=$?
4908   grep -v '^ *+' conftest.er1 >conftest.err
4909   rm -f conftest.er1
4910   cat conftest.err >&5
4911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912   (exit $ac_status); } && {
4913          test -z "$ac_cxx_werror_flag" ||
4914          test ! -s conftest.err
4915        } && test -s conftest.$ac_objext; then
4916   ac_cv_prog_cxx_g=yes
4917 else
4918   $as_echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4920
4921
4922 fi
4923
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925 fi
4926
4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928 fi
4929
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4932 fi
4933 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4934 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4935 if test "$ac_test_CXXFLAGS" = set; then
4936   CXXFLAGS=$ac_save_CXXFLAGS
4937 elif test $ac_cv_prog_cxx_g = yes; then
4938   if test "$GXX" = yes; then
4939     CXXFLAGS="-g -O2"
4940   else
4941     CXXFLAGS="-g"
4942   fi
4943 else
4944   if test "$GXX" = yes; then
4945     CXXFLAGS="-O2"
4946   else
4947     CXXFLAGS=
4948   fi
4949 fi
4950 ac_ext=cpp
4951 ac_cpp='$CXXCPP $CPPFLAGS'
4952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4955
4956
4957 ac_ext=cpp
4958 ac_cpp='$CXXCPP $CPPFLAGS'
4959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4962 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4963 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4964 if test -z "$CXXCPP"; then
4965   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4966   $as_echo_n "(cached) " >&6
4967 else
4968       # Double quotes because CXXCPP needs to be expanded
4969     for CXXCPP in "$CXX -E" "/lib/cpp"
4970     do
4971       ac_preproc_ok=false
4972 for ac_cxx_preproc_warn_flag in '' yes
4973 do
4974   # Use a header file that comes with gcc, so configuring glibc
4975   # with a fresh cross-compiler works.
4976   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4977   # <limits.h> exists even on freestanding compilers.
4978   # On the NeXT, cc -E runs the code through the compiler's parser,
4979   # not just through cpp. "Syntax error" is here to catch this case.
4980   cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h.  */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h.  */
4986 #ifdef __STDC__
4987 # include <limits.h>
4988 #else
4989 # include <assert.h>
4990 #endif
4991                      Syntax error
4992 _ACEOF
4993 if { (ac_try="$ac_cpp conftest.$ac_ext"
4994 case "(($ac_try" in
4995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4996   *) ac_try_echo=$ac_try;;
4997 esac
4998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4999 $as_echo "$ac_try_echo") >&5
5000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5001   ac_status=$?
5002   grep -v '^ *+' conftest.er1 >conftest.err
5003   rm -f conftest.er1
5004   cat conftest.err >&5
5005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006   (exit $ac_status); } >/dev/null && {
5007          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5008          test ! -s conftest.err
5009        }; then
5010   :
5011 else
5012   $as_echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5014
5015   # Broken: fails on valid input.
5016 continue
5017 fi
5018
5019 rm -f conftest.err conftest.$ac_ext
5020
5021   # OK, works on sane cases.  Now check whether nonexistent headers
5022   # can be detected and how.
5023   cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h.  */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h.  */
5029 #include <ac_nonexistent.h>
5030 _ACEOF
5031 if { (ac_try="$ac_cpp conftest.$ac_ext"
5032 case "(($ac_try" in
5033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034   *) ac_try_echo=$ac_try;;
5035 esac
5036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5037 $as_echo "$ac_try_echo") >&5
5038   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5039   ac_status=$?
5040   grep -v '^ *+' conftest.er1 >conftest.err
5041   rm -f conftest.er1
5042   cat conftest.err >&5
5043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); } >/dev/null && {
5045          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5046          test ! -s conftest.err
5047        }; then
5048   # Broken: success on invalid input.
5049 continue
5050 else
5051   $as_echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5053
5054   # Passes both tests.
5055 ac_preproc_ok=:
5056 break
5057 fi
5058
5059 rm -f conftest.err conftest.$ac_ext
5060
5061 done
5062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5063 rm -f conftest.err conftest.$ac_ext
5064 if $ac_preproc_ok; then
5065   break
5066 fi
5067
5068     done
5069     ac_cv_prog_CXXCPP=$CXXCPP
5070
5071 fi
5072   CXXCPP=$ac_cv_prog_CXXCPP
5073 else
5074   ac_cv_prog_CXXCPP=$CXXCPP
5075 fi
5076 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5077 $as_echo "$CXXCPP" >&6; }
5078 ac_preproc_ok=false
5079 for ac_cxx_preproc_warn_flag in '' yes
5080 do
5081   # Use a header file that comes with gcc, so configuring glibc
5082   # with a fresh cross-compiler works.
5083   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084   # <limits.h> exists even on freestanding compilers.
5085   # On the NeXT, cc -E runs the code through the compiler's parser,
5086   # not just through cpp. "Syntax error" is here to catch this case.
5087   cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h.  */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h.  */
5093 #ifdef __STDC__
5094 # include <limits.h>
5095 #else
5096 # include <assert.h>
5097 #endif
5098                      Syntax error
5099 _ACEOF
5100 if { (ac_try="$ac_cpp conftest.$ac_ext"
5101 case "(($ac_try" in
5102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103   *) ac_try_echo=$ac_try;;
5104 esac
5105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5106 $as_echo "$ac_try_echo") >&5
5107   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5108   ac_status=$?
5109   grep -v '^ *+' conftest.er1 >conftest.err
5110   rm -f conftest.er1
5111   cat conftest.err >&5
5112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113   (exit $ac_status); } >/dev/null && {
5114          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5115          test ! -s conftest.err
5116        }; then
5117   :
5118 else
5119   $as_echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5121
5122   # Broken: fails on valid input.
5123 continue
5124 fi
5125
5126 rm -f conftest.err conftest.$ac_ext
5127
5128   # OK, works on sane cases.  Now check whether nonexistent headers
5129   # can be detected and how.
5130   cat >conftest.$ac_ext <<_ACEOF
5131 /* confdefs.h.  */
5132 _ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h.  */
5136 #include <ac_nonexistent.h>
5137 _ACEOF
5138 if { (ac_try="$ac_cpp conftest.$ac_ext"
5139 case "(($ac_try" in
5140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141   *) ac_try_echo=$ac_try;;
5142 esac
5143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5144 $as_echo "$ac_try_echo") >&5
5145   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5146   ac_status=$?
5147   grep -v '^ *+' conftest.er1 >conftest.err
5148   rm -f conftest.er1
5149   cat conftest.err >&5
5150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151   (exit $ac_status); } >/dev/null && {
5152          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5153          test ! -s conftest.err
5154        }; then
5155   # Broken: success on invalid input.
5156 continue
5157 else
5158   $as_echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5160
5161   # Passes both tests.
5162 ac_preproc_ok=:
5163 break
5164 fi
5165
5166 rm -f conftest.err conftest.$ac_ext
5167
5168 done
5169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5170 rm -f conftest.err conftest.$ac_ext
5171 if $ac_preproc_ok; then
5172   :
5173 else
5174   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5176 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5177 See \`config.log' for more details." >&5
5178 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5179 See \`config.log' for more details." >&2;}
5180    { (exit 1); exit 1; }; }; }
5181 fi
5182
5183 ac_ext=cpp
5184 ac_cpp='$CXXCPP $CPPFLAGS'
5185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5188
5189
5190 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5191 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5192 if test "${ac_cv_path_GREP+set}" = set; then
5193   $as_echo_n "(cached) " >&6
5194 else
5195   if test -z "$GREP"; then
5196   ac_path_GREP_found=false
5197   # Loop through the user's path and test for each of PROGNAME-LIST
5198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5200 do
5201   IFS=$as_save_IFS
5202   test -z "$as_dir" && as_dir=.
5203   for ac_prog in grep ggrep; do
5204     for ac_exec_ext in '' $ac_executable_extensions; do
5205       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5206       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5207 # Check for GNU ac_path_GREP and select it if it is found.
5208   # Check for GNU $ac_path_GREP
5209 case `"$ac_path_GREP" --version 2>&1` in
5210 *GNU*)
5211   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5212 *)
5213   ac_count=0
5214   $as_echo_n 0123456789 >"conftest.in"
5215   while :
5216   do
5217     cat "conftest.in" "conftest.in" >"conftest.tmp"
5218     mv "conftest.tmp" "conftest.in"
5219     cp "conftest.in" "conftest.nl"
5220     $as_echo 'GREP' >> "conftest.nl"
5221     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5222     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5223     ac_count=`expr $ac_count + 1`
5224     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5225       # Best one so far, save it but keep looking for a better one
5226       ac_cv_path_GREP="$ac_path_GREP"
5227       ac_path_GREP_max=$ac_count
5228     fi
5229     # 10*(2^10) chars as input seems more than enough
5230     test $ac_count -gt 10 && break
5231   done
5232   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5233 esac
5234
5235       $ac_path_GREP_found && break 3
5236     done
5237   done
5238 done
5239 IFS=$as_save_IFS
5240   if test -z "$ac_cv_path_GREP"; then
5241     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5242 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5243    { (exit 1); exit 1; }; }
5244   fi
5245 else
5246   ac_cv_path_GREP=$GREP
5247 fi
5248
5249 fi
5250 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5251 $as_echo "$ac_cv_path_GREP" >&6; }
5252  GREP="$ac_cv_path_GREP"
5253
5254
5255 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5256 $as_echo_n "checking for egrep... " >&6; }
5257 if test "${ac_cv_path_EGREP+set}" = set; then
5258   $as_echo_n "(cached) " >&6
5259 else
5260   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5261    then ac_cv_path_EGREP="$GREP -E"
5262    else
5263      if test -z "$EGREP"; then
5264   ac_path_EGREP_found=false
5265   # Loop through the user's path and test for each of PROGNAME-LIST
5266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5268 do
5269   IFS=$as_save_IFS
5270   test -z "$as_dir" && as_dir=.
5271   for ac_prog in egrep; do
5272     for ac_exec_ext in '' $ac_executable_extensions; do
5273       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5274       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5275 # Check for GNU ac_path_EGREP and select it if it is found.
5276   # Check for GNU $ac_path_EGREP
5277 case `"$ac_path_EGREP" --version 2>&1` in
5278 *GNU*)
5279   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5280 *)
5281   ac_count=0
5282   $as_echo_n 0123456789 >"conftest.in"
5283   while :
5284   do
5285     cat "conftest.in" "conftest.in" >"conftest.tmp"
5286     mv "conftest.tmp" "conftest.in"
5287     cp "conftest.in" "conftest.nl"
5288     $as_echo 'EGREP' >> "conftest.nl"
5289     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5290     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5291     ac_count=`expr $ac_count + 1`
5292     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5293       # Best one so far, save it but keep looking for a better one
5294       ac_cv_path_EGREP="$ac_path_EGREP"
5295       ac_path_EGREP_max=$ac_count
5296     fi
5297     # 10*(2^10) chars as input seems more than enough
5298     test $ac_count -gt 10 && break
5299   done
5300   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5301 esac
5302
5303       $ac_path_EGREP_found && break 3
5304     done
5305   done
5306 done
5307 IFS=$as_save_IFS
5308   if test -z "$ac_cv_path_EGREP"; then
5309     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5310 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5311    { (exit 1); exit 1; }; }
5312   fi
5313 else
5314   ac_cv_path_EGREP=$EGREP
5315 fi
5316
5317    fi
5318 fi
5319 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5320 $as_echo "$ac_cv_path_EGREP" >&6; }
5321  EGREP="$ac_cv_path_EGREP"
5322
5323
5324
5325
5326     cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h.  */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h.  */
5332 #ifdef __clang__
5333        yes
5334        #endif
5335
5336 _ACEOF
5337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5338   $EGREP "yes" >/dev/null 2>&1; then
5339   HAS_CLANG=yes
5340 else
5341   HAS_CLANG=no
5342 fi
5343 rm -f conftest*
5344
5345
5346     if test "$HAS_CLANG" = "no"; then
5347         if test "$GCC" = "yes"; then
5348
5349     r="`eval echo '$'"CC"`"
5350     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5351 $as_echo_n "checking $r version... " >&6; }
5352     exe=`
5353     ## which doesn't work in ash, if /usr/bin/which isn't installed
5354     ## type -p doesn't work in ash
5355     ## command -v doesn't work in zsh
5356     ## command -v "$r" 2>&1
5357     ## this test should work in ash, bash, pdksh (ksh), zsh
5358     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5359 `
5360     if test -n ""; then
5361         ver=""
5362     else
5363         ver=`
5364     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5365     ##
5366     ## ARG.
5367     ## Workaround for broken Debian gcc version string:
5368     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5369     ##
5370     ## -V: Workaround for python
5371
5372     #dnl
5373
5374     ## Assume and hunt for dotted version multiplet.
5375     ## use eval trickery, because we cannot use multi-level $() instead of ``
5376     ## for compatibility reasons.
5377
5378     ## grab the first version number in  --version output.
5379     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5380                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5381                 head -n 1 |
5382                 tr ' ' '\n' |
5383                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5384                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5385                 head -n 1\`\"
5386
5387     if test -z "$_ver"; then
5388         ## If empty, try date [fontforge]
5389         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
5390             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
5391             | head -n 1 \
5392             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5393     fi
5394     echo "$_ver"
5395     #dnl
5396 `
5397     fi
5398     num=`
5399     echo "$ver" | awk -F. '
5400     {
5401       if ($3) {three = $3}
5402       else {three = 0}
5403     }
5404     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5405 `
5406     req=`
5407     echo "3.4" | awk -F. '
5408     {
5409       if ($3) {three = $3}
5410       else {three = 0}
5411     }
5412     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5413 `
5414     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5415 $as_echo "$ver" >&6; }
5416     if test "$num" -lt "$req"; then
5417
5418     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5419
5420     fi
5421     vervar="`echo CC | tr 'a-z' 'A-Z'`_VERSION"
5422     eval `echo $vervar=$num`
5423 ##    AC_SUBST(`eval echo $vervar`)
5424
5425         else
5426             warn="$CC (Please install *GNU* cc)"
5427
5428     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5429
5430         fi
5431     fi
5432     # no else, we're fine with any clang
5433
5434
5435
5436     ac_ext=cpp
5437 ac_cpp='$CXXCPP $CPPFLAGS'
5438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5441 if test -z "$CXX"; then
5442   if test -n "$CCC"; then
5443     CXX=$CCC
5444   else
5445     if test -n "$ac_tool_prefix"; then
5446   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5447   do
5448     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5450 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if test "${ac_cv_prog_CXX+set}" = set; then
5453   $as_echo_n "(cached) " >&6
5454 else
5455   if test -n "$CXX"; then
5456   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5457 else
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5460 do
5461   IFS=$as_save_IFS
5462   test -z "$as_dir" && as_dir=.
5463   for ac_exec_ext in '' $ac_executable_extensions; do
5464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5466     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467     break 2
5468   fi
5469 done
5470 done
5471 IFS=$as_save_IFS
5472
5473 fi
5474 fi
5475 CXX=$ac_cv_prog_CXX
5476 if test -n "$CXX"; then
5477   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5478 $as_echo "$CXX" >&6; }
5479 else
5480   { $as_echo "$as_me:$LINENO: result: no" >&5
5481 $as_echo "no" >&6; }
5482 fi
5483
5484
5485     test -n "$CXX" && break
5486   done
5487 fi
5488 if test -z "$CXX"; then
5489   ac_ct_CXX=$CXX
5490   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5491 do
5492   # Extract the first word of "$ac_prog", so it can be a program name with args.
5493 set dummy $ac_prog; ac_word=$2
5494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5497   $as_echo_n "(cached) " >&6
5498 else
5499   if test -n "$ac_ct_CXX"; then
5500   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505   IFS=$as_save_IFS
5506   test -z "$as_dir" && as_dir=.
5507   for ac_exec_ext in '' $ac_executable_extensions; do
5508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5509     ac_cv_prog_ac_ct_CXX="$ac_prog"
5510     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5511     break 2
5512   fi
5513 done
5514 done
5515 IFS=$as_save_IFS
5516
5517 fi
5518 fi
5519 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5520 if test -n "$ac_ct_CXX"; then
5521   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5522 $as_echo "$ac_ct_CXX" >&6; }
5523 else
5524   { $as_echo "$as_me:$LINENO: result: no" >&5
5525 $as_echo "no" >&6; }
5526 fi
5527
5528
5529   test -n "$ac_ct_CXX" && break
5530 done
5531
5532   if test "x$ac_ct_CXX" = x; then
5533     CXX="g++"
5534   else
5535     case $cross_compiling:$ac_tool_warned in
5536 yes:)
5537 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5539 ac_tool_warned=yes ;;
5540 esac
5541     CXX=$ac_ct_CXX
5542   fi
5543 fi
5544
5545   fi
5546 fi
5547 # Provide some information about the compiler.
5548 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5549 set X $ac_compile
5550 ac_compiler=$2
5551 { (ac_try="$ac_compiler --version >&5"
5552 case "(($ac_try" in
5553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554   *) ac_try_echo=$ac_try;;
5555 esac
5556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5557 $as_echo "$ac_try_echo") >&5
5558   (eval "$ac_compiler --version >&5") 2>&5
5559   ac_status=$?
5560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); }
5562 { (ac_try="$ac_compiler -v >&5"
5563 case "(($ac_try" in
5564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565   *) ac_try_echo=$ac_try;;
5566 esac
5567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5568 $as_echo "$ac_try_echo") >&5
5569   (eval "$ac_compiler -v >&5") 2>&5
5570   ac_status=$?
5571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572   (exit $ac_status); }
5573 { (ac_try="$ac_compiler -V >&5"
5574 case "(($ac_try" in
5575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576   *) ac_try_echo=$ac_try;;
5577 esac
5578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5579 $as_echo "$ac_try_echo") >&5
5580   (eval "$ac_compiler -V >&5") 2>&5
5581   ac_status=$?
5582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); }
5584
5585 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5586 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5587 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5588   $as_echo_n "(cached) " >&6
5589 else
5590   cat >conftest.$ac_ext <<_ACEOF
5591 /* confdefs.h.  */
5592 _ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h.  */
5596
5597 int
5598 main ()
5599 {
5600 #ifndef __GNUC__
5601        choke me
5602 #endif
5603
5604   ;
5605   return 0;
5606 }
5607 _ACEOF
5608 rm -f conftest.$ac_objext
5609 if { (ac_try="$ac_compile"
5610 case "(($ac_try" in
5611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612   *) ac_try_echo=$ac_try;;
5613 esac
5614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5615 $as_echo "$ac_try_echo") >&5
5616   (eval "$ac_compile") 2>conftest.er1
5617   ac_status=$?
5618   grep -v '^ *+' conftest.er1 >conftest.err
5619   rm -f conftest.er1
5620   cat conftest.err >&5
5621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); } && {
5623          test -z "$ac_cxx_werror_flag" ||
5624          test ! -s conftest.err
5625        } && test -s conftest.$ac_objext; then
5626   ac_compiler_gnu=yes
5627 else
5628   $as_echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5630
5631         ac_compiler_gnu=no
5632 fi
5633
5634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5636
5637 fi
5638 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5639 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5640 if test $ac_compiler_gnu = yes; then
5641   GXX=yes
5642 else
5643   GXX=
5644 fi
5645 ac_test_CXXFLAGS=${CXXFLAGS+set}
5646 ac_save_CXXFLAGS=$CXXFLAGS
5647 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5648 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5649 if test "${ac_cv_prog_cxx_g+set}" = set; then
5650   $as_echo_n "(cached) " >&6
5651 else
5652   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5653    ac_cxx_werror_flag=yes
5654    ac_cv_prog_cxx_g=no
5655    CXXFLAGS="-g"
5656    cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h.  */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h.  */
5662
5663 int
5664 main ()
5665 {
5666
5667   ;
5668   return 0;
5669 }
5670 _ACEOF
5671 rm -f conftest.$ac_objext
5672 if { (ac_try="$ac_compile"
5673 case "(($ac_try" in
5674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675   *) ac_try_echo=$ac_try;;
5676 esac
5677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5678 $as_echo "$ac_try_echo") >&5
5679   (eval "$ac_compile") 2>conftest.er1
5680   ac_status=$?
5681   grep -v '^ *+' conftest.er1 >conftest.err
5682   rm -f conftest.er1
5683   cat conftest.err >&5
5684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); } && {
5686          test -z "$ac_cxx_werror_flag" ||
5687          test ! -s conftest.err
5688        } && test -s conftest.$ac_objext; then
5689   ac_cv_prog_cxx_g=yes
5690 else
5691   $as_echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5693
5694         CXXFLAGS=""
5695       cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h.  */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h.  */
5701
5702 int
5703 main ()
5704 {
5705
5706   ;
5707   return 0;
5708 }
5709 _ACEOF
5710 rm -f conftest.$ac_objext
5711 if { (ac_try="$ac_compile"
5712 case "(($ac_try" in
5713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714   *) ac_try_echo=$ac_try;;
5715 esac
5716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5717 $as_echo "$ac_try_echo") >&5
5718   (eval "$ac_compile") 2>conftest.er1
5719   ac_status=$?
5720   grep -v '^ *+' conftest.er1 >conftest.err
5721   rm -f conftest.er1
5722   cat conftest.err >&5
5723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724   (exit $ac_status); } && {
5725          test -z "$ac_cxx_werror_flag" ||
5726          test ! -s conftest.err
5727        } && test -s conftest.$ac_objext; then
5728   :
5729 else
5730   $as_echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5732
5733         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5734          CXXFLAGS="-g"
5735          cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h.  */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h.  */
5741
5742 int
5743 main ()
5744 {
5745
5746   ;
5747   return 0;
5748 }
5749 _ACEOF
5750 rm -f conftest.$ac_objext
5751 if { (ac_try="$ac_compile"
5752 case "(($ac_try" in
5753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5754   *) ac_try_echo=$ac_try;;
5755 esac
5756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5757 $as_echo "$ac_try_echo") >&5
5758   (eval "$ac_compile") 2>conftest.er1
5759   ac_status=$?
5760   grep -v '^ *+' conftest.er1 >conftest.err
5761   rm -f conftest.er1
5762   cat conftest.err >&5
5763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); } && {
5765          test -z "$ac_cxx_werror_flag" ||
5766          test ! -s conftest.err
5767        } && test -s conftest.$ac_objext; then
5768   ac_cv_prog_cxx_g=yes
5769 else
5770   $as_echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773
5774 fi
5775
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 fi
5778
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 fi
5781
5782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5784 fi
5785 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5786 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5787 if test "$ac_test_CXXFLAGS" = set; then
5788   CXXFLAGS=$ac_save_CXXFLAGS
5789 elif test $ac_cv_prog_cxx_g = yes; then
5790   if test "$GXX" = yes; then
5791     CXXFLAGS="-g -O2"
5792   else
5793     CXXFLAGS="-g"
5794   fi
5795 else
5796   if test "$GXX" = yes; then
5797     CXXFLAGS="-O2"
5798   else
5799     CXXFLAGS=
5800   fi
5801 fi
5802 ac_ext=cpp
5803 ac_cpp='$CXXCPP $CPPFLAGS'
5804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5807
5808
5809
5810     r="`eval echo '$'"CXX"`"
5811     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
5812         true
5813     else
5814         ##STEPMAKE_WARN(cannot find . )
5815         false
5816     fi
5817
5818     if test $? -ne 0; then
5819
5820     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
5821
5822         if test "REQUIRED" = "REQUIRED"; then
5823             command="echo ERROR: c++ not found"
5824             # abort configure process here?
5825         else
5826             command="- echo c++ not found"
5827         fi
5828         eval "CXX"='$command'
5829         false
5830     else
5831         true
5832     fi
5833
5834
5835     CXXFLAGS="$CXXFLAGS $OPTIMIZE"
5836
5837
5838
5839
5840
5841
5842     cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h.  */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h.  */
5848 #ifdef __clang__
5849        yes
5850        #endif
5851
5852 _ACEOF
5853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5854   $EGREP "yes" >/dev/null 2>&1; then
5855   HAS_CLANG=yes
5856 else
5857   HAS_CLANG=no
5858 fi
5859 rm -f conftest*
5860
5861
5862     if test "$HAS_CLANG" = "no"; then
5863         if test "$GXX" = "yes"; then
5864
5865     r="`eval echo '$'"CXX"`"
5866     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5867 $as_echo_n "checking $r version... " >&6; }
5868     exe=`
5869     ## which doesn't work in ash, if /usr/bin/which isn't installed
5870     ## type -p doesn't work in ash
5871     ## command -v doesn't work in zsh
5872     ## command -v "$r" 2>&1
5873     ## this test should work in ash, bash, pdksh (ksh), zsh
5874     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5875 `
5876     if test -n ""; then
5877         ver=""
5878     else
5879         ver=`
5880     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5881     ##
5882     ## ARG.
5883     ## Workaround for broken Debian gcc version string:
5884     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5885     ##
5886     ## -V: Workaround for python
5887
5888     #dnl
5889
5890     ## Assume and hunt for dotted version multiplet.
5891     ## use eval trickery, because we cannot use multi-level $() instead of ``
5892     ## for compatibility reasons.
5893
5894     ## grab the first version number in  --version output.
5895     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5896                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5897                 head -n 1 |
5898                 tr ' ' '\n' |
5899                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5900                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5901                 head -n 1\`\"
5902
5903     if test -z "$_ver"; then
5904         ## If empty, try date [fontforge]
5905         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
5906             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
5907             | head -n 1 \
5908             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5909     fi
5910     echo "$_ver"
5911     #dnl
5912 `
5913     fi
5914     num=`
5915     echo "$ver" | awk -F. '
5916     {
5917       if ($3) {three = $3}
5918       else {three = 0}
5919     }
5920     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5921 `
5922     req=`
5923     echo "3.4" | awk -F. '
5924     {
5925       if ($3) {three = $3}
5926       else {three = 0}
5927     }
5928     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5929 `
5930     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5931 $as_echo "$ver" >&6; }
5932     if test "$num" -lt "$req"; then
5933
5934     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5935
5936     fi
5937     vervar="`echo CXX | tr 'a-z' 'A-Z'`_VERSION"
5938     eval `echo $vervar=$num`
5939 ##    AC_SUBST(`eval echo $vervar`)
5940
5941         else
5942             warn="$CXX (Please install *GNU* c++)"
5943
5944     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5945
5946         fi
5947     fi
5948     # no else, we're fine with any clang
5949
5950
5951     { $as_echo "$as_me:$LINENO: checking options for known g++ bugs" >&5
5952 $as_echo_n "checking options for known g++ bugs... " >&6; }
5953     case "$GXX:$CXX_VERSION" in
5954         yes:400600[0-2])
5955             { $as_echo "$as_me:$LINENO: result: -fno-optimize-sibling-calls (tail call bug)" >&5
5956 $as_echo "-fno-optimize-sibling-calls (tail call bug)" >&6; }
5957             CXXFLAGS="$CXXFLAGS -fno-optimize-sibling-calls"
5958             ;;
5959         yes:400700?)
5960             { $as_echo "$as_me:$LINENO: result: -fno-tree-vrp (comparison bug)" >&5
5961 $as_echo "-fno-tree-vrp (comparison bug)" >&6; }
5962             CXXFLAGS="$CXXFLAGS -fno-tree-vrp"
5963             ;;
5964         *) { $as_echo "$as_me:$LINENO: result: none" >&5
5965 $as_echo "none" >&6; }
5966     esac
5967
5968
5969
5970     { $as_echo "$as_me:$LINENO: checking whether explicit instantiation is needed" >&5
5971 $as_echo_n "checking whether explicit instantiation is needed... " >&6; }
5972 if test "${stepmake_cv_need_explicit_instantiation+set}" = set; then
5973   $as_echo_n "(cached) " >&6
5974 else
5975   cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h.  */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h.  */
5981
5982     template <class T> struct foo { static int baz; };
5983     template <class T> int foo<T>::baz = 1;
5984
5985 int
5986 main ()
5987 {
5988  return foo<int>::baz;
5989   ;
5990   return 0;
5991 }
5992 _ACEOF
5993 rm -f conftest.$ac_objext conftest$ac_exeext
5994 if { (ac_try="$ac_link"
5995 case "(($ac_try" in
5996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997   *) ac_try_echo=$ac_try;;
5998 esac
5999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6000 $as_echo "$ac_try_echo") >&5
6001   (eval "$ac_link") 2>conftest.er1
6002   ac_status=$?
6003   grep -v '^ *+' conftest.er1 >conftest.err
6004   rm -f conftest.er1
6005   cat conftest.err >&5
6006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); } && {
6008          test -z "$ac_cxx_werror_flag" ||
6009          test ! -s conftest.err
6010        } && test -s conftest$ac_exeext && {
6011          test "$cross_compiling" = yes ||
6012          $as_test_x conftest$ac_exeext
6013        }; then
6014   stepmake_cv_need_explicit_instantiation=no
6015 else
6016   $as_echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6018
6019         stepmake_cv_need_explicit_instantiation=yes
6020 fi
6021
6022 rm -rf conftest.dSYM
6023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6024       conftest$ac_exeext conftest.$ac_ext
6025 fi
6026 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_need_explicit_instantiation" >&5
6027 $as_echo "$stepmake_cv_need_explicit_instantiation" >&6; }
6028     if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
6029         cat >>confdefs.h <<\_ACEOF
6030 #define NEED_EXPLICIT_INSTANTIATION 1
6031 _ACEOF
6032
6033     fi
6034
6035
6036     { $as_echo "$as_me:$LINENO: checking for stl.data () method" >&5
6037 $as_echo_n "checking for stl.data () method... " >&6; }
6038 if test "${stepmake_cv_stl_data_method+set}" = set; then
6039   $as_echo_n "(cached) " >&6
6040 else
6041   cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h.  */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h.  */
6047
6048 #include <vector>
6049 using namespace std;
6050 vector <int> v;
6051 void *p = v.data ();
6052
6053 int
6054 main ()
6055 {
6056
6057   ;
6058   return 0;
6059 }
6060 _ACEOF
6061 rm -f conftest.$ac_objext
6062 if { (ac_try="$ac_compile"
6063 case "(($ac_try" in
6064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065   *) ac_try_echo=$ac_try;;
6066 esac
6067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6068 $as_echo "$ac_try_echo") >&5
6069   (eval "$ac_compile") 2>conftest.er1
6070   ac_status=$?
6071   grep -v '^ *+' conftest.er1 >conftest.err
6072   rm -f conftest.er1
6073   cat conftest.err >&5
6074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); } && {
6076          test -z "$ac_cxx_werror_flag" ||
6077          test ! -s conftest.err
6078        } && test -s conftest.$ac_objext; then
6079   stepmake_cv_stl_data_method=yes
6080 else
6081   $as_echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6083
6084         stepmake_cv_stl_data_method=no
6085 fi
6086
6087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088 fi
6089 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_stl_data_method" >&5
6090 $as_echo "$stepmake_cv_stl_data_method" >&6; }
6091     if test $stepmake_cv_stl_data_method = yes; then
6092
6093 cat >>confdefs.h <<\_ACEOF
6094 #define HAVE_STL_DATA_METHOD 1
6095 _ACEOF
6096
6097     fi
6098
6099
6100
6101     for ac_prog in ar
6102 do
6103   # Extract the first word of "$ac_prog", so it can be a program name with args.
6104 set dummy $ac_prog; ac_word=$2
6105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 $as_echo_n "checking for $ac_word... " >&6; }
6107 if test "${ac_cv_prog_AR+set}" = set; then
6108   $as_echo_n "(cached) " >&6
6109 else
6110   if test -n "$AR"; then
6111   ac_cv_prog_AR="$AR" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6115 do
6116   IFS=$as_save_IFS
6117   test -z "$as_dir" && as_dir=.
6118   for ac_exec_ext in '' $ac_executable_extensions; do
6119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6120     ac_cv_prog_AR="$ac_prog"
6121     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122     break 2
6123   fi
6124 done
6125 done
6126 IFS=$as_save_IFS
6127
6128 fi
6129 fi
6130 AR=$ac_cv_prog_AR
6131 if test -n "$AR"; then
6132   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6133 $as_echo "$AR" >&6; }
6134 else
6135   { $as_echo "$as_me:$LINENO: result: no" >&5
6136 $as_echo "no" >&6; }
6137 fi
6138
6139
6140   test -n "$AR" && break
6141 done
6142 test -n "$AR" || AR="no"
6143
6144
6145
6146     r="`eval echo '$'"AR"`"
6147     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
6148         true
6149     else
6150         ##STEPMAKE_WARN(cannot find . )
6151         false
6152     fi
6153
6154     if test $? -ne 0; then
6155
6156     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
6157
6158         if test "REQUIRED" = "REQUIRED"; then
6159             command="echo ERROR: ar not found"
6160             # abort configure process here?
6161         else
6162             command="- echo ar not found"
6163         fi
6164         eval "AR"='$command'
6165         false
6166     else
6167         true
6168     fi
6169
6170     if test $? -eq 0 -a -n ""; then
6171
6172     r="`eval echo '$'"AR"`"
6173     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6174 $as_echo_n "checking $r version... " >&6; }
6175     exe=`
6176     ## which doesn't work in ash, if /usr/bin/which isn't installed
6177     ## type -p doesn't work in ash
6178     ## command -v doesn't work in zsh
6179     ## command -v "$r" 2>&1
6180     ## this test should work in ash, bash, pdksh (ksh), zsh
6181     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6182 `
6183     if test -n ""; then
6184         ver=""
6185     else
6186         ver=`
6187     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6188     ##
6189     ## ARG.
6190     ## Workaround for broken Debian gcc version string:
6191     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6192     ##
6193     ## -V: Workaround for python
6194
6195     #dnl
6196
6197     ## Assume and hunt for dotted version multiplet.
6198     ## use eval trickery, because we cannot use multi-level $() instead of ``
6199     ## for compatibility reasons.
6200
6201     ## grab the first version number in  --version output.
6202     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6203                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6204                 head -n 1 |
6205                 tr ' ' '\n' |
6206                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6207                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6208                 head -n 1\`\"
6209
6210     if test -z "$_ver"; then
6211         ## If empty, try date [fontforge]
6212         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6213             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6214             | head -n 1 \
6215             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6216     fi
6217     echo "$_ver"
6218     #dnl
6219 `
6220     fi
6221     num=`
6222     echo "$ver" | awk -F. '
6223     {
6224       if ($3) {three = $3}
6225       else {three = 0}
6226     }
6227     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6228 `
6229     req=`
6230     echo "" | awk -F. '
6231     {
6232       if ($3) {three = $3}
6233       else {three = 0}
6234     }
6235     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6236 `
6237     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6238 $as_echo "$ver" >&6; }
6239     if test "$num" -lt "$req"; then
6240
6241     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6242
6243     fi
6244     vervar="`echo AR | tr 'a-z' 'A-Z'`_VERSION"
6245     eval `echo $vervar=$num`
6246 ##    AC_SUBST(`eval echo $vervar`)
6247
6248     fi
6249
6250     if test -n "$ac_tool_prefix"; then
6251   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6252 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if test "${ac_cv_prog_RANLIB+set}" = set; then
6256   $as_echo_n "(cached) " >&6
6257 else
6258   if test -n "$RANLIB"; then
6259   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6263 do
6264   IFS=$as_save_IFS
6265   test -z "$as_dir" && as_dir=.
6266   for ac_exec_ext in '' $ac_executable_extensions; do
6267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6269     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270     break 2
6271   fi
6272 done
6273 done
6274 IFS=$as_save_IFS
6275
6276 fi
6277 fi
6278 RANLIB=$ac_cv_prog_RANLIB
6279 if test -n "$RANLIB"; then
6280   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6281 $as_echo "$RANLIB" >&6; }
6282 else
6283   { $as_echo "$as_me:$LINENO: result: no" >&5
6284 $as_echo "no" >&6; }
6285 fi
6286
6287
6288 fi
6289 if test -z "$ac_cv_prog_RANLIB"; then
6290   ac_ct_RANLIB=$RANLIB
6291   # Extract the first word of "ranlib", so it can be a program name with args.
6292 set dummy ranlib; ac_word=$2
6293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6296   $as_echo_n "(cached) " >&6
6297 else
6298   if test -n "$ac_ct_RANLIB"; then
6299   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304   IFS=$as_save_IFS
6305   test -z "$as_dir" && as_dir=.
6306   for ac_exec_ext in '' $ac_executable_extensions; do
6307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308     ac_cv_prog_ac_ct_RANLIB="ranlib"
6309     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310     break 2
6311   fi
6312 done
6313 done
6314 IFS=$as_save_IFS
6315
6316 fi
6317 fi
6318 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6319 if test -n "$ac_ct_RANLIB"; then
6320   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6321 $as_echo "$ac_ct_RANLIB" >&6; }
6322 else
6323   { $as_echo "$as_me:$LINENO: result: no" >&5
6324 $as_echo "no" >&6; }
6325 fi
6326
6327   if test "x$ac_ct_RANLIB" = x; then
6328     RANLIB=":"
6329   else
6330     case $cross_compiling:$ac_tool_warned in
6331 yes:)
6332 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6334 ac_tool_warned=yes ;;
6335 esac
6336     RANLIB=$ac_ct_RANLIB
6337   fi
6338 else
6339   RANLIB="$ac_cv_prog_RANLIB"
6340 fi
6341
6342
6343
6344     r="`eval echo '$'"RANLIB"`"
6345     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
6346         true
6347     else
6348         ##STEPMAKE_WARN(cannot find . )
6349         false
6350     fi
6351
6352     if test $? -ne 0; then
6353
6354     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
6355
6356         if test "REQUIRED" = "REQUIRED"; then
6357             command="echo ERROR: ranlib not found"
6358             # abort configure process here?
6359         else
6360             command="- echo ranlib not found"
6361         fi
6362         eval "RANLIB"='$command'
6363         false
6364     else
6365         true
6366     fi
6367
6368
6369
6370
6371 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6372 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6373 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6374   $as_echo_n "(cached) " >&6
6375 else
6376   ac_check_lib_save_LIBS=$LIBS
6377 LIBS="-ldl  $LIBS"
6378 cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h.  */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h.  */
6384
6385 /* Override any GCC internal prototype to avoid an error.
6386    Use char because int might match the return type of a GCC
6387    builtin and then its argument prototype would still apply.  */
6388 #ifdef __cplusplus
6389 extern "C"
6390 #endif
6391 char dlopen ();
6392 int
6393 main ()
6394 {
6395 return dlopen ();
6396   ;
6397   return 0;
6398 }
6399 _ACEOF
6400 rm -f conftest.$ac_objext conftest$ac_exeext
6401 if { (ac_try="$ac_link"
6402 case "(($ac_try" in
6403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404   *) ac_try_echo=$ac_try;;
6405 esac
6406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6407 $as_echo "$ac_try_echo") >&5
6408   (eval "$ac_link") 2>conftest.er1
6409   ac_status=$?
6410   grep -v '^ *+' conftest.er1 >conftest.err
6411   rm -f conftest.er1
6412   cat conftest.err >&5
6413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); } && {
6415          test -z "$ac_cxx_werror_flag" ||
6416          test ! -s conftest.err
6417        } && test -s conftest$ac_exeext && {
6418          test "$cross_compiling" = yes ||
6419          $as_test_x conftest$ac_exeext
6420        }; then
6421   ac_cv_lib_dl_dlopen=yes
6422 else
6423   $as_echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6425
6426         ac_cv_lib_dl_dlopen=no
6427 fi
6428
6429 rm -rf conftest.dSYM
6430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6431       conftest$ac_exeext conftest.$ac_ext
6432 LIBS=$ac_check_lib_save_LIBS
6433 fi
6434 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6435 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6436 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
6437   cat >>confdefs.h <<_ACEOF
6438 #define HAVE_LIBDL 1
6439 _ACEOF
6440
6441   LIBS="-ldl $LIBS"
6442
6443 fi
6444
6445
6446 for ac_func in dlopen
6447 do
6448 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6449 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6450 $as_echo_n "checking for $ac_func... " >&6; }
6451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6452   $as_echo_n "(cached) " >&6
6453 else
6454   cat >conftest.$ac_ext <<_ACEOF
6455 /* confdefs.h.  */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h.  */
6460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6462 #define $ac_func innocuous_$ac_func
6463
6464 /* System header to define __stub macros and hopefully few prototypes,
6465     which can conflict with char $ac_func (); below.
6466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6467     <limits.h> exists even on freestanding compilers.  */
6468
6469 #ifdef __STDC__
6470 # include <limits.h>
6471 #else
6472 # include <assert.h>
6473 #endif
6474
6475 #undef $ac_func
6476
6477 /* Override any GCC internal prototype to avoid an error.
6478    Use char because int might match the return type of a GCC
6479    builtin and then its argument prototype would still apply.  */
6480 #ifdef __cplusplus
6481 extern "C"
6482 #endif
6483 char $ac_func ();
6484 /* The GNU C library defines this for functions which it implements
6485     to always fail with ENOSYS.  Some functions are actually named
6486     something starting with __ and the normal name is an alias.  */
6487 #if defined __stub_$ac_func || defined __stub___$ac_func
6488 choke me
6489 #endif
6490
6491 int
6492 main ()
6493 {
6494 return $ac_func ();
6495   ;
6496   return 0;
6497 }
6498 _ACEOF
6499 rm -f conftest.$ac_objext conftest$ac_exeext
6500 if { (ac_try="$ac_link"
6501 case "(($ac_try" in
6502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503   *) ac_try_echo=$ac_try;;
6504 esac
6505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6506 $as_echo "$ac_try_echo") >&5
6507   (eval "$ac_link") 2>conftest.er1
6508   ac_status=$?
6509   grep -v '^ *+' conftest.er1 >conftest.err
6510   rm -f conftest.er1
6511   cat conftest.err >&5
6512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); } && {
6514          test -z "$ac_cxx_werror_flag" ||
6515          test ! -s conftest.err
6516        } && test -s conftest$ac_exeext && {
6517          test "$cross_compiling" = yes ||
6518          $as_test_x conftest$ac_exeext
6519        }; then
6520   eval "$as_ac_var=yes"
6521 else
6522   $as_echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6524
6525         eval "$as_ac_var=no"
6526 fi
6527
6528 rm -rf conftest.dSYM
6529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6530       conftest$ac_exeext conftest.$ac_ext
6531 fi
6532 ac_res=`eval 'as_val=${'$as_ac_var'}
6533                  $as_echo "$as_val"'`
6534                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6535 $as_echo "$ac_res" >&6; }
6536 as_val=`eval 'as_val=${'$as_ac_var'}
6537                  $as_echo "$as_val"'`
6538    if test "x$as_val" = x""yes; then
6539   cat >>confdefs.h <<_ACEOF
6540 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6541 _ACEOF
6542
6543 fi
6544 done
6545
6546
6547 # Do not use bison 1.50 and 1.75.
6548 # 1.29 is required fr %locations, but I'm not sure it's enough --ns
6549
6550     # ugh, automake: we want (and check for) bison
6551     for ac_prog in 'bison -y' byacc
6552 do
6553   # Extract the first word of "$ac_prog", so it can be a program name with args.
6554 set dummy $ac_prog; ac_word=$2
6555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if test "${ac_cv_prog_YACC+set}" = set; then
6558   $as_echo_n "(cached) " >&6
6559 else
6560   if test -n "$YACC"; then
6561   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566   IFS=$as_save_IFS
6567   test -z "$as_dir" && as_dir=.
6568   for ac_exec_ext in '' $ac_executable_extensions; do
6569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570     ac_cv_prog_YACC="$ac_prog"
6571     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6572     break 2
6573   fi
6574 done
6575 done
6576 IFS=$as_save_IFS
6577
6578 fi
6579 fi
6580 YACC=$ac_cv_prog_YACC
6581 if test -n "$YACC"; then
6582   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6583 $as_echo "$YACC" >&6; }
6584 else
6585   { $as_echo "$as_me:$LINENO: result: no" >&5
6586 $as_echo "no" >&6; }
6587 fi
6588
6589
6590   test -n "$YACC" && break
6591 done
6592 test -n "$YACC" || YACC="yacc"
6593
6594
6595
6596     for ac_prog in bison
6597 do
6598   # Extract the first word of "$ac_prog", so it can be a program name with args.
6599 set dummy $ac_prog; ac_word=$2
6600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 $as_echo_n "checking for $ac_word... " >&6; }
6602 if test "${ac_cv_prog_BISON+set}" = set; then
6603   $as_echo_n "(cached) " >&6
6604 else
6605   if test -n "$BISON"; then
6606   ac_cv_prog_BISON="$BISON" # Let the user override the test.
6607 else
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6610 do
6611   IFS=$as_save_IFS
6612   test -z "$as_dir" && as_dir=.
6613   for ac_exec_ext in '' $ac_executable_extensions; do
6614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615     ac_cv_prog_BISON="$ac_prog"
6616     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617     break 2
6618   fi
6619 done
6620 done
6621 IFS=$as_save_IFS
6622
6623 fi
6624 fi
6625 BISON=$ac_cv_prog_BISON
6626 if test -n "$BISON"; then
6627   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6628 $as_echo "$BISON" >&6; }
6629 else
6630   { $as_echo "$as_me:$LINENO: result: no" >&5
6631 $as_echo "no" >&6; }
6632 fi
6633
6634
6635   test -n "$BISON" && break
6636 done
6637 test -n "$BISON" || BISON="no"
6638
6639
6640
6641     r="`eval echo '$'"BISON"`"
6642     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
6643         true
6644     else
6645         ##STEPMAKE_WARN(cannot find . )
6646         false
6647     fi
6648
6649     if test $? -ne 0; then
6650
6651     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"bison\"`\"
6652
6653         if test "REQUIRED" = "REQUIRED"; then
6654             command="echo ERROR: bison not found"
6655             # abort configure process here?
6656         else
6657             command="- echo bison not found"
6658         fi
6659         eval "BISON"='$command'
6660         false
6661     else
6662         true
6663     fi
6664
6665     if test $? -eq 0 -a -n ""; then
6666
6667     r="`eval echo '$'"BISON"`"
6668     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6669 $as_echo_n "checking $r version... " >&6; }
6670     exe=`
6671     ## which doesn't work in ash, if /usr/bin/which isn't installed
6672     ## type -p doesn't work in ash
6673     ## command -v doesn't work in zsh
6674     ## command -v "$r" 2>&1
6675     ## this test should work in ash, bash, pdksh (ksh), zsh
6676     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6677 `
6678     if test -n ""; then
6679         ver=""
6680     else
6681         ver=`
6682     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6683     ##
6684     ## ARG.
6685     ## Workaround for broken Debian gcc version string:
6686     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6687     ##
6688     ## -V: Workaround for python
6689
6690     #dnl
6691
6692     ## Assume and hunt for dotted version multiplet.
6693     ## use eval trickery, because we cannot use multi-level $() instead of ``
6694     ## for compatibility reasons.
6695
6696     ## grab the first version number in  --version output.
6697     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6698                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6699                 head -n 1 |
6700                 tr ' ' '\n' |
6701                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6702                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6703                 head -n 1\`\"
6704
6705     if test -z "$_ver"; then
6706         ## If empty, try date [fontforge]
6707         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6708             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6709             | head -n 1 \
6710             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6711     fi
6712     echo "$_ver"
6713     #dnl
6714 `
6715     fi
6716     num=`
6717     echo "$ver" | awk -F. '
6718     {
6719       if ($3) {three = $3}
6720       else {three = 0}
6721     }
6722     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6723 `
6724     req=`
6725     echo "" | awk -F. '
6726     {
6727       if ($3) {three = $3}
6728       else {three = 0}
6729     }
6730     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6731 `
6732     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6733 $as_echo "$ver" >&6; }
6734     if test "$num" -lt "$req"; then
6735
6736     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6737
6738     fi
6739     vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6740     eval `echo $vervar=$num`
6741 ##    AC_SUBST(`eval echo $vervar`)
6742
6743     fi
6744
6745
6746     # urg.  should test functionality rather than version.
6747     if test "$BISON" = "bison" -a -n "1.29"; then
6748
6749     r="`eval echo '$'"BISON"`"
6750     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6751 $as_echo_n "checking $r version... " >&6; }
6752     exe=`
6753     ## which doesn't work in ash, if /usr/bin/which isn't installed
6754     ## type -p doesn't work in ash
6755     ## command -v doesn't work in zsh
6756     ## command -v "$r" 2>&1
6757     ## this test should work in ash, bash, pdksh (ksh), zsh
6758     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6759 `
6760     if test -n ""; then
6761         ver=""
6762     else
6763         ver=`
6764     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6765     ##
6766     ## ARG.
6767     ## Workaround for broken Debian gcc version string:
6768     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6769     ##
6770     ## -V: Workaround for python
6771
6772     #dnl
6773
6774     ## Assume and hunt for dotted version multiplet.
6775     ## use eval trickery, because we cannot use multi-level $() instead of ``
6776     ## for compatibility reasons.
6777
6778     ## grab the first version number in  --version output.
6779     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6780                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6781                 head -n 1 |
6782                 tr ' ' '\n' |
6783                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6784                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6785                 head -n 1\`\"
6786
6787     if test -z "$_ver"; then
6788         ## If empty, try date [fontforge]
6789         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6790             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6791             | head -n 1 \
6792             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6793     fi
6794     echo "$_ver"
6795     #dnl
6796 `
6797     fi
6798     num=`
6799     echo "$ver" | awk -F. '
6800     {
6801       if ($3) {three = $3}
6802       else {three = 0}
6803     }
6804     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6805 `
6806     req=`
6807     echo "1.29" | awk -F. '
6808     {
6809       if ($3) {three = $3}
6810       else {three = 0}
6811     }
6812     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6813 `
6814     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6815 $as_echo "$ver" >&6; }
6816     if test "$num" -lt "$req"; then
6817
6818     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.29 (installed: $ver)"\"`\"
6819
6820     fi
6821     vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6822     eval `echo $vervar=$num`
6823 ##    AC_SUBST(`eval echo $vervar`)
6824
6825     fi
6826
6827
6828     # ugh, automake: we want (and check for) flex
6829     # AC_PROG_LEX
6830     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
6831
6832     # AC_PROG_LEX()
6833     # ugh, ugh
6834     ac_cv_prog_lex_root=lex.yy
6835
6836     for ac_prog in flex
6837 do
6838   # Extract the first word of "$ac_prog", so it can be a program name with args.
6839 set dummy $ac_prog; ac_word=$2
6840 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if test "${ac_cv_prog_FLEX+set}" = set; then
6843   $as_echo_n "(cached) " >&6
6844 else
6845   if test -n "$FLEX"; then
6846   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851   IFS=$as_save_IFS
6852   test -z "$as_dir" && as_dir=.
6853   for ac_exec_ext in '' $ac_executable_extensions; do
6854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855     ac_cv_prog_FLEX="$ac_prog"
6856     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857     break 2
6858   fi
6859 done
6860 done
6861 IFS=$as_save_IFS
6862
6863 fi
6864 fi
6865 FLEX=$ac_cv_prog_FLEX
6866 if test -n "$FLEX"; then
6867   { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
6868 $as_echo "$FLEX" >&6; }
6869 else
6870   { $as_echo "$as_me:$LINENO: result: no" >&5
6871 $as_echo "no" >&6; }
6872 fi
6873
6874
6875   test -n "$FLEX" && break
6876 done
6877 test -n "$FLEX" || FLEX="no"
6878
6879
6880
6881     r="`eval echo '$'"FLEX"`"
6882     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
6883         true
6884     else
6885         ##STEPMAKE_WARN(cannot find . )
6886         false
6887     fi
6888
6889     if test $? -ne 0; then
6890
6891     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
6892
6893         if test "REQUIRED" = "REQUIRED"; then
6894             command="echo ERROR: flex not found"
6895             # abort configure process here?
6896         else
6897             command="- echo flex not found"
6898         fi
6899         eval "FLEX"='$command'
6900         false
6901     else
6902         true
6903     fi
6904
6905     if test $? -eq 0 -a -n ""; then
6906
6907     r="`eval echo '$'"FLEX"`"
6908     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6909 $as_echo_n "checking $r version... " >&6; }
6910     exe=`
6911     ## which doesn't work in ash, if /usr/bin/which isn't installed
6912     ## type -p doesn't work in ash
6913     ## command -v doesn't work in zsh
6914     ## command -v "$r" 2>&1
6915     ## this test should work in ash, bash, pdksh (ksh), zsh
6916     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6917 `
6918     if test -n ""; then
6919         ver=""
6920     else
6921         ver=`
6922     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6923     ##
6924     ## ARG.
6925     ## Workaround for broken Debian gcc version string:
6926     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6927     ##
6928     ## -V: Workaround for python
6929
6930     #dnl
6931
6932     ## Assume and hunt for dotted version multiplet.
6933     ## use eval trickery, because we cannot use multi-level $() instead of ``
6934     ## for compatibility reasons.
6935
6936     ## grab the first version number in  --version output.
6937     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6938                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6939                 head -n 1 |
6940                 tr ' ' '\n' |
6941                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6942                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6943                 head -n 1\`\"
6944
6945     if test -z "$_ver"; then
6946         ## If empty, try date [fontforge]
6947         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6948             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6949             | head -n 1 \
6950             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6951     fi
6952     echo "$_ver"
6953     #dnl
6954 `
6955     fi
6956     num=`
6957     echo "$ver" | awk -F. '
6958     {
6959       if ($3) {three = $3}
6960       else {three = 0}
6961     }
6962     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6963 `
6964     req=`
6965     echo "" | awk -F. '
6966     {
6967       if ($3) {three = $3}
6968       else {three = 0}
6969     }
6970     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6971 `
6972     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6973 $as_echo "$ver" >&6; }
6974     if test "$num" -lt "$req"; then
6975
6976     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6977
6978     fi
6979     vervar="`echo FLEX | tr 'a-z' 'A-Z'`_VERSION"
6980     eval `echo $vervar=$num`
6981 ##    AC_SUBST(`eval echo $vervar`)
6982
6983     fi
6984
6985
6986 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6987 $as_echo_n "checking for ANSI C header files... " >&6; }
6988 if test "${ac_cv_header_stdc+set}" = set; then
6989   $as_echo_n "(cached) " >&6
6990 else
6991   cat >conftest.$ac_ext <<_ACEOF
6992 /* confdefs.h.  */
6993 _ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h.  */
6997 #include <stdlib.h>
6998 #include <stdarg.h>
6999 #include <string.h>
7000 #include <float.h>
7001
7002 int
7003 main ()
7004 {
7005
7006   ;
7007   return 0;
7008 }
7009 _ACEOF
7010 rm -f conftest.$ac_objext
7011 if { (ac_try="$ac_compile"
7012 case "(($ac_try" in
7013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014   *) ac_try_echo=$ac_try;;
7015 esac
7016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7017 $as_echo "$ac_try_echo") >&5
7018   (eval "$ac_compile") 2>conftest.er1
7019   ac_status=$?
7020   grep -v '^ *+' conftest.er1 >conftest.err
7021   rm -f conftest.er1
7022   cat conftest.err >&5
7023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024   (exit $ac_status); } && {
7025          test -z "$ac_cxx_werror_flag" ||
7026          test ! -s conftest.err
7027        } && test -s conftest.$ac_objext; then
7028   ac_cv_header_stdc=yes
7029 else
7030   $as_echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7032
7033         ac_cv_header_stdc=no
7034 fi
7035
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037
7038 if test $ac_cv_header_stdc = yes; then
7039   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7040   cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h.  */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h.  */
7046 #include <string.h>
7047
7048 _ACEOF
7049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7050   $EGREP "memchr" >/dev/null 2>&1; then
7051   :
7052 else
7053   ac_cv_header_stdc=no
7054 fi
7055 rm -f conftest*
7056
7057 fi
7058
7059 if test $ac_cv_header_stdc = yes; then
7060   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7061   cat >conftest.$ac_ext <<_ACEOF
7062 /* confdefs.h.  */
7063 _ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h.  */
7067 #include <stdlib.h>
7068
7069 _ACEOF
7070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7071   $EGREP "free" >/dev/null 2>&1; then
7072   :
7073 else
7074   ac_cv_header_stdc=no
7075 fi
7076 rm -f conftest*
7077
7078 fi
7079
7080 if test $ac_cv_header_stdc = yes; then
7081   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7082   if test "$cross_compiling" = yes; then
7083   :
7084 else
7085   cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h.  */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h.  */
7091 #include <ctype.h>
7092 #include <stdlib.h>
7093 #if ((' ' & 0x0FF) == 0x020)
7094 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7095 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7096 #else
7097 # define ISLOWER(c) \
7098                    (('a' <= (c) && (c) <= 'i') \
7099                      || ('j' <= (c) && (c) <= 'r') \
7100                      || ('s' <= (c) && (c) <= 'z'))
7101 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7102 #endif
7103
7104 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7105 int
7106 main ()
7107 {
7108   int i;
7109   for (i = 0; i < 256; i++)
7110     if (XOR (islower (i), ISLOWER (i))
7111         || toupper (i) != TOUPPER (i))
7112       return 2;
7113   return 0;
7114 }
7115 _ACEOF
7116 rm -f conftest$ac_exeext
7117 if { (ac_try="$ac_link"
7118 case "(($ac_try" in
7119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7120   *) ac_try_echo=$ac_try;;
7121 esac
7122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7123 $as_echo "$ac_try_echo") >&5
7124   (eval "$ac_link") 2>&5
7125   ac_status=$?
7126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7128   { (case "(($ac_try" in
7129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7130   *) ac_try_echo=$ac_try;;
7131 esac
7132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7133 $as_echo "$ac_try_echo") >&5
7134   (eval "$ac_try") 2>&5
7135   ac_status=$?
7136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137   (exit $ac_status); }; }; then
7138   :
7139 else
7140   $as_echo "$as_me: program exited with status $ac_status" >&5
7141 $as_echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7143
7144 ( exit $ac_status )
7145 ac_cv_header_stdc=no
7146 fi
7147 rm -rf conftest.dSYM
7148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7149 fi
7150
7151
7152 fi
7153 fi
7154 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7155 $as_echo "$ac_cv_header_stdc" >&6; }
7156 if test $ac_cv_header_stdc = yes; then
7157
7158 cat >>confdefs.h <<\_ACEOF
7159 #define STDC_HEADERS 1
7160 _ACEOF
7161
7162 fi
7163
7164 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7175                   inttypes.h stdint.h unistd.h
7176 do
7177 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7178 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7179 $as_echo_n "checking for $ac_header... " >&6; }
7180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7181   $as_echo_n "(cached) " >&6
7182 else
7183   cat >conftest.$ac_ext <<_ACEOF
7184 /* confdefs.h.  */
7185 _ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h.  */
7189 $ac_includes_default
7190
7191 #include <$ac_header>
7192 _ACEOF
7193 rm -f conftest.$ac_objext
7194 if { (ac_try="$ac_compile"
7195 case "(($ac_try" in
7196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7197   *) ac_try_echo=$ac_try;;
7198 esac
7199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7200 $as_echo "$ac_try_echo") >&5
7201   (eval "$ac_compile") 2>conftest.er1
7202   ac_status=$?
7203   grep -v '^ *+' conftest.er1 >conftest.err
7204   rm -f conftest.er1
7205   cat conftest.err >&5
7206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); } && {
7208          test -z "$ac_cxx_werror_flag" ||
7209          test ! -s conftest.err
7210        } && test -s conftest.$ac_objext; then
7211   eval "$as_ac_Header=yes"
7212 else
7213   $as_echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7215
7216         eval "$as_ac_Header=no"
7217 fi
7218
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 fi
7221 ac_res=`eval 'as_val=${'$as_ac_Header'}
7222                  $as_echo "$as_val"'`
7223                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7224 $as_echo "$ac_res" >&6; }
7225 as_val=`eval 'as_val=${'$as_ac_Header'}
7226                  $as_echo "$as_val"'`
7227    if test "x$as_val" = x""yes; then
7228   cat >>confdefs.h <<_ACEOF
7229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7230 _ACEOF
7231
7232 fi
7233
7234 done
7235
7236
7237
7238
7239 for ac_header in FlexLexer.h
7240 do
7241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7243   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7244 $as_echo_n "checking for $ac_header... " >&6; }
7245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7246   $as_echo_n "(cached) " >&6
7247 fi
7248 ac_res=`eval 'as_val=${'$as_ac_Header'}
7249                  $as_echo "$as_val"'`
7250                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7251 $as_echo "$ac_res" >&6; }
7252 else
7253   # Is the header compilable?
7254 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7255 $as_echo_n "checking $ac_header usability... " >&6; }
7256 cat >conftest.$ac_ext <<_ACEOF
7257 /* confdefs.h.  */
7258 _ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h.  */
7262 $ac_includes_default
7263 #include <$ac_header>
7264 _ACEOF
7265 rm -f conftest.$ac_objext
7266 if { (ac_try="$ac_compile"
7267 case "(($ac_try" in
7268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269   *) ac_try_echo=$ac_try;;
7270 esac
7271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7272 $as_echo "$ac_try_echo") >&5
7273   (eval "$ac_compile") 2>conftest.er1
7274   ac_status=$?
7275   grep -v '^ *+' conftest.er1 >conftest.err
7276   rm -f conftest.er1
7277   cat conftest.err >&5
7278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279   (exit $ac_status); } && {
7280          test -z "$ac_cxx_werror_flag" ||
7281          test ! -s conftest.err
7282        } && test -s conftest.$ac_objext; then
7283   ac_header_compiler=yes
7284 else
7285   $as_echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7287
7288         ac_header_compiler=no
7289 fi
7290
7291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7292 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7293 $as_echo "$ac_header_compiler" >&6; }
7294
7295 # Is the header present?
7296 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7297 $as_echo_n "checking $ac_header presence... " >&6; }
7298 cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h.  */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h.  */
7304 #include <$ac_header>
7305 _ACEOF
7306 if { (ac_try="$ac_cpp conftest.$ac_ext"
7307 case "(($ac_try" in
7308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7309   *) ac_try_echo=$ac_try;;
7310 esac
7311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7312 $as_echo "$ac_try_echo") >&5
7313   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7314   ac_status=$?
7315   grep -v '^ *+' conftest.er1 >conftest.err
7316   rm -f conftest.er1
7317   cat conftest.err >&5
7318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319   (exit $ac_status); } >/dev/null && {
7320          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7321          test ! -s conftest.err
7322        }; then
7323   ac_header_preproc=yes
7324 else
7325   $as_echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7327
7328   ac_header_preproc=no
7329 fi
7330
7331 rm -f conftest.err conftest.$ac_ext
7332 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7333 $as_echo "$ac_header_preproc" >&6; }
7334
7335 # So?  What about this header?
7336 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7337   yes:no: )
7338     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7339 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7340     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7341 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7342     ac_header_preproc=yes
7343     ;;
7344   no:yes:* )
7345     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7346 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7347     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7348 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7349     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7350 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7351     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7352 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7353     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7354 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7355     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7356 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7357
7358     ;;
7359 esac
7360 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 $as_echo_n "checking for $ac_header... " >&6; }
7362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7363   $as_echo_n "(cached) " >&6
7364 else
7365   eval "$as_ac_Header=\$ac_header_preproc"
7366 fi
7367 ac_res=`eval 'as_val=${'$as_ac_Header'}
7368                  $as_echo "$as_val"'`
7369                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7370 $as_echo "$ac_res" >&6; }
7371
7372 fi
7373 as_val=`eval 'as_val=${'$as_ac_Header'}
7374                  $as_echo "$as_val"'`
7375    if test "x$as_val" = x""yes; then
7376   cat >>confdefs.h <<_ACEOF
7377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7378 _ACEOF
7379  true
7380 else
7381   false
7382 fi
7383
7384 done
7385
7386     if test $? -ne 0; then
7387         warn='FlexLexer.h (flex package)'
7388
7389     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
7390
7391     fi
7392     # check for yyFlexLexer.yy_current_buffer,
7393     # in 2.5.4 <= flex < 2.5.29
7394     { $as_echo "$as_me:$LINENO: checking for yyFlexLexer.yy_current_buffer" >&5
7395 $as_echo_n "checking for yyFlexLexer.yy_current_buffer... " >&6; }
7396 if test "${stepmake_cv_flexlexer_yy_current_buffer+set}" = set; then
7397   $as_echo_n "(cached) " >&6
7398 else
7399   cat >conftest.$ac_ext <<_ACEOF
7400 /* confdefs.h.  */
7401 _ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h.  */
7405
7406 using namespace std;
7407 #include <FlexLexer.h>
7408 class yy_flex_lexer: public yyFlexLexer
7409 {
7410   public:
7411     yy_flex_lexer ()
7412     {
7413       yy_current_buffer = 0;
7414     }
7415 };
7416
7417 int
7418 main ()
7419 {
7420
7421   ;
7422   return 0;
7423 }
7424 _ACEOF
7425 rm -f conftest.$ac_objext
7426 if { (ac_try="$ac_compile"
7427 case "(($ac_try" in
7428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429   *) ac_try_echo=$ac_try;;
7430 esac
7431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7432 $as_echo "$ac_try_echo") >&5
7433   (eval "$ac_compile") 2>conftest.er1
7434   ac_status=$?
7435   grep -v '^ *+' conftest.er1 >conftest.err
7436   rm -f conftest.er1
7437   cat conftest.err >&5
7438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   (exit $ac_status); } && {
7440          test -z "$ac_cxx_werror_flag" ||
7441          test ! -s conftest.err
7442        } && test -s conftest.$ac_objext; then
7443   stepmake_cv_flexlexer_yy_current_buffer=yes
7444 else
7445   $as_echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7447
7448         stepmake_cv_flexlexer_yy_current_buffer=no
7449 fi
7450
7451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7452 fi
7453 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_flexlexer_yy_current_buffer" >&5
7454 $as_echo "$stepmake_cv_flexlexer_yy_current_buffer" >&6; }
7455     if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
7456
7457 cat >>confdefs.h <<\_ACEOF
7458 #define HAVE_FLEXLEXER_YY_CURRENT_BUFFER 1
7459 _ACEOF
7460
7461     fi
7462
7463
7464         { $as_echo "$as_me:$LINENO: checking FlexLexer.h location" >&5
7465 $as_echo_n "checking FlexLexer.h location... " >&6; }
7466
7467         # ugh.
7468         cat <<EOF > conftest.cc
7469 using namespace std;
7470 #include <FlexLexer.h>
7471 EOF
7472         FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
7473           sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
7474           sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
7475         rm conftest.cc
7476
7477         { $as_echo "$as_me:$LINENO: result: $FLEXLEXER_FILE" >&5
7478 $as_echo "$FLEXLEXER_FILE" >&6; }
7479
7480
7481     lang=English
7482     ALL_LINGUAS="en nl"
7483
7484     # with/enable ??
7485
7486 # Check whether --with-localedir was given.
7487 if test "${with_localedir+set}" = set; then
7488   withval=$with_localedir; localedir=$with_localedir
7489 else
7490   localedir='${prefix}/share/locale'
7491 fi
7492
7493
7494
7495 # Check whether --with-lang was given.
7496 if test "${with_lang+set}" = set; then
7497   withval=$with_lang; language=$with_lang
7498 else
7499   language=English
7500 fi
7501
7502
7503     { $as_echo "$as_me:$LINENO: checking language" >&5
7504 $as_echo_n "checking language... " >&6; }
7505     case "$language" in
7506       En* | en* | Am* | am* | US* | us*)
7507             lang=English;;
7508       NL | nl | Du* | du* | Ned* | ned*)
7509             lang=Dutch;;
7510       "")
7511             lang=English;;
7512       *)
7513             lang=unknown;;
7514     esac
7515     { $as_echo "$as_me:$LINENO: result: $lang" >&5
7516 $as_echo "$lang" >&6; }
7517
7518     if test "$lang" = "unknown" ; then
7519
7520     { $as_echo "$as_me:$LINENO: WARNING: $language not supported; available are: $ALL_LINGUAS" >&5
7521 $as_echo "$as_me: WARNING: $language not supported; available are: $ALL_LINGUAS" >&2;}
7522     warn_b=yes
7523
7524     fi
7525
7526
7527
7528     presome=${prefix}
7529     if test "$prefix" = "NONE"; then
7530             presome=${ac_default_prefix}
7531     fi
7532     LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
7533
7534
7535     cat >>confdefs.h <<_ACEOF
7536 #define LOCALEDIR "${LOCALEDIR}"
7537 _ACEOF
7538
7539
7540 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
7541 $as_echo_n "checking for gettext in -lintl... " >&6; }
7542 if test "${ac_cv_lib_intl_gettext+set}" = set; then
7543   $as_echo_n "(cached) " >&6
7544 else
7545   ac_check_lib_save_LIBS=$LIBS
7546 LIBS="-lintl  $LIBS"
7547 cat >conftest.$ac_ext <<_ACEOF
7548 /* confdefs.h.  */
7549 _ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h.  */
7553
7554 /* Override any GCC internal prototype to avoid an error.
7555    Use char because int might match the return type of a GCC
7556    builtin and then its argument prototype would still apply.  */
7557 #ifdef __cplusplus
7558 extern "C"
7559 #endif
7560 char gettext ();
7561 int
7562 main ()
7563 {
7564 return gettext ();
7565   ;
7566   return 0;
7567 }
7568 _ACEOF
7569 rm -f conftest.$ac_objext conftest$ac_exeext
7570 if { (ac_try="$ac_link"
7571 case "(($ac_try" in
7572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573   *) ac_try_echo=$ac_try;;
7574 esac
7575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7576 $as_echo "$ac_try_echo") >&5
7577   (eval "$ac_link") 2>conftest.er1
7578   ac_status=$?
7579   grep -v '^ *+' conftest.er1 >conftest.err
7580   rm -f conftest.er1
7581   cat conftest.err >&5
7582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583   (exit $ac_status); } && {
7584          test -z "$ac_cxx_werror_flag" ||
7585          test ! -s conftest.err
7586        } && test -s conftest$ac_exeext && {
7587          test "$cross_compiling" = yes ||
7588          $as_test_x conftest$ac_exeext
7589        }; then
7590   ac_cv_lib_intl_gettext=yes
7591 else
7592   $as_echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7594
7595         ac_cv_lib_intl_gettext=no
7596 fi
7597
7598 rm -rf conftest.dSYM
7599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7600       conftest$ac_exeext conftest.$ac_ext
7601 LIBS=$ac_check_lib_save_LIBS
7602 fi
7603 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
7604 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
7605 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
7606   cat >>confdefs.h <<_ACEOF
7607 #define HAVE_LIBINTL 1
7608 _ACEOF
7609
7610   LIBS="-lintl $LIBS"
7611
7612 fi
7613
7614
7615 for ac_func in gettext
7616 do
7617 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7618 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7619 $as_echo_n "checking for $ac_func... " >&6; }
7620 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7621   $as_echo_n "(cached) " >&6
7622 else
7623   cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h.  */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h.  */
7629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7631 #define $ac_func innocuous_$ac_func
7632
7633 /* System header to define __stub macros and hopefully few prototypes,
7634     which can conflict with char $ac_func (); below.
7635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7636     <limits.h> exists even on freestanding compilers.  */
7637
7638 #ifdef __STDC__
7639 # include <limits.h>
7640 #else
7641 # include <assert.h>
7642 #endif
7643
7644 #undef $ac_func
7645
7646 /* Override any GCC internal prototype to avoid an error.
7647    Use char because int might match the return type of a GCC
7648    builtin and then its argument prototype would still apply.  */
7649 #ifdef __cplusplus
7650 extern "C"
7651 #endif
7652 char $ac_func ();
7653 /* The GNU C library defines this for functions which it implements
7654     to always fail with ENOSYS.  Some functions are actually named
7655     something starting with __ and the normal name is an alias.  */
7656 #if defined __stub_$ac_func || defined __stub___$ac_func
7657 choke me
7658 #endif
7659
7660 int
7661 main ()
7662 {
7663 return $ac_func ();
7664   ;
7665   return 0;
7666 }
7667 _ACEOF
7668 rm -f conftest.$ac_objext conftest$ac_exeext
7669 if { (ac_try="$ac_link"
7670 case "(($ac_try" in
7671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672   *) ac_try_echo=$ac_try;;
7673 esac
7674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7675 $as_echo "$ac_try_echo") >&5
7676   (eval "$ac_link") 2>conftest.er1
7677   ac_status=$?
7678   grep -v '^ *+' conftest.er1 >conftest.err
7679   rm -f conftest.er1
7680   cat conftest.err >&5
7681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682   (exit $ac_status); } && {
7683          test -z "$ac_cxx_werror_flag" ||
7684          test ! -s conftest.err
7685        } && test -s conftest$ac_exeext && {
7686          test "$cross_compiling" = yes ||
7687          $as_test_x conftest$ac_exeext
7688        }; then
7689   eval "$as_ac_var=yes"
7690 else
7691   $as_echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7693
7694         eval "$as_ac_var=no"
7695 fi
7696
7697 rm -rf conftest.dSYM
7698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7699       conftest$ac_exeext conftest.$ac_ext
7700 fi
7701 ac_res=`eval 'as_val=${'$as_ac_var'}
7702                  $as_echo "$as_val"'`
7703                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7704 $as_echo "$ac_res" >&6; }
7705 as_val=`eval 'as_val=${'$as_ac_var'}
7706                  $as_echo "$as_val"'`
7707    if test "x$as_val" = x""yes; then
7708   cat >>confdefs.h <<_ACEOF
7709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7710 _ACEOF
7711
7712 fi
7713 done
7714
7715
7716
7717
7718     for ac_prog in msgfmt
7719 do
7720   # Extract the first word of "$ac_prog", so it can be a program name with args.
7721 set dummy $ac_prog; ac_word=$2
7722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7723 $as_echo_n "checking for $ac_word... " >&6; }
7724 if test "${ac_cv_prog_MSGFMT+set}" = set; then
7725   $as_echo_n "(cached) " >&6
7726 else
7727   if test -n "$MSGFMT"; then
7728   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7729 else
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7732 do
7733   IFS=$as_save_IFS
7734   test -z "$as_dir" && as_dir=.
7735   for ac_exec_ext in '' $ac_executable_extensions; do
7736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7737     ac_cv_prog_MSGFMT="$ac_prog"
7738     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7739     break 2
7740   fi
7741 done
7742 done
7743 IFS=$as_save_IFS
7744
7745 fi
7746 fi
7747 MSGFMT=$ac_cv_prog_MSGFMT
7748 if test -n "$MSGFMT"; then
7749   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7750 $as_echo "$MSGFMT" >&6; }
7751 else
7752   { $as_echo "$as_me:$LINENO: result: no" >&5
7753 $as_echo "no" >&6; }
7754 fi
7755
7756
7757   test -n "$MSGFMT" && break
7758 done
7759 test -n "$MSGFMT" || MSGFMT="no"
7760
7761
7762
7763     r="`eval echo '$'"MSGFMT"`"
7764     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
7765         true
7766     else
7767         ##STEPMAKE_WARN(cannot find . )
7768         false
7769     fi
7770
7771     if test $? -ne 0; then
7772
7773     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
7774
7775         if test "REQUIRED" = "REQUIRED"; then
7776             command="echo ERROR: msgfmt not found"
7777             # abort configure process here?
7778         else
7779             command="- echo msgfmt not found"
7780         fi
7781         eval "MSGFMT"='$command'
7782         false
7783     else
7784         true
7785     fi
7786
7787     if test $? -eq 0 -a -n ""; then
7788
7789     r="`eval echo '$'"MSGFMT"`"
7790     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7791 $as_echo_n "checking $r version... " >&6; }
7792     exe=`
7793     ## which doesn't work in ash, if /usr/bin/which isn't installed
7794     ## type -p doesn't work in ash
7795     ## command -v doesn't work in zsh
7796     ## command -v "$r" 2>&1
7797     ## this test should work in ash, bash, pdksh (ksh), zsh
7798     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7799 `
7800     if test -n ""; then
7801         ver=""
7802     else
7803         ver=`
7804     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7805     ##
7806     ## ARG.
7807     ## Workaround for broken Debian gcc version string:
7808     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7809     ##
7810     ## -V: Workaround for python
7811
7812     #dnl
7813
7814     ## Assume and hunt for dotted version multiplet.
7815     ## use eval trickery, because we cannot use multi-level $() instead of ``
7816     ## for compatibility reasons.
7817
7818     ## grab the first version number in  --version output.
7819     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7820                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7821                 head -n 1 |
7822                 tr ' ' '\n' |
7823                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7824                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7825                 head -n 1\`\"
7826
7827     if test -z "$_ver"; then
7828         ## If empty, try date [fontforge]
7829         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
7830             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
7831             | head -n 1 \
7832             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7833     fi
7834     echo "$_ver"
7835     #dnl
7836 `
7837     fi
7838     num=`
7839     echo "$ver" | awk -F. '
7840     {
7841       if ($3) {three = $3}
7842       else {three = 0}
7843     }
7844     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7845 `
7846     req=`
7847     echo "" | awk -F. '
7848     {
7849       if ($3) {three = $3}
7850       else {three = 0}
7851     }
7852     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7853 `
7854     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7855 $as_echo "$ver" >&6; }
7856     if test "$num" -lt "$req"; then
7857
7858     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
7859
7860     fi
7861     vervar="`echo MSGFMT | tr 'a-z' 'A-Z'`_VERSION"
7862     eval `echo $vervar=$num`
7863 ##    AC_SUBST(`eval echo $vervar`)
7864
7865     fi
7866
7867
7868
7869
7870     for ac_prog in mf-nowin mf mfw mfont
7871 do
7872   # Extract the first word of "$ac_prog", so it can be a program name with args.
7873 set dummy $ac_prog; ac_word=$2
7874 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if test "${ac_cv_prog_METAFONT+set}" = set; then
7877   $as_echo_n "(cached) " >&6
7878 else
7879   if test -n "$METAFONT"; then
7880   ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
7881 else
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7884 do
7885   IFS=$as_save_IFS
7886   test -z "$as_dir" && as_dir=.
7887   for ac_exec_ext in '' $ac_executable_extensions; do
7888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7889     ac_cv_prog_METAFONT="$ac_prog"
7890     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7891     break 2
7892   fi
7893 done
7894 done
7895 IFS=$as_save_IFS
7896
7897 fi
7898 fi
7899 METAFONT=$ac_cv_prog_METAFONT
7900 if test -n "$METAFONT"; then
7901   { $as_echo "$as_me:$LINENO: result: $METAFONT" >&5
7902 $as_echo "$METAFONT" >&6; }
7903 else
7904   { $as_echo "$as_me:$LINENO: result: no" >&5
7905 $as_echo "no" >&6; }
7906 fi
7907
7908
7909   test -n "$METAFONT" && break
7910 done
7911 test -n "$METAFONT" || METAFONT="no"
7912
7913
7914
7915     r="`eval echo '$'"METAFONT"`"
7916     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
7917         true
7918     else
7919         ##STEPMAKE_WARN(cannot find . )
7920         false
7921     fi
7922
7923     if test $? -ne 0; then
7924
7925     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mf-nowin mf mfw mfont\"`\"
7926
7927         if test "REQUIRED" = "REQUIRED"; then
7928             command="echo ERROR: mf-nowin mf mfw mfont not found"
7929             # abort configure process here?
7930         else
7931             command="- echo mf-nowin mf mfw mfont not found"
7932         fi
7933         eval "METAFONT"='$command'
7934         false
7935     else
7936         true
7937     fi
7938
7939     if test $? -eq 0 -a -n ""; then
7940
7941     r="`eval echo '$'"METAFONT"`"
7942     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7943 $as_echo_n "checking $r version... " >&6; }
7944     exe=`
7945     ## which doesn't work in ash, if /usr/bin/which isn't installed
7946     ## type -p doesn't work in ash
7947     ## command -v doesn't work in zsh
7948     ## command -v "$r" 2>&1
7949     ## this test should work in ash, bash, pdksh (ksh), zsh
7950     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7951 `
7952     if test -n ""; then
7953         ver=""
7954     else
7955         ver=`
7956     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7957     ##
7958     ## ARG.
7959     ## Workaround for broken Debian gcc version string:
7960     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7961     ##
7962     ## -V: Workaround for python
7963
7964     #dnl
7965
7966     ## Assume and hunt for dotted version multiplet.
7967     ## use eval trickery, because we cannot use multi-level $() instead of ``
7968     ## for compatibility reasons.
7969
7970     ## grab the first version number in  --version output.
7971     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7972                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7973                 head -n 1 |
7974                 tr ' ' '\n' |
7975                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7976                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7977                 head -n 1\`\"
7978
7979     if test -z "$_ver"; then
7980         ## If empty, try date [fontforge]
7981         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
7982             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
7983             | head -n 1 \
7984             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7985     fi
7986     echo "$_ver"
7987     #dnl
7988 `
7989     fi
7990     num=`
7991     echo "$ver" | awk -F. '
7992     {
7993       if ($3) {three = $3}
7994       else {three = 0}
7995     }
7996     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7997 `
7998     req=`
7999     echo "" | awk -F. '
8000     {
8001       if ($3) {three = $3}
8002       else {three = 0}
8003     }
8004     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8005 `
8006     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8007 $as_echo "$ver" >&6; }
8008     if test "$num" -lt "$req"; then
8009
8010     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
8011
8012     fi
8013     vervar="`echo METAFONT | tr 'a-z' 'A-Z'`_VERSION"
8014     eval `echo $vervar=$num`
8015 ##    AC_SUBST(`eval echo $vervar`)
8016
8017     fi
8018
8019
8020     for ac_prog in mpost
8021 do
8022   # Extract the first word of "$ac_prog", so it can be a program name with args.
8023 set dummy $ac_prog; ac_word=$2
8024 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8025 $as_echo_n "checking for $ac_word... " >&6; }
8026 if test "${ac_cv_prog_METAPOST+set}" = set; then
8027   $as_echo_n "(cached) " >&6
8028 else
8029   if test -n "$METAPOST"; then
8030   ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
8031 else
8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 for as_dir in $PATH
8034 do
8035   IFS=$as_save_IFS
8036   test -z "$as_dir" && as_dir=.
8037   for ac_exec_ext in '' $ac_executable_extensions; do
8038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039     ac_cv_prog_METAPOST="$ac_prog"
8040     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8041     break 2
8042   fi
8043 done
8044 done
8045 IFS=$as_save_IFS
8046
8047 fi
8048 fi
8049 METAPOST=$ac_cv_prog_METAPOST
8050 if test -n "$METAPOST"; then
8051   { $as_echo "$as_me:$LINENO: result: $METAPOST" >&5
8052 $as_echo "$METAPOST" >&6; }
8053 else
8054   { $as_echo "$as_me:$LINENO: result: no" >&5
8055 $as_echo "no" >&6; }
8056 fi
8057
8058
8059   test -n "$METAPOST" && break
8060 done
8061 test -n "$METAPOST" || METAPOST="no"
8062
8063
8064
8065     r="`eval echo '$'"METAPOST"`"
8066     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAPOST"`' : '.*\(echo\)' > /dev/null; then
8067         true
8068     else
8069         ##STEPMAKE_WARN(cannot find . )
8070         false
8071     fi
8072
8073     if test $? -ne 0; then
8074
8075     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mpost\"`\"
8076
8077         if test "REQUIRED" = "REQUIRED"; then
8078             command="echo ERROR: mpost not found"
8079             # abort configure process here?
8080         else
8081             command="- echo mpost not found"
8082         fi
8083         eval "METAPOST"='$command'
8084         false
8085     else
8086         true
8087     fi
8088
8089     if test $? -eq 0 -a -n ""; then
8090
8091     r="`eval echo '$'"METAPOST"`"
8092     { $as_echo "$as_me:$LINENO: checking $r version" >&5
8093 $as_echo_n "checking $r version... " >&6; }
8094     exe=`
8095     ## which doesn't work in ash, if /usr/bin/which isn't installed
8096     ## type -p doesn't work in ash
8097     ## command -v doesn't work in zsh
8098     ## command -v "$r" 2>&1
8099     ## this test should work in ash, bash, pdksh (ksh), zsh
8100     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8101 `
8102     if test -n ""; then
8103         ver=""
8104     else
8105         ver=`
8106     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8107     ##
8108     ## ARG.
8109     ## Workaround for broken Debian gcc version string:
8110     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8111     ##
8112     ## -V: Workaround for python
8113
8114     #dnl
8115
8116     ## Assume and hunt for dotted version multiplet.
8117     ## use eval trickery, because we cannot use multi-level $() instead of ``
8118     ## for compatibility reasons.
8119
8120     ## grab the first version number in  --version output.
8121     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8122                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8123                 head -n 1 |
8124                 tr ' ' '\n' |
8125                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8126                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8127                 head -n 1\`\"
8128
8129     if test -z "$_ver"; then
8130         ## If empty, try date [fontforge]
8131         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8132             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8133             | head -n 1 \
8134             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8135     fi
8136     echo "$_ver"
8137     #dnl
8138 `
8139     fi
8140     num=`
8141     echo "$ver" | awk -F. '
8142     {
8143       if ($3) {three = $3}
8144       else {three = 0}
8145     }
8146     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8147 `
8148     req=`
8149     echo "" | awk -F. '
8150     {
8151       if ($3) {three = $3}
8152       else {three = 0}
8153     }
8154     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8155 `
8156     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8157 $as_echo "$ver" >&6; }
8158     if test "$num" -lt "$req"; then
8159
8160     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
8161
8162     fi
8163     vervar="`echo METAPOST | tr 'a-z' 'A-Z'`_VERSION"
8164     eval `echo $vervar=$num`
8165 ##    AC_SUBST(`eval echo $vervar`)
8166
8167     fi
8168
8169     if test "$METAPOST" != ""; then
8170         ver=`
8171     ## "$METAPOST" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8172     ##
8173     ## ARG.
8174     ## Workaround for broken Debian gcc version string:
8175     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8176     ##
8177     ## -V: Workaround for python
8178
8179     #dnl
8180
8181     ## Assume and hunt for dotted version multiplet.
8182     ## use eval trickery, because we cannot use multi-level $() instead of ``
8183     ## for compatibility reasons.
8184
8185     ## grab the first version number in  --version output.
8186     eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 |
8187                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8188                 head -n 1 |
8189                 tr ' ' '\n' |
8190                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8191                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8192                 head -n 1\`\"
8193
8194     if test -z "$_ver"; then
8195         ## If empty, try date [fontforge]
8196         eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 \
8197             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8198             | head -n 1 \
8199             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8200     fi
8201     echo "$_ver"
8202     #dnl
8203 `
8204         num=`
8205     echo "$ver" | awk -F. '
8206     {
8207       if ($3) {three = $3}
8208       else {three = 0}
8209     }
8210     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8211 `
8212         # Avoid buggy metapost versions: 1.600 <= x < 1.803
8213         if test "$num" -ge "1600000" -a "$num" -lt "1803000"; then
8214
8215     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""mpost (due to a bug in metapost, versions 1.600 <= x < 1.803 are not supported; installed: $ver)"\"`\"
8216
8217         fi
8218     fi
8219
8220     { $as_echo "$as_me:$LINENO: checking for working metafont mode" >&5
8221 $as_echo_n "checking for working metafont mode... " >&6; }
8222     modelist='ljfour lj4 lj3 lj2 ljet laserjet'
8223     for MFMODE in $modelist; do
8224         $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
8225         if test -f mfput.tfm; then
8226             break;
8227         fi
8228     done
8229     { $as_echo "$as_me:$LINENO: result: $MFMODE" >&5
8230 $as_echo "$MFMODE" >&6; }
8231
8232     rm -f mfput.*
8233
8234
8235
8236
8237
8238     for ac_prog in kpsewhich
8239 do
8240   # Extract the first word of "$ac_prog", so it can be a program name with args.
8241 set dummy $ac_prog; ac_word=$2
8242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if test "${ac_cv_prog_KPSEWHICH+set}" = set; then
8245   $as_echo_n "(cached) " >&6
8246 else
8247   if test -n "$KPSEWHICH"; then
8248   ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
8249 else
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8252 do
8253   IFS=$as_save_IFS
8254   test -z "$as_dir" && as_dir=.
8255   for ac_exec_ext in '' $ac_executable_extensions; do
8256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8257     ac_cv_prog_KPSEWHICH="$ac_prog"
8258     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8259     break 2
8260   fi
8261 done
8262 done
8263 IFS=$as_save_IFS
8264
8265 fi
8266 fi
8267 KPSEWHICH=$ac_cv_prog_KPSEWHICH
8268 if test -n "$KPSEWHICH"; then
8269   { $as_echo "$as_me:$LINENO: result: $KPSEWHICH" >&5
8270 $as_echo "$KPSEWHICH" >&6; }
8271 else
8272   { $as_echo "$as_me:$LINENO: result: no" >&5
8273 $as_echo "no" >&6; }
8274 fi
8275
8276
8277   test -n "$KPSEWHICH" && break
8278 done
8279 test -n "$KPSEWHICH" || KPSEWHICH="no"
8280
8281
8282
8283     r="`eval echo '$'"KPSEWHICH"`"
8284     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
8285         true
8286     else
8287         ##STEPMAKE_WARN(cannot find . )
8288         false
8289     fi
8290
8291     if test $? -ne 0; then
8292
8293     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"kpsewhich\"`\"
8294
8295         if test "REQUIRED" = "REQUIRED"; then
8296             command="echo ERROR: kpsewhich not found"
8297             # abort configure process here?
8298         else
8299             command="- echo kpsewhich not found"
8300         fi
8301         eval "KPSEWHICH"='$command'
8302         false
8303     else
8304         true
8305     fi
8306
8307     if test $? -eq 0 -a -n ""; then
8308
8309     r="`eval echo '$'"KPSEWHICH"`"
8310     { $as_echo "$as_me:$LINENO: checking $r version" >&5
8311 $as_echo_n "checking $r version... " >&6; }
8312     exe=`
8313     ## which doesn't work in ash, if /usr/bin/which isn't installed
8314     ## type -p doesn't work in ash
8315     ## command -v doesn't work in zsh
8316     ## command -v "$r" 2>&1
8317     ## this test should work in ash, bash, pdksh (ksh), zsh
8318     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8319 `
8320     if test -n ""; then
8321         ver=""
8322     else
8323         ver=`
8324     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8325     ##
8326     ## ARG.
8327     ## Workaround for broken Debian gcc version string:
8328     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8329     ##
8330     ## -V: Workaround for python
8331
8332     #dnl
8333
8334     ## Assume and hunt for dotted version multiplet.
8335     ## use eval trickery, because we cannot use multi-level $() instead of ``
8336     ## for compatibility reasons.
8337
8338     ## grab the first version number in  --version output.
8339     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8340                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8341                 head -n 1 |
8342                 tr ' ' '\n' |
8343                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8344                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8345                 head -n 1\`\"
8346
8347     if test -z "$_ver"; then
8348         ## If empty, try date [fontforge]
8349         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8350             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8351             | head -n 1 \
8352             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8353     fi
8354     echo "$_ver"
8355     #dnl
8356 `
8357     fi
8358     num=`
8359     echo "$ver" | awk -F. '
8360     {
8361       if ($3) {three = $3}
8362       else {three = 0}
8363     }
8364     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8365 `
8366     req=`
8367     echo "" | awk -F. '
8368     {
8369       if ($3) {three = $3}
8370       else {three = 0}
8371     }
8372     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8373 `
8374     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8375 $as_echo "$ver" >&6; }
8376     if test "$num" -lt "$req"; then
8377
8378     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
8379
8380     fi
8381     vervar="`echo KPSEWHICH | tr 'a-z' 'A-Z'`_VERSION"
8382     eval `echo $vervar=$num`
8383 ##    AC_SUBST(`eval echo $vervar`)
8384
8385     fi
8386
8387
8388     { $as_echo "$as_me:$LINENO: checking for metapost required files" >&5
8389 $as_echo_n "checking for metapost required files... " >&6; }
8390     if test "$MFPLAIN_MP" = ""; then
8391         MFPLAIN_MP=`kpsewhich -format=mp mfplain`
8392     fi
8393     if test "$MFPLAIN_MP" = ""; then
8394         { $as_echo "$as_me:$LINENO: result: no" >&5
8395 $as_echo "no" >&6; }
8396
8397     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'metapost CTAN package (texlive-metapost)'\"`\"
8398
8399     else
8400         { $as_echo "$as_me:$LINENO: result: yes" >&5
8401 $as_echo "yes" >&6; }
8402     fi
8403
8404 if test "$GUILEv2" = "yes"
8405 then
8406
8407     ## First, let's just see if we can find Guile at all.
8408     test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8409     test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8410     { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8411 $as_echo_n "checking for guile-config... " >&6; }
8412     guile_config="guile-config"
8413     found="no"
8414     for r in $GUILE_CONFIG $target_guile_config $host_guile_config $build_guile_config guile-config guile2-config guile2.0-config guile-2.0-config guile1-config guile1.9-config guile1.8-config guile-1-config guile-1.9-config guile-1.8-config; do
8415         exe=`
8416     ## which doesn't work in ash, if /usr/bin/which isn't installed
8417     ## type -p doesn't work in ash
8418     ## command -v doesn't work in zsh
8419     ## command -v "$r" 2>&1
8420     ## this test should work in ash, bash, pdksh (ksh), zsh
8421     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8422 `
8423         if ! $exe --version > /dev/null 2>&1 ; then
8424             continue
8425         fi
8426         ver=`
8427     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8428     ##
8429     ## ARG.
8430     ## Workaround for broken Debian gcc version string:
8431     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8432     ##
8433     ## -V: Workaround for python
8434
8435     #dnl
8436
8437     ## Assume and hunt for dotted version multiplet.
8438     ## use eval trickery, because we cannot use multi-level $() instead of ``
8439     ## for compatibility reasons.
8440
8441     ## grab the first version number in  --version output.
8442     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8443                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8444                 head -n 1 |
8445                 tr ' ' '\n' |
8446                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8447                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8448                 head -n 1\`\"
8449
8450     if test -z "$_ver"; then
8451         ## If empty, try date [fontforge]
8452         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8453             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8454             | head -n 1 \
8455             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8456     fi
8457     echo "$_ver"
8458     #dnl
8459 `
8460         num=`
8461     echo "$ver" | awk -F. '
8462     {
8463       if ($3) {three = $3}
8464       else {three = 0}
8465     }
8466     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8467 `
8468         req=`
8469     echo "2.0.7" | awk -F. '
8470     {
8471       if ($3) {three = $3}
8472       else {three = 0}
8473     }
8474     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8475 `
8476         sup=`
8477     echo "2.2.0" | awk -F. '
8478     {
8479       if ($3) {three = $3}
8480       else {three = 0}
8481     }
8482     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8483 `
8484         if test -n "2.0.7" -a "$num" -lt "$req"; then
8485             guile_config="$r >= 2.0.7 (installed: $ver)"
8486             continue
8487         else
8488             if test -n "2.2.0" -a "$num" -ge "$sup"; then
8489                 guile_config="$r < 2.2.0 (installed: $ver)"
8490                 continue
8491             else
8492                 guile_config=$r
8493                 found=$r
8494                 break
8495             fi
8496         fi
8497     done
8498     { $as_echo "$as_me:$LINENO: result: $found" >&5
8499 $as_echo "$found" >&6; }
8500     if test "$found" != "no"; then
8501         { $as_echo "$as_me:$LINENO: checking $guile_config version" >&5
8502 $as_echo_n "checking $guile_config version... " >&6; }
8503         { $as_echo "$as_me:$LINENO: result: $ver" >&5
8504 $as_echo "$ver" >&6; }
8505         GUILE_CONFIG=$found
8506     else
8507
8508     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$guile_config (guile-devel, guile-dev or libguile-dev package)"\"`\"
8509
8510     fi
8511
8512
8513
8514     guile_version="$ver"
8515     #dnl
8516     GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
8517     GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
8518     GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8519     #dnl
8520
8521     exe=`
8522     ## which doesn't work in ash, if /usr/bin/which isn't installed
8523     ## type -p doesn't work in ash
8524     ## command -v doesn't work in zsh
8525     ## command -v "$guile_config" 2>&1
8526     ## this test should work in ash, bash, pdksh (ksh), zsh
8527     type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
8528 `
8529     if test -x $exe; then
8530         { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
8531 $as_echo_n "checking guile compile flags... " >&6; }
8532         GUILE_CFLAGS="`$guile_config compile`"
8533         { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
8534 $as_echo "$GUILE_CFLAGS" >&6; }
8535         { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
8536 $as_echo_n "checking guile link flags... " >&6; }
8537         GUILE_LDFLAGS="`$guile_config link`"
8538         { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
8539 $as_echo "$GUILE_LDFLAGS" >&6; }
8540     fi
8541
8542
8543
8544     save_CPPFLAGS="$CPPFLAGS"
8545     save_LIBS="$LIBS"
8546     CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8547     LIBS="$GUILE_LDFLAGS $LIBS"
8548
8549 for ac_header in libguile.h
8550 do
8551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8553   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8554 $as_echo_n "checking for $ac_header... " >&6; }
8555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8556   $as_echo_n "(cached) " >&6
8557 fi
8558 ac_res=`eval 'as_val=${'$as_ac_Header'}
8559                  $as_echo "$as_val"'`
8560                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8561 $as_echo "$ac_res" >&6; }
8562 else
8563   # Is the header compilable?
8564 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8565 $as_echo_n "checking $ac_header usability... " >&6; }
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h.  */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h.  */
8572 $ac_includes_default
8573 #include <$ac_header>
8574 _ACEOF
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8577 case "(($ac_try" in
8578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579   *) ac_try_echo=$ac_try;;
8580 esac
8581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8582 $as_echo "$ac_try_echo") >&5
8583   (eval "$ac_compile") 2>conftest.er1
8584   ac_status=$?
8585   grep -v '^ *+' conftest.er1 >conftest.err
8586   rm -f conftest.er1
8587   cat conftest.err >&5
8588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); } && {
8590          test -z "$ac_cxx_werror_flag" ||
8591          test ! -s conftest.err
8592        } && test -s conftest.$ac_objext; then
8593   ac_header_compiler=yes
8594 else
8595   $as_echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8597
8598         ac_header_compiler=no
8599 fi
8600
8601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8603 $as_echo "$ac_header_compiler" >&6; }
8604
8605 # Is the header present?
8606 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8607 $as_echo_n "checking $ac_header presence... " >&6; }
8608 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h.  */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h.  */
8614 #include <$ac_header>
8615 _ACEOF
8616 if { (ac_try="$ac_cpp conftest.$ac_ext"
8617 case "(($ac_try" in
8618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619   *) ac_try_echo=$ac_try;;
8620 esac
8621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8622 $as_echo "$ac_try_echo") >&5
8623   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8624   ac_status=$?
8625   grep -v '^ *+' conftest.er1 >conftest.err
8626   rm -f conftest.er1
8627   cat conftest.err >&5
8628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); } >/dev/null && {
8630          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8631          test ! -s conftest.err
8632        }; then
8633   ac_header_preproc=yes
8634 else
8635   $as_echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8637
8638   ac_header_preproc=no
8639 fi
8640
8641 rm -f conftest.err conftest.$ac_ext
8642 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8643 $as_echo "$ac_header_preproc" >&6; }
8644
8645 # So?  What about this header?
8646 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8647   yes:no: )
8648     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8649 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8650     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8651 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8652     ac_header_preproc=yes
8653     ;;
8654   no:yes:* )
8655     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8656 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8657     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8658 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8659     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8660 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8661     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8662 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8663     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8664 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8665     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8666 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8667
8668     ;;
8669 esac
8670 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8671 $as_echo_n "checking for $ac_header... " >&6; }
8672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8673   $as_echo_n "(cached) " >&6
8674 else
8675   eval "$as_ac_Header=\$ac_header_preproc"
8676 fi
8677 ac_res=`eval 'as_val=${'$as_ac_Header'}
8678                  $as_echo "$as_val"'`
8679                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8680 $as_echo "$ac_res" >&6; }
8681
8682 fi
8683 as_val=`eval 'as_val=${'$as_ac_Header'}
8684                  $as_echo "$as_val"'`
8685    if test "x$as_val" = x""yes; then
8686   cat >>confdefs.h <<_ACEOF
8687 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8688 _ACEOF
8689
8690 fi
8691
8692 done
8693
8694
8695 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
8696 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
8697 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
8698   $as_echo_n "(cached) " >&6
8699 else
8700   ac_check_lib_save_LIBS=$LIBS
8701 LIBS="-lguile  $LIBS"
8702 cat >conftest.$ac_ext <<_ACEOF
8703 /* confdefs.h.  */
8704 _ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h.  */
8708
8709 /* Override any GCC internal prototype to avoid an error.
8710    Use char because int might match the return type of a GCC
8711    builtin and then its argument prototype would still apply.  */
8712 #ifdef __cplusplus
8713 extern "C"
8714 #endif
8715 char scm_boot_guile ();
8716 int
8717 main ()
8718 {
8719 return scm_boot_guile ();
8720   ;
8721   return 0;
8722 }
8723 _ACEOF
8724 rm -f conftest.$ac_objext conftest$ac_exeext
8725 if { (ac_try="$ac_link"
8726 case "(($ac_try" in
8727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728   *) ac_try_echo=$ac_try;;
8729 esac
8730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8731 $as_echo "$ac_try_echo") >&5
8732   (eval "$ac_link") 2>conftest.er1
8733   ac_status=$?
8734   grep -v '^ *+' conftest.er1 >conftest.err
8735   rm -f conftest.er1
8736   cat conftest.err >&5
8737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); } && {
8739          test -z "$ac_cxx_werror_flag" ||
8740          test ! -s conftest.err
8741        } && test -s conftest$ac_exeext && {
8742          test "$cross_compiling" = yes ||
8743          $as_test_x conftest$ac_exeext
8744        }; then
8745   ac_cv_lib_guile_scm_boot_guile=yes
8746 else
8747   $as_echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8749
8750         ac_cv_lib_guile_scm_boot_guile=no
8751 fi
8752
8753 rm -rf conftest.dSYM
8754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8755       conftest$ac_exeext conftest.$ac_ext
8756 LIBS=$ac_check_lib_save_LIBS
8757 fi
8758 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
8759 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
8760 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
8761   cat >>confdefs.h <<_ACEOF
8762 #define HAVE_LIBGUILE 1
8763 _ACEOF
8764
8765   LIBS="-lguile $LIBS"
8766
8767 fi
8768
8769
8770 for ac_func in scm_boot_guile
8771 do
8772 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8773 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8774 $as_echo_n "checking for $ac_func... " >&6; }
8775 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8776   $as_echo_n "(cached) " >&6
8777 else
8778   cat >conftest.$ac_ext <<_ACEOF
8779 /* confdefs.h.  */
8780 _ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h.  */
8784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8786 #define $ac_func innocuous_$ac_func
8787
8788 /* System header to define __stub macros and hopefully few prototypes,
8789     which can conflict with char $ac_func (); below.
8790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8791     <limits.h> exists even on freestanding compilers.  */
8792
8793 #ifdef __STDC__
8794 # include <limits.h>
8795 #else
8796 # include <assert.h>
8797 #endif
8798
8799 #undef $ac_func
8800
8801 /* Override any GCC internal prototype to avoid an error.
8802    Use char because int might match the return type of a GCC
8803    builtin and then its argument prototype would still apply.  */
8804 #ifdef __cplusplus
8805 extern "C"
8806 #endif
8807 char $ac_func ();
8808 /* The GNU C library defines this for functions which it implements
8809     to always fail with ENOSYS.  Some functions are actually named
8810     something starting with __ and the normal name is an alias.  */
8811 #if defined __stub_$ac_func || defined __stub___$ac_func
8812 choke me
8813 #endif
8814
8815 int
8816 main ()
8817 {
8818 return $ac_func ();
8819   ;
8820   return 0;
8821 }
8822 _ACEOF
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (ac_try="$ac_link"
8825 case "(($ac_try" in
8826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827   *) ac_try_echo=$ac_try;;
8828 esac
8829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8830 $as_echo "$ac_try_echo") >&5
8831   (eval "$ac_link") 2>conftest.er1
8832   ac_status=$?
8833   grep -v '^ *+' conftest.er1 >conftest.err
8834   rm -f conftest.er1
8835   cat conftest.err >&5
8836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); } && {
8838          test -z "$ac_cxx_werror_flag" ||
8839          test ! -s conftest.err
8840        } && test -s conftest$ac_exeext && {
8841          test "$cross_compiling" = yes ||
8842          $as_test_x conftest$ac_exeext
8843        }; then
8844   eval "$as_ac_var=yes"
8845 else
8846   $as_echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8848
8849         eval "$as_ac_var=no"
8850 fi
8851
8852 rm -rf conftest.dSYM
8853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8854       conftest$ac_exeext conftest.$ac_ext
8855 fi
8856 ac_res=`eval 'as_val=${'$as_ac_var'}
8857                  $as_echo "$as_val"'`
8858                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8859 $as_echo "$ac_res" >&6; }
8860 as_val=`eval 'as_val=${'$as_ac_var'}
8861                  $as_echo "$as_val"'`
8862    if test "x$as_val" = x""yes; then
8863   cat >>confdefs.h <<_ACEOF
8864 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8865 _ACEOF
8866
8867 else
8868   libguile_b=no
8869 fi
8870 done
8871
8872     if test "$libguile_b" = "no"; then
8873             warn='libguile (libguile-dev, guile-devel or guile-dev
8874    package).'
8875
8876     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8877
8878     fi
8879     CPPFLAGS="$save_CPPFLAGS"
8880     LIBS="$save_LIBS"
8881     cat >>confdefs.h <<_ACEOF
8882 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
8883 _ACEOF
8884
8885     cat >>confdefs.h <<_ACEOF
8886 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
8887 _ACEOF
8888
8889     cat >>confdefs.h <<_ACEOF
8890 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
8891 _ACEOF
8892
8893
8894 else
8895
8896     ## First, let's just see if we can find Guile at all.
8897     test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8898     test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8899     { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8900 $as_echo_n "checking for guile-config... " >&6; }
8901     guile_config="guile-config"
8902     found="no"
8903     for r in $GUILE_CONFIG $target_guile_config $host_guile_config $build_guile_config guile-config guile2-config guile2.0-config guile-2.0-config guile1-config guile1.9-config guile1.8-config guile-1-config guile-1.9-config guile-1.8-config; do
8904         exe=`
8905     ## which doesn't work in ash, if /usr/bin/which isn't installed
8906     ## type -p doesn't work in ash
8907     ## command -v doesn't work in zsh
8908     ## command -v "$r" 2>&1
8909     ## this test should work in ash, bash, pdksh (ksh), zsh
8910     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8911 `
8912         if ! $exe --version > /dev/null 2>&1 ; then
8913             continue
8914         fi
8915         ver=`
8916     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8917     ##
8918     ## ARG.
8919     ## Workaround for broken Debian gcc version string:
8920     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8921     ##
8922     ## -V: Workaround for python
8923
8924     #dnl
8925
8926     ## Assume and hunt for dotted version multiplet.
8927     ## use eval trickery, because we cannot use multi-level $() instead of ``
8928     ## for compatibility reasons.
8929
8930     ## grab the first version number in  --version output.
8931     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8932                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8933                 head -n 1 |
8934                 tr ' ' '\n' |
8935                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8936                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8937                 head -n 1\`\"
8938
8939     if test -z "$_ver"; then
8940         ## If empty, try date [fontforge]
8941         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8942             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8943             | head -n 1 \
8944             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8945     fi
8946     echo "$_ver"
8947     #dnl
8948 `
8949         num=`
8950     echo "$ver" | awk -F. '
8951     {
8952       if ($3) {three = $3}
8953       else {three = 0}
8954     }
8955     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8956 `
8957         req=`
8958     echo "1.8.2" | awk -F. '
8959     {
8960       if ($3) {three = $3}
8961       else {three = 0}
8962     }
8963     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8964 `
8965         sup=`
8966     echo "1.9.0" | awk -F. '
8967     {
8968       if ($3) {three = $3}
8969       else {three = 0}
8970     }
8971     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8972 `
8973         if test -n "1.8.2" -a "$num" -lt "$req"; then
8974             guile_config="$r >= 1.8.2 (installed: $ver)"
8975             continue
8976         else
8977             if test -n "1.9.0" -a "$num" -ge "$sup"; then
8978                 guile_config="$r < 1.9.0 (installed: $ver)"
8979                 continue
8980             else
8981                 guile_config=$r
8982                 found=$r
8983                 break
8984             fi
8985         fi
8986     done
8987     { $as_echo "$as_me:$LINENO: result: $found" >&5
8988 $as_echo "$found" >&6; }
8989     if test "$found" != "no"; then
8990         { $as_echo "$as_me:$LINENO: checking $guile_config version" >&5
8991 $as_echo_n "checking $guile_config version... " >&6; }
8992         { $as_echo "$as_me:$LINENO: result: $ver" >&5
8993 $as_echo "$ver" >&6; }
8994         GUILE_CONFIG=$found
8995     else
8996
8997     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$guile_config (guile-devel, guile-dev or libguile-dev package)"\"`\"
8998
8999     fi
9000
9001
9002
9003     guile_version="$ver"
9004     #dnl
9005     GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
9006     GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
9007     GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9008     #dnl
9009
9010     exe=`
9011     ## which doesn't work in ash, if /usr/bin/which isn't installed
9012     ## type -p doesn't work in ash
9013     ## command -v doesn't work in zsh
9014     ## command -v "$guile_config" 2>&1
9015     ## this test should work in ash, bash, pdksh (ksh), zsh
9016     type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
9017 `
9018     if test -x $exe; then
9019         { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
9020 $as_echo_n "checking guile compile flags... " >&6; }
9021         GUILE_CFLAGS="`$guile_config compile`"
9022         { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
9023 $as_echo "$GUILE_CFLAGS" >&6; }
9024         { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
9025 $as_echo_n "checking guile link flags... " >&6; }
9026         GUILE_LDFLAGS="`$guile_config link`"
9027         { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
9028 $as_echo "$GUILE_LDFLAGS" >&6; }
9029     fi
9030
9031
9032
9033     save_CPPFLAGS="$CPPFLAGS"
9034     save_LIBS="$LIBS"
9035     CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9036     LIBS="$GUILE_LDFLAGS $LIBS"
9037
9038 for ac_header in libguile.h
9039 do
9040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9042   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9043 $as_echo_n "checking for $ac_header... " >&6; }
9044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9045   $as_echo_n "(cached) " >&6
9046 fi
9047 ac_res=`eval 'as_val=${'$as_ac_Header'}
9048                  $as_echo "$as_val"'`
9049                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9050 $as_echo "$ac_res" >&6; }
9051 else
9052   # Is the header compilable?
9053 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9054 $as_echo_n "checking $ac_header usability... " >&6; }
9055 cat >conftest.$ac_ext <<_ACEOF
9056 /* confdefs.h.  */
9057 _ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h.  */
9061 $ac_includes_default
9062 #include <$ac_header>
9063 _ACEOF
9064 rm -f conftest.$ac_objext
9065 if { (ac_try="$ac_compile"
9066 case "(($ac_try" in
9067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068   *) ac_try_echo=$ac_try;;
9069 esac
9070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9071 $as_echo "$ac_try_echo") >&5
9072   (eval "$ac_compile") 2>conftest.er1
9073   ac_status=$?
9074   grep -v '^ *+' conftest.er1 >conftest.err
9075   rm -f conftest.er1
9076   cat conftest.err >&5
9077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   (exit $ac_status); } && {
9079          test -z "$ac_cxx_werror_flag" ||
9080          test ! -s conftest.err
9081        } && test -s conftest.$ac_objext; then
9082   ac_header_compiler=yes
9083 else
9084   $as_echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9086
9087         ac_header_compiler=no
9088 fi
9089
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9092 $as_echo "$ac_header_compiler" >&6; }
9093
9094 # Is the header present?
9095 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9096 $as_echo_n "checking $ac_header presence... " >&6; }
9097 cat >conftest.$ac_ext <<_ACEOF
9098 /* confdefs.h.  */
9099 _ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h.  */
9103 #include <$ac_header>
9104 _ACEOF
9105 if { (ac_try="$ac_cpp conftest.$ac_ext"
9106 case "(($ac_try" in
9107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9108   *) ac_try_echo=$ac_try;;
9109 esac
9110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9111 $as_echo "$ac_try_echo") >&5
9112   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9113   ac_status=$?
9114   grep -v '^ *+' conftest.er1 >conftest.err
9115   rm -f conftest.er1
9116   cat conftest.err >&5
9117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118   (exit $ac_status); } >/dev/null && {
9119          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9120          test ! -s conftest.err
9121        }; then
9122   ac_header_preproc=yes
9123 else
9124   $as_echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9126
9127   ac_header_preproc=no
9128 fi
9129
9130 rm -f conftest.err conftest.$ac_ext
9131 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9132 $as_echo "$ac_header_preproc" >&6; }
9133
9134 # So?  What about this header?
9135 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9136   yes:no: )
9137     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9138 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9139     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9140 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9141     ac_header_preproc=yes
9142     ;;
9143   no:yes:* )
9144     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9145 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9146     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9147 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9148     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9149 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9150     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9151 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9152     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9154     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9155 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9156
9157     ;;
9158 esac
9159 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9160 $as_echo_n "checking for $ac_header... " >&6; }
9161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9162   $as_echo_n "(cached) " >&6
9163 else
9164   eval "$as_ac_Header=\$ac_header_preproc"
9165 fi
9166 ac_res=`eval 'as_val=${'$as_ac_Header'}
9167                  $as_echo "$as_val"'`
9168                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9169 $as_echo "$ac_res" >&6; }
9170
9171 fi
9172 as_val=`eval 'as_val=${'$as_ac_Header'}
9173                  $as_echo "$as_val"'`
9174    if test "x$as_val" = x""yes; then
9175   cat >>confdefs.h <<_ACEOF
9176 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9177 _ACEOF
9178
9179 fi
9180
9181 done
9182
9183
9184 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
9185 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
9186 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
9187   $as_echo_n "(cached) " >&6
9188 else
9189   ac_check_lib_save_LIBS=$LIBS
9190 LIBS="-lguile  $LIBS"
9191 cat >conftest.$ac_ext <<_ACEOF
9192 /* confdefs.h.  */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h.  */
9197
9198 /* Override any GCC internal prototype to avoid an error.
9199    Use char because int might match the return type of a GCC
9200    builtin and then its argument prototype would still apply.  */
9201 #ifdef __cplusplus
9202 extern "C"
9203 #endif
9204 char scm_boot_guile ();
9205 int
9206 main ()
9207 {
9208 return scm_boot_guile ();
9209   ;
9210   return 0;
9211 }
9212 _ACEOF
9213 rm -f conftest.$ac_objext conftest$ac_exeext
9214 if { (ac_try="$ac_link"
9215 case "(($ac_try" in
9216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217   *) ac_try_echo=$ac_try;;
9218 esac
9219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9220 $as_echo "$ac_try_echo") >&5
9221   (eval "$ac_link") 2>conftest.er1
9222   ac_status=$?
9223   grep -v '^ *+' conftest.er1 >conftest.err
9224   rm -f conftest.er1
9225   cat conftest.err >&5
9226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227   (exit $ac_status); } && {
9228          test -z "$ac_cxx_werror_flag" ||
9229          test ! -s conftest.err
9230        } && test -s conftest$ac_exeext && {
9231          test "$cross_compiling" = yes ||
9232          $as_test_x conftest$ac_exeext
9233        }; then
9234   ac_cv_lib_guile_scm_boot_guile=yes
9235 else
9236   $as_echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9238
9239         ac_cv_lib_guile_scm_boot_guile=no
9240 fi
9241
9242 rm -rf conftest.dSYM
9243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9244       conftest$ac_exeext conftest.$ac_ext
9245 LIBS=$ac_check_lib_save_LIBS
9246 fi
9247 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
9248 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
9249 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
9250   cat >>confdefs.h <<_ACEOF
9251 #define HAVE_LIBGUILE 1
9252 _ACEOF
9253
9254   LIBS="-lguile $LIBS"
9255
9256 fi
9257
9258
9259 for ac_func in scm_boot_guile
9260 do
9261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9262 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9263 $as_echo_n "checking for $ac_func... " >&6; }
9264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9265   $as_echo_n "(cached) " >&6
9266 else
9267   cat >conftest.$ac_ext <<_ACEOF
9268 /* confdefs.h.  */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h.  */
9273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9275 #define $ac_func innocuous_$ac_func
9276
9277 /* System header to define __stub macros and hopefully few prototypes,
9278     which can conflict with char $ac_func (); below.
9279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9280     <limits.h> exists even on freestanding compilers.  */
9281
9282 #ifdef __STDC__
9283 # include <limits.h>
9284 #else
9285 # include <assert.h>
9286 #endif
9287
9288 #undef $ac_func
9289
9290 /* Override any GCC internal prototype to avoid an error.
9291    Use char because int might match the return type of a GCC
9292    builtin and then its argument prototype would still apply.  */
9293 #ifdef __cplusplus
9294 extern "C"
9295 #endif
9296 char $ac_func ();
9297 /* The GNU C library defines this for functions which it implements
9298     to always fail with ENOSYS.  Some functions are actually named
9299     something starting with __ and the normal name is an alias.  */
9300 #if defined __stub_$ac_func || defined __stub___$ac_func
9301 choke me
9302 #endif
9303
9304 int
9305 main ()
9306 {
9307 return $ac_func ();
9308   ;
9309   return 0;
9310 }
9311 _ACEOF
9312 rm -f conftest.$ac_objext conftest$ac_exeext
9313 if { (ac_try="$ac_link"
9314 case "(($ac_try" in
9315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9316   *) ac_try_echo=$ac_try;;
9317 esac
9318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9319 $as_echo "$ac_try_echo") >&5
9320   (eval "$ac_link") 2>conftest.er1
9321   ac_status=$?
9322   grep -v '^ *+' conftest.er1 >conftest.err
9323   rm -f conftest.er1
9324   cat conftest.err >&5
9325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326   (exit $ac_status); } && {
9327          test -z "$ac_cxx_werror_flag" ||
9328          test ! -s conftest.err
9329        } && test -s conftest$ac_exeext && {
9330          test "$cross_compiling" = yes ||
9331          $as_test_x conftest$ac_exeext
9332        }; then
9333   eval "$as_ac_var=yes"
9334 else
9335   $as_echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9337
9338         eval "$as_ac_var=no"
9339 fi
9340
9341 rm -rf conftest.dSYM
9342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9343       conftest$ac_exeext conftest.$ac_ext
9344 fi
9345 ac_res=`eval 'as_val=${'$as_ac_var'}
9346                  $as_echo "$as_val"'`
9347                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9348 $as_echo "$ac_res" >&6; }
9349 as_val=`eval 'as_val=${'$as_ac_var'}
9350                  $as_echo "$as_val"'`
9351    if test "x$as_val" = x""yes; then
9352   cat >>confdefs.h <<_ACEOF
9353 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9354 _ACEOF
9355
9356 else
9357   libguile_b=no
9358 fi
9359 done
9360
9361     if test "$libguile_b" = "no"; then
9362             warn='libguile (libguile-dev, guile-devel or guile-dev
9363    package).'
9364
9365     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
9366
9367     fi
9368     CPPFLAGS="$save_CPPFLAGS"
9369     LIBS="$save_LIBS"
9370     cat >>confdefs.h <<_ACEOF
9371 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
9372 _ACEOF
9373
9374     cat >>confdefs.h <<_ACEOF
9375 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
9376 _ACEOF
9377
9378     cat >>confdefs.h <<_ACEOF
9379 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
9380 _ACEOF
9381
9382
9383 fi
9384
9385 # check for 3 typedefs added in Guile 1.9
9386 save_CXXFLAGS="$CXXFLAGS"
9387 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS"
9388 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_fold_fn" >&5
9389 $as_echo_n "checking for scm_t_hash_fold_fn... " >&6; }
9390 if test "${ac_cv_type_scm_t_hash_fold_fn+set}" = set; then
9391   $as_echo_n "(cached) " >&6
9392 else
9393   ac_cv_type_scm_t_hash_fold_fn=no
9394 cat >conftest.$ac_ext <<_ACEOF
9395 /* confdefs.h.  */
9396 _ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h.  */
9400 #include <libguile.h>
9401
9402 int
9403 main ()
9404 {
9405 if (sizeof (scm_t_hash_fold_fn))
9406        return 0;
9407   ;
9408   return 0;
9409 }
9410 _ACEOF
9411 rm -f conftest.$ac_objext
9412 if { (ac_try="$ac_compile"
9413 case "(($ac_try" in
9414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9415   *) ac_try_echo=$ac_try;;
9416 esac
9417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9418 $as_echo "$ac_try_echo") >&5
9419   (eval "$ac_compile") 2>conftest.er1
9420   ac_status=$?
9421   grep -v '^ *+' conftest.er1 >conftest.err
9422   rm -f conftest.er1
9423   cat conftest.err >&5
9424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); } && {
9426          test -z "$ac_cxx_werror_flag" ||
9427          test ! -s conftest.err
9428        } && test -s conftest.$ac_objext; then
9429   cat >conftest.$ac_ext <<_ACEOF
9430 /* confdefs.h.  */
9431 _ACEOF
9432 cat confdefs.h >>conftest.$ac_ext
9433 cat >>conftest.$ac_ext <<_ACEOF
9434 /* end confdefs.h.  */
9435 #include <libguile.h>
9436
9437 int
9438 main ()
9439 {
9440 if (sizeof ((scm_t_hash_fold_fn)))
9441           return 0;
9442   ;
9443   return 0;
9444 }
9445 _ACEOF
9446 rm -f conftest.$ac_objext
9447 if { (ac_try="$ac_compile"
9448 case "(($ac_try" in
9449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450   *) ac_try_echo=$ac_try;;
9451 esac
9452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9453 $as_echo "$ac_try_echo") >&5
9454   (eval "$ac_compile") 2>conftest.er1
9455   ac_status=$?
9456   grep -v '^ *+' conftest.er1 >conftest.err
9457   rm -f conftest.er1
9458   cat conftest.err >&5
9459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460   (exit $ac_status); } && {
9461          test -z "$ac_cxx_werror_flag" ||
9462          test ! -s conftest.err
9463        } && test -s conftest.$ac_objext; then
9464   :
9465 else
9466   $as_echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9468
9469         ac_cv_type_scm_t_hash_fold_fn=yes
9470 fi
9471
9472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9473 else
9474   $as_echo "$as_me: failed program was:" >&5
9475 sed 's/^/| /' conftest.$ac_ext >&5
9476
9477
9478 fi
9479
9480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9481 fi
9482 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_fold_fn" >&5
9483 $as_echo "$ac_cv_type_scm_t_hash_fold_fn" >&6; }
9484 if test "x$ac_cv_type_scm_t_hash_fold_fn" = x""yes; then
9485
9486 cat >>confdefs.h <<_ACEOF
9487 #define HAVE_SCM_T_HASH_FOLD_FN 1
9488 _ACEOF
9489
9490 cat >>confdefs.h <<\_ACEOF
9491 #define HAVE_GUILE_HASH_FUNC 1
9492 _ACEOF
9493
9494 fi
9495 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_handle_fn" >&5
9496 $as_echo_n "checking for scm_t_hash_handle_fn... " >&6; }
9497 if test "${ac_cv_type_scm_t_hash_handle_fn+set}" = set; then
9498   $as_echo_n "(cached) " >&6
9499 else
9500   ac_cv_type_scm_t_hash_handle_fn=no
9501 cat >conftest.$ac_ext <<_ACEOF
9502 /* confdefs.h.  */
9503 _ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h.  */
9507 #include <libguile.h>
9508
9509 int
9510 main ()
9511 {
9512 if (sizeof (scm_t_hash_handle_fn))
9513        return 0;
9514   ;
9515   return 0;
9516 }
9517 _ACEOF
9518 rm -f conftest.$ac_objext
9519 if { (ac_try="$ac_compile"
9520 case "(($ac_try" in
9521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522   *) ac_try_echo=$ac_try;;
9523 esac
9524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9525 $as_echo "$ac_try_echo") >&5
9526   (eval "$ac_compile") 2>conftest.er1
9527   ac_status=$?
9528   grep -v '^ *+' conftest.er1 >conftest.err
9529   rm -f conftest.er1
9530   cat conftest.err >&5
9531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532   (exit $ac_status); } && {
9533          test -z "$ac_cxx_werror_flag" ||
9534          test ! -s conftest.err
9535        } && test -s conftest.$ac_objext; then
9536   cat >conftest.$ac_ext <<_ACEOF
9537 /* confdefs.h.  */
9538 _ACEOF
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h.  */
9542 #include <libguile.h>
9543
9544 int
9545 main ()
9546 {
9547 if (sizeof ((scm_t_hash_handle_fn)))
9548           return 0;
9549   ;
9550   return 0;
9551 }
9552 _ACEOF
9553 rm -f conftest.$ac_objext
9554 if { (ac_try="$ac_compile"
9555 case "(($ac_try" in
9556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557   *) ac_try_echo=$ac_try;;
9558 esac
9559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9560 $as_echo "$ac_try_echo") >&5
9561   (eval "$ac_compile") 2>conftest.er1
9562   ac_status=$?
9563   grep -v '^ *+' conftest.er1 >conftest.err
9564   rm -f conftest.er1
9565   cat conftest.err >&5
9566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); } && {
9568          test -z "$ac_cxx_werror_flag" ||
9569          test ! -s conftest.err
9570        } && test -s conftest.$ac_objext; then
9571   :
9572 else
9573   $as_echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9575
9576         ac_cv_type_scm_t_hash_handle_fn=yes
9577 fi
9578
9579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9580 else
9581   $as_echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9583
9584
9585 fi
9586
9587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9588 fi
9589 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_handle_fn" >&5
9590 $as_echo "$ac_cv_type_scm_t_hash_handle_fn" >&6; }
9591 if test "x$ac_cv_type_scm_t_hash_handle_fn" = x""yes; then
9592
9593 cat >>confdefs.h <<_ACEOF
9594 #define HAVE_SCM_T_HASH_HANDLE_FN 1
9595 _ACEOF
9596
9597 cat >>confdefs.h <<\_ACEOF
9598 #define HAVE_GUILE_HASH_FUNC 1
9599 _ACEOF
9600
9601 fi
9602
9603 { $as_echo "$as_me:$LINENO: checking for scm_t_subr" >&5
9604 $as_echo_n "checking for scm_t_subr... " >&6; }
9605 if test "${ac_cv_type_scm_t_subr+set}" = set; then
9606   $as_echo_n "(cached) " >&6
9607 else
9608   ac_cv_type_scm_t_subr=no
9609 cat >conftest.$ac_ext <<_ACEOF
9610 /* confdefs.h.  */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h.  */
9615 #include <libguile.h>
9616
9617 int
9618 main ()
9619 {
9620 if (sizeof (scm_t_subr))
9621        return 0;
9622   ;
9623   return 0;
9624 }
9625 _ACEOF
9626 rm -f conftest.$ac_objext
9627 if { (ac_try="$ac_compile"
9628 case "(($ac_try" in
9629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630   *) ac_try_echo=$ac_try;;
9631 esac
9632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9633 $as_echo "$ac_try_echo") >&5
9634   (eval "$ac_compile") 2>conftest.er1
9635   ac_status=$?
9636   grep -v '^ *+' conftest.er1 >conftest.err
9637   rm -f conftest.er1
9638   cat conftest.err >&5
9639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640   (exit $ac_status); } && {
9641          test -z "$ac_cxx_werror_flag" ||
9642          test ! -s conftest.err
9643        } && test -s conftest.$ac_objext; then
9644   cat >conftest.$ac_ext <<_ACEOF
9645 /* confdefs.h.  */
9646 _ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h.  */
9650 #include <libguile.h>
9651
9652 int
9653 main ()
9654 {
9655 if (sizeof ((scm_t_subr)))
9656           return 0;
9657   ;
9658   return 0;
9659 }
9660 _ACEOF
9661 rm -f conftest.$ac_objext
9662 if { (ac_try="$ac_compile"
9663 case "(($ac_try" in
9664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665   *) ac_try_echo=$ac_try;;
9666 esac
9667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9668 $as_echo "$ac_try_echo") >&5
9669   (eval "$ac_compile") 2>conftest.er1
9670   ac_status=$?
9671   grep -v '^ *+' conftest.er1 >conftest.err
9672   rm -f conftest.er1
9673   cat conftest.err >&5
9674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); } && {
9676          test -z "$ac_cxx_werror_flag" ||
9677          test ! -s conftest.err
9678        } && test -s conftest.$ac_objext; then
9679   :
9680 else
9681   $as_echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9683
9684         ac_cv_type_scm_t_subr=yes
9685 fi
9686
9687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9688 else
9689   $as_echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9691
9692
9693 fi
9694
9695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9696 fi
9697 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_subr" >&5
9698 $as_echo "$ac_cv_type_scm_t_subr" >&6; }
9699 if test "x$ac_cv_type_scm_t_subr" = x""yes; then
9700
9701 cat >>confdefs.h <<_ACEOF
9702 #define HAVE_SCM_T_SUBR 1
9703 _ACEOF
9704
9705 cat >>confdefs.h <<\_ACEOF
9706 #define HAVE_GUILE_SUBR_TYPE 1
9707 _ACEOF
9708
9709 fi
9710
9711 CXXFLAGS="$save_CXXFLAGS"
9712
9713 ## Check for usable cxxabi
9714 save_LIBS="$LIBS"
9715 LIBS="$LIBS $CXXABI_LIBS"
9716 { $as_echo "$as_me:$LINENO: checking for usable C++ demangler" >&5
9717 $as_echo_n "checking for usable C++ demangler... " >&6; }
9718 cat >conftest.$ac_ext <<_ACEOF
9719 /* confdefs.h.  */
9720 _ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h.  */
9724 #include <cxxabi.h>
9725 int
9726 main ()
9727 {
9728 abi::__cxa_demangle ("", 0, 0, 0)
9729   ;
9730   return 0;
9731 }
9732 _ACEOF
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (ac_try="$ac_link"
9735 case "(($ac_try" in
9736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737   *) ac_try_echo=$ac_try;;
9738 esac
9739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9740 $as_echo "$ac_try_echo") >&5
9741   (eval "$ac_link") 2>conftest.er1
9742   ac_status=$?
9743   grep -v '^ *+' conftest.er1 >conftest.err
9744   rm -f conftest.er1
9745   cat conftest.err >&5
9746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); } && {
9748          test -z "$ac_cxx_werror_flag" ||
9749          test ! -s conftest.err
9750        } && test -s conftest$ac_exeext && {
9751          test "$cross_compiling" = yes ||
9752          $as_test_x conftest$ac_exeext
9753        }; then
9754   cat >>confdefs.h <<\_ACEOF
9755 #define HAVE_CXA_DEMANGLE 1
9756 _ACEOF
9757
9758         { $as_echo "$as_me:$LINENO: result: yes" >&5
9759 $as_echo "yes" >&6; }
9760 else
9761   $as_echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9763
9764
9765         LIBS="$LIBS -lsupc++"
9766         cat >conftest.$ac_ext <<_ACEOF
9767 /* confdefs.h.  */
9768 _ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h.  */
9772 #include <cxxabi.h>
9773 int
9774 main ()
9775 {
9776 abi::__cxa_demangle ("", 0, 0, 0)
9777   ;
9778   return 0;
9779 }
9780 _ACEOF
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (ac_try="$ac_link"
9783 case "(($ac_try" in
9784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785   *) ac_try_echo=$ac_try;;
9786 esac
9787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9788 $as_echo "$ac_try_echo") >&5
9789   (eval "$ac_link") 2>conftest.er1
9790   ac_status=$?
9791   grep -v '^ *+' conftest.er1 >conftest.err
9792   rm -f conftest.er1
9793   cat conftest.err >&5
9794   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); } && {
9796          test -z "$ac_cxx_werror_flag" ||
9797          test ! -s conftest.err
9798        } && test -s conftest$ac_exeext && {
9799          test "$cross_compiling" = yes ||
9800          $as_test_x conftest$ac_exeext
9801        }; then
9802   cat >>confdefs.h <<\_ACEOF
9803 #define HAVE_CXA_DEMANGLE 1
9804 _ACEOF
9805
9806                 { $as_echo "$as_me:$LINENO: result: yes, using -lsupc++" >&5
9807 $as_echo "yes, using -lsupc++" >&6; }
9808                 CXXABI_LIBS="$CXXABI_LIBS -lsupc++"
9809 else
9810   $as_echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9812
9813         { $as_echo "$as_me:$LINENO: result: no, use c++filt -t for manual demangling" >&5
9814 $as_echo "no, use c++filt -t for manual demangling" >&6; }
9815 fi
9816
9817 rm -rf conftest.dSYM
9818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9819       conftest$ac_exeext conftest.$ac_ext
9820 fi
9821
9822 rm -rf conftest.dSYM
9823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9824       conftest$ac_exeext conftest.$ac_ext
9825 LIBS="$save_LIBS"
9826
9827
9828 ## check rational bugfix.
9829 save_CPPFLAGS="$CPPFLAGS"
9830 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9831 { $as_echo "$as_me:$LINENO: checking GUILE rational bugfix" >&5
9832 $as_echo_n "checking GUILE rational bugfix... " >&6; }
9833 cat >conftest.$ac_ext <<_ACEOF
9834 /* confdefs.h.  */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h.  */
9839 #include <libguile.h>
9840 #ifdef SCM_FRACTION_REDUCED_BIT
9841 #error
9842 #endif
9843
9844 _ACEOF
9845 if { (ac_try="$ac_cpp conftest.$ac_ext"
9846 case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9851 $as_echo "$ac_try_echo") >&5
9852   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9853   ac_status=$?
9854   grep -v '^ *+' conftest.er1 >conftest.err
9855   rm -f conftest.er1
9856   cat conftest.err >&5
9857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); } >/dev/null && {
9859          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9860          test ! -s conftest.err
9861        }; then
9862   { $as_echo "$as_me:$LINENO: result: ok" >&5
9863 $as_echo "ok" >&6; }
9864 else
9865   $as_echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9867
9868   REQUIRED="$REQUIRED GUILE-with-rational-bugfix"
9869 { $as_echo "$as_me:$LINENO: result: Must have patched GUILE rational support. See INSTALL.txt" >&5
9870 $as_echo "Must have patched GUILE rational support. See INSTALL.txt" >&6; }
9871 fi
9872
9873 rm -f conftest.err conftest.$ac_ext
9874 CPPFLAGS="$save_CPPFLAGS"
9875
9876
9877
9878
9879 # Check whether --with-python-include was given.
9880 if test "${with_python_include+set}" = set; then
9881   withval=$with_python_include;
9882         if test "$withval" = "yes" -o "$withval" = "no"; then
9883             { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-include=includedir" >&5
9884 $as_echo "$as_me: WARNING: Usage: --with-python-include=includedir" >&2;}
9885         else
9886             PYTHON_CFLAGS="-I${withval}"
9887         fi
9888
9889 fi
9890
9891
9892
9893 # Check whether --with-python-lib was given.
9894 if test "${with_python_lib+set}" = set; then
9895   withval=$with_python_lib;
9896         if test "$withval" = "yes" -o "$withval" = "no"; then
9897             { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-lib=name" >&5
9898 $as_echo "$as_me: WARNING: Usage: --with-python-lib=name" >&2;}
9899         else
9900             LDFLAGS="$LDFLAGS -l${withval}"
9901         fi
9902
9903 fi
9904
9905
9906
9907     { $as_echo "$as_me:$LINENO: checking for python" >&5
9908 $as_echo_n "checking for python... " >&6; }
9909     python="python"
9910     found="no"
9911     for r in $PYTHON python python3 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0; do
9912         exe=`
9913     ## which doesn't work in ash, if /usr/bin/which isn't installed
9914     ## type -p doesn't work in ash
9915     ## command -v doesn't work in zsh
9916     ## command -v "$r" 2>&1
9917     ## this test should work in ash, bash, pdksh (ksh), zsh
9918     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9919 `
9920         if ! $exe -V > /dev/null 2>&1 ; then
9921             continue
9922         fi
9923         ver=`
9924     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9925     ##
9926     ## ARG.
9927     ## Workaround for broken Debian gcc version string:
9928     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9929     ##
9930     ## -V: Workaround for python
9931
9932     #dnl
9933
9934     ## Assume and hunt for dotted version multiplet.
9935     ## use eval trickery, because we cannot use multi-level $() instead of ``
9936     ## for compatibility reasons.
9937
9938     ## grab the first version number in  --version output.
9939     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9940                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9941                 head -n 1 |
9942                 tr ' ' '\n' |
9943                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9944                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9945                 head -n 1\`\"
9946
9947     if test -z "$_ver"; then
9948         ## If empty, try date [fontforge]
9949         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
9950             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
9951             | head -n 1 \
9952             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9953     fi
9954     echo "$_ver"
9955     #dnl
9956 `
9957         num=`
9958     echo "$ver" | awk -F. '
9959     {
9960       if ($3) {three = $3}
9961       else {three = 0}
9962     }
9963     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9964 `
9965         req=`
9966     echo "2.4" | awk -F. '
9967     {
9968       if ($3) {three = $3}
9969       else {three = 0}
9970     }
9971     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9972 `
9973         sup=`
9974     echo "3.0" | awk -F. '
9975     {
9976       if ($3) {three = $3}
9977       else {three = 0}
9978     }
9979     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9980 `
9981         if test -n "2.4" && test "$num" -lt "$req"; then
9982             python="$r >= 2.4 (installed: $ver)"
9983             continue
9984         else
9985             if test -n "3.0" && test "$num" -ge "$sup"; then
9986                 python="$r < 3.0 (installed: $ver)"
9987                 continue
9988             else
9989                 python=$r
9990                 found=$r
9991                 break
9992             fi
9993         fi
9994     done
9995     { $as_echo "$as_me:$LINENO: result: $found" >&5
9996 $as_echo "$found" >&6; }
9997     if test "$found" != "no"; then
9998         { $as_echo "$as_me:$LINENO: checking $python version" >&5
9999 $as_echo_n "checking $python version... " >&6; }
10000         { $as_echo "$as_me:$LINENO: result: $ver" >&5
10001 $as_echo "$ver" >&6; }
10002         PYTHON=$found
10003     else
10004
10005     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
10006
10007     fi
10008     # Extract the first word of "$PYTHON", so it can be a program name with args.
10009 set dummy $PYTHON; ac_word=$2
10010 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10011 $as_echo_n "checking for $ac_word... " >&6; }
10012 if test "${ac_cv_path_PYTHON+set}" = set; then
10013   $as_echo_n "(cached) " >&6
10014 else
10015   case $PYTHON in
10016   [\\/]* | ?:[\\/]*)
10017   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10018   ;;
10019   *)
10020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021 for as_dir in $PATH
10022 do
10023   IFS=$as_save_IFS
10024   test -z "$as_dir" && as_dir=.
10025   for ac_exec_ext in '' $ac_executable_extensions; do
10026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10027     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10028     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10029     break 2
10030   fi
10031 done
10032 done
10033 IFS=$as_save_IFS
10034
10035   ;;
10036 esac
10037 fi
10038 PYTHON=$ac_cv_path_PYTHON
10039 if test -n "$PYTHON"; then
10040   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
10041 $as_echo "$PYTHON" >&6; }
10042 else
10043   { $as_echo "$as_me:$LINENO: result: no" >&5
10044 $as_echo "no" >&6; }
10045 fi
10046
10047
10048
10049
10050     for ac_prog in `basename $PYTHON`-config
10051 do
10052   # Extract the first word of "$ac_prog", so it can be a program name with args.
10053 set dummy $ac_prog; ac_word=$2
10054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10055 $as_echo_n "checking for $ac_word... " >&6; }
10056 if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then
10057   $as_echo_n "(cached) " >&6
10058 else
10059   if test -n "$PYTHON_CONFIG"; then
10060   ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
10061 else
10062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063 for as_dir in $PATH
10064 do
10065   IFS=$as_save_IFS
10066   test -z "$as_dir" && as_dir=.
10067   for ac_exec_ext in '' $ac_executable_extensions; do
10068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10069     ac_cv_prog_PYTHON_CONFIG="$ac_prog"
10070     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10071     break 2
10072   fi
10073 done
10074 done
10075 IFS=$as_save_IFS
10076
10077 fi
10078 fi
10079 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
10080 if test -n "$PYTHON_CONFIG"; then
10081   { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
10082 $as_echo "$PYTHON_CONFIG" >&6; }
10083 else
10084   { $as_echo "$as_me:$LINENO: result: no" >&5
10085 $as_echo "no" >&6; }
10086 fi
10087
10088
10089   test -n "$PYTHON_CONFIG" && break
10090 done
10091 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
10092
10093
10094     if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
10095         # Clean out junk: http://bugs.python.org/issue3290
10096         # Python headers may need some -f* flags, leave them in.
10097         # We want the sed commands to look like 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' and 's/-arch [^[:space:]]*//g', but automake eats brackets.
10098          #PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/-[[WDOm]][[[:alnum:][:punct:]]][[[:alnum:][:punct:]]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
10099          # The above sed BRE matches parts of legal options, stipping down part of that option, resulting in invalid gcc arguments. Gentoo Bug #415793
10100          # For instance, '-floop-stip-mime' becomes '-floop-strip', and '-fvect-cost-model' becomes '-fvect-cost'.
10101          # 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.
10102          PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/\(^\|[^[:alnum:]]\)-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
10103         PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
10104     fi
10105
10106     if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
10107         #dnl
10108         # alternatively, for python >= 2.0
10109         # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
10110         PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
10111         PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
10112         #dnl
10113     fi
10114
10115     if test -z "$PYTHON_HEADER"; then
10116         CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
10117
10118 for ac_header in Python.h
10119 do
10120 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10122   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10123 $as_echo_n "checking for $ac_header... " >&6; }
10124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10125   $as_echo_n "(cached) " >&6
10126 fi
10127 ac_res=`eval 'as_val=${'$as_ac_Header'}
10128                  $as_echo "$as_val"'`
10129                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10130 $as_echo "$ac_res" >&6; }
10131 else
10132   # Is the header compilable?
10133 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10134 $as_echo_n "checking $ac_header usability... " >&6; }
10135 cat >conftest.$ac_ext <<_ACEOF
10136 /* confdefs.h.  */
10137 _ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h.  */
10141 $ac_includes_default
10142 #include <$ac_header>
10143 _ACEOF
10144 rm -f conftest.$ac_objext
10145 if { (ac_try="$ac_compile"
10146 case "(($ac_try" in
10147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148   *) ac_try_echo=$ac_try;;
10149 esac
10150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10151 $as_echo "$ac_try_echo") >&5
10152   (eval "$ac_compile") 2>conftest.er1
10153   ac_status=$?
10154   grep -v '^ *+' conftest.er1 >conftest.err
10155   rm -f conftest.er1
10156   cat conftest.err >&5
10157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158   (exit $ac_status); } && {
10159          test -z "$ac_cxx_werror_flag" ||
10160          test ! -s conftest.err
10161        } && test -s conftest.$ac_objext; then
10162   ac_header_compiler=yes
10163 else
10164   $as_echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10166
10167         ac_header_compiler=no
10168 fi
10169
10170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10171 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10172 $as_echo "$ac_header_compiler" >&6; }
10173
10174 # Is the header present?
10175 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10176 $as_echo_n "checking $ac_header presence... " >&6; }
10177 cat >conftest.$ac_ext <<_ACEOF
10178 /* confdefs.h.  */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h.  */
10183 #include <$ac_header>
10184 _ACEOF
10185 if { (ac_try="$ac_cpp conftest.$ac_ext"
10186 case "(($ac_try" in
10187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188   *) ac_try_echo=$ac_try;;
10189 esac
10190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10191 $as_echo "$ac_try_echo") >&5
10192   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10193   ac_status=$?
10194   grep -v '^ *+' conftest.er1 >conftest.err
10195   rm -f conftest.er1
10196   cat conftest.err >&5
10197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198   (exit $ac_status); } >/dev/null && {
10199          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10200          test ! -s conftest.err
10201        }; then
10202   ac_header_preproc=yes
10203 else
10204   $as_echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10206
10207   ac_header_preproc=no
10208 fi
10209
10210 rm -f conftest.err conftest.$ac_ext
10211 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10212 $as_echo "$ac_header_preproc" >&6; }
10213
10214 # So?  What about this header?
10215 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10216   yes:no: )
10217     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10218 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10219     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10220 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10221     ac_header_preproc=yes
10222     ;;
10223   no:yes:* )
10224     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10225 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10226     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10227 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10228     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10229 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10230     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10231 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10232     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10233 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10234     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10235 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10236
10237     ;;
10238 esac
10239 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10240 $as_echo_n "checking for $ac_header... " >&6; }
10241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10242   $as_echo_n "(cached) " >&6
10243 else
10244   eval "$as_ac_Header=\$ac_header_preproc"
10245 fi
10246 ac_res=`eval 'as_val=${'$as_ac_Header'}
10247                  $as_echo "$as_val"'`
10248                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10249 $as_echo "$ac_res" >&6; }
10250
10251 fi
10252 as_val=`eval 'as_val=${'$as_ac_Header'}
10253                  $as_echo "$as_val"'`
10254    if test "x$as_val" = x""yes; then
10255   cat >>confdefs.h <<_ACEOF
10256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10257 _ACEOF
10258  PYTHON_HEADER=yes
10259 fi
10260
10261 done
10262
10263     fi
10264
10265     if test -z "$PYTHON_HEADER"; then
10266         warn="Python.h (python-devel, python-dev or libpython-dev package)"
10267
10268     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
10269
10270     fi
10271
10272
10273
10274
10275
10276     for ac_prog in fontforge
10277 do
10278   # Extract the first word of "$ac_prog", so it can be a program name with args.
10279 set dummy $ac_prog; ac_word=$2
10280 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10281 $as_echo_n "checking for $ac_word... " >&6; }
10282 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
10283   $as_echo_n "(cached) " >&6
10284 else
10285   if test -n "$FONTFORGE"; then
10286   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
10287 else
10288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289 for as_dir in $PATH
10290 do
10291   IFS=$as_save_IFS
10292   test -z "$as_dir" && as_dir=.
10293   for ac_exec_ext in '' $ac_executable_extensions; do
10294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10295     ac_cv_prog_FONTFORGE="$ac_prog"
10296     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10297     break 2
10298   fi
10299 done
10300 done
10301 IFS=$as_save_IFS
10302
10303 fi
10304 fi
10305 FONTFORGE=$ac_cv_prog_FONTFORGE
10306 if test -n "$FONTFORGE"; then
10307   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
10308 $as_echo "$FONTFORGE" >&6; }
10309 else
10310   { $as_echo "$as_me:$LINENO: result: no" >&5
10311 $as_echo "no" >&6; }
10312 fi
10313
10314
10315   test -n "$FONTFORGE" && break
10316 done
10317 test -n "$FONTFORGE" || FONTFORGE="no"
10318
10319
10320
10321     r="`eval echo '$'"FONTFORGE"`"
10322     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
10323         true
10324     else
10325         ##STEPMAKE_WARN(cannot find . )
10326         false
10327     fi
10328
10329     if test $? -ne 0; then
10330
10331     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"fontforge\"`\"
10332
10333         if test "REQUIRED" = "REQUIRED"; then
10334             command="echo ERROR: fontforge not found"
10335             # abort configure process here?
10336         else
10337             command="- echo fontforge not found"
10338         fi
10339         eval "FONTFORGE"='$command'
10340         false
10341     else
10342         true
10343     fi
10344
10345     if test $? -eq 0; then
10346         for ac_prog in fontforge
10347 do
10348   # Extract the first word of "$ac_prog", so it can be a program name with args.
10349 set dummy $ac_prog; ac_word=$2
10350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10351 $as_echo_n "checking for $ac_word... " >&6; }
10352 if test "${ac_cv_path_FONTFORGE+set}" = set; then
10353   $as_echo_n "(cached) " >&6
10354 else
10355   case $FONTFORGE in
10356   [\\/]* | ?:[\\/]*)
10357   ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
10358   ;;
10359   *)
10360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in $PATH
10362 do
10363   IFS=$as_save_IFS
10364   test -z "$as_dir" && as_dir=.
10365   for ac_exec_ext in '' $ac_executable_extensions; do
10366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10367     ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
10368     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10369     break 2
10370   fi
10371 done
10372 done
10373 IFS=$as_save_IFS
10374
10375   ;;
10376 esac
10377 fi
10378 FONTFORGE=$ac_cv_path_FONTFORGE
10379 if test -n "$FONTFORGE"; then
10380   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
10381 $as_echo "$FONTFORGE" >&6; }
10382 else
10383   { $as_echo "$as_me:$LINENO: result: no" >&5
10384 $as_echo "no" >&6; }
10385 fi
10386
10387
10388   test -n "$FONTFORGE" && break
10389 done
10390
10391         if test -n "20110222"; then
10392
10393     r="`eval echo '$'"FONTFORGE"`"
10394     { $as_echo "$as_me:$LINENO: checking $r version" >&5
10395 $as_echo_n "checking $r version... " >&6; }
10396     exe=`
10397     ## which doesn't work in ash, if /usr/bin/which isn't installed
10398     ## type -p doesn't work in ash
10399     ## command -v doesn't work in zsh
10400     ## command -v "$r" 2>&1
10401     ## this test should work in ash, bash, pdksh (ksh), zsh
10402     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10403 `
10404     if test -n ""; then
10405         ver=""
10406     else
10407         ver=`
10408     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10409     ##
10410     ## ARG.
10411     ## Workaround for broken Debian gcc version string:
10412     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10413     ##
10414     ## -V: Workaround for python
10415
10416     #dnl
10417
10418     ## Assume and hunt for dotted version multiplet.
10419     ## use eval trickery, because we cannot use multi-level $() instead of ``
10420     ## for compatibility reasons.
10421
10422     ## grab the first version number in  --version output.
10423     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10424                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10425                 head -n 1 |
10426                 tr ' ' '\n' |
10427                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10428                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10429                 head -n 1\`\"
10430
10431     if test -z "$_ver"; then
10432         ## If empty, try date [fontforge]
10433         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
10434             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
10435             | head -n 1 \
10436             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10437     fi
10438     echo "$_ver"
10439     #dnl
10440 `
10441     fi
10442     num=`
10443     echo "$ver" | awk -F. '
10444     {
10445       if ($3) {three = $3}
10446       else {three = 0}
10447     }
10448     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10449 `
10450     req=`
10451     echo "20110222" | awk -F. '
10452     {
10453       if ($3) {three = $3}
10454       else {three = 0}
10455     }
10456     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10457 `
10458     { $as_echo "$as_me:$LINENO: result: $ver" >&5
10459 $as_echo "$ver" >&6; }
10460     if test "$num" -lt "$req"; then
10461
10462     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 20110222 (installed: $ver)"\"`\"
10463
10464     fi
10465     vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
10466     eval `echo $vervar=$num`
10467 ##    AC_SUBST(`eval echo $vervar`)
10468
10469         fi
10470     fi
10471
10472
10473
10474     for ac_prog in t1asm
10475 do
10476   # Extract the first word of "$ac_prog", so it can be a program name with args.
10477 set dummy $ac_prog; ac_word=$2
10478 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10479 $as_echo_n "checking for $ac_word... " >&6; }
10480 if test "${ac_cv_prog_T1ASM+set}" = set; then
10481   $as_echo_n "(cached) " >&6
10482 else
10483   if test -n "$T1ASM"; then
10484   ac_cv_prog_T1ASM="$T1ASM" # Let the user override the test.
10485 else
10486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10487 for as_dir in $PATH
10488 do
10489   IFS=$as_save_IFS
10490   test -z "$as_dir" && as_dir=.
10491   for ac_exec_ext in '' $ac_executable_extensions; do
10492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10493     ac_cv_prog_T1ASM="$ac_prog"
10494     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10495     break 2
10496   fi
10497 done
10498 done
10499 IFS=$as_save_IFS
10500
10501 fi
10502 fi
10503 T1ASM=$ac_cv_prog_T1ASM
10504 if test -n "$T1ASM"; then
10505   { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10506 $as_echo "$T1ASM" >&6; }
10507 else
10508   { $as_echo "$as_me:$LINENO: result: no" >&5
10509 $as_echo "no" >&6; }
10510 fi
10511
10512
10513   test -n "$T1ASM" && break
10514 done
10515 test -n "$T1ASM" || T1ASM="no"
10516
10517
10518
10519     r="`eval echo '$'"T1ASM"`"
10520     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"T1ASM"`' : '.*\(echo\)' > /dev/null; then
10521         true
10522     else
10523         ##STEPMAKE_WARN(cannot find . )
10524         false
10525     fi
10526
10527     if test $? -ne 0; then
10528
10529     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"t1asm\"`\"
10530
10531         if test "REQUIRED" = "REQUIRED"; then
10532             command="echo ERROR: t1asm not found"
10533             # abort configure process here?
10534         else
10535             command="- echo t1asm not found"
10536         fi
10537         eval "T1ASM"='$command'
10538         false
10539     else
10540         true
10541     fi
10542
10543     if test $? -eq 0; then
10544         for ac_prog in t1asm
10545 do
10546   # Extract the first word of "$ac_prog", so it can be a program name with args.
10547 set dummy $ac_prog; ac_word=$2
10548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10549 $as_echo_n "checking for $ac_word... " >&6; }
10550 if test "${ac_cv_path_T1ASM+set}" = set; then
10551   $as_echo_n "(cached) " >&6
10552 else
10553   case $T1ASM in
10554   [\\/]* | ?:[\\/]*)
10555   ac_cv_path_T1ASM="$T1ASM" # Let the user override the test with a path.
10556   ;;
10557   *)
10558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in $PATH
10560 do
10561   IFS=$as_save_IFS
10562   test -z "$as_dir" && as_dir=.
10563   for ac_exec_ext in '' $ac_executable_extensions; do
10564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10565     ac_cv_path_T1ASM="$as_dir/$ac_word$ac_exec_ext"
10566     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10567     break 2
10568   fi
10569 done
10570 done
10571 IFS=$as_save_IFS
10572
10573   ;;
10574 esac
10575 fi
10576 T1ASM=$ac_cv_path_T1ASM
10577 if test -n "$T1ASM"; then
10578   { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10579 $as_echo "$T1ASM" >&6; }
10580 else
10581   { $as_echo "$as_me:$LINENO: result: no" >&5
10582 $as_echo "no" >&6; }
10583 fi
10584
10585
10586   test -n "$T1ASM" && break
10587 done
10588
10589         if test -n ""; then
10590
10591     r="`eval echo '$'"T1ASM"`"
10592     { $as_echo "$as_me:$LINENO: checking $r version" >&5
10593 $as_echo_n "checking $r version... " >&6; }
10594     exe=`
10595     ## which doesn't work in ash, if /usr/bin/which isn't installed
10596     ## type -p doesn't work in ash
10597     ## command -v doesn't work in zsh
10598     ## command -v "$r" 2>&1
10599     ## this test should work in ash, bash, pdksh (ksh), zsh
10600     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10601 `
10602     if test -n ""; then
10603         ver=""
10604     else
10605         ver=`
10606     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10607     ##
10608     ## ARG.
10609     ## Workaround for broken Debian gcc version string:
10610     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10611     ##
10612     ## -V: Workaround for python
10613
10614     #dnl
10615
10616     ## Assume and hunt for dotted version multiplet.
10617     ## use eval trickery, because we cannot use multi-level $() instead of ``
10618     ## for compatibility reasons.
10619
10620     ## grab the first version number in  --version output.
10621     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10622                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10623                 head -n 1 |
10624                 tr ' ' '\n' |
10625                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10626                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10627                 head -n 1\`\"
10628
10629     if test -z "$_ver"; then
10630         ## If empty, try date [fontforge]
10631         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
10632             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
10633             | head -n 1 \
10634             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10635     fi
10636     echo "$_ver"
10637     #dnl
10638 `
10639     fi
10640     num=`
10641     echo "$ver" | awk -F. '
10642     {
10643       if ($3) {three = $3}
10644       else {three = 0}
10645     }
10646     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10647 `
10648     req=`
10649     echo "" | awk -F. '
10650     {
10651       if ($3) {three = $3}
10652       else {three = 0}
10653     }
10654     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10655 `
10656     { $as_echo "$as_me:$LINENO: result: $ver" >&5
10657 $as_echo "$ver" >&6; }
10658     if test "$num" -lt "$req"; then
10659
10660     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
10661
10662     fi
10663     vervar="`echo T1ASM | tr 'a-z' 'A-Z'`_VERSION"
10664     eval `echo $vervar=$num`
10665 ##    AC_SUBST(`eval echo $vervar`)
10666
10667         fi
10668     fi
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678 for ac_header in assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h
10679 do
10680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10682   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10683 $as_echo_n "checking for $ac_header... " >&6; }
10684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10685   $as_echo_n "(cached) " >&6
10686 fi
10687 ac_res=`eval 'as_val=${'$as_ac_Header'}
10688                  $as_echo "$as_val"'`
10689                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10690 $as_echo "$ac_res" >&6; }
10691 else
10692   # Is the header compilable?
10693 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10694 $as_echo_n "checking $ac_header usability... " >&6; }
10695 cat >conftest.$ac_ext <<_ACEOF
10696 /* confdefs.h.  */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h.  */
10701 $ac_includes_default
10702 #include <$ac_header>
10703 _ACEOF
10704 rm -f conftest.$ac_objext
10705 if { (ac_try="$ac_compile"
10706 case "(($ac_try" in
10707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708   *) ac_try_echo=$ac_try;;
10709 esac
10710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10711 $as_echo "$ac_try_echo") >&5
10712   (eval "$ac_compile") 2>conftest.er1
10713   ac_status=$?
10714   grep -v '^ *+' conftest.er1 >conftest.err
10715   rm -f conftest.er1
10716   cat conftest.err >&5
10717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); } && {
10719          test -z "$ac_cxx_werror_flag" ||
10720          test ! -s conftest.err
10721        } && test -s conftest.$ac_objext; then
10722   ac_header_compiler=yes
10723 else
10724   $as_echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10726
10727         ac_header_compiler=no
10728 fi
10729
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10732 $as_echo "$ac_header_compiler" >&6; }
10733
10734 # Is the header present?
10735 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10736 $as_echo_n "checking $ac_header presence... " >&6; }
10737 cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743 #include <$ac_header>
10744 _ACEOF
10745 if { (ac_try="$ac_cpp conftest.$ac_ext"
10746 case "(($ac_try" in
10747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748   *) ac_try_echo=$ac_try;;
10749 esac
10750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10751 $as_echo "$ac_try_echo") >&5
10752   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10753   ac_status=$?
10754   grep -v '^ *+' conftest.er1 >conftest.err
10755   rm -f conftest.er1
10756   cat conftest.err >&5
10757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); } >/dev/null && {
10759          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10760          test ! -s conftest.err
10761        }; then
10762   ac_header_preproc=yes
10763 else
10764   $as_echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10766
10767   ac_header_preproc=no
10768 fi
10769
10770 rm -f conftest.err conftest.$ac_ext
10771 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10772 $as_echo "$ac_header_preproc" >&6; }
10773
10774 # So?  What about this header?
10775 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10776   yes:no: )
10777     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10778 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10779     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10780 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10781     ac_header_preproc=yes
10782     ;;
10783   no:yes:* )
10784     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10785 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10786     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10787 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10788     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10789 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10790     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10791 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10792     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10793 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10794     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10795 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10796
10797     ;;
10798 esac
10799 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10800 $as_echo_n "checking for $ac_header... " >&6; }
10801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10802   $as_echo_n "(cached) " >&6
10803 else
10804   eval "$as_ac_Header=\$ac_header_preproc"
10805 fi
10806 ac_res=`eval 'as_val=${'$as_ac_Header'}
10807                  $as_echo "$as_val"'`
10808                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10809 $as_echo "$ac_res" >&6; }
10810
10811 fi
10812 as_val=`eval 'as_val=${'$as_ac_Header'}
10813                  $as_echo "$as_val"'`
10814    if test "x$as_val" = x""yes; then
10815   cat >>confdefs.h <<_ACEOF
10816 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10817 _ACEOF
10818
10819 fi
10820
10821 done
10822
10823
10824 for ac_header in sstream
10825 do
10826 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10828   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10829 $as_echo_n "checking for $ac_header... " >&6; }
10830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10831   $as_echo_n "(cached) " >&6
10832 fi
10833 ac_res=`eval 'as_val=${'$as_ac_Header'}
10834                  $as_echo "$as_val"'`
10835                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10836 $as_echo "$ac_res" >&6; }
10837 else
10838   # Is the header compilable?
10839 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10840 $as_echo_n "checking $ac_header usability... " >&6; }
10841 cat >conftest.$ac_ext <<_ACEOF
10842 /* confdefs.h.  */
10843 _ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h.  */
10847 $ac_includes_default
10848 #include <$ac_header>
10849 _ACEOF
10850 rm -f conftest.$ac_objext
10851 if { (ac_try="$ac_compile"
10852 case "(($ac_try" in
10853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854   *) ac_try_echo=$ac_try;;
10855 esac
10856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10857 $as_echo "$ac_try_echo") >&5
10858   (eval "$ac_compile") 2>conftest.er1
10859   ac_status=$?
10860   grep -v '^ *+' conftest.er1 >conftest.err
10861   rm -f conftest.er1
10862   cat conftest.err >&5
10863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864   (exit $ac_status); } && {
10865          test -z "$ac_cxx_werror_flag" ||
10866          test ! -s conftest.err
10867        } && test -s conftest.$ac_objext; then
10868   ac_header_compiler=yes
10869 else
10870   $as_echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10872
10873         ac_header_compiler=no
10874 fi
10875
10876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10877 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10878 $as_echo "$ac_header_compiler" >&6; }
10879
10880 # Is the header present?
10881 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10882 $as_echo_n "checking $ac_header presence... " >&6; }
10883 cat >conftest.$ac_ext <<_ACEOF
10884 /* confdefs.h.  */
10885 _ACEOF
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h.  */
10889 #include <$ac_header>
10890 _ACEOF
10891 if { (ac_try="$ac_cpp conftest.$ac_ext"
10892 case "(($ac_try" in
10893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894   *) ac_try_echo=$ac_try;;
10895 esac
10896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10897 $as_echo "$ac_try_echo") >&5
10898   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10899   ac_status=$?
10900   grep -v '^ *+' conftest.er1 >conftest.err
10901   rm -f conftest.er1
10902   cat conftest.err >&5
10903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); } >/dev/null && {
10905          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10906          test ! -s conftest.err
10907        }; then
10908   ac_header_preproc=yes
10909 else
10910   $as_echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10912
10913   ac_header_preproc=no
10914 fi
10915
10916 rm -f conftest.err conftest.$ac_ext
10917 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10918 $as_echo "$ac_header_preproc" >&6; }
10919
10920 # So?  What about this header?
10921 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10922   yes:no: )
10923     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10924 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10925     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10927     ac_header_preproc=yes
10928     ;;
10929   no:yes:* )
10930     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10931 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10932     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10933 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10934     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10935 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10936     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10937 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10938     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10939 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10940     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10941 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10942
10943     ;;
10944 esac
10945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10946 $as_echo_n "checking for $ac_header... " >&6; }
10947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10948   $as_echo_n "(cached) " >&6
10949 else
10950   eval "$as_ac_Header=\$ac_header_preproc"
10951 fi
10952 ac_res=`eval 'as_val=${'$as_ac_Header'}
10953                  $as_echo "$as_val"'`
10954                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10955 $as_echo "$ac_res" >&6; }
10956
10957 fi
10958 as_val=`eval 'as_val=${'$as_ac_Header'}
10959                  $as_echo "$as_val"'`
10960    if test "x$as_val" = x""yes; then
10961   cat >>confdefs.h <<_ACEOF
10962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10963 _ACEOF
10964
10965 fi
10966
10967 done
10968
10969 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10970 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10971 if test "${ac_cv_header_stat_broken+set}" = set; then
10972   $as_echo_n "(cached) " >&6
10973 else
10974   cat >conftest.$ac_ext <<_ACEOF
10975 /* confdefs.h.  */
10976 _ACEOF
10977 cat confdefs.h >>conftest.$ac_ext
10978 cat >>conftest.$ac_ext <<_ACEOF
10979 /* end confdefs.h.  */
10980 #include <sys/types.h>
10981 #include <sys/stat.h>
10982
10983 #if defined S_ISBLK && defined S_IFDIR
10984 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10985 #endif
10986
10987 #if defined S_ISBLK && defined S_IFCHR
10988 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10989 #endif
10990
10991 #if defined S_ISLNK && defined S_IFREG
10992 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10993 #endif
10994
10995 #if defined S_ISSOCK && defined S_IFREG
10996 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10997 #endif
10998
10999 _ACEOF
11000 rm -f conftest.$ac_objext
11001 if { (ac_try="$ac_compile"
11002 case "(($ac_try" in
11003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004   *) ac_try_echo=$ac_try;;
11005 esac
11006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11007 $as_echo "$ac_try_echo") >&5
11008   (eval "$ac_compile") 2>conftest.er1
11009   ac_status=$?
11010   grep -v '^ *+' conftest.er1 >conftest.err
11011   rm -f conftest.er1
11012   cat conftest.err >&5
11013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); } && {
11015          test -z "$ac_cxx_werror_flag" ||
11016          test ! -s conftest.err
11017        } && test -s conftest.$ac_objext; then
11018   ac_cv_header_stat_broken=no
11019 else
11020   $as_echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11022
11023         ac_cv_header_stat_broken=yes
11024 fi
11025
11026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11027 fi
11028 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11029 $as_echo "$ac_cv_header_stat_broken" >&6; }
11030 if test $ac_cv_header_stat_broken = yes; then
11031
11032 cat >>confdefs.h <<\_ACEOF
11033 #define STAT_MACROS_BROKEN 1
11034 _ACEOF
11035
11036 fi
11037
11038 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
11039 $as_echo_n "checking for working memcmp... " >&6; }
11040 if test "${ac_cv_func_memcmp_working+set}" = set; then
11041   $as_echo_n "(cached) " >&6
11042 else
11043   if test "$cross_compiling" = yes; then
11044   ac_cv_func_memcmp_working=no
11045 else
11046   cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h.  */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h.  */
11052 $ac_includes_default
11053 int
11054 main ()
11055 {
11056
11057   /* Some versions of memcmp are not 8-bit clean.  */
11058   char c0 = '\100', c1 = '\200', c2 = '\201';
11059   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11060     return 1;
11061
11062   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11063      or more and with at least one buffer not starting on a 4-byte boundary.
11064      William Lewis provided this test program.   */
11065   {
11066     char foo[21];
11067     char bar[21];
11068     int i;
11069     for (i = 0; i < 4; i++)
11070       {
11071         char *a = foo + i;
11072         char *b = bar + i;
11073         strcpy (a, "--------01111111");
11074         strcpy (b, "--------10000000");
11075         if (memcmp (a, b, 16) >= 0)
11076           return 1;
11077       }
11078     return 0;
11079   }
11080
11081   ;
11082   return 0;
11083 }
11084 _ACEOF
11085 rm -f conftest$ac_exeext
11086 if { (ac_try="$ac_link"
11087 case "(($ac_try" in
11088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089   *) ac_try_echo=$ac_try;;
11090 esac
11091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11092 $as_echo "$ac_try_echo") >&5
11093   (eval "$ac_link") 2>&5
11094   ac_status=$?
11095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11097   { (case "(($ac_try" in
11098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099   *) ac_try_echo=$ac_try;;
11100 esac
11101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11102 $as_echo "$ac_try_echo") >&5
11103   (eval "$ac_try") 2>&5
11104   ac_status=$?
11105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); }; }; then
11107   ac_cv_func_memcmp_working=yes
11108 else
11109   $as_echo "$as_me: program exited with status $ac_status" >&5
11110 $as_echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11112
11113 ( exit $ac_status )
11114 ac_cv_func_memcmp_working=no
11115 fi
11116 rm -rf conftest.dSYM
11117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11118 fi
11119
11120
11121 fi
11122 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11123 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11124 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11125   *" memcmp.$ac_objext "* ) ;;
11126   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11127  ;;
11128 esac
11129
11130
11131
11132 for ac_func in vprintf
11133 do
11134 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11135 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11136 $as_echo_n "checking for $ac_func... " >&6; }
11137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11138   $as_echo_n "(cached) " >&6
11139 else
11140   cat >conftest.$ac_ext <<_ACEOF
11141 /* confdefs.h.  */
11142 _ACEOF
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h.  */
11146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11148 #define $ac_func innocuous_$ac_func
11149
11150 /* System header to define __stub macros and hopefully few prototypes,
11151     which can conflict with char $ac_func (); below.
11152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11153     <limits.h> exists even on freestanding compilers.  */
11154
11155 #ifdef __STDC__
11156 # include <limits.h>
11157 #else
11158 # include <assert.h>
11159 #endif
11160
11161 #undef $ac_func
11162
11163 /* Override any GCC internal prototype to avoid an error.
11164    Use char because int might match the return type of a GCC
11165    builtin and then its argument prototype would still apply.  */
11166 #ifdef __cplusplus
11167 extern "C"
11168 #endif
11169 char $ac_func ();
11170 /* The GNU C library defines this for functions which it implements
11171     to always fail with ENOSYS.  Some functions are actually named
11172     something starting with __ and the normal name is an alias.  */
11173 #if defined __stub_$ac_func || defined __stub___$ac_func
11174 choke me
11175 #endif
11176
11177 int
11178 main ()
11179 {
11180 return $ac_func ();
11181   ;
11182   return 0;
11183 }
11184 _ACEOF
11185 rm -f conftest.$ac_objext conftest$ac_exeext
11186 if { (ac_try="$ac_link"
11187 case "(($ac_try" in
11188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189   *) ac_try_echo=$ac_try;;
11190 esac
11191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11192 $as_echo "$ac_try_echo") >&5
11193   (eval "$ac_link") 2>conftest.er1
11194   ac_status=$?
11195   grep -v '^ *+' conftest.er1 >conftest.err
11196   rm -f conftest.er1
11197   cat conftest.err >&5
11198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); } && {
11200          test -z "$ac_cxx_werror_flag" ||
11201          test ! -s conftest.err
11202        } && test -s conftest$ac_exeext && {
11203          test "$cross_compiling" = yes ||
11204          $as_test_x conftest$ac_exeext
11205        }; then
11206   eval "$as_ac_var=yes"
11207 else
11208   $as_echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11210
11211         eval "$as_ac_var=no"
11212 fi
11213
11214 rm -rf conftest.dSYM
11215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11216       conftest$ac_exeext conftest.$ac_ext
11217 fi
11218 ac_res=`eval 'as_val=${'$as_ac_var'}
11219                  $as_echo "$as_val"'`
11220                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11221 $as_echo "$ac_res" >&6; }
11222 as_val=`eval 'as_val=${'$as_ac_var'}
11223                  $as_echo "$as_val"'`
11224    if test "x$as_val" = x""yes; then
11225   cat >>confdefs.h <<_ACEOF
11226 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11227 _ACEOF
11228
11229 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
11230 $as_echo_n "checking for _doprnt... " >&6; }
11231 if test "${ac_cv_func__doprnt+set}" = set; then
11232   $as_echo_n "(cached) " >&6
11233 else
11234   cat >conftest.$ac_ext <<_ACEOF
11235 /* confdefs.h.  */
11236 _ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h.  */
11240 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11242 #define _doprnt innocuous__doprnt
11243
11244 /* System header to define __stub macros and hopefully few prototypes,
11245     which can conflict with char _doprnt (); below.
11246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11247     <limits.h> exists even on freestanding compilers.  */
11248
11249 #ifdef __STDC__
11250 # include <limits.h>
11251 #else
11252 # include <assert.h>
11253 #endif
11254
11255 #undef _doprnt
11256
11257 /* Override any GCC internal prototype to avoid an error.
11258    Use char because int might match the return type of a GCC
11259    builtin and then its argument prototype would still apply.  */
11260 #ifdef __cplusplus
11261 extern "C"
11262 #endif
11263 char _doprnt ();
11264 /* The GNU C library defines this for functions which it implements
11265     to always fail with ENOSYS.  Some functions are actually named
11266     something starting with __ and the normal name is an alias.  */
11267 #if defined __stub__doprnt || defined __stub____doprnt
11268 choke me
11269 #endif
11270
11271 int
11272 main ()
11273 {
11274 return _doprnt ();
11275   ;
11276   return 0;
11277 }
11278 _ACEOF
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (ac_try="$ac_link"
11281 case "(($ac_try" in
11282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283   *) ac_try_echo=$ac_try;;
11284 esac
11285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11286 $as_echo "$ac_try_echo") >&5
11287   (eval "$ac_link") 2>conftest.er1
11288   ac_status=$?
11289   grep -v '^ *+' conftest.er1 >conftest.err
11290   rm -f conftest.er1
11291   cat conftest.err >&5
11292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); } && {
11294          test -z "$ac_cxx_werror_flag" ||
11295          test ! -s conftest.err
11296        } && test -s conftest$ac_exeext && {
11297          test "$cross_compiling" = yes ||
11298          $as_test_x conftest$ac_exeext
11299        }; then
11300   ac_cv_func__doprnt=yes
11301 else
11302   $as_echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11304
11305         ac_cv_func__doprnt=no
11306 fi
11307
11308 rm -rf conftest.dSYM
11309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11310       conftest$ac_exeext conftest.$ac_ext
11311 fi
11312 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11313 $as_echo "$ac_cv_func__doprnt" >&6; }
11314 if test "x$ac_cv_func__doprnt" = x""yes; then
11315
11316 cat >>confdefs.h <<\_ACEOF
11317 #define HAVE_DOPRNT 1
11318 _ACEOF
11319
11320 fi
11321
11322 fi
11323 done
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333 for ac_func in chroot fopencookie gettext isinf memmem snprintf vsnprintf
11334 do
11335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11336 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11337 $as_echo_n "checking for $ac_func... " >&6; }
11338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11339   $as_echo_n "(cached) " >&6
11340 else
11341   cat >conftest.$ac_ext <<_ACEOF
11342 /* confdefs.h.  */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h.  */
11347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11349 #define $ac_func innocuous_$ac_func
11350
11351 /* System header to define __stub macros and hopefully few prototypes,
11352     which can conflict with char $ac_func (); below.
11353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11354     <limits.h> exists even on freestanding compilers.  */
11355
11356 #ifdef __STDC__
11357 # include <limits.h>
11358 #else
11359 # include <assert.h>
11360 #endif
11361
11362 #undef $ac_func
11363
11364 /* Override any GCC internal prototype to avoid an error.
11365    Use char because int might match the return type of a GCC
11366    builtin and then its argument prototype would still apply.  */
11367 #ifdef __cplusplus
11368 extern "C"
11369 #endif
11370 char $ac_func ();
11371 /* The GNU C library defines this for functions which it implements
11372     to always fail with ENOSYS.  Some functions are actually named
11373     something starting with __ and the normal name is an alias.  */
11374 #if defined __stub_$ac_func || defined __stub___$ac_func
11375 choke me
11376 #endif
11377
11378 int
11379 main ()
11380 {
11381 return $ac_func ();
11382   ;
11383   return 0;
11384 }
11385 _ACEOF
11386 rm -f conftest.$ac_objext conftest$ac_exeext
11387 if { (ac_try="$ac_link"
11388 case "(($ac_try" in
11389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390   *) ac_try_echo=$ac_try;;
11391 esac
11392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11393 $as_echo "$ac_try_echo") >&5
11394   (eval "$ac_link") 2>conftest.er1
11395   ac_status=$?
11396   grep -v '^ *+' conftest.er1 >conftest.err
11397   rm -f conftest.er1
11398   cat conftest.err >&5
11399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400   (exit $ac_status); } && {
11401          test -z "$ac_cxx_werror_flag" ||
11402          test ! -s conftest.err
11403        } && test -s conftest$ac_exeext && {
11404          test "$cross_compiling" = yes ||
11405          $as_test_x conftest$ac_exeext
11406        }; then
11407   eval "$as_ac_var=yes"
11408 else
11409   $as_echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11411
11412         eval "$as_ac_var=no"
11413 fi
11414
11415 rm -rf conftest.dSYM
11416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11417       conftest$ac_exeext conftest.$ac_ext
11418 fi
11419 ac_res=`eval 'as_val=${'$as_ac_var'}
11420                  $as_echo "$as_val"'`
11421                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11422 $as_echo "$ac_res" >&6; }
11423 as_val=`eval 'as_val=${'$as_ac_var'}
11424                  $as_echo "$as_val"'`
11425    if test "x$as_val" = x""yes; then
11426   cat >>confdefs.h <<_ACEOF
11427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11428 _ACEOF
11429
11430 fi
11431 done
11432
11433
11434
11435     for ac_prog in pkg-config
11436 do
11437   # Extract the first word of "$ac_prog", so it can be a program name with args.
11438 set dummy $ac_prog; ac_word=$2
11439 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11440 $as_echo_n "checking for $ac_word... " >&6; }
11441 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
11442   $as_echo_n "(cached) " >&6
11443 else
11444   if test -n "$PKG_CONFIG"; then
11445   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
11446 else
11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 for as_dir in $PATH
11449 do
11450   IFS=$as_save_IFS
11451   test -z "$as_dir" && as_dir=.
11452   for ac_exec_ext in '' $ac_executable_extensions; do
11453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11454     ac_cv_prog_PKG_CONFIG="$ac_prog"
11455     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11456     break 2
11457   fi
11458 done
11459 done
11460 IFS=$as_save_IFS
11461
11462 fi
11463 fi
11464 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
11465 if test -n "$PKG_CONFIG"; then
11466   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11467 $as_echo "$PKG_CONFIG" >&6; }
11468 else
11469   { $as_echo "$as_me:$LINENO: result: no" >&5
11470 $as_echo "no" >&6; }
11471 fi
11472
11473
11474   test -n "$PKG_CONFIG" && break
11475 done
11476 test -n "$PKG_CONFIG" || PKG_CONFIG="no"
11477
11478
11479
11480     r="`eval echo '$'"PKG_CONFIG"`"
11481     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PKG_CONFIG"`' : '.*\(echo\)' > /dev/null; then
11482         true
11483     else
11484         ##STEPMAKE_WARN(cannot find . )
11485         false
11486     fi
11487
11488     if test $? -ne 0; then
11489
11490     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"pkg-config\"`\"
11491
11492         if test "REQUIRED" = "REQUIRED"; then
11493             command="echo ERROR: pkg-config not found"
11494             # abort configure process here?
11495         else
11496             command="- echo pkg-config not found"
11497         fi
11498         eval "PKG_CONFIG"='$command'
11499         false
11500     else
11501         true
11502     fi
11503
11504     if test $? -eq 0 -a -n "0.9.0"; then
11505
11506     r="`eval echo '$'"PKG_CONFIG"`"
11507     { $as_echo "$as_me:$LINENO: checking $r version" >&5
11508 $as_echo_n "checking $r version... " >&6; }
11509     exe=`
11510     ## which doesn't work in ash, if /usr/bin/which isn't installed
11511     ## type -p doesn't work in ash
11512     ## command -v doesn't work in zsh
11513     ## command -v "$r" 2>&1
11514     ## this test should work in ash, bash, pdksh (ksh), zsh
11515     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11516 `
11517     if test -n ""; then
11518         ver=""
11519     else
11520         ver=`
11521     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11522     ##
11523     ## ARG.
11524     ## Workaround for broken Debian gcc version string:
11525     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11526     ##
11527     ## -V: Workaround for python
11528
11529     #dnl
11530
11531     ## Assume and hunt for dotted version multiplet.
11532     ## use eval trickery, because we cannot use multi-level $() instead of ``
11533     ## for compatibility reasons.
11534
11535     ## grab the first version number in  --version output.
11536     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11537                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11538                 head -n 1 |
11539                 tr ' ' '\n' |
11540                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11541                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11542                 head -n 1\`\"
11543
11544     if test -z "$_ver"; then
11545         ## If empty, try date [fontforge]
11546         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
11547             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
11548             | head -n 1 \
11549             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11550     fi
11551     echo "$_ver"
11552     #dnl
11553 `
11554     fi
11555     num=`
11556     echo "$ver" | awk -F. '
11557     {
11558       if ($3) {three = $3}
11559       else {three = 0}
11560     }
11561     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11562 `
11563     req=`
11564     echo "0.9.0" | awk -F. '
11565     {
11566       if ($3) {three = $3}
11567       else {three = 0}
11568     }
11569     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11570 `
11571     { $as_echo "$as_me:$LINENO: result: $ver" >&5
11572 $as_echo "$ver" >&6; }
11573     if test "$num" -lt "$req"; then
11574
11575     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 0.9.0 (installed: $ver)"\"`\"
11576
11577     fi
11578     vervar="`echo PKG_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
11579     eval `echo $vervar=$num`
11580 ##    AC_SUBST(`eval echo $vervar`)
11581
11582     fi
11583
11584
11585 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic relocation" >&5
11586 $as_echo_n "checking whether to enable dynamic relocation... " >&6; }
11587 if test "$reloc_b" = "yes"; then
11588     cat >>confdefs.h <<\_ACEOF
11589 #define ARGV0_RELOCATION 1
11590 _ACEOF
11591
11592 fi
11593 { $as_echo "$as_me:$LINENO: result: $reloc_b" >&5
11594 $as_echo "$reloc_b" >&6; }
11595
11596 { $as_echo "$as_me:$LINENO: checking for rpath linkage" >&5
11597 $as_echo_n "checking for rpath linkage... " >&6; }
11598 if test "$rpath_b" = "yes"; then
11599     LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib"
11600 elif test "$rpath_b" != "no"; then
11601     LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b"
11602 fi
11603 { $as_echo "$as_me:$LINENO: result: $rpath_b" >&5
11604 $as_echo "$rpath_b" >&6; }
11605
11606 HOST_ARCH=`$CC -dumpmachine`
11607
11608
11609
11610
11611   succeeded=no
11612
11613   if test -z "$PKG_CONFIG"; then
11614     # Extract the first word of "pkg-config", so it can be a program name with args.
11615 set dummy pkg-config; ac_word=$2
11616 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11617 $as_echo_n "checking for $ac_word... " >&6; }
11618 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11619   $as_echo_n "(cached) " >&6
11620 else
11621   case $PKG_CONFIG in
11622   [\\/]* | ?:[\\/]*)
11623   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11624   ;;
11625   *)
11626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 for as_dir in $PATH
11628 do
11629   IFS=$as_save_IFS
11630   test -z "$as_dir" && as_dir=.
11631   for ac_exec_ext in '' $ac_executable_extensions; do
11632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11633     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11634     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11635     break 2
11636   fi
11637 done
11638 done
11639 IFS=$as_save_IFS
11640
11641   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11642   ;;
11643 esac
11644 fi
11645 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11646 if test -n "$PKG_CONFIG"; then
11647   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11648 $as_echo "$PKG_CONFIG" >&6; }
11649 else
11650   { $as_echo "$as_me:$LINENO: result: no" >&5
11651 $as_echo "no" >&6; }
11652 fi
11653
11654
11655   fi
11656
11657   if test "$PKG_CONFIG" = "no" ; then
11658      echo "*** The pkg-config script could not be found. Make sure it is"
11659      echo "*** in your path, or set the PKG_CONFIG environment variable"
11660      echo "*** to the full path to pkg-config."
11661      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11662   else
11663      PKG_CONFIG_MIN_VERSION=0.9.0
11664      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11665         { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.6.0" >&5
11666 $as_echo_n "checking for pangoft2 >= 1.6.0... " >&6; }
11667
11668         if $PKG_CONFIG --exists "pangoft2 >= 1.6.0" ; then
11669             { $as_echo "$as_me:$LINENO: result: yes" >&5
11670 $as_echo "yes" >&6; }
11671             succeeded=yes
11672
11673             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
11674 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
11675             PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.6.0"`
11676             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
11677 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
11678
11679             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
11680 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
11681             PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.6.0"`
11682             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
11683 $as_echo "$PANGO_FT2_LIBS" >&6; }
11684         else
11685             PANGO_FT2_CFLAGS=""
11686             PANGO_FT2_LIBS=""
11687             ## If we have a custom action on failure, don't print errors, but
11688             ## do set a variable so people can do so.
11689             PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.6.0"`
11690
11691         fi
11692
11693
11694
11695      fi
11696   fi
11697
11698   if test $succeeded = yes; then
11699      have_pangoft2=yes
11700   else
11701      true
11702   fi
11703
11704     if test "$have_pangoft2" = yes ; then
11705         cat >>confdefs.h <<\_ACEOF
11706 #define HAVE_PANGO16 1
11707 _ACEOF
11708
11709         cat >>confdefs.h <<\_ACEOF
11710 #define HAVE_PANGO_FT2 1
11711 _ACEOF
11712
11713         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11714         save_CPPFLAGS="$CPPFLAGS"
11715         save_LIBS="$LIBS"
11716         CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
11717         LIBS="$PANGO_FT2_LIBS $LIBS"
11718
11719 for ac_header in pango/pangoft2.h
11720 do
11721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11723   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11724 $as_echo_n "checking for $ac_header... " >&6; }
11725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11726   $as_echo_n "(cached) " >&6
11727 fi
11728 ac_res=`eval 'as_val=${'$as_ac_Header'}
11729                  $as_echo "$as_val"'`
11730                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11731 $as_echo "$ac_res" >&6; }
11732 else
11733   # Is the header compilable?
11734 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11735 $as_echo_n "checking $ac_header usability... " >&6; }
11736 cat >conftest.$ac_ext <<_ACEOF
11737 /* confdefs.h.  */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h.  */
11742 $ac_includes_default
11743 #include <$ac_header>
11744 _ACEOF
11745 rm -f conftest.$ac_objext
11746 if { (ac_try="$ac_compile"
11747 case "(($ac_try" in
11748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749   *) ac_try_echo=$ac_try;;
11750 esac
11751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11752 $as_echo "$ac_try_echo") >&5
11753   (eval "$ac_compile") 2>conftest.er1
11754   ac_status=$?
11755   grep -v '^ *+' conftest.er1 >conftest.err
11756   rm -f conftest.er1
11757   cat conftest.err >&5
11758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); } && {
11760          test -z "$ac_cxx_werror_flag" ||
11761          test ! -s conftest.err
11762        } && test -s conftest.$ac_objext; then
11763   ac_header_compiler=yes
11764 else
11765   $as_echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11767
11768         ac_header_compiler=no
11769 fi
11770
11771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11772 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11773 $as_echo "$ac_header_compiler" >&6; }
11774
11775 # Is the header present?
11776 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11777 $as_echo_n "checking $ac_header presence... " >&6; }
11778 cat >conftest.$ac_ext <<_ACEOF
11779 /* confdefs.h.  */
11780 _ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h.  */
11784 #include <$ac_header>
11785 _ACEOF
11786 if { (ac_try="$ac_cpp conftest.$ac_ext"
11787 case "(($ac_try" in
11788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789   *) ac_try_echo=$ac_try;;
11790 esac
11791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11792 $as_echo "$ac_try_echo") >&5
11793   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11794   ac_status=$?
11795   grep -v '^ *+' conftest.er1 >conftest.err
11796   rm -f conftest.er1
11797   cat conftest.err >&5
11798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); } >/dev/null && {
11800          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11801          test ! -s conftest.err
11802        }; then
11803   ac_header_preproc=yes
11804 else
11805   $as_echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11807
11808   ac_header_preproc=no
11809 fi
11810
11811 rm -f conftest.err conftest.$ac_ext
11812 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11813 $as_echo "$ac_header_preproc" >&6; }
11814
11815 # So?  What about this header?
11816 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11817   yes:no: )
11818     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11819 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11820     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11821 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11822     ac_header_preproc=yes
11823     ;;
11824   no:yes:* )
11825     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11826 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11827     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11828 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11829     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11830 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11831     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11832 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11833     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11834 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11835     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11836 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11837
11838     ;;
11839 esac
11840 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11841 $as_echo_n "checking for $ac_header... " >&6; }
11842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11843   $as_echo_n "(cached) " >&6
11844 else
11845   eval "$as_ac_Header=\$ac_header_preproc"
11846 fi
11847 ac_res=`eval 'as_val=${'$as_ac_Header'}
11848                  $as_echo "$as_val"'`
11849                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11850 $as_echo "$ac_res" >&6; }
11851
11852 fi
11853 as_val=`eval 'as_val=${'$as_ac_Header'}
11854                  $as_echo "$as_val"'`
11855    if test "x$as_val" = x""yes; then
11856   cat >>confdefs.h <<_ACEOF
11857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11858 _ACEOF
11859
11860 fi
11861
11862 done
11863
11864
11865 for ac_func in pango_ft2_font_map_create_context
11866 do
11867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11868 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11869 $as_echo_n "checking for $ac_func... " >&6; }
11870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11871   $as_echo_n "(cached) " >&6
11872 else
11873   cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h.  */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h.  */
11879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11881 #define $ac_func innocuous_$ac_func
11882
11883 /* System header to define __stub macros and hopefully few prototypes,
11884     which can conflict with char $ac_func (); below.
11885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886     <limits.h> exists even on freestanding compilers.  */
11887
11888 #ifdef __STDC__
11889 # include <limits.h>
11890 #else
11891 # include <assert.h>
11892 #endif
11893
11894 #undef $ac_func
11895
11896 /* Override any GCC internal prototype to avoid an error.
11897    Use char because int might match the return type of a GCC
11898    builtin and then its argument prototype would still apply.  */
11899 #ifdef __cplusplus
11900 extern "C"
11901 #endif
11902 char $ac_func ();
11903 /* The GNU C library defines this for functions which it implements
11904     to always fail with ENOSYS.  Some functions are actually named
11905     something starting with __ and the normal name is an alias.  */
11906 #if defined __stub_$ac_func || defined __stub___$ac_func
11907 choke me
11908 #endif
11909
11910 int
11911 main ()
11912 {
11913 return $ac_func ();
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (ac_try="$ac_link"
11920 case "(($ac_try" in
11921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922   *) ac_try_echo=$ac_try;;
11923 esac
11924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11925 $as_echo "$ac_try_echo") >&5
11926   (eval "$ac_link") 2>conftest.er1
11927   ac_status=$?
11928   grep -v '^ *+' conftest.er1 >conftest.err
11929   rm -f conftest.er1
11930   cat conftest.err >&5
11931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); } && {
11933          test -z "$ac_cxx_werror_flag" ||
11934          test ! -s conftest.err
11935        } && test -s conftest$ac_exeext && {
11936          test "$cross_compiling" = yes ||
11937          $as_test_x conftest$ac_exeext
11938        }; then
11939   eval "$as_ac_var=yes"
11940 else
11941   $as_echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11943
11944         eval "$as_ac_var=no"
11945 fi
11946
11947 rm -rf conftest.dSYM
11948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11949       conftest$ac_exeext conftest.$ac_ext
11950 fi
11951 ac_res=`eval 'as_val=${'$as_ac_var'}
11952                  $as_echo "$as_val"'`
11953                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11954 $as_echo "$ac_res" >&6; }
11955 as_val=`eval 'as_val=${'$as_ac_var'}
11956                  $as_echo "$as_val"'`
11957    if test "x$as_val" = x""yes; then
11958   cat >>confdefs.h <<_ACEOF
11959 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11960 _ACEOF
11961
11962 fi
11963 done
11964
11965
11966
11967         CPPFLAGS="$save_CPPFLAGS"
11968         LIBS="$save_LIBS"
11969     else
11970         # UGR
11971         #r="libpangoft2-dev or pangoft2-devel"e
11972         r="libpango1.0-dev or pango?-devel"
11973         ver="`pkg-config --modversion pangoft2`"
11974
11975     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.6.0 (installed: $ver)"\"`\"
11976
11977     fi
11978
11979
11980
11981   succeeded=no
11982
11983   if test -z "$PKG_CONFIG"; then
11984     # Extract the first word of "pkg-config", so it can be a program name with args.
11985 set dummy pkg-config; ac_word=$2
11986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11987 $as_echo_n "checking for $ac_word... " >&6; }
11988 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11989   $as_echo_n "(cached) " >&6
11990 else
11991   case $PKG_CONFIG in
11992   [\\/]* | ?:[\\/]*)
11993   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11994   ;;
11995   *)
11996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997 for as_dir in $PATH
11998 do
11999   IFS=$as_save_IFS
12000   test -z "$as_dir" && as_dir=.
12001   for ac_exec_ext in '' $ac_executable_extensions; do
12002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12003     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12004     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12005     break 2
12006   fi
12007 done
12008 done
12009 IFS=$as_save_IFS
12010
12011   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12012   ;;
12013 esac
12014 fi
12015 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12016 if test -n "$PKG_CONFIG"; then
12017   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12018 $as_echo "$PKG_CONFIG" >&6; }
12019 else
12020   { $as_echo "$as_me:$LINENO: result: no" >&5
12021 $as_echo "no" >&6; }
12022 fi
12023
12024
12025   fi
12026
12027   if test "$PKG_CONFIG" = "no" ; then
12028      echo "*** The pkg-config script could not be found. Make sure it is"
12029      echo "*** in your path, or set the PKG_CONFIG environment variable"
12030      echo "*** to the full path to pkg-config."
12031      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12032   else
12033      PKG_CONFIG_MIN_VERSION=0.9.0
12034      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12035         { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.4.0" >&5
12036 $as_echo_n "checking for fontconfig >= 2.4.0... " >&6; }
12037
12038         if $PKG_CONFIG --exists "fontconfig >= 2.4.0" ; then
12039             { $as_echo "$as_me:$LINENO: result: yes" >&5
12040 $as_echo "yes" >&6; }
12041             succeeded=yes
12042
12043             { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12044 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12045             FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4.0"`
12046             { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12047 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12048
12049             { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12050 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12051             FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4.0"`
12052             { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12053 $as_echo "$FONTCONFIG_LIBS" >&6; }
12054         else
12055             FONTCONFIG_CFLAGS=""
12056             FONTCONFIG_LIBS=""
12057             ## If we have a custom action on failure, don't print errors, but
12058             ## do set a variable so people can do so.
12059             FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.4.0"`
12060
12061         fi
12062
12063
12064
12065      fi
12066   fi
12067
12068   if test $succeeded = yes; then
12069      have_fontconfig=yes
12070   else
12071      true
12072   fi
12073
12074     if test "$have_fontconfig" = yes ; then
12075         cat >>confdefs.h <<\_ACEOF
12076 #define HAVE_FONTCONFIG 1
12077 _ACEOF
12078
12079         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
12080         save_CPPFLAGS="$CPPFLAGS"
12081         save_LIBS="$LIBS"
12082         CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
12083         LIBS="$FONTCONFIG_LIBS $LIBS"
12084
12085
12086         CPPFLAGS="$save_CPPFLAGS"
12087         LIBS="$save_LIBS"
12088     else
12089         r="libfontconfig-dev or fontconfig-devel"
12090         ver="`pkg-config --modversion fontconfig`"
12091
12092     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.4.0 (installed: $ver)"\"`\"
12093
12094     fi
12095
12096
12097
12098   succeeded=no
12099
12100   if test -z "$PKG_CONFIG"; then
12101     # Extract the first word of "pkg-config", so it can be a program name with args.
12102 set dummy pkg-config; ac_word=$2
12103 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12104 $as_echo_n "checking for $ac_word... " >&6; }
12105 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12106   $as_echo_n "(cached) " >&6
12107 else
12108   case $PKG_CONFIG in
12109   [\\/]* | ?:[\\/]*)
12110   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12111   ;;
12112   *)
12113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114 for as_dir in $PATH
12115 do
12116   IFS=$as_save_IFS
12117   test -z "$as_dir" && as_dir=.
12118   for ac_exec_ext in '' $ac_executable_extensions; do
12119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12120     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12121     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12122     break 2
12123   fi
12124 done
12125 done
12126 IFS=$as_save_IFS
12127
12128   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12129   ;;
12130 esac
12131 fi
12132 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12133 if test -n "$PKG_CONFIG"; then
12134   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12135 $as_echo "$PKG_CONFIG" >&6; }
12136 else
12137   { $as_echo "$as_me:$LINENO: result: no" >&5
12138 $as_echo "no" >&6; }
12139 fi
12140
12141
12142   fi
12143
12144   if test "$PKG_CONFIG" = "no" ; then
12145      echo "*** The pkg-config script could not be found. Make sure it is"
12146      echo "*** in your path, or set the PKG_CONFIG environment variable"
12147      echo "*** to the full path to pkg-config."
12148      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12149   else
12150      PKG_CONFIG_MIN_VERSION=0.9.0
12151      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12152         { $as_echo "$as_me:$LINENO: checking for freetype2 >= 2.1.10" >&5
12153 $as_echo_n "checking for freetype2 >= 2.1.10... " >&6; }
12154
12155         if $PKG_CONFIG --exists "freetype2 >= 2.1.10" ; then
12156             { $as_echo "$as_me:$LINENO: result: yes" >&5
12157 $as_echo "yes" >&6; }
12158             succeeded=yes
12159
12160             { $as_echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
12161 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
12162             FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.10"`
12163             { $as_echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
12164 $as_echo "$FREETYPE2_CFLAGS" >&6; }
12165
12166             { $as_echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
12167 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
12168             FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.10"`
12169             { $as_echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
12170 $as_echo "$FREETYPE2_LIBS" >&6; }
12171         else
12172             FREETYPE2_CFLAGS=""
12173             FREETYPE2_LIBS=""
12174             ## If we have a custom action on failure, don't print errors, but
12175             ## do set a variable so people can do so.
12176             FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.1.10"`
12177
12178         fi
12179
12180
12181
12182      fi
12183   fi
12184
12185   if test $succeeded = yes; then
12186      have_freetype2=yes
12187   else
12188      true
12189   fi
12190
12191     if test "$have_freetype2" = yes; then
12192         cat >>confdefs.h <<\_ACEOF
12193 #define HAVE_FREETYPE2 1
12194 _ACEOF
12195
12196         save_CPPFLAGS="$CPPFLAGS"
12197         save_LIBS="$LIBS"
12198         CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
12199         LIBS="$FREETYPE2_LIBS $LIBS"
12200
12201
12202         CPPFLAGS="$save_CPPFLAGS"
12203         LIBS="$save_LIBS"
12204     else
12205         # UGR
12206         #r="libfreetype2-dev or freetype2-devel"
12207         r="libfreetype6-dev or freetype?-devel"
12208         ver="`pkg-config --modversion freetype2`"
12209
12210     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.1.10 (installed: $ver)"\"`\"
12211
12212     fi
12213
12214
12215
12216     { $as_echo "$as_me:$LINENO: checking host system type" >&5
12217 $as_echo_n "checking host system type... " >&6; }
12218 if test "${ac_cv_host+set}" = set; then
12219   $as_echo_n "(cached) " >&6
12220 else
12221   if test "x$host_alias" = x; then
12222   ac_cv_host=$ac_cv_build
12223 else
12224   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12225     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12226 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12227    { (exit 1); exit 1; }; }
12228 fi
12229
12230 fi
12231 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12232 $as_echo "$ac_cv_host" >&6; }
12233 case $ac_cv_host in
12234 *-*-*) ;;
12235 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12236 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12237    { (exit 1); exit 1; }; };;
12238 esac
12239 host=$ac_cv_host
12240 ac_save_IFS=$IFS; IFS='-'
12241 set x $ac_cv_host
12242 shift
12243 host_cpu=$1
12244 host_vendor=$2
12245 shift; shift
12246 # Remember, the first character of IFS is used to create $*,
12247 # except with old shells:
12248 host_os=$*
12249 IFS=$ac_save_IFS
12250 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12251
12252
12253 case $host_os in
12254   *cygwin* ) CYGWIN=yes;;
12255          * ) CYGWIN=no;;
12256 esac
12257
12258     { $as_echo "$as_me:$LINENO: checking host system type" >&5
12259 $as_echo_n "checking host system type... " >&6; }
12260 if test "${ac_cv_host+set}" = set; then
12261   $as_echo_n "(cached) " >&6
12262 else
12263   if test "x$host_alias" = x; then
12264   ac_cv_host=$ac_cv_build
12265 else
12266   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12267     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12268 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12269    { (exit 1); exit 1; }; }
12270 fi
12271
12272 fi
12273 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12274 $as_echo "$ac_cv_host" >&6; }
12275 case $ac_cv_host in
12276 *-*-*) ;;
12277 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12278 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12279    { (exit 1); exit 1; }; };;
12280 esac
12281 host=$ac_cv_host
12282 ac_save_IFS=$IFS; IFS='-'
12283 set x $ac_cv_host
12284 shift
12285 host_cpu=$1
12286 host_vendor=$2
12287 shift; shift
12288 # Remember, the first character of IFS is used to create $*,
12289 # except with old shells:
12290 host_os=$*
12291 IFS=$ac_save_IFS
12292 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12293
12294
12295 case $host_os in
12296   *mingw32* ) MINGW32=yes;;
12297           * ) MINGW32=no;;
12298 esac
12299
12300
12301     if test "$CYGWIN" = "yes"; then
12302         LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
12303         program_suffix=.exe
12304         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
12305     elif test "$MINGW32" = "yes"; then
12306         LN='cp -r'
12307         LN_S='cp -r'
12308         program_suffix=.exe
12309         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
12310         PATHSEP=';'
12311     fi
12312
12313
12314
12315     cat >>confdefs.h <<_ACEOF
12316 #define DIRSEP '${DIRSEP}'
12317 _ACEOF
12318
12319     cat >>confdefs.h <<_ACEOF
12320 #define PATHSEP '${PATHSEP}'
12321 _ACEOF
12322
12323
12324
12325
12326
12327     { $as_echo "$as_me:$LINENO: checking for some flavor of Windows" >&5
12328 $as_echo_n "checking for some flavor of Windows... " >&6; }
12329     if test "$CYGWIN$MINGW32" = "nono"; then
12330         PLATFORM_WINDOWS=no
12331     else
12332         PLATFORM_WINDOWS=yes
12333     fi
12334     { $as_echo "$as_me:$LINENO: result: $PLATFORM_WINDOWS" >&5
12335 $as_echo "$PLATFORM_WINDOWS" >&6; }
12336
12337
12338     for ac_prog in $target-windres windres
12339 do
12340   # Extract the first word of "$ac_prog", so it can be a program name with args.
12341 set dummy $ac_prog; ac_word=$2
12342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12343 $as_echo_n "checking for $ac_word... " >&6; }
12344 if test "${ac_cv_prog_WINDRES+set}" = set; then
12345   $as_echo_n "(cached) " >&6
12346 else
12347   if test -n "$WINDRES"; then
12348   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12349 else
12350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351 for as_dir in $PATH
12352 do
12353   IFS=$as_save_IFS
12354   test -z "$as_dir" && as_dir=.
12355   for ac_exec_ext in '' $ac_executable_extensions; do
12356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12357     ac_cv_prog_WINDRES="$ac_prog"
12358     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12359     break 2
12360   fi
12361 done
12362 done
12363 IFS=$as_save_IFS
12364
12365 fi
12366 fi
12367 WINDRES=$ac_cv_prog_WINDRES
12368 if test -n "$WINDRES"; then
12369   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
12370 $as_echo "$WINDRES" >&6; }
12371 else
12372   { $as_echo "$as_me:$LINENO: result: no" >&5
12373 $as_echo "no" >&6; }
12374 fi
12375
12376
12377   test -n "$WINDRES" && break
12378 done
12379 test -n "$WINDRES" || WINDRES="no"
12380
12381
12382
12383     r="`eval echo '$'"WINDRES"`"
12384     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"WINDRES"`' : '.*\(echo\)' > /dev/null; then
12385         true
12386     else
12387         ##STEPMAKE_WARN(cannot find . )
12388         false
12389     fi
12390
12391     if test $? -ne 0; then
12392
12393     eval "x"=\"`eval echo \"'$'x\" \"$target-windres windres\"`\"
12394
12395         if test "x" = "REQUIRED"; then
12396             command="echo ERROR: $target-windres windres not found"
12397             # abort configure process here?
12398         else
12399             command="- echo $target-windres windres not found"
12400         fi
12401         eval "WINDRES"='$command'
12402         false
12403     else
12404         true
12405     fi
12406
12407     if test $? -eq 0 -a -n ""; then
12408
12409     r="`eval echo '$'"WINDRES"`"
12410     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12411 $as_echo_n "checking $r version... " >&6; }
12412     exe=`
12413     ## which doesn't work in ash, if /usr/bin/which isn't installed
12414     ## type -p doesn't work in ash
12415     ## command -v doesn't work in zsh
12416     ## command -v "$r" 2>&1
12417     ## this test should work in ash, bash, pdksh (ksh), zsh
12418     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12419 `
12420     if test -n ""; then
12421         ver=""
12422     else
12423         ver=`
12424     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12425     ##
12426     ## ARG.
12427     ## Workaround for broken Debian gcc version string:
12428     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12429     ##
12430     ## -V: Workaround for python
12431
12432     #dnl
12433
12434     ## Assume and hunt for dotted version multiplet.
12435     ## use eval trickery, because we cannot use multi-level $() instead of ``
12436     ## for compatibility reasons.
12437
12438     ## grab the first version number in  --version output.
12439     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12440                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12441                 head -n 1 |
12442                 tr ' ' '\n' |
12443                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12444                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12445                 head -n 1\`\"
12446
12447     if test -z "$_ver"; then
12448         ## If empty, try date [fontforge]
12449         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12450             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12451             | head -n 1 \
12452             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12453     fi
12454     echo "$_ver"
12455     #dnl
12456 `
12457     fi
12458     num=`
12459     echo "$ver" | awk -F. '
12460     {
12461       if ($3) {three = $3}
12462       else {three = 0}
12463     }
12464     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12465 `
12466     req=`
12467     echo "" | awk -F. '
12468     {
12469       if ($3) {three = $3}
12470       else {three = 0}
12471     }
12472     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12473 `
12474     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12475 $as_echo "$ver" >&6; }
12476     if test "$num" -lt "$req"; then
12477
12478     eval "x"=\"`eval echo \"'$'x\" \""$r >=  (installed: $ver)"\"`\"
12479
12480     fi
12481     vervar="`echo WINDRES | tr 'a-z' 'A-Z'`_VERSION"
12482     eval `echo $vervar=$num`
12483 ##    AC_SUBST(`eval echo $vervar`)
12484
12485     fi
12486
12487
12488
12489
12490 # guile executable for some scripts
12491
12492     { $as_echo "$as_me:$LINENO: checking for guile" >&5
12493 $as_echo_n "checking for guile... " >&6; }
12494     guile="guile"
12495     found="no"
12496     for r in $GUILE guile guile2 guile2.0 guile-2.0 guile1 guile1.9 guile1.8 guile-1 guile-1.9 guile-1.8; do
12497         exe=`
12498     ## which doesn't work in ash, if /usr/bin/which isn't installed
12499     ## type -p doesn't work in ash
12500     ## command -v doesn't work in zsh
12501     ## command -v "$r" 2>&1
12502     ## this test should work in ash, bash, pdksh (ksh), zsh
12503     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12504 `
12505         if ! $exe --version > /dev/null 2>&1 ; then
12506             continue
12507         fi
12508         ver=`
12509     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12510     ##
12511     ## ARG.
12512     ## Workaround for broken Debian gcc version string:
12513     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12514     ##
12515     ## -V: Workaround for python
12516
12517     #dnl
12518
12519     ## Assume and hunt for dotted version multiplet.
12520     ## use eval trickery, because we cannot use multi-level $() instead of ``
12521     ## for compatibility reasons.
12522
12523     ## grab the first version number in  --version output.
12524     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12525                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12526                 head -n 1 |
12527                 tr ' ' '\n' |
12528                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12529                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12530                 head -n 1\`\"
12531
12532     if test -z "$_ver"; then
12533         ## If empty, try date [fontforge]
12534         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12535             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12536             | head -n 1 \
12537             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12538     fi
12539     echo "$_ver"
12540     #dnl
12541 `
12542         num=`
12543     echo "$ver" | awk -F. '
12544     {
12545       if ($3) {three = $3}
12546       else {three = 0}
12547     }
12548     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12549 `
12550         req=`
12551     echo "1.8.2" | awk -F. '
12552     {
12553       if ($3) {three = $3}
12554       else {three = 0}
12555     }
12556     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12557 `
12558         sup=`
12559     echo "1.9.0" | awk -F. '
12560     {
12561       if ($3) {three = $3}
12562       else {three = 0}
12563     }
12564     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12565 `
12566         if test -n "1.8.2" && test "$num" -lt "$req"; then
12567             guile="$r >= 1.8.2 (installed: $ver)"
12568             continue
12569         else
12570             if test -n "1.9.0" && test "$num" -ge "$sup"; then
12571                 guile="$r < 1.9.0 (installed: $ver)"
12572                 continue
12573             else
12574                 guile=$r
12575                 found=$r
12576                 break
12577             fi
12578         fi
12579     done
12580     { $as_echo "$as_me:$LINENO: result: $found" >&5
12581 $as_echo "$found" >&6; }
12582     if test "$found" != "no"; then
12583         { $as_echo "$as_me:$LINENO: checking $guile version" >&5
12584 $as_echo_n "checking $guile version... " >&6; }
12585         { $as_echo "$as_me:$LINENO: result: $ver" >&5
12586 $as_echo "$ver" >&6; }
12587         GUILE=$found
12588     else
12589
12590     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"$guile\"`\"
12591
12592     fi
12593
12594     for ac_prog in $GUILE
12595 do
12596   # Extract the first word of "$ac_prog", so it can be a program name with args.
12597 set dummy $ac_prog; ac_word=$2
12598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12599 $as_echo_n "checking for $ac_word... " >&6; }
12600 if test "${ac_cv_prog_GUILE+set}" = set; then
12601   $as_echo_n "(cached) " >&6
12602 else
12603   if test -n "$GUILE"; then
12604   ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
12605 else
12606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607 for as_dir in $PATH
12608 do
12609   IFS=$as_save_IFS
12610   test -z "$as_dir" && as_dir=.
12611   for ac_exec_ext in '' $ac_executable_extensions; do
12612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12613     ac_cv_prog_GUILE="$ac_prog"
12614     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12615     break 2
12616   fi
12617 done
12618 done
12619 IFS=$as_save_IFS
12620
12621 fi
12622 fi
12623 GUILE=$ac_cv_prog_GUILE
12624 if test -n "$GUILE"; then
12625   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12626 $as_echo "$GUILE" >&6; }
12627 else
12628   { $as_echo "$as_me:$LINENO: result: no" >&5
12629 $as_echo "no" >&6; }
12630 fi
12631
12632
12633   test -n "$GUILE" && break
12634 done
12635 test -n "$GUILE" || GUILE="no"
12636
12637
12638
12639     r="`eval echo '$'"GUILE"`"
12640     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
12641         true
12642     else
12643         ##STEPMAKE_WARN(cannot find . )
12644         false
12645     fi
12646
12647     if test $? -ne 0; then
12648
12649     eval ""=\"`eval echo \"'$'\" \"$GUILE\"`\"
12650
12651         if test "" = "REQUIRED"; then
12652             command="echo ERROR: $GUILE not found"
12653             # abort configure process here?
12654         else
12655             command="- echo $GUILE not found"
12656         fi
12657         eval "GUILE"='$command'
12658         false
12659     else
12660         true
12661     fi
12662
12663     if test $? -eq 0; then
12664         for ac_prog in $GUILE
12665 do
12666   # Extract the first word of "$ac_prog", so it can be a program name with args.
12667 set dummy $ac_prog; ac_word=$2
12668 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12669 $as_echo_n "checking for $ac_word... " >&6; }
12670 if test "${ac_cv_path_GUILE+set}" = set; then
12671   $as_echo_n "(cached) " >&6
12672 else
12673   case $GUILE in
12674   [\\/]* | ?:[\\/]*)
12675   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
12676   ;;
12677   *)
12678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12679 for as_dir in $PATH
12680 do
12681   IFS=$as_save_IFS
12682   test -z "$as_dir" && as_dir=.
12683   for ac_exec_ext in '' $ac_executable_extensions; do
12684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12685     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
12686     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12687     break 2
12688   fi
12689 done
12690 done
12691 IFS=$as_save_IFS
12692
12693   ;;
12694 esac
12695 fi
12696 GUILE=$ac_cv_path_GUILE
12697 if test -n "$GUILE"; then
12698   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12699 $as_echo "$GUILE" >&6; }
12700 else
12701   { $as_echo "$as_me:$LINENO: result: no" >&5
12702 $as_echo "no" >&6; }
12703 fi
12704
12705
12706   test -n "$GUILE" && break
12707 done
12708
12709         if test -n ""; then
12710
12711     r="`eval echo '$'"GUILE"`"
12712     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12713 $as_echo_n "checking $r version... " >&6; }
12714     exe=`
12715     ## which doesn't work in ash, if /usr/bin/which isn't installed
12716     ## type -p doesn't work in ash
12717     ## command -v doesn't work in zsh
12718     ## command -v "$r" 2>&1
12719     ## this test should work in ash, bash, pdksh (ksh), zsh
12720     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12721 `
12722     if test -n ""; then
12723         ver=""
12724     else
12725         ver=`
12726     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12727     ##
12728     ## ARG.
12729     ## Workaround for broken Debian gcc version string:
12730     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12731     ##
12732     ## -V: Workaround for python
12733
12734     #dnl
12735
12736     ## Assume and hunt for dotted version multiplet.
12737     ## use eval trickery, because we cannot use multi-level $() instead of ``
12738     ## for compatibility reasons.
12739
12740     ## grab the first version number in  --version output.
12741     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12742                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12743                 head -n 1 |
12744                 tr ' ' '\n' |
12745                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12746                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12747                 head -n 1\`\"
12748
12749     if test -z "$_ver"; then
12750         ## If empty, try date [fontforge]
12751         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12752             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12753             | head -n 1 \
12754             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12755     fi
12756     echo "$_ver"
12757     #dnl
12758 `
12759     fi
12760     num=`
12761     echo "$ver" | awk -F. '
12762     {
12763       if ($3) {three = $3}
12764       else {three = 0}
12765     }
12766     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12767 `
12768     req=`
12769     echo "" | awk -F. '
12770     {
12771       if ($3) {three = $3}
12772       else {three = 0}
12773     }
12774     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12775 `
12776     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12777 $as_echo "$ver" >&6; }
12778     if test "$num" -lt "$req"; then
12779
12780     eval ""=\"`eval echo \"'$'\" \""$r >=  (installed: $ver)"\"`\"
12781
12782     fi
12783     vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
12784     eval `echo $vervar=$num`
12785 ##    AC_SUBST(`eval echo $vervar`)
12786
12787         fi
12788     fi
12789
12790
12791
12792 # perl for help2man and for mf2pt1.pl
12793
12794
12795     for ac_prog in perl
12796 do
12797   # Extract the first word of "$ac_prog", so it can be a program name with args.
12798 set dummy $ac_prog; ac_word=$2
12799 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12800 $as_echo_n "checking for $ac_word... " >&6; }
12801 if test "${ac_cv_prog_PERL+set}" = set; then
12802   $as_echo_n "(cached) " >&6
12803 else
12804   if test -n "$PERL"; then
12805   ac_cv_prog_PERL="$PERL" # Let the user override the test.
12806 else
12807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12808 for as_dir in $PATH
12809 do
12810   IFS=$as_save_IFS
12811   test -z "$as_dir" && as_dir=.
12812   for ac_exec_ext in '' $ac_executable_extensions; do
12813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12814     ac_cv_prog_PERL="$ac_prog"
12815     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12816     break 2
12817   fi
12818 done
12819 done
12820 IFS=$as_save_IFS
12821
12822 fi
12823 fi
12824 PERL=$ac_cv_prog_PERL
12825 if test -n "$PERL"; then
12826   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12827 $as_echo "$PERL" >&6; }
12828 else
12829   { $as_echo "$as_me:$LINENO: result: no" >&5
12830 $as_echo "no" >&6; }
12831 fi
12832
12833
12834   test -n "$PERL" && break
12835 done
12836 test -n "$PERL" || PERL="no"
12837
12838
12839
12840     r="`eval echo '$'"PERL"`"
12841     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
12842         true
12843     else
12844         ##STEPMAKE_WARN(cannot find . )
12845         false
12846     fi
12847
12848     if test $? -ne 0; then
12849
12850     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"perl\"`\"
12851
12852         if test "REQUIRED" = "REQUIRED"; then
12853             command="echo ERROR: perl not found"
12854             # abort configure process here?
12855         else
12856             command="- echo perl not found"
12857         fi
12858         eval "PERL"='$command'
12859         false
12860     else
12861         true
12862     fi
12863
12864     if test $? -eq 0; then
12865         for ac_prog in perl
12866 do
12867   # Extract the first word of "$ac_prog", so it can be a program name with args.
12868 set dummy $ac_prog; ac_word=$2
12869 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12870 $as_echo_n "checking for $ac_word... " >&6; }
12871 if test "${ac_cv_path_PERL+set}" = set; then
12872   $as_echo_n "(cached) " >&6
12873 else
12874   case $PERL in
12875   [\\/]* | ?:[\\/]*)
12876   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12877   ;;
12878   *)
12879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12880 for as_dir in $PATH
12881 do
12882   IFS=$as_save_IFS
12883   test -z "$as_dir" && as_dir=.
12884   for ac_exec_ext in '' $ac_executable_extensions; do
12885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12886     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12887     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12888     break 2
12889   fi
12890 done
12891 done
12892 IFS=$as_save_IFS
12893
12894   ;;
12895 esac
12896 fi
12897 PERL=$ac_cv_path_PERL
12898 if test -n "$PERL"; then
12899   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12900 $as_echo "$PERL" >&6; }
12901 else
12902   { $as_echo "$as_me:$LINENO: result: no" >&5
12903 $as_echo "no" >&6; }
12904 fi
12905
12906
12907   test -n "$PERL" && break
12908 done
12909
12910         if test -n ""; then
12911
12912     r="`eval echo '$'"PERL"`"
12913     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12914 $as_echo_n "checking $r version... " >&6; }
12915     exe=`
12916     ## which doesn't work in ash, if /usr/bin/which isn't installed
12917     ## type -p doesn't work in ash
12918     ## command -v doesn't work in zsh
12919     ## command -v "$r" 2>&1
12920     ## this test should work in ash, bash, pdksh (ksh), zsh
12921     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12922 `
12923     if test -n ""; then
12924         ver=""
12925     else
12926         ver=`
12927     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12928     ##
12929     ## ARG.
12930     ## Workaround for broken Debian gcc version string:
12931     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12932     ##
12933     ## -V: Workaround for python
12934
12935     #dnl
12936
12937     ## Assume and hunt for dotted version multiplet.
12938     ## use eval trickery, because we cannot use multi-level $() instead of ``
12939     ## for compatibility reasons.
12940
12941     ## grab the first version number in  --version output.
12942     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12943                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12944                 head -n 1 |
12945                 tr ' ' '\n' |
12946                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12947                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12948                 head -n 1\`\"
12949
12950     if test -z "$_ver"; then
12951         ## If empty, try date [fontforge]
12952         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12953             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12954             | head -n 1 \
12955             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12956     fi
12957     echo "$_ver"
12958     #dnl
12959 `
12960     fi
12961     num=`
12962     echo "$ver" | awk -F. '
12963     {
12964       if ($3) {three = $3}
12965       else {three = 0}
12966     }
12967     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12968 `
12969     req=`
12970     echo "" | awk -F. '
12971     {
12972       if ($3) {three = $3}
12973       else {three = 0}
12974     }
12975     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12976 `
12977     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12978 $as_echo "$ver" >&6; }
12979     if test "$num" -lt "$req"; then
12980
12981     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
12982
12983     fi
12984     vervar="`echo PERL | tr 'a-z' 'A-Z'`_VERSION"
12985     eval `echo $vervar=$num`
12986 ##    AC_SUBST(`eval echo $vervar`)
12987
12988         fi
12989     fi
12990
12991
12992
12993 ## Optional tools for building documentation, website, extra fonts.
12994 if test "$DOCUMENTATION" = "yes"; then
12995   DOCUMENTATION_REQUIRED=REQUIRED
12996 else
12997   DOCUMENTATION_REQUIRED=OPTIONAL
12998 fi
12999
13000
13001     for ac_prog in gs
13002 do
13003   # Extract the first word of "$ac_prog", so it can be a program name with args.
13004 set dummy $ac_prog; ac_word=$2
13005 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13006 $as_echo_n "checking for $ac_word... " >&6; }
13007 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
13008   $as_echo_n "(cached) " >&6
13009 else
13010   if test -n "$GHOSTSCRIPT"; then
13011   ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
13012 else
13013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13014 for as_dir in $PATH
13015 do
13016   IFS=$as_save_IFS
13017   test -z "$as_dir" && as_dir=.
13018   for ac_exec_ext in '' $ac_executable_extensions; do
13019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13020     ac_cv_prog_GHOSTSCRIPT="$ac_prog"
13021     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13022     break 2
13023   fi
13024 done
13025 done
13026 IFS=$as_save_IFS
13027
13028 fi
13029 fi
13030 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
13031 if test -n "$GHOSTSCRIPT"; then
13032   { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
13033 $as_echo "$GHOSTSCRIPT" >&6; }
13034 else
13035   { $as_echo "$as_me:$LINENO: result: no" >&5
13036 $as_echo "no" >&6; }
13037 fi
13038
13039
13040   test -n "$GHOSTSCRIPT" && break
13041 done
13042 test -n "$GHOSTSCRIPT" || GHOSTSCRIPT="no"
13043
13044
13045
13046     r="`eval echo '$'"GHOSTSCRIPT"`"
13047     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GHOSTSCRIPT"`' : '.*\(echo\)' > /dev/null; then
13048         true
13049     else
13050         ##STEPMAKE_WARN(cannot find . )
13051         false
13052     fi
13053
13054     if test $? -ne 0; then
13055
13056     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"gs\"`\"
13057
13058         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13059             command="echo ERROR: gs not found"
13060             # abort configure process here?
13061         else
13062             command="- echo gs not found"
13063         fi
13064         eval "GHOSTSCRIPT"='$command'
13065         false
13066     else
13067         true
13068     fi
13069
13070     if test $? -eq 0; then
13071         for ac_prog in gs
13072 do
13073   # Extract the first word of "$ac_prog", so it can be a program name with args.
13074 set dummy $ac_prog; ac_word=$2
13075 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13076 $as_echo_n "checking for $ac_word... " >&6; }
13077 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
13078   $as_echo_n "(cached) " >&6
13079 else
13080   case $GHOSTSCRIPT in
13081   [\\/]* | ?:[\\/]*)
13082   ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
13083   ;;
13084   *)
13085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086 for as_dir in $PATH
13087 do
13088   IFS=$as_save_IFS
13089   test -z "$as_dir" && as_dir=.
13090   for ac_exec_ext in '' $ac_executable_extensions; do
13091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13092     ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
13093     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13094     break 2
13095   fi
13096 done
13097 done
13098 IFS=$as_save_IFS
13099
13100   ;;
13101 esac
13102 fi
13103 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
13104 if test -n "$GHOSTSCRIPT"; then
13105   { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
13106 $as_echo "$GHOSTSCRIPT" >&6; }
13107 else
13108   { $as_echo "$as_me:$LINENO: result: no" >&5
13109 $as_echo "no" >&6; }
13110 fi
13111
13112
13113   test -n "$GHOSTSCRIPT" && break
13114 done
13115
13116         if test -n "8.60"; then
13117
13118     r="`eval echo '$'"GHOSTSCRIPT"`"
13119     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13120 $as_echo_n "checking $r version... " >&6; }
13121     exe=`
13122     ## which doesn't work in ash, if /usr/bin/which isn't installed
13123     ## type -p doesn't work in ash
13124     ## command -v doesn't work in zsh
13125     ## command -v "$r" 2>&1
13126     ## this test should work in ash, bash, pdksh (ksh), zsh
13127     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13128 `
13129     if test -n ""; then
13130         ver=""
13131     else
13132         ver=`
13133     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13134     ##
13135     ## ARG.
13136     ## Workaround for broken Debian gcc version string:
13137     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13138     ##
13139     ## -V: Workaround for python
13140
13141     #dnl
13142
13143     ## Assume and hunt for dotted version multiplet.
13144     ## use eval trickery, because we cannot use multi-level $() instead of ``
13145     ## for compatibility reasons.
13146
13147     ## grab the first version number in  --version output.
13148     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13149                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13150                 head -n 1 |
13151                 tr ' ' '\n' |
13152                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13153                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13154                 head -n 1\`\"
13155
13156     if test -z "$_ver"; then
13157         ## If empty, try date [fontforge]
13158         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13159             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13160             | head -n 1 \
13161             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13162     fi
13163     echo "$_ver"
13164     #dnl
13165 `
13166     fi
13167     num=`
13168     echo "$ver" | awk -F. '
13169     {
13170       if ($3) {three = $3}
13171       else {three = 0}
13172     }
13173     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13174 `
13175     req=`
13176     echo "8.60" | awk -F. '
13177     {
13178       if ($3) {three = $3}
13179       else {three = 0}
13180     }
13181     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13182 `
13183     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13184 $as_echo "$ver" >&6; }
13185     if test "$num" -lt "$req"; then
13186
13187     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 8.60 (installed: $ver)"\"`\"
13188
13189     fi
13190     vervar="`echo GHOSTSCRIPT | tr 'a-z' 'A-Z'`_VERSION"
13191     eval `echo $vervar=$num`
13192 ##    AC_SUBST(`eval echo $vervar`)
13193
13194         fi
13195     fi
13196
13197
13198
13199
13200
13201
13202     for ac_prog in gs
13203 do
13204   # Extract the first word of "$ac_prog", so it can be a program name with args.
13205 set dummy $ac_prog; ac_word=$2
13206 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13207 $as_echo_n "checking for $ac_word... " >&6; }
13208 if test "${ac_cv_prog_GS920+set}" = set; then
13209   $as_echo_n "(cached) " >&6
13210 else
13211   if test -n "$GS920"; then
13212   ac_cv_prog_GS920="$GS920" # Let the user override the test.
13213 else
13214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215 for as_dir in $PATH
13216 do
13217   IFS=$as_save_IFS
13218   test -z "$as_dir" && as_dir=.
13219   for ac_exec_ext in '' $ac_executable_extensions; do
13220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13221     ac_cv_prog_GS920="$ac_prog"
13222     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13223     break 2
13224   fi
13225 done
13226 done
13227 IFS=$as_save_IFS
13228
13229 fi
13230 fi
13231 GS920=$ac_cv_prog_GS920
13232 if test -n "$GS920"; then
13233   { $as_echo "$as_me:$LINENO: result: $GS920" >&5
13234 $as_echo "$GS920" >&6; }
13235 else
13236   { $as_echo "$as_me:$LINENO: result: no" >&5
13237 $as_echo "no" >&6; }
13238 fi
13239
13240
13241   test -n "$GS920" && break
13242 done
13243 test -n "$GS920" || GS920="no"
13244
13245
13246
13247     r="`eval echo '$'"GS920"`"
13248     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GS920"`' : '.*\(echo\)' > /dev/null; then
13249         true
13250     else
13251         ##STEPMAKE_WARN(cannot find . )
13252         false
13253     fi
13254
13255     if test $? -ne 0; then
13256
13257     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"gs\"`\"
13258
13259         if test "OPTIONAL" = "REQUIRED"; then
13260             command="echo ERROR: gs not found"
13261             # abort configure process here?
13262         else
13263             command="- echo gs not found"
13264         fi
13265         eval "GS920"='$command'
13266         false
13267     else
13268         true
13269     fi
13270
13271     if test $? -eq 0 -a -n "9.20"; then
13272
13273     r="`eval echo '$'"GS920"`"
13274     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13275 $as_echo_n "checking $r version... " >&6; }
13276     exe=`
13277     ## which doesn't work in ash, if /usr/bin/which isn't installed
13278     ## type -p doesn't work in ash
13279     ## command -v doesn't work in zsh
13280     ## command -v "$r" 2>&1
13281     ## this test should work in ash, bash, pdksh (ksh), zsh
13282     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13283 `
13284     if test -n ""; then
13285         ver=""
13286     else
13287         ver=`
13288     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13289     ##
13290     ## ARG.
13291     ## Workaround for broken Debian gcc version string:
13292     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13293     ##
13294     ## -V: Workaround for python
13295
13296     #dnl
13297
13298     ## Assume and hunt for dotted version multiplet.
13299     ## use eval trickery, because we cannot use multi-level $() instead of ``
13300     ## for compatibility reasons.
13301
13302     ## grab the first version number in  --version output.
13303     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13304                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13305                 head -n 1 |
13306                 tr ' ' '\n' |
13307                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13308                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13309                 head -n 1\`\"
13310
13311     if test -z "$_ver"; then
13312         ## If empty, try date [fontforge]
13313         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13314             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13315             | head -n 1 \
13316             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13317     fi
13318     echo "$_ver"
13319     #dnl
13320 `
13321     fi
13322     num=`
13323     echo "$ver" | awk -F. '
13324     {
13325       if ($3) {three = $3}
13326       else {three = 0}
13327     }
13328     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13329 `
13330     req=`
13331     echo "9.20" | awk -F. '
13332     {
13333       if ($3) {three = $3}
13334       else {three = 0}
13335     }
13336     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13337 `
13338     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13339 $as_echo "$ver" >&6; }
13340     if test "$num" -lt "$req"; then
13341
13342     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 9.20 (installed: $ver)"\"`\"
13343
13344     fi
13345     vervar="`echo GS920 | tr 'a-z' 'A-Z'`_VERSION"
13346     eval `echo $vervar=$num`
13347 ##    AC_SUBST(`eval echo $vervar`)
13348
13349     fi
13350
13351
13352     for ac_prog in extractpdfmark
13353 do
13354   # Extract the first word of "$ac_prog", so it can be a program name with args.
13355 set dummy $ac_prog; ac_word=$2
13356 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13357 $as_echo_n "checking for $ac_word... " >&6; }
13358 if test "${ac_cv_prog_EXTRACTPDFMARK+set}" = set; then
13359   $as_echo_n "(cached) " >&6
13360 else
13361   if test -n "$EXTRACTPDFMARK"; then
13362   ac_cv_prog_EXTRACTPDFMARK="$EXTRACTPDFMARK" # Let the user override the test.
13363 else
13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365 for as_dir in $PATH
13366 do
13367   IFS=$as_save_IFS
13368   test -z "$as_dir" && as_dir=.
13369   for ac_exec_ext in '' $ac_executable_extensions; do
13370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13371     ac_cv_prog_EXTRACTPDFMARK="$ac_prog"
13372     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13373     break 2
13374   fi
13375 done
13376 done
13377 IFS=$as_save_IFS
13378
13379 fi
13380 fi
13381 EXTRACTPDFMARK=$ac_cv_prog_EXTRACTPDFMARK
13382 if test -n "$EXTRACTPDFMARK"; then
13383   { $as_echo "$as_me:$LINENO: result: $EXTRACTPDFMARK" >&5
13384 $as_echo "$EXTRACTPDFMARK" >&6; }
13385 else
13386   { $as_echo "$as_me:$LINENO: result: no" >&5
13387 $as_echo "no" >&6; }
13388 fi
13389
13390
13391   test -n "$EXTRACTPDFMARK" && break
13392 done
13393 test -n "$EXTRACTPDFMARK" || EXTRACTPDFMARK="no"
13394
13395
13396
13397     r="`eval echo '$'"EXTRACTPDFMARK"`"
13398     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"EXTRACTPDFMARK"`' : '.*\(echo\)' > /dev/null; then
13399         true
13400     else
13401         ##STEPMAKE_WARN(cannot find . )
13402         false
13403     fi
13404
13405     if test $? -ne 0; then
13406
13407     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"extractpdfmark\"`\"
13408
13409         if test "OPTIONAL" = "REQUIRED"; then
13410             command="echo ERROR: extractpdfmark not found"
13411             # abort configure process here?
13412         else
13413             command="- echo extractpdfmark not found"
13414         fi
13415         eval "EXTRACTPDFMARK"='$command'
13416         false
13417     else
13418         true
13419     fi
13420
13421     if test $? -eq 0 -a -n ""; then
13422
13423     r="`eval echo '$'"EXTRACTPDFMARK"`"
13424     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13425 $as_echo_n "checking $r version... " >&6; }
13426     exe=`
13427     ## which doesn't work in ash, if /usr/bin/which isn't installed
13428     ## type -p doesn't work in ash
13429     ## command -v doesn't work in zsh
13430     ## command -v "$r" 2>&1
13431     ## this test should work in ash, bash, pdksh (ksh), zsh
13432     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13433 `
13434     if test -n ""; then
13435         ver=""
13436     else
13437         ver=`
13438     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13439     ##
13440     ## ARG.
13441     ## Workaround for broken Debian gcc version string:
13442     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13443     ##
13444     ## -V: Workaround for python
13445
13446     #dnl
13447
13448     ## Assume and hunt for dotted version multiplet.
13449     ## use eval trickery, because we cannot use multi-level $() instead of ``
13450     ## for compatibility reasons.
13451
13452     ## grab the first version number in  --version output.
13453     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13454                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13455                 head -n 1 |
13456                 tr ' ' '\n' |
13457                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13458                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13459                 head -n 1\`\"
13460
13461     if test -z "$_ver"; then
13462         ## If empty, try date [fontforge]
13463         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13464             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13465             | head -n 1 \
13466             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13467     fi
13468     echo "$_ver"
13469     #dnl
13470 `
13471     fi
13472     num=`
13473     echo "$ver" | awk -F. '
13474     {
13475       if ($3) {three = $3}
13476       else {three = 0}
13477     }
13478     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13479 `
13480     req=`
13481     echo "" | awk -F. '
13482     {
13483       if ($3) {three = $3}
13484       else {three = 0}
13485     }
13486     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13487 `
13488     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13489 $as_echo "$ver" >&6; }
13490     if test "$num" -lt "$req"; then
13491
13492     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
13493
13494     fi
13495     vervar="`echo EXTRACTPDFMARK | tr 'a-z' 'A-Z'`_VERSION"
13496     eval `echo $vervar=$num`
13497 ##    AC_SUBST(`eval echo $vervar`)
13498
13499     fi
13500
13501 req=`
13502     echo "9.20" | awk -F. '
13503     {
13504       if ($3) {three = $3}
13505       else {three = 0}
13506     }
13507     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13508 `
13509 USE_EXTRACTPDFMARK=yes
13510 if test "$GS920_VERSION" -lt "$req"; then
13511     GS920=
13512     USE_EXTRACTPDFMARK=no
13513 fi
13514 if test "$EXTRACTPDFMARK" != "extractpdfmark"; then
13515     EXTRACTPDFMARK=
13516     USE_EXTRACTPDFMARK=no
13517 fi
13518 if test "$USE_EXTRACTPDFMARK" != "yes"; then
13519
13520     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""(Optionally using Ghostscript >= 9.20 together with"\"`\"
13521
13522
13523     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"" Extract PDFmark can significantly reduce the disk space required"\"`\"
13524
13525
13526     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"" for building the documentation and the final PDF files.)"\"`\"
13527
13528 fi
13529
13530
13531     for ac_prog in makeinfo
13532 do
13533   # Extract the first word of "$ac_prog", so it can be a program name with args.
13534 set dummy $ac_prog; ac_word=$2
13535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13536 $as_echo_n "checking for $ac_word... " >&6; }
13537 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
13538   $as_echo_n "(cached) " >&6
13539 else
13540   if test -n "$MAKEINFO"; then
13541   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
13542 else
13543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13544 for as_dir in $PATH
13545 do
13546   IFS=$as_save_IFS
13547   test -z "$as_dir" && as_dir=.
13548   for ac_exec_ext in '' $ac_executable_extensions; do
13549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13550     ac_cv_prog_MAKEINFO="$ac_prog"
13551     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13552     break 2
13553   fi
13554 done
13555 done
13556 IFS=$as_save_IFS
13557
13558 fi
13559 fi
13560 MAKEINFO=$ac_cv_prog_MAKEINFO
13561 if test -n "$MAKEINFO"; then
13562   { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
13563 $as_echo "$MAKEINFO" >&6; }
13564 else
13565   { $as_echo "$as_me:$LINENO: result: no" >&5
13566 $as_echo "no" >&6; }
13567 fi
13568
13569
13570   test -n "$MAKEINFO" && break
13571 done
13572 test -n "$MAKEINFO" || MAKEINFO="no"
13573
13574
13575
13576     r="`eval echo '$'"MAKEINFO"`"
13577     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
13578         true
13579     else
13580         ##STEPMAKE_WARN(cannot find . )
13581         false
13582     fi
13583
13584     if test $? -ne 0; then
13585
13586     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
13587
13588         if test "REQUIRED" = "REQUIRED"; then
13589             command="echo ERROR: makeinfo not found"
13590             # abort configure process here?
13591         else
13592             command="- echo makeinfo not found"
13593         fi
13594         eval "MAKEINFO"='$command'
13595         false
13596     else
13597         true
13598     fi
13599
13600     if test $? -eq 0 -a -n "4.11"; then
13601
13602     r="`eval echo '$'"MAKEINFO"`"
13603     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13604 $as_echo_n "checking $r version... " >&6; }
13605     exe=`
13606     ## which doesn't work in ash, if /usr/bin/which isn't installed
13607     ## type -p doesn't work in ash
13608     ## command -v doesn't work in zsh
13609     ## command -v "$r" 2>&1
13610     ## this test should work in ash, bash, pdksh (ksh), zsh
13611     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13612 `
13613     if test -n ""; then
13614         ver=""
13615     else
13616         ver=`
13617     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13618     ##
13619     ## ARG.
13620     ## Workaround for broken Debian gcc version string:
13621     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13622     ##
13623     ## -V: Workaround for python
13624
13625     #dnl
13626
13627     ## Assume and hunt for dotted version multiplet.
13628     ## use eval trickery, because we cannot use multi-level $() instead of ``
13629     ## for compatibility reasons.
13630
13631     ## grab the first version number in  --version output.
13632     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13633                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13634                 head -n 1 |
13635                 tr ' ' '\n' |
13636                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13637                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13638                 head -n 1\`\"
13639
13640     if test -z "$_ver"; then
13641         ## If empty, try date [fontforge]
13642         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13643             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13644             | head -n 1 \
13645             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13646     fi
13647     echo "$_ver"
13648     #dnl
13649 `
13650     fi
13651     num=`
13652     echo "$ver" | awk -F. '
13653     {
13654       if ($3) {three = $3}
13655       else {three = 0}
13656     }
13657     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13658 `
13659     req=`
13660     echo "4.11" | awk -F. '
13661     {
13662       if ($3) {three = $3}
13663       else {three = 0}
13664     }
13665     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13666 `
13667     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13668 $as_echo "$ver" >&6; }
13669     if test "$num" -lt "$req"; then
13670
13671     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 4.11 (installed: $ver)"\"`\"
13672
13673     fi
13674     vervar="`echo MAKEINFO | tr 'a-z' 'A-Z'`_VERSION"
13675     eval `echo $vervar=$num`
13676 ##    AC_SUBST(`eval echo $vervar`)
13677
13678     fi
13679
13680
13681     for ac_prog in texi2html
13682 do
13683   # Extract the first word of "$ac_prog", so it can be a program name with args.
13684 set dummy $ac_prog; ac_word=$2
13685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13686 $as_echo_n "checking for $ac_word... " >&6; }
13687 if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
13688   $as_echo_n "(cached) " >&6
13689 else
13690   if test -n "$TEXI2HTML"; then
13691   ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
13692 else
13693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13694 for as_dir in $PATH
13695 do
13696   IFS=$as_save_IFS
13697   test -z "$as_dir" && as_dir=.
13698   for ac_exec_ext in '' $ac_executable_extensions; do
13699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13700     ac_cv_prog_TEXI2HTML="$ac_prog"
13701     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13702     break 2
13703   fi
13704 done
13705 done
13706 IFS=$as_save_IFS
13707
13708 fi
13709 fi
13710 TEXI2HTML=$ac_cv_prog_TEXI2HTML
13711 if test -n "$TEXI2HTML"; then
13712   { $as_echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
13713 $as_echo "$TEXI2HTML" >&6; }
13714 else
13715   { $as_echo "$as_me:$LINENO: result: no" >&5
13716 $as_echo "no" >&6; }
13717 fi
13718
13719
13720   test -n "$TEXI2HTML" && break
13721 done
13722 test -n "$TEXI2HTML" || TEXI2HTML="no"
13723
13724
13725
13726     r="`eval echo '$'"TEXI2HTML"`"
13727     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2HTML"`' : '.*\(echo\)' > /dev/null; then
13728         true
13729     else
13730         ##STEPMAKE_WARN(cannot find . )
13731         false
13732     fi
13733
13734     if test $? -ne 0; then
13735
13736     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2html\"`\"
13737
13738         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13739             command="echo ERROR: texi2html not found"
13740             # abort configure process here?
13741         else
13742             command="- echo texi2html not found"
13743         fi
13744         eval "TEXI2HTML"='$command'
13745         false
13746     else
13747         true
13748     fi
13749
13750     if test $? -eq 0 -a -n "1.82"; then
13751
13752     r="`eval echo '$'"TEXI2HTML"`"
13753     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13754 $as_echo_n "checking $r version... " >&6; }
13755     exe=`
13756     ## which doesn't work in ash, if /usr/bin/which isn't installed
13757     ## type -p doesn't work in ash
13758     ## command -v doesn't work in zsh
13759     ## command -v "$r" 2>&1
13760     ## this test should work in ash, bash, pdksh (ksh), zsh
13761     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13762 `
13763     if test -n ""; then
13764         ver=""
13765     else
13766         ver=`
13767     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13768     ##
13769     ## ARG.
13770     ## Workaround for broken Debian gcc version string:
13771     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13772     ##
13773     ## -V: Workaround for python
13774
13775     #dnl
13776
13777     ## Assume and hunt for dotted version multiplet.
13778     ## use eval trickery, because we cannot use multi-level $() instead of ``
13779     ## for compatibility reasons.
13780
13781     ## grab the first version number in  --version output.
13782     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13783                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13784                 head -n 1 |
13785                 tr ' ' '\n' |
13786                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13787                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13788                 head -n 1\`\"
13789
13790     if test -z "$_ver"; then
13791         ## If empty, try date [fontforge]
13792         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13793             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13794             | head -n 1 \
13795             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13796     fi
13797     echo "$_ver"
13798     #dnl
13799 `
13800     fi
13801     num=`
13802     echo "$ver" | awk -F. '
13803     {
13804       if ($3) {three = $3}
13805       else {three = 0}
13806     }
13807     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13808 `
13809     req=`
13810     echo "1.82" | awk -F. '
13811     {
13812       if ($3) {three = $3}
13813       else {three = 0}
13814     }
13815     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13816 `
13817     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13818 $as_echo "$ver" >&6; }
13819     if test "$num" -lt "$req"; then
13820
13821     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 1.82 (installed: $ver)"\"`\"
13822
13823     fi
13824     vervar="`echo TEXI2HTML | tr 'a-z' 'A-Z'`_VERSION"
13825     eval `echo $vervar=$num`
13826 ##    AC_SUBST(`eval echo $vervar`)
13827
13828     fi
13829
13830
13831     for ac_prog in dblatex
13832 do
13833   # Extract the first word of "$ac_prog", so it can be a program name with args.
13834 set dummy $ac_prog; ac_word=$2
13835 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13836 $as_echo_n "checking for $ac_word... " >&6; }
13837 if test "${ac_cv_prog_DBLATEX+set}" = set; then
13838   $as_echo_n "(cached) " >&6
13839 else
13840   if test -n "$DBLATEX"; then
13841   ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
13842 else
13843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13844 for as_dir in $PATH
13845 do
13846   IFS=$as_save_IFS
13847   test -z "$as_dir" && as_dir=.
13848   for ac_exec_ext in '' $ac_executable_extensions; do
13849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13850     ac_cv_prog_DBLATEX="$ac_prog"
13851     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13852     break 2
13853   fi
13854 done
13855 done
13856 IFS=$as_save_IFS
13857
13858 fi
13859 fi
13860 DBLATEX=$ac_cv_prog_DBLATEX
13861 if test -n "$DBLATEX"; then
13862   { $as_echo "$as_me:$LINENO: result: $DBLATEX" >&5
13863 $as_echo "$DBLATEX" >&6; }
13864 else
13865   { $as_echo "$as_me:$LINENO: result: no" >&5
13866 $as_echo "no" >&6; }
13867 fi
13868
13869
13870   test -n "$DBLATEX" && break
13871 done
13872 test -n "$DBLATEX" || DBLATEX="no"
13873
13874
13875
13876     r="`eval echo '$'"DBLATEX"`"
13877     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"DBLATEX"`' : '.*\(echo\)' > /dev/null; then
13878         true
13879     else
13880         ##STEPMAKE_WARN(cannot find . )
13881         false
13882     fi
13883
13884     if test $? -ne 0; then
13885
13886     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"dblatex\"`\"
13887
13888         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13889             command="echo ERROR: dblatex not found"
13890             # abort configure process here?
13891         else
13892             command="- echo dblatex not found"
13893         fi
13894         eval "DBLATEX"='$command'
13895         false
13896     else
13897         true
13898     fi
13899
13900     if test $? -eq 0 -a -n "0.1.4"; then
13901
13902     r="`eval echo '$'"DBLATEX"`"
13903     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13904 $as_echo_n "checking $r version... " >&6; }
13905     exe=`
13906     ## which doesn't work in ash, if /usr/bin/which isn't installed
13907     ## type -p doesn't work in ash
13908     ## command -v doesn't work in zsh
13909     ## command -v "$r" 2>&1
13910     ## this test should work in ash, bash, pdksh (ksh), zsh
13911     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13912 `
13913     if test -n ""; then
13914         ver=""
13915     else
13916         ver=`
13917     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13918     ##
13919     ## ARG.
13920     ## Workaround for broken Debian gcc version string:
13921     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13922     ##
13923     ## -V: Workaround for python
13924
13925     #dnl
13926
13927     ## Assume and hunt for dotted version multiplet.
13928     ## use eval trickery, because we cannot use multi-level $() instead of ``
13929     ## for compatibility reasons.
13930
13931     ## grab the first version number in  --version output.
13932     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13933                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13934                 head -n 1 |
13935                 tr ' ' '\n' |
13936                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13937                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13938                 head -n 1\`\"
13939
13940     if test -z "$_ver"; then
13941         ## If empty, try date [fontforge]
13942         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13943             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13944             | head -n 1 \
13945             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13946     fi
13947     echo "$_ver"
13948     #dnl
13949 `
13950     fi
13951     num=`
13952     echo "$ver" | awk -F. '
13953     {
13954       if ($3) {three = $3}
13955       else {three = 0}
13956     }
13957     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13958 `
13959     req=`
13960     echo "0.1.4" | awk -F. '
13961     {
13962       if ($3) {three = $3}
13963       else {three = 0}
13964     }
13965     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13966 `
13967     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13968 $as_echo "$ver" >&6; }
13969     if test "$num" -lt "$req"; then
13970
13971     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 0.1.4 (installed: $ver)"\"`\"
13972
13973     fi
13974     vervar="`echo DBLATEX | tr 'a-z' 'A-Z'`_VERSION"
13975     eval `echo $vervar=$num`
13976 ##    AC_SUBST(`eval echo $vervar`)
13977
13978     fi
13979
13980
13981     for ac_prog in bibtex
13982 do
13983   # Extract the first word of "$ac_prog", so it can be a program name with args.
13984 set dummy $ac_prog; ac_word=$2
13985 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13986 $as_echo_n "checking for $ac_word... " >&6; }
13987 if test "${ac_cv_prog_BIBTEX+set}" = set; then
13988   $as_echo_n "(cached) " >&6
13989 else
13990   if test -n "$BIBTEX"; then
13991   ac_cv_prog_BIBTEX="$BIBTEX" # Let the user override the test.
13992 else
13993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13994 for as_dir in $PATH
13995 do
13996   IFS=$as_save_IFS
13997   test -z "$as_dir" && as_dir=.
13998   for ac_exec_ext in '' $ac_executable_extensions; do
13999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14000     ac_cv_prog_BIBTEX="$ac_prog"
14001     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14002     break 2
14003   fi
14004 done
14005 done
14006 IFS=$as_save_IFS
14007
14008 fi
14009 fi
14010 BIBTEX=$ac_cv_prog_BIBTEX
14011 if test -n "$BIBTEX"; then
14012   { $as_echo "$as_me:$LINENO: result: $BIBTEX" >&5
14013 $as_echo "$BIBTEX" >&6; }
14014 else
14015   { $as_echo "$as_me:$LINENO: result: no" >&5
14016 $as_echo "no" >&6; }
14017 fi
14018
14019
14020   test -n "$BIBTEX" && break
14021 done
14022 test -n "$BIBTEX" || BIBTEX="no"
14023
14024
14025
14026     r="`eval echo '$'"BIBTEX"`"
14027     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BIBTEX"`' : '.*\(echo\)' > /dev/null; then
14028         true
14029     else
14030         ##STEPMAKE_WARN(cannot find . )
14031         false
14032     fi
14033
14034     if test $? -ne 0; then
14035
14036     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"bibtex\"`\"
14037
14038         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14039             command="echo ERROR: bibtex not found"
14040             # abort configure process here?
14041         else
14042             command="- echo bibtex not found"
14043         fi
14044         eval "BIBTEX"='$command'
14045         false
14046     else
14047         true
14048     fi
14049
14050     if test $? -eq 0 -a -n ""; then
14051
14052     r="`eval echo '$'"BIBTEX"`"
14053     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14054 $as_echo_n "checking $r version... " >&6; }
14055     exe=`
14056     ## which doesn't work in ash, if /usr/bin/which isn't installed
14057     ## type -p doesn't work in ash
14058     ## command -v doesn't work in zsh
14059     ## command -v "$r" 2>&1
14060     ## this test should work in ash, bash, pdksh (ksh), zsh
14061     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14062 `
14063     if test -n ""; then
14064         ver=""
14065     else
14066         ver=`
14067     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14068     ##
14069     ## ARG.
14070     ## Workaround for broken Debian gcc version string:
14071     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14072     ##
14073     ## -V: Workaround for python
14074
14075     #dnl
14076
14077     ## Assume and hunt for dotted version multiplet.
14078     ## use eval trickery, because we cannot use multi-level $() instead of ``
14079     ## for compatibility reasons.
14080
14081     ## grab the first version number in  --version output.
14082     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14083                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14084                 head -n 1 |
14085                 tr ' ' '\n' |
14086                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14087                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14088                 head -n 1\`\"
14089
14090     if test -z "$_ver"; then
14091         ## If empty, try date [fontforge]
14092         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14093             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14094             | head -n 1 \
14095             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14096     fi
14097     echo "$_ver"
14098     #dnl
14099 `
14100     fi
14101     num=`
14102     echo "$ver" | awk -F. '
14103     {
14104       if ($3) {three = $3}
14105       else {three = 0}
14106     }
14107     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14108 `
14109     req=`
14110     echo "" | awk -F. '
14111     {
14112       if ($3) {three = $3}
14113       else {three = 0}
14114     }
14115     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14116 `
14117     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14118 $as_echo "$ver" >&6; }
14119     if test "$num" -lt "$req"; then
14120
14121     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14122
14123     fi
14124     vervar="`echo BIBTEX | tr 'a-z' 'A-Z'`_VERSION"
14125     eval `echo $vervar=$num`
14126 ##    AC_SUBST(`eval echo $vervar`)
14127
14128     fi
14129
14130
14131     for ac_prog in xelatex pdflatex
14132 do
14133   # Extract the first word of "$ac_prog", so it can be a program name with args.
14134 set dummy $ac_prog; ac_word=$2
14135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14136 $as_echo_n "checking for $ac_word... " >&6; }
14137 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
14138   $as_echo_n "(cached) " >&6
14139 else
14140   if test -n "$PDFLATEX"; then
14141   ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
14142 else
14143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14144 for as_dir in $PATH
14145 do
14146   IFS=$as_save_IFS
14147   test -z "$as_dir" && as_dir=.
14148   for ac_exec_ext in '' $ac_executable_extensions; do
14149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14150     ac_cv_prog_PDFLATEX="$ac_prog"
14151     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14152     break 2
14153   fi
14154 done
14155 done
14156 IFS=$as_save_IFS
14157
14158 fi
14159 fi
14160 PDFLATEX=$ac_cv_prog_PDFLATEX
14161 if test -n "$PDFLATEX"; then
14162   { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
14163 $as_echo "$PDFLATEX" >&6; }
14164 else
14165   { $as_echo "$as_me:$LINENO: result: no" >&5
14166 $as_echo "no" >&6; }
14167 fi
14168
14169
14170   test -n "$PDFLATEX" && break
14171 done
14172 test -n "$PDFLATEX" || PDFLATEX="no"
14173
14174
14175
14176     r="`eval echo '$'"PDFLATEX"`"
14177     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFLATEX"`' : '.*\(echo\)' > /dev/null; then
14178         true
14179     else
14180         ##STEPMAKE_WARN(cannot find . )
14181         false
14182     fi
14183
14184     if test $? -ne 0; then
14185
14186     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"xelatex pdflatex\"`\"
14187
14188         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14189             command="echo ERROR: xelatex pdflatex not found"
14190             # abort configure process here?
14191         else
14192             command="- echo xelatex pdflatex not found"
14193         fi
14194         eval "PDFLATEX"='$command'
14195         false
14196     else
14197         true
14198     fi
14199
14200     if test $? -eq 0 -a -n ""; then
14201
14202     r="`eval echo '$'"PDFLATEX"`"
14203     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14204 $as_echo_n "checking $r version... " >&6; }
14205     exe=`
14206     ## which doesn't work in ash, if /usr/bin/which isn't installed
14207     ## type -p doesn't work in ash
14208     ## command -v doesn't work in zsh
14209     ## command -v "$r" 2>&1
14210     ## this test should work in ash, bash, pdksh (ksh), zsh
14211     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14212 `
14213     if test -n ""; then
14214         ver=""
14215     else
14216         ver=`
14217     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14218     ##
14219     ## ARG.
14220     ## Workaround for broken Debian gcc version string:
14221     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14222     ##
14223     ## -V: Workaround for python
14224
14225     #dnl
14226
14227     ## Assume and hunt for dotted version multiplet.
14228     ## use eval trickery, because we cannot use multi-level $() instead of ``
14229     ## for compatibility reasons.
14230
14231     ## grab the first version number in  --version output.
14232     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14233                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14234                 head -n 1 |
14235                 tr ' ' '\n' |
14236                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14237                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14238                 head -n 1\`\"
14239
14240     if test -z "$_ver"; then
14241         ## If empty, try date [fontforge]
14242         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14243             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14244             | head -n 1 \
14245             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14246     fi
14247     echo "$_ver"
14248     #dnl
14249 `
14250     fi
14251     num=`
14252     echo "$ver" | awk -F. '
14253     {
14254       if ($3) {three = $3}
14255       else {three = 0}
14256     }
14257     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14258 `
14259     req=`
14260     echo "" | awk -F. '
14261     {
14262       if ($3) {three = $3}
14263       else {three = 0}
14264     }
14265     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14266 `
14267     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14268 $as_echo "$ver" >&6; }
14269     if test "$num" -lt "$req"; then
14270
14271     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14272
14273     fi
14274     vervar="`echo PDFLATEX | tr 'a-z' 'A-Z'`_VERSION"
14275     eval `echo $vervar=$num`
14276 ##    AC_SUBST(`eval echo $vervar`)
14277
14278     fi
14279
14280 if test "$PDFLATEX" = "xelatex"; then
14281
14282     for ac_prog in xetex
14283 do
14284   # Extract the first word of "$ac_prog", so it can be a program name with args.
14285 set dummy $ac_prog; ac_word=$2
14286 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14287 $as_echo_n "checking for $ac_word... " >&6; }
14288 if test "${ac_cv_prog_PDFTEX+set}" = set; then
14289   $as_echo_n "(cached) " >&6
14290 else
14291   if test -n "$PDFTEX"; then
14292   ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
14293 else
14294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14295 for as_dir in $PATH
14296 do
14297   IFS=$as_save_IFS
14298   test -z "$as_dir" && as_dir=.
14299   for ac_exec_ext in '' $ac_executable_extensions; do
14300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14301     ac_cv_prog_PDFTEX="$ac_prog"
14302     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14303     break 2
14304   fi
14305 done
14306 done
14307 IFS=$as_save_IFS
14308
14309 fi
14310 fi
14311 PDFTEX=$ac_cv_prog_PDFTEX
14312 if test -n "$PDFTEX"; then
14313   { $as_echo "$as_me:$LINENO: result: $PDFTEX" >&5
14314 $as_echo "$PDFTEX" >&6; }
14315 else
14316   { $as_echo "$as_me:$LINENO: result: no" >&5
14317 $as_echo "no" >&6; }
14318 fi
14319
14320
14321   test -n "$PDFTEX" && break
14322 done
14323 test -n "$PDFTEX" || PDFTEX="no"
14324
14325
14326
14327     r="`eval echo '$'"PDFTEX"`"
14328     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFTEX"`' : '.*\(echo\)' > /dev/null; then
14329         true
14330     else
14331         ##STEPMAKE_WARN(cannot find . )
14332         false
14333     fi
14334
14335     if test $? -ne 0; then
14336
14337     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"xetex\"`\"
14338
14339         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14340             command="echo ERROR: xetex not found"
14341             # abort configure process here?
14342         else
14343             command="- echo xetex not found"
14344         fi
14345         eval "PDFTEX"='$command'
14346         false
14347     else
14348         true
14349     fi
14350
14351     if test $? -eq 0 -a -n ""; then
14352
14353     r="`eval echo '$'"PDFTEX"`"
14354     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14355 $as_echo_n "checking $r version... " >&6; }
14356     exe=`
14357     ## which doesn't work in ash, if /usr/bin/which isn't installed
14358     ## type -p doesn't work in ash
14359     ## command -v doesn't work in zsh
14360     ## command -v "$r" 2>&1
14361     ## this test should work in ash, bash, pdksh (ksh), zsh
14362     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14363 `
14364     if test -n ""; then
14365         ver=""
14366     else
14367         ver=`
14368     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14369     ##
14370     ## ARG.
14371     ## Workaround for broken Debian gcc version string:
14372     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14373     ##
14374     ## -V: Workaround for python
14375
14376     #dnl
14377
14378     ## Assume and hunt for dotted version multiplet.
14379     ## use eval trickery, because we cannot use multi-level $() instead of ``
14380     ## for compatibility reasons.
14381
14382     ## grab the first version number in  --version output.
14383     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14384                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14385                 head -n 1 |
14386                 tr ' ' '\n' |
14387                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14388                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14389                 head -n 1\`\"
14390
14391     if test -z "$_ver"; then
14392         ## If empty, try date [fontforge]
14393         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14394             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14395             | head -n 1 \
14396             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14397     fi
14398     echo "$_ver"
14399     #dnl
14400 `
14401     fi
14402     num=`
14403     echo "$ver" | awk -F. '
14404     {
14405       if ($3) {three = $3}
14406       else {three = 0}
14407     }
14408     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14409 `
14410     req=`
14411     echo "" | awk -F. '
14412     {
14413       if ($3) {three = $3}
14414       else {three = 0}
14415     }
14416     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14417 `
14418     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14419 $as_echo "$ver" >&6; }
14420     if test "$num" -lt "$req"; then
14421
14422     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14423
14424     fi
14425     vervar="`echo PDFTEX | tr 'a-z' 'A-Z'`_VERSION"
14426     eval `echo $vervar=$num`
14427 ##    AC_SUBST(`eval echo $vervar`)
14428
14429     fi
14430
14431     if test "$PDFTEX" = "xetex"; then
14432         # For avoiding PDF destination name replacement.
14433         PDFTEX=$ugh_ugh_autoconf250_builddir/scripts/build/out$CONFIGSUFFIX/xetex-with-options
14434         PDFLATEX=$ugh_ugh_autoconf250_builddir/scripts/build/out$CONFIGSUFFIX/xelatex-with-options
14435     fi
14436 else
14437
14438     for ac_prog in pdfetex pdftex etex
14439 do
14440   # Extract the first word of "$ac_prog", so it can be a program name with args.
14441 set dummy $ac_prog; ac_word=$2
14442 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14443 $as_echo_n "checking for $ac_word... " >&6; }
14444 if test "${ac_cv_prog_PDFTEX+set}" = set; then
14445   $as_echo_n "(cached) " >&6
14446 else
14447   if test -n "$PDFTEX"; then
14448   ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
14449 else
14450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14451 for as_dir in $PATH
14452 do
14453   IFS=$as_save_IFS
14454   test -z "$as_dir" && as_dir=.
14455   for ac_exec_ext in '' $ac_executable_extensions; do
14456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14457     ac_cv_prog_PDFTEX="$ac_prog"
14458     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14459     break 2
14460   fi
14461 done
14462 done
14463 IFS=$as_save_IFS
14464
14465 fi
14466 fi
14467 PDFTEX=$ac_cv_prog_PDFTEX
14468 if test -n "$PDFTEX"; then
14469   { $as_echo "$as_me:$LINENO: result: $PDFTEX" >&5
14470 $as_echo "$PDFTEX" >&6; }
14471 else
14472   { $as_echo "$as_me:$LINENO: result: no" >&5
14473 $as_echo "no" >&6; }
14474 fi
14475
14476
14477   test -n "$PDFTEX" && break
14478 done
14479 test -n "$PDFTEX" || PDFTEX="no"
14480
14481
14482
14483     r="`eval echo '$'"PDFTEX"`"
14484     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFTEX"`' : '.*\(echo\)' > /dev/null; then
14485         true
14486     else
14487         ##STEPMAKE_WARN(cannot find . )
14488         false
14489     fi
14490
14491     if test $? -ne 0; then
14492
14493     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pdfetex pdftex etex\"`\"
14494
14495         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14496             command="echo ERROR: pdfetex pdftex etex not found"
14497             # abort configure process here?
14498         else
14499             command="- echo pdfetex pdftex etex not found"
14500         fi
14501         eval "PDFTEX"='$command'
14502         false
14503     else
14504         true
14505     fi
14506
14507     if test $? -eq 0 -a -n ""; then
14508
14509     r="`eval echo '$'"PDFTEX"`"
14510     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14511 $as_echo_n "checking $r version... " >&6; }
14512     exe=`
14513     ## which doesn't work in ash, if /usr/bin/which isn't installed
14514     ## type -p doesn't work in ash
14515     ## command -v doesn't work in zsh
14516     ## command -v "$r" 2>&1
14517     ## this test should work in ash, bash, pdksh (ksh), zsh
14518     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14519 `
14520     if test -n ""; then
14521         ver=""
14522     else
14523         ver=`
14524     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14525     ##
14526     ## ARG.
14527     ## Workaround for broken Debian gcc version string:
14528     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14529     ##
14530     ## -V: Workaround for python
14531
14532     #dnl
14533
14534     ## Assume and hunt for dotted version multiplet.
14535     ## use eval trickery, because we cannot use multi-level $() instead of ``
14536     ## for compatibility reasons.
14537
14538     ## grab the first version number in  --version output.
14539     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14540                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14541                 head -n 1 |
14542                 tr ' ' '\n' |
14543                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14544                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14545                 head -n 1\`\"
14546
14547     if test -z "$_ver"; then
14548         ## If empty, try date [fontforge]
14549         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14550             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14551             | head -n 1 \
14552             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14553     fi
14554     echo "$_ver"
14555     #dnl
14556 `
14557     fi
14558     num=`
14559     echo "$ver" | awk -F. '
14560     {
14561       if ($3) {three = $3}
14562       else {three = 0}
14563     }
14564     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14565 `
14566     req=`
14567     echo "" | awk -F. '
14568     {
14569       if ($3) {three = $3}
14570       else {three = 0}
14571     }
14572     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14573 `
14574     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14575 $as_echo "$ver" >&6; }
14576     if test "$num" -lt "$req"; then
14577
14578     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14579
14580     fi
14581     vervar="`echo PDFTEX | tr 'a-z' 'A-Z'`_VERSION"
14582     eval `echo $vervar=$num`
14583 ##    AC_SUBST(`eval echo $vervar`)
14584
14585     fi
14586
14587 fi
14588
14589     for ac_prog in texi2pdf
14590 do
14591   # Extract the first word of "$ac_prog", so it can be a program name with args.
14592 set dummy $ac_prog; ac_word=$2
14593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14594 $as_echo_n "checking for $ac_word... " >&6; }
14595 if test "${ac_cv_prog_TEXI2PDF+set}" = set; then
14596   $as_echo_n "(cached) " >&6
14597 else
14598   if test -n "$TEXI2PDF"; then
14599   ac_cv_prog_TEXI2PDF="$TEXI2PDF" # Let the user override the test.
14600 else
14601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14602 for as_dir in $PATH
14603 do
14604   IFS=$as_save_IFS
14605   test -z "$as_dir" && as_dir=.
14606   for ac_exec_ext in '' $ac_executable_extensions; do
14607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14608     ac_cv_prog_TEXI2PDF="$ac_prog"
14609     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14610     break 2
14611   fi
14612 done
14613 done
14614 IFS=$as_save_IFS
14615
14616 fi
14617 fi
14618 TEXI2PDF=$ac_cv_prog_TEXI2PDF
14619 if test -n "$TEXI2PDF"; then
14620   { $as_echo "$as_me:$LINENO: result: $TEXI2PDF" >&5
14621 $as_echo "$TEXI2PDF" >&6; }
14622 else
14623   { $as_echo "$as_me:$LINENO: result: no" >&5
14624 $as_echo "no" >&6; }
14625 fi
14626
14627
14628   test -n "$TEXI2PDF" && break
14629 done
14630 test -n "$TEXI2PDF" || TEXI2PDF="no"
14631
14632
14633
14634     r="`eval echo '$'"TEXI2PDF"`"
14635     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2PDF"`' : '.*\(echo\)' > /dev/null; then
14636         true
14637     else
14638         ##STEPMAKE_WARN(cannot find . )
14639         false
14640     fi
14641
14642     if test $? -ne 0; then
14643
14644     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2pdf\"`\"
14645
14646         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14647             command="echo ERROR: texi2pdf not found"
14648             # abort configure process here?
14649         else
14650             command="- echo texi2pdf not found"
14651         fi
14652         eval "TEXI2PDF"='$command'
14653         false
14654     else
14655         true
14656     fi
14657
14658     if test $? -eq 0 -a -n ""; then
14659
14660     r="`eval echo '$'"TEXI2PDF"`"
14661     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14662 $as_echo_n "checking $r version... " >&6; }
14663     exe=`
14664     ## which doesn't work in ash, if /usr/bin/which isn't installed
14665     ## type -p doesn't work in ash
14666     ## command -v doesn't work in zsh
14667     ## command -v "$r" 2>&1
14668     ## this test should work in ash, bash, pdksh (ksh), zsh
14669     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14670 `
14671     if test -n ""; then
14672         ver=""
14673     else
14674         ver=`
14675     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14676     ##
14677     ## ARG.
14678     ## Workaround for broken Debian gcc version string:
14679     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14680     ##
14681     ## -V: Workaround for python
14682
14683     #dnl
14684
14685     ## Assume and hunt for dotted version multiplet.
14686     ## use eval trickery, because we cannot use multi-level $() instead of ``
14687     ## for compatibility reasons.
14688
14689     ## grab the first version number in  --version output.
14690     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14691                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14692                 head -n 1 |
14693                 tr ' ' '\n' |
14694                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14695                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14696                 head -n 1\`\"
14697
14698     if test -z "$_ver"; then
14699         ## If empty, try date [fontforge]
14700         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14701             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14702             | head -n 1 \
14703             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14704     fi
14705     echo "$_ver"
14706     #dnl
14707 `
14708     fi
14709     num=`
14710     echo "$ver" | awk -F. '
14711     {
14712       if ($3) {three = $3}
14713       else {three = 0}
14714     }
14715     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14716 `
14717     req=`
14718     echo "" | awk -F. '
14719     {
14720       if ($3) {three = $3}
14721       else {three = 0}
14722     }
14723     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14724 `
14725     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14726 $as_echo "$ver" >&6; }
14727     if test "$num" -lt "$req"; then
14728
14729     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14730
14731     fi
14732     vervar="`echo TEXI2PDF | tr 'a-z' 'A-Z'`_VERSION"
14733     eval `echo $vervar=$num`
14734 ##    AC_SUBST(`eval echo $vervar`)
14735
14736     fi
14737
14738
14739     for ac_prog in texindex
14740 do
14741   # Extract the first word of "$ac_prog", so it can be a program name with args.
14742 set dummy $ac_prog; ac_word=$2
14743 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14744 $as_echo_n "checking for $ac_word... " >&6; }
14745 if test "${ac_cv_prog_TEXINDEX+set}" = set; then
14746   $as_echo_n "(cached) " >&6
14747 else
14748   if test -n "$TEXINDEX"; then
14749   ac_cv_prog_TEXINDEX="$TEXINDEX" # Let the user override the test.
14750 else
14751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14752 for as_dir in $PATH
14753 do
14754   IFS=$as_save_IFS
14755   test -z "$as_dir" && as_dir=.
14756   for ac_exec_ext in '' $ac_executable_extensions; do
14757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14758     ac_cv_prog_TEXINDEX="$ac_prog"
14759     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14760     break 2
14761   fi
14762 done
14763 done
14764 IFS=$as_save_IFS
14765
14766 fi
14767 fi
14768 TEXINDEX=$ac_cv_prog_TEXINDEX
14769 if test -n "$TEXINDEX"; then
14770   { $as_echo "$as_me:$LINENO: result: $TEXINDEX" >&5
14771 $as_echo "$TEXINDEX" >&6; }
14772 else
14773   { $as_echo "$as_me:$LINENO: result: no" >&5
14774 $as_echo "no" >&6; }
14775 fi
14776
14777
14778   test -n "$TEXINDEX" && break
14779 done
14780 test -n "$TEXINDEX" || TEXINDEX="no"
14781
14782
14783
14784     r="`eval echo '$'"TEXINDEX"`"
14785     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXINDEX"`' : '.*\(echo\)' > /dev/null; then
14786         true
14787     else
14788         ##STEPMAKE_WARN(cannot find . )
14789         false
14790     fi
14791
14792     if test $? -ne 0; then
14793
14794     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texindex\"`\"
14795
14796         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14797             command="echo ERROR: texindex not found"
14798             # abort configure process here?
14799         else
14800             command="- echo texindex not found"
14801         fi
14802         eval "TEXINDEX"='$command'
14803         false
14804     else
14805         true
14806     fi
14807
14808     if test $? -eq 0 -a -n ""; then
14809
14810     r="`eval echo '$'"TEXINDEX"`"
14811     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14812 $as_echo_n "checking $r version... " >&6; }
14813     exe=`
14814     ## which doesn't work in ash, if /usr/bin/which isn't installed
14815     ## type -p doesn't work in ash
14816     ## command -v doesn't work in zsh
14817     ## command -v "$r" 2>&1
14818     ## this test should work in ash, bash, pdksh (ksh), zsh
14819     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14820 `
14821     if test -n ""; then
14822         ver=""
14823     else
14824         ver=`
14825     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14826     ##
14827     ## ARG.
14828     ## Workaround for broken Debian gcc version string:
14829     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14830     ##
14831     ## -V: Workaround for python
14832
14833     #dnl
14834
14835     ## Assume and hunt for dotted version multiplet.
14836     ## use eval trickery, because we cannot use multi-level $() instead of ``
14837     ## for compatibility reasons.
14838
14839     ## grab the first version number in  --version output.
14840     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14841                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14842                 head -n 1 |
14843                 tr ' ' '\n' |
14844                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14845                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14846                 head -n 1\`\"
14847
14848     if test -z "$_ver"; then
14849         ## If empty, try date [fontforge]
14850         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14851             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14852             | head -n 1 \
14853             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14854     fi
14855     echo "$_ver"
14856     #dnl
14857 `
14858     fi
14859     num=`
14860     echo "$ver" | awk -F. '
14861     {
14862       if ($3) {three = $3}
14863       else {three = 0}
14864     }
14865     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14866 `
14867     req=`
14868     echo "" | awk -F. '
14869     {
14870       if ($3) {three = $3}
14871       else {three = 0}
14872     }
14873     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14874 `
14875     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14876 $as_echo "$ver" >&6; }
14877     if test "$num" -lt "$req"; then
14878
14879     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14880
14881     fi
14882     vervar="`echo TEXINDEX | tr 'a-z' 'A-Z'`_VERSION"
14883     eval `echo $vervar=$num`
14884 ##    AC_SUBST(`eval echo $vervar`)
14885
14886     fi
14887
14888 { $as_echo "$as_me:$LINENO: checking for epsf.tex" >&5
14889 $as_echo_n "checking for epsf.tex... " >&6; }
14890 TEX_EPSF=`kpsewhich tex epsf`
14891 if test "$TEX_EPSF" = ""; then
14892     { $as_echo "$as_me:$LINENO: result: not found" >&5
14893 $as_echo "not found" >&6; }
14894
14895     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"epsf.tex\"`\"
14896
14897 else
14898     { $as_echo "$as_me:$LINENO: result: $TEX_EPSF" >&5
14899 $as_echo "$TEX_EPSF" >&6; }
14900 fi
14901 { $as_echo "$as_me:$LINENO: checking for Cyrillic characters support in TeX" >&5
14902 $as_echo_n "checking for Cyrillic characters support in TeX... " >&6; }
14903 TEX_FIKPARM=`kpsewhich -format=mf fikparm`
14904 if test "$TEX_FIKPARM" = ""; then
14905     { $as_echo "$as_me:$LINENO: result: not found" >&5
14906 $as_echo "not found" >&6; }
14907
14908     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"'lh CTAN package (texlive-lang-cyrillic or texlive-texmf-fonts)'\"`\"
14909
14910 else
14911     { $as_echo "$as_me:$LINENO: result: yes" >&5
14912 $as_echo "yes" >&6; }
14913 fi
14914
14915     for ac_prog in pngtopnm
14916 do
14917   # Extract the first word of "$ac_prog", so it can be a program name with args.
14918 set dummy $ac_prog; ac_word=$2
14919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14920 $as_echo_n "checking for $ac_word... " >&6; }
14921 if test "${ac_cv_prog_NETPBM+set}" = set; then
14922   $as_echo_n "(cached) " >&6
14923 else
14924   if test -n "$NETPBM"; then
14925   ac_cv_prog_NETPBM="$NETPBM" # Let the user override the test.
14926 else
14927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14928 for as_dir in $PATH
14929 do
14930   IFS=$as_save_IFS
14931   test -z "$as_dir" && as_dir=.
14932   for ac_exec_ext in '' $ac_executable_extensions; do
14933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14934     ac_cv_prog_NETPBM="$ac_prog"
14935     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14936     break 2
14937   fi
14938 done
14939 done
14940 IFS=$as_save_IFS
14941
14942 fi
14943 fi
14944 NETPBM=$ac_cv_prog_NETPBM
14945 if test -n "$NETPBM"; then
14946   { $as_echo "$as_me:$LINENO: result: $NETPBM" >&5
14947 $as_echo "$NETPBM" >&6; }
14948 else
14949   { $as_echo "$as_me:$LINENO: result: no" >&5
14950 $as_echo "no" >&6; }
14951 fi
14952
14953
14954   test -n "$NETPBM" && break
14955 done
14956 test -n "$NETPBM" || NETPBM="no"
14957
14958
14959
14960     r="`eval echo '$'"NETPBM"`"
14961     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"NETPBM"`' : '.*\(echo\)' > /dev/null; then
14962         true
14963     else
14964         ##STEPMAKE_WARN(cannot find . )
14965         false
14966     fi
14967
14968     if test $? -ne 0; then
14969
14970     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pngtopnm\"`\"
14971
14972         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14973             command="echo ERROR: pngtopnm not found"
14974             # abort configure process here?
14975         else
14976             command="- echo pngtopnm not found"
14977         fi
14978         eval "NETPBM"='$command'
14979         false
14980     else
14981         true
14982     fi
14983
14984     if test $? -eq 0 -a -n ""; then
14985
14986     r="`eval echo '$'"NETPBM"`"
14987     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14988 $as_echo_n "checking $r version... " >&6; }
14989     exe=`
14990     ## which doesn't work in ash, if /usr/bin/which isn't installed
14991     ## type -p doesn't work in ash
14992     ## command -v doesn't work in zsh
14993     ## command -v "$r" 2>&1
14994     ## this test should work in ash, bash, pdksh (ksh), zsh
14995     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14996 `
14997     if test -n ""; then
14998         ver=""
14999     else
15000         ver=`
15001     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15002     ##
15003     ## ARG.
15004     ## Workaround for broken Debian gcc version string:
15005     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15006     ##
15007     ## -V: Workaround for python
15008
15009     #dnl
15010
15011     ## Assume and hunt for dotted version multiplet.
15012     ## use eval trickery, because we cannot use multi-level $() instead of ``
15013     ## for compatibility reasons.
15014
15015     ## grab the first version number in  --version output.
15016     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15017                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15018                 head -n 1 |
15019                 tr ' ' '\n' |
15020                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15021                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15022                 head -n 1\`\"
15023
15024     if test -z "$_ver"; then
15025         ## If empty, try date [fontforge]
15026         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15027             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15028             | head -n 1 \
15029             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15030     fi
15031     echo "$_ver"
15032     #dnl
15033 `
15034     fi
15035     num=`
15036     echo "$ver" | awk -F. '
15037     {
15038       if ($3) {three = $3}
15039       else {three = 0}
15040     }
15041     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15042 `
15043     req=`
15044     echo "" | awk -F. '
15045     {
15046       if ($3) {three = $3}
15047       else {three = 0}
15048     }
15049     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15050 `
15051     { $as_echo "$as_me:$LINENO: result: $ver" >&5
15052 $as_echo "$ver" >&6; }
15053     if test "$num" -lt "$req"; then
15054
15055     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
15056
15057     fi
15058     vervar="`echo NETPBM | tr 'a-z' 'A-Z'`_VERSION"
15059     eval `echo $vervar=$num`
15060 ##    AC_SUBST(`eval echo $vervar`)
15061
15062     fi
15063
15064
15065     for ac_prog in convert
15066 do
15067   # Extract the first word of "$ac_prog", so it can be a program name with args.
15068 set dummy $ac_prog; ac_word=$2
15069 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15070 $as_echo_n "checking for $ac_word... " >&6; }
15071 if test "${ac_cv_prog_IMAGEMAGICK+set}" = set; then
15072   $as_echo_n "(cached) " >&6
15073 else
15074   if test -n "$IMAGEMAGICK"; then
15075   ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
15076 else
15077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15078 for as_dir in $PATH
15079 do
15080   IFS=$as_save_IFS
15081   test -z "$as_dir" && as_dir=.
15082   for ac_exec_ext in '' $ac_executable_extensions; do
15083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15084     ac_cv_prog_IMAGEMAGICK="$ac_prog"
15085     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15086     break 2
15087   fi
15088 done
15089 done
15090 IFS=$as_save_IFS
15091
15092 fi
15093 fi
15094 IMAGEMAGICK=$ac_cv_prog_IMAGEMAGICK
15095 if test -n "$IMAGEMAGICK"; then
15096   { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK" >&5
15097 $as_echo "$IMAGEMAGICK" >&6; }
15098 else
15099   { $as_echo "$as_me:$LINENO: result: no" >&5
15100 $as_echo "no" >&6; }
15101 fi
15102
15103
15104   test -n "$IMAGEMAGICK" && break
15105 done
15106 test -n "$IMAGEMAGICK" || IMAGEMAGICK="no"
15107
15108
15109
15110     r="`eval echo '$'"IMAGEMAGICK"`"
15111     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"IMAGEMAGICK"`' : '.*\(echo\)' > /dev/null; then
15112         true
15113     else
15114         ##STEPMAKE_WARN(cannot find . )
15115         false
15116     fi
15117
15118     if test $? -ne 0; then
15119
15120     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"convert\"`\"
15121
15122         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15123             command="echo ERROR: convert not found"
15124             # abort configure process here?
15125         else
15126             command="- echo convert not found"
15127         fi
15128         eval "IMAGEMAGICK"='$command'
15129         false
15130     else
15131         true
15132     fi
15133
15134     if test $? -eq 0 -a -n ""; then
15135
15136     r="`eval echo '$'"IMAGEMAGICK"`"
15137     { $as_echo "$as_me:$LINENO: checking $r version" >&5
15138 $as_echo_n "checking $r version... " >&6; }
15139     exe=`
15140     ## which doesn't work in ash, if /usr/bin/which isn't installed
15141     ## type -p doesn't work in ash
15142     ## command -v doesn't work in zsh
15143     ## command -v "$r" 2>&1
15144     ## this test should work in ash, bash, pdksh (ksh), zsh
15145     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15146 `
15147     if test -n ""; then
15148         ver=""
15149     else
15150         ver=`
15151     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15152     ##
15153     ## ARG.
15154     ## Workaround for broken Debian gcc version string:
15155     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15156     ##
15157     ## -V: Workaround for python
15158
15159     #dnl
15160
15161     ## Assume and hunt for dotted version multiplet.
15162     ## use eval trickery, because we cannot use multi-level $() instead of ``
15163     ## for compatibility reasons.
15164
15165     ## grab the first version number in  --version output.
15166     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15167                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15168                 head -n 1 |
15169                 tr ' ' '\n' |
15170                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15171                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15172                 head -n 1\`\"
15173
15174     if test -z "$_ver"; then
15175         ## If empty, try date [fontforge]
15176         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15177             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15178             | head -n 1 \
15179             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15180     fi
15181     echo "$_ver"
15182     #dnl
15183 `
15184     fi
15185     num=`
15186     echo "$ver" | awk -F. '
15187     {
15188       if ($3) {three = $3}
15189       else {three = 0}
15190     }
15191     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15192 `
15193     req=`
15194     echo "" | awk -F. '
15195     {
15196       if ($3) {three = $3}
15197       else {three = 0}
15198     }
15199     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15200 `
15201     { $as_echo "$as_me:$LINENO: result: $ver" >&5
15202 $as_echo "$ver" >&6; }
15203     if test "$num" -lt "$req"; then
15204
15205     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
15206
15207     fi
15208     vervar="`echo IMAGEMAGICK | tr 'a-z' 'A-Z'`_VERSION"
15209     eval `echo $vervar=$num`
15210 ##    AC_SUBST(`eval echo $vervar`)
15211
15212     fi
15213
15214 # this name avoids a conflict with ZIP in stepmake/aclocal.m4
15215
15216     for ac_prog in zip
15217 do
15218   # Extract the first word of "$ac_prog", so it can be a program name with args.
15219 set dummy $ac_prog; ac_word=$2
15220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15221 $as_echo_n "checking for $ac_word... " >&6; }
15222 if test "${ac_cv_prog_ZIPDOC+set}" = set; then
15223   $as_echo_n "(cached) " >&6
15224 else
15225   if test -n "$ZIPDOC"; then
15226   ac_cv_prog_ZIPDOC="$ZIPDOC" # Let the user override the test.
15227 else
15228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15229 for as_dir in $PATH
15230 do
15231   IFS=$as_save_IFS
15232   test -z "$as_dir" && as_dir=.
15233   for ac_exec_ext in '' $ac_executable_extensions; do
15234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15235     ac_cv_prog_ZIPDOC="$ac_prog"
15236     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15237     break 2
15238   fi
15239 done
15240 done
15241 IFS=$as_save_IFS
15242
15243 fi
15244 fi
15245 ZIPDOC=$ac_cv_prog_ZIPDOC
15246 if test -n "$ZIPDOC"; then
15247   { $as_echo "$as_me:$LINENO: result: $ZIPDOC" >&5
15248 $as_echo "$ZIPDOC" >&6; }
15249 else
15250   { $as_echo "$as_me:$LINENO: result: no" >&5
15251 $as_echo "no" >&6; }
15252 fi
15253
15254
15255   test -n "$ZIPDOC" && break
15256 done
15257 test -n "$ZIPDOC" || ZIPDOC="no"
15258
15259
15260
15261     r="`eval echo '$'"ZIPDOC"`"
15262     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"ZIPDOC"`' : '.*\(echo\)' > /dev/null; then
15263         true
15264     else
15265         ##STEPMAKE_WARN(cannot find . )
15266         false
15267     fi
15268
15269     if test $? -ne 0; then
15270
15271     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"zip\"`\"
15272
15273         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15274             command="echo ERROR: zip not found"
15275             # abort configure process here?
15276         else
15277             command="- echo zip not found"
15278         fi
15279         eval "ZIPDOC"='$command'
15280         false
15281     else
15282         true
15283     fi
15284
15285     if test $? -eq 0 -a -n ""; then
15286
15287     r="`eval echo '$'"ZIPDOC"`"
15288     { $as_echo "$as_me:$LINENO: checking $r version" >&5
15289 $as_echo_n "checking $r version... " >&6; }
15290     exe=`
15291     ## which doesn't work in ash, if /usr/bin/which isn't installed
15292     ## type -p doesn't work in ash
15293     ## command -v doesn't work in zsh
15294     ## command -v "$r" 2>&1
15295     ## this test should work in ash, bash, pdksh (ksh), zsh
15296     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15297 `
15298     if test -n ""; then
15299         ver=""
15300     else
15301         ver=`
15302     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15303     ##
15304     ## ARG.
15305     ## Workaround for broken Debian gcc version string:
15306     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15307     ##
15308     ## -V: Workaround for python
15309
15310     #dnl
15311
15312     ## Assume and hunt for dotted version multiplet.
15313     ## use eval trickery, because we cannot use multi-level $() instead of ``
15314     ## for compatibility reasons.
15315
15316     ## grab the first version number in  --version output.
15317     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15318                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15319                 head -n 1 |
15320                 tr ' ' '\n' |
15321                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15322                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15323                 head -n 1\`\"
15324
15325     if test -z "$_ver"; then
15326         ## If empty, try date [fontforge]
15327         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15328             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15329             | head -n 1 \
15330             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15331     fi
15332     echo "$_ver"
15333     #dnl
15334 `
15335     fi
15336     num=`
15337     echo "$ver" | awk -F. '
15338     {
15339       if ($3) {three = $3}
15340       else {three = 0}
15341     }
15342     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15343 `
15344     req=`
15345     echo "" | awk -F. '
15346     {
15347       if ($3) {three = $3}
15348       else {three = 0}
15349     }
15350     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15351 `
15352     { $as_echo "$as_me:$LINENO: result: $ver" >&5
15353 $as_echo "$ver" >&6; }
15354     if test "$num" -lt "$req"; then
15355
15356     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
15357
15358     fi
15359     vervar="`echo ZIPDOC | tr 'a-z' 'A-Z'`_VERSION"
15360     eval `echo $vervar=$num`
15361 ##    AC_SUBST(`eval echo $vervar`)
15362
15363     fi
15364
15365
15366     for ac_prog in rsync
15367 do
15368   # Extract the first word of "$ac_prog", so it can be a program name with args.
15369 set dummy $ac_prog; ac_word=$2
15370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15371 $as_echo_n "checking for $ac_word... " >&6; }
15372 if test "${ac_cv_prog_RSYNC+set}" = set; then
15373   $as_echo_n "(cached) " >&6
15374 else
15375   if test -n "$RSYNC"; then
15376   ac_cv_prog_RSYNC="$RSYNC" # Let the user override the test.
15377 else
15378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15379 for as_dir in $PATH
15380 do
15381   IFS=$as_save_IFS
15382   test -z "$as_dir" && as_dir=.
15383   for ac_exec_ext in '' $ac_executable_extensions; do
15384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15385     ac_cv_prog_RSYNC="$ac_prog"
15386     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15387     break 2
15388   fi
15389 done
15390 done
15391 IFS=$as_save_IFS
15392
15393 fi
15394 fi
15395 RSYNC=$ac_cv_prog_RSYNC
15396 if test -n "$RSYNC"; then
15397   { $as_echo "$as_me:$LINENO: result: $RSYNC" >&5
15398 $as_echo "$RSYNC" >&6; }
15399 else
15400   { $as_echo "$as_me:$LINENO: result: no" >&5
15401 $as_echo "no" >&6; }
15402 fi
15403
15404
15405   test -n "$RSYNC" && break
15406 done
15407 test -n "$RSYNC" || RSYNC="no"
15408
15409
15410
15411     r="`eval echo '$'"RSYNC"`"
15412     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RSYNC"`' : '.*\(echo\)' > /dev/null; then
15413         true
15414     else
15415         ##STEPMAKE_WARN(cannot find . )
15416         false
15417     fi
15418
15419     if test $? -ne 0; then
15420
15421     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"rsync\"`\"
15422
15423         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15424             command="echo ERROR: rsync not found"
15425             # abort configure process here?
15426         else
15427             command="- echo rsync not found"
15428         fi
15429         eval "RSYNC"='$command'
15430         false
15431     else
15432         true
15433     fi
15434
15435     if test $? -eq 0 -a -n ""; then
15436
15437     r="`eval echo '$'"RSYNC"`"
15438     { $as_echo "$as_me:$LINENO: checking $r version" >&5
15439 $as_echo_n "checking $r version... " >&6; }
15440     exe=`
15441     ## which doesn't work in ash, if /usr/bin/which isn't installed
15442     ## type -p doesn't work in ash
15443     ## command -v doesn't work in zsh
15444     ## command -v "$r" 2>&1
15445     ## this test should work in ash, bash, pdksh (ksh), zsh
15446     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15447 `
15448     if test -n ""; then
15449         ver=""
15450     else
15451         ver=`
15452     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15453     ##
15454     ## ARG.
15455     ## Workaround for broken Debian gcc version string:
15456     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15457     ##
15458     ## -V: Workaround for python
15459
15460     #dnl
15461
15462     ## Assume and hunt for dotted version multiplet.
15463     ## use eval trickery, because we cannot use multi-level $() instead of ``
15464     ## for compatibility reasons.
15465
15466     ## grab the first version number in  --version output.
15467     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15468                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15469                 head -n 1 |
15470                 tr ' ' '\n' |
15471                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15472                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15473                 head -n 1\`\"
15474
15475     if test -z "$_ver"; then
15476         ## If empty, try date [fontforge]
15477         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15478             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15479             | head -n 1 \
15480             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15481     fi
15482     echo "$_ver"
15483     #dnl
15484 `
15485     fi
15486     num=`
15487     echo "$ver" | awk -F. '
15488     {
15489       if ($3) {three = $3}
15490       else {three = 0}
15491     }
15492     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15493 `
15494     req=`
15495     echo "" | awk -F. '
15496     {
15497       if ($3) {three = $3}
15498       else {three = 0}
15499     }
15500     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15501 `
15502     { $as_echo "$as_me:$LINENO: result: $ver" >&5
15503 $as_echo "$ver" >&6; }
15504     if test "$num" -lt "$req"; then
15505
15506     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
15507
15508     fi
15509     vervar="`echo RSYNC | tr 'a-z' 'A-Z'`_VERSION"
15510     eval `echo $vervar=$num`
15511 ##    AC_SUBST(`eval echo $vervar`)
15512
15513     fi
15514
15515
15516 cat >>confdefs.h <<_ACEOF
15517 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
15518 _ACEOF
15519
15520
15521 # must also have local.make if configure fails.
15522 touch local.make
15523
15524 if test "$reloc_b$rpath_b" = "yesno"; then
15525
15526     { $as_echo "$as_me:$LINENO: WARNING: Using --enable-relocation without --enable-rpath.  LilyPond may have trouble finding libraries." >&5
15527 $as_echo "$as_me: WARNING: Using --enable-relocation without --enable-rpath.  LilyPond may have trouble finding libraries." >&2;}
15528     warn_b=yes
15529
15530 fi
15531
15532 # Gather requirements and generate output.
15533
15534
15535     # undo expanding of explicit --infodir=/usr/share
15536     # to ease install-time override with prefix=...
15537     strip=`echo $includedir | eval sed s@^$prefix@@`
15538     if test "$includedir" = "`eval echo $prefix$strip`"; then
15539             includedir='${prefix}'$strip''
15540     fi
15541     strip=`echo $libdir | eval sed s@^$exec_prefix@@`
15542     if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
15543             libdir='${exec_prefix}'$strip''
15544     fi
15545     strip=`echo $infodir | eval sed s@^$datarootdir@@`
15546     if test "$infodir" = "`eval echo $datarootdir$strip`"; then
15547             infodir='${datarootdir}'$strip''
15548     fi
15549     strip=`echo $mandir | eval sed s@^$datarootdir@@`
15550     if test "$mandir" = "`eval echo $datarootdir$strip`"; then
15551             mandir='${datarootdir}'$strip''
15552     fi
15553
15554
15555
15556
15557
15558     ac_config_files="$ac_config_files $CONFIGFILE.make:config.make.in"
15559
15560     cat >confcache <<\_ACEOF
15561 # This file is a shell script that caches the results of configure
15562 # tests run on this system so they can be shared between configure
15563 # scripts and configure runs, see configure's option --config-cache.
15564 # It is not useful on other systems.  If it contains results you don't
15565 # want to keep, you may remove or edit it.
15566 #
15567 # config.status only pays attention to the cache file if you give it
15568 # the --recheck option to rerun configure.
15569 #
15570 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15571 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15572 # following values.
15573
15574 _ACEOF
15575
15576 # The following way of writing the cache mishandles newlines in values,
15577 # but we know of no workaround that is simple, portable, and efficient.
15578 # So, we kill variables containing newlines.
15579 # Ultrix sh set writes to stderr and can't be redirected directly,
15580 # and sets the high bit in the cache file unless we assign to the vars.
15581 (
15582   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15583     eval ac_val=\$$ac_var
15584     case $ac_val in #(
15585     *${as_nl}*)
15586       case $ac_var in #(
15587       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15588 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15589       esac
15590       case $ac_var in #(
15591       _ | IFS | as_nl) ;; #(
15592       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15593       *) $as_unset $ac_var ;;
15594       esac ;;
15595     esac
15596   done
15597
15598   (set) 2>&1 |
15599     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15600     *${as_nl}ac_space=\ *)
15601       # `set' does not quote correctly, so add quotes (double-quote
15602       # substitution turns \\\\ into \\, and sed turns \\ into \).
15603       sed -n \
15604         "s/'/'\\\\''/g;
15605           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15606       ;; #(
15607     *)
15608       # `set' quotes correctly as required by POSIX, so do not add quotes.
15609       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15610       ;;
15611     esac |
15612     sort
15613 ) |
15614   sed '
15615      /^ac_cv_env_/b end
15616      t clear
15617      :clear
15618      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15619      t end
15620      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15621      :end' >>confcache
15622 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15623   if test -w "$cache_file"; then
15624     test "x$cache_file" != "x/dev/null" &&
15625       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15626 $as_echo "$as_me: updating cache $cache_file" >&6;}
15627     cat confcache >$cache_file
15628   else
15629     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15630 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15631   fi
15632 fi
15633 rm -f confcache
15634
15635 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15636 # Let make expand exec_prefix.
15637 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15638
15639 DEFS=-DHAVE_CONFIG_H
15640
15641 ac_libobjs=
15642 ac_ltlibobjs=
15643 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15644   # 1. Remove the extension, and $U if already installed.
15645   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15646   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15647   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15648   #    will be set to the directory where LIBOBJS objects are built.
15649   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15650   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15651 done
15652 LIBOBJS=$ac_libobjs
15653
15654 LTLIBOBJS=$ac_ltlibobjs
15655
15656
15657
15658 : ${CONFIG_STATUS=./config.status}
15659 ac_write_fail=0
15660 ac_clean_files_save=$ac_clean_files
15661 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15662 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15663 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15664 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15665 #! $SHELL
15666 # Generated by $as_me.
15667 # Run this file to recreate the current configuration.
15668 # Compiler output produced by configure, useful for debugging
15669 # configure, is in config.log if it exists.
15670
15671 debug=false
15672 ac_cs_recheck=false
15673 ac_cs_silent=false
15674 SHELL=\${CONFIG_SHELL-$SHELL}
15675 _ACEOF
15676
15677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15678 ## --------------------- ##
15679 ## M4sh Initialization.  ##
15680 ## --------------------- ##
15681
15682 # Be more Bourne compatible
15683 DUALCASE=1; export DUALCASE # for MKS sh
15684 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15685   emulate sh
15686   NULLCMD=:
15687   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15688   # is contrary to our usage.  Disable this feature.
15689   alias -g '${1+"$@"}'='"$@"'
15690   setopt NO_GLOB_SUBST
15691 else
15692   case `(set -o) 2>/dev/null` in
15693   *posix*) set -o posix ;;
15694 esac
15695
15696 fi
15697
15698
15699
15700
15701 # PATH needs CR
15702 # Avoid depending upon Character Ranges.
15703 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15704 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15705 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15706 as_cr_digits='0123456789'
15707 as_cr_alnum=$as_cr_Letters$as_cr_digits
15708
15709 as_nl='
15710 '
15711 export as_nl
15712 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15713 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15714 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15715 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15716 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15717   as_echo='printf %s\n'
15718   as_echo_n='printf %s'
15719 else
15720   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15721     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15722     as_echo_n='/usr/ucb/echo -n'
15723   else
15724     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15725     as_echo_n_body='eval
15726       arg=$1;
15727       case $arg in
15728       *"$as_nl"*)
15729         expr "X$arg" : "X\\(.*\\)$as_nl";
15730         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15731       esac;
15732       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15733     '
15734     export as_echo_n_body
15735     as_echo_n='sh -c $as_echo_n_body as_echo'
15736   fi
15737   export as_echo_body
15738   as_echo='sh -c $as_echo_body as_echo'
15739 fi
15740
15741 # The user is always right.
15742 if test "${PATH_SEPARATOR+set}" != set; then
15743   PATH_SEPARATOR=:
15744   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15745     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15746       PATH_SEPARATOR=';'
15747   }
15748 fi
15749
15750 # Support unset when possible.
15751 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15752   as_unset=unset
15753 else
15754   as_unset=false
15755 fi
15756
15757
15758 # IFS
15759 # We need space, tab and new line, in precisely that order.  Quoting is
15760 # there to prevent editors from complaining about space-tab.
15761 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15762 # splitting by setting IFS to empty value.)
15763 IFS=" ""        $as_nl"
15764
15765 # Find who we are.  Look in the path if we contain no directory separator.
15766 case $0 in
15767   *[\\/]* ) as_myself=$0 ;;
15768   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15769 for as_dir in $PATH
15770 do
15771   IFS=$as_save_IFS
15772   test -z "$as_dir" && as_dir=.
15773   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15774 done
15775 IFS=$as_save_IFS
15776
15777      ;;
15778 esac
15779 # We did not find ourselves, most probably we were run as `sh COMMAND'
15780 # in which case we are not to be found in the path.
15781 if test "x$as_myself" = x; then
15782   as_myself=$0
15783 fi
15784 if test ! -f "$as_myself"; then
15785   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15786   { (exit 1); exit 1; }
15787 fi
15788
15789 # Work around bugs in pre-3.0 UWIN ksh.
15790 for as_var in ENV MAIL MAILPATH
15791 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15792 done
15793 PS1='$ '
15794 PS2='> '
15795 PS4='+ '
15796
15797 # NLS nuisances.
15798 LC_ALL=C
15799 export LC_ALL
15800 LANGUAGE=C
15801 export LANGUAGE
15802
15803 # Required to use basename.
15804 if expr a : '\(a\)' >/dev/null 2>&1 &&
15805    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15806   as_expr=expr
15807 else
15808   as_expr=false
15809 fi
15810
15811 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15812   as_basename=basename
15813 else
15814   as_basename=false
15815 fi
15816
15817
15818 # Name of the executable.
15819 as_me=`$as_basename -- "$0" ||
15820 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15821          X"$0" : 'X\(//\)$' \| \
15822          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15823 $as_echo X/"$0" |
15824     sed '/^.*\/\([^/][^/]*\)\/*$/{
15825             s//\1/
15826             q
15827           }
15828           /^X\/\(\/\/\)$/{
15829             s//\1/
15830             q
15831           }
15832           /^X\/\(\/\).*/{
15833             s//\1/
15834             q
15835           }
15836           s/.*/./; q'`
15837
15838 # CDPATH.
15839 $as_unset CDPATH
15840
15841
15842
15843   as_lineno_1=$LINENO
15844   as_lineno_2=$LINENO
15845   test "x$as_lineno_1" != "x$as_lineno_2" &&
15846   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15847
15848   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15849   # uniformly replaced by the line number.  The first 'sed' inserts a
15850   # line-number line after each line using $LINENO; the second 'sed'
15851   # does the real work.  The second script uses 'N' to pair each
15852   # line-number line with the line containing $LINENO, and appends
15853   # trailing '-' during substitution so that $LINENO is not a special
15854   # case at line end.
15855   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15856   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15857   # E. McMahon (1931-1989) for sed's syntax.  :-)
15858   sed -n '
15859     p
15860     /[$]LINENO/=
15861   ' <$as_myself |
15862     sed '
15863       s/[$]LINENO.*/&-/
15864       t lineno
15865       b
15866       :lineno
15867       N
15868       :loop
15869       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15870       t loop
15871       s/-\n.*//
15872     ' >$as_me.lineno &&
15873   chmod +x "$as_me.lineno" ||
15874     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15875    { (exit 1); exit 1; }; }
15876
15877   # Don't try to exec as it changes $[0], causing all sort of problems
15878   # (the dirname of $[0] is not the place where we might find the
15879   # original and so on.  Autoconf is especially sensitive to this).
15880   . "./$as_me.lineno"
15881   # Exit status is that of the last command.
15882   exit
15883 }
15884
15885
15886 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15887   as_dirname=dirname
15888 else
15889   as_dirname=false
15890 fi
15891
15892 ECHO_C= ECHO_N= ECHO_T=
15893 case `echo -n x` in
15894 -n*)
15895   case `echo 'x\c'` in
15896   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15897   *)   ECHO_C='\c';;
15898   esac;;
15899 *)
15900   ECHO_N='-n';;
15901 esac
15902 if expr a : '\(a\)' >/dev/null 2>&1 &&
15903    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15904   as_expr=expr
15905 else
15906   as_expr=false
15907 fi
15908
15909 rm -f conf$$ conf$$.exe conf$$.file
15910 if test -d conf$$.dir; then
15911   rm -f conf$$.dir/conf$$.file
15912 else
15913   rm -f conf$$.dir
15914   mkdir conf$$.dir 2>/dev/null
15915 fi
15916 if (echo >conf$$.file) 2>/dev/null; then
15917   if ln -s conf$$.file conf$$ 2>/dev/null; then
15918     as_ln_s='ln -s'
15919     # ... but there are two gotchas:
15920     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15921     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15922     # In both cases, we have to default to `cp -p'.
15923     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15924       as_ln_s='cp -p'
15925   elif ln conf$$.file conf$$ 2>/dev/null; then
15926     as_ln_s=ln
15927   else
15928     as_ln_s='cp -p'
15929   fi
15930 else
15931   as_ln_s='cp -p'
15932 fi
15933 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15934 rmdir conf$$.dir 2>/dev/null
15935
15936 if mkdir -p . 2>/dev/null; then
15937   as_mkdir_p=:
15938 else
15939   test -d ./-p && rmdir ./-p
15940   as_mkdir_p=false
15941 fi
15942
15943 if test -x / >/dev/null 2>&1; then
15944   as_test_x='test -x'
15945 else
15946   if ls -dL / >/dev/null 2>&1; then
15947     as_ls_L_option=L
15948   else
15949     as_ls_L_option=
15950   fi
15951   as_test_x='
15952     eval sh -c '\''
15953       if test -d "$1"; then
15954         test -d "$1/.";
15955       else
15956         case $1 in
15957         -*)set "./$1";;
15958         esac;
15959         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15960         ???[sx]*):;;*)false;;esac;fi
15961     '\'' sh
15962   '
15963 fi
15964 as_executable_p=$as_test_x
15965
15966 # Sed expression to map a string onto a valid CPP name.
15967 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15968
15969 # Sed expression to map a string onto a valid variable name.
15970 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15971
15972
15973 exec 6>&1
15974
15975 # Save the log message, to keep $[0] and so on meaningful, and to
15976 # report actual input values of CONFIG_FILES etc. instead of their
15977 # values after options handling.
15978 ac_log="
15979 This file was extended by $as_me, which was
15980 generated by GNU Autoconf 2.63.  Invocation command line was
15981
15982   CONFIG_FILES    = $CONFIG_FILES
15983   CONFIG_HEADERS  = $CONFIG_HEADERS
15984   CONFIG_LINKS    = $CONFIG_LINKS
15985   CONFIG_COMMANDS = $CONFIG_COMMANDS
15986   $ $0 $@
15987
15988 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15989 "
15990
15991 _ACEOF
15992
15993 case $ac_config_files in *"
15994 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15995 esac
15996
15997 case $ac_config_headers in *"
15998 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15999 esac
16000
16001
16002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16003 # Files that config.status was made for.
16004 config_files="$ac_config_files"
16005 config_headers="$ac_config_headers"
16006
16007 _ACEOF
16008
16009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16010 ac_cs_usage="\
16011 \`$as_me' instantiates files from templates according to the
16012 current configuration.
16013
16014 Usage: $0 [OPTION]... [FILE]...
16015
16016   -h, --help       print this help, then exit
16017   -V, --version    print version number and configuration settings, then exit
16018   -q, --quiet, --silent
16019                    do not print progress messages
16020   -d, --debug      don't remove temporary files
16021       --recheck    update $as_me by reconfiguring in the same conditions
16022       --file=FILE[:TEMPLATE]
16023                    instantiate the configuration file FILE
16024       --header=FILE[:TEMPLATE]
16025                    instantiate the configuration header FILE
16026
16027 Configuration files:
16028 $config_files
16029
16030 Configuration headers:
16031 $config_headers
16032
16033 Report bugs to <bug-autoconf@gnu.org>."
16034
16035 _ACEOF
16036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16037 ac_cs_version="\\
16038 config.status
16039 configured by $0, generated by GNU Autoconf 2.63,
16040   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16041
16042 Copyright (C) 2008 Free Software Foundation, Inc.
16043 This config.status script is free software; the Free Software Foundation
16044 gives unlimited permission to copy, distribute and modify it."
16045
16046 ac_pwd='$ac_pwd'
16047 srcdir='$srcdir'
16048 test -n "\$AWK" || AWK=awk
16049 _ACEOF
16050
16051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16052 # The default lists apply if the user does not specify any file.
16053 ac_need_defaults=:
16054 while test $# != 0
16055 do
16056   case $1 in
16057   --*=*)
16058     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16059     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16060     ac_shift=:
16061     ;;
16062   *)
16063     ac_option=$1
16064     ac_optarg=$2
16065     ac_shift=shift
16066     ;;
16067   esac
16068
16069   case $ac_option in
16070   # Handling of the options.
16071   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16072     ac_cs_recheck=: ;;
16073   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16074     $as_echo "$ac_cs_version"; exit ;;
16075   --debug | --debu | --deb | --de | --d | -d )
16076     debug=: ;;
16077   --file | --fil | --fi | --f )
16078     $ac_shift
16079     case $ac_optarg in
16080     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16081     esac
16082     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16083     ac_need_defaults=false;;
16084   --header | --heade | --head | --hea )
16085     $ac_shift
16086     case $ac_optarg in
16087     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16088     esac
16089     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16090     ac_need_defaults=false;;
16091   --he | --h)
16092     # Conflict between --help and --header
16093     { $as_echo "$as_me: error: ambiguous option: $1
16094 Try \`$0 --help' for more information." >&2
16095    { (exit 1); exit 1; }; };;
16096   --help | --hel | -h )
16097     $as_echo "$ac_cs_usage"; exit ;;
16098   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16099   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16100     ac_cs_silent=: ;;
16101
16102   # This is an error.
16103   -*) { $as_echo "$as_me: error: unrecognized option: $1
16104 Try \`$0 --help' for more information." >&2
16105    { (exit 1); exit 1; }; } ;;
16106
16107   *) ac_config_targets="$ac_config_targets $1"
16108      ac_need_defaults=false ;;
16109
16110   esac
16111   shift
16112 done
16113
16114 ac_configure_extra_args=
16115
16116 if $ac_cs_silent; then
16117   exec 6>/dev/null
16118   ac_configure_extra_args="$ac_configure_extra_args --silent"
16119 fi
16120
16121 _ACEOF
16122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16123 if \$ac_cs_recheck; then
16124   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16125   shift
16126   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16127   CONFIG_SHELL='$SHELL'
16128   export CONFIG_SHELL
16129   exec "\$@"
16130 fi
16131
16132 _ACEOF
16133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16134 exec 5>>config.log
16135 {
16136   echo
16137   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16138 ## Running $as_me. ##
16139 _ASBOX
16140   $as_echo "$ac_log"
16141 } >&5
16142
16143 _ACEOF
16144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16145 _ACEOF
16146
16147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16148
16149 # Handling of arguments.
16150 for ac_config_target in $ac_config_targets
16151 do
16152   case $ac_config_target in
16153     "$CONFIGFILE.hh") CONFIG_HEADERS="$CONFIG_HEADERS $CONFIGFILE.hh:config.hh.in" ;;
16154     "$CONFIGFILE.make") CONFIG_FILES="$CONFIG_FILES $CONFIGFILE.make:config.make.in" ;;
16155
16156   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16157 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16158    { (exit 1); exit 1; }; };;
16159   esac
16160 done
16161
16162
16163 # If the user did not use the arguments to specify the items to instantiate,
16164 # then the envvar interface is used.  Set only those that are not.
16165 # We use the long form for the default assignment because of an extremely
16166 # bizarre bug on SunOS 4.1.3.
16167 if $ac_need_defaults; then
16168   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16169   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16170 fi
16171
16172 # Have a temporary directory for convenience.  Make it in the build tree
16173 # simply because there is no reason against having it here, and in addition,
16174 # creating and moving files from /tmp can sometimes cause problems.
16175 # Hook for its removal unless debugging.
16176 # Note that there is a small window in which the directory will not be cleaned:
16177 # after its creation but before its name has been assigned to `$tmp'.
16178 $debug ||
16179 {
16180   tmp=
16181   trap 'exit_status=$?
16182   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16183 ' 0
16184   trap '{ (exit 1); exit 1; }' 1 2 13 15
16185 }
16186 # Create a (secure) tmp directory for tmp files.
16187
16188 {
16189   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16190   test -n "$tmp" && test -d "$tmp"
16191 }  ||
16192 {
16193   tmp=./conf$$-$RANDOM
16194   (umask 077 && mkdir "$tmp")
16195 } ||
16196 {
16197    $as_echo "$as_me: cannot create a temporary directory in ." >&2
16198    { (exit 1); exit 1; }
16199 }
16200
16201 # Set up the scripts for CONFIG_FILES section.
16202 # No need to generate them if there are no CONFIG_FILES.
16203 # This happens for instance with `./config.status config.h'.
16204 if test -n "$CONFIG_FILES"; then
16205
16206
16207 ac_cr='\r'
16208 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16209 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16210   ac_cs_awk_cr='\\r'
16211 else
16212   ac_cs_awk_cr=$ac_cr
16213 fi
16214
16215 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16216 _ACEOF
16217
16218
16219 {
16220   echo "cat >conf$$subs.awk <<_ACEOF" &&
16221   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16222   echo "_ACEOF"
16223 } >conf$$subs.sh ||
16224   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16225 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16226    { (exit 1); exit 1; }; }
16227 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16228 ac_delim='%!_!# '
16229 for ac_last_try in false false false false false :; do
16230   . ./conf$$subs.sh ||
16231     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16232 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16233    { (exit 1); exit 1; }; }
16234
16235   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16236   if test $ac_delim_n = $ac_delim_num; then
16237     break
16238   elif $ac_last_try; then
16239     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16240 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16241    { (exit 1); exit 1; }; }
16242   else
16243     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16244   fi
16245 done
16246 rm -f conf$$subs.sh
16247
16248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16249 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16250 _ACEOF
16251 sed -n '
16252 h
16253 s/^/S["/; s/!.*/"]=/
16254 p
16255 g
16256 s/^[^!]*!//
16257 :repl
16258 t repl
16259 s/'"$ac_delim"'$//
16260 t delim
16261 :nl
16262 h
16263 s/\(.\{148\}\).*/\1/
16264 t more1
16265 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16266 p
16267 n
16268 b repl
16269 :more1
16270 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16271 p
16272 g
16273 s/.\{148\}//
16274 t nl
16275 :delim
16276 h
16277 s/\(.\{148\}\).*/\1/
16278 t more2
16279 s/["\\]/\\&/g; s/^/"/; s/$/"/
16280 p
16281 b
16282 :more2
16283 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16284 p
16285 g
16286 s/.\{148\}//
16287 t delim
16288 ' <conf$$subs.awk | sed '
16289 /^[^""]/{
16290   N
16291   s/\n//
16292 }
16293 ' >>$CONFIG_STATUS || ac_write_fail=1
16294 rm -f conf$$subs.awk
16295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16296 _ACAWK
16297 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16298   for (key in S) S_is_set[key] = 1
16299   FS = "\a"
16300
16301 }
16302 {
16303   line = $ 0
16304   nfields = split(line, field, "@")
16305   substed = 0
16306   len = length(field[1])
16307   for (i = 2; i < nfields; i++) {
16308     key = field[i]
16309     keylen = length(key)
16310     if (S_is_set[key]) {
16311       value = S[key]
16312       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16313       len += length(value) + length(field[++i])
16314       substed = 1
16315     } else
16316       len += 1 + keylen
16317   }
16318
16319   print line
16320 }
16321
16322 _ACAWK
16323 _ACEOF
16324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16325 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16326   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16327 else
16328   cat
16329 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16330   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16331 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16332    { (exit 1); exit 1; }; }
16333 _ACEOF
16334
16335 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16336 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16337 # trailing colons and then remove the whole line if VPATH becomes empty
16338 # (actually we leave an empty line to preserve line numbers).
16339 if test "x$srcdir" = x.; then
16340   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16341 s/:*\$(srcdir):*/:/
16342 s/:*\${srcdir}:*/:/
16343 s/:*@srcdir@:*/:/
16344 s/^\([^=]*=[     ]*\):*/\1/
16345 s/:*$//
16346 s/^[^=]*=[       ]*$//
16347 }'
16348 fi
16349
16350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16351 fi # test -n "$CONFIG_FILES"
16352
16353 # Set up the scripts for CONFIG_HEADERS section.
16354 # No need to generate them if there are no CONFIG_HEADERS.
16355 # This happens for instance with `./config.status Makefile'.
16356 if test -n "$CONFIG_HEADERS"; then
16357 cat >"$tmp/defines.awk" <<\_ACAWK ||
16358 BEGIN {
16359 _ACEOF
16360
16361 # Transform confdefs.h into an awk script `defines.awk', embedded as
16362 # here-document in config.status, that substitutes the proper values into
16363 # config.h.in to produce config.h.
16364
16365 # Create a delimiter string that does not exist in confdefs.h, to ease
16366 # handling of long lines.
16367 ac_delim='%!_!# '
16368 for ac_last_try in false false :; do
16369   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16370   if test -z "$ac_t"; then
16371     break
16372   elif $ac_last_try; then
16373     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16374 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16375    { (exit 1); exit 1; }; }
16376   else
16377     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16378   fi
16379 done
16380
16381 # For the awk script, D is an array of macro values keyed by name,
16382 # likewise P contains macro parameters if any.  Preserve backslash
16383 # newline sequences.
16384
16385 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16386 sed -n '
16387 s/.\{148\}/&'"$ac_delim"'/g
16388 t rset
16389 :rset
16390 s/^[     ]*#[    ]*define[       ][      ]*/ /
16391 t def
16392 d
16393 :def
16394 s/\\$//
16395 t bsnl
16396 s/["\\]/\\&/g
16397 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16398 D["\1"]=" \3"/p
16399 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16400 d
16401 :bsnl
16402 s/["\\]/\\&/g
16403 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16404 D["\1"]=" \3\\\\\\n"\\/p
16405 t cont
16406 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16407 t cont
16408 d
16409 :cont
16410 n
16411 s/.\{148\}/&'"$ac_delim"'/g
16412 t clear
16413 :clear
16414 s/\\$//
16415 t bsnlc
16416 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16417 d
16418 :bsnlc
16419 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16420 b cont
16421 ' <confdefs.h | sed '
16422 s/'"$ac_delim"'/"\\\
16423 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16424
16425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16426   for (key in D) D_is_set[key] = 1
16427   FS = "\a"
16428 }
16429 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16430   line = \$ 0
16431   split(line, arg, " ")
16432   if (arg[1] == "#") {
16433     defundef = arg[2]
16434     mac1 = arg[3]
16435   } else {
16436     defundef = substr(arg[1], 2)
16437     mac1 = arg[2]
16438   }
16439   split(mac1, mac2, "(") #)
16440   macro = mac2[1]
16441   prefix = substr(line, 1, index(line, defundef) - 1)
16442   if (D_is_set[macro]) {
16443     # Preserve the white space surrounding the "#".
16444     print prefix "define", macro P[macro] D[macro]
16445     next
16446   } else {
16447     # Replace #undef with comments.  This is necessary, for example,
16448     # in the case of _POSIX_SOURCE, which is predefined and required
16449     # on some systems where configure will not decide to define it.
16450     if (defundef == "undef") {
16451       print "/*", prefix defundef, macro, "*/"
16452       next
16453     }
16454   }
16455 }
16456 { print }
16457 _ACAWK
16458 _ACEOF
16459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16460   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16461 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16462    { (exit 1); exit 1; }; }
16463 fi # test -n "$CONFIG_HEADERS"
16464
16465
16466 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
16467 shift
16468 for ac_tag
16469 do
16470   case $ac_tag in
16471   :[FHLC]) ac_mode=$ac_tag; continue;;
16472   esac
16473   case $ac_mode$ac_tag in
16474   :[FHL]*:*);;
16475   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16476 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16477    { (exit 1); exit 1; }; };;
16478   :[FH]-) ac_tag=-:-;;
16479   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16480   esac
16481   ac_save_IFS=$IFS
16482   IFS=:
16483   set x $ac_tag
16484   IFS=$ac_save_IFS
16485   shift
16486   ac_file=$1
16487   shift
16488
16489   case $ac_mode in
16490   :L) ac_source=$1;;
16491   :[FH])
16492     ac_file_inputs=
16493     for ac_f
16494     do
16495       case $ac_f in
16496       -) ac_f="$tmp/stdin";;
16497       *) # Look for the file first in the build tree, then in the source tree
16498          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16499          # because $ac_f cannot contain `:'.
16500          test -f "$ac_f" ||
16501            case $ac_f in
16502            [\\/$]*) false;;
16503            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16504            esac ||
16505            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16506 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16507    { (exit 1); exit 1; }; };;
16508       esac
16509       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16510       ac_file_inputs="$ac_file_inputs '$ac_f'"
16511     done
16512
16513     # Let's still pretend it is `configure' which instantiates (i.e., don't
16514     # use $as_me), people would be surprised to read:
16515     #    /* config.h.  Generated by config.status.  */
16516     configure_input='Generated from '`
16517           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16518         `' by configure.'
16519     if test x"$ac_file" != x-; then
16520       configure_input="$ac_file.  $configure_input"
16521       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16522 $as_echo "$as_me: creating $ac_file" >&6;}
16523     fi
16524     # Neutralize special characters interpreted by sed in replacement strings.
16525     case $configure_input in #(
16526     *\&* | *\|* | *\\* )
16527        ac_sed_conf_input=`$as_echo "$configure_input" |
16528        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16529     *) ac_sed_conf_input=$configure_input;;
16530     esac
16531
16532     case $ac_tag in
16533     *:-:* | *:-) cat >"$tmp/stdin" \
16534       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16535 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16536    { (exit 1); exit 1; }; } ;;
16537     esac
16538     ;;
16539   esac
16540
16541   ac_dir=`$as_dirname -- "$ac_file" ||
16542 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16543          X"$ac_file" : 'X\(//\)[^/]' \| \
16544          X"$ac_file" : 'X\(//\)$' \| \
16545          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16546 $as_echo X"$ac_file" |
16547     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16548             s//\1/
16549             q
16550           }
16551           /^X\(\/\/\)[^/].*/{
16552             s//\1/
16553             q
16554           }
16555           /^X\(\/\/\)$/{
16556             s//\1/
16557             q
16558           }
16559           /^X\(\/\).*/{
16560             s//\1/
16561             q
16562           }
16563           s/.*/./; q'`
16564   { as_dir="$ac_dir"
16565   case $as_dir in #(
16566   -*) as_dir=./$as_dir;;
16567   esac
16568   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16569     as_dirs=
16570     while :; do
16571       case $as_dir in #(
16572       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16573       *) as_qdir=$as_dir;;
16574       esac
16575       as_dirs="'$as_qdir' $as_dirs"
16576       as_dir=`$as_dirname -- "$as_dir" ||
16577 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16578          X"$as_dir" : 'X\(//\)[^/]' \| \
16579          X"$as_dir" : 'X\(//\)$' \| \
16580          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16581 $as_echo X"$as_dir" |
16582     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16583             s//\1/
16584             q
16585           }
16586           /^X\(\/\/\)[^/].*/{
16587             s//\1/
16588             q
16589           }
16590           /^X\(\/\/\)$/{
16591             s//\1/
16592             q
16593           }
16594           /^X\(\/\).*/{
16595             s//\1/
16596             q
16597           }
16598           s/.*/./; q'`
16599       test -d "$as_dir" && break
16600     done
16601     test -z "$as_dirs" || eval "mkdir $as_dirs"
16602   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16603 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16604    { (exit 1); exit 1; }; }; }
16605   ac_builddir=.
16606
16607 case "$ac_dir" in
16608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16609 *)
16610   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16611   # A ".." for each directory in $ac_dir_suffix.
16612   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16613   case $ac_top_builddir_sub in
16614   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16615   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16616   esac ;;
16617 esac
16618 ac_abs_top_builddir=$ac_pwd
16619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16620 # for backward compatibility:
16621 ac_top_builddir=$ac_top_build_prefix
16622
16623 case $srcdir in
16624   .)  # We are building in place.
16625     ac_srcdir=.
16626     ac_top_srcdir=$ac_top_builddir_sub
16627     ac_abs_top_srcdir=$ac_pwd ;;
16628   [\\/]* | ?:[\\/]* )  # Absolute name.
16629     ac_srcdir=$srcdir$ac_dir_suffix;
16630     ac_top_srcdir=$srcdir
16631     ac_abs_top_srcdir=$srcdir ;;
16632   *) # Relative name.
16633     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16634     ac_top_srcdir=$ac_top_build_prefix$srcdir
16635     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16636 esac
16637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16638
16639
16640   case $ac_mode in
16641   :F)
16642   #
16643   # CONFIG_FILE
16644   #
16645
16646 _ACEOF
16647
16648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16649 # If the template does not know about datarootdir, expand it.
16650 # FIXME: This hack should be removed a few years after 2.60.
16651 ac_datarootdir_hack=; ac_datarootdir_seen=
16652
16653 ac_sed_dataroot='
16654 /datarootdir/ {
16655   p
16656   q
16657 }
16658 /@datadir@/p
16659 /@docdir@/p
16660 /@infodir@/p
16661 /@localedir@/p
16662 /@mandir@/p
16663 '
16664 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16665 *datarootdir*) ac_datarootdir_seen=yes;;
16666 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16667   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16668 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16669 _ACEOF
16670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16671   ac_datarootdir_hack='
16672   s&@datadir@&$datadir&g
16673   s&@docdir@&$docdir&g
16674   s&@infodir@&$infodir&g
16675   s&@localedir@&$localedir&g
16676   s&@mandir@&$mandir&g
16677     s&\\\${datarootdir}&$datarootdir&g' ;;
16678 esac
16679 _ACEOF
16680
16681 # Neutralize VPATH when `$srcdir' = `.'.
16682 # Shell code in configure.ac might set extrasub.
16683 # FIXME: do we really want to maintain this feature?
16684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16685 ac_sed_extra="$ac_vpsub
16686 $extrasub
16687 _ACEOF
16688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16689 :t
16690 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16691 s|@configure_input@|$ac_sed_conf_input|;t t
16692 s&@top_builddir@&$ac_top_builddir_sub&;t t
16693 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16694 s&@srcdir@&$ac_srcdir&;t t
16695 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16696 s&@top_srcdir@&$ac_top_srcdir&;t t
16697 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16698 s&@builddir@&$ac_builddir&;t t
16699 s&@abs_builddir@&$ac_abs_builddir&;t t
16700 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16701 $ac_datarootdir_hack
16702 "
16703 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16704   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16705 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16706    { (exit 1); exit 1; }; }
16707
16708 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16709   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16710   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16711   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16712 which seems to be undefined.  Please make sure it is defined." >&5
16713 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16714 which seems to be undefined.  Please make sure it is defined." >&2;}
16715
16716   rm -f "$tmp/stdin"
16717   case $ac_file in
16718   -) cat "$tmp/out" && rm -f "$tmp/out";;
16719   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16720   esac \
16721   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16722 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16723    { (exit 1); exit 1; }; }
16724  ;;
16725   :H)
16726   #
16727   # CONFIG_HEADER
16728   #
16729   if test x"$ac_file" != x-; then
16730     {
16731       $as_echo "/* $configure_input  */" \
16732       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16733     } >"$tmp/config.h" \
16734       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16735 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16736    { (exit 1); exit 1; }; }
16737     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16738       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16739 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16740     else
16741       rm -f "$ac_file"
16742       mv "$tmp/config.h" "$ac_file" \
16743         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16744 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16745    { (exit 1); exit 1; }; }
16746     fi
16747   else
16748     $as_echo "/* $configure_input  */" \
16749       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16750       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16751 $as_echo "$as_me: error: could not create -" >&2;}
16752    { (exit 1); exit 1; }; }
16753   fi
16754  ;;
16755
16756
16757   esac
16758
16759 done # for ac_tag
16760
16761
16762 { (exit 0); exit 0; }
16763 _ACEOF
16764 chmod +x $CONFIG_STATUS
16765 ac_clean_files=$ac_clean_files_save
16766
16767 test $ac_write_fail = 0 ||
16768   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16769 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16770    { (exit 1); exit 1; }; }
16771
16772
16773 # configure is writing to config.log, and then calls config.status.
16774 # config.status does its own redirection, appending to config.log.
16775 # Unfortunately, on DOS this fails, as config.log is still kept open
16776 # by configure, so config.status won't be able to write to it; its
16777 # output is simply discarded.  So we exec the FD to /dev/null,
16778 # effectively closing config.log, so it can be properly (re)opened and
16779 # appended to by config.status.  When coming back to configure, we
16780 # need to make the FD available again.
16781 if test "$no_create" != yes; then
16782   ac_cs_success=:
16783   ac_config_status_args=
16784   test "$silent" = yes &&
16785     ac_config_status_args="$ac_config_status_args --quiet"
16786   exec 5>/dev/null
16787   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16788   exec 5>>config.log
16789   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16790   # would make configure fail if this is the last instruction.
16791   $ac_cs_success || { (exit 1); exit 1; }
16792 fi
16793 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16794   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16795 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16796 fi
16797
16798
16799     if test -n "$OPTIONAL"; then
16800         echo
16801         echo "WARNING: Please consider installing optional programs or files: $OPTIONAL"
16802     fi
16803
16804     if test -n "$REQUIRED"; then
16805         echo
16806         echo "ERROR: Please install required programs: $REQUIRED"
16807     fi
16808
16809     if test -n "$UNSUPPORTED"; then
16810         echo
16811         echo "ERROR: Please use older version of programs: $UNSUPPORTED"
16812     fi
16813
16814     if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
16815         echo
16816         echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
16817         if test -f config.cache ; then
16818             echo "Remove config.cache before rerunning ./configure"
16819         fi
16820     fi
16821
16822     if test -n "$REQUIRED$UNSUPPORTED"; then
16823         rm -f $srcdir/GNUmakefile
16824         exit 1
16825     fi
16826
16827     # regular in-place build
16828     # test for srcdir_build = yes ?
16829     if test "$srcdir_build" = "yes"; then
16830         rm -f $srcdir/GNUmakefile
16831         cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
16832         chmod 444 $srcdir/GNUmakefile
16833     else
16834         if test -f $srcdir/GNUmakefile; then
16835             cat <<EOF
16836 Source directory already configured.  Please clean the source directory
16837
16838      make -C $srcdir distclean
16839
16840 and rerun configure.
16841 EOF
16842             exit 2
16843         fi
16844
16845         abssrcdir="`cd $srcdir; pwd`"
16846         absbuilddir="`pwd`"
16847         for d in 2 3 4 5 ; do
16848             for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name GNUmakefile`; do
16849                 case "$abssrcdir" in
16850                     "$absbuilddir"/*)
16851 # source is below build directory, always copy
16852                         ;;
16853                     *)
16854                         case "$abssrcdir/${mf#./}" in
16855                             "$absbuilddir"/*)
16856 # find descended into build directory, don't copy
16857                                 continue
16858                         esac
16859                 esac
16860                 mkdir -p ${mf%/*}
16861                 cat <<EOF | $PYTHON -  > $mf
16862 print 'depth=' + ('../' * ( $d-1 ) )
16863 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
16864 print 'include \$(configure-srcdir)/$mf'
16865 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
16866 EOF
16867             done
16868             for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
16869                 case "$abssrcdir" in
16870                     "$absbuilddir"/*)
16871 # source is below build directory, always copy
16872                         ;;
16873                     *)
16874                         case "$abssrcdir/${mf#./}" in
16875                             "$absbuilddir"/*)
16876 # find descended into build directory, don't copy
16877                                 continue
16878                         esac
16879                 esac
16880                 mkdir -p ${mf%/*}
16881                 cat <<EOF | $PYTHON -  > $mf
16882 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
16883 print 'include \$(configure-srcdir)/$mf'
16884 EOF
16885             done
16886         done
16887
16888         rm -f GNUmakefile
16889         cat <<EOF > GNUmakefile
16890 depth = .
16891 include config\$(if \$(conf),-\$(conf),).make
16892 include \$(configure-srcdir)/GNUmakefile.in
16893 EOF
16894         chmod 444 GNUmakefile
16895
16896     fi
16897
16898
16899 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
16900
16901 if make top-doc 1>/dev/null 2>&1; then
16902     rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt .
16903     rm -f README.txt && ln Documentation/topdocs/out/README.txt .
16904 fi
16905
16906 cat <<EOF
16907
16908 Type:
16909     make$mc all       to build LilyPond
16910     make$mc install   to install LilyPond
16911     make$mc help      to see all possible targets
16912
16913 Edit local.make for local Makefile overrides.
16914
16915
16916 EOF