]> git.donarmstrong.com Git - lilypond.git/blob - configure
* New upstream release (closes: #705895)
[lilypond.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="lily/main.cc"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 #  include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #  include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_subst_vars='VPATH
639 LTLIBOBJS
640 REQUIRED
641 OPTIONAL
642 RSYNC
643 ZIPDOC
644 IMAGEMAGICK
645 NETPBM
646 PDFLATEX
647 DBLATEX
648 TEXI2HTML
649 MAKEINFO
650 PERL
651 GUILE
652 WINDRES
653 PLATFORM_WINDOWS
654 FREETYPE2_LIBS
655 FREETYPE2_CFLAGS
656 FONTCONFIG_LIBS
657 FONTCONFIG_CFLAGS
658 PANGO_FT2_LIBS
659 PANGO_FT2_CFLAGS
660 HOST_ARCH
661 PKG_CONFIG
662 LIBOBJS
663 T1ASM
664 FONTFORGE
665 GHOSTSCRIPT
666 PYTHON_CONFIG
667 CXXABI_LIBS
668 GUILE_LDFLAGS
669 GUILE_CFLAGS
670 GUILE_CONFIG
671 KPSEWHICH
672 MFMODE
673 METAPOST
674 METAFONT
675 MSGFMT
676 FLEXLEXER_FILE
677 FLEX
678 BISON
679 YFLAGS
680 YACC
681 RANLIB
682 AR
683 EGREP
684 GREP
685 CXXCPP
686 ac_ct_CXX
687 CXXFLAGS
688 CXX
689 NCSB_DIR
690 NCSB_SOURCE_FILES
691 FCLIST
692 EXTRA_LIBS
693 DEFINES
694 cross_compiling
695 LD
696 OBJEXT
697 EXEEXT
698 ac_ct_CC
699 CPPFLAGS
700 LDFLAGS
701 CFLAGS
702 CC
703 LINK_GXX_STATICALLY
704 DOCUMENTATION
705 build_package_libdir
706 build_package_datadir
707 ROOTSEP
708 PATHSEP
709 DIRSEP
710 LN_S
711 LN
712 ZIP
713 program_suffix
714 program_prefix
715 PYTHON
716 BASH
717 KSH
718 TAR
719 FIND
720 MAKE
721 host_os
722 host_vendor
723 host_cpu
724 host
725 build_os
726 build_vendor
727 build_cpu
728 build
729 CONFIGSUFFIX
730 AUTOGENERATE
731 package_depth
732 TOPLEVEL_VERSION
733 PATCH_LEVEL
734 MICRO_VERSION
735 MINOR_VERSION
736 MAJOR_VERSION
737 VERSION
738 PACKAGE
739 package
740 stepmake
741 srcdir
742 ugh_ugh_autoconf250_builddir
743 target_alias
744 host_alias
745 build_alias
746 LIBS
747 ECHO_T
748 ECHO_N
749 ECHO_C
750 DEFS
751 mandir
752 localedir
753 libdir
754 psdir
755 pdfdir
756 dvidir
757 htmldir
758 infodir
759 docdir
760 oldincludedir
761 includedir
762 localstatedir
763 sharedstatedir
764 sysconfdir
765 datadir
766 datarootdir
767 libexecdir
768 sbindir
769 bindir
770 program_transform_name
771 prefix
772 exec_prefix
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_config
784 enable_documentation
785 with_ncsb_dir
786 enable_relocation
787 enable_rpath
788 enable_static_gxx
789 enable_debugging
790 enable_optimising
791 enable_profiling
792 enable_pipe
793 with_localedir
794 with_lang
795 with_python_include
796 with_python_lib
797 '
798       ac_precious_vars='build_alias
799 host_alias
800 target_alias
801 CC
802 CFLAGS
803 LDFLAGS
804 LIBS
805 CPPFLAGS
806 CXX
807 CXXFLAGS
808 CCC
809 CXXCPP
810 YACC
811 YFLAGS'
812
813
814 # Initialize some variables set by options.
815 ac_init_help=
816 ac_init_version=false
817 ac_unrecognized_opts=
818 ac_unrecognized_sep=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
821 cache_file=/dev/null
822 exec_prefix=NONE
823 no_create=
824 no_recursion=
825 prefix=NONE
826 program_prefix=NONE
827 program_suffix=NONE
828 program_transform_name=s,x,x,
829 silent=
830 site=
831 srcdir=
832 verbose=
833 x_includes=NONE
834 x_libraries=NONE
835
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE}'
853 infodir='${datarootdir}/info'
854 htmldir='${docdir}'
855 dvidir='${docdir}'
856 pdfdir='${docdir}'
857 psdir='${docdir}'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
861
862 ac_prev=
863 ac_dashdash=
864 for ac_option
865 do
866   # If the previous option needs an argument, assign it.
867   if test -n "$ac_prev"; then
868     eval $ac_prev=\$ac_option
869     ac_prev=
870     continue
871   fi
872
873   case $ac_option in
874   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875   *)    ac_optarg=yes ;;
876   esac
877
878   # Accept the important Cygnus configure options, so we can diagnose typos.
879
880   case $ac_dashdash$ac_option in
881   --)
882     ac_dashdash=yes ;;
883
884   -bindir | --bindir | --bindi | --bind | --bin | --bi)
885     ac_prev=bindir ;;
886   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887     bindir=$ac_optarg ;;
888
889   -build | --build | --buil | --bui | --bu)
890     ac_prev=build_alias ;;
891   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892     build_alias=$ac_optarg ;;
893
894   -cache-file | --cache-file | --cache-fil | --cache-fi \
895   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896     ac_prev=cache_file ;;
897   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899     cache_file=$ac_optarg ;;
900
901   --config-cache | -C)
902     cache_file=config.cache ;;
903
904   -datadir | --datadir | --datadi | --datad)
905     ac_prev=datadir ;;
906   -datadir=* | --datadir=* | --datadi=* | --datad=*)
907     datadir=$ac_optarg ;;
908
909   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910   | --dataroo | --dataro | --datar)
911     ac_prev=datarootdir ;;
912   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914     datarootdir=$ac_optarg ;;
915
916   -disable-* | --disable-*)
917     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918     # Reject names that are not valid shell variable names.
919     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
921    { (exit 1); exit 1; }; }
922     ac_useropt_orig=$ac_useropt
923     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924     case $ac_user_opts in
925       *"
926 "enable_$ac_useropt"
927 "*) ;;
928       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929          ac_unrecognized_sep=', ';;
930     esac
931     eval enable_$ac_useropt=no ;;
932
933   -docdir | --docdir | --docdi | --doc | --do)
934     ac_prev=docdir ;;
935   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936     docdir=$ac_optarg ;;
937
938   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939     ac_prev=dvidir ;;
940   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941     dvidir=$ac_optarg ;;
942
943   -enable-* | --enable-*)
944     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945     # Reject names that are not valid shell variable names.
946     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
948    { (exit 1); exit 1; }; }
949     ac_useropt_orig=$ac_useropt
950     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951     case $ac_user_opts in
952       *"
953 "enable_$ac_useropt"
954 "*) ;;
955       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956          ac_unrecognized_sep=', ';;
957     esac
958     eval enable_$ac_useropt=\$ac_optarg ;;
959
960   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962   | --exec | --exe | --ex)
963     ac_prev=exec_prefix ;;
964   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966   | --exec=* | --exe=* | --ex=*)
967     exec_prefix=$ac_optarg ;;
968
969   -gas | --gas | --ga | --g)
970     # Obsolete; use --with-gas.
971     with_gas=yes ;;
972
973   -help | --help | --hel | --he | -h)
974     ac_init_help=long ;;
975   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976     ac_init_help=recursive ;;
977   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978     ac_init_help=short ;;
979
980   -host | --host | --hos | --ho)
981     ac_prev=host_alias ;;
982   -host=* | --host=* | --hos=* | --ho=*)
983     host_alias=$ac_optarg ;;
984
985   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986     ac_prev=htmldir ;;
987   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988   | --ht=*)
989     htmldir=$ac_optarg ;;
990
991   -includedir | --includedir | --includedi | --included | --include \
992   | --includ | --inclu | --incl | --inc)
993     ac_prev=includedir ;;
994   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995   | --includ=* | --inclu=* | --incl=* | --inc=*)
996     includedir=$ac_optarg ;;
997
998   -infodir | --infodir | --infodi | --infod | --info | --inf)
999     ac_prev=infodir ;;
1000   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001     infodir=$ac_optarg ;;
1002
1003   -libdir | --libdir | --libdi | --libd)
1004     ac_prev=libdir ;;
1005   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006     libdir=$ac_optarg ;;
1007
1008   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009   | --libexe | --libex | --libe)
1010     ac_prev=libexecdir ;;
1011   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012   | --libexe=* | --libex=* | --libe=*)
1013     libexecdir=$ac_optarg ;;
1014
1015   -localedir | --localedir | --localedi | --localed | --locale)
1016     ac_prev=localedir ;;
1017   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018     localedir=$ac_optarg ;;
1019
1020   -localstatedir | --localstatedir | --localstatedi | --localstated \
1021   | --localstate | --localstat | --localsta | --localst | --locals)
1022     ac_prev=localstatedir ;;
1023   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025     localstatedir=$ac_optarg ;;
1026
1027   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028     ac_prev=mandir ;;
1029   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030     mandir=$ac_optarg ;;
1031
1032   -nfp | --nfp | --nf)
1033     # Obsolete; use --without-fp.
1034     with_fp=no ;;
1035
1036   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037   | --no-cr | --no-c | -n)
1038     no_create=yes ;;
1039
1040   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042     no_recursion=yes ;;
1043
1044   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046   | --oldin | --oldi | --old | --ol | --o)
1047     ac_prev=oldincludedir ;;
1048   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051     oldincludedir=$ac_optarg ;;
1052
1053   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054     ac_prev=prefix ;;
1055   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056     prefix=$ac_optarg ;;
1057
1058   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059   | --program-pre | --program-pr | --program-p)
1060     ac_prev=program_prefix ;;
1061   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063     program_prefix=$ac_optarg ;;
1064
1065   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066   | --program-suf | --program-su | --program-s)
1067     ac_prev=program_suffix ;;
1068   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070     program_suffix=$ac_optarg ;;
1071
1072   -program-transform-name | --program-transform-name \
1073   | --program-transform-nam | --program-transform-na \
1074   | --program-transform-n | --program-transform- \
1075   | --program-transform | --program-transfor \
1076   | --program-transfo | --program-transf \
1077   | --program-trans | --program-tran \
1078   | --progr-tra | --program-tr | --program-t)
1079     ac_prev=program_transform_name ;;
1080   -program-transform-name=* | --program-transform-name=* \
1081   | --program-transform-nam=* | --program-transform-na=* \
1082   | --program-transform-n=* | --program-transform-=* \
1083   | --program-transform=* | --program-transfor=* \
1084   | --program-transfo=* | --program-transf=* \
1085   | --program-trans=* | --program-tran=* \
1086   | --progr-tra=* | --program-tr=* | --program-t=*)
1087     program_transform_name=$ac_optarg ;;
1088
1089   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090     ac_prev=pdfdir ;;
1091   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092     pdfdir=$ac_optarg ;;
1093
1094   -psdir | --psdir | --psdi | --psd | --ps)
1095     ac_prev=psdir ;;
1096   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097     psdir=$ac_optarg ;;
1098
1099   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100   | -silent | --silent | --silen | --sile | --sil)
1101     silent=yes ;;
1102
1103   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104     ac_prev=sbindir ;;
1105   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106   | --sbi=* | --sb=*)
1107     sbindir=$ac_optarg ;;
1108
1109   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111   | --sharedst | --shareds | --shared | --share | --shar \
1112   | --sha | --sh)
1113     ac_prev=sharedstatedir ;;
1114   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117   | --sha=* | --sh=*)
1118     sharedstatedir=$ac_optarg ;;
1119
1120   -site | --site | --sit)
1121     ac_prev=site ;;
1122   -site=* | --site=* | --sit=*)
1123     site=$ac_optarg ;;
1124
1125   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126     ac_prev=srcdir ;;
1127   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128     srcdir=$ac_optarg ;;
1129
1130   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131   | --syscon | --sysco | --sysc | --sys | --sy)
1132     ac_prev=sysconfdir ;;
1133   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135     sysconfdir=$ac_optarg ;;
1136
1137   -target | --target | --targe | --targ | --tar | --ta | --t)
1138     ac_prev=target_alias ;;
1139   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140     target_alias=$ac_optarg ;;
1141
1142   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143     verbose=yes ;;
1144
1145   -version | --version | --versio | --versi | --vers | -V)
1146     ac_init_version=: ;;
1147
1148   -with-* | --with-*)
1149     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150     # Reject names that are not valid shell variable names.
1151     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1153    { (exit 1); exit 1; }; }
1154     ac_useropt_orig=$ac_useropt
1155     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156     case $ac_user_opts in
1157       *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161          ac_unrecognized_sep=', ';;
1162     esac
1163     eval with_$ac_useropt=\$ac_optarg ;;
1164
1165   -without-* | --without-*)
1166     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167     # Reject names that are not valid shell variable names.
1168     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1170    { (exit 1); exit 1; }; }
1171     ac_useropt_orig=$ac_useropt
1172     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173     case $ac_user_opts in
1174       *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178          ac_unrecognized_sep=', ';;
1179     esac
1180     eval with_$ac_useropt=no ;;
1181
1182   --x)
1183     # Obsolete; use --with-x.
1184     with_x=yes ;;
1185
1186   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187   | --x-incl | --x-inc | --x-in | --x-i)
1188     ac_prev=x_includes ;;
1189   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191     x_includes=$ac_optarg ;;
1192
1193   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195     ac_prev=x_libraries ;;
1196   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198     x_libraries=$ac_optarg ;;
1199
1200   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1201 Try \`$0 --help' for more information." >&2
1202    { (exit 1); exit 1; }; }
1203     ;;
1204
1205   *=*)
1206     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207     # Reject names that are not valid shell variable names.
1208     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1209       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1210    { (exit 1); exit 1; }; }
1211     eval $ac_envvar=\$ac_optarg
1212     export $ac_envvar ;;
1213
1214   *)
1215     # FIXME: should be removed in autoconf 3.0.
1216     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1220     ;;
1221
1222   esac
1223 done
1224
1225 if test -n "$ac_prev"; then
1226   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1228    { (exit 1); exit 1; }; }
1229 fi
1230
1231 if test -n "$ac_unrecognized_opts"; then
1232   case $enable_option_checking in
1233     no) ;;
1234     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1235    { (exit 1); exit 1; }; } ;;
1236     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237   esac
1238 fi
1239
1240 # Check all directory arguments for consistency.
1241 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242                 datadir sysconfdir sharedstatedir localstatedir includedir \
1243                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244                 libdir localedir mandir
1245 do
1246   eval ac_val=\$$ac_var
1247   # Remove trailing slashes.
1248   case $ac_val in
1249     */ )
1250       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251       eval $ac_var=\$ac_val;;
1252   esac
1253   # Be sure to have absolute directory names.
1254   case $ac_val in
1255     [\\/$]* | ?:[\\/]* )  continue;;
1256     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257   esac
1258   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1259    { (exit 1); exit 1; }; }
1260 done
1261
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1265 build=$build_alias
1266 host=$host_alias
1267 target=$target_alias
1268
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x; then
1271   if test "x$build_alias" = x; then
1272     cross_compiling=maybe
1273     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1274     If a cross compiler is detected then cross compile mode will be used." >&2
1275   elif test "x$build_alias" != "x$host_alias"; then
1276     cross_compiling=yes
1277   fi
1278 fi
1279
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283 test "$silent" = yes && exec 6>/dev/null
1284
1285
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1290    { (exit 1); exit 1; }; }
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1293    { (exit 1); exit 1; }; }
1294
1295
1296 # Find the source files, if location was not specified.
1297 if test -z "$srcdir"; then
1298   ac_srcdir_defaulted=yes
1299   # Try the directory containing this script, then the parent directory.
1300   ac_confdir=`$as_dirname -- "$as_myself" ||
1301 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1302          X"$as_myself" : 'X\(//\)[^/]' \| \
1303          X"$as_myself" : 'X\(//\)$' \| \
1304          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1305 $as_echo X"$as_myself" |
1306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307             s//\1/
1308             q
1309           }
1310           /^X\(\/\/\)[^/].*/{
1311             s//\1/
1312             q
1313           }
1314           /^X\(\/\/\)$/{
1315             s//\1/
1316             q
1317           }
1318           /^X\(\/\).*/{
1319             s//\1/
1320             q
1321           }
1322           s/.*/./; q'`
1323   srcdir=$ac_confdir
1324   if test ! -r "$srcdir/$ac_unique_file"; then
1325     srcdir=..
1326   fi
1327 else
1328   ac_srcdir_defaulted=no
1329 fi
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1332   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1333    { (exit 1); exit 1; }; }
1334 fi
1335 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1336 ac_abs_confdir=`(
1337         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1338    { (exit 1); exit 1; }; }
1339         pwd)`
1340 # When building in place, set srcdir=.
1341 if test "$ac_abs_confdir" = "$ac_pwd"; then
1342   srcdir=.
1343 fi
1344 # Remove unnecessary trailing slashes from srcdir.
1345 # Double slashes in file names in object file debugging info
1346 # mess up M-x gdb in Emacs.
1347 case $srcdir in
1348 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349 esac
1350 for ac_var in $ac_precious_vars; do
1351   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1352   eval ac_env_${ac_var}_value=\$${ac_var}
1353   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1354   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1355 done
1356
1357 #
1358 # Report the --help message.
1359 #
1360 if test "$ac_init_help" = "long"; then
1361   # Omit some internal or obsolete options to make the list less imposing.
1362   # This message is too long to be a string in the A/UX 3.1 sh.
1363   cat <<_ACEOF
1364 \`configure' configures this package to adapt to many kinds of systems.
1365
1366 Usage: $0 [OPTION]... [VAR=VALUE]...
1367
1368 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1369 VAR=VALUE.  See below for descriptions of some of the useful variables.
1370
1371 Defaults for the options are specified in brackets.
1372
1373 Configuration:
1374   -h, --help              display this help and exit
1375       --help=short        display options specific to this package
1376       --help=recursive    display the short help of all the included packages
1377   -V, --version           display version information and exit
1378   -q, --quiet, --silent   do not print \`checking...' messages
1379       --cache-file=FILE   cache test results in FILE [disabled]
1380   -C, --config-cache      alias for \`--cache-file=config.cache'
1381   -n, --no-create         do not create output files
1382       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1383
1384 Installation directories:
1385   --prefix=PREFIX         install architecture-independent files in PREFIX
1386                           [$ac_default_prefix]
1387   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1388                           [PREFIX]
1389
1390 By default, \`make install' will install all the files in
1391 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1392 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1393 for instance \`--prefix=\$HOME'.
1394
1395 For better control, use the options below.
1396
1397 Fine tuning of the installation directories:
1398   --bindir=DIR            user executables [EPREFIX/bin]
1399   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1400   --libexecdir=DIR        program executables [EPREFIX/libexec]
1401   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1402   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1403   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1404   --libdir=DIR            object code libraries [EPREFIX/lib]
1405   --includedir=DIR        C header files [PREFIX/include]
1406   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1407   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1408   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1409   --infodir=DIR           info documentation [DATAROOTDIR/info]
1410   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1411   --mandir=DIR            man documentation [DATAROOTDIR/man]
1412   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1413   --htmldir=DIR           html documentation [DOCDIR]
1414   --dvidir=DIR            dvi documentation [DOCDIR]
1415   --pdfdir=DIR            pdf documentation [DOCDIR]
1416   --psdir=DIR             ps documentation [DOCDIR]
1417 _ACEOF
1418
1419   cat <<\_ACEOF
1420
1421 System types:
1422   --build=BUILD     configure for building on BUILD [guessed]
1423   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1424 _ACEOF
1425 fi
1426
1427 if test -n "$ac_init_help"; then
1428
1429   cat <<\_ACEOF
1430
1431 Optional Features:
1432   --disable-option-checking  ignore unrecognized --enable/--with options
1433   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1434   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1435   --enable-config=CONF    put settings in config-CONF.make and config-CONF.h;
1436                           do `make conf=CONF' to get output in ./out-CONF
1437   --enable-documentation  build Documentation. Default: on
1438   --enable-relocation     compile with dynamic relocation. Default: off
1439   --enable-rpath          hardcode runtime library path. Default: off
1440   --enable-static-gxx     link libstdc++.a statically. Default: off
1441   --enable-debugging      compile with debugging info. Default: on
1442   --enable-optimising     compile with optimising. Default: on
1443   --enable-profiling      compile with gprof support. Default: off
1444   --enable-pipe           compile with -pipe. Default: on
1445
1446 Optional Packages:
1447   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1448   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1449   --with-ncsb-dir=DIR     location of Century Schoolbook fonts.
1450   --with-localedir=DIR    location of locales. Default: PREFIX/share/locale
1451   --with-lang=LANG        use LANG as language to emit messages
1452   --with-python-include=DIR
1453                           location of the python include dir
1454   --with-python-lib=NAME  name of the python lib
1455
1456 Some influential environment variables:
1457   CC          C compiler command
1458   CFLAGS      C compiler flags
1459   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1460               nonstandard directory <lib dir>
1461   LIBS        libraries to pass to the linker, e.g. -l<library>
1462   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1463               you have headers in a nonstandard directory <include dir>
1464   CXX         C++ compiler command
1465   CXXFLAGS    C++ compiler flags
1466   CXXCPP      C++ preprocessor
1467   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1468               the first program found out of: `bison -y', `byacc', `yacc'.
1469   YFLAGS      The list of arguments that will be passed by default to $YACC.
1470               This script will default YFLAGS to the empty string to avoid a
1471               default value of `-d' given by some make applications.
1472
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1475
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481   # If there are subdirs, report their specific --help.
1482   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483     test -d "$ac_dir" ||
1484       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485       continue
1486     ac_builddir=.
1487
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *)
1491   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492   # A ".." for each directory in $ac_dir_suffix.
1493   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494   case $ac_top_builddir_sub in
1495   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497   esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1503
1504 case $srcdir in
1505   .)  # We are building in place.
1506     ac_srcdir=.
1507     ac_top_srcdir=$ac_top_builddir_sub
1508     ac_abs_top_srcdir=$ac_pwd ;;
1509   [\\/]* | ?:[\\/]* )  # Absolute name.
1510     ac_srcdir=$srcdir$ac_dir_suffix;
1511     ac_top_srcdir=$srcdir
1512     ac_abs_top_srcdir=$srcdir ;;
1513   *) # Relative name.
1514     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515     ac_top_srcdir=$ac_top_build_prefix$srcdir
1516     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520     cd "$ac_dir" || { ac_status=$?; continue; }
1521     # Check for guested configure.
1522     if test -f "$ac_srcdir/configure.gnu"; then
1523       echo &&
1524       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525     elif test -f "$ac_srcdir/configure"; then
1526       echo &&
1527       $SHELL "$ac_srcdir/configure" --help=recursive
1528     else
1529       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530     fi || ac_status=$?
1531     cd "$ac_pwd" || { ac_status=$?; break; }
1532   done
1533 fi
1534
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537   cat <<\_ACEOF
1538 configure
1539 generated by GNU Autoconf 2.63
1540
1541 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1542 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1543 This configure script is free software; the Free Software Foundation
1544 gives unlimited permission to copy, distribute and modify it.
1545 _ACEOF
1546   exit
1547 fi
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1551
1552 It was created by $as_me, which was
1553 generated by GNU Autoconf 2.63.  Invocation command line was
1554
1555   $ $0 $@
1556
1557 _ACEOF
1558 exec 5>>config.log
1559 {
1560 cat <<_ASUNAME
1561 ## --------- ##
1562 ## Platform. ##
1563 ## --------- ##
1564
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1573
1574 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1575 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1578 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1579 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1580 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1581
1582 _ASUNAME
1583
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587   IFS=$as_save_IFS
1588   test -z "$as_dir" && as_dir=.
1589   $as_echo "PATH: $as_dir"
1590 done
1591 IFS=$as_save_IFS
1592
1593 } >&5
1594
1595 cat >&5 <<_ACEOF
1596
1597
1598 ## ----------- ##
1599 ## Core tests. ##
1600 ## ----------- ##
1601
1602 _ACEOF
1603
1604
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_configure_args=
1611 ac_configure_args0=
1612 ac_configure_args1=
1613 ac_must_keep_next=false
1614 for ac_pass in 1 2
1615 do
1616   for ac_arg
1617   do
1618     case $ac_arg in
1619     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621     | -silent | --silent | --silen | --sile | --sil)
1622       continue ;;
1623     *\'*)
1624       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625     esac
1626     case $ac_pass in
1627     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1628     2)
1629       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630       if test $ac_must_keep_next = true; then
1631         ac_must_keep_next=false # Got value, back to normal.
1632       else
1633         case $ac_arg in
1634           *=* | --config-cache | -C | -disable-* | --disable-* \
1635           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637           | -with-* | --with-* | -without-* | --without-* | --x)
1638             case "$ac_configure_args0 " in
1639               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640             esac
1641             ;;
1642           -* ) ac_must_keep_next=true ;;
1643         esac
1644       fi
1645       ac_configure_args="$ac_configure_args '$ac_arg'"
1646       ;;
1647     esac
1648   done
1649 done
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1652
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log.  We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659   # Save into config.log some information that might help in debugging.
1660   {
1661     echo
1662
1663     cat <<\_ASBOX
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1667 _ASBOX
1668     echo
1669     # The following way of writing the cache mishandles newlines in values,
1670 (
1671   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672     eval ac_val=\$$ac_var
1673     case $ac_val in #(
1674     *${as_nl}*)
1675       case $ac_var in #(
1676       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1677 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1678       esac
1679       case $ac_var in #(
1680       _ | IFS | as_nl) ;; #(
1681       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1682       *) $as_unset $ac_var ;;
1683       esac ;;
1684     esac
1685   done
1686   (set) 2>&1 |
1687     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688     *${as_nl}ac_space=\ *)
1689       sed -n \
1690         "s/'\''/'\''\\\\'\'''\''/g;
1691           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692       ;; #(
1693     *)
1694       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1695       ;;
1696     esac |
1697     sort
1698 )
1699     echo
1700
1701     cat <<\_ASBOX
1702 ## ----------------- ##
1703 ## Output variables. ##
1704 ## ----------------- ##
1705 _ASBOX
1706     echo
1707     for ac_var in $ac_subst_vars
1708     do
1709       eval ac_val=\$$ac_var
1710       case $ac_val in
1711       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712       esac
1713       $as_echo "$ac_var='\''$ac_val'\''"
1714     done | sort
1715     echo
1716
1717     if test -n "$ac_subst_files"; then
1718       cat <<\_ASBOX
1719 ## ------------------- ##
1720 ## File substitutions. ##
1721 ## ------------------- ##
1722 _ASBOX
1723       echo
1724       for ac_var in $ac_subst_files
1725       do
1726         eval ac_val=\$$ac_var
1727         case $ac_val in
1728         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729         esac
1730         $as_echo "$ac_var='\''$ac_val'\''"
1731       done | sort
1732       echo
1733     fi
1734
1735     if test -s confdefs.h; then
1736       cat <<\_ASBOX
1737 ## ----------- ##
1738 ## confdefs.h. ##
1739 ## ----------- ##
1740 _ASBOX
1741       echo
1742       cat confdefs.h
1743       echo
1744     fi
1745     test "$ac_signal" != 0 &&
1746       $as_echo "$as_me: caught signal $ac_signal"
1747     $as_echo "$as_me: exit $exit_status"
1748   } >&5
1749   rm -f core *.core core.conftest.* &&
1750     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1751     exit $exit_status
1752 ' 0
1753 for ac_signal in 1 2 13 15; do
1754   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1755 done
1756 ac_signal=0
1757
1758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1759 rm -f -r conftest* confdefs.h
1760
1761 # Predefined preprocessor variables.
1762
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_NAME "$PACKAGE_NAME"
1765 _ACEOF
1766
1767
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770 _ACEOF
1771
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1775 _ACEOF
1776
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_STRING "$PACKAGE_STRING"
1780 _ACEOF
1781
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785 _ACEOF
1786
1787
1788 # Let the site file select an alternate cache file if it wants to.
1789 # Prefer an explicitly selected file to automatically selected ones.
1790 ac_site_file1=NONE
1791 ac_site_file2=NONE
1792 if test -n "$CONFIG_SITE"; then
1793   ac_site_file1=$CONFIG_SITE
1794 elif test "x$prefix" != xNONE; then
1795   ac_site_file1=$prefix/share/config.site
1796   ac_site_file2=$prefix/etc/config.site
1797 else
1798   ac_site_file1=$ac_default_prefix/share/config.site
1799   ac_site_file2=$ac_default_prefix/etc/config.site
1800 fi
1801 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1802 do
1803   test "x$ac_site_file" = xNONE && continue
1804   if test -r "$ac_site_file"; then
1805     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1806 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1807     sed 's/^/| /' "$ac_site_file" >&5
1808     . "$ac_site_file"
1809   fi
1810 done
1811
1812 if test -r "$cache_file"; then
1813   # Some versions of bash will fail to source /dev/null (special
1814   # files actually), so we avoid doing that.
1815   if test -f "$cache_file"; then
1816     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1817 $as_echo "$as_me: loading cache $cache_file" >&6;}
1818     case $cache_file in
1819       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1820       *)                      . "./$cache_file";;
1821     esac
1822   fi
1823 else
1824   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1825 $as_echo "$as_me: creating cache $cache_file" >&6;}
1826   >$cache_file
1827 fi
1828
1829 # Check that the precious variables saved in the cache have kept the same
1830 # value.
1831 ac_cache_corrupted=false
1832 for ac_var in $ac_precious_vars; do
1833   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1834   eval ac_new_set=\$ac_env_${ac_var}_set
1835   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1836   eval ac_new_val=\$ac_env_${ac_var}_value
1837   case $ac_old_set,$ac_new_set in
1838     set,)
1839       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1840 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1841       ac_cache_corrupted=: ;;
1842     ,set)
1843       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1844 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1845       ac_cache_corrupted=: ;;
1846     ,);;
1847     *)
1848       if test "x$ac_old_val" != "x$ac_new_val"; then
1849         # differences in whitespace do not lead to failure.
1850         ac_old_val_w=`echo x $ac_old_val`
1851         ac_new_val_w=`echo x $ac_new_val`
1852         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1853           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1854 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1855           ac_cache_corrupted=:
1856         else
1857           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1858 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1859           eval $ac_var=\$ac_old_val
1860         fi
1861         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1862 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1863         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1864 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1865       fi;;
1866   esac
1867   # Pass precious variables to config.status.
1868   if test "$ac_new_set" = set; then
1869     case $ac_new_val in
1870     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1871     *) ac_arg=$ac_var=$ac_new_val ;;
1872     esac
1873     case " $ac_configure_args " in
1874       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1875       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1876     esac
1877   fi
1878 done
1879 if $ac_cache_corrupted; then
1880   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1882   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1883 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1884   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1885 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1886    { (exit 1); exit 1; }; }
1887 fi
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905 ac_ext=c
1906 ac_cpp='$CPP $CPPFLAGS'
1907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1910
1911
1912
1913 # Bootstrap StepMake configure
1914 # For user package:
1915 ac_aux_dir=
1916 for ac_dir in stepmake/bin "$srcdir"/stepmake/bin; do
1917   if test -f "$ac_dir/install-sh"; then
1918     ac_aux_dir=$ac_dir
1919     ac_install_sh="$ac_aux_dir/install-sh -c"
1920     break
1921   elif test -f "$ac_dir/install.sh"; then
1922     ac_aux_dir=$ac_dir
1923     ac_install_sh="$ac_aux_dir/install.sh -c"
1924     break
1925   elif test -f "$ac_dir/shtool"; then
1926     ac_aux_dir=$ac_dir
1927     ac_install_sh="$ac_aux_dir/shtool install -c"
1928     break
1929   fi
1930 done
1931 if test -z "$ac_aux_dir"; then
1932   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in stepmake/bin \"$srcdir\"/stepmake/bin" >&5
1933 $as_echo "$as_me: error: cannot find install-sh or install.sh in stepmake/bin \"$srcdir\"/stepmake/bin" >&2;}
1934    { (exit 1); exit 1; }; }
1935 fi
1936
1937 # These three variables are undocumented and unsupported,
1938 # and are intended to be withdrawn in a future Autoconf release.
1939 # They can cause serious problems if a builder's source tree is in a directory
1940 # whose full name contains unusual characters.
1941 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1942 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1943 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1944
1945
1946
1947 # For stepmake package:
1948 # AC_CONFIG_AUX_DIR(bin)
1949
1950
1951 # Make sure we can run config.sub.
1952 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1953   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1954 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1955    { (exit 1); exit 1; }; }
1956
1957 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1958 $as_echo_n "checking build system type... " >&6; }
1959 if test "${ac_cv_build+set}" = set; then
1960   $as_echo_n "(cached) " >&6
1961 else
1962   ac_build_alias=$build_alias
1963 test "x$ac_build_alias" = x &&
1964   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1965 test "x$ac_build_alias" = x &&
1966   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1967 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1968    { (exit 1); exit 1; }; }
1969 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1970   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1971 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1972    { (exit 1); exit 1; }; }
1973
1974 fi
1975 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1976 $as_echo "$ac_cv_build" >&6; }
1977 case $ac_cv_build in
1978 *-*-*) ;;
1979 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1980 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1981    { (exit 1); exit 1; }; };;
1982 esac
1983 build=$ac_cv_build
1984 ac_save_IFS=$IFS; IFS='-'
1985 set x $ac_cv_build
1986 shift
1987 build_cpu=$1
1988 build_vendor=$2
1989 shift; shift
1990 # Remember, the first character of IFS is used to create $*,
1991 # except with old shells:
1992 build_os=$*
1993 IFS=$ac_save_IFS
1994 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1995
1996
1997
1998
1999     . $srcdir/VERSION
2000     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
2001     MICRO_VERSION=$PATCH_LEVEL
2002     TOPLEVEL_VERSION=$FULL_VERSION
2003     if test x$MY_PATCH_LEVEL != x; then
2004         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
2005     fi
2006     VERSION=$FULL_VERSION
2007     export MAJOR_VERSION MINOR_VERSION PATCH_LEVEL
2008     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
2009     #dnl
2010     PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
2011     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
2012     #dnl
2013
2014     # No versioning on directory names of sub-packages
2015     # urg, urg
2016     stepmake=${datadir}/stepmake
2017     presome=${prefix}
2018     if test "$prefix" = "NONE"; then
2019             presome=${ac_default_prefix}
2020     fi
2021     stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
2022
2023     # urg, how is this supposed to work?
2024     if test "$program_prefix" = "NONE"; then
2025           program_prefix=
2026     fi
2027     if test "$program_suffix" = "NONE"; then
2028           program_suffix=
2029     fi
2030
2031     { $as_echo "$as_me:$LINENO: checking Package" >&5
2032 $as_echo_n "checking Package... " >&6; }
2033     if test "$PACKAGE" = "STEPMAKE"; then
2034         { $as_echo "$as_me:$LINENO: result: Stepmake package!" >&5
2035 $as_echo "Stepmake package!" >&6; }
2036
2037         { $as_echo "$as_me:$LINENO: checking builddir" >&5
2038 $as_echo_n "checking builddir... " >&6; }
2039
2040         ugh_ugh_autoconf250_builddir="`pwd`"
2041
2042         if test "$srcdir" = "."; then
2043             srcdir_build=yes
2044         else
2045             srcdir_build=no
2046             package_builddir="`dirname $ugh_ugh_autoconf250_builddir`"
2047             package_srcdir="`dirname  $srcdir`"
2048         fi
2049         { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2050 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2051
2052         (cd stepmake 2>/dev/null || mkdir stepmake)
2053         (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
2054         stepmake=stepmake
2055     else
2056         { $as_echo "$as_me:$LINENO: result: $PACKAGE" >&5
2057 $as_echo "$PACKAGE" >&6; }
2058
2059         { $as_echo "$as_me:$LINENO: checking builddir" >&5
2060 $as_echo_n "checking builddir... " >&6; }
2061         ugh_ugh_autoconf250_builddir="`pwd`"
2062
2063         here_dir=$(cd . && pwd)
2064         full_src_dir=$(cd $srcdir && pwd)
2065
2066         if test "$full_src_dir" = "$here_dir"; then
2067             srcdir_build=yes
2068         else
2069             srcdir_build=no
2070         fi
2071         { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2072 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2073
2074         { $as_echo "$as_me:$LINENO: checking for stepmake" >&5
2075 $as_echo_n "checking for stepmake... " >&6; }
2076         # Check for installed stepmake
2077         if test -d $stepmake; then
2078             { $as_echo "$as_me:$LINENO: result: $stepmake" >&5
2079 $as_echo "$stepmake" >&6; }
2080         else
2081             stepmake="`cd $srcdir/stepmake; pwd`"
2082             { $as_echo "$as_me:$LINENO: result: $srcdir/stepmake  ($datadir/stepmake not found)" >&5
2083 $as_echo "$srcdir/stepmake  ($datadir/stepmake not found)" >&6; }
2084         fi
2085     fi
2086
2087
2088
2089     # Use absolute directory for non-srcdir builds, so that build
2090     # dir can be moved.
2091     if test "$srcdir_build" = "no" ;  then
2092         srcdir="`cd $srcdir; pwd`"
2093     fi
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105     # stepmake nonstandard names
2106
2107
2108
2109     # We don't need the upper case variant,
2110     # so stick to macros are uppercase convention.
2111     # AC_DEFINE_UNQUOTED(package, ["${package}"])
2112     # AC_DEFINE_UNQUOTED(PACKAGE, ["${PACKAGE}"])
2113     cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE "${package}"
2115 _ACEOF
2116
2117     cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_NAME "${PACKAGE_NAME}"
2119 _ACEOF
2120
2121     cat >>confdefs.h <<_ACEOF
2122 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2123 _ACEOF
2124
2125
2126     if test -z "$package_depth"; then
2127         package_depth="."
2128     else
2129         package_depth="../$package_depth"
2130     fi
2131     export package_depth
2132
2133
2134     AUTOGENERATE="This file was automatically generated by configure"
2135
2136
2137     CONFIGSUFFIX=
2138     # Check whether --enable-config was given.
2139 if test "${enable_config+set}" = set; then
2140   enableval=$enable_config; CONFIGURATION=$enableval
2141 fi
2142
2143
2144     ##'`#
2145
2146     test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
2147     CONFIGFILE=config$CONFIGSUFFIX
2148
2149
2150     { $as_echo "$as_me:$LINENO: checking host system type" >&5
2151 $as_echo_n "checking host system type... " >&6; }
2152 if test "${ac_cv_host+set}" = set; then
2153   $as_echo_n "(cached) " >&6
2154 else
2155   if test "x$host_alias" = x; then
2156   ac_cv_host=$ac_cv_build
2157 else
2158   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2159     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2160 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2161    { (exit 1); exit 1; }; }
2162 fi
2163
2164 fi
2165 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2166 $as_echo "$ac_cv_host" >&6; }
2167 case $ac_cv_host in
2168 *-*-*) ;;
2169 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2170 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2171    { (exit 1); exit 1; }; };;
2172 esac
2173 host=$ac_cv_host
2174 ac_save_IFS=$IFS; IFS='-'
2175 set x $ac_cv_host
2176 shift
2177 host_cpu=$1
2178 host_vendor=$2
2179 shift; shift
2180 # Remember, the first character of IFS is used to create $*,
2181 # except with old shells:
2182 host_os=$*
2183 IFS=$ac_save_IFS
2184 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2185
2186
2187
2188     for ac_prog in gmake make
2189 do
2190   # Extract the first word of "$ac_prog", so it can be a program name with args.
2191 set dummy $ac_prog; ac_word=$2
2192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 $as_echo_n "checking for $ac_word... " >&6; }
2194 if test "${ac_cv_prog_MAKE+set}" = set; then
2195   $as_echo_n "(cached) " >&6
2196 else
2197   if test -n "$MAKE"; then
2198   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2199 else
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 for as_dir in $PATH
2202 do
2203   IFS=$as_save_IFS
2204   test -z "$as_dir" && as_dir=.
2205   for ac_exec_ext in '' $ac_executable_extensions; do
2206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2207     ac_cv_prog_MAKE="$ac_prog"
2208     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209     break 2
2210   fi
2211 done
2212 done
2213 IFS=$as_save_IFS
2214
2215 fi
2216 fi
2217 MAKE=$ac_cv_prog_MAKE
2218 if test -n "$MAKE"; then
2219   { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
2220 $as_echo "$MAKE" >&6; }
2221 else
2222   { $as_echo "$as_me:$LINENO: result: no" >&5
2223 $as_echo "no" >&6; }
2224 fi
2225
2226
2227   test -n "$MAKE" && break
2228 done
2229 test -n "$MAKE" || MAKE="no"
2230
2231
2232
2233     r="`eval echo '$'"MAKE"`"
2234     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
2235         true
2236     else
2237         ##STEPMAKE_WARN(cannot find . )
2238         false
2239     fi
2240
2241     if test $? -ne 0; then
2242
2243     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
2244
2245         if test "REQUIRED" = "REQUIRED"; then
2246             command="echo ERROR: gmake make not found"
2247             # abort configure process here?
2248         else
2249             command="- echo gmake make not found"
2250         fi
2251         eval "MAKE"='$command'
2252         false
2253     else
2254         true
2255     fi
2256
2257     if test $? -eq 0 -a -n ""; then
2258
2259     r="`eval echo '$'"MAKE"`"
2260     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2261 $as_echo_n "checking $r version... " >&6; }
2262     exe=`
2263     ## which doesn't work in ash, if /usr/bin/which isn't installed
2264     ## type -p doesn't work in ash
2265     ## command -v doesn't work in zsh
2266     ## command -v "$r" 2>&1
2267     ## this test should work in ash, bash, pdksh (ksh), zsh
2268     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2269 `
2270     if test -n ""; then
2271         ver=""
2272     else
2273         ver=`
2274     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2275     ##
2276     ## ARG.
2277     ## Workaround for broken Debian gcc version string:
2278     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2279     ##
2280     ## -V: Workaround for python
2281
2282     #dnl
2283
2284     ## Assume and hunt for dotted version multiplet.
2285     ## use eval trickery, because we cannot use multi-level $() instead of ``
2286     ## for compatibility reasons.
2287
2288     ## grab the first version number in  --version output.
2289     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2290                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2291                 head -n 1 |
2292                 tr ' ' '\n' |
2293                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2294                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2295                 head -n 1\`\"
2296
2297     if test -z "$_ver"; then
2298         ## If empty, try date [fontforge]
2299         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2300             | head -n 1 \
2301             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2302     fi
2303     echo "$_ver"
2304     #dnl
2305 `
2306     fi
2307     num=`
2308     echo "$ver" | awk -F. '
2309     {
2310       if ($3) {three = $3}
2311       else {three = 0}
2312     }
2313     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2314 `
2315     req=`
2316     echo "" | awk -F. '
2317     {
2318       if ($3) {three = $3}
2319       else {three = 0}
2320     }
2321     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2322 `
2323     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2324 $as_echo "$ver" >&6; }
2325     if test "$num" -lt "$req"; then
2326
2327     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2328
2329     fi
2330     vervar="`echo MAKE | tr 'a-z' 'A-Z'`_VERSION"
2331     eval `echo $vervar=$num`
2332 ##    AC_SUBST(`eval echo $vervar`)
2333
2334     fi
2335
2336
2337     for ac_prog in find
2338 do
2339   # Extract the first word of "$ac_prog", so it can be a program name with args.
2340 set dummy $ac_prog; ac_word=$2
2341 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 $as_echo_n "checking for $ac_word... " >&6; }
2343 if test "${ac_cv_prog_FIND+set}" = set; then
2344   $as_echo_n "(cached) " >&6
2345 else
2346   if test -n "$FIND"; then
2347   ac_cv_prog_FIND="$FIND" # Let the user override the test.
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2351 do
2352   IFS=$as_save_IFS
2353   test -z "$as_dir" && as_dir=.
2354   for ac_exec_ext in '' $ac_executable_extensions; do
2355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356     ac_cv_prog_FIND="$ac_prog"
2357     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358     break 2
2359   fi
2360 done
2361 done
2362 IFS=$as_save_IFS
2363
2364 fi
2365 fi
2366 FIND=$ac_cv_prog_FIND
2367 if test -n "$FIND"; then
2368   { $as_echo "$as_me:$LINENO: result: $FIND" >&5
2369 $as_echo "$FIND" >&6; }
2370 else
2371   { $as_echo "$as_me:$LINENO: result: no" >&5
2372 $as_echo "no" >&6; }
2373 fi
2374
2375
2376   test -n "$FIND" && break
2377 done
2378 test -n "$FIND" || FIND="no"
2379
2380
2381
2382     r="`eval echo '$'"FIND"`"
2383     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
2384         true
2385     else
2386         ##STEPMAKE_WARN(cannot find . )
2387         false
2388     fi
2389
2390     if test $? -ne 0; then
2391
2392     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
2393
2394         if test "REQUIRED" = "REQUIRED"; then
2395             command="echo ERROR: find not found"
2396             # abort configure process here?
2397         else
2398             command="- echo find not found"
2399         fi
2400         eval "FIND"='$command'
2401         false
2402     else
2403         true
2404     fi
2405
2406     if test $? -eq 0 -a -n ""; then
2407
2408     r="`eval echo '$'"FIND"`"
2409     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2410 $as_echo_n "checking $r version... " >&6; }
2411     exe=`
2412     ## which doesn't work in ash, if /usr/bin/which isn't installed
2413     ## type -p doesn't work in ash
2414     ## command -v doesn't work in zsh
2415     ## command -v "$r" 2>&1
2416     ## this test should work in ash, bash, pdksh (ksh), zsh
2417     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2418 `
2419     if test -n ""; then
2420         ver=""
2421     else
2422         ver=`
2423     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2424     ##
2425     ## ARG.
2426     ## Workaround for broken Debian gcc version string:
2427     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2428     ##
2429     ## -V: Workaround for python
2430
2431     #dnl
2432
2433     ## Assume and hunt for dotted version multiplet.
2434     ## use eval trickery, because we cannot use multi-level $() instead of ``
2435     ## for compatibility reasons.
2436
2437     ## grab the first version number in  --version output.
2438     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2439                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2440                 head -n 1 |
2441                 tr ' ' '\n' |
2442                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2443                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2444                 head -n 1\`\"
2445
2446     if test -z "$_ver"; then
2447         ## If empty, try date [fontforge]
2448         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2449             | head -n 1 \
2450             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2451     fi
2452     echo "$_ver"
2453     #dnl
2454 `
2455     fi
2456     num=`
2457     echo "$ver" | awk -F. '
2458     {
2459       if ($3) {three = $3}
2460       else {three = 0}
2461     }
2462     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2463 `
2464     req=`
2465     echo "" | awk -F. '
2466     {
2467       if ($3) {three = $3}
2468       else {three = 0}
2469     }
2470     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2471 `
2472     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2473 $as_echo "$ver" >&6; }
2474     if test "$num" -lt "$req"; then
2475
2476     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2477
2478     fi
2479     vervar="`echo FIND | tr 'a-z' 'A-Z'`_VERSION"
2480     eval `echo $vervar=$num`
2481 ##    AC_SUBST(`eval echo $vervar`)
2482
2483     fi
2484
2485
2486
2487     for ac_prog in tar
2488 do
2489   # Extract the first word of "$ac_prog", so it can be a program name with args.
2490 set dummy $ac_prog; ac_word=$2
2491 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 $as_echo_n "checking for $ac_word... " >&6; }
2493 if test "${ac_cv_prog_TAR+set}" = set; then
2494   $as_echo_n "(cached) " >&6
2495 else
2496   if test -n "$TAR"; then
2497   ac_cv_prog_TAR="$TAR" # Let the user override the test.
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2501 do
2502   IFS=$as_save_IFS
2503   test -z "$as_dir" && as_dir=.
2504   for ac_exec_ext in '' $ac_executable_extensions; do
2505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506     ac_cv_prog_TAR="$ac_prog"
2507     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508     break 2
2509   fi
2510 done
2511 done
2512 IFS=$as_save_IFS
2513
2514 fi
2515 fi
2516 TAR=$ac_cv_prog_TAR
2517 if test -n "$TAR"; then
2518   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
2519 $as_echo "$TAR" >&6; }
2520 else
2521   { $as_echo "$as_me:$LINENO: result: no" >&5
2522 $as_echo "no" >&6; }
2523 fi
2524
2525
2526   test -n "$TAR" && break
2527 done
2528 test -n "$TAR" || TAR="no"
2529
2530
2531
2532     r="`eval echo '$'"TAR"`"
2533     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
2534         true
2535     else
2536         ##STEPMAKE_WARN(cannot find . )
2537         false
2538     fi
2539
2540     if test $? -ne 0; then
2541
2542     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
2543
2544         if test "REQUIRED" = "REQUIRED"; then
2545             command="echo ERROR: tar not found"
2546             # abort configure process here?
2547         else
2548             command="- echo tar not found"
2549         fi
2550         eval "TAR"='$command'
2551         false
2552     else
2553         true
2554     fi
2555
2556     if test $? -eq 0 -a -n ""; then
2557
2558     r="`eval echo '$'"TAR"`"
2559     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2560 $as_echo_n "checking $r version... " >&6; }
2561     exe=`
2562     ## which doesn't work in ash, if /usr/bin/which isn't installed
2563     ## type -p doesn't work in ash
2564     ## command -v doesn't work in zsh
2565     ## command -v "$r" 2>&1
2566     ## this test should work in ash, bash, pdksh (ksh), zsh
2567     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2568 `
2569     if test -n ""; then
2570         ver=""
2571     else
2572         ver=`
2573     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2574     ##
2575     ## ARG.
2576     ## Workaround for broken Debian gcc version string:
2577     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2578     ##
2579     ## -V: Workaround for python
2580
2581     #dnl
2582
2583     ## Assume and hunt for dotted version multiplet.
2584     ## use eval trickery, because we cannot use multi-level $() instead of ``
2585     ## for compatibility reasons.
2586
2587     ## grab the first version number in  --version output.
2588     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2589                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2590                 head -n 1 |
2591                 tr ' ' '\n' |
2592                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2593                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2594                 head -n 1\`\"
2595
2596     if test -z "$_ver"; then
2597         ## If empty, try date [fontforge]
2598         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2599             | head -n 1 \
2600             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2601     fi
2602     echo "$_ver"
2603     #dnl
2604 `
2605     fi
2606     num=`
2607     echo "$ver" | awk -F. '
2608     {
2609       if ($3) {three = $3}
2610       else {three = 0}
2611     }
2612     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2613 `
2614     req=`
2615     echo "" | awk -F. '
2616     {
2617       if ($3) {three = $3}
2618       else {three = 0}
2619     }
2620     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2621 `
2622     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2623 $as_echo "$ver" >&6; }
2624     if test "$num" -lt "$req"; then
2625
2626     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2627
2628     fi
2629     vervar="`echo TAR | tr 'a-z' 'A-Z'`_VERSION"
2630     eval `echo $vervar=$num`
2631 ##    AC_SUBST(`eval echo $vervar`)
2632
2633     fi
2634
2635
2636     if test "$(echo 2)" != "2" ||
2637         test "x`uname`" = "xHP-UX"; then
2638         # Extract the first word of "ksh", so it can be a program name with args.
2639 set dummy ksh; ac_word=$2
2640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_path_KSH+set}" = set; then
2643   $as_echo_n "(cached) " >&6
2644 else
2645   case $KSH in
2646   [\\/]* | ?:[\\/]*)
2647   ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2648   ;;
2649   *)
2650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655   for ac_exec_ext in '' $ac_executable_extensions; do
2656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657     ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
2658     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659     break 2
2660   fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665   test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="/bin/ksh"
2666   ;;
2667 esac
2668 fi
2669 KSH=$ac_cv_path_KSH
2670 if test -n "$KSH"; then
2671   { $as_echo "$as_me:$LINENO: result: $KSH" >&5
2672 $as_echo "$KSH" >&6; }
2673 else
2674   { $as_echo "$as_me:$LINENO: result: no" >&5
2675 $as_echo "no" >&6; }
2676 fi
2677
2678
2679         # Extract the first word of "bash", so it can be a program name with args.
2680 set dummy bash; ac_word=$2
2681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if test "${ac_cv_path_BASH+set}" = set; then
2684   $as_echo_n "(cached) " >&6
2685 else
2686   case $BASH in
2687   [\\/]* | ?:[\\/]*)
2688   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2689   ;;
2690   *)
2691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694   IFS=$as_save_IFS
2695   test -z "$as_dir" && as_dir=.
2696   for ac_exec_ext in '' $ac_executable_extensions; do
2697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2699     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700     break 2
2701   fi
2702 done
2703 done
2704 IFS=$as_save_IFS
2705
2706   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$KSH"
2707   ;;
2708 esac
2709 fi
2710 BASH=$ac_cv_path_BASH
2711 if test -n "$BASH"; then
2712   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2713 $as_echo "$BASH" >&6; }
2714 else
2715   { $as_echo "$as_me:$LINENO: result: no" >&5
2716 $as_echo "no" >&6; }
2717 fi
2718
2719
2720
2721     { $as_echo "$as_me:$LINENO: WARNING: avoiding buggy /bin/sh" >&5
2722 $as_echo "$as_me: WARNING: avoiding buggy /bin/sh" >&2;}
2723     warn_b=yes
2724
2725         # Extract the first word of "bash", so it can be a program name with args.
2726 set dummy bash; ac_word=$2
2727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if test "${ac_cv_path_SHELL+set}" = set; then
2730   $as_echo_n "(cached) " >&6
2731 else
2732   case $SHELL in
2733   [\\/]* | ?:[\\/]*)
2734   ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2735   ;;
2736   *)
2737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740   IFS=$as_save_IFS
2741   test -z "$as_dir" && as_dir=.
2742   for ac_exec_ext in '' $ac_executable_extensions; do
2743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744     ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2745     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2746     break 2
2747   fi
2748 done
2749 done
2750 IFS=$as_save_IFS
2751
2752   test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="$KSH"
2753   ;;
2754 esac
2755 fi
2756 SHELL=$ac_cv_path_SHELL
2757 if test -n "$SHELL"; then
2758   { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
2759 $as_echo "$SHELL" >&6; }
2760 else
2761   { $as_echo "$as_me:$LINENO: result: no" >&5
2762 $as_echo "no" >&6; }
2763 fi
2764
2765
2766     else
2767         SHELL=/bin/sh
2768         # Extract the first word of "bash", so it can be a program name with args.
2769 set dummy bash; ac_word=$2
2770 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if test "${ac_cv_path_BASH+set}" = set; then
2773   $as_echo_n "(cached) " >&6
2774 else
2775   case $BASH in
2776   [\\/]* | ?:[\\/]*)
2777   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2778   ;;
2779   *)
2780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783   IFS=$as_save_IFS
2784   test -z "$as_dir" && as_dir=.
2785   for ac_exec_ext in '' $ac_executable_extensions; do
2786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2788     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789     break 2
2790   fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$SHELL"
2796   ;;
2797 esac
2798 fi
2799 BASH=$ac_cv_path_BASH
2800 if test -n "$BASH"; then
2801   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2802 $as_echo "$BASH" >&6; }
2803 else
2804   { $as_echo "$as_me:$LINENO: result: no" >&5
2805 $as_echo "no" >&6; }
2806 fi
2807
2808
2809     fi
2810
2811
2812
2813     unset pv
2814     { $as_echo "$as_me:$LINENO: checking for python" >&5
2815 $as_echo_n "checking for python... " >&6; }
2816     for python in $PYTHON python python2 python2.4 python2.3 python2.2 python2.1 python2.0; do
2817         { $as_echo "$as_me:$LINENO: result: $python" >&5
2818 $as_echo "$python" >&6; }
2819         if ! $python -V > /dev/null 2>&1 ; then
2820             #AC_MSG_WARN([cannot execute $python])
2821             PYTHON='echo no python'
2822         else
2823             unset pv
2824
2825     r="`eval echo '$'"python"`"
2826     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2827 $as_echo_n "checking $r version... " >&6; }
2828     exe=`
2829     ## which doesn't work in ash, if /usr/bin/which isn't installed
2830     ## type -p doesn't work in ash
2831     ## command -v doesn't work in zsh
2832     ## command -v "$r" 2>&1
2833     ## this test should work in ash, bash, pdksh (ksh), zsh
2834     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2835 `
2836     if test -n ""; then
2837         ver=""
2838     else
2839         ver=`
2840     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2841     ##
2842     ## ARG.
2843     ## Workaround for broken Debian gcc version string:
2844     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2845     ##
2846     ## -V: Workaround for python
2847
2848     #dnl
2849
2850     ## Assume and hunt for dotted version multiplet.
2851     ## use eval trickery, because we cannot use multi-level $() instead of ``
2852     ## for compatibility reasons.
2853
2854     ## grab the first version number in  --version output.
2855     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2856                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2857                 head -n 1 |
2858                 tr ' ' '\n' |
2859                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2860                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2861                 head -n 1\`\"
2862
2863     if test -z "$_ver"; then
2864         ## If empty, try date [fontforge]
2865         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2866             | head -n 1 \
2867             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2868     fi
2869     echo "$_ver"
2870     #dnl
2871 `
2872     fi
2873     num=`
2874     echo "$ver" | awk -F. '
2875     {
2876       if ($3) {three = $3}
2877       else {three = 0}
2878     }
2879     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2880 `
2881     req=`
2882     echo "1.5" | awk -F. '
2883     {
2884       if ($3) {three = $3}
2885       else {three = 0}
2886     }
2887     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2888 `
2889     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2890 $as_echo "$ver" >&6; }
2891     if test "$num" -lt "$req"; then
2892
2893     eval "pv"=\"`eval echo \"'$'pv\" \""$r >= 1.5 (installed: $ver)"\"`\"
2894
2895     fi
2896     vervar="`echo python | tr 'a-z' 'A-Z'`_VERSION"
2897     eval `echo $vervar=$num`
2898 ##    AC_SUBST(`eval echo $vervar`)
2899
2900             if test -z "$pv"; then
2901                 PYTHON=$python
2902                 break
2903             fi
2904         fi
2905     done
2906     if test -n "$pv"; then
2907
2908     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$pv\"`\"
2909
2910     fi
2911     # clear cached value since arg 2 might point us to a new binary
2912     unset ac_cv_path_PYTHON
2913
2914     # Extract the first word of "$PYTHON", so it can be a program name with args.
2915 set dummy $PYTHON; ac_word=$2
2916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if test "${ac_cv_path_PYTHON+set}" = set; then
2919   $as_echo_n "(cached) " >&6
2920 else
2921   case $PYTHON in
2922   [\\/]* | ?:[\\/]*)
2923   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2924   ;;
2925   *)
2926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929   IFS=$as_save_IFS
2930   test -z "$as_dir" && as_dir=.
2931   for ac_exec_ext in '' $ac_executable_extensions; do
2932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2934     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935     break 2
2936   fi
2937 done
2938 done
2939 IFS=$as_save_IFS
2940
2941   ;;
2942 esac
2943 fi
2944 PYTHON=$ac_cv_path_PYTHON
2945 if test -n "$PYTHON"; then
2946   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
2947 $as_echo "$PYTHON" >&6; }
2948 else
2949   { $as_echo "$as_me:$LINENO: result: no" >&5
2950 $as_echo "no" >&6; }
2951 fi
2952
2953
2954
2955
2956
2957     if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
2958         $MAKE -v 2> /dev/null | grep GNU > /dev/null
2959         if test "$?" = 1; then
2960             warn='make (Please install *GNU* make)'
2961             # STEPMAKE_WARN($warn)
2962
2963     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
2964
2965         fi
2966     fi
2967
2968     ROOTSEP=':'
2969     DIRSEP='/'
2970     PATHSEP=':'
2971     LN=ln
2972     LN_S='ln -s'
2973     ZIP="zip -r -9"
2974
2975
2976
2977
2978
2979
2980     cat >>confdefs.h <<_ACEOF
2981 #define DIRSEP '${DIRSEP}'
2982 _ACEOF
2983
2984     cat >>confdefs.h <<_ACEOF
2985 #define PATHSEP '${PATHSEP}'
2986 _ACEOF
2987
2988
2989
2990
2991
2992
2993     if test "$datadir" = "\${prefix}/share"; then
2994             datadir='${prefix}/share'
2995     fi
2996     presome=${prefix}
2997     if test "$prefix" = "NONE"; then
2998         presome=${ac_default_prefix}
2999     fi
3000
3001     build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
3002
3003     DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${prefix}/share!"`
3004     DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
3005     BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
3006
3007
3008
3009
3010     cat >>confdefs.h <<_ACEOF
3011 #define DATADIR "${DATADIR}"
3012 _ACEOF
3013
3014     cat >>confdefs.h <<_ACEOF
3015 #define BUILD_PACKAGE_DATADIR "${BUILD_PACKAGE_DATADIR}"
3016 _ACEOF
3017
3018
3019
3020
3021     if test "$libdir" = "\${exec_prefix}/lib"; then
3022         libdir='${exec_prefix}/lib'
3023     fi
3024     presome=$exec_prefix
3025     build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
3026
3027     LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3028     BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3029
3030
3031
3032     cat >>confdefs.h <<_ACEOF
3033 #define LIBDIR "${LIBDIR}"
3034 _ACEOF
3035
3036     cat >>confdefs.h <<_ACEOF
3037 #define BUILD_PACKAGE_LIBDIR "${BUILD_PACKAGE_LIBDIR}"
3038 _ACEOF
3039
3040
3041
3042
3043 # List a file that identifies your package.
3044
3045
3046 # Move to aclocal.m4?
3047 ac_config_headers="$ac_config_headers $CONFIGFILE.hh:config.hh.in"
3048
3049
3050 # Uncomment the configuration options your package needs.
3051
3052 DOCUMENTATION=yes
3053 # Check whether --enable-documentation was given.
3054 if test "${enable_documentation+set}" = set; then
3055   enableval=$enable_documentation; DOCUMENTATION=$enableval
3056 fi
3057
3058
3059
3060
3061 # Check whether --with-ncsb-dir was given.
3062 if test "${with_ncsb_dir+set}" = set; then
3063   withval=$with_ncsb_dir; NCSB_DIR=$withval
3064 else
3065   NCSB_DIR=""
3066 fi
3067
3068
3069 reloc_b=no
3070 # Check whether --enable-relocation was given.
3071 if test "${enable_relocation+set}" = set; then
3072   enableval=$enable_relocation; reloc_b=$enableval
3073 fi
3074
3075
3076 rpath_b=no
3077 # Check whether --enable-rpath was given.
3078 if test "${enable_rpath+set}" = set; then
3079   enableval=$enable_rpath; rpath_b=$enableval
3080 fi
3081
3082
3083 LINK_GXX_STATICALLY=no
3084 # Check whether --enable-static-gxx was given.
3085 if test "${enable_static_gxx+set}" = set; then
3086   enableval=$enable_static_gxx; LINK_GXX_STATICALLY=$enableval
3087 fi
3088
3089
3090
3091 # must come before any header checks
3092
3093     # -O is necessary to get inlining
3094     CFLAGS=${CFLAGS-""}
3095     CXXFLAGS=${CXXFLAGS-$CFLAGS}
3096     LDFLAGS=${LDFLAGS-""}
3097     optimise_b=yes
3098     profile_b=no
3099     debug_b=yes
3100     pipe_b=yes
3101
3102     # Check whether --enable-debugging was given.
3103 if test "${enable_debugging+set}" = set; then
3104   enableval=$enable_debugging; debug_b=$enableval
3105 fi
3106
3107
3108     # Check whether --enable-optimising was given.
3109 if test "${enable_optimising+set}" = set; then
3110   enableval=$enable_optimising; optimise_b=$enableval
3111 fi
3112
3113
3114     # Check whether --enable-profiling was given.
3115 if test "${enable_profiling+set}" = set; then
3116   enableval=$enable_profiling; profile_b=$enableval
3117 fi
3118
3119
3120     # Check whether --enable-pipe was given.
3121 if test "${enable_pipe+set}" = set; then
3122   enableval=$enable_pipe; pipe_b=$enableval
3123 fi
3124
3125
3126     if test "$optimise_b" = yes; then
3127         cat >>confdefs.h <<\_ACEOF
3128 #define NDEBUG 1
3129 _ACEOF
3130
3131         DEFINES="$DEFINES -DNDEBUG"
3132         OPTIMIZE=" -O2 -finline-functions"
3133     fi
3134
3135     if test $profile_b = yes; then
3136         EXTRA_LIBS="-pg"
3137         OPTIMIZE="$OPTIMIZE -pg"
3138     fi
3139
3140     if test $debug_b = yes; then
3141         OPTIMIZE="$OPTIMIZE -g"
3142     fi
3143
3144 ac_ext=c
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 if test -n "$ac_tool_prefix"; then
3150   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_CC+set}" = set; then
3155   $as_echo_n "(cached) " >&6
3156 else
3157   if test -n "$CC"; then
3158   ac_cv_prog_CC="$CC" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163   IFS=$as_save_IFS
3164   test -z "$as_dir" && as_dir=.
3165   for ac_exec_ext in '' $ac_executable_extensions; do
3166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3168     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3169     break 2
3170   fi
3171 done
3172 done
3173 IFS=$as_save_IFS
3174
3175 fi
3176 fi
3177 CC=$ac_cv_prog_CC
3178 if test -n "$CC"; then
3179   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3181 else
3182   { $as_echo "$as_me:$LINENO: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186
3187 fi
3188 if test -z "$ac_cv_prog_CC"; then
3189   ac_ct_CC=$CC
3190   # Extract the first word of "gcc", so it can be a program name with args.
3191 set dummy gcc; ac_word=$2
3192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3195   $as_echo_n "(cached) " >&6
3196 else
3197   if test -n "$ac_ct_CC"; then
3198   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205   for ac_exec_ext in '' $ac_executable_extensions; do
3206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207     ac_cv_prog_ac_ct_CC="gcc"
3208     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209     break 2
3210   fi
3211 done
3212 done
3213 IFS=$as_save_IFS
3214
3215 fi
3216 fi
3217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3218 if test -n "$ac_ct_CC"; then
3219   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3220 $as_echo "$ac_ct_CC" >&6; }
3221 else
3222   { $as_echo "$as_me:$LINENO: result: no" >&5
3223 $as_echo "no" >&6; }
3224 fi
3225
3226   if test "x$ac_ct_CC" = x; then
3227     CC=""
3228   else
3229     case $cross_compiling:$ac_tool_warned in
3230 yes:)
3231 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233 ac_tool_warned=yes ;;
3234 esac
3235     CC=$ac_ct_CC
3236   fi
3237 else
3238   CC="$ac_cv_prog_CC"
3239 fi
3240
3241 if test -z "$CC"; then
3242           if test -n "$ac_tool_prefix"; then
3243     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}cc; ac_word=$2
3245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then
3248   $as_echo_n "(cached) " >&6
3249 else
3250   if test -n "$CC"; then
3251   ac_cv_prog_CC="$CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256   IFS=$as_save_IFS
3257   test -z "$as_dir" && as_dir=.
3258   for ac_exec_ext in '' $ac_executable_extensions; do
3259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260     ac_cv_prog_CC="${ac_tool_prefix}cc"
3261     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262     break 2
3263   fi
3264 done
3265 done
3266 IFS=$as_save_IFS
3267
3268 fi
3269 fi
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3274 else
3275   { $as_echo "$as_me:$LINENO: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279
3280   fi
3281 fi
3282 if test -z "$CC"; then
3283   # Extract the first word of "cc", so it can be a program name with args.
3284 set dummy cc; ac_word=$2
3285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then
3288   $as_echo_n "(cached) " >&6
3289 else
3290   if test -n "$CC"; then
3291   ac_cv_prog_CC="$CC" # Let the user override the test.
3292 else
3293   ac_prog_rejected=no
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299   for ac_exec_ext in '' $ac_executable_extensions; do
3300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3302        ac_prog_rejected=yes
3303        continue
3304      fi
3305     ac_cv_prog_CC="cc"
3306     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307     break 2
3308   fi
3309 done
3310 done
3311 IFS=$as_save_IFS
3312
3313 if test $ac_prog_rejected = yes; then
3314   # We found a bogon in the path, so make sure we never use it.
3315   set dummy $ac_cv_prog_CC
3316   shift
3317   if test $# != 0; then
3318     # We chose a different compiler from the bogus one.
3319     # However, it has the same basename, so the bogon will be chosen
3320     # first if we set CC to just the basename; use the full file name.
3321     shift
3322     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3323   fi
3324 fi
3325 fi
3326 fi
3327 CC=$ac_cv_prog_CC
3328 if test -n "$CC"; then
3329   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3330 $as_echo "$CC" >&6; }
3331 else
3332   { $as_echo "$as_me:$LINENO: result: no" >&5
3333 $as_echo "no" >&6; }
3334 fi
3335
3336
3337 fi
3338 if test -z "$CC"; then
3339   if test -n "$ac_tool_prefix"; then
3340   for ac_prog in cl.exe
3341   do
3342     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if test "${ac_cv_prog_CC+set}" = set; then
3347   $as_echo_n "(cached) " >&6
3348 else
3349   if test -n "$CC"; then
3350   ac_cv_prog_CC="$CC" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3354 do
3355   IFS=$as_save_IFS
3356   test -z "$as_dir" && as_dir=.
3357   for ac_exec_ext in '' $ac_executable_extensions; do
3358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3360     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361     break 2
3362   fi
3363 done
3364 done
3365 IFS=$as_save_IFS
3366
3367 fi
3368 fi
3369 CC=$ac_cv_prog_CC
3370 if test -n "$CC"; then
3371   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3372 $as_echo "$CC" >&6; }
3373 else
3374   { $as_echo "$as_me:$LINENO: result: no" >&5
3375 $as_echo "no" >&6; }
3376 fi
3377
3378
3379     test -n "$CC" && break
3380   done
3381 fi
3382 if test -z "$CC"; then
3383   ac_ct_CC=$CC
3384   for ac_prog in cl.exe
3385 do
3386   # Extract the first word of "$ac_prog", so it can be a program name with args.
3387 set dummy $ac_prog; ac_word=$2
3388 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3391   $as_echo_n "(cached) " >&6
3392 else
3393   if test -n "$ac_ct_CC"; then
3394   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3395 else
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3398 do
3399   IFS=$as_save_IFS
3400   test -z "$as_dir" && as_dir=.
3401   for ac_exec_ext in '' $ac_executable_extensions; do
3402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403     ac_cv_prog_ac_ct_CC="$ac_prog"
3404     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405     break 2
3406   fi
3407 done
3408 done
3409 IFS=$as_save_IFS
3410
3411 fi
3412 fi
3413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3414 if test -n "$ac_ct_CC"; then
3415   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3416 $as_echo "$ac_ct_CC" >&6; }
3417 else
3418   { $as_echo "$as_me:$LINENO: result: no" >&5
3419 $as_echo "no" >&6; }
3420 fi
3421
3422
3423   test -n "$ac_ct_CC" && break
3424 done
3425
3426   if test "x$ac_ct_CC" = x; then
3427     CC=""
3428   else
3429     case $cross_compiling:$ac_tool_warned in
3430 yes:)
3431 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned=yes ;;
3434 esac
3435     CC=$ac_ct_CC
3436   fi
3437 fi
3438
3439 fi
3440
3441
3442 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3445 See \`config.log' for more details." >&5
3446 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3447 See \`config.log' for more details." >&2;}
3448    { (exit 1); exit 1; }; }; }
3449
3450 # Provide some information about the compiler.
3451 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3452 set X $ac_compile
3453 ac_compiler=$2
3454 { (ac_try="$ac_compiler --version >&5"
3455 case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3460 $as_echo "$ac_try_echo") >&5
3461   (eval "$ac_compiler --version >&5") 2>&5
3462   ac_status=$?
3463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); }
3465 { (ac_try="$ac_compiler -v >&5"
3466 case "(($ac_try" in
3467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468   *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3471 $as_echo "$ac_try_echo") >&5
3472   (eval "$ac_compiler -v >&5") 2>&5
3473   ac_status=$?
3474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); }
3476 { (ac_try="$ac_compiler -V >&5"
3477 case "(($ac_try" in
3478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479   *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3482 $as_echo "$ac_try_echo") >&5
3483   (eval "$ac_compiler -V >&5") 2>&5
3484   ac_status=$?
3485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); }
3487
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h.  */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h.  */
3494
3495 int
3496 main ()
3497 {
3498
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 ac_clean_files_save=$ac_clean_files
3504 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3505 # Try to create an executable without -o first, disregard a.out.
3506 # It will help us diagnose broken compilers, and finding out an intuition
3507 # of exeext.
3508 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3509 $as_echo_n "checking for C compiler default output file name... " >&6; }
3510 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3511
3512 # The possible output files:
3513 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3514
3515 ac_rmfiles=
3516 for ac_file in $ac_files
3517 do
3518   case $ac_file in
3519     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3520     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3521   esac
3522 done
3523 rm -f $ac_rmfiles
3524
3525 if { (ac_try="$ac_link_default"
3526 case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3531 $as_echo "$ac_try_echo") >&5
3532   (eval "$ac_link_default") 2>&5
3533   ac_status=$?
3534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); }; then
3536   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3537 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3538 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3539 # so that the user can short-circuit this test for compilers unknown to
3540 # Autoconf.
3541 for ac_file in $ac_files ''
3542 do
3543   test -f "$ac_file" || continue
3544   case $ac_file in
3545     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3546         ;;
3547     [ab].out )
3548         # We found the default executable, but exeext='' is most
3549         # certainly right.
3550         break;;
3551     *.* )
3552         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3553         then :; else
3554            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3555         fi
3556         # We set ac_cv_exeext here because the later test for it is not
3557         # safe: cross compilers may not add the suffix if given an `-o'
3558         # argument, so we may need to know it at that point already.
3559         # Even if this section looks crufty: it has the advantage of
3560         # actually working.
3561         break;;
3562     * )
3563         break;;
3564   esac
3565 done
3566 test "$ac_cv_exeext" = no && ac_cv_exeext=
3567
3568 else
3569   ac_file=''
3570 fi
3571
3572 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3573 $as_echo "$ac_file" >&6; }
3574 if test -z "$ac_file"; then
3575   $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3581 See \`config.log' for more details." >&5
3582 $as_echo "$as_me: error: C compiler cannot create executables
3583 See \`config.log' for more details." >&2;}
3584    { (exit 77); exit 77; }; }; }
3585 fi
3586
3587 ac_exeext=$ac_cv_exeext
3588
3589 # Check that the compiler produces executables we can run.  If not, either
3590 # the compiler is broken, or we cross compile.
3591 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3592 $as_echo_n "checking whether the C compiler works... " >&6; }
3593 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3594 # If not cross compiling, check that we can run a simple program.
3595 if test "$cross_compiling" != yes; then
3596   if { ac_try='./$ac_file'
3597   { (case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3602 $as_echo "$ac_try_echo") >&5
3603   (eval "$ac_try") 2>&5
3604   ac_status=$?
3605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); }; }; then
3607     cross_compiling=no
3608   else
3609     if test "$cross_compiling" = maybe; then
3610         cross_compiling=yes
3611     else
3612         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3615 If you meant to cross compile, use \`--host'.
3616 See \`config.log' for more details." >&5
3617 $as_echo "$as_me: error: cannot run C compiled programs.
3618 If you meant to cross compile, use \`--host'.
3619 See \`config.log' for more details." >&2;}
3620    { (exit 1); exit 1; }; }; }
3621     fi
3622   fi
3623 fi
3624 { $as_echo "$as_me:$LINENO: result: yes" >&5
3625 $as_echo "yes" >&6; }
3626
3627 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3628 ac_clean_files=$ac_clean_files_save
3629 # Check that the compiler produces executables we can run.  If not, either
3630 # the compiler is broken, or we cross compile.
3631 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3632 $as_echo_n "checking whether we are cross compiling... " >&6; }
3633 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3634 $as_echo "$cross_compiling" >&6; }
3635
3636 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3637 $as_echo_n "checking for suffix of executables... " >&6; }
3638 if { (ac_try="$ac_link"
3639 case "(($ac_try" in
3640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641   *) ac_try_echo=$ac_try;;
3642 esac
3643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3644 $as_echo "$ac_try_echo") >&5
3645   (eval "$ac_link") 2>&5
3646   ac_status=$?
3647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); }; then
3649   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3650 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3651 # work properly (i.e., refer to `conftest.exe'), while it won't with
3652 # `rm'.
3653 for ac_file in conftest.exe conftest conftest.*; do
3654   test -f "$ac_file" || continue
3655   case $ac_file in
3656     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3657     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3658           break;;
3659     * ) break;;
3660   esac
3661 done
3662 else
3663   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3666 See \`config.log' for more details." >&5
3667 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3668 See \`config.log' for more details." >&2;}
3669    { (exit 1); exit 1; }; }; }
3670 fi
3671
3672 rm -f conftest$ac_cv_exeext
3673 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3674 $as_echo "$ac_cv_exeext" >&6; }
3675
3676 rm -f conftest.$ac_ext
3677 EXEEXT=$ac_cv_exeext
3678 ac_exeext=$EXEEXT
3679 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3680 $as_echo_n "checking for suffix of object files... " >&6; }
3681 if test "${ac_cv_objext+set}" = set; then
3682   $as_echo_n "(cached) " >&6
3683 else
3684   cat >conftest.$ac_ext <<_ACEOF
3685 /* confdefs.h.  */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h.  */
3690
3691 int
3692 main ()
3693 {
3694
3695   ;
3696   return 0;
3697 }
3698 _ACEOF
3699 rm -f conftest.o conftest.obj
3700 if { (ac_try="$ac_compile"
3701 case "(($ac_try" in
3702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703   *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706 $as_echo "$ac_try_echo") >&5
3707   (eval "$ac_compile") 2>&5
3708   ac_status=$?
3709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); }; then
3711   for ac_file in conftest.o conftest.obj conftest.*; do
3712   test -f "$ac_file" || continue;
3713   case $ac_file in
3714     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3715     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3716        break;;
3717   esac
3718 done
3719 else
3720   $as_echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3726 See \`config.log' for more details." >&5
3727 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3728 See \`config.log' for more details." >&2;}
3729    { (exit 1); exit 1; }; }; }
3730 fi
3731
3732 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3733 fi
3734 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3735 $as_echo "$ac_cv_objext" >&6; }
3736 OBJEXT=$ac_cv_objext
3737 ac_objext=$OBJEXT
3738 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3739 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3740 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3741   $as_echo_n "(cached) " >&6
3742 else
3743   cat >conftest.$ac_ext <<_ACEOF
3744 /* confdefs.h.  */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h.  */
3749
3750 int
3751 main ()
3752 {
3753 #ifndef __GNUC__
3754        choke me
3755 #endif
3756
3757   ;
3758   return 0;
3759 }
3760 _ACEOF
3761 rm -f conftest.$ac_objext
3762 if { (ac_try="$ac_compile"
3763 case "(($ac_try" in
3764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765   *) ac_try_echo=$ac_try;;
3766 esac
3767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3768 $as_echo "$ac_try_echo") >&5
3769   (eval "$ac_compile") 2>conftest.er1
3770   ac_status=$?
3771   grep -v '^ *+' conftest.er1 >conftest.err
3772   rm -f conftest.er1
3773   cat conftest.err >&5
3774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); } && {
3776          test -z "$ac_c_werror_flag" ||
3777          test ! -s conftest.err
3778        } && test -s conftest.$ac_objext; then
3779   ac_compiler_gnu=yes
3780 else
3781   $as_echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3783
3784         ac_compiler_gnu=no
3785 fi
3786
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3789
3790 fi
3791 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3792 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3793 if test $ac_compiler_gnu = yes; then
3794   GCC=yes
3795 else
3796   GCC=
3797 fi
3798 ac_test_CFLAGS=${CFLAGS+set}
3799 ac_save_CFLAGS=$CFLAGS
3800 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3801 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3802 if test "${ac_cv_prog_cc_g+set}" = set; then
3803   $as_echo_n "(cached) " >&6
3804 else
3805   ac_save_c_werror_flag=$ac_c_werror_flag
3806    ac_c_werror_flag=yes
3807    ac_cv_prog_cc_g=no
3808    CFLAGS="-g"
3809    cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h.  */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h.  */
3815
3816 int
3817 main ()
3818 {
3819
3820   ;
3821   return 0;
3822 }
3823 _ACEOF
3824 rm -f conftest.$ac_objext
3825 if { (ac_try="$ac_compile"
3826 case "(($ac_try" in
3827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828   *) ac_try_echo=$ac_try;;
3829 esac
3830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3831 $as_echo "$ac_try_echo") >&5
3832   (eval "$ac_compile") 2>conftest.er1
3833   ac_status=$?
3834   grep -v '^ *+' conftest.er1 >conftest.err
3835   rm -f conftest.er1
3836   cat conftest.err >&5
3837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838   (exit $ac_status); } && {
3839          test -z "$ac_c_werror_flag" ||
3840          test ! -s conftest.err
3841        } && test -s conftest.$ac_objext; then
3842   ac_cv_prog_cc_g=yes
3843 else
3844   $as_echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3846
3847         CFLAGS=""
3848       cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h.  */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h.  */
3854
3855 int
3856 main ()
3857 {
3858
3859   ;
3860   return 0;
3861 }
3862 _ACEOF
3863 rm -f conftest.$ac_objext
3864 if { (ac_try="$ac_compile"
3865 case "(($ac_try" in
3866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867   *) ac_try_echo=$ac_try;;
3868 esac
3869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3870 $as_echo "$ac_try_echo") >&5
3871   (eval "$ac_compile") 2>conftest.er1
3872   ac_status=$?
3873   grep -v '^ *+' conftest.er1 >conftest.err
3874   rm -f conftest.er1
3875   cat conftest.err >&5
3876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); } && {
3878          test -z "$ac_c_werror_flag" ||
3879          test ! -s conftest.err
3880        } && test -s conftest.$ac_objext; then
3881   :
3882 else
3883   $as_echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3885
3886         ac_c_werror_flag=$ac_save_c_werror_flag
3887          CFLAGS="-g"
3888          cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h.  */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h.  */
3894
3895 int
3896 main ()
3897 {
3898
3899   ;
3900   return 0;
3901 }
3902 _ACEOF
3903 rm -f conftest.$ac_objext
3904 if { (ac_try="$ac_compile"
3905 case "(($ac_try" in
3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907   *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3910 $as_echo "$ac_try_echo") >&5
3911   (eval "$ac_compile") 2>conftest.er1
3912   ac_status=$?
3913   grep -v '^ *+' conftest.er1 >conftest.err
3914   rm -f conftest.er1
3915   cat conftest.err >&5
3916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917   (exit $ac_status); } && {
3918          test -z "$ac_c_werror_flag" ||
3919          test ! -s conftest.err
3920        } && test -s conftest.$ac_objext; then
3921   ac_cv_prog_cc_g=yes
3922 else
3923   $as_echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926
3927 fi
3928
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 fi
3931
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 fi
3934
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936    ac_c_werror_flag=$ac_save_c_werror_flag
3937 fi
3938 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3939 $as_echo "$ac_cv_prog_cc_g" >&6; }
3940 if test "$ac_test_CFLAGS" = set; then
3941   CFLAGS=$ac_save_CFLAGS
3942 elif test $ac_cv_prog_cc_g = yes; then
3943   if test "$GCC" = yes; then
3944     CFLAGS="-g -O2"
3945   else
3946     CFLAGS="-g"
3947   fi
3948 else
3949   if test "$GCC" = yes; then
3950     CFLAGS="-O2"
3951   else
3952     CFLAGS=
3953   fi
3954 fi
3955 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3956 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3957 if test "${ac_cv_prog_cc_c89+set}" = set; then
3958   $as_echo_n "(cached) " >&6
3959 else
3960   ac_cv_prog_cc_c89=no
3961 ac_save_CC=$CC
3962 cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h.  */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h.  */
3968 #include <stdarg.h>
3969 #include <stdio.h>
3970 #include <sys/types.h>
3971 #include <sys/stat.h>
3972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3973 struct buf { int x; };
3974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3975 static char *e (p, i)
3976      char **p;
3977      int i;
3978 {
3979   return p[i];
3980 }
3981 static char *f (char * (*g) (char **, int), char **p, ...)
3982 {
3983   char *s;
3984   va_list v;
3985   va_start (v,p);
3986   s = g (p, va_arg (v,int));
3987   va_end (v);
3988   return s;
3989 }
3990
3991 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3992    function prototypes and stuff, but not '\xHH' hex character constants.
3993    These don't provoke an error unfortunately, instead are silently treated
3994    as 'x'.  The following induces an error, until -std is added to get
3995    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3996    array size at least.  It's necessary to write '\x00'==0 to get something
3997    that's true only with -std.  */
3998 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3999
4000 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4001    inside strings and character constants.  */
4002 #define FOO(x) 'x'
4003 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4004
4005 int test (int i, double x);
4006 struct s1 {int (*f) (int a);};
4007 struct s2 {int (*f) (double a);};
4008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4009 int argc;
4010 char **argv;
4011 int
4012 main ()
4013 {
4014 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4015   ;
4016   return 0;
4017 }
4018 _ACEOF
4019 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4020         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4021 do
4022   CC="$ac_save_CC $ac_arg"
4023   rm -f conftest.$ac_objext
4024 if { (ac_try="$ac_compile"
4025 case "(($ac_try" in
4026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027   *) ac_try_echo=$ac_try;;
4028 esac
4029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4030 $as_echo "$ac_try_echo") >&5
4031   (eval "$ac_compile") 2>conftest.er1
4032   ac_status=$?
4033   grep -v '^ *+' conftest.er1 >conftest.err
4034   rm -f conftest.er1
4035   cat conftest.err >&5
4036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); } && {
4038          test -z "$ac_c_werror_flag" ||
4039          test ! -s conftest.err
4040        } && test -s conftest.$ac_objext; then
4041   ac_cv_prog_cc_c89=$ac_arg
4042 else
4043   $as_echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4045
4046
4047 fi
4048
4049 rm -f core conftest.err conftest.$ac_objext
4050   test "x$ac_cv_prog_cc_c89" != "xno" && break
4051 done
4052 rm -f conftest.$ac_ext
4053 CC=$ac_save_CC
4054
4055 fi
4056 # AC_CACHE_VAL
4057 case "x$ac_cv_prog_cc_c89" in
4058   x)
4059     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4060 $as_echo "none needed" >&6; } ;;
4061   xno)
4062     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4063 $as_echo "unsupported" >&6; } ;;
4064   *)
4065     CC="$CC $ac_cv_prog_cc_c89"
4066     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4067 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4068 esac
4069
4070
4071 ac_ext=c
4072 ac_cpp='$CPP $CPPFLAGS'
4073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076
4077
4078
4079
4080
4081
4082
4083
4084     r="`eval echo '$'"CC"`"
4085     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
4086         true
4087     else
4088         ##STEPMAKE_WARN(cannot find . )
4089         false
4090     fi
4091
4092     if test $? -ne 0; then
4093
4094     eval ""=\"`eval echo \"'$'\" \"cc\"`\"
4095
4096         if test "" = "REQUIRED"; then
4097             command="echo ERROR: cc not found"
4098             # abort configure process here?
4099         else
4100             command="- echo cc not found"
4101         fi
4102         eval "CC"='$command'
4103         false
4104     else
4105         true
4106     fi
4107
4108     LD='$(CC)'
4109
4110
4111     # If -pipe requested, test if it works and add to CFLAGS.
4112     if test "$pipe_b" = yes; then
4113         save_cflags="$CFLAGS"
4114         CFLAGS=" -pipe $CFLAGS";
4115         { $as_echo "$as_me:$LINENO: checking whether compiler understands -pipe" >&5
4116 $as_echo_n "checking whether compiler understands -pipe... " >&6; }
4117 if test "${stepmake_cv_cflags_pipe+set}" = set; then
4118   $as_echo_n "(cached) " >&6
4119 else
4120
4121 cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h.  */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h.  */
4127 /* -pipe test */
4128 int
4129 main ()
4130 {
4131
4132   ;
4133   return 0;
4134 }
4135 _ACEOF
4136 rm -f conftest.$ac_objext
4137 if { (ac_try="$ac_compile"
4138 case "(($ac_try" in
4139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140   *) ac_try_echo=$ac_try;;
4141 esac
4142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4143 $as_echo "$ac_try_echo") >&5
4144   (eval "$ac_compile") 2>conftest.er1
4145   ac_status=$?
4146   grep -v '^ *+' conftest.er1 >conftest.err
4147   rm -f conftest.er1
4148   cat conftest.err >&5
4149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); } && {
4151          test -z "$ac_c_werror_flag" ||
4152          test ! -s conftest.err
4153        } && test -s conftest.$ac_objext; then
4154   stepmake_cv_cflags_pipe=yes
4155 else
4156   $as_echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159         stepmake_cv_cflags_pipe=no
4160 fi
4161
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 fi
4164 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_cflags_pipe" >&5
4165 $as_echo "$stepmake_cv_cflags_pipe" >&6; }
4166         CFLAGS=$save_cflags
4167         if test $stepmake_cv_cflags_pipe = yes; then
4168             OPTIMIZE="$OPTIMIZE -pipe"
4169         fi
4170     fi
4171
4172     CFLAGS="$CFLAGS $OPTIMIZE"
4173     CPPFLAGS=${CPPFLAGS-""}
4174
4175     { $as_echo "$as_me:$LINENO: checking for IEEE-conformance compiler flags" >&5
4176 $as_echo_n "checking for IEEE-conformance compiler flags... " >&6; }
4177     save_cflags="$CFLAGS"
4178     case "$host" in
4179         alpha*-*-*)
4180                     { $as_echo "$as_me:$LINENO: result: -mieee" >&5
4181 $as_echo "-mieee" >&6; }
4182             CFLAGS=" -mieee $CFLAGS"
4183             ;;
4184         *)
4185             { $as_echo "$as_me:$LINENO: result: none" >&5
4186 $as_echo "none" >&6; }
4187             ;;
4188     esac
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198 # Extract the first word of "fc-list", so it can be a program name with args.
4199 set dummy fc-list; ac_word=$2
4200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if test "${ac_cv_prog_FCLIST+set}" = set; then
4203   $as_echo_n "(cached) " >&6
4204 else
4205   if test -n "$FCLIST"; then
4206   ac_cv_prog_FCLIST="$FCLIST" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211   IFS=$as_save_IFS
4212   test -z "$as_dir" && as_dir=.
4213   for ac_exec_ext in '' $ac_executable_extensions; do
4214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215     ac_cv_prog_FCLIST="fc-list"
4216     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217     break 2
4218   fi
4219 done
4220 done
4221 IFS=$as_save_IFS
4222
4223 fi
4224 fi
4225 FCLIST=$ac_cv_prog_FCLIST
4226 if test -n "$FCLIST"; then
4227   { $as_echo "$as_me:$LINENO: result: $FCLIST" >&5
4228 $as_echo "$FCLIST" >&6; }
4229 else
4230   { $as_echo "$as_me:$LINENO: result: no" >&5
4231 $as_echo "no" >&6; }
4232 fi
4233
4234
4235 { $as_echo "$as_me:$LINENO: checking New Century Schoolbook PFB files" >&5
4236 $as_echo_n "checking New Century Schoolbook PFB files... " >&6; }
4237
4238
4239 UNCHECKED_NCSB_SOURCE_FILES=""
4240 if test "$NCSB_DIR" != "" ;  then
4241   for f in c059013l c059016l c059033l c059036l; do
4242     if test ! -f "$NCSB_DIR/$f.pfb"; then
4243
4244     { $as_echo "$as_me:$LINENO: WARNING: $NCSB_DIR does not contain $f.pfb." >&5
4245 $as_echo "$as_me: WARNING: $NCSB_DIR does not contain $f.pfb." >&2;}
4246     warn_b=yes
4247
4248     else
4249       UNCHECKED_NCSB_SOURCE_FILES="$NCSB_DIR/$f.pfb $UNCHECKED_NCSB_SOURCE_FILES"
4250     fi
4251   done
4252 else
4253   if test "$FCLIST" != ""; then
4254     for style in Roman Italic "Bold Italic" Bold; do
4255       NCSB_FILE=`$FCLIST "Century Schoolbook L:style=$style:foundry=urw:fontformat=Type 1" file \
4256                 | head -n 1`
4257       NCSB_FILE=`echo $NCSB_FILE | sed 's/\(:.*\)$//g'`
4258       NCSB_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $NCSB_FILE`
4259       UNCHECKED_NCSB_SOURCE_FILES="$NCSB_FILE $UNCHECKED_NCSB_SOURCE_FILES"
4260     done
4261     NCSB_DIR=`$as_dirname -- $NCSB_FILE ||
4262 $as_expr X$NCSB_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4263          X$NCSB_FILE : 'X\(//\)[^/]' \| \
4264          X$NCSB_FILE : 'X\(//\)$' \| \
4265          X$NCSB_FILE : 'X\(/\)' \| . 2>/dev/null ||
4266 $as_echo X$NCSB_FILE |
4267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4268             s//\1/
4269             q
4270           }
4271           /^X\(\/\/\)[^/].*/{
4272             s//\1/
4273             q
4274           }
4275           /^X\(\/\/\)$/{
4276             s//\1/
4277             q
4278           }
4279           /^X\(\/\).*/{
4280             s//\1/
4281             q
4282           }
4283           s/.*/./; q'`
4284   else
4285     { $as_echo "$as_me:$LINENO: result: not found" >&5
4286 $as_echo "not found" >&6; }
4287     echo "Can't find Century Schoolbook files. Install FontConfig's fc-list,"
4288     echo "or use --with-ncsb-dir"
4289   fi
4290 fi
4291 NCSB_SOURCE_FILES=""
4292 for f in $UNCHECKED_NCSB_SOURCE_FILES; do
4293   if test "`grep Cyrillic "$f"`" = ""; then
4294
4295     { $as_echo "$as_me:$LINENO: WARNING: $f does not have Cyrillic characters." >&5
4296 $as_echo "$as_me: WARNING: $f does not have Cyrillic characters." >&2;}
4297     warn_b=yes
4298
4299   else
4300     NCSB_SOURCE_FILES="$f $NCSB_SOURCE_FILES"
4301   fi
4302 done
4303 { $as_echo "$as_me:$LINENO: result: $NCSB_SOURCE_FILES" >&5
4304 $as_echo "$NCSB_SOURCE_FILES" >&6; }
4305
4306 ac_ext=cpp
4307 ac_cpp='$CXXCPP $CPPFLAGS'
4308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4311
4312
4313
4314     unset pv
4315     { $as_echo "$as_me:$LINENO: checking for python" >&5
4316 $as_echo_n "checking for python... " >&6; }
4317     for python in $PYTHON python python2 python2.4 python2.3 python2.2 python2.1 python2.0; do
4318         { $as_echo "$as_me:$LINENO: result: $python" >&5
4319 $as_echo "$python" >&6; }
4320         if ! $python -V > /dev/null 2>&1 ; then
4321             #AC_MSG_WARN([cannot execute $python])
4322             PYTHON='echo no python'
4323         else
4324             unset pv
4325
4326     r="`eval echo '$'"python"`"
4327     { $as_echo "$as_me:$LINENO: checking $r version" >&5
4328 $as_echo_n "checking $r version... " >&6; }
4329     exe=`
4330     ## which doesn't work in ash, if /usr/bin/which isn't installed
4331     ## type -p doesn't work in ash
4332     ## command -v doesn't work in zsh
4333     ## command -v "$r" 2>&1
4334     ## this test should work in ash, bash, pdksh (ksh), zsh
4335     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4336 `
4337     if test -n ""; then
4338         ver=""
4339     else
4340         ver=`
4341     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4342     ##
4343     ## ARG.
4344     ## Workaround for broken Debian gcc version string:
4345     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4346     ##
4347     ## -V: Workaround for python
4348
4349     #dnl
4350
4351     ## Assume and hunt for dotted version multiplet.
4352     ## use eval trickery, because we cannot use multi-level $() instead of ``
4353     ## for compatibility reasons.
4354
4355     ## grab the first version number in  --version output.
4356     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4357                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4358                 head -n 1 |
4359                 tr ' ' '\n' |
4360                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4361                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4362                 head -n 1\`\"
4363
4364     if test -z "$_ver"; then
4365         ## If empty, try date [fontforge]
4366         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
4367             | head -n 1 \
4368             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4369     fi
4370     echo "$_ver"
4371     #dnl
4372 `
4373     fi
4374     num=`
4375     echo "$ver" | awk -F. '
4376     {
4377       if ($3) {three = $3}
4378       else {three = 0}
4379     }
4380     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4381 `
4382     req=`
4383     echo "2.4" | awk -F. '
4384     {
4385       if ($3) {three = $3}
4386       else {three = 0}
4387     }
4388     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4389 `
4390     { $as_echo "$as_me:$LINENO: result: $ver" >&5
4391 $as_echo "$ver" >&6; }
4392     if test "$num" -lt "$req"; then
4393
4394     eval "pv"=\"`eval echo \"'$'pv\" \""$r >= 2.4 (installed: $ver)"\"`\"
4395
4396     fi
4397     vervar="`echo python | tr 'a-z' 'A-Z'`_VERSION"
4398     eval `echo $vervar=$num`
4399 ##    AC_SUBST(`eval echo $vervar`)
4400
4401             if test -z "$pv"; then
4402                 PYTHON=$python
4403                 break
4404             fi
4405         fi
4406     done
4407     if test -n "$pv"; then
4408
4409     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$pv\"`\"
4410
4411     fi
4412     # clear cached value since arg 2 might point us to a new binary
4413     unset ac_cv_path_PYTHON
4414
4415     # Extract the first word of "$PYTHON", so it can be a program name with args.
4416 set dummy $PYTHON; ac_word=$2
4417 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 $as_echo_n "checking for $ac_word... " >&6; }
4419 if test "${ac_cv_path_PYTHON+set}" = set; then
4420   $as_echo_n "(cached) " >&6
4421 else
4422   case $PYTHON in
4423   [\\/]* | ?:[\\/]*)
4424   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4425   ;;
4426   *)
4427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4429 do
4430   IFS=$as_save_IFS
4431   test -z "$as_dir" && as_dir=.
4432   for ac_exec_ext in '' $ac_executable_extensions; do
4433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4435     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436     break 2
4437   fi
4438 done
4439 done
4440 IFS=$as_save_IFS
4441
4442   ;;
4443 esac
4444 fi
4445 PYTHON=$ac_cv_path_PYTHON
4446 if test -n "$PYTHON"; then
4447   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
4448 $as_echo "$PYTHON" >&6; }
4449 else
4450   { $as_echo "$as_me:$LINENO: result: no" >&5
4451 $as_echo "no" >&6; }
4452 fi
4453
4454
4455
4456
4457 # this checks if we have GNU C by compiling a program with
4458 # __GNUC__, but that macro now unofficially means "the compiler
4459 # supports the GNU C extensions" -- the intel C compiler and clang
4460 # both support __GNUC__!
4461 ac_ext=cpp
4462 ac_cpp='$CXXCPP $CPPFLAGS'
4463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4466 if test -z "$CXX"; then
4467   if test -n "$CCC"; then
4468     CXX=$CCC
4469   else
4470     if test -n "$ac_tool_prefix"; then
4471   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4472   do
4473     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4476 $as_echo_n "checking for $ac_word... " >&6; }
4477 if test "${ac_cv_prog_CXX+set}" = set; then
4478   $as_echo_n "(cached) " >&6
4479 else
4480   if test -n "$CXX"; then
4481   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4482 else
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4485 do
4486   IFS=$as_save_IFS
4487   test -z "$as_dir" && as_dir=.
4488   for ac_exec_ext in '' $ac_executable_extensions; do
4489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4491     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492     break 2
4493   fi
4494 done
4495 done
4496 IFS=$as_save_IFS
4497
4498 fi
4499 fi
4500 CXX=$ac_cv_prog_CXX
4501 if test -n "$CXX"; then
4502   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4503 $as_echo "$CXX" >&6; }
4504 else
4505   { $as_echo "$as_me:$LINENO: result: no" >&5
4506 $as_echo "no" >&6; }
4507 fi
4508
4509
4510     test -n "$CXX" && break
4511   done
4512 fi
4513 if test -z "$CXX"; then
4514   ac_ct_CXX=$CXX
4515   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4516 do
4517   # Extract the first word of "$ac_prog", so it can be a program name with args.
4518 set dummy $ac_prog; ac_word=$2
4519 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 $as_echo_n "checking for $ac_word... " >&6; }
4521 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4522   $as_echo_n "(cached) " >&6
4523 else
4524   if test -n "$ac_ct_CXX"; then
4525   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4526 else
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4529 do
4530   IFS=$as_save_IFS
4531   test -z "$as_dir" && as_dir=.
4532   for ac_exec_ext in '' $ac_executable_extensions; do
4533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4534     ac_cv_prog_ac_ct_CXX="$ac_prog"
4535     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536     break 2
4537   fi
4538 done
4539 done
4540 IFS=$as_save_IFS
4541
4542 fi
4543 fi
4544 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4545 if test -n "$ac_ct_CXX"; then
4546   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4547 $as_echo "$ac_ct_CXX" >&6; }
4548 else
4549   { $as_echo "$as_me:$LINENO: result: no" >&5
4550 $as_echo "no" >&6; }
4551 fi
4552
4553
4554   test -n "$ac_ct_CXX" && break
4555 done
4556
4557   if test "x$ac_ct_CXX" = x; then
4558     CXX="g++"
4559   else
4560     case $cross_compiling:$ac_tool_warned in
4561 yes:)
4562 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4564 ac_tool_warned=yes ;;
4565 esac
4566     CXX=$ac_ct_CXX
4567   fi
4568 fi
4569
4570   fi
4571 fi
4572 # Provide some information about the compiler.
4573 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4574 set X $ac_compile
4575 ac_compiler=$2
4576 { (ac_try="$ac_compiler --version >&5"
4577 case "(($ac_try" in
4578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579   *) ac_try_echo=$ac_try;;
4580 esac
4581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4582 $as_echo "$ac_try_echo") >&5
4583   (eval "$ac_compiler --version >&5") 2>&5
4584   ac_status=$?
4585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); }
4587 { (ac_try="$ac_compiler -v >&5"
4588 case "(($ac_try" in
4589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590   *) ac_try_echo=$ac_try;;
4591 esac
4592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4593 $as_echo "$ac_try_echo") >&5
4594   (eval "$ac_compiler -v >&5") 2>&5
4595   ac_status=$?
4596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); }
4598 { (ac_try="$ac_compiler -V >&5"
4599 case "(($ac_try" in
4600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601   *) ac_try_echo=$ac_try;;
4602 esac
4603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4604 $as_echo "$ac_try_echo") >&5
4605   (eval "$ac_compiler -V >&5") 2>&5
4606   ac_status=$?
4607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); }
4609
4610 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4611 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4612 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4613   $as_echo_n "(cached) " >&6
4614 else
4615   cat >conftest.$ac_ext <<_ACEOF
4616 /* confdefs.h.  */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h.  */
4621
4622 int
4623 main ()
4624 {
4625 #ifndef __GNUC__
4626        choke me
4627 #endif
4628
4629   ;
4630   return 0;
4631 }
4632 _ACEOF
4633 rm -f conftest.$ac_objext
4634 if { (ac_try="$ac_compile"
4635 case "(($ac_try" in
4636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637   *) ac_try_echo=$ac_try;;
4638 esac
4639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4640 $as_echo "$ac_try_echo") >&5
4641   (eval "$ac_compile") 2>conftest.er1
4642   ac_status=$?
4643   grep -v '^ *+' conftest.er1 >conftest.err
4644   rm -f conftest.er1
4645   cat conftest.err >&5
4646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); } && {
4648          test -z "$ac_cxx_werror_flag" ||
4649          test ! -s conftest.err
4650        } && test -s conftest.$ac_objext; then
4651   ac_compiler_gnu=yes
4652 else
4653   $as_echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4655
4656         ac_compiler_gnu=no
4657 fi
4658
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4661
4662 fi
4663 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4664 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4665 if test $ac_compiler_gnu = yes; then
4666   GXX=yes
4667 else
4668   GXX=
4669 fi
4670 ac_test_CXXFLAGS=${CXXFLAGS+set}
4671 ac_save_CXXFLAGS=$CXXFLAGS
4672 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4673 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4674 if test "${ac_cv_prog_cxx_g+set}" = set; then
4675   $as_echo_n "(cached) " >&6
4676 else
4677   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4678    ac_cxx_werror_flag=yes
4679    ac_cv_prog_cxx_g=no
4680    CXXFLAGS="-g"
4681    cat >conftest.$ac_ext <<_ACEOF
4682 /* confdefs.h.  */
4683 _ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h.  */
4687
4688 int
4689 main ()
4690 {
4691
4692   ;
4693   return 0;
4694 }
4695 _ACEOF
4696 rm -f conftest.$ac_objext
4697 if { (ac_try="$ac_compile"
4698 case "(($ac_try" in
4699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700   *) ac_try_echo=$ac_try;;
4701 esac
4702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4703 $as_echo "$ac_try_echo") >&5
4704   (eval "$ac_compile") 2>conftest.er1
4705   ac_status=$?
4706   grep -v '^ *+' conftest.er1 >conftest.err
4707   rm -f conftest.er1
4708   cat conftest.err >&5
4709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710   (exit $ac_status); } && {
4711          test -z "$ac_cxx_werror_flag" ||
4712          test ! -s conftest.err
4713        } && test -s conftest.$ac_objext; then
4714   ac_cv_prog_cxx_g=yes
4715 else
4716   $as_echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4718
4719         CXXFLAGS=""
4720       cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h.  */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h.  */
4726
4727 int
4728 main ()
4729 {
4730
4731   ;
4732   return 0;
4733 }
4734 _ACEOF
4735 rm -f conftest.$ac_objext
4736 if { (ac_try="$ac_compile"
4737 case "(($ac_try" in
4738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739   *) ac_try_echo=$ac_try;;
4740 esac
4741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4742 $as_echo "$ac_try_echo") >&5
4743   (eval "$ac_compile") 2>conftest.er1
4744   ac_status=$?
4745   grep -v '^ *+' conftest.er1 >conftest.err
4746   rm -f conftest.er1
4747   cat conftest.err >&5
4748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); } && {
4750          test -z "$ac_cxx_werror_flag" ||
4751          test ! -s conftest.err
4752        } && test -s conftest.$ac_objext; then
4753   :
4754 else
4755   $as_echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4757
4758         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4759          CXXFLAGS="-g"
4760          cat >conftest.$ac_ext <<_ACEOF
4761 /* confdefs.h.  */
4762 _ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h.  */
4766
4767 int
4768 main ()
4769 {
4770
4771   ;
4772   return 0;
4773 }
4774 _ACEOF
4775 rm -f conftest.$ac_objext
4776 if { (ac_try="$ac_compile"
4777 case "(($ac_try" in
4778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779   *) ac_try_echo=$ac_try;;
4780 esac
4781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4782 $as_echo "$ac_try_echo") >&5
4783   (eval "$ac_compile") 2>conftest.er1
4784   ac_status=$?
4785   grep -v '^ *+' conftest.er1 >conftest.err
4786   rm -f conftest.er1
4787   cat conftest.err >&5
4788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); } && {
4790          test -z "$ac_cxx_werror_flag" ||
4791          test ! -s conftest.err
4792        } && test -s conftest.$ac_objext; then
4793   ac_cv_prog_cxx_g=yes
4794 else
4795   $as_echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4797
4798
4799 fi
4800
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 fi
4803
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4809 fi
4810 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4811 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4812 if test "$ac_test_CXXFLAGS" = set; then
4813   CXXFLAGS=$ac_save_CXXFLAGS
4814 elif test $ac_cv_prog_cxx_g = yes; then
4815   if test "$GXX" = yes; then
4816     CXXFLAGS="-g -O2"
4817   else
4818     CXXFLAGS="-g"
4819   fi
4820 else
4821   if test "$GXX" = yes; then
4822     CXXFLAGS="-O2"
4823   else
4824     CXXFLAGS=
4825   fi
4826 fi
4827 ac_ext=cpp
4828 ac_cpp='$CXXCPP $CPPFLAGS'
4829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4832
4833
4834 ac_ext=cpp
4835 ac_cpp='$CXXCPP $CPPFLAGS'
4836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4839 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4840 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4841 if test -z "$CXXCPP"; then
4842   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4843   $as_echo_n "(cached) " >&6
4844 else
4845       # Double quotes because CXXCPP needs to be expanded
4846     for CXXCPP in "$CXX -E" "/lib/cpp"
4847     do
4848       ac_preproc_ok=false
4849 for ac_cxx_preproc_warn_flag in '' yes
4850 do
4851   # Use a header file that comes with gcc, so configuring glibc
4852   # with a fresh cross-compiler works.
4853   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4854   # <limits.h> exists even on freestanding compilers.
4855   # On the NeXT, cc -E runs the code through the compiler's parser,
4856   # not just through cpp. "Syntax error" is here to catch this case.
4857   cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h.  */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h.  */
4863 #ifdef __STDC__
4864 # include <limits.h>
4865 #else
4866 # include <assert.h>
4867 #endif
4868                      Syntax error
4869 _ACEOF
4870 if { (ac_try="$ac_cpp conftest.$ac_ext"
4871 case "(($ac_try" in
4872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873   *) ac_try_echo=$ac_try;;
4874 esac
4875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4876 $as_echo "$ac_try_echo") >&5
4877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4878   ac_status=$?
4879   grep -v '^ *+' conftest.er1 >conftest.err
4880   rm -f conftest.er1
4881   cat conftest.err >&5
4882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); } >/dev/null && {
4884          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4885          test ! -s conftest.err
4886        }; then
4887   :
4888 else
4889   $as_echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4891
4892   # Broken: fails on valid input.
4893 continue
4894 fi
4895
4896 rm -f conftest.err conftest.$ac_ext
4897
4898   # OK, works on sane cases.  Now check whether nonexistent headers
4899   # can be detected and how.
4900   cat >conftest.$ac_ext <<_ACEOF
4901 /* confdefs.h.  */
4902 _ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h.  */
4906 #include <ac_nonexistent.h>
4907 _ACEOF
4908 if { (ac_try="$ac_cpp conftest.$ac_ext"
4909 case "(($ac_try" in
4910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911   *) ac_try_echo=$ac_try;;
4912 esac
4913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4914 $as_echo "$ac_try_echo") >&5
4915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4916   ac_status=$?
4917   grep -v '^ *+' conftest.er1 >conftest.err
4918   rm -f conftest.er1
4919   cat conftest.err >&5
4920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); } >/dev/null && {
4922          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4923          test ! -s conftest.err
4924        }; then
4925   # Broken: success on invalid input.
4926 continue
4927 else
4928   $as_echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4930
4931   # Passes both tests.
4932 ac_preproc_ok=:
4933 break
4934 fi
4935
4936 rm -f conftest.err conftest.$ac_ext
4937
4938 done
4939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4940 rm -f conftest.err conftest.$ac_ext
4941 if $ac_preproc_ok; then
4942   break
4943 fi
4944
4945     done
4946     ac_cv_prog_CXXCPP=$CXXCPP
4947
4948 fi
4949   CXXCPP=$ac_cv_prog_CXXCPP
4950 else
4951   ac_cv_prog_CXXCPP=$CXXCPP
4952 fi
4953 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
4954 $as_echo "$CXXCPP" >&6; }
4955 ac_preproc_ok=false
4956 for ac_cxx_preproc_warn_flag in '' yes
4957 do
4958   # Use a header file that comes with gcc, so configuring glibc
4959   # with a fresh cross-compiler works.
4960   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4961   # <limits.h> exists even on freestanding compilers.
4962   # On the NeXT, cc -E runs the code through the compiler's parser,
4963   # not just through cpp. "Syntax error" is here to catch this case.
4964   cat >conftest.$ac_ext <<_ACEOF
4965 /* confdefs.h.  */
4966 _ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h.  */
4970 #ifdef __STDC__
4971 # include <limits.h>
4972 #else
4973 # include <assert.h>
4974 #endif
4975                      Syntax error
4976 _ACEOF
4977 if { (ac_try="$ac_cpp conftest.$ac_ext"
4978 case "(($ac_try" in
4979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980   *) ac_try_echo=$ac_try;;
4981 esac
4982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4983 $as_echo "$ac_try_echo") >&5
4984   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4985   ac_status=$?
4986   grep -v '^ *+' conftest.er1 >conftest.err
4987   rm -f conftest.er1
4988   cat conftest.err >&5
4989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990   (exit $ac_status); } >/dev/null && {
4991          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4992          test ! -s conftest.err
4993        }; then
4994   :
4995 else
4996   $as_echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4998
4999   # Broken: fails on valid input.
5000 continue
5001 fi
5002
5003 rm -f conftest.err conftest.$ac_ext
5004
5005   # OK, works on sane cases.  Now check whether nonexistent headers
5006   # can be detected and how.
5007   cat >conftest.$ac_ext <<_ACEOF
5008 /* confdefs.h.  */
5009 _ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h.  */
5013 #include <ac_nonexistent.h>
5014 _ACEOF
5015 if { (ac_try="$ac_cpp conftest.$ac_ext"
5016 case "(($ac_try" in
5017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018   *) ac_try_echo=$ac_try;;
5019 esac
5020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5021 $as_echo "$ac_try_echo") >&5
5022   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5023   ac_status=$?
5024   grep -v '^ *+' conftest.er1 >conftest.err
5025   rm -f conftest.er1
5026   cat conftest.err >&5
5027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); } >/dev/null && {
5029          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5030          test ! -s conftest.err
5031        }; then
5032   # Broken: success on invalid input.
5033 continue
5034 else
5035   $as_echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5037
5038   # Passes both tests.
5039 ac_preproc_ok=:
5040 break
5041 fi
5042
5043 rm -f conftest.err conftest.$ac_ext
5044
5045 done
5046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5047 rm -f conftest.err conftest.$ac_ext
5048 if $ac_preproc_ok; then
5049   :
5050 else
5051   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5053 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5054 See \`config.log' for more details." >&5
5055 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5056 See \`config.log' for more details." >&2;}
5057    { (exit 1); exit 1; }; }; }
5058 fi
5059
5060 ac_ext=cpp
5061 ac_cpp='$CXXCPP $CPPFLAGS'
5062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5065
5066
5067 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5068 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5069 if test "${ac_cv_path_GREP+set}" = set; then
5070   $as_echo_n "(cached) " >&6
5071 else
5072   if test -z "$GREP"; then
5073   ac_path_GREP_found=false
5074   # Loop through the user's path and test for each of PROGNAME-LIST
5075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5077 do
5078   IFS=$as_save_IFS
5079   test -z "$as_dir" && as_dir=.
5080   for ac_prog in grep ggrep; do
5081     for ac_exec_ext in '' $ac_executable_extensions; do
5082       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5083       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5084 # Check for GNU ac_path_GREP and select it if it is found.
5085   # Check for GNU $ac_path_GREP
5086 case `"$ac_path_GREP" --version 2>&1` in
5087 *GNU*)
5088   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5089 *)
5090   ac_count=0
5091   $as_echo_n 0123456789 >"conftest.in"
5092   while :
5093   do
5094     cat "conftest.in" "conftest.in" >"conftest.tmp"
5095     mv "conftest.tmp" "conftest.in"
5096     cp "conftest.in" "conftest.nl"
5097     $as_echo 'GREP' >> "conftest.nl"
5098     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5099     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5100     ac_count=`expr $ac_count + 1`
5101     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5102       # Best one so far, save it but keep looking for a better one
5103       ac_cv_path_GREP="$ac_path_GREP"
5104       ac_path_GREP_max=$ac_count
5105     fi
5106     # 10*(2^10) chars as input seems more than enough
5107     test $ac_count -gt 10 && break
5108   done
5109   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5110 esac
5111
5112       $ac_path_GREP_found && break 3
5113     done
5114   done
5115 done
5116 IFS=$as_save_IFS
5117   if test -z "$ac_cv_path_GREP"; then
5118     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5119 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5120    { (exit 1); exit 1; }; }
5121   fi
5122 else
5123   ac_cv_path_GREP=$GREP
5124 fi
5125
5126 fi
5127 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5128 $as_echo "$ac_cv_path_GREP" >&6; }
5129  GREP="$ac_cv_path_GREP"
5130
5131
5132 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5133 $as_echo_n "checking for egrep... " >&6; }
5134 if test "${ac_cv_path_EGREP+set}" = set; then
5135   $as_echo_n "(cached) " >&6
5136 else
5137   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5138    then ac_cv_path_EGREP="$GREP -E"
5139    else
5140      if test -z "$EGREP"; then
5141   ac_path_EGREP_found=false
5142   # Loop through the user's path and test for each of PROGNAME-LIST
5143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5145 do
5146   IFS=$as_save_IFS
5147   test -z "$as_dir" && as_dir=.
5148   for ac_prog in egrep; do
5149     for ac_exec_ext in '' $ac_executable_extensions; do
5150       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5151       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5152 # Check for GNU ac_path_EGREP and select it if it is found.
5153   # Check for GNU $ac_path_EGREP
5154 case `"$ac_path_EGREP" --version 2>&1` in
5155 *GNU*)
5156   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5157 *)
5158   ac_count=0
5159   $as_echo_n 0123456789 >"conftest.in"
5160   while :
5161   do
5162     cat "conftest.in" "conftest.in" >"conftest.tmp"
5163     mv "conftest.tmp" "conftest.in"
5164     cp "conftest.in" "conftest.nl"
5165     $as_echo 'EGREP' >> "conftest.nl"
5166     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5167     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5168     ac_count=`expr $ac_count + 1`
5169     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5170       # Best one so far, save it but keep looking for a better one
5171       ac_cv_path_EGREP="$ac_path_EGREP"
5172       ac_path_EGREP_max=$ac_count
5173     fi
5174     # 10*(2^10) chars as input seems more than enough
5175     test $ac_count -gt 10 && break
5176   done
5177   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5178 esac
5179
5180       $ac_path_EGREP_found && break 3
5181     done
5182   done
5183 done
5184 IFS=$as_save_IFS
5185   if test -z "$ac_cv_path_EGREP"; then
5186     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5187 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5188    { (exit 1); exit 1; }; }
5189   fi
5190 else
5191   ac_cv_path_EGREP=$EGREP
5192 fi
5193
5194    fi
5195 fi
5196 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5197 $as_echo "$ac_cv_path_EGREP" >&6; }
5198  EGREP="$ac_cv_path_EGREP"
5199
5200
5201
5202
5203     cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h.  */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h.  */
5209 #ifdef __clang__
5210        yes
5211        #endif
5212
5213 _ACEOF
5214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5215   $EGREP "yes" >/dev/null 2>&1; then
5216   HAS_CLANG=yes
5217 else
5218   HAS_CLANG=no
5219 fi
5220 rm -f conftest*
5221
5222
5223     if test "$HAS_CLANG" = "no"; then
5224         if test "$GCC" = "yes"; then
5225
5226     r="`eval echo '$'"CC"`"
5227     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5228 $as_echo_n "checking $r version... " >&6; }
5229     exe=`
5230     ## which doesn't work in ash, if /usr/bin/which isn't installed
5231     ## type -p doesn't work in ash
5232     ## command -v doesn't work in zsh
5233     ## command -v "$r" 2>&1
5234     ## this test should work in ash, bash, pdksh (ksh), zsh
5235     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5236 `
5237     if test -n ""; then
5238         ver=""
5239     else
5240         ver=`
5241     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5242     ##
5243     ## ARG.
5244     ## Workaround for broken Debian gcc version string:
5245     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5246     ##
5247     ## -V: Workaround for python
5248
5249     #dnl
5250
5251     ## Assume and hunt for dotted version multiplet.
5252     ## use eval trickery, because we cannot use multi-level $() instead of ``
5253     ## for compatibility reasons.
5254
5255     ## grab the first version number in  --version output.
5256     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5257                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5258                 head -n 1 |
5259                 tr ' ' '\n' |
5260                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5261                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5262                 head -n 1\`\"
5263
5264     if test -z "$_ver"; then
5265         ## If empty, try date [fontforge]
5266         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5267             | head -n 1 \
5268             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5269     fi
5270     echo "$_ver"
5271     #dnl
5272 `
5273     fi
5274     num=`
5275     echo "$ver" | awk -F. '
5276     {
5277       if ($3) {three = $3}
5278       else {three = 0}
5279     }
5280     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5281 `
5282     req=`
5283     echo "3.4" | awk -F. '
5284     {
5285       if ($3) {three = $3}
5286       else {three = 0}
5287     }
5288     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5289 `
5290     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5291 $as_echo "$ver" >&6; }
5292     if test "$num" -lt "$req"; then
5293
5294     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5295
5296     fi
5297     vervar="`echo CC | tr 'a-z' 'A-Z'`_VERSION"
5298     eval `echo $vervar=$num`
5299 ##    AC_SUBST(`eval echo $vervar`)
5300
5301         else
5302             warn="$CC (Please install *GNU* cc)"
5303
5304     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5305
5306         fi
5307     fi
5308     # no else, we're fine with any clang
5309
5310
5311
5312     ac_ext=cpp
5313 ac_cpp='$CXXCPP $CPPFLAGS'
5314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5317 if test -z "$CXX"; then
5318   if test -n "$CCC"; then
5319     CXX=$CCC
5320   else
5321     if test -n "$ac_tool_prefix"; then
5322   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5323   do
5324     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if test "${ac_cv_prog_CXX+set}" = set; then
5329   $as_echo_n "(cached) " >&6
5330 else
5331   if test -n "$CXX"; then
5332   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337   IFS=$as_save_IFS
5338   test -z "$as_dir" && as_dir=.
5339   for ac_exec_ext in '' $ac_executable_extensions; do
5340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5342     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5343     break 2
5344   fi
5345 done
5346 done
5347 IFS=$as_save_IFS
5348
5349 fi
5350 fi
5351 CXX=$ac_cv_prog_CXX
5352 if test -n "$CXX"; then
5353   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5354 $as_echo "$CXX" >&6; }
5355 else
5356   { $as_echo "$as_me:$LINENO: result: no" >&5
5357 $as_echo "no" >&6; }
5358 fi
5359
5360
5361     test -n "$CXX" && break
5362   done
5363 fi
5364 if test -z "$CXX"; then
5365   ac_ct_CXX=$CXX
5366   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5367 do
5368   # Extract the first word of "$ac_prog", so it can be a program name with args.
5369 set dummy $ac_prog; ac_word=$2
5370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5373   $as_echo_n "(cached) " >&6
5374 else
5375   if test -n "$ac_ct_CXX"; then
5376   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5377 else
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381   IFS=$as_save_IFS
5382   test -z "$as_dir" && as_dir=.
5383   for ac_exec_ext in '' $ac_executable_extensions; do
5384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385     ac_cv_prog_ac_ct_CXX="$ac_prog"
5386     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387     break 2
5388   fi
5389 done
5390 done
5391 IFS=$as_save_IFS
5392
5393 fi
5394 fi
5395 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5396 if test -n "$ac_ct_CXX"; then
5397   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5398 $as_echo "$ac_ct_CXX" >&6; }
5399 else
5400   { $as_echo "$as_me:$LINENO: result: no" >&5
5401 $as_echo "no" >&6; }
5402 fi
5403
5404
5405   test -n "$ac_ct_CXX" && break
5406 done
5407
5408   if test "x$ac_ct_CXX" = x; then
5409     CXX="g++"
5410   else
5411     case $cross_compiling:$ac_tool_warned in
5412 yes:)
5413 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415 ac_tool_warned=yes ;;
5416 esac
5417     CXX=$ac_ct_CXX
5418   fi
5419 fi
5420
5421   fi
5422 fi
5423 # Provide some information about the compiler.
5424 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5425 set X $ac_compile
5426 ac_compiler=$2
5427 { (ac_try="$ac_compiler --version >&5"
5428 case "(($ac_try" in
5429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430   *) ac_try_echo=$ac_try;;
5431 esac
5432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5433 $as_echo "$ac_try_echo") >&5
5434   (eval "$ac_compiler --version >&5") 2>&5
5435   ac_status=$?
5436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); }
5438 { (ac_try="$ac_compiler -v >&5"
5439 case "(($ac_try" in
5440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441   *) ac_try_echo=$ac_try;;
5442 esac
5443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5444 $as_echo "$ac_try_echo") >&5
5445   (eval "$ac_compiler -v >&5") 2>&5
5446   ac_status=$?
5447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448   (exit $ac_status); }
5449 { (ac_try="$ac_compiler -V >&5"
5450 case "(($ac_try" in
5451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5452   *) ac_try_echo=$ac_try;;
5453 esac
5454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5455 $as_echo "$ac_try_echo") >&5
5456   (eval "$ac_compiler -V >&5") 2>&5
5457   ac_status=$?
5458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); }
5460
5461 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5462 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5463 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5464   $as_echo_n "(cached) " >&6
5465 else
5466   cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h.  */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h.  */
5472
5473 int
5474 main ()
5475 {
5476 #ifndef __GNUC__
5477        choke me
5478 #endif
5479
5480   ;
5481   return 0;
5482 }
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5486 case "(($ac_try" in
5487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488   *) ac_try_echo=$ac_try;;
5489 esac
5490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5491 $as_echo "$ac_try_echo") >&5
5492   (eval "$ac_compile") 2>conftest.er1
5493   ac_status=$?
5494   grep -v '^ *+' conftest.er1 >conftest.err
5495   rm -f conftest.er1
5496   cat conftest.err >&5
5497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); } && {
5499          test -z "$ac_cxx_werror_flag" ||
5500          test ! -s conftest.err
5501        } && test -s conftest.$ac_objext; then
5502   ac_compiler_gnu=yes
5503 else
5504   $as_echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5506
5507         ac_compiler_gnu=no
5508 fi
5509
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5512
5513 fi
5514 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5515 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5516 if test $ac_compiler_gnu = yes; then
5517   GXX=yes
5518 else
5519   GXX=
5520 fi
5521 ac_test_CXXFLAGS=${CXXFLAGS+set}
5522 ac_save_CXXFLAGS=$CXXFLAGS
5523 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5524 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5525 if test "${ac_cv_prog_cxx_g+set}" = set; then
5526   $as_echo_n "(cached) " >&6
5527 else
5528   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5529    ac_cxx_werror_flag=yes
5530    ac_cv_prog_cxx_g=no
5531    CXXFLAGS="-g"
5532    cat >conftest.$ac_ext <<_ACEOF
5533 /* confdefs.h.  */
5534 _ACEOF
5535 cat confdefs.h >>conftest.$ac_ext
5536 cat >>conftest.$ac_ext <<_ACEOF
5537 /* end confdefs.h.  */
5538
5539 int
5540 main ()
5541 {
5542
5543   ;
5544   return 0;
5545 }
5546 _ACEOF
5547 rm -f conftest.$ac_objext
5548 if { (ac_try="$ac_compile"
5549 case "(($ac_try" in
5550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551   *) ac_try_echo=$ac_try;;
5552 esac
5553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5554 $as_echo "$ac_try_echo") >&5
5555   (eval "$ac_compile") 2>conftest.er1
5556   ac_status=$?
5557   grep -v '^ *+' conftest.er1 >conftest.err
5558   rm -f conftest.er1
5559   cat conftest.err >&5
5560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); } && {
5562          test -z "$ac_cxx_werror_flag" ||
5563          test ! -s conftest.err
5564        } && test -s conftest.$ac_objext; then
5565   ac_cv_prog_cxx_g=yes
5566 else
5567   $as_echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5569
5570         CXXFLAGS=""
5571       cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h.  */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h.  */
5577
5578 int
5579 main ()
5580 {
5581
5582   ;
5583   return 0;
5584 }
5585 _ACEOF
5586 rm -f conftest.$ac_objext
5587 if { (ac_try="$ac_compile"
5588 case "(($ac_try" in
5589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590   *) ac_try_echo=$ac_try;;
5591 esac
5592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5593 $as_echo "$ac_try_echo") >&5
5594   (eval "$ac_compile") 2>conftest.er1
5595   ac_status=$?
5596   grep -v '^ *+' conftest.er1 >conftest.err
5597   rm -f conftest.er1
5598   cat conftest.err >&5
5599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); } && {
5601          test -z "$ac_cxx_werror_flag" ||
5602          test ! -s conftest.err
5603        } && test -s conftest.$ac_objext; then
5604   :
5605 else
5606   $as_echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5608
5609         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5610          CXXFLAGS="-g"
5611          cat >conftest.$ac_ext <<_ACEOF
5612 /* confdefs.h.  */
5613 _ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h.  */
5617
5618 int
5619 main ()
5620 {
5621
5622   ;
5623   return 0;
5624 }
5625 _ACEOF
5626 rm -f conftest.$ac_objext
5627 if { (ac_try="$ac_compile"
5628 case "(($ac_try" in
5629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630   *) ac_try_echo=$ac_try;;
5631 esac
5632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5633 $as_echo "$ac_try_echo") >&5
5634   (eval "$ac_compile") 2>conftest.er1
5635   ac_status=$?
5636   grep -v '^ *+' conftest.er1 >conftest.err
5637   rm -f conftest.er1
5638   cat conftest.err >&5
5639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); } && {
5641          test -z "$ac_cxx_werror_flag" ||
5642          test ! -s conftest.err
5643        } && test -s conftest.$ac_objext; then
5644   ac_cv_prog_cxx_g=yes
5645 else
5646   $as_echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5648
5649
5650 fi
5651
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 fi
5654
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 fi
5657
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5660 fi
5661 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5662 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5663 if test "$ac_test_CXXFLAGS" = set; then
5664   CXXFLAGS=$ac_save_CXXFLAGS
5665 elif test $ac_cv_prog_cxx_g = yes; then
5666   if test "$GXX" = yes; then
5667     CXXFLAGS="-g -O2"
5668   else
5669     CXXFLAGS="-g"
5670   fi
5671 else
5672   if test "$GXX" = yes; then
5673     CXXFLAGS="-O2"
5674   else
5675     CXXFLAGS=
5676   fi
5677 fi
5678 ac_ext=cpp
5679 ac_cpp='$CXXCPP $CPPFLAGS'
5680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5683
5684
5685
5686     r="`eval echo '$'"CXX"`"
5687     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
5688         true
5689     else
5690         ##STEPMAKE_WARN(cannot find . )
5691         false
5692     fi
5693
5694     if test $? -ne 0; then
5695
5696     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
5697
5698         if test "REQUIRED" = "REQUIRED"; then
5699             command="echo ERROR: c++ not found"
5700             # abort configure process here?
5701         else
5702             command="- echo c++ not found"
5703         fi
5704         eval "CXX"='$command'
5705         false
5706     else
5707         true
5708     fi
5709
5710
5711     CXXFLAGS="$CXXFLAGS $OPTIMIZE"
5712     LD='$(CXX)'
5713
5714
5715
5716
5717
5718
5719
5720     cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h.  */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h.  */
5726 #ifdef __clang__
5727        yes
5728        #endif
5729
5730 _ACEOF
5731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5732   $EGREP "yes" >/dev/null 2>&1; then
5733   HAS_CLANG=yes
5734 else
5735   HAS_CLANG=no
5736 fi
5737 rm -f conftest*
5738
5739
5740     if test "$HAS_CLANG" = "no"; then
5741         if test "$GXX" = "yes"; then
5742
5743     r="`eval echo '$'"CXX"`"
5744     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5745 $as_echo_n "checking $r version... " >&6; }
5746     exe=`
5747     ## which doesn't work in ash, if /usr/bin/which isn't installed
5748     ## type -p doesn't work in ash
5749     ## command -v doesn't work in zsh
5750     ## command -v "$r" 2>&1
5751     ## this test should work in ash, bash, pdksh (ksh), zsh
5752     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5753 `
5754     if test -n ""; then
5755         ver=""
5756     else
5757         ver=`
5758     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5759     ##
5760     ## ARG.
5761     ## Workaround for broken Debian gcc version string:
5762     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5763     ##
5764     ## -V: Workaround for python
5765
5766     #dnl
5767
5768     ## Assume and hunt for dotted version multiplet.
5769     ## use eval trickery, because we cannot use multi-level $() instead of ``
5770     ## for compatibility reasons.
5771
5772     ## grab the first version number in  --version output.
5773     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5774                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5775                 head -n 1 |
5776                 tr ' ' '\n' |
5777                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5778                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5779                 head -n 1\`\"
5780
5781     if test -z "$_ver"; then
5782         ## If empty, try date [fontforge]
5783         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5784             | head -n 1 \
5785             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5786     fi
5787     echo "$_ver"
5788     #dnl
5789 `
5790     fi
5791     num=`
5792     echo "$ver" | awk -F. '
5793     {
5794       if ($3) {three = $3}
5795       else {three = 0}
5796     }
5797     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5798 `
5799     req=`
5800     echo "3.4" | awk -F. '
5801     {
5802       if ($3) {three = $3}
5803       else {three = 0}
5804     }
5805     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5806 `
5807     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5808 $as_echo "$ver" >&6; }
5809     if test "$num" -lt "$req"; then
5810
5811     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5812
5813     fi
5814     vervar="`echo CXX | tr 'a-z' 'A-Z'`_VERSION"
5815     eval `echo $vervar=$num`
5816 ##    AC_SUBST(`eval echo $vervar`)
5817
5818         else
5819             warn="$CXX (Please install *GNU* c++)"
5820
5821     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5822
5823         fi
5824     fi
5825     # no else, we're fine with any clang
5826
5827
5828     { $as_echo "$as_me:$LINENO: checking options for known g++ bugs" >&5
5829 $as_echo_n "checking options for known g++ bugs... " >&6; }
5830     case "$GXX:$CXX_VERSION" in
5831         yes:400600[0-2])
5832             { $as_echo "$as_me:$LINENO: result: -fno-optimize-sibling-calls (tail call bug)" >&5
5833 $as_echo "-fno-optimize-sibling-calls (tail call bug)" >&6; }
5834             CXXFLAGS="$CXXFLAGS -fno-optimize-sibling-calls"
5835             ;;
5836         yes:400700?)
5837             { $as_echo "$as_me:$LINENO: result: -fno-tree-vrp (comparison bug)" >&5
5838 $as_echo "-fno-tree-vrp (comparison bug)" >&6; }
5839             CXXFLAGS="$CXXFLAGS -fno-tree-vrp"
5840             ;;
5841         *) { $as_echo "$as_me:$LINENO: result: none" >&5
5842 $as_echo "none" >&6; }
5843     esac
5844
5845
5846
5847     { $as_echo "$as_me:$LINENO: checking whether explicit instantiation is needed" >&5
5848 $as_echo_n "checking whether explicit instantiation is needed... " >&6; }
5849 if test "${stepmake_cv_need_explicit_instantiation+set}" = set; then
5850   $as_echo_n "(cached) " >&6
5851 else
5852   cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h.  */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h.  */
5858
5859     template <class T> struct foo { static int baz; };
5860     template <class T> int foo<T>::baz = 1;
5861
5862 int
5863 main ()
5864 {
5865  return foo<int>::baz;
5866   ;
5867   return 0;
5868 }
5869 _ACEOF
5870 rm -f conftest.$ac_objext conftest$ac_exeext
5871 if { (ac_try="$ac_link"
5872 case "(($ac_try" in
5873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874   *) ac_try_echo=$ac_try;;
5875 esac
5876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5877 $as_echo "$ac_try_echo") >&5
5878   (eval "$ac_link") 2>conftest.er1
5879   ac_status=$?
5880   grep -v '^ *+' conftest.er1 >conftest.err
5881   rm -f conftest.er1
5882   cat conftest.err >&5
5883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); } && {
5885          test -z "$ac_cxx_werror_flag" ||
5886          test ! -s conftest.err
5887        } && test -s conftest$ac_exeext && {
5888          test "$cross_compiling" = yes ||
5889          $as_test_x conftest$ac_exeext
5890        }; then
5891   stepmake_cv_need_explicit_instantiation=no
5892 else
5893   $as_echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5895
5896         stepmake_cv_need_explicit_instantiation=yes
5897 fi
5898
5899 rm -rf conftest.dSYM
5900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5901       conftest$ac_exeext conftest.$ac_ext
5902 fi
5903 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_need_explicit_instantiation" >&5
5904 $as_echo "$stepmake_cv_need_explicit_instantiation" >&6; }
5905     if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
5906         cat >>confdefs.h <<\_ACEOF
5907 #define NEED_EXPLICIT_INSTANTIATION 1
5908 _ACEOF
5909
5910     fi
5911
5912
5913     { $as_echo "$as_me:$LINENO: checking for stl.data () method" >&5
5914 $as_echo_n "checking for stl.data () method... " >&6; }
5915 if test "${stepmake_cv_stl_data_method+set}" = set; then
5916   $as_echo_n "(cached) " >&6
5917 else
5918   cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h.  */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h.  */
5924
5925 #include <vector>
5926 using namespace std;
5927 vector <int> v;
5928 void *p = v.data ();
5929
5930 int
5931 main ()
5932 {
5933
5934   ;
5935   return 0;
5936 }
5937 _ACEOF
5938 rm -f conftest.$ac_objext
5939 if { (ac_try="$ac_compile"
5940 case "(($ac_try" in
5941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942   *) ac_try_echo=$ac_try;;
5943 esac
5944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5945 $as_echo "$ac_try_echo") >&5
5946   (eval "$ac_compile") 2>conftest.er1
5947   ac_status=$?
5948   grep -v '^ *+' conftest.er1 >conftest.err
5949   rm -f conftest.er1
5950   cat conftest.err >&5
5951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); } && {
5953          test -z "$ac_cxx_werror_flag" ||
5954          test ! -s conftest.err
5955        } && test -s conftest.$ac_objext; then
5956   stepmake_cv_stl_data_method=yes
5957 else
5958   $as_echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5960
5961         stepmake_cv_stl_data_method=no
5962 fi
5963
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 fi
5966 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_stl_data_method" >&5
5967 $as_echo "$stepmake_cv_stl_data_method" >&6; }
5968     if test $stepmake_cv_stl_data_method = yes; then
5969
5970 cat >>confdefs.h <<\_ACEOF
5971 #define HAVE_STL_DATA_METHOD 1
5972 _ACEOF
5973
5974     fi
5975
5976
5977
5978     for ac_prog in ar
5979 do
5980   # Extract the first word of "$ac_prog", so it can be a program name with args.
5981 set dummy $ac_prog; ac_word=$2
5982 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 $as_echo_n "checking for $ac_word... " >&6; }
5984 if test "${ac_cv_prog_AR+set}" = set; then
5985   $as_echo_n "(cached) " >&6
5986 else
5987   if test -n "$AR"; then
5988   ac_cv_prog_AR="$AR" # Let the user override the test.
5989 else
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH
5992 do
5993   IFS=$as_save_IFS
5994   test -z "$as_dir" && as_dir=.
5995   for ac_exec_ext in '' $ac_executable_extensions; do
5996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997     ac_cv_prog_AR="$ac_prog"
5998     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999     break 2
6000   fi
6001 done
6002 done
6003 IFS=$as_save_IFS
6004
6005 fi
6006 fi
6007 AR=$ac_cv_prog_AR
6008 if test -n "$AR"; then
6009   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6010 $as_echo "$AR" >&6; }
6011 else
6012   { $as_echo "$as_me:$LINENO: result: no" >&5
6013 $as_echo "no" >&6; }
6014 fi
6015
6016
6017   test -n "$AR" && break
6018 done
6019 test -n "$AR" || AR="no"
6020
6021
6022
6023     r="`eval echo '$'"AR"`"
6024     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
6025         true
6026     else
6027         ##STEPMAKE_WARN(cannot find . )
6028         false
6029     fi
6030
6031     if test $? -ne 0; then
6032
6033     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
6034
6035         if test "REQUIRED" = "REQUIRED"; then
6036             command="echo ERROR: ar not found"
6037             # abort configure process here?
6038         else
6039             command="- echo ar not found"
6040         fi
6041         eval "AR"='$command'
6042         false
6043     else
6044         true
6045     fi
6046
6047     if test $? -eq 0 -a -n ""; then
6048
6049     r="`eval echo '$'"AR"`"
6050     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6051 $as_echo_n "checking $r version... " >&6; }
6052     exe=`
6053     ## which doesn't work in ash, if /usr/bin/which isn't installed
6054     ## type -p doesn't work in ash
6055     ## command -v doesn't work in zsh
6056     ## command -v "$r" 2>&1
6057     ## this test should work in ash, bash, pdksh (ksh), zsh
6058     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6059 `
6060     if test -n ""; then
6061         ver=""
6062     else
6063         ver=`
6064     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6065     ##
6066     ## ARG.
6067     ## Workaround for broken Debian gcc version string:
6068     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6069     ##
6070     ## -V: Workaround for python
6071
6072     #dnl
6073
6074     ## Assume and hunt for dotted version multiplet.
6075     ## use eval trickery, because we cannot use multi-level $() instead of ``
6076     ## for compatibility reasons.
6077
6078     ## grab the first version number in  --version output.
6079     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6080                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6081                 head -n 1 |
6082                 tr ' ' '\n' |
6083                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6084                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6085                 head -n 1\`\"
6086
6087     if test -z "$_ver"; then
6088         ## If empty, try date [fontforge]
6089         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6090             | head -n 1 \
6091             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6092     fi
6093     echo "$_ver"
6094     #dnl
6095 `
6096     fi
6097     num=`
6098     echo "$ver" | awk -F. '
6099     {
6100       if ($3) {three = $3}
6101       else {three = 0}
6102     }
6103     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6104 `
6105     req=`
6106     echo "" | awk -F. '
6107     {
6108       if ($3) {three = $3}
6109       else {three = 0}
6110     }
6111     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6112 `
6113     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6114 $as_echo "$ver" >&6; }
6115     if test "$num" -lt "$req"; then
6116
6117     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6118
6119     fi
6120     vervar="`echo AR | tr 'a-z' 'A-Z'`_VERSION"
6121     eval `echo $vervar=$num`
6122 ##    AC_SUBST(`eval echo $vervar`)
6123
6124     fi
6125
6126     if test -n "$ac_tool_prefix"; then
6127   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if test "${ac_cv_prog_RANLIB+set}" = set; then
6132   $as_echo_n "(cached) " >&6
6133 else
6134   if test -n "$RANLIB"; then
6135   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140   IFS=$as_save_IFS
6141   test -z "$as_dir" && as_dir=.
6142   for ac_exec_ext in '' $ac_executable_extensions; do
6143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6145     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146     break 2
6147   fi
6148 done
6149 done
6150 IFS=$as_save_IFS
6151
6152 fi
6153 fi
6154 RANLIB=$ac_cv_prog_RANLIB
6155 if test -n "$RANLIB"; then
6156   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6157 $as_echo "$RANLIB" >&6; }
6158 else
6159   { $as_echo "$as_me:$LINENO: result: no" >&5
6160 $as_echo "no" >&6; }
6161 fi
6162
6163
6164 fi
6165 if test -z "$ac_cv_prog_RANLIB"; then
6166   ac_ct_RANLIB=$RANLIB
6167   # Extract the first word of "ranlib", so it can be a program name with args.
6168 set dummy ranlib; ac_word=$2
6169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6172   $as_echo_n "(cached) " >&6
6173 else
6174   if test -n "$ac_ct_RANLIB"; then
6175   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180   IFS=$as_save_IFS
6181   test -z "$as_dir" && as_dir=.
6182   for ac_exec_ext in '' $ac_executable_extensions; do
6183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184     ac_cv_prog_ac_ct_RANLIB="ranlib"
6185     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186     break 2
6187   fi
6188 done
6189 done
6190 IFS=$as_save_IFS
6191
6192 fi
6193 fi
6194 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6195 if test -n "$ac_ct_RANLIB"; then
6196   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6197 $as_echo "$ac_ct_RANLIB" >&6; }
6198 else
6199   { $as_echo "$as_me:$LINENO: result: no" >&5
6200 $as_echo "no" >&6; }
6201 fi
6202
6203   if test "x$ac_ct_RANLIB" = x; then
6204     RANLIB=":"
6205   else
6206     case $cross_compiling:$ac_tool_warned in
6207 yes:)
6208 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210 ac_tool_warned=yes ;;
6211 esac
6212     RANLIB=$ac_ct_RANLIB
6213   fi
6214 else
6215   RANLIB="$ac_cv_prog_RANLIB"
6216 fi
6217
6218
6219
6220     r="`eval echo '$'"RANLIB"`"
6221     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
6222         true
6223     else
6224         ##STEPMAKE_WARN(cannot find . )
6225         false
6226     fi
6227
6228     if test $? -ne 0; then
6229
6230     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
6231
6232         if test "REQUIRED" = "REQUIRED"; then
6233             command="echo ERROR: ranlib not found"
6234             # abort configure process here?
6235         else
6236             command="- echo ranlib not found"
6237         fi
6238         eval "RANLIB"='$command'
6239         false
6240     else
6241         true
6242     fi
6243
6244
6245
6246
6247 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6248 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6249 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6250   $as_echo_n "(cached) " >&6
6251 else
6252   ac_check_lib_save_LIBS=$LIBS
6253 LIBS="-ldl  $LIBS"
6254 cat >conftest.$ac_ext <<_ACEOF
6255 /* confdefs.h.  */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h.  */
6260
6261 /* Override any GCC internal prototype to avoid an error.
6262    Use char because int might match the return type of a GCC
6263    builtin and then its argument prototype would still apply.  */
6264 #ifdef __cplusplus
6265 extern "C"
6266 #endif
6267 char dlopen ();
6268 int
6269 main ()
6270 {
6271 return dlopen ();
6272   ;
6273   return 0;
6274 }
6275 _ACEOF
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (ac_try="$ac_link"
6278 case "(($ac_try" in
6279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280   *) ac_try_echo=$ac_try;;
6281 esac
6282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6283 $as_echo "$ac_try_echo") >&5
6284   (eval "$ac_link") 2>conftest.er1
6285   ac_status=$?
6286   grep -v '^ *+' conftest.er1 >conftest.err
6287   rm -f conftest.er1
6288   cat conftest.err >&5
6289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); } && {
6291          test -z "$ac_cxx_werror_flag" ||
6292          test ! -s conftest.err
6293        } && test -s conftest$ac_exeext && {
6294          test "$cross_compiling" = yes ||
6295          $as_test_x conftest$ac_exeext
6296        }; then
6297   ac_cv_lib_dl_dlopen=yes
6298 else
6299   $as_echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302         ac_cv_lib_dl_dlopen=no
6303 fi
6304
6305 rm -rf conftest.dSYM
6306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6307       conftest$ac_exeext conftest.$ac_ext
6308 LIBS=$ac_check_lib_save_LIBS
6309 fi
6310 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6311 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6312 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
6313   cat >>confdefs.h <<_ACEOF
6314 #define HAVE_LIBDL 1
6315 _ACEOF
6316
6317   LIBS="-ldl $LIBS"
6318
6319 fi
6320
6321
6322 for ac_func in dlopen
6323 do
6324 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6325 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6326 $as_echo_n "checking for $ac_func... " >&6; }
6327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6328   $as_echo_n "(cached) " >&6
6329 else
6330   cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h.  */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h.  */
6336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6338 #define $ac_func innocuous_$ac_func
6339
6340 /* System header to define __stub macros and hopefully few prototypes,
6341     which can conflict with char $ac_func (); below.
6342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6343     <limits.h> exists even on freestanding compilers.  */
6344
6345 #ifdef __STDC__
6346 # include <limits.h>
6347 #else
6348 # include <assert.h>
6349 #endif
6350
6351 #undef $ac_func
6352
6353 /* Override any GCC internal prototype to avoid an error.
6354    Use char because int might match the return type of a GCC
6355    builtin and then its argument prototype would still apply.  */
6356 #ifdef __cplusplus
6357 extern "C"
6358 #endif
6359 char $ac_func ();
6360 /* The GNU C library defines this for functions which it implements
6361     to always fail with ENOSYS.  Some functions are actually named
6362     something starting with __ and the normal name is an alias.  */
6363 #if defined __stub_$ac_func || defined __stub___$ac_func
6364 choke me
6365 #endif
6366
6367 int
6368 main ()
6369 {
6370 return $ac_func ();
6371   ;
6372   return 0;
6373 }
6374 _ACEOF
6375 rm -f conftest.$ac_objext conftest$ac_exeext
6376 if { (ac_try="$ac_link"
6377 case "(($ac_try" in
6378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379   *) ac_try_echo=$ac_try;;
6380 esac
6381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6382 $as_echo "$ac_try_echo") >&5
6383   (eval "$ac_link") 2>conftest.er1
6384   ac_status=$?
6385   grep -v '^ *+' conftest.er1 >conftest.err
6386   rm -f conftest.er1
6387   cat conftest.err >&5
6388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389   (exit $ac_status); } && {
6390          test -z "$ac_cxx_werror_flag" ||
6391          test ! -s conftest.err
6392        } && test -s conftest$ac_exeext && {
6393          test "$cross_compiling" = yes ||
6394          $as_test_x conftest$ac_exeext
6395        }; then
6396   eval "$as_ac_var=yes"
6397 else
6398   $as_echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6400
6401         eval "$as_ac_var=no"
6402 fi
6403
6404 rm -rf conftest.dSYM
6405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6406       conftest$ac_exeext conftest.$ac_ext
6407 fi
6408 ac_res=`eval 'as_val=${'$as_ac_var'}
6409                  $as_echo "$as_val"'`
6410                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6411 $as_echo "$ac_res" >&6; }
6412 as_val=`eval 'as_val=${'$as_ac_var'}
6413                  $as_echo "$as_val"'`
6414    if test "x$as_val" = x""yes; then
6415   cat >>confdefs.h <<_ACEOF
6416 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6417 _ACEOF
6418
6419 fi
6420 done
6421
6422
6423 # Do not use bison 1.50 and 1.75.
6424 # 1.29 is required fr %locations, but I'm not sure it's enough --ns
6425
6426     # ugh, automake: we want (and check for) bison
6427     for ac_prog in 'bison -y' byacc
6428 do
6429   # Extract the first word of "$ac_prog", so it can be a program name with args.
6430 set dummy $ac_prog; ac_word=$2
6431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if test "${ac_cv_prog_YACC+set}" = set; then
6434   $as_echo_n "(cached) " >&6
6435 else
6436   if test -n "$YACC"; then
6437   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6441 do
6442   IFS=$as_save_IFS
6443   test -z "$as_dir" && as_dir=.
6444   for ac_exec_ext in '' $ac_executable_extensions; do
6445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446     ac_cv_prog_YACC="$ac_prog"
6447     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6448     break 2
6449   fi
6450 done
6451 done
6452 IFS=$as_save_IFS
6453
6454 fi
6455 fi
6456 YACC=$ac_cv_prog_YACC
6457 if test -n "$YACC"; then
6458   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6459 $as_echo "$YACC" >&6; }
6460 else
6461   { $as_echo "$as_me:$LINENO: result: no" >&5
6462 $as_echo "no" >&6; }
6463 fi
6464
6465
6466   test -n "$YACC" && break
6467 done
6468 test -n "$YACC" || YACC="yacc"
6469
6470
6471
6472     for ac_prog in bison
6473 do
6474   # Extract the first word of "$ac_prog", so it can be a program name with args.
6475 set dummy $ac_prog; ac_word=$2
6476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if test "${ac_cv_prog_BISON+set}" = set; then
6479   $as_echo_n "(cached) " >&6
6480 else
6481   if test -n "$BISON"; then
6482   ac_cv_prog_BISON="$BISON" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487   IFS=$as_save_IFS
6488   test -z "$as_dir" && as_dir=.
6489   for ac_exec_ext in '' $ac_executable_extensions; do
6490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491     ac_cv_prog_BISON="$ac_prog"
6492     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493     break 2
6494   fi
6495 done
6496 done
6497 IFS=$as_save_IFS
6498
6499 fi
6500 fi
6501 BISON=$ac_cv_prog_BISON
6502 if test -n "$BISON"; then
6503   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6504 $as_echo "$BISON" >&6; }
6505 else
6506   { $as_echo "$as_me:$LINENO: result: no" >&5
6507 $as_echo "no" >&6; }
6508 fi
6509
6510
6511   test -n "$BISON" && break
6512 done
6513 test -n "$BISON" || BISON="no"
6514
6515
6516
6517     r="`eval echo '$'"BISON"`"
6518     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
6519         true
6520     else
6521         ##STEPMAKE_WARN(cannot find . )
6522         false
6523     fi
6524
6525     if test $? -ne 0; then
6526
6527     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"bison\"`\"
6528
6529         if test "OPTIONAL" = "REQUIRED"; then
6530             command="echo ERROR: bison not found"
6531             # abort configure process here?
6532         else
6533             command="- echo bison not found"
6534         fi
6535         eval "BISON"='$command'
6536         false
6537     else
6538         true
6539     fi
6540
6541     if test $? -eq 0 -a -n ""; then
6542
6543     r="`eval echo '$'"BISON"`"
6544     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6545 $as_echo_n "checking $r version... " >&6; }
6546     exe=`
6547     ## which doesn't work in ash, if /usr/bin/which isn't installed
6548     ## type -p doesn't work in ash
6549     ## command -v doesn't work in zsh
6550     ## command -v "$r" 2>&1
6551     ## this test should work in ash, bash, pdksh (ksh), zsh
6552     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6553 `
6554     if test -n ""; then
6555         ver=""
6556     else
6557         ver=`
6558     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6559     ##
6560     ## ARG.
6561     ## Workaround for broken Debian gcc version string:
6562     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6563     ##
6564     ## -V: Workaround for python
6565
6566     #dnl
6567
6568     ## Assume and hunt for dotted version multiplet.
6569     ## use eval trickery, because we cannot use multi-level $() instead of ``
6570     ## for compatibility reasons.
6571
6572     ## grab the first version number in  --version output.
6573     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6574                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6575                 head -n 1 |
6576                 tr ' ' '\n' |
6577                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6578                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6579                 head -n 1\`\"
6580
6581     if test -z "$_ver"; then
6582         ## If empty, try date [fontforge]
6583         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6584             | head -n 1 \
6585             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6586     fi
6587     echo "$_ver"
6588     #dnl
6589 `
6590     fi
6591     num=`
6592     echo "$ver" | awk -F. '
6593     {
6594       if ($3) {three = $3}
6595       else {three = 0}
6596     }
6597     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6598 `
6599     req=`
6600     echo "" | awk -F. '
6601     {
6602       if ($3) {three = $3}
6603       else {three = 0}
6604     }
6605     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6606 `
6607     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6608 $as_echo "$ver" >&6; }
6609     if test "$num" -lt "$req"; then
6610
6611     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
6612
6613     fi
6614     vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6615     eval `echo $vervar=$num`
6616 ##    AC_SUBST(`eval echo $vervar`)
6617
6618     fi
6619
6620
6621     # urg.  should test functionality rather than version.
6622     if test "$BISON" = "bison" -a -n "1.29"; then
6623
6624     r="`eval echo '$'"BISON"`"
6625     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6626 $as_echo_n "checking $r version... " >&6; }
6627     exe=`
6628     ## which doesn't work in ash, if /usr/bin/which isn't installed
6629     ## type -p doesn't work in ash
6630     ## command -v doesn't work in zsh
6631     ## command -v "$r" 2>&1
6632     ## this test should work in ash, bash, pdksh (ksh), zsh
6633     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6634 `
6635     if test -n ""; then
6636         ver=""
6637     else
6638         ver=`
6639     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6640     ##
6641     ## ARG.
6642     ## Workaround for broken Debian gcc version string:
6643     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6644     ##
6645     ## -V: Workaround for python
6646
6647     #dnl
6648
6649     ## Assume and hunt for dotted version multiplet.
6650     ## use eval trickery, because we cannot use multi-level $() instead of ``
6651     ## for compatibility reasons.
6652
6653     ## grab the first version number in  --version output.
6654     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6655                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6656                 head -n 1 |
6657                 tr ' ' '\n' |
6658                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6659                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6660                 head -n 1\`\"
6661
6662     if test -z "$_ver"; then
6663         ## If empty, try date [fontforge]
6664         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6665             | head -n 1 \
6666             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6667     fi
6668     echo "$_ver"
6669     #dnl
6670 `
6671     fi
6672     num=`
6673     echo "$ver" | awk -F. '
6674     {
6675       if ($3) {three = $3}
6676       else {three = 0}
6677     }
6678     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6679 `
6680     req=`
6681     echo "1.29" | awk -F. '
6682     {
6683       if ($3) {three = $3}
6684       else {three = 0}
6685     }
6686     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6687 `
6688     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6689 $as_echo "$ver" >&6; }
6690     if test "$num" -lt "$req"; then
6691
6692     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 1.29 (installed: $ver)"\"`\"
6693
6694     fi
6695     vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6696     eval `echo $vervar=$num`
6697 ##    AC_SUBST(`eval echo $vervar`)
6698
6699     fi
6700
6701
6702     # ugh, automake: we want (and check for) flex
6703     # AC_PROG_LEX
6704     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
6705
6706     # AC_PROG_LEX()
6707     # ugh, ugh
6708     ac_cv_prog_lex_root=lex.yy
6709
6710     for ac_prog in flex
6711 do
6712   # Extract the first word of "$ac_prog", so it can be a program name with args.
6713 set dummy $ac_prog; ac_word=$2
6714 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if test "${ac_cv_prog_FLEX+set}" = set; then
6717   $as_echo_n "(cached) " >&6
6718 else
6719   if test -n "$FLEX"; then
6720   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725   IFS=$as_save_IFS
6726   test -z "$as_dir" && as_dir=.
6727   for ac_exec_ext in '' $ac_executable_extensions; do
6728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6729     ac_cv_prog_FLEX="$ac_prog"
6730     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731     break 2
6732   fi
6733 done
6734 done
6735 IFS=$as_save_IFS
6736
6737 fi
6738 fi
6739 FLEX=$ac_cv_prog_FLEX
6740 if test -n "$FLEX"; then
6741   { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
6742 $as_echo "$FLEX" >&6; }
6743 else
6744   { $as_echo "$as_me:$LINENO: result: no" >&5
6745 $as_echo "no" >&6; }
6746 fi
6747
6748
6749   test -n "$FLEX" && break
6750 done
6751 test -n "$FLEX" || FLEX="no"
6752
6753
6754
6755     r="`eval echo '$'"FLEX"`"
6756     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
6757         true
6758     else
6759         ##STEPMAKE_WARN(cannot find . )
6760         false
6761     fi
6762
6763     if test $? -ne 0; then
6764
6765     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
6766
6767         if test "REQUIRED" = "REQUIRED"; then
6768             command="echo ERROR: flex not found"
6769             # abort configure process here?
6770         else
6771             command="- echo flex not found"
6772         fi
6773         eval "FLEX"='$command'
6774         false
6775     else
6776         true
6777     fi
6778
6779     if test $? -eq 0 -a -n ""; then
6780
6781     r="`eval echo '$'"FLEX"`"
6782     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6783 $as_echo_n "checking $r version... " >&6; }
6784     exe=`
6785     ## which doesn't work in ash, if /usr/bin/which isn't installed
6786     ## type -p doesn't work in ash
6787     ## command -v doesn't work in zsh
6788     ## command -v "$r" 2>&1
6789     ## this test should work in ash, bash, pdksh (ksh), zsh
6790     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6791 `
6792     if test -n ""; then
6793         ver=""
6794     else
6795         ver=`
6796     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6797     ##
6798     ## ARG.
6799     ## Workaround for broken Debian gcc version string:
6800     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6801     ##
6802     ## -V: Workaround for python
6803
6804     #dnl
6805
6806     ## Assume and hunt for dotted version multiplet.
6807     ## use eval trickery, because we cannot use multi-level $() instead of ``
6808     ## for compatibility reasons.
6809
6810     ## grab the first version number in  --version output.
6811     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6812                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6813                 head -n 1 |
6814                 tr ' ' '\n' |
6815                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6816                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6817                 head -n 1\`\"
6818
6819     if test -z "$_ver"; then
6820         ## If empty, try date [fontforge]
6821         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6822             | head -n 1 \
6823             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6824     fi
6825     echo "$_ver"
6826     #dnl
6827 `
6828     fi
6829     num=`
6830     echo "$ver" | awk -F. '
6831     {
6832       if ($3) {three = $3}
6833       else {three = 0}
6834     }
6835     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6836 `
6837     req=`
6838     echo "" | awk -F. '
6839     {
6840       if ($3) {three = $3}
6841       else {three = 0}
6842     }
6843     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6844 `
6845     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6846 $as_echo "$ver" >&6; }
6847     if test "$num" -lt "$req"; then
6848
6849     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6850
6851     fi
6852     vervar="`echo FLEX | tr 'a-z' 'A-Z'`_VERSION"
6853     eval `echo $vervar=$num`
6854 ##    AC_SUBST(`eval echo $vervar`)
6855
6856     fi
6857
6858
6859 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6860 $as_echo_n "checking for ANSI C header files... " >&6; }
6861 if test "${ac_cv_header_stdc+set}" = set; then
6862   $as_echo_n "(cached) " >&6
6863 else
6864   cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h.  */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h.  */
6870 #include <stdlib.h>
6871 #include <stdarg.h>
6872 #include <string.h>
6873 #include <float.h>
6874
6875 int
6876 main ()
6877 {
6878
6879   ;
6880   return 0;
6881 }
6882 _ACEOF
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6885 case "(($ac_try" in
6886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887   *) ac_try_echo=$ac_try;;
6888 esac
6889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6890 $as_echo "$ac_try_echo") >&5
6891   (eval "$ac_compile") 2>conftest.er1
6892   ac_status=$?
6893   grep -v '^ *+' conftest.er1 >conftest.err
6894   rm -f conftest.er1
6895   cat conftest.err >&5
6896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); } && {
6898          test -z "$ac_cxx_werror_flag" ||
6899          test ! -s conftest.err
6900        } && test -s conftest.$ac_objext; then
6901   ac_cv_header_stdc=yes
6902 else
6903   $as_echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6905
6906         ac_cv_header_stdc=no
6907 fi
6908
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910
6911 if test $ac_cv_header_stdc = yes; then
6912   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6913   cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h.  */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h.  */
6919 #include <string.h>
6920
6921 _ACEOF
6922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6923   $EGREP "memchr" >/dev/null 2>&1; then
6924   :
6925 else
6926   ac_cv_header_stdc=no
6927 fi
6928 rm -f conftest*
6929
6930 fi
6931
6932 if test $ac_cv_header_stdc = yes; then
6933   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6934   cat >conftest.$ac_ext <<_ACEOF
6935 /* confdefs.h.  */
6936 _ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h.  */
6940 #include <stdlib.h>
6941
6942 _ACEOF
6943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6944   $EGREP "free" >/dev/null 2>&1; then
6945   :
6946 else
6947   ac_cv_header_stdc=no
6948 fi
6949 rm -f conftest*
6950
6951 fi
6952
6953 if test $ac_cv_header_stdc = yes; then
6954   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6955   if test "$cross_compiling" = yes; then
6956   :
6957 else
6958   cat >conftest.$ac_ext <<_ACEOF
6959 /* confdefs.h.  */
6960 _ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h.  */
6964 #include <ctype.h>
6965 #include <stdlib.h>
6966 #if ((' ' & 0x0FF) == 0x020)
6967 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6968 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6969 #else
6970 # define ISLOWER(c) \
6971                    (('a' <= (c) && (c) <= 'i') \
6972                      || ('j' <= (c) && (c) <= 'r') \
6973                      || ('s' <= (c) && (c) <= 'z'))
6974 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6975 #endif
6976
6977 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6978 int
6979 main ()
6980 {
6981   int i;
6982   for (i = 0; i < 256; i++)
6983     if (XOR (islower (i), ISLOWER (i))
6984         || toupper (i) != TOUPPER (i))
6985       return 2;
6986   return 0;
6987 }
6988 _ACEOF
6989 rm -f conftest$ac_exeext
6990 if { (ac_try="$ac_link"
6991 case "(($ac_try" in
6992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993   *) ac_try_echo=$ac_try;;
6994 esac
6995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6996 $as_echo "$ac_try_echo") >&5
6997   (eval "$ac_link") 2>&5
6998   ac_status=$?
6999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7001   { (case "(($ac_try" in
7002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003   *) ac_try_echo=$ac_try;;
7004 esac
7005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7006 $as_echo "$ac_try_echo") >&5
7007   (eval "$ac_try") 2>&5
7008   ac_status=$?
7009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); }; }; then
7011   :
7012 else
7013   $as_echo "$as_me: program exited with status $ac_status" >&5
7014 $as_echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7016
7017 ( exit $ac_status )
7018 ac_cv_header_stdc=no
7019 fi
7020 rm -rf conftest.dSYM
7021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7022 fi
7023
7024
7025 fi
7026 fi
7027 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7028 $as_echo "$ac_cv_header_stdc" >&6; }
7029 if test $ac_cv_header_stdc = yes; then
7030
7031 cat >>confdefs.h <<\_ACEOF
7032 #define STDC_HEADERS 1
7033 _ACEOF
7034
7035 fi
7036
7037 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7048                   inttypes.h stdint.h unistd.h
7049 do
7050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7051 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7052 $as_echo_n "checking for $ac_header... " >&6; }
7053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7054   $as_echo_n "(cached) " >&6
7055 else
7056   cat >conftest.$ac_ext <<_ACEOF
7057 /* confdefs.h.  */
7058 _ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h.  */
7062 $ac_includes_default
7063
7064 #include <$ac_header>
7065 _ACEOF
7066 rm -f conftest.$ac_objext
7067 if { (ac_try="$ac_compile"
7068 case "(($ac_try" in
7069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070   *) ac_try_echo=$ac_try;;
7071 esac
7072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7073 $as_echo "$ac_try_echo") >&5
7074   (eval "$ac_compile") 2>conftest.er1
7075   ac_status=$?
7076   grep -v '^ *+' conftest.er1 >conftest.err
7077   rm -f conftest.er1
7078   cat conftest.err >&5
7079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); } && {
7081          test -z "$ac_cxx_werror_flag" ||
7082          test ! -s conftest.err
7083        } && test -s conftest.$ac_objext; then
7084   eval "$as_ac_Header=yes"
7085 else
7086   $as_echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7088
7089         eval "$as_ac_Header=no"
7090 fi
7091
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093 fi
7094 ac_res=`eval 'as_val=${'$as_ac_Header'}
7095                  $as_echo "$as_val"'`
7096                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7097 $as_echo "$ac_res" >&6; }
7098 as_val=`eval 'as_val=${'$as_ac_Header'}
7099                  $as_echo "$as_val"'`
7100    if test "x$as_val" = x""yes; then
7101   cat >>confdefs.h <<_ACEOF
7102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7103 _ACEOF
7104
7105 fi
7106
7107 done
7108
7109
7110
7111
7112 for ac_header in FlexLexer.h
7113 do
7114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7116   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7117 $as_echo_n "checking for $ac_header... " >&6; }
7118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7119   $as_echo_n "(cached) " >&6
7120 fi
7121 ac_res=`eval 'as_val=${'$as_ac_Header'}
7122                  $as_echo "$as_val"'`
7123                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7124 $as_echo "$ac_res" >&6; }
7125 else
7126   # Is the header compilable?
7127 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7128 $as_echo_n "checking $ac_header usability... " >&6; }
7129 cat >conftest.$ac_ext <<_ACEOF
7130 /* confdefs.h.  */
7131 _ACEOF
7132 cat confdefs.h >>conftest.$ac_ext
7133 cat >>conftest.$ac_ext <<_ACEOF
7134 /* end confdefs.h.  */
7135 $ac_includes_default
7136 #include <$ac_header>
7137 _ACEOF
7138 rm -f conftest.$ac_objext
7139 if { (ac_try="$ac_compile"
7140 case "(($ac_try" in
7141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142   *) ac_try_echo=$ac_try;;
7143 esac
7144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7145 $as_echo "$ac_try_echo") >&5
7146   (eval "$ac_compile") 2>conftest.er1
7147   ac_status=$?
7148   grep -v '^ *+' conftest.er1 >conftest.err
7149   rm -f conftest.er1
7150   cat conftest.err >&5
7151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152   (exit $ac_status); } && {
7153          test -z "$ac_cxx_werror_flag" ||
7154          test ! -s conftest.err
7155        } && test -s conftest.$ac_objext; then
7156   ac_header_compiler=yes
7157 else
7158   $as_echo "$as_me: failed program was:" >&5
7159 sed 's/^/| /' conftest.$ac_ext >&5
7160
7161         ac_header_compiler=no
7162 fi
7163
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7166 $as_echo "$ac_header_compiler" >&6; }
7167
7168 # Is the header present?
7169 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7170 $as_echo_n "checking $ac_header presence... " >&6; }
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h.  */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h.  */
7177 #include <$ac_header>
7178 _ACEOF
7179 if { (ac_try="$ac_cpp conftest.$ac_ext"
7180 case "(($ac_try" in
7181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182   *) ac_try_echo=$ac_try;;
7183 esac
7184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7185 $as_echo "$ac_try_echo") >&5
7186   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7187   ac_status=$?
7188   grep -v '^ *+' conftest.er1 >conftest.err
7189   rm -f conftest.er1
7190   cat conftest.err >&5
7191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192   (exit $ac_status); } >/dev/null && {
7193          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7194          test ! -s conftest.err
7195        }; then
7196   ac_header_preproc=yes
7197 else
7198   $as_echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7200
7201   ac_header_preproc=no
7202 fi
7203
7204 rm -f conftest.err conftest.$ac_ext
7205 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7206 $as_echo "$ac_header_preproc" >&6; }
7207
7208 # So?  What about this header?
7209 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7210   yes:no: )
7211     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7212 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7213     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7215     ac_header_preproc=yes
7216     ;;
7217   no:yes:* )
7218     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7219 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7220     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7221 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7222     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7223 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7224     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7225 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7226     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7228     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7229 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7230
7231     ;;
7232 esac
7233 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7234 $as_echo_n "checking for $ac_header... " >&6; }
7235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7236   $as_echo_n "(cached) " >&6
7237 else
7238   eval "$as_ac_Header=\$ac_header_preproc"
7239 fi
7240 ac_res=`eval 'as_val=${'$as_ac_Header'}
7241                  $as_echo "$as_val"'`
7242                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7243 $as_echo "$ac_res" >&6; }
7244
7245 fi
7246 as_val=`eval 'as_val=${'$as_ac_Header'}
7247                  $as_echo "$as_val"'`
7248    if test "x$as_val" = x""yes; then
7249   cat >>confdefs.h <<_ACEOF
7250 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7251 _ACEOF
7252  true
7253 else
7254   false
7255 fi
7256
7257 done
7258
7259     if test $? -ne 0; then
7260         warn='FlexLexer.h (flex package)'
7261
7262     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
7263
7264     fi
7265     # check for yyFlexLexer.yy_current_buffer,
7266     # in 2.5.4 <= flex < 2.5.29
7267     { $as_echo "$as_me:$LINENO: checking for yyFlexLexer.yy_current_buffer" >&5
7268 $as_echo_n "checking for yyFlexLexer.yy_current_buffer... " >&6; }
7269 if test "${stepmake_cv_flexlexer_yy_current_buffer+set}" = set; then
7270   $as_echo_n "(cached) " >&6
7271 else
7272   cat >conftest.$ac_ext <<_ACEOF
7273 /* confdefs.h.  */
7274 _ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h.  */
7278
7279 using namespace std;
7280 #include <FlexLexer.h>
7281 class yy_flex_lexer: public yyFlexLexer
7282 {
7283   public:
7284     yy_flex_lexer ()
7285     {
7286       yy_current_buffer = 0;
7287     }
7288 };
7289
7290 int
7291 main ()
7292 {
7293
7294   ;
7295   return 0;
7296 }
7297 _ACEOF
7298 rm -f conftest.$ac_objext
7299 if { (ac_try="$ac_compile"
7300 case "(($ac_try" in
7301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302   *) ac_try_echo=$ac_try;;
7303 esac
7304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7305 $as_echo "$ac_try_echo") >&5
7306   (eval "$ac_compile") 2>conftest.er1
7307   ac_status=$?
7308   grep -v '^ *+' conftest.er1 >conftest.err
7309   rm -f conftest.er1
7310   cat conftest.err >&5
7311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312   (exit $ac_status); } && {
7313          test -z "$ac_cxx_werror_flag" ||
7314          test ! -s conftest.err
7315        } && test -s conftest.$ac_objext; then
7316   stepmake_cv_flexlexer_yy_current_buffer=yes
7317 else
7318   $as_echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7320
7321         stepmake_cv_flexlexer_yy_current_buffer=no
7322 fi
7323
7324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325 fi
7326 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_flexlexer_yy_current_buffer" >&5
7327 $as_echo "$stepmake_cv_flexlexer_yy_current_buffer" >&6; }
7328     if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
7329
7330 cat >>confdefs.h <<\_ACEOF
7331 #define HAVE_FLEXLEXER_YY_CURRENT_BUFFER 1
7332 _ACEOF
7333
7334     fi
7335
7336
7337         { $as_echo "$as_me:$LINENO: checking FlexLexer.h location" >&5
7338 $as_echo_n "checking FlexLexer.h location... " >&6; }
7339
7340         # ugh.
7341         cat <<EOF > conftest.cc
7342 using namespace std;
7343 #include <FlexLexer.h>
7344 EOF
7345         FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
7346           sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
7347           sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
7348         rm conftest.cc
7349
7350         { $as_echo "$as_me:$LINENO: result: $FLEXLEXER_FILE" >&5
7351 $as_echo "$FLEXLEXER_FILE" >&6; }
7352
7353
7354     lang=English
7355     ALL_LINGUAS="en nl"
7356
7357     # with/enable ??
7358
7359 # Check whether --with-localedir was given.
7360 if test "${with_localedir+set}" = set; then
7361   withval=$with_localedir; localedir=$with_localedir
7362 else
7363   localedir='${prefix}/share/locale'
7364 fi
7365
7366
7367
7368 # Check whether --with-lang was given.
7369 if test "${with_lang+set}" = set; then
7370   withval=$with_lang; language=$with_lang
7371 else
7372   language=English
7373 fi
7374
7375
7376     { $as_echo "$as_me:$LINENO: checking language" >&5
7377 $as_echo_n "checking language... " >&6; }
7378     case "$language" in
7379       En* | en* | Am* | am* | US* | us*)
7380             lang=English;;
7381       NL | nl | Du* | du* | Ned* | ned*)
7382             lang=Dutch;;
7383       "")
7384             lang=English;;
7385       *)
7386             lang=unknown;;
7387     esac
7388     { $as_echo "$as_me:$LINENO: result: $lang" >&5
7389 $as_echo "$lang" >&6; }
7390
7391     if test "$lang" = "unknown" ; then
7392
7393     { $as_echo "$as_me:$LINENO: WARNING: $language not supported; available are: $ALL_LINGUAS" >&5
7394 $as_echo "$as_me: WARNING: $language not supported; available are: $ALL_LINGUAS" >&2;}
7395     warn_b=yes
7396
7397     fi
7398
7399
7400
7401     presome=${prefix}
7402     if test "$prefix" = "NONE"; then
7403             presome=${ac_default_prefix}
7404     fi
7405     LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
7406
7407
7408     cat >>confdefs.h <<_ACEOF
7409 #define LOCALEDIR "${LOCALEDIR}"
7410 _ACEOF
7411
7412
7413 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
7414 $as_echo_n "checking for gettext in -lintl... " >&6; }
7415 if test "${ac_cv_lib_intl_gettext+set}" = set; then
7416   $as_echo_n "(cached) " >&6
7417 else
7418   ac_check_lib_save_LIBS=$LIBS
7419 LIBS="-lintl  $LIBS"
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h.  */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h.  */
7426
7427 /* Override any GCC internal prototype to avoid an error.
7428    Use char because int might match the return type of a GCC
7429    builtin and then its argument prototype would still apply.  */
7430 #ifdef __cplusplus
7431 extern "C"
7432 #endif
7433 char gettext ();
7434 int
7435 main ()
7436 {
7437 return gettext ();
7438   ;
7439   return 0;
7440 }
7441 _ACEOF
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (ac_try="$ac_link"
7444 case "(($ac_try" in
7445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446   *) ac_try_echo=$ac_try;;
7447 esac
7448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7449 $as_echo "$ac_try_echo") >&5
7450   (eval "$ac_link") 2>conftest.er1
7451   ac_status=$?
7452   grep -v '^ *+' conftest.er1 >conftest.err
7453   rm -f conftest.er1
7454   cat conftest.err >&5
7455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); } && {
7457          test -z "$ac_cxx_werror_flag" ||
7458          test ! -s conftest.err
7459        } && test -s conftest$ac_exeext && {
7460          test "$cross_compiling" = yes ||
7461          $as_test_x conftest$ac_exeext
7462        }; then
7463   ac_cv_lib_intl_gettext=yes
7464 else
7465   $as_echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7467
7468         ac_cv_lib_intl_gettext=no
7469 fi
7470
7471 rm -rf conftest.dSYM
7472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7473       conftest$ac_exeext conftest.$ac_ext
7474 LIBS=$ac_check_lib_save_LIBS
7475 fi
7476 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
7477 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
7478 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
7479   cat >>confdefs.h <<_ACEOF
7480 #define HAVE_LIBINTL 1
7481 _ACEOF
7482
7483   LIBS="-lintl $LIBS"
7484
7485 fi
7486
7487
7488 for ac_func in gettext
7489 do
7490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7491 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7492 $as_echo_n "checking for $ac_func... " >&6; }
7493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7494   $as_echo_n "(cached) " >&6
7495 else
7496   cat >conftest.$ac_ext <<_ACEOF
7497 /* confdefs.h.  */
7498 _ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h.  */
7502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7504 #define $ac_func innocuous_$ac_func
7505
7506 /* System header to define __stub macros and hopefully few prototypes,
7507     which can conflict with char $ac_func (); below.
7508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7509     <limits.h> exists even on freestanding compilers.  */
7510
7511 #ifdef __STDC__
7512 # include <limits.h>
7513 #else
7514 # include <assert.h>
7515 #endif
7516
7517 #undef $ac_func
7518
7519 /* Override any GCC internal prototype to avoid an error.
7520    Use char because int might match the return type of a GCC
7521    builtin and then its argument prototype would still apply.  */
7522 #ifdef __cplusplus
7523 extern "C"
7524 #endif
7525 char $ac_func ();
7526 /* The GNU C library defines this for functions which it implements
7527     to always fail with ENOSYS.  Some functions are actually named
7528     something starting with __ and the normal name is an alias.  */
7529 #if defined __stub_$ac_func || defined __stub___$ac_func
7530 choke me
7531 #endif
7532
7533 int
7534 main ()
7535 {
7536 return $ac_func ();
7537   ;
7538   return 0;
7539 }
7540 _ACEOF
7541 rm -f conftest.$ac_objext conftest$ac_exeext
7542 if { (ac_try="$ac_link"
7543 case "(($ac_try" in
7544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545   *) ac_try_echo=$ac_try;;
7546 esac
7547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7548 $as_echo "$ac_try_echo") >&5
7549   (eval "$ac_link") 2>conftest.er1
7550   ac_status=$?
7551   grep -v '^ *+' conftest.er1 >conftest.err
7552   rm -f conftest.er1
7553   cat conftest.err >&5
7554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); } && {
7556          test -z "$ac_cxx_werror_flag" ||
7557          test ! -s conftest.err
7558        } && test -s conftest$ac_exeext && {
7559          test "$cross_compiling" = yes ||
7560          $as_test_x conftest$ac_exeext
7561        }; then
7562   eval "$as_ac_var=yes"
7563 else
7564   $as_echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7566
7567         eval "$as_ac_var=no"
7568 fi
7569
7570 rm -rf conftest.dSYM
7571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7572       conftest$ac_exeext conftest.$ac_ext
7573 fi
7574 ac_res=`eval 'as_val=${'$as_ac_var'}
7575                  $as_echo "$as_val"'`
7576                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7577 $as_echo "$ac_res" >&6; }
7578 as_val=`eval 'as_val=${'$as_ac_var'}
7579                  $as_echo "$as_val"'`
7580    if test "x$as_val" = x""yes; then
7581   cat >>confdefs.h <<_ACEOF
7582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7583 _ACEOF
7584
7585 fi
7586 done
7587
7588
7589
7590
7591     for ac_prog in msgfmt
7592 do
7593   # Extract the first word of "$ac_prog", so it can be a program name with args.
7594 set dummy $ac_prog; ac_word=$2
7595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if test "${ac_cv_prog_MSGFMT+set}" = set; then
7598   $as_echo_n "(cached) " >&6
7599 else
7600   if test -n "$MSGFMT"; then
7601   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606   IFS=$as_save_IFS
7607   test -z "$as_dir" && as_dir=.
7608   for ac_exec_ext in '' $ac_executable_extensions; do
7609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610     ac_cv_prog_MSGFMT="$ac_prog"
7611     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612     break 2
7613   fi
7614 done
7615 done
7616 IFS=$as_save_IFS
7617
7618 fi
7619 fi
7620 MSGFMT=$ac_cv_prog_MSGFMT
7621 if test -n "$MSGFMT"; then
7622   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7623 $as_echo "$MSGFMT" >&6; }
7624 else
7625   { $as_echo "$as_me:$LINENO: result: no" >&5
7626 $as_echo "no" >&6; }
7627 fi
7628
7629
7630   test -n "$MSGFMT" && break
7631 done
7632 test -n "$MSGFMT" || MSGFMT="no"
7633
7634
7635
7636     r="`eval echo '$'"MSGFMT"`"
7637     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
7638         true
7639     else
7640         ##STEPMAKE_WARN(cannot find . )
7641         false
7642     fi
7643
7644     if test $? -ne 0; then
7645
7646     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
7647
7648         if test "REQUIRED" = "REQUIRED"; then
7649             command="echo ERROR: msgfmt not found"
7650             # abort configure process here?
7651         else
7652             command="- echo msgfmt not found"
7653         fi
7654         eval "MSGFMT"='$command'
7655         false
7656     else
7657         true
7658     fi
7659
7660     if test $? -eq 0 -a -n ""; then
7661
7662     r="`eval echo '$'"MSGFMT"`"
7663     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7664 $as_echo_n "checking $r version... " >&6; }
7665     exe=`
7666     ## which doesn't work in ash, if /usr/bin/which isn't installed
7667     ## type -p doesn't work in ash
7668     ## command -v doesn't work in zsh
7669     ## command -v "$r" 2>&1
7670     ## this test should work in ash, bash, pdksh (ksh), zsh
7671     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7672 `
7673     if test -n ""; then
7674         ver=""
7675     else
7676         ver=`
7677     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7678     ##
7679     ## ARG.
7680     ## Workaround for broken Debian gcc version string:
7681     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7682     ##
7683     ## -V: Workaround for python
7684
7685     #dnl
7686
7687     ## Assume and hunt for dotted version multiplet.
7688     ## use eval trickery, because we cannot use multi-level $() instead of ``
7689     ## for compatibility reasons.
7690
7691     ## grab the first version number in  --version output.
7692     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7693                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7694                 head -n 1 |
7695                 tr ' ' '\n' |
7696                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7697                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7698                 head -n 1\`\"
7699
7700     if test -z "$_ver"; then
7701         ## If empty, try date [fontforge]
7702         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7703             | head -n 1 \
7704             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7705     fi
7706     echo "$_ver"
7707     #dnl
7708 `
7709     fi
7710     num=`
7711     echo "$ver" | awk -F. '
7712     {
7713       if ($3) {three = $3}
7714       else {three = 0}
7715     }
7716     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7717 `
7718     req=`
7719     echo "" | awk -F. '
7720     {
7721       if ($3) {three = $3}
7722       else {three = 0}
7723     }
7724     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7725 `
7726     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7727 $as_echo "$ver" >&6; }
7728     if test "$num" -lt "$req"; then
7729
7730     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
7731
7732     fi
7733     vervar="`echo MSGFMT | tr 'a-z' 'A-Z'`_VERSION"
7734     eval `echo $vervar=$num`
7735 ##    AC_SUBST(`eval echo $vervar`)
7736
7737     fi
7738
7739
7740
7741
7742     for ac_prog in mf-nowin mf mfw mfont
7743 do
7744   # Extract the first word of "$ac_prog", so it can be a program name with args.
7745 set dummy $ac_prog; ac_word=$2
7746 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if test "${ac_cv_prog_METAFONT+set}" = set; then
7749   $as_echo_n "(cached) " >&6
7750 else
7751   if test -n "$METAFONT"; then
7752   ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
7753 else
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757   IFS=$as_save_IFS
7758   test -z "$as_dir" && as_dir=.
7759   for ac_exec_ext in '' $ac_executable_extensions; do
7760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761     ac_cv_prog_METAFONT="$ac_prog"
7762     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763     break 2
7764   fi
7765 done
7766 done
7767 IFS=$as_save_IFS
7768
7769 fi
7770 fi
7771 METAFONT=$ac_cv_prog_METAFONT
7772 if test -n "$METAFONT"; then
7773   { $as_echo "$as_me:$LINENO: result: $METAFONT" >&5
7774 $as_echo "$METAFONT" >&6; }
7775 else
7776   { $as_echo "$as_me:$LINENO: result: no" >&5
7777 $as_echo "no" >&6; }
7778 fi
7779
7780
7781   test -n "$METAFONT" && break
7782 done
7783 test -n "$METAFONT" || METAFONT="no"
7784
7785
7786
7787     r="`eval echo '$'"METAFONT"`"
7788     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
7789         true
7790     else
7791         ##STEPMAKE_WARN(cannot find . )
7792         false
7793     fi
7794
7795     if test $? -ne 0; then
7796
7797     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mf-nowin mf mfw mfont\"`\"
7798
7799         if test "REQUIRED" = "REQUIRED"; then
7800             command="echo ERROR: mf-nowin mf mfw mfont not found"
7801             # abort configure process here?
7802         else
7803             command="- echo mf-nowin mf mfw mfont not found"
7804         fi
7805         eval "METAFONT"='$command'
7806         false
7807     else
7808         true
7809     fi
7810
7811     if test $? -eq 0 -a -n ""; then
7812
7813     r="`eval echo '$'"METAFONT"`"
7814     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7815 $as_echo_n "checking $r version... " >&6; }
7816     exe=`
7817     ## which doesn't work in ash, if /usr/bin/which isn't installed
7818     ## type -p doesn't work in ash
7819     ## command -v doesn't work in zsh
7820     ## command -v "$r" 2>&1
7821     ## this test should work in ash, bash, pdksh (ksh), zsh
7822     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7823 `
7824     if test -n ""; then
7825         ver=""
7826     else
7827         ver=`
7828     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7829     ##
7830     ## ARG.
7831     ## Workaround for broken Debian gcc version string:
7832     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7833     ##
7834     ## -V: Workaround for python
7835
7836     #dnl
7837
7838     ## Assume and hunt for dotted version multiplet.
7839     ## use eval trickery, because we cannot use multi-level $() instead of ``
7840     ## for compatibility reasons.
7841
7842     ## grab the first version number in  --version output.
7843     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7844                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7845                 head -n 1 |
7846                 tr ' ' '\n' |
7847                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7848                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7849                 head -n 1\`\"
7850
7851     if test -z "$_ver"; then
7852         ## If empty, try date [fontforge]
7853         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7854             | head -n 1 \
7855             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7856     fi
7857     echo "$_ver"
7858     #dnl
7859 `
7860     fi
7861     num=`
7862     echo "$ver" | awk -F. '
7863     {
7864       if ($3) {three = $3}
7865       else {three = 0}
7866     }
7867     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7868 `
7869     req=`
7870     echo "" | awk -F. '
7871     {
7872       if ($3) {three = $3}
7873       else {three = 0}
7874     }
7875     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7876 `
7877     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7878 $as_echo "$ver" >&6; }
7879     if test "$num" -lt "$req"; then
7880
7881     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
7882
7883     fi
7884     vervar="`echo METAFONT | tr 'a-z' 'A-Z'`_VERSION"
7885     eval `echo $vervar=$num`
7886 ##    AC_SUBST(`eval echo $vervar`)
7887
7888     fi
7889
7890
7891     for ac_prog in mpost
7892 do
7893   # Extract the first word of "$ac_prog", so it can be a program name with args.
7894 set dummy $ac_prog; ac_word=$2
7895 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if test "${ac_cv_prog_METAPOST+set}" = set; then
7898   $as_echo_n "(cached) " >&6
7899 else
7900   if test -n "$METAPOST"; then
7901   ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
7902 else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7905 do
7906   IFS=$as_save_IFS
7907   test -z "$as_dir" && as_dir=.
7908   for ac_exec_ext in '' $ac_executable_extensions; do
7909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7910     ac_cv_prog_METAPOST="$ac_prog"
7911     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7912     break 2
7913   fi
7914 done
7915 done
7916 IFS=$as_save_IFS
7917
7918 fi
7919 fi
7920 METAPOST=$ac_cv_prog_METAPOST
7921 if test -n "$METAPOST"; then
7922   { $as_echo "$as_me:$LINENO: result: $METAPOST" >&5
7923 $as_echo "$METAPOST" >&6; }
7924 else
7925   { $as_echo "$as_me:$LINENO: result: no" >&5
7926 $as_echo "no" >&6; }
7927 fi
7928
7929
7930   test -n "$METAPOST" && break
7931 done
7932 test -n "$METAPOST" || METAPOST="no"
7933
7934
7935
7936     r="`eval echo '$'"METAPOST"`"
7937     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAPOST"`' : '.*\(echo\)' > /dev/null; then
7938         true
7939     else
7940         ##STEPMAKE_WARN(cannot find . )
7941         false
7942     fi
7943
7944     if test $? -ne 0; then
7945
7946     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mpost\"`\"
7947
7948         if test "REQUIRED" = "REQUIRED"; then
7949             command="echo ERROR: mpost not found"
7950             # abort configure process here?
7951         else
7952             command="- echo mpost not found"
7953         fi
7954         eval "METAPOST"='$command'
7955         false
7956     else
7957         true
7958     fi
7959
7960     if test $? -eq 0 -a -n ""; then
7961
7962     r="`eval echo '$'"METAPOST"`"
7963     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7964 $as_echo_n "checking $r version... " >&6; }
7965     exe=`
7966     ## which doesn't work in ash, if /usr/bin/which isn't installed
7967     ## type -p doesn't work in ash
7968     ## command -v doesn't work in zsh
7969     ## command -v "$r" 2>&1
7970     ## this test should work in ash, bash, pdksh (ksh), zsh
7971     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7972 `
7973     if test -n ""; then
7974         ver=""
7975     else
7976         ver=`
7977     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7978     ##
7979     ## ARG.
7980     ## Workaround for broken Debian gcc version string:
7981     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7982     ##
7983     ## -V: Workaround for python
7984
7985     #dnl
7986
7987     ## Assume and hunt for dotted version multiplet.
7988     ## use eval trickery, because we cannot use multi-level $() instead of ``
7989     ## for compatibility reasons.
7990
7991     ## grab the first version number in  --version output.
7992     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7993                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7994                 head -n 1 |
7995                 tr ' ' '\n' |
7996                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7997                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7998                 head -n 1\`\"
7999
8000     if test -z "$_ver"; then
8001         ## If empty, try date [fontforge]
8002         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8003             | head -n 1 \
8004             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8005     fi
8006     echo "$_ver"
8007     #dnl
8008 `
8009     fi
8010     num=`
8011     echo "$ver" | awk -F. '
8012     {
8013       if ($3) {three = $3}
8014       else {three = 0}
8015     }
8016     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8017 `
8018     req=`
8019     echo "" | awk -F. '
8020     {
8021       if ($3) {three = $3}
8022       else {three = 0}
8023     }
8024     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8025 `
8026     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8027 $as_echo "$ver" >&6; }
8028     if test "$num" -lt "$req"; then
8029
8030     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
8031
8032     fi
8033     vervar="`echo METAPOST | tr 'a-z' 'A-Z'`_VERSION"
8034     eval `echo $vervar=$num`
8035 ##    AC_SUBST(`eval echo $vervar`)
8036
8037     fi
8038
8039
8040     { $as_echo "$as_me:$LINENO: checking for working metafont mode" >&5
8041 $as_echo_n "checking for working metafont mode... " >&6; }
8042     modelist='ljfour lj4 lj3 lj2 ljet laserjet'
8043     for MFMODE in $modelist; do
8044         $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
8045         if test -f mfput.tfm; then
8046             break;
8047         fi
8048     done
8049     { $as_echo "$as_me:$LINENO: result: $MFMODE" >&5
8050 $as_echo "$MFMODE" >&6; }
8051
8052     rm -f mfput.*
8053
8054
8055
8056
8057     # ugh
8058
8059     for ac_prog in kpsewhich
8060 do
8061   # Extract the first word of "$ac_prog", so it can be a program name with args.
8062 set dummy $ac_prog; ac_word=$2
8063 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8064 $as_echo_n "checking for $ac_word... " >&6; }
8065 if test "${ac_cv_prog_KPSEWHICH+set}" = set; then
8066   $as_echo_n "(cached) " >&6
8067 else
8068   if test -n "$KPSEWHICH"; then
8069   ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
8070 else
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072 for as_dir in $PATH
8073 do
8074   IFS=$as_save_IFS
8075   test -z "$as_dir" && as_dir=.
8076   for ac_exec_ext in '' $ac_executable_extensions; do
8077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8078     ac_cv_prog_KPSEWHICH="$ac_prog"
8079     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8080     break 2
8081   fi
8082 done
8083 done
8084 IFS=$as_save_IFS
8085
8086 fi
8087 fi
8088 KPSEWHICH=$ac_cv_prog_KPSEWHICH
8089 if test -n "$KPSEWHICH"; then
8090   { $as_echo "$as_me:$LINENO: result: $KPSEWHICH" >&5
8091 $as_echo "$KPSEWHICH" >&6; }
8092 else
8093   { $as_echo "$as_me:$LINENO: result: no" >&5
8094 $as_echo "no" >&6; }
8095 fi
8096
8097
8098   test -n "$KPSEWHICH" && break
8099 done
8100 test -n "$KPSEWHICH" || KPSEWHICH="no"
8101
8102
8103
8104     r="`eval echo '$'"KPSEWHICH"`"
8105     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
8106         true
8107     else
8108         ##STEPMAKE_WARN(cannot find . )
8109         false
8110     fi
8111
8112     if test $? -ne 0; then
8113
8114     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"kpsewhich\"`\"
8115
8116         if test "OPTIONAL" = "REQUIRED"; then
8117             command="echo ERROR: kpsewhich not found"
8118             # abort configure process here?
8119         else
8120             command="- echo kpsewhich not found"
8121         fi
8122         eval "KPSEWHICH"='$command'
8123         false
8124     else
8125         true
8126     fi
8127
8128     if test $? -eq 0 -a -n ""; then
8129
8130     r="`eval echo '$'"KPSEWHICH"`"
8131     { $as_echo "$as_me:$LINENO: checking $r version" >&5
8132 $as_echo_n "checking $r version... " >&6; }
8133     exe=`
8134     ## which doesn't work in ash, if /usr/bin/which isn't installed
8135     ## type -p doesn't work in ash
8136     ## command -v doesn't work in zsh
8137     ## command -v "$r" 2>&1
8138     ## this test should work in ash, bash, pdksh (ksh), zsh
8139     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8140 `
8141     if test -n ""; then
8142         ver=""
8143     else
8144         ver=`
8145     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8146     ##
8147     ## ARG.
8148     ## Workaround for broken Debian gcc version string:
8149     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8150     ##
8151     ## -V: Workaround for python
8152
8153     #dnl
8154
8155     ## Assume and hunt for dotted version multiplet.
8156     ## use eval trickery, because we cannot use multi-level $() instead of ``
8157     ## for compatibility reasons.
8158
8159     ## grab the first version number in  --version output.
8160     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8161                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8162                 head -n 1 |
8163                 tr ' ' '\n' |
8164                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8165                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8166                 head -n 1\`\"
8167
8168     if test -z "$_ver"; then
8169         ## If empty, try date [fontforge]
8170         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8171             | head -n 1 \
8172             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8173     fi
8174     echo "$_ver"
8175     #dnl
8176 `
8177     fi
8178     num=`
8179     echo "$ver" | awk -F. '
8180     {
8181       if ($3) {three = $3}
8182       else {three = 0}
8183     }
8184     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8185 `
8186     req=`
8187     echo "" | awk -F. '
8188     {
8189       if ($3) {three = $3}
8190       else {three = 0}
8191     }
8192     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8193 `
8194     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8195 $as_echo "$ver" >&6; }
8196     if test "$num" -lt "$req"; then
8197
8198     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
8199
8200     fi
8201     vervar="`echo KPSEWHICH | tr 'a-z' 'A-Z'`_VERSION"
8202     eval `echo $vervar=$num`
8203 ##    AC_SUBST(`eval echo $vervar`)
8204
8205     fi
8206
8207
8208
8209     ## First, let's just see if we can find Guile at all.
8210     test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8211     test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8212     { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8213 $as_echo_n "checking for guile-config... " >&6; }
8214     for guile_config in $GUILE_CONFIG $target_guile_config $host_guile_config $build_guile_config guile-config guile1-config; do
8215         { $as_echo "$as_me:$LINENO: result: $guile_config" >&5
8216 $as_echo "$guile_config" >&6; }
8217         if ! $guile_config --version > /dev/null 2>&1 ; then
8218             { $as_echo "$as_me:$LINENO: WARNING: cannot execute $guile_config" >&5
8219 $as_echo "$as_me: WARNING: cannot execute $guile_config" >&2;}
8220             { $as_echo "$as_me:$LINENO: checking if we are cross compiling" >&5
8221 $as_echo_n "checking if we are cross compiling... " >&6; }
8222             GUILE_CONFIG='echo no guile-config'
8223         else
8224             GUILE_CONFIG=$guile_config
8225             break
8226         fi
8227     done
8228
8229
8230     r="`eval echo '$'"GUILE_CONFIG"`"
8231     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
8232         true
8233     else
8234         ##STEPMAKE_WARN(cannot find . )
8235         false
8236     fi
8237
8238     if test $? -ne 0; then
8239
8240     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$guile_config\"`\"
8241
8242         if test "REQUIRED" = "REQUIRED"; then
8243             command="echo ERROR: $guile_config not found"
8244             # abort configure process here?
8245         else
8246             command="- echo $guile_config not found"
8247         fi
8248         eval "GUILE_CONFIG"='$command'
8249         false
8250     else
8251         true
8252     fi
8253
8254     if test $? -ne 0; then
8255
8256     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'guile-config (guile-devel, guile-dev or libguile-dev package) or guile1-config (guile1-devel package)'\"`\"
8257
8258     fi
8259
8260
8261     r="`eval echo '$'"GUILE_CONFIG"`"
8262     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
8263         true
8264     else
8265         ##STEPMAKE_WARN(cannot find . )
8266         false
8267     fi
8268
8269     # urg.  should test functionality rather than version.
8270     if test $? -eq 0 -a -n "1.8.2"; then
8271
8272     r="`eval echo '$'"GUILE_CONFIG"`"
8273     { $as_echo "$as_me:$LINENO: checking $r version" >&5
8274 $as_echo_n "checking $r version... " >&6; }
8275     exe=`
8276     ## which doesn't work in ash, if /usr/bin/which isn't installed
8277     ## type -p doesn't work in ash
8278     ## command -v doesn't work in zsh
8279     ## command -v "$r" 2>&1
8280     ## this test should work in ash, bash, pdksh (ksh), zsh
8281     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8282 `
8283     if test -n ""; then
8284         ver=""
8285     else
8286         ver=`
8287     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8288     ##
8289     ## ARG.
8290     ## Workaround for broken Debian gcc version string:
8291     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8292     ##
8293     ## -V: Workaround for python
8294
8295     #dnl
8296
8297     ## Assume and hunt for dotted version multiplet.
8298     ## use eval trickery, because we cannot use multi-level $() instead of ``
8299     ## for compatibility reasons.
8300
8301     ## grab the first version number in  --version output.
8302     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8303                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8304                 head -n 1 |
8305                 tr ' ' '\n' |
8306                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8307                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8308                 head -n 1\`\"
8309
8310     if test -z "$_ver"; then
8311         ## If empty, try date [fontforge]
8312         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8313             | head -n 1 \
8314             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8315     fi
8316     echo "$_ver"
8317     #dnl
8318 `
8319     fi
8320     num=`
8321     echo "$ver" | awk -F. '
8322     {
8323       if ($3) {three = $3}
8324       else {three = 0}
8325     }
8326     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8327 `
8328     req=`
8329     echo "1.8.2" | awk -F. '
8330     {
8331       if ($3) {three = $3}
8332       else {three = 0}
8333     }
8334     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8335 `
8336     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8337 $as_echo "$ver" >&6; }
8338     if test "$num" -lt "$req"; then
8339
8340     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.8.2 (installed: $ver)"\"`\"
8341
8342     fi
8343     vervar="`echo GUILE_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
8344     eval `echo $vervar=$num`
8345 ##    AC_SUBST(`eval echo $vervar`)
8346
8347     fi
8348
8349
8350
8351     guile_version="$ver"
8352     #dnl
8353     GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
8354     GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
8355     GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8356     #dnl
8357
8358     exe=`
8359     ## which doesn't work in ash, if /usr/bin/which isn't installed
8360     ## type -p doesn't work in ash
8361     ## command -v doesn't work in zsh
8362     ## command -v "$guile_config" 2>&1
8363     ## this test should work in ash, bash, pdksh (ksh), zsh
8364     type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
8365 `
8366     if test -x $exe; then
8367         { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
8368 $as_echo_n "checking guile compile flags... " >&6; }
8369         GUILE_CFLAGS="`$guile_config compile`"
8370         { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
8371 $as_echo "$GUILE_CFLAGS" >&6; }
8372         { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
8373 $as_echo_n "checking guile link flags... " >&6; }
8374         GUILE_LDFLAGS="`$guile_config link`"
8375         { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
8376 $as_echo "$GUILE_LDFLAGS" >&6; }
8377     fi
8378
8379
8380
8381     save_CPPFLAGS="$CPPFLAGS"
8382     save_LIBS="$LIBS"
8383     CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8384     LIBS="$GUILE_LDFLAGS $LIBS"
8385
8386 for ac_header in libguile.h
8387 do
8388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8390   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8391 $as_echo_n "checking for $ac_header... " >&6; }
8392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8393   $as_echo_n "(cached) " >&6
8394 fi
8395 ac_res=`eval 'as_val=${'$as_ac_Header'}
8396                  $as_echo "$as_val"'`
8397                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8398 $as_echo "$ac_res" >&6; }
8399 else
8400   # Is the header compilable?
8401 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8402 $as_echo_n "checking $ac_header usability... " >&6; }
8403 cat >conftest.$ac_ext <<_ACEOF
8404 /* confdefs.h.  */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h.  */
8409 $ac_includes_default
8410 #include <$ac_header>
8411 _ACEOF
8412 rm -f conftest.$ac_objext
8413 if { (ac_try="$ac_compile"
8414 case "(($ac_try" in
8415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416   *) ac_try_echo=$ac_try;;
8417 esac
8418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8419 $as_echo "$ac_try_echo") >&5
8420   (eval "$ac_compile") 2>conftest.er1
8421   ac_status=$?
8422   grep -v '^ *+' conftest.er1 >conftest.err
8423   rm -f conftest.er1
8424   cat conftest.err >&5
8425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); } && {
8427          test -z "$ac_cxx_werror_flag" ||
8428          test ! -s conftest.err
8429        } && test -s conftest.$ac_objext; then
8430   ac_header_compiler=yes
8431 else
8432   $as_echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8434
8435         ac_header_compiler=no
8436 fi
8437
8438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8439 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8440 $as_echo "$ac_header_compiler" >&6; }
8441
8442 # Is the header present?
8443 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8444 $as_echo_n "checking $ac_header presence... " >&6; }
8445 cat >conftest.$ac_ext <<_ACEOF
8446 /* confdefs.h.  */
8447 _ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h.  */
8451 #include <$ac_header>
8452 _ACEOF
8453 if { (ac_try="$ac_cpp conftest.$ac_ext"
8454 case "(($ac_try" in
8455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456   *) ac_try_echo=$ac_try;;
8457 esac
8458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8459 $as_echo "$ac_try_echo") >&5
8460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8461   ac_status=$?
8462   grep -v '^ *+' conftest.er1 >conftest.err
8463   rm -f conftest.er1
8464   cat conftest.err >&5
8465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); } >/dev/null && {
8467          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8468          test ! -s conftest.err
8469        }; then
8470   ac_header_preproc=yes
8471 else
8472   $as_echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475   ac_header_preproc=no
8476 fi
8477
8478 rm -f conftest.err conftest.$ac_ext
8479 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8480 $as_echo "$ac_header_preproc" >&6; }
8481
8482 # So?  What about this header?
8483 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8484   yes:no: )
8485     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8486 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8487     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8488 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8489     ac_header_preproc=yes
8490     ;;
8491   no:yes:* )
8492     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8493 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8494     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8495 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8496     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8497 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8498     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8499 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8500     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8501 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8502     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8503 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8504
8505     ;;
8506 esac
8507 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8508 $as_echo_n "checking for $ac_header... " >&6; }
8509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8510   $as_echo_n "(cached) " >&6
8511 else
8512   eval "$as_ac_Header=\$ac_header_preproc"
8513 fi
8514 ac_res=`eval 'as_val=${'$as_ac_Header'}
8515                  $as_echo "$as_val"'`
8516                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8517 $as_echo "$ac_res" >&6; }
8518
8519 fi
8520 as_val=`eval 'as_val=${'$as_ac_Header'}
8521                  $as_echo "$as_val"'`
8522    if test "x$as_val" = x""yes; then
8523   cat >>confdefs.h <<_ACEOF
8524 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8525 _ACEOF
8526
8527 fi
8528
8529 done
8530
8531
8532 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
8533 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
8534 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
8535   $as_echo_n "(cached) " >&6
8536 else
8537   ac_check_lib_save_LIBS=$LIBS
8538 LIBS="-lguile  $LIBS"
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h.  */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h.  */
8545
8546 /* Override any GCC internal prototype to avoid an error.
8547    Use char because int might match the return type of a GCC
8548    builtin and then its argument prototype would still apply.  */
8549 #ifdef __cplusplus
8550 extern "C"
8551 #endif
8552 char scm_boot_guile ();
8553 int
8554 main ()
8555 {
8556 return scm_boot_guile ();
8557   ;
8558   return 0;
8559 }
8560 _ACEOF
8561 rm -f conftest.$ac_objext conftest$ac_exeext
8562 if { (ac_try="$ac_link"
8563 case "(($ac_try" in
8564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565   *) ac_try_echo=$ac_try;;
8566 esac
8567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8568 $as_echo "$ac_try_echo") >&5
8569   (eval "$ac_link") 2>conftest.er1
8570   ac_status=$?
8571   grep -v '^ *+' conftest.er1 >conftest.err
8572   rm -f conftest.er1
8573   cat conftest.err >&5
8574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575   (exit $ac_status); } && {
8576          test -z "$ac_cxx_werror_flag" ||
8577          test ! -s conftest.err
8578        } && test -s conftest$ac_exeext && {
8579          test "$cross_compiling" = yes ||
8580          $as_test_x conftest$ac_exeext
8581        }; then
8582   ac_cv_lib_guile_scm_boot_guile=yes
8583 else
8584   $as_echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8586
8587         ac_cv_lib_guile_scm_boot_guile=no
8588 fi
8589
8590 rm -rf conftest.dSYM
8591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8592       conftest$ac_exeext conftest.$ac_ext
8593 LIBS=$ac_check_lib_save_LIBS
8594 fi
8595 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
8596 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
8597 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
8598   cat >>confdefs.h <<_ACEOF
8599 #define HAVE_LIBGUILE 1
8600 _ACEOF
8601
8602   LIBS="-lguile $LIBS"
8603
8604 fi
8605
8606
8607 for ac_func in scm_boot_guile
8608 do
8609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8610 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8611 $as_echo_n "checking for $ac_func... " >&6; }
8612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8613   $as_echo_n "(cached) " >&6
8614 else
8615   cat >conftest.$ac_ext <<_ACEOF
8616 /* confdefs.h.  */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h.  */
8621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8623 #define $ac_func innocuous_$ac_func
8624
8625 /* System header to define __stub macros and hopefully few prototypes,
8626     which can conflict with char $ac_func (); below.
8627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8628     <limits.h> exists even on freestanding compilers.  */
8629
8630 #ifdef __STDC__
8631 # include <limits.h>
8632 #else
8633 # include <assert.h>
8634 #endif
8635
8636 #undef $ac_func
8637
8638 /* Override any GCC internal prototype to avoid an error.
8639    Use char because int might match the return type of a GCC
8640    builtin and then its argument prototype would still apply.  */
8641 #ifdef __cplusplus
8642 extern "C"
8643 #endif
8644 char $ac_func ();
8645 /* The GNU C library defines this for functions which it implements
8646     to always fail with ENOSYS.  Some functions are actually named
8647     something starting with __ and the normal name is an alias.  */
8648 #if defined __stub_$ac_func || defined __stub___$ac_func
8649 choke me
8650 #endif
8651
8652 int
8653 main ()
8654 {
8655 return $ac_func ();
8656   ;
8657   return 0;
8658 }
8659 _ACEOF
8660 rm -f conftest.$ac_objext conftest$ac_exeext
8661 if { (ac_try="$ac_link"
8662 case "(($ac_try" in
8663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664   *) ac_try_echo=$ac_try;;
8665 esac
8666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8667 $as_echo "$ac_try_echo") >&5
8668   (eval "$ac_link") 2>conftest.er1
8669   ac_status=$?
8670   grep -v '^ *+' conftest.er1 >conftest.err
8671   rm -f conftest.er1
8672   cat conftest.err >&5
8673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); } && {
8675          test -z "$ac_cxx_werror_flag" ||
8676          test ! -s conftest.err
8677        } && test -s conftest$ac_exeext && {
8678          test "$cross_compiling" = yes ||
8679          $as_test_x conftest$ac_exeext
8680        }; then
8681   eval "$as_ac_var=yes"
8682 else
8683   $as_echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8685
8686         eval "$as_ac_var=no"
8687 fi
8688
8689 rm -rf conftest.dSYM
8690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8691       conftest$ac_exeext conftest.$ac_ext
8692 fi
8693 ac_res=`eval 'as_val=${'$as_ac_var'}
8694                  $as_echo "$as_val"'`
8695                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8696 $as_echo "$ac_res" >&6; }
8697 as_val=`eval 'as_val=${'$as_ac_var'}
8698                  $as_echo "$as_val"'`
8699    if test "x$as_val" = x""yes; then
8700   cat >>confdefs.h <<_ACEOF
8701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8702 _ACEOF
8703
8704 else
8705   libguile_b=no
8706 fi
8707 done
8708
8709     if test "$libguile_b" = "no"; then
8710             warn='libguile (libguile-dev, guile-devel or guile-dev
8711    package).'
8712
8713     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8714
8715     fi
8716     CPPFLAGS="$save_CPPFLAGS"
8717     LIBS="$save_LIBS"
8718     cat >>confdefs.h <<_ACEOF
8719 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
8720 _ACEOF
8721
8722     cat >>confdefs.h <<_ACEOF
8723 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
8724 _ACEOF
8725
8726     cat >>confdefs.h <<_ACEOF
8727 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
8728 _ACEOF
8729
8730
8731
8732 # check for 3 typedefs added in Guile 1.9
8733 save_CXXFLAGS="$CXXFLAGS"
8734 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS"
8735 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_fold_fn" >&5
8736 $as_echo_n "checking for scm_t_hash_fold_fn... " >&6; }
8737 if test "${ac_cv_type_scm_t_hash_fold_fn+set}" = set; then
8738   $as_echo_n "(cached) " >&6
8739 else
8740   ac_cv_type_scm_t_hash_fold_fn=no
8741 cat >conftest.$ac_ext <<_ACEOF
8742 /* confdefs.h.  */
8743 _ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h.  */
8747 #include <libguile.h>
8748
8749 int
8750 main ()
8751 {
8752 if (sizeof (scm_t_hash_fold_fn))
8753        return 0;
8754   ;
8755   return 0;
8756 }
8757 _ACEOF
8758 rm -f conftest.$ac_objext
8759 if { (ac_try="$ac_compile"
8760 case "(($ac_try" in
8761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762   *) ac_try_echo=$ac_try;;
8763 esac
8764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8765 $as_echo "$ac_try_echo") >&5
8766   (eval "$ac_compile") 2>conftest.er1
8767   ac_status=$?
8768   grep -v '^ *+' conftest.er1 >conftest.err
8769   rm -f conftest.er1
8770   cat conftest.err >&5
8771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); } && {
8773          test -z "$ac_cxx_werror_flag" ||
8774          test ! -s conftest.err
8775        } && test -s conftest.$ac_objext; then
8776   cat >conftest.$ac_ext <<_ACEOF
8777 /* confdefs.h.  */
8778 _ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h.  */
8782 #include <libguile.h>
8783
8784 int
8785 main ()
8786 {
8787 if (sizeof ((scm_t_hash_fold_fn)))
8788           return 0;
8789   ;
8790   return 0;
8791 }
8792 _ACEOF
8793 rm -f conftest.$ac_objext
8794 if { (ac_try="$ac_compile"
8795 case "(($ac_try" in
8796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797   *) ac_try_echo=$ac_try;;
8798 esac
8799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8800 $as_echo "$ac_try_echo") >&5
8801   (eval "$ac_compile") 2>conftest.er1
8802   ac_status=$?
8803   grep -v '^ *+' conftest.er1 >conftest.err
8804   rm -f conftest.er1
8805   cat conftest.err >&5
8806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); } && {
8808          test -z "$ac_cxx_werror_flag" ||
8809          test ! -s conftest.err
8810        } && test -s conftest.$ac_objext; then
8811   :
8812 else
8813   $as_echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8815
8816         ac_cv_type_scm_t_hash_fold_fn=yes
8817 fi
8818
8819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820 else
8821   $as_echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8823
8824
8825 fi
8826
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 fi
8829 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_fold_fn" >&5
8830 $as_echo "$ac_cv_type_scm_t_hash_fold_fn" >&6; }
8831 if test "x$ac_cv_type_scm_t_hash_fold_fn" = x""yes; then
8832
8833 cat >>confdefs.h <<_ACEOF
8834 #define HAVE_SCM_T_HASH_FOLD_FN 1
8835 _ACEOF
8836
8837 cat >>confdefs.h <<\_ACEOF
8838 #define HAVE_GUILE_HASH_FUNC 1
8839 _ACEOF
8840
8841 fi
8842 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_handle_fn" >&5
8843 $as_echo_n "checking for scm_t_hash_handle_fn... " >&6; }
8844 if test "${ac_cv_type_scm_t_hash_handle_fn+set}" = set; then
8845   $as_echo_n "(cached) " >&6
8846 else
8847   ac_cv_type_scm_t_hash_handle_fn=no
8848 cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h.  */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h.  */
8854 #include <libguile.h>
8855
8856 int
8857 main ()
8858 {
8859 if (sizeof (scm_t_hash_handle_fn))
8860        return 0;
8861   ;
8862   return 0;
8863 }
8864 _ACEOF
8865 rm -f conftest.$ac_objext
8866 if { (ac_try="$ac_compile"
8867 case "(($ac_try" in
8868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869   *) ac_try_echo=$ac_try;;
8870 esac
8871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8872 $as_echo "$ac_try_echo") >&5
8873   (eval "$ac_compile") 2>conftest.er1
8874   ac_status=$?
8875   grep -v '^ *+' conftest.er1 >conftest.err
8876   rm -f conftest.er1
8877   cat conftest.err >&5
8878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); } && {
8880          test -z "$ac_cxx_werror_flag" ||
8881          test ! -s conftest.err
8882        } && test -s conftest.$ac_objext; then
8883   cat >conftest.$ac_ext <<_ACEOF
8884 /* confdefs.h.  */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h.  */
8889 #include <libguile.h>
8890
8891 int
8892 main ()
8893 {
8894 if (sizeof ((scm_t_hash_handle_fn)))
8895           return 0;
8896   ;
8897   return 0;
8898 }
8899 _ACEOF
8900 rm -f conftest.$ac_objext
8901 if { (ac_try="$ac_compile"
8902 case "(($ac_try" in
8903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904   *) ac_try_echo=$ac_try;;
8905 esac
8906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8907 $as_echo "$ac_try_echo") >&5
8908   (eval "$ac_compile") 2>conftest.er1
8909   ac_status=$?
8910   grep -v '^ *+' conftest.er1 >conftest.err
8911   rm -f conftest.er1
8912   cat conftest.err >&5
8913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); } && {
8915          test -z "$ac_cxx_werror_flag" ||
8916          test ! -s conftest.err
8917        } && test -s conftest.$ac_objext; then
8918   :
8919 else
8920   $as_echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8922
8923         ac_cv_type_scm_t_hash_handle_fn=yes
8924 fi
8925
8926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8927 else
8928   $as_echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8930
8931
8932 fi
8933
8934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8935 fi
8936 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_handle_fn" >&5
8937 $as_echo "$ac_cv_type_scm_t_hash_handle_fn" >&6; }
8938 if test "x$ac_cv_type_scm_t_hash_handle_fn" = x""yes; then
8939
8940 cat >>confdefs.h <<_ACEOF
8941 #define HAVE_SCM_T_HASH_HANDLE_FN 1
8942 _ACEOF
8943
8944 cat >>confdefs.h <<\_ACEOF
8945 #define HAVE_GUILE_HASH_FUNC 1
8946 _ACEOF
8947
8948 fi
8949
8950 { $as_echo "$as_me:$LINENO: checking for scm_t_subr" >&5
8951 $as_echo_n "checking for scm_t_subr... " >&6; }
8952 if test "${ac_cv_type_scm_t_subr+set}" = set; then
8953   $as_echo_n "(cached) " >&6
8954 else
8955   ac_cv_type_scm_t_subr=no
8956 cat >conftest.$ac_ext <<_ACEOF
8957 /* confdefs.h.  */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h.  */
8962 #include <libguile.h>
8963
8964 int
8965 main ()
8966 {
8967 if (sizeof (scm_t_subr))
8968        return 0;
8969   ;
8970   return 0;
8971 }
8972 _ACEOF
8973 rm -f conftest.$ac_objext
8974 if { (ac_try="$ac_compile"
8975 case "(($ac_try" in
8976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8977   *) ac_try_echo=$ac_try;;
8978 esac
8979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8980 $as_echo "$ac_try_echo") >&5
8981   (eval "$ac_compile") 2>conftest.er1
8982   ac_status=$?
8983   grep -v '^ *+' conftest.er1 >conftest.err
8984   rm -f conftest.er1
8985   cat conftest.err >&5
8986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); } && {
8988          test -z "$ac_cxx_werror_flag" ||
8989          test ! -s conftest.err
8990        } && test -s conftest.$ac_objext; then
8991   cat >conftest.$ac_ext <<_ACEOF
8992 /* confdefs.h.  */
8993 _ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h.  */
8997 #include <libguile.h>
8998
8999 int
9000 main ()
9001 {
9002 if (sizeof ((scm_t_subr)))
9003           return 0;
9004   ;
9005   return 0;
9006 }
9007 _ACEOF
9008 rm -f conftest.$ac_objext
9009 if { (ac_try="$ac_compile"
9010 case "(($ac_try" in
9011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012   *) ac_try_echo=$ac_try;;
9013 esac
9014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9015 $as_echo "$ac_try_echo") >&5
9016   (eval "$ac_compile") 2>conftest.er1
9017   ac_status=$?
9018   grep -v '^ *+' conftest.er1 >conftest.err
9019   rm -f conftest.er1
9020   cat conftest.err >&5
9021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022   (exit $ac_status); } && {
9023          test -z "$ac_cxx_werror_flag" ||
9024          test ! -s conftest.err
9025        } && test -s conftest.$ac_objext; then
9026   :
9027 else
9028   $as_echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031         ac_cv_type_scm_t_subr=yes
9032 fi
9033
9034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035 else
9036   $as_echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9038
9039
9040 fi
9041
9042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9043 fi
9044 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_subr" >&5
9045 $as_echo "$ac_cv_type_scm_t_subr" >&6; }
9046 if test "x$ac_cv_type_scm_t_subr" = x""yes; then
9047
9048 cat >>confdefs.h <<_ACEOF
9049 #define HAVE_SCM_T_SUBR 1
9050 _ACEOF
9051
9052 cat >>confdefs.h <<\_ACEOF
9053 #define HAVE_GUILE_SUBR_TYPE 1
9054 _ACEOF
9055
9056 fi
9057
9058 CXXFLAGS="$save_CXXFLAGS"
9059
9060 ## Check for usable cxxabi
9061 save_LIBS="$LIBS"
9062 LIBS="$LIBS $CXXABI_LIBS"
9063 { $as_echo "$as_me:$LINENO: checking for usable C++ demangler" >&5
9064 $as_echo_n "checking for usable C++ demangler... " >&6; }
9065 cat >conftest.$ac_ext <<_ACEOF
9066 /* confdefs.h.  */
9067 _ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h.  */
9071 #include <cxxabi.h>
9072 int
9073 main ()
9074 {
9075 abi::__cxa_demangle ("", 0, 0, 0)
9076   ;
9077   return 0;
9078 }
9079 _ACEOF
9080 rm -f conftest.$ac_objext conftest$ac_exeext
9081 if { (ac_try="$ac_link"
9082 case "(($ac_try" in
9083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9084   *) ac_try_echo=$ac_try;;
9085 esac
9086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9087 $as_echo "$ac_try_echo") >&5
9088   (eval "$ac_link") 2>conftest.er1
9089   ac_status=$?
9090   grep -v '^ *+' conftest.er1 >conftest.err
9091   rm -f conftest.er1
9092   cat conftest.err >&5
9093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094   (exit $ac_status); } && {
9095          test -z "$ac_cxx_werror_flag" ||
9096          test ! -s conftest.err
9097        } && test -s conftest$ac_exeext && {
9098          test "$cross_compiling" = yes ||
9099          $as_test_x conftest$ac_exeext
9100        }; then
9101   cat >>confdefs.h <<\_ACEOF
9102 #define HAVE_CXA_DEMANGLE 1
9103 _ACEOF
9104
9105         { $as_echo "$as_me:$LINENO: result: yes" >&5
9106 $as_echo "yes" >&6; }
9107 else
9108   $as_echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9110
9111
9112         LIBS="$LIBS -lsupc++"
9113         cat >conftest.$ac_ext <<_ACEOF
9114 /* confdefs.h.  */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h.  */
9119 #include <cxxabi.h>
9120 int
9121 main ()
9122 {
9123 abi::__cxa_demangle ("", 0, 0, 0)
9124   ;
9125   return 0;
9126 }
9127 _ACEOF
9128 rm -f conftest.$ac_objext conftest$ac_exeext
9129 if { (ac_try="$ac_link"
9130 case "(($ac_try" in
9131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132   *) ac_try_echo=$ac_try;;
9133 esac
9134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9135 $as_echo "$ac_try_echo") >&5
9136   (eval "$ac_link") 2>conftest.er1
9137   ac_status=$?
9138   grep -v '^ *+' conftest.er1 >conftest.err
9139   rm -f conftest.er1
9140   cat conftest.err >&5
9141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); } && {
9143          test -z "$ac_cxx_werror_flag" ||
9144          test ! -s conftest.err
9145        } && test -s conftest$ac_exeext && {
9146          test "$cross_compiling" = yes ||
9147          $as_test_x conftest$ac_exeext
9148        }; then
9149   cat >>confdefs.h <<\_ACEOF
9150 #define HAVE_CXA_DEMANGLE 1
9151 _ACEOF
9152
9153                 { $as_echo "$as_me:$LINENO: result: yes, using -lsupc++" >&5
9154 $as_echo "yes, using -lsupc++" >&6; }
9155                 CXXABI_LIBS="$CXXABI_LIBS -lsupc++"
9156 else
9157   $as_echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9159
9160         { $as_echo "$as_me:$LINENO: result: no, use c++filt -t for manual demangling" >&5
9161 $as_echo "no, use c++filt -t for manual demangling" >&6; }
9162 fi
9163
9164 rm -rf conftest.dSYM
9165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9166       conftest$ac_exeext conftest.$ac_ext
9167 fi
9168
9169 rm -rf conftest.dSYM
9170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9171       conftest$ac_exeext conftest.$ac_ext
9172 LIBS="$save_LIBS"
9173
9174
9175 ## check rational bugfix.
9176 save_CPPFLAGS="$CPPFLAGS"
9177 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9178 { $as_echo "$as_me:$LINENO: checking GUILE rational bugfix" >&5
9179 $as_echo_n "checking GUILE rational bugfix... " >&6; }
9180 cat >conftest.$ac_ext <<_ACEOF
9181 /* confdefs.h.  */
9182 _ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h.  */
9186 #include <libguile.h>
9187 #ifdef SCM_FRACTION_REDUCED_BIT
9188 #error
9189 #endif
9190
9191 _ACEOF
9192 if { (ac_try="$ac_cpp conftest.$ac_ext"
9193 case "(($ac_try" in
9194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9195   *) ac_try_echo=$ac_try;;
9196 esac
9197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9198 $as_echo "$ac_try_echo") >&5
9199   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9200   ac_status=$?
9201   grep -v '^ *+' conftest.er1 >conftest.err
9202   rm -f conftest.er1
9203   cat conftest.err >&5
9204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); } >/dev/null && {
9206          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9207          test ! -s conftest.err
9208        }; then
9209   { $as_echo "$as_me:$LINENO: result: ok" >&5
9210 $as_echo "ok" >&6; }
9211 else
9212   $as_echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9214
9215   REQUIRED="$REQUIRED GUILE-with-rational-bugfix"
9216 { $as_echo "$as_me:$LINENO: result: Must have patched GUILE rational support. See INSTALL.txt" >&5
9217 $as_echo "Must have patched GUILE rational support. See INSTALL.txt" >&6; }
9218 fi
9219
9220 rm -f conftest.err conftest.$ac_ext
9221 CPPFLAGS="$save_CPPFLAGS"
9222
9223
9224
9225
9226 # Check whether --with-python-include was given.
9227 if test "${with_python_include+set}" = set; then
9228   withval=$with_python_include;
9229         if test "$withval" = "yes" -o "$withval" = "no"; then
9230             { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-include=includedir" >&5
9231 $as_echo "$as_me: WARNING: Usage: --with-python-include=includedir" >&2;}
9232         else
9233             PYTHON_CFLAGS="-I${withval}"
9234         fi
9235
9236 fi
9237
9238
9239
9240 # Check whether --with-python-lib was given.
9241 if test "${with_python_lib+set}" = set; then
9242   withval=$with_python_lib;
9243         if test "$withval" = "yes" -o "$withval" = "no"; then
9244             { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-lib=name" >&5
9245 $as_echo "$as_me: WARNING: Usage: --with-python-lib=name" >&2;}
9246         else
9247             LDFLAGS="$LDFLAGS -l${withval}"
9248         fi
9249
9250 fi
9251
9252
9253     for ac_prog in python-config
9254 do
9255   # Extract the first word of "$ac_prog", so it can be a program name with args.
9256 set dummy $ac_prog; ac_word=$2
9257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9258 $as_echo_n "checking for $ac_word... " >&6; }
9259 if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then
9260   $as_echo_n "(cached) " >&6
9261 else
9262   if test -n "$PYTHON_CONFIG"; then
9263   ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
9264 else
9265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9266 for as_dir in $PATH
9267 do
9268   IFS=$as_save_IFS
9269   test -z "$as_dir" && as_dir=.
9270   for ac_exec_ext in '' $ac_executable_extensions; do
9271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9272     ac_cv_prog_PYTHON_CONFIG="$ac_prog"
9273     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9274     break 2
9275   fi
9276 done
9277 done
9278 IFS=$as_save_IFS
9279
9280 fi
9281 fi
9282 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
9283 if test -n "$PYTHON_CONFIG"; then
9284   { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
9285 $as_echo "$PYTHON_CONFIG" >&6; }
9286 else
9287   { $as_echo "$as_me:$LINENO: result: no" >&5
9288 $as_echo "no" >&6; }
9289 fi
9290
9291
9292   test -n "$PYTHON_CONFIG" && break
9293 done
9294 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
9295
9296
9297     if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
9298         # Clean out junk: http://bugs.python.org/issue3290
9299         # Python headers may need some -f* flags, leave them in.
9300         # We want the sed commands to look like 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' and 's/-arch [^[:space:]]*//g', but automake eats brackets.
9301          #PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/-[[WDOm]][[[:alnum:][:punct:]]][[[:alnum:][:punct:]]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
9302          # The above sed BRE matches parts of legal options, stipping down part of that option, resulting in invalid gcc arguments. Gentoo Bug #415793
9303          # For instance, '-floop-stip-mime' becomes '-floop-strip', and '-fvect-cost-model' becomes '-fvect-cost'.
9304          # Tentative fix to require a non alphanumeric character before the initial hyphen of the BRE or the hyphen being the first character in the string.
9305          PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/\(^\|[^[:alnum:]]\)-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
9306         PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
9307     fi
9308
9309     if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
9310         #dnl
9311         # alternatively, for python >= 2.0
9312         # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
9313         PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
9314         PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
9315         #dnl
9316     fi
9317
9318     if test -z "$PYTHON_HEADER"; then
9319         CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
9320
9321 for ac_header in Python.h
9322 do
9323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9325   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9326 $as_echo_n "checking for $ac_header... " >&6; }
9327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9328   $as_echo_n "(cached) " >&6
9329 fi
9330 ac_res=`eval 'as_val=${'$as_ac_Header'}
9331                  $as_echo "$as_val"'`
9332                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9333 $as_echo "$ac_res" >&6; }
9334 else
9335   # Is the header compilable?
9336 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9337 $as_echo_n "checking $ac_header usability... " >&6; }
9338 cat >conftest.$ac_ext <<_ACEOF
9339 /* confdefs.h.  */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h.  */
9344 $ac_includes_default
9345 #include <$ac_header>
9346 _ACEOF
9347 rm -f conftest.$ac_objext
9348 if { (ac_try="$ac_compile"
9349 case "(($ac_try" in
9350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351   *) ac_try_echo=$ac_try;;
9352 esac
9353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9354 $as_echo "$ac_try_echo") >&5
9355   (eval "$ac_compile") 2>conftest.er1
9356   ac_status=$?
9357   grep -v '^ *+' conftest.er1 >conftest.err
9358   rm -f conftest.er1
9359   cat conftest.err >&5
9360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); } && {
9362          test -z "$ac_cxx_werror_flag" ||
9363          test ! -s conftest.err
9364        } && test -s conftest.$ac_objext; then
9365   ac_header_compiler=yes
9366 else
9367   $as_echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.$ac_ext >&5
9369
9370         ac_header_compiler=no
9371 fi
9372
9373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9374 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9375 $as_echo "$ac_header_compiler" >&6; }
9376
9377 # Is the header present?
9378 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9379 $as_echo_n "checking $ac_header presence... " >&6; }
9380 cat >conftest.$ac_ext <<_ACEOF
9381 /* confdefs.h.  */
9382 _ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h.  */
9386 #include <$ac_header>
9387 _ACEOF
9388 if { (ac_try="$ac_cpp conftest.$ac_ext"
9389 case "(($ac_try" in
9390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391   *) ac_try_echo=$ac_try;;
9392 esac
9393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9394 $as_echo "$ac_try_echo") >&5
9395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9396   ac_status=$?
9397   grep -v '^ *+' conftest.er1 >conftest.err
9398   rm -f conftest.er1
9399   cat conftest.err >&5
9400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); } >/dev/null && {
9402          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9403          test ! -s conftest.err
9404        }; then
9405   ac_header_preproc=yes
9406 else
9407   $as_echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9409
9410   ac_header_preproc=no
9411 fi
9412
9413 rm -f conftest.err conftest.$ac_ext
9414 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9415 $as_echo "$ac_header_preproc" >&6; }
9416
9417 # So?  What about this header?
9418 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9419   yes:no: )
9420     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9421 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9422     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9423 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9424     ac_header_preproc=yes
9425     ;;
9426   no:yes:* )
9427     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9428 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9429     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9430 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9431     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9432 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9433     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9434 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9435     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9436 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9437     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9438 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9439
9440     ;;
9441 esac
9442 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9443 $as_echo_n "checking for $ac_header... " >&6; }
9444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9445   $as_echo_n "(cached) " >&6
9446 else
9447   eval "$as_ac_Header=\$ac_header_preproc"
9448 fi
9449 ac_res=`eval 'as_val=${'$as_ac_Header'}
9450                  $as_echo "$as_val"'`
9451                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9452 $as_echo "$ac_res" >&6; }
9453
9454 fi
9455 as_val=`eval 'as_val=${'$as_ac_Header'}
9456                  $as_echo "$as_val"'`
9457    if test "x$as_val" = x""yes; then
9458   cat >>confdefs.h <<_ACEOF
9459 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9460 _ACEOF
9461  PYTHON_HEADER=yes
9462 fi
9463
9464 done
9465
9466     fi
9467
9468     if test -z "$PYTHON_HEADER"; then
9469         warn="Python.h (python-devel, python-dev or libpython-dev package)"
9470
9471     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
9472
9473     fi
9474
9475
9476
9477     for ac_prog in gs
9478 do
9479   # Extract the first word of "$ac_prog", so it can be a program name with args.
9480 set dummy $ac_prog; ac_word=$2
9481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9482 $as_echo_n "checking for $ac_word... " >&6; }
9483 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
9484   $as_echo_n "(cached) " >&6
9485 else
9486   if test -n "$GHOSTSCRIPT"; then
9487   ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
9488 else
9489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490 for as_dir in $PATH
9491 do
9492   IFS=$as_save_IFS
9493   test -z "$as_dir" && as_dir=.
9494   for ac_exec_ext in '' $ac_executable_extensions; do
9495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9496     ac_cv_prog_GHOSTSCRIPT="$ac_prog"
9497     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9498     break 2
9499   fi
9500 done
9501 done
9502 IFS=$as_save_IFS
9503
9504 fi
9505 fi
9506 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
9507 if test -n "$GHOSTSCRIPT"; then
9508   { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
9509 $as_echo "$GHOSTSCRIPT" >&6; }
9510 else
9511   { $as_echo "$as_me:$LINENO: result: no" >&5
9512 $as_echo "no" >&6; }
9513 fi
9514
9515
9516   test -n "$GHOSTSCRIPT" && break
9517 done
9518 test -n "$GHOSTSCRIPT" || GHOSTSCRIPT="no"
9519
9520
9521
9522     r="`eval echo '$'"GHOSTSCRIPT"`"
9523     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GHOSTSCRIPT"`' : '.*\(echo\)' > /dev/null; then
9524         true
9525     else
9526         ##STEPMAKE_WARN(cannot find . )
9527         false
9528     fi
9529
9530     if test $? -ne 0; then
9531
9532     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"gs\"`\"
9533
9534         if test "OPTIONAL" = "REQUIRED"; then
9535             command="echo ERROR: gs not found"
9536             # abort configure process here?
9537         else
9538             command="- echo gs not found"
9539         fi
9540         eval "GHOSTSCRIPT"='$command'
9541         false
9542     else
9543         true
9544     fi
9545
9546     if test $? -eq 0; then
9547         for ac_prog in gs
9548 do
9549   # Extract the first word of "$ac_prog", so it can be a program name with args.
9550 set dummy $ac_prog; ac_word=$2
9551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9552 $as_echo_n "checking for $ac_word... " >&6; }
9553 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
9554   $as_echo_n "(cached) " >&6
9555 else
9556   case $GHOSTSCRIPT in
9557   [\\/]* | ?:[\\/]*)
9558   ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
9559   ;;
9560   *)
9561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9562 for as_dir in $PATH
9563 do
9564   IFS=$as_save_IFS
9565   test -z "$as_dir" && as_dir=.
9566   for ac_exec_ext in '' $ac_executable_extensions; do
9567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9568     ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
9569     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9570     break 2
9571   fi
9572 done
9573 done
9574 IFS=$as_save_IFS
9575
9576   ;;
9577 esac
9578 fi
9579 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
9580 if test -n "$GHOSTSCRIPT"; then
9581   { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
9582 $as_echo "$GHOSTSCRIPT" >&6; }
9583 else
9584   { $as_echo "$as_me:$LINENO: result: no" >&5
9585 $as_echo "no" >&6; }
9586 fi
9587
9588
9589   test -n "$GHOSTSCRIPT" && break
9590 done
9591
9592         if test -n "8.60"; then
9593
9594     r="`eval echo '$'"GHOSTSCRIPT"`"
9595     { $as_echo "$as_me:$LINENO: checking $r version" >&5
9596 $as_echo_n "checking $r version... " >&6; }
9597     exe=`
9598     ## which doesn't work in ash, if /usr/bin/which isn't installed
9599     ## type -p doesn't work in ash
9600     ## command -v doesn't work in zsh
9601     ## command -v "$r" 2>&1
9602     ## this test should work in ash, bash, pdksh (ksh), zsh
9603     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9604 `
9605     if test -n ""; then
9606         ver=""
9607     else
9608         ver=`
9609     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9610     ##
9611     ## ARG.
9612     ## Workaround for broken Debian gcc version string:
9613     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9614     ##
9615     ## -V: Workaround for python
9616
9617     #dnl
9618
9619     ## Assume and hunt for dotted version multiplet.
9620     ## use eval trickery, because we cannot use multi-level $() instead of ``
9621     ## for compatibility reasons.
9622
9623     ## grab the first version number in  --version output.
9624     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9625                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9626                 head -n 1 |
9627                 tr ' ' '\n' |
9628                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9629                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9630                 head -n 1\`\"
9631
9632     if test -z "$_ver"; then
9633         ## If empty, try date [fontforge]
9634         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9635             | head -n 1 \
9636             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9637     fi
9638     echo "$_ver"
9639     #dnl
9640 `
9641     fi
9642     num=`
9643     echo "$ver" | awk -F. '
9644     {
9645       if ($3) {three = $3}
9646       else {three = 0}
9647     }
9648     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9649 `
9650     req=`
9651     echo "8.60" | awk -F. '
9652     {
9653       if ($3) {three = $3}
9654       else {three = 0}
9655     }
9656     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9657 `
9658     { $as_echo "$as_me:$LINENO: result: $ver" >&5
9659 $as_echo "$ver" >&6; }
9660     if test "$num" -lt "$req"; then
9661
9662     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 8.60 (installed: $ver)"\"`\"
9663
9664     fi
9665     vervar="`echo GHOSTSCRIPT | tr 'a-z' 'A-Z'`_VERSION"
9666     eval `echo $vervar=$num`
9667 ##    AC_SUBST(`eval echo $vervar`)
9668
9669         fi
9670     fi
9671
9672
9673
9674     for ac_prog in fontforge
9675 do
9676   # Extract the first word of "$ac_prog", so it can be a program name with args.
9677 set dummy $ac_prog; ac_word=$2
9678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9679 $as_echo_n "checking for $ac_word... " >&6; }
9680 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
9681   $as_echo_n "(cached) " >&6
9682 else
9683   if test -n "$FONTFORGE"; then
9684   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
9685 else
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687 for as_dir in $PATH
9688 do
9689   IFS=$as_save_IFS
9690   test -z "$as_dir" && as_dir=.
9691   for ac_exec_ext in '' $ac_executable_extensions; do
9692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693     ac_cv_prog_FONTFORGE="$ac_prog"
9694     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9695     break 2
9696   fi
9697 done
9698 done
9699 IFS=$as_save_IFS
9700
9701 fi
9702 fi
9703 FONTFORGE=$ac_cv_prog_FONTFORGE
9704 if test -n "$FONTFORGE"; then
9705   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9706 $as_echo "$FONTFORGE" >&6; }
9707 else
9708   { $as_echo "$as_me:$LINENO: result: no" >&5
9709 $as_echo "no" >&6; }
9710 fi
9711
9712
9713   test -n "$FONTFORGE" && break
9714 done
9715 test -n "$FONTFORGE" || FONTFORGE="no"
9716
9717
9718
9719     r="`eval echo '$'"FONTFORGE"`"
9720     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
9721         true
9722     else
9723         ##STEPMAKE_WARN(cannot find . )
9724         false
9725     fi
9726
9727     if test $? -ne 0; then
9728
9729     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"fontforge\"`\"
9730
9731         if test "REQUIRED" = "REQUIRED"; then
9732             command="echo ERROR: fontforge not found"
9733             # abort configure process here?
9734         else
9735             command="- echo fontforge not found"
9736         fi
9737         eval "FONTFORGE"='$command'
9738         false
9739     else
9740         true
9741     fi
9742
9743     if test $? -eq 0; then
9744         for ac_prog in fontforge
9745 do
9746   # Extract the first word of "$ac_prog", so it can be a program name with args.
9747 set dummy $ac_prog; ac_word=$2
9748 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9749 $as_echo_n "checking for $ac_word... " >&6; }
9750 if test "${ac_cv_path_FONTFORGE+set}" = set; then
9751   $as_echo_n "(cached) " >&6
9752 else
9753   case $FONTFORGE in
9754   [\\/]* | ?:[\\/]*)
9755   ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
9756   ;;
9757   *)
9758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759 for as_dir in $PATH
9760 do
9761   IFS=$as_save_IFS
9762   test -z "$as_dir" && as_dir=.
9763   for ac_exec_ext in '' $ac_executable_extensions; do
9764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9765     ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
9766     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9767     break 2
9768   fi
9769 done
9770 done
9771 IFS=$as_save_IFS
9772
9773   ;;
9774 esac
9775 fi
9776 FONTFORGE=$ac_cv_path_FONTFORGE
9777 if test -n "$FONTFORGE"; then
9778   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9779 $as_echo "$FONTFORGE" >&6; }
9780 else
9781   { $as_echo "$as_me:$LINENO: result: no" >&5
9782 $as_echo "no" >&6; }
9783 fi
9784
9785
9786   test -n "$FONTFORGE" && break
9787 done
9788
9789         if test -n "20110222"; then
9790
9791     r="`eval echo '$'"FONTFORGE"`"
9792     { $as_echo "$as_me:$LINENO: checking $r version" >&5
9793 $as_echo_n "checking $r version... " >&6; }
9794     exe=`
9795     ## which doesn't work in ash, if /usr/bin/which isn't installed
9796     ## type -p doesn't work in ash
9797     ## command -v doesn't work in zsh
9798     ## command -v "$r" 2>&1
9799     ## this test should work in ash, bash, pdksh (ksh), zsh
9800     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9801 `
9802     if test -n ""; then
9803         ver=""
9804     else
9805         ver=`
9806     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9807     ##
9808     ## ARG.
9809     ## Workaround for broken Debian gcc version string:
9810     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9811     ##
9812     ## -V: Workaround for python
9813
9814     #dnl
9815
9816     ## Assume and hunt for dotted version multiplet.
9817     ## use eval trickery, because we cannot use multi-level $() instead of ``
9818     ## for compatibility reasons.
9819
9820     ## grab the first version number in  --version output.
9821     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9822                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9823                 head -n 1 |
9824                 tr ' ' '\n' |
9825                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9826                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9827                 head -n 1\`\"
9828
9829     if test -z "$_ver"; then
9830         ## If empty, try date [fontforge]
9831         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9832             | head -n 1 \
9833             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9834     fi
9835     echo "$_ver"
9836     #dnl
9837 `
9838     fi
9839     num=`
9840     echo "$ver" | awk -F. '
9841     {
9842       if ($3) {three = $3}
9843       else {three = 0}
9844     }
9845     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9846 `
9847     req=`
9848     echo "20110222" | awk -F. '
9849     {
9850       if ($3) {three = $3}
9851       else {three = 0}
9852     }
9853     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9854 `
9855     { $as_echo "$as_me:$LINENO: result: $ver" >&5
9856 $as_echo "$ver" >&6; }
9857     if test "$num" -lt "$req"; then
9858
9859     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 20110222 (installed: $ver)"\"`\"
9860
9861     fi
9862     vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
9863     eval `echo $vervar=$num`
9864 ##    AC_SUBST(`eval echo $vervar`)
9865
9866         fi
9867     fi
9868
9869
9870
9871     for ac_prog in t1asm
9872 do
9873   # Extract the first word of "$ac_prog", so it can be a program name with args.
9874 set dummy $ac_prog; ac_word=$2
9875 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9876 $as_echo_n "checking for $ac_word... " >&6; }
9877 if test "${ac_cv_prog_T1ASM+set}" = set; then
9878   $as_echo_n "(cached) " >&6
9879 else
9880   if test -n "$T1ASM"; then
9881   ac_cv_prog_T1ASM="$T1ASM" # Let the user override the test.
9882 else
9883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884 for as_dir in $PATH
9885 do
9886   IFS=$as_save_IFS
9887   test -z "$as_dir" && as_dir=.
9888   for ac_exec_ext in '' $ac_executable_extensions; do
9889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9890     ac_cv_prog_T1ASM="$ac_prog"
9891     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9892     break 2
9893   fi
9894 done
9895 done
9896 IFS=$as_save_IFS
9897
9898 fi
9899 fi
9900 T1ASM=$ac_cv_prog_T1ASM
9901 if test -n "$T1ASM"; then
9902   { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
9903 $as_echo "$T1ASM" >&6; }
9904 else
9905   { $as_echo "$as_me:$LINENO: result: no" >&5
9906 $as_echo "no" >&6; }
9907 fi
9908
9909
9910   test -n "$T1ASM" && break
9911 done
9912 test -n "$T1ASM" || T1ASM="no"
9913
9914
9915
9916     r="`eval echo '$'"T1ASM"`"
9917     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"T1ASM"`' : '.*\(echo\)' > /dev/null; then
9918         true
9919     else
9920         ##STEPMAKE_WARN(cannot find . )
9921         false
9922     fi
9923
9924     if test $? -ne 0; then
9925
9926     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"t1asm\"`\"
9927
9928         if test "REQUIRED" = "REQUIRED"; then
9929             command="echo ERROR: t1asm not found"
9930             # abort configure process here?
9931         else
9932             command="- echo t1asm not found"
9933         fi
9934         eval "T1ASM"='$command'
9935         false
9936     else
9937         true
9938     fi
9939
9940     if test $? -eq 0; then
9941         for ac_prog in t1asm
9942 do
9943   # Extract the first word of "$ac_prog", so it can be a program name with args.
9944 set dummy $ac_prog; ac_word=$2
9945 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9946 $as_echo_n "checking for $ac_word... " >&6; }
9947 if test "${ac_cv_path_T1ASM+set}" = set; then
9948   $as_echo_n "(cached) " >&6
9949 else
9950   case $T1ASM in
9951   [\\/]* | ?:[\\/]*)
9952   ac_cv_path_T1ASM="$T1ASM" # Let the user override the test with a path.
9953   ;;
9954   *)
9955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956 for as_dir in $PATH
9957 do
9958   IFS=$as_save_IFS
9959   test -z "$as_dir" && as_dir=.
9960   for ac_exec_ext in '' $ac_executable_extensions; do
9961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9962     ac_cv_path_T1ASM="$as_dir/$ac_word$ac_exec_ext"
9963     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9964     break 2
9965   fi
9966 done
9967 done
9968 IFS=$as_save_IFS
9969
9970   ;;
9971 esac
9972 fi
9973 T1ASM=$ac_cv_path_T1ASM
9974 if test -n "$T1ASM"; then
9975   { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
9976 $as_echo "$T1ASM" >&6; }
9977 else
9978   { $as_echo "$as_me:$LINENO: result: no" >&5
9979 $as_echo "no" >&6; }
9980 fi
9981
9982
9983   test -n "$T1ASM" && break
9984 done
9985
9986         if test -n ""; then
9987
9988     r="`eval echo '$'"T1ASM"`"
9989     { $as_echo "$as_me:$LINENO: checking $r version" >&5
9990 $as_echo_n "checking $r version... " >&6; }
9991     exe=`
9992     ## which doesn't work in ash, if /usr/bin/which isn't installed
9993     ## type -p doesn't work in ash
9994     ## command -v doesn't work in zsh
9995     ## command -v "$r" 2>&1
9996     ## this test should work in ash, bash, pdksh (ksh), zsh
9997     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9998 `
9999     if test -n ""; then
10000         ver=""
10001     else
10002         ver=`
10003     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10004     ##
10005     ## ARG.
10006     ## Workaround for broken Debian gcc version string:
10007     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10008     ##
10009     ## -V: Workaround for python
10010
10011     #dnl
10012
10013     ## Assume and hunt for dotted version multiplet.
10014     ## use eval trickery, because we cannot use multi-level $() instead of ``
10015     ## for compatibility reasons.
10016
10017     ## grab the first version number in  --version output.
10018     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10019                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10020                 head -n 1 |
10021                 tr ' ' '\n' |
10022                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10023                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10024                 head -n 1\`\"
10025
10026     if test -z "$_ver"; then
10027         ## If empty, try date [fontforge]
10028         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
10029             | head -n 1 \
10030             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10031     fi
10032     echo "$_ver"
10033     #dnl
10034 `
10035     fi
10036     num=`
10037     echo "$ver" | awk -F. '
10038     {
10039       if ($3) {three = $3}
10040       else {three = 0}
10041     }
10042     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10043 `
10044     req=`
10045     echo "" | awk -F. '
10046     {
10047       if ($3) {three = $3}
10048       else {three = 0}
10049     }
10050     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10051 `
10052     { $as_echo "$as_me:$LINENO: result: $ver" >&5
10053 $as_echo "$ver" >&6; }
10054     if test "$num" -lt "$req"; then
10055
10056     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
10057
10058     fi
10059     vervar="`echo T1ASM | tr 'a-z' 'A-Z'`_VERSION"
10060     eval `echo $vervar=$num`
10061 ##    AC_SUBST(`eval echo $vervar`)
10062
10063         fi
10064     fi
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074 for ac_header in assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h
10075 do
10076 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10078   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10079 $as_echo_n "checking for $ac_header... " >&6; }
10080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10081   $as_echo_n "(cached) " >&6
10082 fi
10083 ac_res=`eval 'as_val=${'$as_ac_Header'}
10084                  $as_echo "$as_val"'`
10085                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10086 $as_echo "$ac_res" >&6; }
10087 else
10088   # Is the header compilable?
10089 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10090 $as_echo_n "checking $ac_header usability... " >&6; }
10091 cat >conftest.$ac_ext <<_ACEOF
10092 /* confdefs.h.  */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h.  */
10097 $ac_includes_default
10098 #include <$ac_header>
10099 _ACEOF
10100 rm -f conftest.$ac_objext
10101 if { (ac_try="$ac_compile"
10102 case "(($ac_try" in
10103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104   *) ac_try_echo=$ac_try;;
10105 esac
10106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10107 $as_echo "$ac_try_echo") >&5
10108   (eval "$ac_compile") 2>conftest.er1
10109   ac_status=$?
10110   grep -v '^ *+' conftest.er1 >conftest.err
10111   rm -f conftest.er1
10112   cat conftest.err >&5
10113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); } && {
10115          test -z "$ac_cxx_werror_flag" ||
10116          test ! -s conftest.err
10117        } && test -s conftest.$ac_objext; then
10118   ac_header_compiler=yes
10119 else
10120   $as_echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10122
10123         ac_header_compiler=no
10124 fi
10125
10126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10127 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10128 $as_echo "$ac_header_compiler" >&6; }
10129
10130 # Is the header present?
10131 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10132 $as_echo_n "checking $ac_header presence... " >&6; }
10133 cat >conftest.$ac_ext <<_ACEOF
10134 /* confdefs.h.  */
10135 _ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h.  */
10139 #include <$ac_header>
10140 _ACEOF
10141 if { (ac_try="$ac_cpp conftest.$ac_ext"
10142 case "(($ac_try" in
10143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144   *) ac_try_echo=$ac_try;;
10145 esac
10146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10147 $as_echo "$ac_try_echo") >&5
10148   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10149   ac_status=$?
10150   grep -v '^ *+' conftest.er1 >conftest.err
10151   rm -f conftest.er1
10152   cat conftest.err >&5
10153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154   (exit $ac_status); } >/dev/null && {
10155          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10156          test ! -s conftest.err
10157        }; then
10158   ac_header_preproc=yes
10159 else
10160   $as_echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10162
10163   ac_header_preproc=no
10164 fi
10165
10166 rm -f conftest.err conftest.$ac_ext
10167 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10168 $as_echo "$ac_header_preproc" >&6; }
10169
10170 # So?  What about this header?
10171 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10172   yes:no: )
10173     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10174 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10175     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10176 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10177     ac_header_preproc=yes
10178     ;;
10179   no:yes:* )
10180     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10181 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10182     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10183 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10184     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10185 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10186     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10187 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10188     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10189 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10190     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10191 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10192
10193     ;;
10194 esac
10195 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10196 $as_echo_n "checking for $ac_header... " >&6; }
10197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10198   $as_echo_n "(cached) " >&6
10199 else
10200   eval "$as_ac_Header=\$ac_header_preproc"
10201 fi
10202 ac_res=`eval 'as_val=${'$as_ac_Header'}
10203                  $as_echo "$as_val"'`
10204                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10205 $as_echo "$ac_res" >&6; }
10206
10207 fi
10208 as_val=`eval 'as_val=${'$as_ac_Header'}
10209                  $as_echo "$as_val"'`
10210    if test "x$as_val" = x""yes; then
10211   cat >>confdefs.h <<_ACEOF
10212 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10213 _ACEOF
10214
10215 fi
10216
10217 done
10218
10219
10220 for ac_header in sstream
10221 do
10222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10224   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10225 $as_echo_n "checking for $ac_header... " >&6; }
10226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10227   $as_echo_n "(cached) " >&6
10228 fi
10229 ac_res=`eval 'as_val=${'$as_ac_Header'}
10230                  $as_echo "$as_val"'`
10231                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10232 $as_echo "$ac_res" >&6; }
10233 else
10234   # Is the header compilable?
10235 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10236 $as_echo_n "checking $ac_header usability... " >&6; }
10237 cat >conftest.$ac_ext <<_ACEOF
10238 /* confdefs.h.  */
10239 _ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h.  */
10243 $ac_includes_default
10244 #include <$ac_header>
10245 _ACEOF
10246 rm -f conftest.$ac_objext
10247 if { (ac_try="$ac_compile"
10248 case "(($ac_try" in
10249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250   *) ac_try_echo=$ac_try;;
10251 esac
10252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10253 $as_echo "$ac_try_echo") >&5
10254   (eval "$ac_compile") 2>conftest.er1
10255   ac_status=$?
10256   grep -v '^ *+' conftest.er1 >conftest.err
10257   rm -f conftest.er1
10258   cat conftest.err >&5
10259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); } && {
10261          test -z "$ac_cxx_werror_flag" ||
10262          test ! -s conftest.err
10263        } && test -s conftest.$ac_objext; then
10264   ac_header_compiler=yes
10265 else
10266   $as_echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10268
10269         ac_header_compiler=no
10270 fi
10271
10272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10273 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10274 $as_echo "$ac_header_compiler" >&6; }
10275
10276 # Is the header present?
10277 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10278 $as_echo_n "checking $ac_header presence... " >&6; }
10279 cat >conftest.$ac_ext <<_ACEOF
10280 /* confdefs.h.  */
10281 _ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h.  */
10285 #include <$ac_header>
10286 _ACEOF
10287 if { (ac_try="$ac_cpp conftest.$ac_ext"
10288 case "(($ac_try" in
10289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290   *) ac_try_echo=$ac_try;;
10291 esac
10292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10293 $as_echo "$ac_try_echo") >&5
10294   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10295   ac_status=$?
10296   grep -v '^ *+' conftest.er1 >conftest.err
10297   rm -f conftest.er1
10298   cat conftest.err >&5
10299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } >/dev/null && {
10301          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10302          test ! -s conftest.err
10303        }; then
10304   ac_header_preproc=yes
10305 else
10306   $as_echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10308
10309   ac_header_preproc=no
10310 fi
10311
10312 rm -f conftest.err conftest.$ac_ext
10313 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10314 $as_echo "$ac_header_preproc" >&6; }
10315
10316 # So?  What about this header?
10317 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10318   yes:no: )
10319     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10320 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10321     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10322 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10323     ac_header_preproc=yes
10324     ;;
10325   no:yes:* )
10326     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10327 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10328     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10329 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10330     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10331 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10332     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10333 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10334     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10336     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10337 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10338
10339     ;;
10340 esac
10341 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10342 $as_echo_n "checking for $ac_header... " >&6; }
10343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10344   $as_echo_n "(cached) " >&6
10345 else
10346   eval "$as_ac_Header=\$ac_header_preproc"
10347 fi
10348 ac_res=`eval 'as_val=${'$as_ac_Header'}
10349                  $as_echo "$as_val"'`
10350                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10351 $as_echo "$ac_res" >&6; }
10352
10353 fi
10354 as_val=`eval 'as_val=${'$as_ac_Header'}
10355                  $as_echo "$as_val"'`
10356    if test "x$as_val" = x""yes; then
10357   cat >>confdefs.h <<_ACEOF
10358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10359 _ACEOF
10360
10361 fi
10362
10363 done
10364
10365 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10366 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10367 if test "${ac_cv_header_stat_broken+set}" = set; then
10368   $as_echo_n "(cached) " >&6
10369 else
10370   cat >conftest.$ac_ext <<_ACEOF
10371 /* confdefs.h.  */
10372 _ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h.  */
10376 #include <sys/types.h>
10377 #include <sys/stat.h>
10378
10379 #if defined S_ISBLK && defined S_IFDIR
10380 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10381 #endif
10382
10383 #if defined S_ISBLK && defined S_IFCHR
10384 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10385 #endif
10386
10387 #if defined S_ISLNK && defined S_IFREG
10388 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10389 #endif
10390
10391 #if defined S_ISSOCK && defined S_IFREG
10392 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10393 #endif
10394
10395 _ACEOF
10396 rm -f conftest.$ac_objext
10397 if { (ac_try="$ac_compile"
10398 case "(($ac_try" in
10399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400   *) ac_try_echo=$ac_try;;
10401 esac
10402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10403 $as_echo "$ac_try_echo") >&5
10404   (eval "$ac_compile") 2>conftest.er1
10405   ac_status=$?
10406   grep -v '^ *+' conftest.er1 >conftest.err
10407   rm -f conftest.er1
10408   cat conftest.err >&5
10409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410   (exit $ac_status); } && {
10411          test -z "$ac_cxx_werror_flag" ||
10412          test ! -s conftest.err
10413        } && test -s conftest.$ac_objext; then
10414   ac_cv_header_stat_broken=no
10415 else
10416   $as_echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10418
10419         ac_cv_header_stat_broken=yes
10420 fi
10421
10422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10423 fi
10424 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10425 $as_echo "$ac_cv_header_stat_broken" >&6; }
10426 if test $ac_cv_header_stat_broken = yes; then
10427
10428 cat >>confdefs.h <<\_ACEOF
10429 #define STAT_MACROS_BROKEN 1
10430 _ACEOF
10431
10432 fi
10433
10434 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
10435 $as_echo_n "checking for working memcmp... " >&6; }
10436 if test "${ac_cv_func_memcmp_working+set}" = set; then
10437   $as_echo_n "(cached) " >&6
10438 else
10439   if test "$cross_compiling" = yes; then
10440   ac_cv_func_memcmp_working=no
10441 else
10442   cat >conftest.$ac_ext <<_ACEOF
10443 /* confdefs.h.  */
10444 _ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h.  */
10448 $ac_includes_default
10449 int
10450 main ()
10451 {
10452
10453   /* Some versions of memcmp are not 8-bit clean.  */
10454   char c0 = '\100', c1 = '\200', c2 = '\201';
10455   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10456     return 1;
10457
10458   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10459      or more and with at least one buffer not starting on a 4-byte boundary.
10460      William Lewis provided this test program.   */
10461   {
10462     char foo[21];
10463     char bar[21];
10464     int i;
10465     for (i = 0; i < 4; i++)
10466       {
10467         char *a = foo + i;
10468         char *b = bar + i;
10469         strcpy (a, "--------01111111");
10470         strcpy (b, "--------10000000");
10471         if (memcmp (a, b, 16) >= 0)
10472           return 1;
10473       }
10474     return 0;
10475   }
10476
10477   ;
10478   return 0;
10479 }
10480 _ACEOF
10481 rm -f conftest$ac_exeext
10482 if { (ac_try="$ac_link"
10483 case "(($ac_try" in
10484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485   *) ac_try_echo=$ac_try;;
10486 esac
10487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10488 $as_echo "$ac_try_echo") >&5
10489   (eval "$ac_link") 2>&5
10490   ac_status=$?
10491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10493   { (case "(($ac_try" in
10494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495   *) ac_try_echo=$ac_try;;
10496 esac
10497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10498 $as_echo "$ac_try_echo") >&5
10499   (eval "$ac_try") 2>&5
10500   ac_status=$?
10501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502   (exit $ac_status); }; }; then
10503   ac_cv_func_memcmp_working=yes
10504 else
10505   $as_echo "$as_me: program exited with status $ac_status" >&5
10506 $as_echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10508
10509 ( exit $ac_status )
10510 ac_cv_func_memcmp_working=no
10511 fi
10512 rm -rf conftest.dSYM
10513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10514 fi
10515
10516
10517 fi
10518 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10519 $as_echo "$ac_cv_func_memcmp_working" >&6; }
10520 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10521   *" memcmp.$ac_objext "* ) ;;
10522   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10523  ;;
10524 esac
10525
10526
10527
10528 for ac_func in vprintf
10529 do
10530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10531 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10532 $as_echo_n "checking for $ac_func... " >&6; }
10533 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10534   $as_echo_n "(cached) " >&6
10535 else
10536   cat >conftest.$ac_ext <<_ACEOF
10537 /* confdefs.h.  */
10538 _ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h.  */
10542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10544 #define $ac_func innocuous_$ac_func
10545
10546 /* System header to define __stub macros and hopefully few prototypes,
10547     which can conflict with char $ac_func (); below.
10548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10549     <limits.h> exists even on freestanding compilers.  */
10550
10551 #ifdef __STDC__
10552 # include <limits.h>
10553 #else
10554 # include <assert.h>
10555 #endif
10556
10557 #undef $ac_func
10558
10559 /* Override any GCC internal prototype to avoid an error.
10560    Use char because int might match the return type of a GCC
10561    builtin and then its argument prototype would still apply.  */
10562 #ifdef __cplusplus
10563 extern "C"
10564 #endif
10565 char $ac_func ();
10566 /* The GNU C library defines this for functions which it implements
10567     to always fail with ENOSYS.  Some functions are actually named
10568     something starting with __ and the normal name is an alias.  */
10569 #if defined __stub_$ac_func || defined __stub___$ac_func
10570 choke me
10571 #endif
10572
10573 int
10574 main ()
10575 {
10576 return $ac_func ();
10577   ;
10578   return 0;
10579 }
10580 _ACEOF
10581 rm -f conftest.$ac_objext conftest$ac_exeext
10582 if { (ac_try="$ac_link"
10583 case "(($ac_try" in
10584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585   *) ac_try_echo=$ac_try;;
10586 esac
10587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10588 $as_echo "$ac_try_echo") >&5
10589   (eval "$ac_link") 2>conftest.er1
10590   ac_status=$?
10591   grep -v '^ *+' conftest.er1 >conftest.err
10592   rm -f conftest.er1
10593   cat conftest.err >&5
10594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   (exit $ac_status); } && {
10596          test -z "$ac_cxx_werror_flag" ||
10597          test ! -s conftest.err
10598        } && test -s conftest$ac_exeext && {
10599          test "$cross_compiling" = yes ||
10600          $as_test_x conftest$ac_exeext
10601        }; then
10602   eval "$as_ac_var=yes"
10603 else
10604   $as_echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10606
10607         eval "$as_ac_var=no"
10608 fi
10609
10610 rm -rf conftest.dSYM
10611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10612       conftest$ac_exeext conftest.$ac_ext
10613 fi
10614 ac_res=`eval 'as_val=${'$as_ac_var'}
10615                  $as_echo "$as_val"'`
10616                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10617 $as_echo "$ac_res" >&6; }
10618 as_val=`eval 'as_val=${'$as_ac_var'}
10619                  $as_echo "$as_val"'`
10620    if test "x$as_val" = x""yes; then
10621   cat >>confdefs.h <<_ACEOF
10622 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10623 _ACEOF
10624
10625 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
10626 $as_echo_n "checking for _doprnt... " >&6; }
10627 if test "${ac_cv_func__doprnt+set}" = set; then
10628   $as_echo_n "(cached) " >&6
10629 else
10630   cat >conftest.$ac_ext <<_ACEOF
10631 /* confdefs.h.  */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h.  */
10636 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10638 #define _doprnt innocuous__doprnt
10639
10640 /* System header to define __stub macros and hopefully few prototypes,
10641     which can conflict with char _doprnt (); below.
10642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10643     <limits.h> exists even on freestanding compilers.  */
10644
10645 #ifdef __STDC__
10646 # include <limits.h>
10647 #else
10648 # include <assert.h>
10649 #endif
10650
10651 #undef _doprnt
10652
10653 /* Override any GCC internal prototype to avoid an error.
10654    Use char because int might match the return type of a GCC
10655    builtin and then its argument prototype would still apply.  */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 char _doprnt ();
10660 /* The GNU C library defines this for functions which it implements
10661     to always fail with ENOSYS.  Some functions are actually named
10662     something starting with __ and the normal name is an alias.  */
10663 #if defined __stub__doprnt || defined __stub____doprnt
10664 choke me
10665 #endif
10666
10667 int
10668 main ()
10669 {
10670 return _doprnt ();
10671   ;
10672   return 0;
10673 }
10674 _ACEOF
10675 rm -f conftest.$ac_objext conftest$ac_exeext
10676 if { (ac_try="$ac_link"
10677 case "(($ac_try" in
10678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679   *) ac_try_echo=$ac_try;;
10680 esac
10681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10682 $as_echo "$ac_try_echo") >&5
10683   (eval "$ac_link") 2>conftest.er1
10684   ac_status=$?
10685   grep -v '^ *+' conftest.er1 >conftest.err
10686   rm -f conftest.er1
10687   cat conftest.err >&5
10688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689   (exit $ac_status); } && {
10690          test -z "$ac_cxx_werror_flag" ||
10691          test ! -s conftest.err
10692        } && test -s conftest$ac_exeext && {
10693          test "$cross_compiling" = yes ||
10694          $as_test_x conftest$ac_exeext
10695        }; then
10696   ac_cv_func__doprnt=yes
10697 else
10698   $as_echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10700
10701         ac_cv_func__doprnt=no
10702 fi
10703
10704 rm -rf conftest.dSYM
10705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10706       conftest$ac_exeext conftest.$ac_ext
10707 fi
10708 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10709 $as_echo "$ac_cv_func__doprnt" >&6; }
10710 if test "x$ac_cv_func__doprnt" = x""yes; then
10711
10712 cat >>confdefs.h <<\_ACEOF
10713 #define HAVE_DOPRNT 1
10714 _ACEOF
10715
10716 fi
10717
10718 fi
10719 done
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729 for ac_func in chroot fopencookie gettext isinf memmem snprintf vsnprintf
10730 do
10731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10732 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10733 $as_echo_n "checking for $ac_func... " >&6; }
10734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10735   $as_echo_n "(cached) " >&6
10736 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10745 #define $ac_func innocuous_$ac_func
10746
10747 /* System header to define __stub macros and hopefully few prototypes,
10748     which can conflict with char $ac_func (); below.
10749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10750     <limits.h> exists even on freestanding compilers.  */
10751
10752 #ifdef __STDC__
10753 # include <limits.h>
10754 #else
10755 # include <assert.h>
10756 #endif
10757
10758 #undef $ac_func
10759
10760 /* Override any GCC internal prototype to avoid an error.
10761    Use char because int might match the return type of a GCC
10762    builtin and then its argument prototype would still apply.  */
10763 #ifdef __cplusplus
10764 extern "C"
10765 #endif
10766 char $ac_func ();
10767 /* The GNU C library defines this for functions which it implements
10768     to always fail with ENOSYS.  Some functions are actually named
10769     something starting with __ and the normal name is an alias.  */
10770 #if defined __stub_$ac_func || defined __stub___$ac_func
10771 choke me
10772 #endif
10773
10774 int
10775 main ()
10776 {
10777 return $ac_func ();
10778   ;
10779   return 0;
10780 }
10781 _ACEOF
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (ac_try="$ac_link"
10784 case "(($ac_try" in
10785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786   *) ac_try_echo=$ac_try;;
10787 esac
10788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10789 $as_echo "$ac_try_echo") >&5
10790   (eval "$ac_link") 2>conftest.er1
10791   ac_status=$?
10792   grep -v '^ *+' conftest.er1 >conftest.err
10793   rm -f conftest.er1
10794   cat conftest.err >&5
10795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); } && {
10797          test -z "$ac_cxx_werror_flag" ||
10798          test ! -s conftest.err
10799        } && test -s conftest$ac_exeext && {
10800          test "$cross_compiling" = yes ||
10801          $as_test_x conftest$ac_exeext
10802        }; then
10803   eval "$as_ac_var=yes"
10804 else
10805   $as_echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10807
10808         eval "$as_ac_var=no"
10809 fi
10810
10811 rm -rf conftest.dSYM
10812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813       conftest$ac_exeext conftest.$ac_ext
10814 fi
10815 ac_res=`eval 'as_val=${'$as_ac_var'}
10816                  $as_echo "$as_val"'`
10817                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10818 $as_echo "$ac_res" >&6; }
10819 as_val=`eval 'as_val=${'$as_ac_var'}
10820                  $as_echo "$as_val"'`
10821    if test "x$as_val" = x""yes; then
10822   cat >>confdefs.h <<_ACEOF
10823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10824 _ACEOF
10825
10826 fi
10827 done
10828
10829
10830
10831     for ac_prog in pkg-config
10832 do
10833   # Extract the first word of "$ac_prog", so it can be a program name with args.
10834 set dummy $ac_prog; ac_word=$2
10835 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10836 $as_echo_n "checking for $ac_word... " >&6; }
10837 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
10838   $as_echo_n "(cached) " >&6
10839 else
10840   if test -n "$PKG_CONFIG"; then
10841   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
10842 else
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $PATH
10845 do
10846   IFS=$as_save_IFS
10847   test -z "$as_dir" && as_dir=.
10848   for ac_exec_ext in '' $ac_executable_extensions; do
10849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10850     ac_cv_prog_PKG_CONFIG="$ac_prog"
10851     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10852     break 2
10853   fi
10854 done
10855 done
10856 IFS=$as_save_IFS
10857
10858 fi
10859 fi
10860 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
10861 if test -n "$PKG_CONFIG"; then
10862   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10863 $as_echo "$PKG_CONFIG" >&6; }
10864 else
10865   { $as_echo "$as_me:$LINENO: result: no" >&5
10866 $as_echo "no" >&6; }
10867 fi
10868
10869
10870   test -n "$PKG_CONFIG" && break
10871 done
10872 test -n "$PKG_CONFIG" || PKG_CONFIG="no"
10873
10874
10875
10876     r="`eval echo '$'"PKG_CONFIG"`"
10877     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PKG_CONFIG"`' : '.*\(echo\)' > /dev/null; then
10878         true
10879     else
10880         ##STEPMAKE_WARN(cannot find . )
10881         false
10882     fi
10883
10884     if test $? -ne 0; then
10885
10886     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"pkg-config\"`\"
10887
10888         if test "REQUIRED" = "REQUIRED"; then
10889             command="echo ERROR: pkg-config not found"
10890             # abort configure process here?
10891         else
10892             command="- echo pkg-config not found"
10893         fi
10894         eval "PKG_CONFIG"='$command'
10895         false
10896     else
10897         true
10898     fi
10899
10900     if test $? -eq 0 -a -n "0.9.0"; then
10901
10902     r="`eval echo '$'"PKG_CONFIG"`"
10903     { $as_echo "$as_me:$LINENO: checking $r version" >&5
10904 $as_echo_n "checking $r version... " >&6; }
10905     exe=`
10906     ## which doesn't work in ash, if /usr/bin/which isn't installed
10907     ## type -p doesn't work in ash
10908     ## command -v doesn't work in zsh
10909     ## command -v "$r" 2>&1
10910     ## this test should work in ash, bash, pdksh (ksh), zsh
10911     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10912 `
10913     if test -n ""; then
10914         ver=""
10915     else
10916         ver=`
10917     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10918     ##
10919     ## ARG.
10920     ## Workaround for broken Debian gcc version string:
10921     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10922     ##
10923     ## -V: Workaround for python
10924
10925     #dnl
10926
10927     ## Assume and hunt for dotted version multiplet.
10928     ## use eval trickery, because we cannot use multi-level $() instead of ``
10929     ## for compatibility reasons.
10930
10931     ## grab the first version number in  --version output.
10932     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10933                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10934                 head -n 1 |
10935                 tr ' ' '\n' |
10936                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10937                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10938                 head -n 1\`\"
10939
10940     if test -z "$_ver"; then
10941         ## If empty, try date [fontforge]
10942         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
10943             | head -n 1 \
10944             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10945     fi
10946     echo "$_ver"
10947     #dnl
10948 `
10949     fi
10950     num=`
10951     echo "$ver" | awk -F. '
10952     {
10953       if ($3) {three = $3}
10954       else {three = 0}
10955     }
10956     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10957 `
10958     req=`
10959     echo "0.9.0" | awk -F. '
10960     {
10961       if ($3) {three = $3}
10962       else {three = 0}
10963     }
10964     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10965 `
10966     { $as_echo "$as_me:$LINENO: result: $ver" >&5
10967 $as_echo "$ver" >&6; }
10968     if test "$num" -lt "$req"; then
10969
10970     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 0.9.0 (installed: $ver)"\"`\"
10971
10972     fi
10973     vervar="`echo PKG_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
10974     eval `echo $vervar=$num`
10975 ##    AC_SUBST(`eval echo $vervar`)
10976
10977     fi
10978
10979
10980 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic relocation" >&5
10981 $as_echo_n "checking whether to enable dynamic relocation... " >&6; }
10982 if test "$reloc_b" = "yes"; then
10983     cat >>confdefs.h <<\_ACEOF
10984 #define ARGV0_RELOCATION 1
10985 _ACEOF
10986
10987 fi
10988 { $as_echo "$as_me:$LINENO: result: $reloc_b" >&5
10989 $as_echo "$reloc_b" >&6; }
10990
10991 { $as_echo "$as_me:$LINENO: checking for rpath linkage" >&5
10992 $as_echo_n "checking for rpath linkage... " >&6; }
10993 if test "$rpath_b" = "yes"; then
10994     LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib"
10995 elif test "$rpath_b" != "no"; then
10996     LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b"
10997 fi
10998 { $as_echo "$as_me:$LINENO: result: $rpath_b" >&5
10999 $as_echo "$rpath_b" >&6; }
11000
11001 HOST_ARCH=`$CC -dumpmachine`
11002
11003
11004
11005
11006   succeeded=no
11007
11008   if test -z "$PKG_CONFIG"; then
11009     # Extract the first word of "pkg-config", so it can be a program name with args.
11010 set dummy pkg-config; ac_word=$2
11011 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11012 $as_echo_n "checking for $ac_word... " >&6; }
11013 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11014   $as_echo_n "(cached) " >&6
11015 else
11016   case $PKG_CONFIG in
11017   [\\/]* | ?:[\\/]*)
11018   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11019   ;;
11020   *)
11021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11022 for as_dir in $PATH
11023 do
11024   IFS=$as_save_IFS
11025   test -z "$as_dir" && as_dir=.
11026   for ac_exec_ext in '' $ac_executable_extensions; do
11027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11028     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11029     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11030     break 2
11031   fi
11032 done
11033 done
11034 IFS=$as_save_IFS
11035
11036   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11037   ;;
11038 esac
11039 fi
11040 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11041 if test -n "$PKG_CONFIG"; then
11042   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11043 $as_echo "$PKG_CONFIG" >&6; }
11044 else
11045   { $as_echo "$as_me:$LINENO: result: no" >&5
11046 $as_echo "no" >&6; }
11047 fi
11048
11049
11050   fi
11051
11052   if test "$PKG_CONFIG" = "no" ; then
11053      echo "*** The pkg-config script could not be found. Make sure it is"
11054      echo "*** in your path, or set the PKG_CONFIG environment variable"
11055      echo "*** to the full path to pkg-config."
11056      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11057   else
11058      PKG_CONFIG_MIN_VERSION=0.9.0
11059      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11060         { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.6.0" >&5
11061 $as_echo_n "checking for pangoft2 >= 1.6.0... " >&6; }
11062
11063         if $PKG_CONFIG --exists "pangoft2 >= 1.6.0" ; then
11064             { $as_echo "$as_me:$LINENO: result: yes" >&5
11065 $as_echo "yes" >&6; }
11066             succeeded=yes
11067
11068             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
11069 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
11070             PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.6.0"`
11071             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
11072 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
11073
11074             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
11075 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
11076             PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.6.0"`
11077             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
11078 $as_echo "$PANGO_FT2_LIBS" >&6; }
11079         else
11080             PANGO_FT2_CFLAGS=""
11081             PANGO_FT2_LIBS=""
11082             ## If we have a custom action on failure, don't print errors, but
11083             ## do set a variable so people can do so.
11084             PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.6.0"`
11085
11086         fi
11087
11088
11089
11090      fi
11091   fi
11092
11093   if test $succeeded = yes; then
11094      have_pangoft2=yes
11095   else
11096      true
11097   fi
11098
11099     if test "$have_pangoft2" = yes ; then
11100         cat >>confdefs.h <<\_ACEOF
11101 #define HAVE_PANGO16 1
11102 _ACEOF
11103
11104         cat >>confdefs.h <<\_ACEOF
11105 #define HAVE_PANGO_FT2 1
11106 _ACEOF
11107
11108         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11109         save_CPPFLAGS="$CPPFLAGS"
11110         save_LIBS="$LIBS"
11111         CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
11112         LIBS="$PANGO_FT2_LIBS $LIBS"
11113
11114 for ac_header in pango/pangoft2.h
11115 do
11116 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11118   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11119 $as_echo_n "checking for $ac_header... " >&6; }
11120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11121   $as_echo_n "(cached) " >&6
11122 fi
11123 ac_res=`eval 'as_val=${'$as_ac_Header'}
11124                  $as_echo "$as_val"'`
11125                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11126 $as_echo "$ac_res" >&6; }
11127 else
11128   # Is the header compilable?
11129 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11130 $as_echo_n "checking $ac_header usability... " >&6; }
11131 cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h.  */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h.  */
11137 $ac_includes_default
11138 #include <$ac_header>
11139 _ACEOF
11140 rm -f conftest.$ac_objext
11141 if { (ac_try="$ac_compile"
11142 case "(($ac_try" in
11143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144   *) ac_try_echo=$ac_try;;
11145 esac
11146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11147 $as_echo "$ac_try_echo") >&5
11148   (eval "$ac_compile") 2>conftest.er1
11149   ac_status=$?
11150   grep -v '^ *+' conftest.er1 >conftest.err
11151   rm -f conftest.er1
11152   cat conftest.err >&5
11153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154   (exit $ac_status); } && {
11155          test -z "$ac_cxx_werror_flag" ||
11156          test ! -s conftest.err
11157        } && test -s conftest.$ac_objext; then
11158   ac_header_compiler=yes
11159 else
11160   $as_echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11162
11163         ac_header_compiler=no
11164 fi
11165
11166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11167 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11168 $as_echo "$ac_header_compiler" >&6; }
11169
11170 # Is the header present?
11171 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11172 $as_echo_n "checking $ac_header presence... " >&6; }
11173 cat >conftest.$ac_ext <<_ACEOF
11174 /* confdefs.h.  */
11175 _ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h.  */
11179 #include <$ac_header>
11180 _ACEOF
11181 if { (ac_try="$ac_cpp conftest.$ac_ext"
11182 case "(($ac_try" in
11183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184   *) ac_try_echo=$ac_try;;
11185 esac
11186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11187 $as_echo "$ac_try_echo") >&5
11188   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11189   ac_status=$?
11190   grep -v '^ *+' conftest.er1 >conftest.err
11191   rm -f conftest.er1
11192   cat conftest.err >&5
11193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); } >/dev/null && {
11195          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11196          test ! -s conftest.err
11197        }; then
11198   ac_header_preproc=yes
11199 else
11200   $as_echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11202
11203   ac_header_preproc=no
11204 fi
11205
11206 rm -f conftest.err conftest.$ac_ext
11207 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11208 $as_echo "$ac_header_preproc" >&6; }
11209
11210 # So?  What about this header?
11211 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11212   yes:no: )
11213     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11214 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11215     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11217     ac_header_preproc=yes
11218     ;;
11219   no:yes:* )
11220     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11221 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11222     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11223 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11224     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11225 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11226     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11227 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11228     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11229 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11230     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11231 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11232
11233     ;;
11234 esac
11235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11236 $as_echo_n "checking for $ac_header... " >&6; }
11237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11238   $as_echo_n "(cached) " >&6
11239 else
11240   eval "$as_ac_Header=\$ac_header_preproc"
11241 fi
11242 ac_res=`eval 'as_val=${'$as_ac_Header'}
11243                  $as_echo "$as_val"'`
11244                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11245 $as_echo "$ac_res" >&6; }
11246
11247 fi
11248 as_val=`eval 'as_val=${'$as_ac_Header'}
11249                  $as_echo "$as_val"'`
11250    if test "x$as_val" = x""yes; then
11251   cat >>confdefs.h <<_ACEOF
11252 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11253 _ACEOF
11254
11255 fi
11256
11257 done
11258
11259
11260 for ac_func in pango_ft2_font_map_create_context
11261 do
11262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11263 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11264 $as_echo_n "checking for $ac_func... " >&6; }
11265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11266   $as_echo_n "(cached) " >&6
11267 else
11268   cat >conftest.$ac_ext <<_ACEOF
11269 /* confdefs.h.  */
11270 _ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h.  */
11274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11276 #define $ac_func innocuous_$ac_func
11277
11278 /* System header to define __stub macros and hopefully few prototypes,
11279     which can conflict with char $ac_func (); below.
11280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11281     <limits.h> exists even on freestanding compilers.  */
11282
11283 #ifdef __STDC__
11284 # include <limits.h>
11285 #else
11286 # include <assert.h>
11287 #endif
11288
11289 #undef $ac_func
11290
11291 /* Override any GCC internal prototype to avoid an error.
11292    Use char because int might match the return type of a GCC
11293    builtin and then its argument prototype would still apply.  */
11294 #ifdef __cplusplus
11295 extern "C"
11296 #endif
11297 char $ac_func ();
11298 /* The GNU C library defines this for functions which it implements
11299     to always fail with ENOSYS.  Some functions are actually named
11300     something starting with __ and the normal name is an alias.  */
11301 #if defined __stub_$ac_func || defined __stub___$ac_func
11302 choke me
11303 #endif
11304
11305 int
11306 main ()
11307 {
11308 return $ac_func ();
11309   ;
11310   return 0;
11311 }
11312 _ACEOF
11313 rm -f conftest.$ac_objext conftest$ac_exeext
11314 if { (ac_try="$ac_link"
11315 case "(($ac_try" in
11316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317   *) ac_try_echo=$ac_try;;
11318 esac
11319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11320 $as_echo "$ac_try_echo") >&5
11321   (eval "$ac_link") 2>conftest.er1
11322   ac_status=$?
11323   grep -v '^ *+' conftest.er1 >conftest.err
11324   rm -f conftest.er1
11325   cat conftest.err >&5
11326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); } && {
11328          test -z "$ac_cxx_werror_flag" ||
11329          test ! -s conftest.err
11330        } && test -s conftest$ac_exeext && {
11331          test "$cross_compiling" = yes ||
11332          $as_test_x conftest$ac_exeext
11333        }; then
11334   eval "$as_ac_var=yes"
11335 else
11336   $as_echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11338
11339         eval "$as_ac_var=no"
11340 fi
11341
11342 rm -rf conftest.dSYM
11343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11344       conftest$ac_exeext conftest.$ac_ext
11345 fi
11346 ac_res=`eval 'as_val=${'$as_ac_var'}
11347                  $as_echo "$as_val"'`
11348                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11349 $as_echo "$ac_res" >&6; }
11350 as_val=`eval 'as_val=${'$as_ac_var'}
11351                  $as_echo "$as_val"'`
11352    if test "x$as_val" = x""yes; then
11353   cat >>confdefs.h <<_ACEOF
11354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11355 _ACEOF
11356
11357 fi
11358 done
11359
11360
11361
11362         CPPFLAGS="$save_CPPFLAGS"
11363         LIBS="$save_LIBS"
11364     else
11365         # UGR
11366         #r="libpangoft2-dev or pangoft2-devel"e
11367         r="libpango1.0-dev or pango?-devel"
11368         ver="`pkg-config --modversion pangoft2`"
11369
11370     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.6.0 (installed: $ver)"\"`\"
11371
11372     fi
11373
11374
11375
11376   succeeded=no
11377
11378   if test -z "$PKG_CONFIG"; then
11379     # Extract the first word of "pkg-config", so it can be a program name with args.
11380 set dummy pkg-config; ac_word=$2
11381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11382 $as_echo_n "checking for $ac_word... " >&6; }
11383 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11384   $as_echo_n "(cached) " >&6
11385 else
11386   case $PKG_CONFIG in
11387   [\\/]* | ?:[\\/]*)
11388   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11389   ;;
11390   *)
11391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11393 do
11394   IFS=$as_save_IFS
11395   test -z "$as_dir" && as_dir=.
11396   for ac_exec_ext in '' $ac_executable_extensions; do
11397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11399     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11400     break 2
11401   fi
11402 done
11403 done
11404 IFS=$as_save_IFS
11405
11406   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11407   ;;
11408 esac
11409 fi
11410 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11411 if test -n "$PKG_CONFIG"; then
11412   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11413 $as_echo "$PKG_CONFIG" >&6; }
11414 else
11415   { $as_echo "$as_me:$LINENO: result: no" >&5
11416 $as_echo "no" >&6; }
11417 fi
11418
11419
11420   fi
11421
11422   if test "$PKG_CONFIG" = "no" ; then
11423      echo "*** The pkg-config script could not be found. Make sure it is"
11424      echo "*** in your path, or set the PKG_CONFIG environment variable"
11425      echo "*** to the full path to pkg-config."
11426      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11427   else
11428      PKG_CONFIG_MIN_VERSION=0.9.0
11429      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11430         { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.4.0" >&5
11431 $as_echo_n "checking for fontconfig >= 2.4.0... " >&6; }
11432
11433         if $PKG_CONFIG --exists "fontconfig >= 2.4.0" ; then
11434             { $as_echo "$as_me:$LINENO: result: yes" >&5
11435 $as_echo "yes" >&6; }
11436             succeeded=yes
11437
11438             { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
11439 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11440             FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4.0"`
11441             { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
11442 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11443
11444             { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
11445 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11446             FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4.0"`
11447             { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
11448 $as_echo "$FONTCONFIG_LIBS" >&6; }
11449         else
11450             FONTCONFIG_CFLAGS=""
11451             FONTCONFIG_LIBS=""
11452             ## If we have a custom action on failure, don't print errors, but
11453             ## do set a variable so people can do so.
11454             FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.4.0"`
11455
11456         fi
11457
11458
11459
11460      fi
11461   fi
11462
11463   if test $succeeded = yes; then
11464      have_fontconfig=yes
11465   else
11466      true
11467   fi
11468
11469     if test "$have_fontconfig" = yes ; then
11470         cat >>confdefs.h <<\_ACEOF
11471 #define HAVE_FONTCONFIG 1
11472 _ACEOF
11473
11474         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11475         save_CPPFLAGS="$CPPFLAGS"
11476         save_LIBS="$LIBS"
11477         CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
11478         LIBS="$FONTCONFIG_LIBS $LIBS"
11479
11480
11481         CPPFLAGS="$save_CPPFLAGS"
11482         LIBS="$save_LIBS"
11483     else
11484         r="libfontconfig-dev or fontconfig-devel"
11485         ver="`pkg-config --modversion fontconfig`"
11486
11487     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.4.0 (installed: $ver)"\"`\"
11488
11489     fi
11490
11491
11492
11493   succeeded=no
11494
11495   if test -z "$PKG_CONFIG"; then
11496     # Extract the first word of "pkg-config", so it can be a program name with args.
11497 set dummy pkg-config; ac_word=$2
11498 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11499 $as_echo_n "checking for $ac_word... " >&6; }
11500 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11501   $as_echo_n "(cached) " >&6
11502 else
11503   case $PKG_CONFIG in
11504   [\\/]* | ?:[\\/]*)
11505   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11506   ;;
11507   *)
11508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509 for as_dir in $PATH
11510 do
11511   IFS=$as_save_IFS
11512   test -z "$as_dir" && as_dir=.
11513   for ac_exec_ext in '' $ac_executable_extensions; do
11514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11515     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11516     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11517     break 2
11518   fi
11519 done
11520 done
11521 IFS=$as_save_IFS
11522
11523   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11524   ;;
11525 esac
11526 fi
11527 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11528 if test -n "$PKG_CONFIG"; then
11529   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11530 $as_echo "$PKG_CONFIG" >&6; }
11531 else
11532   { $as_echo "$as_me:$LINENO: result: no" >&5
11533 $as_echo "no" >&6; }
11534 fi
11535
11536
11537   fi
11538
11539   if test "$PKG_CONFIG" = "no" ; then
11540      echo "*** The pkg-config script could not be found. Make sure it is"
11541      echo "*** in your path, or set the PKG_CONFIG environment variable"
11542      echo "*** to the full path to pkg-config."
11543      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11544   else
11545      PKG_CONFIG_MIN_VERSION=0.9.0
11546      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11547         { $as_echo "$as_me:$LINENO: checking for freetype2 >= 2.1.10" >&5
11548 $as_echo_n "checking for freetype2 >= 2.1.10... " >&6; }
11549
11550         if $PKG_CONFIG --exists "freetype2 >= 2.1.10" ; then
11551             { $as_echo "$as_me:$LINENO: result: yes" >&5
11552 $as_echo "yes" >&6; }
11553             succeeded=yes
11554
11555             { $as_echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
11556 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
11557             FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.10"`
11558             { $as_echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
11559 $as_echo "$FREETYPE2_CFLAGS" >&6; }
11560
11561             { $as_echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
11562 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
11563             FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.10"`
11564             { $as_echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
11565 $as_echo "$FREETYPE2_LIBS" >&6; }
11566         else
11567             FREETYPE2_CFLAGS=""
11568             FREETYPE2_LIBS=""
11569             ## If we have a custom action on failure, don't print errors, but
11570             ## do set a variable so people can do so.
11571             FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.1.10"`
11572
11573         fi
11574
11575
11576
11577      fi
11578   fi
11579
11580   if test $succeeded = yes; then
11581      have_freetype2=yes
11582   else
11583      true
11584   fi
11585
11586     if test "$have_freetype2" = yes; then
11587         cat >>confdefs.h <<\_ACEOF
11588 #define HAVE_FREETYPE2 1
11589 _ACEOF
11590
11591         save_CPPFLAGS="$CPPFLAGS"
11592         save_LIBS="$LIBS"
11593         CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
11594         LIBS="$FREETYPE2_LIBS $LIBS"
11595
11596
11597         CPPFLAGS="$save_CPPFLAGS"
11598         LIBS="$save_LIBS"
11599     else
11600         # UGR
11601         #r="libfreetype2-dev or freetype2-devel"
11602         r="libfreetype6-dev or freetype?-devel"
11603         ver="`pkg-config --modversion freetype2`"
11604
11605     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.1.10 (installed: $ver)"\"`\"
11606
11607     fi
11608
11609
11610
11611     { $as_echo "$as_me:$LINENO: checking host system type" >&5
11612 $as_echo_n "checking host system type... " >&6; }
11613 if test "${ac_cv_host+set}" = set; then
11614   $as_echo_n "(cached) " >&6
11615 else
11616   if test "x$host_alias" = x; then
11617   ac_cv_host=$ac_cv_build
11618 else
11619   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11620     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11621 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11622    { (exit 1); exit 1; }; }
11623 fi
11624
11625 fi
11626 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11627 $as_echo "$ac_cv_host" >&6; }
11628 case $ac_cv_host in
11629 *-*-*) ;;
11630 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11631 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11632    { (exit 1); exit 1; }; };;
11633 esac
11634 host=$ac_cv_host
11635 ac_save_IFS=$IFS; IFS='-'
11636 set x $ac_cv_host
11637 shift
11638 host_cpu=$1
11639 host_vendor=$2
11640 shift; shift
11641 # Remember, the first character of IFS is used to create $*,
11642 # except with old shells:
11643 host_os=$*
11644 IFS=$ac_save_IFS
11645 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11646
11647
11648 case $host_os in
11649   *cygwin* ) CYGWIN=yes;;
11650          * ) CYGWIN=no;;
11651 esac
11652
11653     { $as_echo "$as_me:$LINENO: checking host system type" >&5
11654 $as_echo_n "checking host system type... " >&6; }
11655 if test "${ac_cv_host+set}" = set; then
11656   $as_echo_n "(cached) " >&6
11657 else
11658   if test "x$host_alias" = x; then
11659   ac_cv_host=$ac_cv_build
11660 else
11661   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11662     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11663 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11664    { (exit 1); exit 1; }; }
11665 fi
11666
11667 fi
11668 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11669 $as_echo "$ac_cv_host" >&6; }
11670 case $ac_cv_host in
11671 *-*-*) ;;
11672 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11673 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11674    { (exit 1); exit 1; }; };;
11675 esac
11676 host=$ac_cv_host
11677 ac_save_IFS=$IFS; IFS='-'
11678 set x $ac_cv_host
11679 shift
11680 host_cpu=$1
11681 host_vendor=$2
11682 shift; shift
11683 # Remember, the first character of IFS is used to create $*,
11684 # except with old shells:
11685 host_os=$*
11686 IFS=$ac_save_IFS
11687 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11688
11689
11690 case $host_os in
11691   *mingw32* ) MINGW32=yes;;
11692           * ) MINGW32=no;;
11693 esac
11694
11695
11696     if test "$CYGWIN" = "yes"; then
11697         LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
11698         program_suffix=.exe
11699         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11700     elif test "$MINGW32" = "yes"; then
11701         LN='cp -r'
11702         LN_S='cp -r'
11703         program_suffix=.exe
11704         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11705         PATHSEP=';'
11706     fi
11707
11708
11709
11710     cat >>confdefs.h <<_ACEOF
11711 #define DIRSEP '${DIRSEP}'
11712 _ACEOF
11713
11714     cat >>confdefs.h <<_ACEOF
11715 #define PATHSEP '${PATHSEP}'
11716 _ACEOF
11717
11718
11719
11720
11721
11722     { $as_echo "$as_me:$LINENO: checking for some flavor of Windows" >&5
11723 $as_echo_n "checking for some flavor of Windows... " >&6; }
11724     if test "$CYGWIN$MINGW32" = "nono"; then
11725         PLATFORM_WINDOWS=no
11726     else
11727         PLATFORM_WINDOWS=yes
11728     fi
11729     { $as_echo "$as_me:$LINENO: result: $PLATFORM_WINDOWS" >&5
11730 $as_echo "$PLATFORM_WINDOWS" >&6; }
11731
11732
11733     for ac_prog in $target-windres windres
11734 do
11735   # Extract the first word of "$ac_prog", so it can be a program name with args.
11736 set dummy $ac_prog; ac_word=$2
11737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11738 $as_echo_n "checking for $ac_word... " >&6; }
11739 if test "${ac_cv_prog_WINDRES+set}" = set; then
11740   $as_echo_n "(cached) " >&6
11741 else
11742   if test -n "$WINDRES"; then
11743   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11744 else
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $PATH
11747 do
11748   IFS=$as_save_IFS
11749   test -z "$as_dir" && as_dir=.
11750   for ac_exec_ext in '' $ac_executable_extensions; do
11751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11752     ac_cv_prog_WINDRES="$ac_prog"
11753     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11754     break 2
11755   fi
11756 done
11757 done
11758 IFS=$as_save_IFS
11759
11760 fi
11761 fi
11762 WINDRES=$ac_cv_prog_WINDRES
11763 if test -n "$WINDRES"; then
11764   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
11765 $as_echo "$WINDRES" >&6; }
11766 else
11767   { $as_echo "$as_me:$LINENO: result: no" >&5
11768 $as_echo "no" >&6; }
11769 fi
11770
11771
11772   test -n "$WINDRES" && break
11773 done
11774 test -n "$WINDRES" || WINDRES="no"
11775
11776
11777
11778     r="`eval echo '$'"WINDRES"`"
11779     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"WINDRES"`' : '.*\(echo\)' > /dev/null; then
11780         true
11781     else
11782         ##STEPMAKE_WARN(cannot find . )
11783         false
11784     fi
11785
11786     if test $? -ne 0; then
11787
11788     eval "x"=\"`eval echo \"'$'x\" \"$target-windres windres\"`\"
11789
11790         if test "x" = "REQUIRED"; then
11791             command="echo ERROR: $target-windres windres not found"
11792             # abort configure process here?
11793         else
11794             command="- echo $target-windres windres not found"
11795         fi
11796         eval "WINDRES"='$command'
11797         false
11798     else
11799         true
11800     fi
11801
11802     if test $? -eq 0 -a -n ""; then
11803
11804     r="`eval echo '$'"WINDRES"`"
11805     { $as_echo "$as_me:$LINENO: checking $r version" >&5
11806 $as_echo_n "checking $r version... " >&6; }
11807     exe=`
11808     ## which doesn't work in ash, if /usr/bin/which isn't installed
11809     ## type -p doesn't work in ash
11810     ## command -v doesn't work in zsh
11811     ## command -v "$r" 2>&1
11812     ## this test should work in ash, bash, pdksh (ksh), zsh
11813     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11814 `
11815     if test -n ""; then
11816         ver=""
11817     else
11818         ver=`
11819     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11820     ##
11821     ## ARG.
11822     ## Workaround for broken Debian gcc version string:
11823     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11824     ##
11825     ## -V: Workaround for python
11826
11827     #dnl
11828
11829     ## Assume and hunt for dotted version multiplet.
11830     ## use eval trickery, because we cannot use multi-level $() instead of ``
11831     ## for compatibility reasons.
11832
11833     ## grab the first version number in  --version output.
11834     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11835                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11836                 head -n 1 |
11837                 tr ' ' '\n' |
11838                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11839                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11840                 head -n 1\`\"
11841
11842     if test -z "$_ver"; then
11843         ## If empty, try date [fontforge]
11844         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11845             | head -n 1 \
11846             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11847     fi
11848     echo "$_ver"
11849     #dnl
11850 `
11851     fi
11852     num=`
11853     echo "$ver" | awk -F. '
11854     {
11855       if ($3) {three = $3}
11856       else {three = 0}
11857     }
11858     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11859 `
11860     req=`
11861     echo "" | awk -F. '
11862     {
11863       if ($3) {three = $3}
11864       else {three = 0}
11865     }
11866     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11867 `
11868     { $as_echo "$as_me:$LINENO: result: $ver" >&5
11869 $as_echo "$ver" >&6; }
11870     if test "$num" -lt "$req"; then
11871
11872     eval "x"=\"`eval echo \"'$'x\" \""$r >=  (installed: $ver)"\"`\"
11873
11874     fi
11875     vervar="`echo WINDRES | tr 'a-z' 'A-Z'`_VERSION"
11876     eval `echo $vervar=$num`
11877 ##    AC_SUBST(`eval echo $vervar`)
11878
11879     fi
11880
11881
11882
11883
11884 ## Optional tools for building documentation, website, extra fonts.
11885
11886 # guile executable for some scripts
11887
11888
11889     for ac_prog in guile guile1
11890 do
11891   # Extract the first word of "$ac_prog", so it can be a program name with args.
11892 set dummy $ac_prog; ac_word=$2
11893 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11894 $as_echo_n "checking for $ac_word... " >&6; }
11895 if test "${ac_cv_prog_GUILE+set}" = set; then
11896   $as_echo_n "(cached) " >&6
11897 else
11898   if test -n "$GUILE"; then
11899   ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
11900 else
11901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902 for as_dir in $PATH
11903 do
11904   IFS=$as_save_IFS
11905   test -z "$as_dir" && as_dir=.
11906   for ac_exec_ext in '' $ac_executable_extensions; do
11907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11908     ac_cv_prog_GUILE="$ac_prog"
11909     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11910     break 2
11911   fi
11912 done
11913 done
11914 IFS=$as_save_IFS
11915
11916 fi
11917 fi
11918 GUILE=$ac_cv_prog_GUILE
11919 if test -n "$GUILE"; then
11920   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
11921 $as_echo "$GUILE" >&6; }
11922 else
11923   { $as_echo "$as_me:$LINENO: result: no" >&5
11924 $as_echo "no" >&6; }
11925 fi
11926
11927
11928   test -n "$GUILE" && break
11929 done
11930 test -n "$GUILE" || GUILE="no"
11931
11932
11933
11934     r="`eval echo '$'"GUILE"`"
11935     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
11936         true
11937     else
11938         ##STEPMAKE_WARN(cannot find . )
11939         false
11940     fi
11941
11942     if test $? -ne 0; then
11943
11944     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"guile guile1\"`\"
11945
11946         if test "OPTIONAL" = "REQUIRED"; then
11947             command="echo ERROR: guile guile1 not found"
11948             # abort configure process here?
11949         else
11950             command="- echo guile guile1 not found"
11951         fi
11952         eval "GUILE"='$command'
11953         false
11954     else
11955         true
11956     fi
11957
11958     if test $? -eq 0; then
11959         for ac_prog in guile guile1
11960 do
11961   # Extract the first word of "$ac_prog", so it can be a program name with args.
11962 set dummy $ac_prog; ac_word=$2
11963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11964 $as_echo_n "checking for $ac_word... " >&6; }
11965 if test "${ac_cv_path_GUILE+set}" = set; then
11966   $as_echo_n "(cached) " >&6
11967 else
11968   case $GUILE in
11969   [\\/]* | ?:[\\/]*)
11970   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
11971   ;;
11972   *)
11973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11974 for as_dir in $PATH
11975 do
11976   IFS=$as_save_IFS
11977   test -z "$as_dir" && as_dir=.
11978   for ac_exec_ext in '' $ac_executable_extensions; do
11979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11980     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
11981     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11982     break 2
11983   fi
11984 done
11985 done
11986 IFS=$as_save_IFS
11987
11988   ;;
11989 esac
11990 fi
11991 GUILE=$ac_cv_path_GUILE
11992 if test -n "$GUILE"; then
11993   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
11994 $as_echo "$GUILE" >&6; }
11995 else
11996   { $as_echo "$as_me:$LINENO: result: no" >&5
11997 $as_echo "no" >&6; }
11998 fi
11999
12000
12001   test -n "$GUILE" && break
12002 done
12003
12004         if test -n ""; then
12005
12006     r="`eval echo '$'"GUILE"`"
12007     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12008 $as_echo_n "checking $r version... " >&6; }
12009     exe=`
12010     ## which doesn't work in ash, if /usr/bin/which isn't installed
12011     ## type -p doesn't work in ash
12012     ## command -v doesn't work in zsh
12013     ## command -v "$r" 2>&1
12014     ## this test should work in ash, bash, pdksh (ksh), zsh
12015     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12016 `
12017     if test -n ""; then
12018         ver=""
12019     else
12020         ver=`
12021     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12022     ##
12023     ## ARG.
12024     ## Workaround for broken Debian gcc version string:
12025     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12026     ##
12027     ## -V: Workaround for python
12028
12029     #dnl
12030
12031     ## Assume and hunt for dotted version multiplet.
12032     ## use eval trickery, because we cannot use multi-level $() instead of ``
12033     ## for compatibility reasons.
12034
12035     ## grab the first version number in  --version output.
12036     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12037                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12038                 head -n 1 |
12039                 tr ' ' '\n' |
12040                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12041                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12042                 head -n 1\`\"
12043
12044     if test -z "$_ver"; then
12045         ## If empty, try date [fontforge]
12046         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12047             | head -n 1 \
12048             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12049     fi
12050     echo "$_ver"
12051     #dnl
12052 `
12053     fi
12054     num=`
12055     echo "$ver" | awk -F. '
12056     {
12057       if ($3) {three = $3}
12058       else {three = 0}
12059     }
12060     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12061 `
12062     req=`
12063     echo "" | awk -F. '
12064     {
12065       if ($3) {three = $3}
12066       else {three = 0}
12067     }
12068     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12069 `
12070     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12071 $as_echo "$ver" >&6; }
12072     if test "$num" -lt "$req"; then
12073
12074     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
12075
12076     fi
12077     vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
12078     eval `echo $vervar=$num`
12079 ##    AC_SUBST(`eval echo $vervar`)
12080
12081         fi
12082     fi
12083
12084
12085
12086 # perl for help2man.
12087
12088
12089     for ac_prog in perl
12090 do
12091   # Extract the first word of "$ac_prog", so it can be a program name with args.
12092 set dummy $ac_prog; ac_word=$2
12093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12094 $as_echo_n "checking for $ac_word... " >&6; }
12095 if test "${ac_cv_prog_PERL+set}" = set; then
12096   $as_echo_n "(cached) " >&6
12097 else
12098   if test -n "$PERL"; then
12099   ac_cv_prog_PERL="$PERL" # Let the user override the test.
12100 else
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in $PATH
12103 do
12104   IFS=$as_save_IFS
12105   test -z "$as_dir" && as_dir=.
12106   for ac_exec_ext in '' $ac_executable_extensions; do
12107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12108     ac_cv_prog_PERL="$ac_prog"
12109     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12110     break 2
12111   fi
12112 done
12113 done
12114 IFS=$as_save_IFS
12115
12116 fi
12117 fi
12118 PERL=$ac_cv_prog_PERL
12119 if test -n "$PERL"; then
12120   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12121 $as_echo "$PERL" >&6; }
12122 else
12123   { $as_echo "$as_me:$LINENO: result: no" >&5
12124 $as_echo "no" >&6; }
12125 fi
12126
12127
12128   test -n "$PERL" && break
12129 done
12130 test -n "$PERL" || PERL="no"
12131
12132
12133
12134     r="`eval echo '$'"PERL"`"
12135     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
12136         true
12137     else
12138         ##STEPMAKE_WARN(cannot find . )
12139         false
12140     fi
12141
12142     if test $? -ne 0; then
12143
12144     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"perl\"`\"
12145
12146         if test "OPTIONAL" = "REQUIRED"; then
12147             command="echo ERROR: perl not found"
12148             # abort configure process here?
12149         else
12150             command="- echo perl not found"
12151         fi
12152         eval "PERL"='$command'
12153         false
12154     else
12155         true
12156     fi
12157
12158     if test $? -eq 0; then
12159         for ac_prog in perl
12160 do
12161   # Extract the first word of "$ac_prog", so it can be a program name with args.
12162 set dummy $ac_prog; ac_word=$2
12163 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12164 $as_echo_n "checking for $ac_word... " >&6; }
12165 if test "${ac_cv_path_PERL+set}" = set; then
12166   $as_echo_n "(cached) " >&6
12167 else
12168   case $PERL in
12169   [\\/]* | ?:[\\/]*)
12170   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12171   ;;
12172   *)
12173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12174 for as_dir in $PATH
12175 do
12176   IFS=$as_save_IFS
12177   test -z "$as_dir" && as_dir=.
12178   for ac_exec_ext in '' $ac_executable_extensions; do
12179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12180     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12181     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12182     break 2
12183   fi
12184 done
12185 done
12186 IFS=$as_save_IFS
12187
12188   ;;
12189 esac
12190 fi
12191 PERL=$ac_cv_path_PERL
12192 if test -n "$PERL"; then
12193   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12194 $as_echo "$PERL" >&6; }
12195 else
12196   { $as_echo "$as_me:$LINENO: result: no" >&5
12197 $as_echo "no" >&6; }
12198 fi
12199
12200
12201   test -n "$PERL" && break
12202 done
12203
12204         if test -n ""; then
12205
12206     r="`eval echo '$'"PERL"`"
12207     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12208 $as_echo_n "checking $r version... " >&6; }
12209     exe=`
12210     ## which doesn't work in ash, if /usr/bin/which isn't installed
12211     ## type -p doesn't work in ash
12212     ## command -v doesn't work in zsh
12213     ## command -v "$r" 2>&1
12214     ## this test should work in ash, bash, pdksh (ksh), zsh
12215     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12216 `
12217     if test -n ""; then
12218         ver=""
12219     else
12220         ver=`
12221     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12222     ##
12223     ## ARG.
12224     ## Workaround for broken Debian gcc version string:
12225     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12226     ##
12227     ## -V: Workaround for python
12228
12229     #dnl
12230
12231     ## Assume and hunt for dotted version multiplet.
12232     ## use eval trickery, because we cannot use multi-level $() instead of ``
12233     ## for compatibility reasons.
12234
12235     ## grab the first version number in  --version output.
12236     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12237                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12238                 head -n 1 |
12239                 tr ' ' '\n' |
12240                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12241                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12242                 head -n 1\`\"
12243
12244     if test -z "$_ver"; then
12245         ## If empty, try date [fontforge]
12246         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12247             | head -n 1 \
12248             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12249     fi
12250     echo "$_ver"
12251     #dnl
12252 `
12253     fi
12254     num=`
12255     echo "$ver" | awk -F. '
12256     {
12257       if ($3) {three = $3}
12258       else {three = 0}
12259     }
12260     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12261 `
12262     req=`
12263     echo "" | awk -F. '
12264     {
12265       if ($3) {three = $3}
12266       else {three = 0}
12267     }
12268     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12269 `
12270     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12271 $as_echo "$ver" >&6; }
12272     if test "$num" -lt "$req"; then
12273
12274     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
12275
12276     fi
12277     vervar="`echo PERL | tr 'a-z' 'A-Z'`_VERSION"
12278     eval `echo $vervar=$num`
12279 ##    AC_SUBST(`eval echo $vervar`)
12280
12281         fi
12282     fi
12283
12284
12285
12286
12287     for ac_prog in makeinfo
12288 do
12289   # Extract the first word of "$ac_prog", so it can be a program name with args.
12290 set dummy $ac_prog; ac_word=$2
12291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12292 $as_echo_n "checking for $ac_word... " >&6; }
12293 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
12294   $as_echo_n "(cached) " >&6
12295 else
12296   if test -n "$MAKEINFO"; then
12297   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12298 else
12299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12300 for as_dir in $PATH
12301 do
12302   IFS=$as_save_IFS
12303   test -z "$as_dir" && as_dir=.
12304   for ac_exec_ext in '' $ac_executable_extensions; do
12305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12306     ac_cv_prog_MAKEINFO="$ac_prog"
12307     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12308     break 2
12309   fi
12310 done
12311 done
12312 IFS=$as_save_IFS
12313
12314 fi
12315 fi
12316 MAKEINFO=$ac_cv_prog_MAKEINFO
12317 if test -n "$MAKEINFO"; then
12318   { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12319 $as_echo "$MAKEINFO" >&6; }
12320 else
12321   { $as_echo "$as_me:$LINENO: result: no" >&5
12322 $as_echo "no" >&6; }
12323 fi
12324
12325
12326   test -n "$MAKEINFO" && break
12327 done
12328 test -n "$MAKEINFO" || MAKEINFO="no"
12329
12330
12331
12332     r="`eval echo '$'"MAKEINFO"`"
12333     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
12334         true
12335     else
12336         ##STEPMAKE_WARN(cannot find . )
12337         false
12338     fi
12339
12340     if test $? -ne 0; then
12341
12342     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
12343
12344         if test "REQUIRED" = "REQUIRED"; then
12345             command="echo ERROR: makeinfo not found"
12346             # abort configure process here?
12347         else
12348             command="- echo makeinfo not found"
12349         fi
12350         eval "MAKEINFO"='$command'
12351         false
12352     else
12353         true
12354     fi
12355
12356     if test $? -eq 0 -a -n "4.11"; then
12357
12358     r="`eval echo '$'"MAKEINFO"`"
12359     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12360 $as_echo_n "checking $r version... " >&6; }
12361     exe=`
12362     ## which doesn't work in ash, if /usr/bin/which isn't installed
12363     ## type -p doesn't work in ash
12364     ## command -v doesn't work in zsh
12365     ## command -v "$r" 2>&1
12366     ## this test should work in ash, bash, pdksh (ksh), zsh
12367     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12368 `
12369     if test -n ""; then
12370         ver=""
12371     else
12372         ver=`
12373     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12374     ##
12375     ## ARG.
12376     ## Workaround for broken Debian gcc version string:
12377     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12378     ##
12379     ## -V: Workaround for python
12380
12381     #dnl
12382
12383     ## Assume and hunt for dotted version multiplet.
12384     ## use eval trickery, because we cannot use multi-level $() instead of ``
12385     ## for compatibility reasons.
12386
12387     ## grab the first version number in  --version output.
12388     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12389                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12390                 head -n 1 |
12391                 tr ' ' '\n' |
12392                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12393                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12394                 head -n 1\`\"
12395
12396     if test -z "$_ver"; then
12397         ## If empty, try date [fontforge]
12398         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12399             | head -n 1 \
12400             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12401     fi
12402     echo "$_ver"
12403     #dnl
12404 `
12405     fi
12406     num=`
12407     echo "$ver" | awk -F. '
12408     {
12409       if ($3) {three = $3}
12410       else {three = 0}
12411     }
12412     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12413 `
12414     req=`
12415     echo "4.11" | awk -F. '
12416     {
12417       if ($3) {three = $3}
12418       else {three = 0}
12419     }
12420     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12421 `
12422     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12423 $as_echo "$ver" >&6; }
12424     if test "$num" -lt "$req"; then
12425
12426     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 4.11 (installed: $ver)"\"`\"
12427
12428     fi
12429     vervar="`echo MAKEINFO | tr 'a-z' 'A-Z'`_VERSION"
12430     eval `echo $vervar=$num`
12431 ##    AC_SUBST(`eval echo $vervar`)
12432
12433     fi
12434
12435
12436     for ac_prog in texi2html
12437 do
12438   # Extract the first word of "$ac_prog", so it can be a program name with args.
12439 set dummy $ac_prog; ac_word=$2
12440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12441 $as_echo_n "checking for $ac_word... " >&6; }
12442 if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
12443   $as_echo_n "(cached) " >&6
12444 else
12445   if test -n "$TEXI2HTML"; then
12446   ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
12447 else
12448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12449 for as_dir in $PATH
12450 do
12451   IFS=$as_save_IFS
12452   test -z "$as_dir" && as_dir=.
12453   for ac_exec_ext in '' $ac_executable_extensions; do
12454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12455     ac_cv_prog_TEXI2HTML="$ac_prog"
12456     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12457     break 2
12458   fi
12459 done
12460 done
12461 IFS=$as_save_IFS
12462
12463 fi
12464 fi
12465 TEXI2HTML=$ac_cv_prog_TEXI2HTML
12466 if test -n "$TEXI2HTML"; then
12467   { $as_echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
12468 $as_echo "$TEXI2HTML" >&6; }
12469 else
12470   { $as_echo "$as_me:$LINENO: result: no" >&5
12471 $as_echo "no" >&6; }
12472 fi
12473
12474
12475   test -n "$TEXI2HTML" && break
12476 done
12477 test -n "$TEXI2HTML" || TEXI2HTML="no"
12478
12479
12480
12481     r="`eval echo '$'"TEXI2HTML"`"
12482     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2HTML"`' : '.*\(echo\)' > /dev/null; then
12483         true
12484     else
12485         ##STEPMAKE_WARN(cannot find . )
12486         false
12487     fi
12488
12489     if test $? -ne 0; then
12490
12491     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"texi2html\"`\"
12492
12493         if test "OPTIONAL" = "REQUIRED"; then
12494             command="echo ERROR: texi2html not found"
12495             # abort configure process here?
12496         else
12497             command="- echo texi2html not found"
12498         fi
12499         eval "TEXI2HTML"='$command'
12500         false
12501     else
12502         true
12503     fi
12504
12505     if test $? -eq 0 -a -n "1.82"; then
12506
12507     r="`eval echo '$'"TEXI2HTML"`"
12508     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12509 $as_echo_n "checking $r version... " >&6; }
12510     exe=`
12511     ## which doesn't work in ash, if /usr/bin/which isn't installed
12512     ## type -p doesn't work in ash
12513     ## command -v doesn't work in zsh
12514     ## command -v "$r" 2>&1
12515     ## this test should work in ash, bash, pdksh (ksh), zsh
12516     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12517 `
12518     if test -n ""; then
12519         ver=""
12520     else
12521         ver=`
12522     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12523     ##
12524     ## ARG.
12525     ## Workaround for broken Debian gcc version string:
12526     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12527     ##
12528     ## -V: Workaround for python
12529
12530     #dnl
12531
12532     ## Assume and hunt for dotted version multiplet.
12533     ## use eval trickery, because we cannot use multi-level $() instead of ``
12534     ## for compatibility reasons.
12535
12536     ## grab the first version number in  --version output.
12537     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12538                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12539                 head -n 1 |
12540                 tr ' ' '\n' |
12541                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12542                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12543                 head -n 1\`\"
12544
12545     if test -z "$_ver"; then
12546         ## If empty, try date [fontforge]
12547         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12548             | head -n 1 \
12549             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12550     fi
12551     echo "$_ver"
12552     #dnl
12553 `
12554     fi
12555     num=`
12556     echo "$ver" | awk -F. '
12557     {
12558       if ($3) {three = $3}
12559       else {three = 0}
12560     }
12561     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12562 `
12563     req=`
12564     echo "1.82" | awk -F. '
12565     {
12566       if ($3) {three = $3}
12567       else {three = 0}
12568     }
12569     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12570 `
12571     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12572 $as_echo "$ver" >&6; }
12573     if test "$num" -lt "$req"; then
12574
12575     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 1.82 (installed: $ver)"\"`\"
12576
12577     fi
12578     vervar="`echo TEXI2HTML | tr 'a-z' 'A-Z'`_VERSION"
12579     eval `echo $vervar=$num`
12580 ##    AC_SUBST(`eval echo $vervar`)
12581
12582     fi
12583
12584
12585     for ac_prog in dblatex
12586 do
12587   # Extract the first word of "$ac_prog", so it can be a program name with args.
12588 set dummy $ac_prog; ac_word=$2
12589 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12590 $as_echo_n "checking for $ac_word... " >&6; }
12591 if test "${ac_cv_prog_DBLATEX+set}" = set; then
12592   $as_echo_n "(cached) " >&6
12593 else
12594   if test -n "$DBLATEX"; then
12595   ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
12596 else
12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12599 do
12600   IFS=$as_save_IFS
12601   test -z "$as_dir" && as_dir=.
12602   for ac_exec_ext in '' $ac_executable_extensions; do
12603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12604     ac_cv_prog_DBLATEX="$ac_prog"
12605     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12606     break 2
12607   fi
12608 done
12609 done
12610 IFS=$as_save_IFS
12611
12612 fi
12613 fi
12614 DBLATEX=$ac_cv_prog_DBLATEX
12615 if test -n "$DBLATEX"; then
12616   { $as_echo "$as_me:$LINENO: result: $DBLATEX" >&5
12617 $as_echo "$DBLATEX" >&6; }
12618 else
12619   { $as_echo "$as_me:$LINENO: result: no" >&5
12620 $as_echo "no" >&6; }
12621 fi
12622
12623
12624   test -n "$DBLATEX" && break
12625 done
12626 test -n "$DBLATEX" || DBLATEX="no"
12627
12628
12629
12630     r="`eval echo '$'"DBLATEX"`"
12631     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"DBLATEX"`' : '.*\(echo\)' > /dev/null; then
12632         true
12633     else
12634         ##STEPMAKE_WARN(cannot find . )
12635         false
12636     fi
12637
12638     if test $? -ne 0; then
12639
12640     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"dblatex\"`\"
12641
12642         if test "OPTIONAL" = "REQUIRED"; then
12643             command="echo ERROR: dblatex not found"
12644             # abort configure process here?
12645         else
12646             command="- echo dblatex not found"
12647         fi
12648         eval "DBLATEX"='$command'
12649         false
12650     else
12651         true
12652     fi
12653
12654     if test $? -eq 0 -a -n "0.1.4"; then
12655
12656     r="`eval echo '$'"DBLATEX"`"
12657     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12658 $as_echo_n "checking $r version... " >&6; }
12659     exe=`
12660     ## which doesn't work in ash, if /usr/bin/which isn't installed
12661     ## type -p doesn't work in ash
12662     ## command -v doesn't work in zsh
12663     ## command -v "$r" 2>&1
12664     ## this test should work in ash, bash, pdksh (ksh), zsh
12665     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12666 `
12667     if test -n ""; then
12668         ver=""
12669     else
12670         ver=`
12671     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12672     ##
12673     ## ARG.
12674     ## Workaround for broken Debian gcc version string:
12675     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12676     ##
12677     ## -V: Workaround for python
12678
12679     #dnl
12680
12681     ## Assume and hunt for dotted version multiplet.
12682     ## use eval trickery, because we cannot use multi-level $() instead of ``
12683     ## for compatibility reasons.
12684
12685     ## grab the first version number in  --version output.
12686     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12687                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12688                 head -n 1 |
12689                 tr ' ' '\n' |
12690                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12691                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12692                 head -n 1\`\"
12693
12694     if test -z "$_ver"; then
12695         ## If empty, try date [fontforge]
12696         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12697             | head -n 1 \
12698             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12699     fi
12700     echo "$_ver"
12701     #dnl
12702 `
12703     fi
12704     num=`
12705     echo "$ver" | awk -F. '
12706     {
12707       if ($3) {three = $3}
12708       else {three = 0}
12709     }
12710     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12711 `
12712     req=`
12713     echo "0.1.4" | awk -F. '
12714     {
12715       if ($3) {three = $3}
12716       else {three = 0}
12717     }
12718     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12719 `
12720     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12721 $as_echo "$ver" >&6; }
12722     if test "$num" -lt "$req"; then
12723
12724     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 0.1.4 (installed: $ver)"\"`\"
12725
12726     fi
12727     vervar="`echo DBLATEX | tr 'a-z' 'A-Z'`_VERSION"
12728     eval `echo $vervar=$num`
12729 ##    AC_SUBST(`eval echo $vervar`)
12730
12731     fi
12732
12733
12734     for ac_prog in pdflatex
12735 do
12736   # Extract the first word of "$ac_prog", so it can be a program name with args.
12737 set dummy $ac_prog; ac_word=$2
12738 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12739 $as_echo_n "checking for $ac_word... " >&6; }
12740 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
12741   $as_echo_n "(cached) " >&6
12742 else
12743   if test -n "$PDFLATEX"; then
12744   ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
12745 else
12746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12747 for as_dir in $PATH
12748 do
12749   IFS=$as_save_IFS
12750   test -z "$as_dir" && as_dir=.
12751   for ac_exec_ext in '' $ac_executable_extensions; do
12752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12753     ac_cv_prog_PDFLATEX="$ac_prog"
12754     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12755     break 2
12756   fi
12757 done
12758 done
12759 IFS=$as_save_IFS
12760
12761 fi
12762 fi
12763 PDFLATEX=$ac_cv_prog_PDFLATEX
12764 if test -n "$PDFLATEX"; then
12765   { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
12766 $as_echo "$PDFLATEX" >&6; }
12767 else
12768   { $as_echo "$as_me:$LINENO: result: no" >&5
12769 $as_echo "no" >&6; }
12770 fi
12771
12772
12773   test -n "$PDFLATEX" && break
12774 done
12775 test -n "$PDFLATEX" || PDFLATEX="no"
12776
12777
12778
12779     r="`eval echo '$'"PDFLATEX"`"
12780     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFLATEX"`' : '.*\(echo\)' > /dev/null; then
12781         true
12782     else
12783         ##STEPMAKE_WARN(cannot find . )
12784         false
12785     fi
12786
12787     if test $? -ne 0; then
12788
12789     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"pdflatex\"`\"
12790
12791         if test "OPTIONAL" = "REQUIRED"; then
12792             command="echo ERROR: pdflatex not found"
12793             # abort configure process here?
12794         else
12795             command="- echo pdflatex not found"
12796         fi
12797         eval "PDFLATEX"='$command'
12798         false
12799     else
12800         true
12801     fi
12802
12803     if test $? -eq 0 -a -n ""; then
12804
12805     r="`eval echo '$'"PDFLATEX"`"
12806     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12807 $as_echo_n "checking $r version... " >&6; }
12808     exe=`
12809     ## which doesn't work in ash, if /usr/bin/which isn't installed
12810     ## type -p doesn't work in ash
12811     ## command -v doesn't work in zsh
12812     ## command -v "$r" 2>&1
12813     ## this test should work in ash, bash, pdksh (ksh), zsh
12814     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12815 `
12816     if test -n ""; then
12817         ver=""
12818     else
12819         ver=`
12820     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12821     ##
12822     ## ARG.
12823     ## Workaround for broken Debian gcc version string:
12824     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12825     ##
12826     ## -V: Workaround for python
12827
12828     #dnl
12829
12830     ## Assume and hunt for dotted version multiplet.
12831     ## use eval trickery, because we cannot use multi-level $() instead of ``
12832     ## for compatibility reasons.
12833
12834     ## grab the first version number in  --version output.
12835     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12836                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12837                 head -n 1 |
12838                 tr ' ' '\n' |
12839                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12840                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12841                 head -n 1\`\"
12842
12843     if test -z "$_ver"; then
12844         ## If empty, try date [fontforge]
12845         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12846             | head -n 1 \
12847             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12848     fi
12849     echo "$_ver"
12850     #dnl
12851 `
12852     fi
12853     num=`
12854     echo "$ver" | awk -F. '
12855     {
12856       if ($3) {three = $3}
12857       else {three = 0}
12858     }
12859     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12860 `
12861     req=`
12862     echo "" | awk -F. '
12863     {
12864       if ($3) {three = $3}
12865       else {three = 0}
12866     }
12867     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12868 `
12869     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12870 $as_echo "$ver" >&6; }
12871     if test "$num" -lt "$req"; then
12872
12873     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
12874
12875     fi
12876     vervar="`echo PDFLATEX | tr 'a-z' 'A-Z'`_VERSION"
12877     eval `echo $vervar=$num`
12878 ##    AC_SUBST(`eval echo $vervar`)
12879
12880     fi
12881
12882
12883     for ac_prog in pngtopnm
12884 do
12885   # Extract the first word of "$ac_prog", so it can be a program name with args.
12886 set dummy $ac_prog; ac_word=$2
12887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12888 $as_echo_n "checking for $ac_word... " >&6; }
12889 if test "${ac_cv_prog_NETPBM+set}" = set; then
12890   $as_echo_n "(cached) " >&6
12891 else
12892   if test -n "$NETPBM"; then
12893   ac_cv_prog_NETPBM="$NETPBM" # Let the user override the test.
12894 else
12895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896 for as_dir in $PATH
12897 do
12898   IFS=$as_save_IFS
12899   test -z "$as_dir" && as_dir=.
12900   for ac_exec_ext in '' $ac_executable_extensions; do
12901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12902     ac_cv_prog_NETPBM="$ac_prog"
12903     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12904     break 2
12905   fi
12906 done
12907 done
12908 IFS=$as_save_IFS
12909
12910 fi
12911 fi
12912 NETPBM=$ac_cv_prog_NETPBM
12913 if test -n "$NETPBM"; then
12914   { $as_echo "$as_me:$LINENO: result: $NETPBM" >&5
12915 $as_echo "$NETPBM" >&6; }
12916 else
12917   { $as_echo "$as_me:$LINENO: result: no" >&5
12918 $as_echo "no" >&6; }
12919 fi
12920
12921
12922   test -n "$NETPBM" && break
12923 done
12924 test -n "$NETPBM" || NETPBM="no"
12925
12926
12927
12928     r="`eval echo '$'"NETPBM"`"
12929     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"NETPBM"`' : '.*\(echo\)' > /dev/null; then
12930         true
12931     else
12932         ##STEPMAKE_WARN(cannot find . )
12933         false
12934     fi
12935
12936     if test $? -ne 0; then
12937
12938     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"pngtopnm\"`\"
12939
12940         if test "OPTIONAL" = "REQUIRED"; then
12941             command="echo ERROR: pngtopnm not found"
12942             # abort configure process here?
12943         else
12944             command="- echo pngtopnm not found"
12945         fi
12946         eval "NETPBM"='$command'
12947         false
12948     else
12949         true
12950     fi
12951
12952     if test $? -eq 0 -a -n ""; then
12953
12954     r="`eval echo '$'"NETPBM"`"
12955     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12956 $as_echo_n "checking $r version... " >&6; }
12957     exe=`
12958     ## which doesn't work in ash, if /usr/bin/which isn't installed
12959     ## type -p doesn't work in ash
12960     ## command -v doesn't work in zsh
12961     ## command -v "$r" 2>&1
12962     ## this test should work in ash, bash, pdksh (ksh), zsh
12963     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12964 `
12965     if test -n ""; then
12966         ver=""
12967     else
12968         ver=`
12969     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12970     ##
12971     ## ARG.
12972     ## Workaround for broken Debian gcc version string:
12973     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12974     ##
12975     ## -V: Workaround for python
12976
12977     #dnl
12978
12979     ## Assume and hunt for dotted version multiplet.
12980     ## use eval trickery, because we cannot use multi-level $() instead of ``
12981     ## for compatibility reasons.
12982
12983     ## grab the first version number in  --version output.
12984     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12985                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12986                 head -n 1 |
12987                 tr ' ' '\n' |
12988                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12989                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12990                 head -n 1\`\"
12991
12992     if test -z "$_ver"; then
12993         ## If empty, try date [fontforge]
12994         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12995             | head -n 1 \
12996             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12997     fi
12998     echo "$_ver"
12999     #dnl
13000 `
13001     fi
13002     num=`
13003     echo "$ver" | awk -F. '
13004     {
13005       if ($3) {three = $3}
13006       else {three = 0}
13007     }
13008     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13009 `
13010     req=`
13011     echo "" | awk -F. '
13012     {
13013       if ($3) {three = $3}
13014       else {three = 0}
13015     }
13016     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13017 `
13018     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13019 $as_echo "$ver" >&6; }
13020     if test "$num" -lt "$req"; then
13021
13022     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
13023
13024     fi
13025     vervar="`echo NETPBM | tr 'a-z' 'A-Z'`_VERSION"
13026     eval `echo $vervar=$num`
13027 ##    AC_SUBST(`eval echo $vervar`)
13028
13029     fi
13030
13031
13032     for ac_prog in convert
13033 do
13034   # Extract the first word of "$ac_prog", so it can be a program name with args.
13035 set dummy $ac_prog; ac_word=$2
13036 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13037 $as_echo_n "checking for $ac_word... " >&6; }
13038 if test "${ac_cv_prog_IMAGEMAGICK+set}" = set; then
13039   $as_echo_n "(cached) " >&6
13040 else
13041   if test -n "$IMAGEMAGICK"; then
13042   ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
13043 else
13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045 for as_dir in $PATH
13046 do
13047   IFS=$as_save_IFS
13048   test -z "$as_dir" && as_dir=.
13049   for ac_exec_ext in '' $ac_executable_extensions; do
13050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13051     ac_cv_prog_IMAGEMAGICK="$ac_prog"
13052     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13053     break 2
13054   fi
13055 done
13056 done
13057 IFS=$as_save_IFS
13058
13059 fi
13060 fi
13061 IMAGEMAGICK=$ac_cv_prog_IMAGEMAGICK
13062 if test -n "$IMAGEMAGICK"; then
13063   { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK" >&5
13064 $as_echo "$IMAGEMAGICK" >&6; }
13065 else
13066   { $as_echo "$as_me:$LINENO: result: no" >&5
13067 $as_echo "no" >&6; }
13068 fi
13069
13070
13071   test -n "$IMAGEMAGICK" && break
13072 done
13073 test -n "$IMAGEMAGICK" || IMAGEMAGICK="no"
13074
13075
13076
13077     r="`eval echo '$'"IMAGEMAGICK"`"
13078     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"IMAGEMAGICK"`' : '.*\(echo\)' > /dev/null; then
13079         true
13080     else
13081         ##STEPMAKE_WARN(cannot find . )
13082         false
13083     fi
13084
13085     if test $? -ne 0; then
13086
13087     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"convert\"`\"
13088
13089         if test "OPTIONAL" = "REQUIRED"; then
13090             command="echo ERROR: convert not found"
13091             # abort configure process here?
13092         else
13093             command="- echo convert not found"
13094         fi
13095         eval "IMAGEMAGICK"='$command'
13096         false
13097     else
13098         true
13099     fi
13100
13101     if test $? -eq 0 -a -n ""; then
13102
13103     r="`eval echo '$'"IMAGEMAGICK"`"
13104     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13105 $as_echo_n "checking $r version... " >&6; }
13106     exe=`
13107     ## which doesn't work in ash, if /usr/bin/which isn't installed
13108     ## type -p doesn't work in ash
13109     ## command -v doesn't work in zsh
13110     ## command -v "$r" 2>&1
13111     ## this test should work in ash, bash, pdksh (ksh), zsh
13112     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13113 `
13114     if test -n ""; then
13115         ver=""
13116     else
13117         ver=`
13118     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13119     ##
13120     ## ARG.
13121     ## Workaround for broken Debian gcc version string:
13122     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13123     ##
13124     ## -V: Workaround for python
13125
13126     #dnl
13127
13128     ## Assume and hunt for dotted version multiplet.
13129     ## use eval trickery, because we cannot use multi-level $() instead of ``
13130     ## for compatibility reasons.
13131
13132     ## grab the first version number in  --version output.
13133     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13134                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13135                 head -n 1 |
13136                 tr ' ' '\n' |
13137                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13138                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13139                 head -n 1\`\"
13140
13141     if test -z "$_ver"; then
13142         ## If empty, try date [fontforge]
13143         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13144             | head -n 1 \
13145             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13146     fi
13147     echo "$_ver"
13148     #dnl
13149 `
13150     fi
13151     num=`
13152     echo "$ver" | awk -F. '
13153     {
13154       if ($3) {three = $3}
13155       else {three = 0}
13156     }
13157     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13158 `
13159     req=`
13160     echo "" | awk -F. '
13161     {
13162       if ($3) {three = $3}
13163       else {three = 0}
13164     }
13165     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13166 `
13167     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13168 $as_echo "$ver" >&6; }
13169     if test "$num" -lt "$req"; then
13170
13171     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
13172
13173     fi
13174     vervar="`echo IMAGEMAGICK | tr 'a-z' 'A-Z'`_VERSION"
13175     eval `echo $vervar=$num`
13176 ##    AC_SUBST(`eval echo $vervar`)
13177
13178     fi
13179
13180 # this name avoids a conflict with ZIP in stepmake/aclocal.m4
13181
13182     for ac_prog in zip
13183 do
13184   # Extract the first word of "$ac_prog", so it can be a program name with args.
13185 set dummy $ac_prog; ac_word=$2
13186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13187 $as_echo_n "checking for $ac_word... " >&6; }
13188 if test "${ac_cv_prog_ZIPDOC+set}" = set; then
13189   $as_echo_n "(cached) " >&6
13190 else
13191   if test -n "$ZIPDOC"; then
13192   ac_cv_prog_ZIPDOC="$ZIPDOC" # Let the user override the test.
13193 else
13194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13195 for as_dir in $PATH
13196 do
13197   IFS=$as_save_IFS
13198   test -z "$as_dir" && as_dir=.
13199   for ac_exec_ext in '' $ac_executable_extensions; do
13200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13201     ac_cv_prog_ZIPDOC="$ac_prog"
13202     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13203     break 2
13204   fi
13205 done
13206 done
13207 IFS=$as_save_IFS
13208
13209 fi
13210 fi
13211 ZIPDOC=$ac_cv_prog_ZIPDOC
13212 if test -n "$ZIPDOC"; then
13213   { $as_echo "$as_me:$LINENO: result: $ZIPDOC" >&5
13214 $as_echo "$ZIPDOC" >&6; }
13215 else
13216   { $as_echo "$as_me:$LINENO: result: no" >&5
13217 $as_echo "no" >&6; }
13218 fi
13219
13220
13221   test -n "$ZIPDOC" && break
13222 done
13223 test -n "$ZIPDOC" || ZIPDOC="no"
13224
13225
13226
13227     r="`eval echo '$'"ZIPDOC"`"
13228     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"ZIPDOC"`' : '.*\(echo\)' > /dev/null; then
13229         true
13230     else
13231         ##STEPMAKE_WARN(cannot find . )
13232         false
13233     fi
13234
13235     if test $? -ne 0; then
13236
13237     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"zip\"`\"
13238
13239         if test "OPTIONAL" = "REQUIRED"; then
13240             command="echo ERROR: zip not found"
13241             # abort configure process here?
13242         else
13243             command="- echo zip not found"
13244         fi
13245         eval "ZIPDOC"='$command'
13246         false
13247     else
13248         true
13249     fi
13250
13251     if test $? -eq 0 -a -n ""; then
13252
13253     r="`eval echo '$'"ZIPDOC"`"
13254     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13255 $as_echo_n "checking $r version... " >&6; }
13256     exe=`
13257     ## which doesn't work in ash, if /usr/bin/which isn't installed
13258     ## type -p doesn't work in ash
13259     ## command -v doesn't work in zsh
13260     ## command -v "$r" 2>&1
13261     ## this test should work in ash, bash, pdksh (ksh), zsh
13262     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13263 `
13264     if test -n ""; then
13265         ver=""
13266     else
13267         ver=`
13268     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13269     ##
13270     ## ARG.
13271     ## Workaround for broken Debian gcc version string:
13272     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13273     ##
13274     ## -V: Workaround for python
13275
13276     #dnl
13277
13278     ## Assume and hunt for dotted version multiplet.
13279     ## use eval trickery, because we cannot use multi-level $() instead of ``
13280     ## for compatibility reasons.
13281
13282     ## grab the first version number in  --version output.
13283     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13284                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13285                 head -n 1 |
13286                 tr ' ' '\n' |
13287                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13288                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13289                 head -n 1\`\"
13290
13291     if test -z "$_ver"; then
13292         ## If empty, try date [fontforge]
13293         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13294             | head -n 1 \
13295             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13296     fi
13297     echo "$_ver"
13298     #dnl
13299 `
13300     fi
13301     num=`
13302     echo "$ver" | awk -F. '
13303     {
13304       if ($3) {three = $3}
13305       else {three = 0}
13306     }
13307     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13308 `
13309     req=`
13310     echo "" | awk -F. '
13311     {
13312       if ($3) {three = $3}
13313       else {three = 0}
13314     }
13315     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13316 `
13317     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13318 $as_echo "$ver" >&6; }
13319     if test "$num" -lt "$req"; then
13320
13321     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
13322
13323     fi
13324     vervar="`echo ZIPDOC | tr 'a-z' 'A-Z'`_VERSION"
13325     eval `echo $vervar=$num`
13326 ##    AC_SUBST(`eval echo $vervar`)
13327
13328     fi
13329
13330
13331     for ac_prog in rsync
13332 do
13333   # Extract the first word of "$ac_prog", so it can be a program name with args.
13334 set dummy $ac_prog; ac_word=$2
13335 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13336 $as_echo_n "checking for $ac_word... " >&6; }
13337 if test "${ac_cv_prog_RSYNC+set}" = set; then
13338   $as_echo_n "(cached) " >&6
13339 else
13340   if test -n "$RSYNC"; then
13341   ac_cv_prog_RSYNC="$RSYNC" # Let the user override the test.
13342 else
13343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344 for as_dir in $PATH
13345 do
13346   IFS=$as_save_IFS
13347   test -z "$as_dir" && as_dir=.
13348   for ac_exec_ext in '' $ac_executable_extensions; do
13349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13350     ac_cv_prog_RSYNC="$ac_prog"
13351     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13352     break 2
13353   fi
13354 done
13355 done
13356 IFS=$as_save_IFS
13357
13358 fi
13359 fi
13360 RSYNC=$ac_cv_prog_RSYNC
13361 if test -n "$RSYNC"; then
13362   { $as_echo "$as_me:$LINENO: result: $RSYNC" >&5
13363 $as_echo "$RSYNC" >&6; }
13364 else
13365   { $as_echo "$as_me:$LINENO: result: no" >&5
13366 $as_echo "no" >&6; }
13367 fi
13368
13369
13370   test -n "$RSYNC" && break
13371 done
13372 test -n "$RSYNC" || RSYNC="no"
13373
13374
13375
13376     r="`eval echo '$'"RSYNC"`"
13377     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RSYNC"`' : '.*\(echo\)' > /dev/null; then
13378         true
13379     else
13380         ##STEPMAKE_WARN(cannot find . )
13381         false
13382     fi
13383
13384     if test $? -ne 0; then
13385
13386     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"rsync\"`\"
13387
13388         if test "OPTIONAL" = "REQUIRED"; then
13389             command="echo ERROR: rsync not found"
13390             # abort configure process here?
13391         else
13392             command="- echo rsync not found"
13393         fi
13394         eval "RSYNC"='$command'
13395         false
13396     else
13397         true
13398     fi
13399
13400     if test $? -eq 0 -a -n ""; then
13401
13402     r="`eval echo '$'"RSYNC"`"
13403     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13404 $as_echo_n "checking $r version... " >&6; }
13405     exe=`
13406     ## which doesn't work in ash, if /usr/bin/which isn't installed
13407     ## type -p doesn't work in ash
13408     ## command -v doesn't work in zsh
13409     ## command -v "$r" 2>&1
13410     ## this test should work in ash, bash, pdksh (ksh), zsh
13411     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13412 `
13413     if test -n ""; then
13414         ver=""
13415     else
13416         ver=`
13417     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13418     ##
13419     ## ARG.
13420     ## Workaround for broken Debian gcc version string:
13421     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13422     ##
13423     ## -V: Workaround for python
13424
13425     #dnl
13426
13427     ## Assume and hunt for dotted version multiplet.
13428     ## use eval trickery, because we cannot use multi-level $() instead of ``
13429     ## for compatibility reasons.
13430
13431     ## grab the first version number in  --version output.
13432     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13433                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13434                 head -n 1 |
13435                 tr ' ' '\n' |
13436                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13437                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13438                 head -n 1\`\"
13439
13440     if test -z "$_ver"; then
13441         ## If empty, try date [fontforge]
13442         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13443             | head -n 1 \
13444             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13445     fi
13446     echo "$_ver"
13447     #dnl
13448 `
13449     fi
13450     num=`
13451     echo "$ver" | awk -F. '
13452     {
13453       if ($3) {three = $3}
13454       else {three = 0}
13455     }
13456     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13457 `
13458     req=`
13459     echo "" | awk -F. '
13460     {
13461       if ($3) {three = $3}
13462       else {three = 0}
13463     }
13464     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13465 `
13466     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13467 $as_echo "$ver" >&6; }
13468     if test "$num" -lt "$req"; then
13469
13470     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
13471
13472     fi
13473     vervar="`echo RSYNC | tr 'a-z' 'A-Z'`_VERSION"
13474     eval `echo $vervar=$num`
13475 ##    AC_SUBST(`eval echo $vervar`)
13476
13477     fi
13478
13479
13480
13481 cat >>confdefs.h <<_ACEOF
13482 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
13483 _ACEOF
13484
13485
13486 # must also have local.make if configure fails.
13487 touch local.make
13488
13489 if test "$reloc_b$rpath_b" = "yesno"; then
13490
13491     { $as_echo "$as_me:$LINENO: WARNING: Using --enable-relocation without --enable-rpath.  LilyPond may have trouble finding libraries." >&5
13492 $as_echo "$as_me: WARNING: Using --enable-relocation without --enable-rpath.  LilyPond may have trouble finding libraries." >&2;}
13493     warn_b=yes
13494
13495 fi
13496
13497 # Gather requirements and generate output.
13498
13499
13500     # undo expanding of explicit --infodir=/usr/share
13501     # to ease install-time override with prefix=...
13502     strip=`echo $includedir | eval sed s@^$prefix@@`
13503     if test "$includedir" = "`eval echo $prefix$strip`"; then
13504             includedir='${prefix}'$strip''
13505     fi
13506     strip=`echo $libdir | eval sed s@^$exec_prefix@@`
13507     if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
13508             libdir='${exec_prefix}'$strip''
13509     fi
13510     strip=`echo $infodir | eval sed s@^$datarootdir@@`
13511     if test "$infodir" = "`eval echo $datarootdir$strip`"; then
13512             infodir='${datarootdir}'$strip''
13513     fi
13514     strip=`echo $mandir | eval sed s@^$datarootdir@@`
13515     if test "$mandir" = "`eval echo $datarootdir$strip`"; then
13516             mandir='${datarootdir}'$strip''
13517     fi
13518
13519
13520
13521
13522
13523     ac_config_files="$ac_config_files $CONFIGFILE.make:config.make.in"
13524
13525     cat >confcache <<\_ACEOF
13526 # This file is a shell script that caches the results of configure
13527 # tests run on this system so they can be shared between configure
13528 # scripts and configure runs, see configure's option --config-cache.
13529 # It is not useful on other systems.  If it contains results you don't
13530 # want to keep, you may remove or edit it.
13531 #
13532 # config.status only pays attention to the cache file if you give it
13533 # the --recheck option to rerun configure.
13534 #
13535 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13536 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13537 # following values.
13538
13539 _ACEOF
13540
13541 # The following way of writing the cache mishandles newlines in values,
13542 # but we know of no workaround that is simple, portable, and efficient.
13543 # So, we kill variables containing newlines.
13544 # Ultrix sh set writes to stderr and can't be redirected directly,
13545 # and sets the high bit in the cache file unless we assign to the vars.
13546 (
13547   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13548     eval ac_val=\$$ac_var
13549     case $ac_val in #(
13550     *${as_nl}*)
13551       case $ac_var in #(
13552       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13553 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13554       esac
13555       case $ac_var in #(
13556       _ | IFS | as_nl) ;; #(
13557       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13558       *) $as_unset $ac_var ;;
13559       esac ;;
13560     esac
13561   done
13562
13563   (set) 2>&1 |
13564     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13565     *${as_nl}ac_space=\ *)
13566       # `set' does not quote correctly, so add quotes (double-quote
13567       # substitution turns \\\\ into \\, and sed turns \\ into \).
13568       sed -n \
13569         "s/'/'\\\\''/g;
13570           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13571       ;; #(
13572     *)
13573       # `set' quotes correctly as required by POSIX, so do not add quotes.
13574       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13575       ;;
13576     esac |
13577     sort
13578 ) |
13579   sed '
13580      /^ac_cv_env_/b end
13581      t clear
13582      :clear
13583      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13584      t end
13585      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13586      :end' >>confcache
13587 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13588   if test -w "$cache_file"; then
13589     test "x$cache_file" != "x/dev/null" &&
13590       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13591 $as_echo "$as_me: updating cache $cache_file" >&6;}
13592     cat confcache >$cache_file
13593   else
13594     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13595 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13596   fi
13597 fi
13598 rm -f confcache
13599
13600 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13601 # Let make expand exec_prefix.
13602 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13603
13604 DEFS=-DHAVE_CONFIG_H
13605
13606 ac_libobjs=
13607 ac_ltlibobjs=
13608 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13609   # 1. Remove the extension, and $U if already installed.
13610   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13611   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13612   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13613   #    will be set to the directory where LIBOBJS objects are built.
13614   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13615   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13616 done
13617 LIBOBJS=$ac_libobjs
13618
13619 LTLIBOBJS=$ac_ltlibobjs
13620
13621
13622
13623 : ${CONFIG_STATUS=./config.status}
13624 ac_write_fail=0
13625 ac_clean_files_save=$ac_clean_files
13626 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13627 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13628 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13629 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13630 #! $SHELL
13631 # Generated by $as_me.
13632 # Run this file to recreate the current configuration.
13633 # Compiler output produced by configure, useful for debugging
13634 # configure, is in config.log if it exists.
13635
13636 debug=false
13637 ac_cs_recheck=false
13638 ac_cs_silent=false
13639 SHELL=\${CONFIG_SHELL-$SHELL}
13640 _ACEOF
13641
13642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13643 ## --------------------- ##
13644 ## M4sh Initialization.  ##
13645 ## --------------------- ##
13646
13647 # Be more Bourne compatible
13648 DUALCASE=1; export DUALCASE # for MKS sh
13649 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13650   emulate sh
13651   NULLCMD=:
13652   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13653   # is contrary to our usage.  Disable this feature.
13654   alias -g '${1+"$@"}'='"$@"'
13655   setopt NO_GLOB_SUBST
13656 else
13657   case `(set -o) 2>/dev/null` in
13658   *posix*) set -o posix ;;
13659 esac
13660
13661 fi
13662
13663
13664
13665
13666 # PATH needs CR
13667 # Avoid depending upon Character Ranges.
13668 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13669 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13670 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13671 as_cr_digits='0123456789'
13672 as_cr_alnum=$as_cr_Letters$as_cr_digits
13673
13674 as_nl='
13675 '
13676 export as_nl
13677 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13678 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13680 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13681 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13682   as_echo='printf %s\n'
13683   as_echo_n='printf %s'
13684 else
13685   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13686     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13687     as_echo_n='/usr/ucb/echo -n'
13688   else
13689     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13690     as_echo_n_body='eval
13691       arg=$1;
13692       case $arg in
13693       *"$as_nl"*)
13694         expr "X$arg" : "X\\(.*\\)$as_nl";
13695         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13696       esac;
13697       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13698     '
13699     export as_echo_n_body
13700     as_echo_n='sh -c $as_echo_n_body as_echo'
13701   fi
13702   export as_echo_body
13703   as_echo='sh -c $as_echo_body as_echo'
13704 fi
13705
13706 # The user is always right.
13707 if test "${PATH_SEPARATOR+set}" != set; then
13708   PATH_SEPARATOR=:
13709   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13710     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13711       PATH_SEPARATOR=';'
13712   }
13713 fi
13714
13715 # Support unset when possible.
13716 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13717   as_unset=unset
13718 else
13719   as_unset=false
13720 fi
13721
13722
13723 # IFS
13724 # We need space, tab and new line, in precisely that order.  Quoting is
13725 # there to prevent editors from complaining about space-tab.
13726 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13727 # splitting by setting IFS to empty value.)
13728 IFS=" ""        $as_nl"
13729
13730 # Find who we are.  Look in the path if we contain no directory separator.
13731 case $0 in
13732   *[\\/]* ) as_myself=$0 ;;
13733   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734 for as_dir in $PATH
13735 do
13736   IFS=$as_save_IFS
13737   test -z "$as_dir" && as_dir=.
13738   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13739 done
13740 IFS=$as_save_IFS
13741
13742      ;;
13743 esac
13744 # We did not find ourselves, most probably we were run as `sh COMMAND'
13745 # in which case we are not to be found in the path.
13746 if test "x$as_myself" = x; then
13747   as_myself=$0
13748 fi
13749 if test ! -f "$as_myself"; then
13750   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13751   { (exit 1); exit 1; }
13752 fi
13753
13754 # Work around bugs in pre-3.0 UWIN ksh.
13755 for as_var in ENV MAIL MAILPATH
13756 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13757 done
13758 PS1='$ '
13759 PS2='> '
13760 PS4='+ '
13761
13762 # NLS nuisances.
13763 LC_ALL=C
13764 export LC_ALL
13765 LANGUAGE=C
13766 export LANGUAGE
13767
13768 # Required to use basename.
13769 if expr a : '\(a\)' >/dev/null 2>&1 &&
13770    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13771   as_expr=expr
13772 else
13773   as_expr=false
13774 fi
13775
13776 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13777   as_basename=basename
13778 else
13779   as_basename=false
13780 fi
13781
13782
13783 # Name of the executable.
13784 as_me=`$as_basename -- "$0" ||
13785 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13786          X"$0" : 'X\(//\)$' \| \
13787          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13788 $as_echo X/"$0" |
13789     sed '/^.*\/\([^/][^/]*\)\/*$/{
13790             s//\1/
13791             q
13792           }
13793           /^X\/\(\/\/\)$/{
13794             s//\1/
13795             q
13796           }
13797           /^X\/\(\/\).*/{
13798             s//\1/
13799             q
13800           }
13801           s/.*/./; q'`
13802
13803 # CDPATH.
13804 $as_unset CDPATH
13805
13806
13807
13808   as_lineno_1=$LINENO
13809   as_lineno_2=$LINENO
13810   test "x$as_lineno_1" != "x$as_lineno_2" &&
13811   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13812
13813   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13814   # uniformly replaced by the line number.  The first 'sed' inserts a
13815   # line-number line after each line using $LINENO; the second 'sed'
13816   # does the real work.  The second script uses 'N' to pair each
13817   # line-number line with the line containing $LINENO, and appends
13818   # trailing '-' during substitution so that $LINENO is not a special
13819   # case at line end.
13820   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13821   # scripts with optimization help from Paolo Bonzini.  Blame Lee
13822   # E. McMahon (1931-1989) for sed's syntax.  :-)
13823   sed -n '
13824     p
13825     /[$]LINENO/=
13826   ' <$as_myself |
13827     sed '
13828       s/[$]LINENO.*/&-/
13829       t lineno
13830       b
13831       :lineno
13832       N
13833       :loop
13834       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13835       t loop
13836       s/-\n.*//
13837     ' >$as_me.lineno &&
13838   chmod +x "$as_me.lineno" ||
13839     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13840    { (exit 1); exit 1; }; }
13841
13842   # Don't try to exec as it changes $[0], causing all sort of problems
13843   # (the dirname of $[0] is not the place where we might find the
13844   # original and so on.  Autoconf is especially sensitive to this).
13845   . "./$as_me.lineno"
13846   # Exit status is that of the last command.
13847   exit
13848 }
13849
13850
13851 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13852   as_dirname=dirname
13853 else
13854   as_dirname=false
13855 fi
13856
13857 ECHO_C= ECHO_N= ECHO_T=
13858 case `echo -n x` in
13859 -n*)
13860   case `echo 'x\c'` in
13861   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13862   *)   ECHO_C='\c';;
13863   esac;;
13864 *)
13865   ECHO_N='-n';;
13866 esac
13867 if expr a : '\(a\)' >/dev/null 2>&1 &&
13868    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13869   as_expr=expr
13870 else
13871   as_expr=false
13872 fi
13873
13874 rm -f conf$$ conf$$.exe conf$$.file
13875 if test -d conf$$.dir; then
13876   rm -f conf$$.dir/conf$$.file
13877 else
13878   rm -f conf$$.dir
13879   mkdir conf$$.dir 2>/dev/null
13880 fi
13881 if (echo >conf$$.file) 2>/dev/null; then
13882   if ln -s conf$$.file conf$$ 2>/dev/null; then
13883     as_ln_s='ln -s'
13884     # ... but there are two gotchas:
13885     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13886     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13887     # In both cases, we have to default to `cp -p'.
13888     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13889       as_ln_s='cp -p'
13890   elif ln conf$$.file conf$$ 2>/dev/null; then
13891     as_ln_s=ln
13892   else
13893     as_ln_s='cp -p'
13894   fi
13895 else
13896   as_ln_s='cp -p'
13897 fi
13898 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13899 rmdir conf$$.dir 2>/dev/null
13900
13901 if mkdir -p . 2>/dev/null; then
13902   as_mkdir_p=:
13903 else
13904   test -d ./-p && rmdir ./-p
13905   as_mkdir_p=false
13906 fi
13907
13908 if test -x / >/dev/null 2>&1; then
13909   as_test_x='test -x'
13910 else
13911   if ls -dL / >/dev/null 2>&1; then
13912     as_ls_L_option=L
13913   else
13914     as_ls_L_option=
13915   fi
13916   as_test_x='
13917     eval sh -c '\''
13918       if test -d "$1"; then
13919         test -d "$1/.";
13920       else
13921         case $1 in
13922         -*)set "./$1";;
13923         esac;
13924         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13925         ???[sx]*):;;*)false;;esac;fi
13926     '\'' sh
13927   '
13928 fi
13929 as_executable_p=$as_test_x
13930
13931 # Sed expression to map a string onto a valid CPP name.
13932 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13933
13934 # Sed expression to map a string onto a valid variable name.
13935 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13936
13937
13938 exec 6>&1
13939
13940 # Save the log message, to keep $[0] and so on meaningful, and to
13941 # report actual input values of CONFIG_FILES etc. instead of their
13942 # values after options handling.
13943 ac_log="
13944 This file was extended by $as_me, which was
13945 generated by GNU Autoconf 2.63.  Invocation command line was
13946
13947   CONFIG_FILES    = $CONFIG_FILES
13948   CONFIG_HEADERS  = $CONFIG_HEADERS
13949   CONFIG_LINKS    = $CONFIG_LINKS
13950   CONFIG_COMMANDS = $CONFIG_COMMANDS
13951   $ $0 $@
13952
13953 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13954 "
13955
13956 _ACEOF
13957
13958 case $ac_config_files in *"
13959 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13960 esac
13961
13962 case $ac_config_headers in *"
13963 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13964 esac
13965
13966
13967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13968 # Files that config.status was made for.
13969 config_files="$ac_config_files"
13970 config_headers="$ac_config_headers"
13971
13972 _ACEOF
13973
13974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13975 ac_cs_usage="\
13976 \`$as_me' instantiates files from templates according to the
13977 current configuration.
13978
13979 Usage: $0 [OPTION]... [FILE]...
13980
13981   -h, --help       print this help, then exit
13982   -V, --version    print version number and configuration settings, then exit
13983   -q, --quiet, --silent
13984                    do not print progress messages
13985   -d, --debug      don't remove temporary files
13986       --recheck    update $as_me by reconfiguring in the same conditions
13987       --file=FILE[:TEMPLATE]
13988                    instantiate the configuration file FILE
13989       --header=FILE[:TEMPLATE]
13990                    instantiate the configuration header FILE
13991
13992 Configuration files:
13993 $config_files
13994
13995 Configuration headers:
13996 $config_headers
13997
13998 Report bugs to <bug-autoconf@gnu.org>."
13999
14000 _ACEOF
14001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14002 ac_cs_version="\\
14003 config.status
14004 configured by $0, generated by GNU Autoconf 2.63,
14005   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14006
14007 Copyright (C) 2008 Free Software Foundation, Inc.
14008 This config.status script is free software; the Free Software Foundation
14009 gives unlimited permission to copy, distribute and modify it."
14010
14011 ac_pwd='$ac_pwd'
14012 srcdir='$srcdir'
14013 test -n "\$AWK" || AWK=awk
14014 _ACEOF
14015
14016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14017 # The default lists apply if the user does not specify any file.
14018 ac_need_defaults=:
14019 while test $# != 0
14020 do
14021   case $1 in
14022   --*=*)
14023     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14024     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14025     ac_shift=:
14026     ;;
14027   *)
14028     ac_option=$1
14029     ac_optarg=$2
14030     ac_shift=shift
14031     ;;
14032   esac
14033
14034   case $ac_option in
14035   # Handling of the options.
14036   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14037     ac_cs_recheck=: ;;
14038   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14039     $as_echo "$ac_cs_version"; exit ;;
14040   --debug | --debu | --deb | --de | --d | -d )
14041     debug=: ;;
14042   --file | --fil | --fi | --f )
14043     $ac_shift
14044     case $ac_optarg in
14045     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14046     esac
14047     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14048     ac_need_defaults=false;;
14049   --header | --heade | --head | --hea )
14050     $ac_shift
14051     case $ac_optarg in
14052     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14053     esac
14054     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14055     ac_need_defaults=false;;
14056   --he | --h)
14057     # Conflict between --help and --header
14058     { $as_echo "$as_me: error: ambiguous option: $1
14059 Try \`$0 --help' for more information." >&2
14060    { (exit 1); exit 1; }; };;
14061   --help | --hel | -h )
14062     $as_echo "$ac_cs_usage"; exit ;;
14063   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14064   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14065     ac_cs_silent=: ;;
14066
14067   # This is an error.
14068   -*) { $as_echo "$as_me: error: unrecognized option: $1
14069 Try \`$0 --help' for more information." >&2
14070    { (exit 1); exit 1; }; } ;;
14071
14072   *) ac_config_targets="$ac_config_targets $1"
14073      ac_need_defaults=false ;;
14074
14075   esac
14076   shift
14077 done
14078
14079 ac_configure_extra_args=
14080
14081 if $ac_cs_silent; then
14082   exec 6>/dev/null
14083   ac_configure_extra_args="$ac_configure_extra_args --silent"
14084 fi
14085
14086 _ACEOF
14087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14088 if \$ac_cs_recheck; then
14089   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14090   shift
14091   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14092   CONFIG_SHELL='$SHELL'
14093   export CONFIG_SHELL
14094   exec "\$@"
14095 fi
14096
14097 _ACEOF
14098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14099 exec 5>>config.log
14100 {
14101   echo
14102   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14103 ## Running $as_me. ##
14104 _ASBOX
14105   $as_echo "$ac_log"
14106 } >&5
14107
14108 _ACEOF
14109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14110 _ACEOF
14111
14112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14113
14114 # Handling of arguments.
14115 for ac_config_target in $ac_config_targets
14116 do
14117   case $ac_config_target in
14118     "$CONFIGFILE.hh") CONFIG_HEADERS="$CONFIG_HEADERS $CONFIGFILE.hh:config.hh.in" ;;
14119     "$CONFIGFILE.make") CONFIG_FILES="$CONFIG_FILES $CONFIGFILE.make:config.make.in" ;;
14120
14121   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14122 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14123    { (exit 1); exit 1; }; };;
14124   esac
14125 done
14126
14127
14128 # If the user did not use the arguments to specify the items to instantiate,
14129 # then the envvar interface is used.  Set only those that are not.
14130 # We use the long form for the default assignment because of an extremely
14131 # bizarre bug on SunOS 4.1.3.
14132 if $ac_need_defaults; then
14133   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14134   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14135 fi
14136
14137 # Have a temporary directory for convenience.  Make it in the build tree
14138 # simply because there is no reason against having it here, and in addition,
14139 # creating and moving files from /tmp can sometimes cause problems.
14140 # Hook for its removal unless debugging.
14141 # Note that there is a small window in which the directory will not be cleaned:
14142 # after its creation but before its name has been assigned to `$tmp'.
14143 $debug ||
14144 {
14145   tmp=
14146   trap 'exit_status=$?
14147   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14148 ' 0
14149   trap '{ (exit 1); exit 1; }' 1 2 13 15
14150 }
14151 # Create a (secure) tmp directory for tmp files.
14152
14153 {
14154   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14155   test -n "$tmp" && test -d "$tmp"
14156 }  ||
14157 {
14158   tmp=./conf$$-$RANDOM
14159   (umask 077 && mkdir "$tmp")
14160 } ||
14161 {
14162    $as_echo "$as_me: cannot create a temporary directory in ." >&2
14163    { (exit 1); exit 1; }
14164 }
14165
14166 # Set up the scripts for CONFIG_FILES section.
14167 # No need to generate them if there are no CONFIG_FILES.
14168 # This happens for instance with `./config.status config.h'.
14169 if test -n "$CONFIG_FILES"; then
14170
14171
14172 ac_cr='\r'
14173 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14174 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14175   ac_cs_awk_cr='\\r'
14176 else
14177   ac_cs_awk_cr=$ac_cr
14178 fi
14179
14180 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14181 _ACEOF
14182
14183
14184 {
14185   echo "cat >conf$$subs.awk <<_ACEOF" &&
14186   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14187   echo "_ACEOF"
14188 } >conf$$subs.sh ||
14189   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14190 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14191    { (exit 1); exit 1; }; }
14192 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14193 ac_delim='%!_!# '
14194 for ac_last_try in false false false false false :; do
14195   . ./conf$$subs.sh ||
14196     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14197 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14198    { (exit 1); exit 1; }; }
14199
14200   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14201   if test $ac_delim_n = $ac_delim_num; then
14202     break
14203   elif $ac_last_try; then
14204     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14205 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14206    { (exit 1); exit 1; }; }
14207   else
14208     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14209   fi
14210 done
14211 rm -f conf$$subs.sh
14212
14213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14214 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14215 _ACEOF
14216 sed -n '
14217 h
14218 s/^/S["/; s/!.*/"]=/
14219 p
14220 g
14221 s/^[^!]*!//
14222 :repl
14223 t repl
14224 s/'"$ac_delim"'$//
14225 t delim
14226 :nl
14227 h
14228 s/\(.\{148\}\).*/\1/
14229 t more1
14230 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14231 p
14232 n
14233 b repl
14234 :more1
14235 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14236 p
14237 g
14238 s/.\{148\}//
14239 t nl
14240 :delim
14241 h
14242 s/\(.\{148\}\).*/\1/
14243 t more2
14244 s/["\\]/\\&/g; s/^/"/; s/$/"/
14245 p
14246 b
14247 :more2
14248 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14249 p
14250 g
14251 s/.\{148\}//
14252 t delim
14253 ' <conf$$subs.awk | sed '
14254 /^[^""]/{
14255   N
14256   s/\n//
14257 }
14258 ' >>$CONFIG_STATUS || ac_write_fail=1
14259 rm -f conf$$subs.awk
14260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14261 _ACAWK
14262 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14263   for (key in S) S_is_set[key] = 1
14264   FS = "\a"
14265
14266 }
14267 {
14268   line = $ 0
14269   nfields = split(line, field, "@")
14270   substed = 0
14271   len = length(field[1])
14272   for (i = 2; i < nfields; i++) {
14273     key = field[i]
14274     keylen = length(key)
14275     if (S_is_set[key]) {
14276       value = S[key]
14277       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14278       len += length(value) + length(field[++i])
14279       substed = 1
14280     } else
14281       len += 1 + keylen
14282   }
14283
14284   print line
14285 }
14286
14287 _ACAWK
14288 _ACEOF
14289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14290 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14291   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14292 else
14293   cat
14294 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14295   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14296 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14297    { (exit 1); exit 1; }; }
14298 _ACEOF
14299
14300 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14301 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14302 # trailing colons and then remove the whole line if VPATH becomes empty
14303 # (actually we leave an empty line to preserve line numbers).
14304 if test "x$srcdir" = x.; then
14305   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14306 s/:*\$(srcdir):*/:/
14307 s/:*\${srcdir}:*/:/
14308 s/:*@srcdir@:*/:/
14309 s/^\([^=]*=[     ]*\):*/\1/
14310 s/:*$//
14311 s/^[^=]*=[       ]*$//
14312 }'
14313 fi
14314
14315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14316 fi # test -n "$CONFIG_FILES"
14317
14318 # Set up the scripts for CONFIG_HEADERS section.
14319 # No need to generate them if there are no CONFIG_HEADERS.
14320 # This happens for instance with `./config.status Makefile'.
14321 if test -n "$CONFIG_HEADERS"; then
14322 cat >"$tmp/defines.awk" <<\_ACAWK ||
14323 BEGIN {
14324 _ACEOF
14325
14326 # Transform confdefs.h into an awk script `defines.awk', embedded as
14327 # here-document in config.status, that substitutes the proper values into
14328 # config.h.in to produce config.h.
14329
14330 # Create a delimiter string that does not exist in confdefs.h, to ease
14331 # handling of long lines.
14332 ac_delim='%!_!# '
14333 for ac_last_try in false false :; do
14334   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14335   if test -z "$ac_t"; then
14336     break
14337   elif $ac_last_try; then
14338     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14339 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14340    { (exit 1); exit 1; }; }
14341   else
14342     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14343   fi
14344 done
14345
14346 # For the awk script, D is an array of macro values keyed by name,
14347 # likewise P contains macro parameters if any.  Preserve backslash
14348 # newline sequences.
14349
14350 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14351 sed -n '
14352 s/.\{148\}/&'"$ac_delim"'/g
14353 t rset
14354 :rset
14355 s/^[     ]*#[    ]*define[       ][      ]*/ /
14356 t def
14357 d
14358 :def
14359 s/\\$//
14360 t bsnl
14361 s/["\\]/\\&/g
14362 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14363 D["\1"]=" \3"/p
14364 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14365 d
14366 :bsnl
14367 s/["\\]/\\&/g
14368 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14369 D["\1"]=" \3\\\\\\n"\\/p
14370 t cont
14371 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14372 t cont
14373 d
14374 :cont
14375 n
14376 s/.\{148\}/&'"$ac_delim"'/g
14377 t clear
14378 :clear
14379 s/\\$//
14380 t bsnlc
14381 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14382 d
14383 :bsnlc
14384 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14385 b cont
14386 ' <confdefs.h | sed '
14387 s/'"$ac_delim"'/"\\\
14388 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14389
14390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14391   for (key in D) D_is_set[key] = 1
14392   FS = "\a"
14393 }
14394 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14395   line = \$ 0
14396   split(line, arg, " ")
14397   if (arg[1] == "#") {
14398     defundef = arg[2]
14399     mac1 = arg[3]
14400   } else {
14401     defundef = substr(arg[1], 2)
14402     mac1 = arg[2]
14403   }
14404   split(mac1, mac2, "(") #)
14405   macro = mac2[1]
14406   prefix = substr(line, 1, index(line, defundef) - 1)
14407   if (D_is_set[macro]) {
14408     # Preserve the white space surrounding the "#".
14409     print prefix "define", macro P[macro] D[macro]
14410     next
14411   } else {
14412     # Replace #undef with comments.  This is necessary, for example,
14413     # in the case of _POSIX_SOURCE, which is predefined and required
14414     # on some systems where configure will not decide to define it.
14415     if (defundef == "undef") {
14416       print "/*", prefix defundef, macro, "*/"
14417       next
14418     }
14419   }
14420 }
14421 { print }
14422 _ACAWK
14423 _ACEOF
14424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14425   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14426 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14427    { (exit 1); exit 1; }; }
14428 fi # test -n "$CONFIG_HEADERS"
14429
14430
14431 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
14432 shift
14433 for ac_tag
14434 do
14435   case $ac_tag in
14436   :[FHLC]) ac_mode=$ac_tag; continue;;
14437   esac
14438   case $ac_mode$ac_tag in
14439   :[FHL]*:*);;
14440   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14441 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14442    { (exit 1); exit 1; }; };;
14443   :[FH]-) ac_tag=-:-;;
14444   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14445   esac
14446   ac_save_IFS=$IFS
14447   IFS=:
14448   set x $ac_tag
14449   IFS=$ac_save_IFS
14450   shift
14451   ac_file=$1
14452   shift
14453
14454   case $ac_mode in
14455   :L) ac_source=$1;;
14456   :[FH])
14457     ac_file_inputs=
14458     for ac_f
14459     do
14460       case $ac_f in
14461       -) ac_f="$tmp/stdin";;
14462       *) # Look for the file first in the build tree, then in the source tree
14463          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14464          # because $ac_f cannot contain `:'.
14465          test -f "$ac_f" ||
14466            case $ac_f in
14467            [\\/$]*) false;;
14468            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14469            esac ||
14470            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14471 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14472    { (exit 1); exit 1; }; };;
14473       esac
14474       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14475       ac_file_inputs="$ac_file_inputs '$ac_f'"
14476     done
14477
14478     # Let's still pretend it is `configure' which instantiates (i.e., don't
14479     # use $as_me), people would be surprised to read:
14480     #    /* config.h.  Generated by config.status.  */
14481     configure_input='Generated from '`
14482           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14483         `' by configure.'
14484     if test x"$ac_file" != x-; then
14485       configure_input="$ac_file.  $configure_input"
14486       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14487 $as_echo "$as_me: creating $ac_file" >&6;}
14488     fi
14489     # Neutralize special characters interpreted by sed in replacement strings.
14490     case $configure_input in #(
14491     *\&* | *\|* | *\\* )
14492        ac_sed_conf_input=`$as_echo "$configure_input" |
14493        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14494     *) ac_sed_conf_input=$configure_input;;
14495     esac
14496
14497     case $ac_tag in
14498     *:-:* | *:-) cat >"$tmp/stdin" \
14499       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14500 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14501    { (exit 1); exit 1; }; } ;;
14502     esac
14503     ;;
14504   esac
14505
14506   ac_dir=`$as_dirname -- "$ac_file" ||
14507 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14508          X"$ac_file" : 'X\(//\)[^/]' \| \
14509          X"$ac_file" : 'X\(//\)$' \| \
14510          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14511 $as_echo X"$ac_file" |
14512     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14513             s//\1/
14514             q
14515           }
14516           /^X\(\/\/\)[^/].*/{
14517             s//\1/
14518             q
14519           }
14520           /^X\(\/\/\)$/{
14521             s//\1/
14522             q
14523           }
14524           /^X\(\/\).*/{
14525             s//\1/
14526             q
14527           }
14528           s/.*/./; q'`
14529   { as_dir="$ac_dir"
14530   case $as_dir in #(
14531   -*) as_dir=./$as_dir;;
14532   esac
14533   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14534     as_dirs=
14535     while :; do
14536       case $as_dir in #(
14537       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14538       *) as_qdir=$as_dir;;
14539       esac
14540       as_dirs="'$as_qdir' $as_dirs"
14541       as_dir=`$as_dirname -- "$as_dir" ||
14542 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14543          X"$as_dir" : 'X\(//\)[^/]' \| \
14544          X"$as_dir" : 'X\(//\)$' \| \
14545          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14546 $as_echo X"$as_dir" |
14547     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14548             s//\1/
14549             q
14550           }
14551           /^X\(\/\/\)[^/].*/{
14552             s//\1/
14553             q
14554           }
14555           /^X\(\/\/\)$/{
14556             s//\1/
14557             q
14558           }
14559           /^X\(\/\).*/{
14560             s//\1/
14561             q
14562           }
14563           s/.*/./; q'`
14564       test -d "$as_dir" && break
14565     done
14566     test -z "$as_dirs" || eval "mkdir $as_dirs"
14567   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14568 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14569    { (exit 1); exit 1; }; }; }
14570   ac_builddir=.
14571
14572 case "$ac_dir" in
14573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14574 *)
14575   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14576   # A ".." for each directory in $ac_dir_suffix.
14577   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14578   case $ac_top_builddir_sub in
14579   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14580   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14581   esac ;;
14582 esac
14583 ac_abs_top_builddir=$ac_pwd
14584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14585 # for backward compatibility:
14586 ac_top_builddir=$ac_top_build_prefix
14587
14588 case $srcdir in
14589   .)  # We are building in place.
14590     ac_srcdir=.
14591     ac_top_srcdir=$ac_top_builddir_sub
14592     ac_abs_top_srcdir=$ac_pwd ;;
14593   [\\/]* | ?:[\\/]* )  # Absolute name.
14594     ac_srcdir=$srcdir$ac_dir_suffix;
14595     ac_top_srcdir=$srcdir
14596     ac_abs_top_srcdir=$srcdir ;;
14597   *) # Relative name.
14598     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14599     ac_top_srcdir=$ac_top_build_prefix$srcdir
14600     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14601 esac
14602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14603
14604
14605   case $ac_mode in
14606   :F)
14607   #
14608   # CONFIG_FILE
14609   #
14610
14611 _ACEOF
14612
14613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14614 # If the template does not know about datarootdir, expand it.
14615 # FIXME: This hack should be removed a few years after 2.60.
14616 ac_datarootdir_hack=; ac_datarootdir_seen=
14617
14618 ac_sed_dataroot='
14619 /datarootdir/ {
14620   p
14621   q
14622 }
14623 /@datadir@/p
14624 /@docdir@/p
14625 /@infodir@/p
14626 /@localedir@/p
14627 /@mandir@/p
14628 '
14629 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14630 *datarootdir*) ac_datarootdir_seen=yes;;
14631 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14632   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14633 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14634 _ACEOF
14635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14636   ac_datarootdir_hack='
14637   s&@datadir@&$datadir&g
14638   s&@docdir@&$docdir&g
14639   s&@infodir@&$infodir&g
14640   s&@localedir@&$localedir&g
14641   s&@mandir@&$mandir&g
14642     s&\\\${datarootdir}&$datarootdir&g' ;;
14643 esac
14644 _ACEOF
14645
14646 # Neutralize VPATH when `$srcdir' = `.'.
14647 # Shell code in configure.ac might set extrasub.
14648 # FIXME: do we really want to maintain this feature?
14649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14650 ac_sed_extra="$ac_vpsub
14651 $extrasub
14652 _ACEOF
14653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14654 :t
14655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14656 s|@configure_input@|$ac_sed_conf_input|;t t
14657 s&@top_builddir@&$ac_top_builddir_sub&;t t
14658 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14659 s&@srcdir@&$ac_srcdir&;t t
14660 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14661 s&@top_srcdir@&$ac_top_srcdir&;t t
14662 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14663 s&@builddir@&$ac_builddir&;t t
14664 s&@abs_builddir@&$ac_abs_builddir&;t t
14665 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14666 $ac_datarootdir_hack
14667 "
14668 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14669   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14670 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14671    { (exit 1); exit 1; }; }
14672
14673 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14674   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14675   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14676   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14677 which seems to be undefined.  Please make sure it is defined." >&5
14678 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14679 which seems to be undefined.  Please make sure it is defined." >&2;}
14680
14681   rm -f "$tmp/stdin"
14682   case $ac_file in
14683   -) cat "$tmp/out" && rm -f "$tmp/out";;
14684   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14685   esac \
14686   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14687 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14688    { (exit 1); exit 1; }; }
14689  ;;
14690   :H)
14691   #
14692   # CONFIG_HEADER
14693   #
14694   if test x"$ac_file" != x-; then
14695     {
14696       $as_echo "/* $configure_input  */" \
14697       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14698     } >"$tmp/config.h" \
14699       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14700 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14701    { (exit 1); exit 1; }; }
14702     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14703       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14704 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14705     else
14706       rm -f "$ac_file"
14707       mv "$tmp/config.h" "$ac_file" \
14708         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14709 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14710    { (exit 1); exit 1; }; }
14711     fi
14712   else
14713     $as_echo "/* $configure_input  */" \
14714       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14715       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14716 $as_echo "$as_me: error: could not create -" >&2;}
14717    { (exit 1); exit 1; }; }
14718   fi
14719  ;;
14720
14721
14722   esac
14723
14724 done # for ac_tag
14725
14726
14727 { (exit 0); exit 0; }
14728 _ACEOF
14729 chmod +x $CONFIG_STATUS
14730 ac_clean_files=$ac_clean_files_save
14731
14732 test $ac_write_fail = 0 ||
14733   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14734 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14735    { (exit 1); exit 1; }; }
14736
14737
14738 # configure is writing to config.log, and then calls config.status.
14739 # config.status does its own redirection, appending to config.log.
14740 # Unfortunately, on DOS this fails, as config.log is still kept open
14741 # by configure, so config.status won't be able to write to it; its
14742 # output is simply discarded.  So we exec the FD to /dev/null,
14743 # effectively closing config.log, so it can be properly (re)opened and
14744 # appended to by config.status.  When coming back to configure, we
14745 # need to make the FD available again.
14746 if test "$no_create" != yes; then
14747   ac_cs_success=:
14748   ac_config_status_args=
14749   test "$silent" = yes &&
14750     ac_config_status_args="$ac_config_status_args --quiet"
14751   exec 5>/dev/null
14752   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14753   exec 5>>config.log
14754   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14755   # would make configure fail if this is the last instruction.
14756   $ac_cs_success || { (exit 1); exit 1; }
14757 fi
14758 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14759   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14760 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14761 fi
14762
14763
14764     if test -n "$OPTIONAL"; then
14765         echo
14766         echo "WARNING: Please consider installing optional programs: $OPTIONAL"
14767     fi
14768
14769     if test -n "$REQUIRED"; then
14770         echo
14771         echo "ERROR: Please install required programs: $REQUIRED"
14772     fi
14773
14774     if test -n "$UNSUPPORTED"; then
14775         echo
14776         echo "ERROR: Please use older version of programs: $UNSUPPORTED"
14777     fi
14778
14779     if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
14780         echo
14781         echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
14782         if test -f config.cache ; then
14783             echo "Remove config.cache before rerunning ./configure"
14784         fi
14785     fi
14786
14787     if test -n "$REQUIRED$UNSUPPORTED"; then
14788         rm -f $srcdir/GNUmakefile
14789         exit 1
14790     fi
14791
14792     # regular in-place build
14793     # test for srcdir_build = yes ?
14794     if test "$srcdir_build" = "yes"; then
14795         rm -f $srcdir/GNUmakefile
14796         cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
14797         chmod 444 $srcdir/GNUmakefile
14798     else
14799         if test -f $srcdir/GNUmakefile; then
14800             cat <<EOF
14801 Source directory already configured.  Please clean the source directory
14802
14803      make -C $srcdir distclean
14804
14805 and rerun configure.
14806 EOF
14807             exit 2
14808         fi
14809
14810         abssrcdir="`cd $srcdir; pwd`"
14811         absbuilddir="`pwd`"
14812         for d in 2 3 4 5 ; do
14813             for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name GNUmakefile`; do
14814                 case "$abssrcdir" in
14815                     "$absbuilddir"/*)
14816 # source is below build directory, always copy
14817                         ;;
14818                     *)
14819                         case "$abssrcdir/${mf#./}" in
14820                             "$absbuilddir"/*)
14821 # find descended into build directory, don't copy
14822                                 continue
14823                         esac
14824                 esac
14825                 mkdir -p ${mf%/*}
14826                 cat <<EOF | $PYTHON -  > $mf
14827 print 'depth=' + ('../' * ( $d-1 ) )
14828 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
14829 print 'include \$(configure-srcdir)/$mf'
14830 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
14831 EOF
14832             done
14833             for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
14834                 case "$abssrcdir" in
14835                     "$absbuilddir"/*)
14836 # source is below build directory, always copy
14837                         ;;
14838                     *)
14839                         case "$abssrcdir/${mf#./}" in
14840                             "$absbuilddir"/*)
14841 # find descended into build directory, don't copy
14842                                 continue
14843                         esac
14844                 esac
14845                 mkdir -p ${mf%/*}
14846                 cat <<EOF | $PYTHON -  > $mf
14847 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
14848 print 'include \$(configure-srcdir)/$mf'
14849 EOF
14850             done
14851         done
14852
14853         rm -f GNUmakefile
14854         cat <<EOF > GNUmakefile
14855 depth = .
14856 include config\$(if \$(conf),-\$(conf),).make
14857 include \$(configure-srcdir)/GNUmakefile.in
14858 EOF
14859         chmod 444 GNUmakefile
14860
14861     fi
14862
14863
14864 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
14865
14866 if make top-doc 1>/dev/null 2>&1; then
14867     rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt .
14868     rm -f README.txt && ln Documentation/topdocs/out/README.txt .
14869 fi
14870
14871 cat <<EOF
14872
14873 Type:
14874     make$mc all       to build LilyPond
14875     make$mc install   to install LilyPond
14876     make$mc help      to see all possible targets
14877
14878 Edit local.make for local Makefile overrides.
14879
14880
14881 EOF