]> git.donarmstrong.com Git - lilypond.git/blob - configure
305e0192d6cc930681e9f449ed18d5453166e405
[lilypond.git] / configure
1 #! /bin/sh
2
3 ac_help="$ac_help
4   --with-gtkmm-prefix=PREFIX
5                           Prefix where GTK-- is installed (optional)"
6 # Check whether --with-gtkmm-prefix or --without-gtkmm-prefix was given.
7 if test "${with_gtkmm_prefix+set}" = set; then
8   withval="$with_gtkmm_prefix"
9   gtkmm_config_prefix="$withval"
10 else
11   gtkmm_config_prefix=""
12 fi
13
14 ac_help="$ac_help
15   --with-gtkmm-exec-prefix=PREFIX
16                           Exec prefix where GTK-- is installed (optional)"
17 # Check whether --with-gtkmm-exec-prefix or --without-gtkmm-exec-prefix was given.
18 if test "${with_gtkmm_exec_prefix+set}" = set; then
19   withval="$with_gtkmm_exec_prefix"
20   gtkmm_config_exec_prefix="$withval"
21 else
22   gtkmm_config_exec_prefix=""
23 fi
24
25 ac_help="$ac_help
26   --disable-gtkmmtest     Do not try to compile and run a test GTK-- program"
27 # Check whether --enable-gtkmmtest or --disable-gtkmmtest was given.
28 if test "${enable_gtkmmtest+set}" = set; then
29   enableval="$enable_gtkmmtest"
30   :
31 else
32   enable_gtkmmtest=yes
33 fi
34
35
36   if test x$gtkmm_config_exec_prefix != x ; then
37      gtkmm_config_args="$gtkmm_config_args --exec-prefix=$gtkmm_config_exec_prefix"
38      if test x${GTKMM_CONFIG+set} != xset ; then
39         GTKMM_CONFIG=$gtkmm_config_exec_prefix/bin/gtkmm-config
40      fi
41   fi
42   if test x$gtkmm_config_prefix != x ; then
43      gtkmm_config_args="$gtkmm_config_args --prefix=$gtkmm_config_prefix"
44      if test x${GTKMM_CONFIG+set} != xset ; then
45         GTKMM_CONFIG=$gtkmm_config_prefix/bin/gtkmm-config
46      fi
47   fi
48
49
50
51
52 # Configure paths for GTK--DRAW
53 # Derek Quinn Wyatt   98-08-21  (adapted from Jan Nieuwenhuizen's code)
54
55
56
57 # Guess values for system-dependent variables and create Makefiles.
58 # Generated automatically using autoconf version 2.12 
59 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
60 #
61 # This configure script is free software; the Free Software Foundation
62 # gives unlimited permission to copy, distribute and modify it.
63
64 # Defaults:
65 ac_help=
66 ac_default_prefix=/usr/local
67 # Any additions from configure.in:
68 ac_help="$ac_help
69   enable-config=FILE      put configure settings in config-FILE.make"
70 ac_help="$ac_help
71   enable-checking         set runtime checks (assert calls). Default: on"
72 ac_help="$ac_help
73   enable-optimise         use maximal speed optimisations. Default: off"
74 ac_help="$ac_help
75   enable-profiling        compile with gprof support. Default: off"
76 ac_help="$ac_help
77   enable-debugging        set debug info. Default: on"
78 ac_help="$ac_help
79   enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)"
80 ac_help="$ac_help
81   enable-printing         turn on debug printing. Default: off"
82 ac_help="$ac_help
83   with-localedir=LOCALE   use LOCALE as locale dir. Default: PREFIX/share/locale "
84 ac_help="$ac_help
85   with-lang=LANG          use LANG as language to emit messages"
86 ac_help="$ac_help
87   enable-tex-prefix=DIR   set the tex-directory to find TeX subdirectories. (default: PREFIX)"
88 ac_help="$ac_help
89   enable-tex-dir=DIR      set the directory to put $PACKAGE_NAME TeX files in. "
90 ac_help="$ac_help
91   enable-mf-dir=DIR       set the directory to put $PACKAGE_NAME MetaFont files in. "
92
93 # Initialize some variables set by options.
94 # The variables have the same names as the options, with
95 # dashes changed to underlines.
96 build=NONE
97 cache_file=./config.cache
98 exec_prefix=NONE
99 host=NONE
100 no_create=
101 nonopt=NONE
102 no_recursion=
103 prefix=NONE
104 program_prefix=NONE
105 program_suffix=NONE
106 program_transform_name=s,x,x,
107 silent=
108 site=
109 srcdir=
110 target=NONE
111 verbose=
112 x_includes=NONE
113 x_libraries=NONE
114 bindir='${exec_prefix}/bin'
115 sbindir='${exec_prefix}/sbin'
116 libexecdir='${exec_prefix}/libexec'
117 datadir='${prefix}/share'
118 sysconfdir='${prefix}/etc'
119 sharedstatedir='${prefix}/com'
120 localstatedir='${prefix}/var'
121 libdir='${exec_prefix}/lib'
122 includedir='${prefix}/include'
123 oldincludedir='/usr/include'
124 infodir='${prefix}/info'
125 mandir='${prefix}/man'
126
127 # Initialize some other variables.
128 subdirs=
129 MFLAGS= MAKEFLAGS=
130 # Maximum number of lines to put in a shell here document.
131 ac_max_here_lines=12
132
133 ac_prev=
134 for ac_option
135 do
136
137   # If the previous option needs an argument, assign it.
138   if test -n "$ac_prev"; then
139     eval "$ac_prev=\$ac_option"
140     ac_prev=
141     continue
142   fi
143
144   case "$ac_option" in
145   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
146   *) ac_optarg= ;;
147   esac
148
149   # Accept the important Cygnus configure options, so we can diagnose typos.
150
151   case "$ac_option" in
152
153   -bindir | --bindir | --bindi | --bind | --bin | --bi)
154     ac_prev=bindir ;;
155   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
156     bindir="$ac_optarg" ;;
157
158   -build | --build | --buil | --bui | --bu)
159     ac_prev=build ;;
160   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
161     build="$ac_optarg" ;;
162
163   -cache-file | --cache-file | --cache-fil | --cache-fi \
164   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
165     ac_prev=cache_file ;;
166   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
167   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
168     cache_file="$ac_optarg" ;;
169
170   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
171     ac_prev=datadir ;;
172   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
173   | --da=*)
174     datadir="$ac_optarg" ;;
175
176   -disable-* | --disable-*)
177     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
178     # Reject names that are not valid shell variable names.
179     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
180       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181     fi
182     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183     eval "enable_${ac_feature}=no" ;;
184
185   -enable-* | --enable-*)
186     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
187     # Reject names that are not valid shell variable names.
188     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
189       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
190     fi
191     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192     case "$ac_option" in
193       *=*) ;;
194       *) ac_optarg=yes ;;
195     esac
196     eval "enable_${ac_feature}='$ac_optarg'" ;;
197
198   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
199   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
200   | --exec | --exe | --ex)
201     ac_prev=exec_prefix ;;
202   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
203   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
204   | --exec=* | --exe=* | --ex=*)
205     exec_prefix="$ac_optarg" ;;
206
207   -gas | --gas | --ga | --g)
208     # Obsolete; use --with-gas.
209     with_gas=yes ;;
210
211   -help | --help | --hel | --he)
212     # Omit some internal or obsolete options to make the list less imposing.
213     # This message is too long to be a string in the A/UX 3.1 sh.
214     cat << EOF
215 Usage: configure [options] [host]
216 Options: [defaults in brackets after descriptions]
217 Configuration:
218   --cache-file=FILE       cache test results in FILE
219   --help                  print this message
220   --no-create             do not create output files
221   --quiet, --silent       do not print \`checking...' messages
222   --version               print the version of autoconf that created configure
223 Directory and file names:
224   --prefix=PREFIX         install architecture-independent files in PREFIX
225                           [$ac_default_prefix]
226   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
227                           [same as prefix]
228   --bindir=DIR            user executables in DIR [EPREFIX/bin]
229   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
230   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
231   --datadir=DIR           read-only architecture-independent data in DIR
232                           [PREFIX/share]
233   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
234   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
235                           [PREFIX/com]
236   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
237   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
238   --includedir=DIR        C header files in DIR [PREFIX/include]
239   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
240   --infodir=DIR           info documentation in DIR [PREFIX/info]
241   --mandir=DIR            man documentation in DIR [PREFIX/man]
242   --srcdir=DIR            find the sources in DIR [configure dir or ..]
243   --program-prefix=PREFIX prepend PREFIX to installed program names
244   --program-suffix=SUFFIX append SUFFIX to installed program names
245   --program-transform-name=PROGRAM
246                           run sed PROGRAM on installed program names
247 EOF
248     cat << EOF
249 Host type:
250   --build=BUILD           configure for building on BUILD [BUILD=HOST]
251   --host=HOST             configure for HOST [guessed]
252   --target=TARGET         configure for TARGET [TARGET=HOST]
253 Features and packages:
254   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
255   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
256   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
257   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
258   --x-includes=DIR        X include files are in DIR
259   --x-libraries=DIR       X library files are in DIR
260 EOF
261     if test -n "$ac_help"; then
262       echo "--enable and --with options recognized:$ac_help"
263     fi
264     exit 0 ;;
265
266   -host | --host | --hos | --ho)
267     ac_prev=host ;;
268   -host=* | --host=* | --hos=* | --ho=*)
269     host="$ac_optarg" ;;
270
271   -includedir | --includedir | --includedi | --included | --include \
272   | --includ | --inclu | --incl | --inc)
273     ac_prev=includedir ;;
274   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
275   | --includ=* | --inclu=* | --incl=* | --inc=*)
276     includedir="$ac_optarg" ;;
277
278   -infodir | --infodir | --infodi | --infod | --info | --inf)
279     ac_prev=infodir ;;
280   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
281     infodir="$ac_optarg" ;;
282
283   -libdir | --libdir | --libdi | --libd)
284     ac_prev=libdir ;;
285   -libdir=* | --libdir=* | --libdi=* | --libd=*)
286     libdir="$ac_optarg" ;;
287
288   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
289   | --libexe | --libex | --libe)
290     ac_prev=libexecdir ;;
291   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
292   | --libexe=* | --libex=* | --libe=*)
293     libexecdir="$ac_optarg" ;;
294
295   -localstatedir | --localstatedir | --localstatedi | --localstated \
296   | --localstate | --localstat | --localsta | --localst \
297   | --locals | --local | --loca | --loc | --lo)
298     ac_prev=localstatedir ;;
299   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
300   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
301   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
302     localstatedir="$ac_optarg" ;;
303
304   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
305     ac_prev=mandir ;;
306   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
307     mandir="$ac_optarg" ;;
308
309   -nfp | --nfp | --nf)
310     # Obsolete; use --without-fp.
311     with_fp=no ;;
312
313   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
314   | --no-cr | --no-c)
315     no_create=yes ;;
316
317   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
318   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
319     no_recursion=yes ;;
320
321   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
322   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
323   | --oldin | --oldi | --old | --ol | --o)
324     ac_prev=oldincludedir ;;
325   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
326   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
327   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
328     oldincludedir="$ac_optarg" ;;
329
330   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
331     ac_prev=prefix ;;
332   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
333     prefix="$ac_optarg" ;;
334
335   -program-prefix | --program-prefix | --program-prefi | --program-pref \
336   | --program-pre | --program-pr | --program-p)
337     ac_prev=program_prefix ;;
338   -program-prefix=* | --program-prefix=* | --program-prefi=* \
339   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
340     program_prefix="$ac_optarg" ;;
341
342   -program-suffix | --program-suffix | --program-suffi | --program-suff \
343   | --program-suf | --program-su | --program-s)
344     ac_prev=program_suffix ;;
345   -program-suffix=* | --program-suffix=* | --program-suffi=* \
346   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
347     program_suffix="$ac_optarg" ;;
348
349   -program-transform-name | --program-transform-name \
350   | --program-transform-nam | --program-transform-na \
351   | --program-transform-n | --program-transform- \
352   | --program-transform | --program-transfor \
353   | --program-transfo | --program-transf \
354   | --program-trans | --program-tran \
355   | --progr-tra | --program-tr | --program-t)
356     ac_prev=program_transform_name ;;
357   -program-transform-name=* | --program-transform-name=* \
358   | --program-transform-nam=* | --program-transform-na=* \
359   | --program-transform-n=* | --program-transform-=* \
360   | --program-transform=* | --program-transfor=* \
361   | --program-transfo=* | --program-transf=* \
362   | --program-trans=* | --program-tran=* \
363   | --progr-tra=* | --program-tr=* | --program-t=*)
364     program_transform_name="$ac_optarg" ;;
365
366   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
367   | -silent | --silent | --silen | --sile | --sil)
368     silent=yes ;;
369
370   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
371     ac_prev=sbindir ;;
372   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
373   | --sbi=* | --sb=*)
374     sbindir="$ac_optarg" ;;
375
376   -sharedstatedir | --sharedstatedir | --sharedstatedi \
377   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
378   | --sharedst | --shareds | --shared | --share | --shar \
379   | --sha | --sh)
380     ac_prev=sharedstatedir ;;
381   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
382   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
383   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
384   | --sha=* | --sh=*)
385     sharedstatedir="$ac_optarg" ;;
386
387   -site | --site | --sit)
388     ac_prev=site ;;
389   -site=* | --site=* | --sit=*)
390     site="$ac_optarg" ;;
391
392   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
393     ac_prev=srcdir ;;
394   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
395     srcdir="$ac_optarg" ;;
396
397   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
398   | --syscon | --sysco | --sysc | --sys | --sy)
399     ac_prev=sysconfdir ;;
400   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
401   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
402     sysconfdir="$ac_optarg" ;;
403
404   -target | --target | --targe | --targ | --tar | --ta | --t)
405     ac_prev=target ;;
406   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
407     target="$ac_optarg" ;;
408
409   -v | -verbose | --verbose | --verbos | --verbo | --verb)
410     verbose=yes ;;
411
412   -version | --version | --versio | --versi | --vers)
413     echo "configure generated by autoconf version 2.12"
414     exit 0 ;;
415
416   -with-* | --with-*)
417     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
418     # Reject names that are not valid shell variable names.
419     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
420       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421     fi
422     ac_package=`echo $ac_package| sed 's/-/_/g'`
423     case "$ac_option" in
424       *=*) ;;
425       *) ac_optarg=yes ;;
426     esac
427     eval "with_${ac_package}='$ac_optarg'" ;;
428
429   -without-* | --without-*)
430     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
431     # Reject names that are not valid shell variable names.
432     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
433       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
434     fi
435     ac_package=`echo $ac_package| sed 's/-/_/g'`
436     eval "with_${ac_package}=no" ;;
437
438   --x)
439     # Obsolete; use --with-x.
440     with_x=yes ;;
441
442   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
443   | --x-incl | --x-inc | --x-in | --x-i)
444     ac_prev=x_includes ;;
445   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
446   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
447     x_includes="$ac_optarg" ;;
448
449   -x-libraries | --x-libraries | --x-librarie | --x-librari \
450   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
451     ac_prev=x_libraries ;;
452   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
453   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
454     x_libraries="$ac_optarg" ;;
455
456   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
457     ;;
458
459   *)
460     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
461       echo "configure: warning: $ac_option: invalid host type" 1>&2
462     fi
463     if test "x$nonopt" != xNONE; then
464       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
465     fi
466     nonopt="$ac_option"
467     ;;
468
469   esac
470 done
471
472 if test -n "$ac_prev"; then
473   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
474 fi
475
476 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
477
478 # File descriptor usage:
479 # 0 standard input
480 # 1 file creation
481 # 2 errors and warnings
482 # 3 some systems may open it to /dev/tty
483 # 4 used on the Kubota Titan
484 # 6 checking for... messages and results
485 # 5 compiler messages saved in config.log
486 if test "$silent" = yes; then
487   exec 6>/dev/null
488 else
489   exec 6>&1
490 fi
491 exec 5>./config.log
492
493 echo "\
494 This file contains any messages produced by compilers while
495 running configure, to aid debugging if configure makes a mistake.
496 " 1>&5
497
498 # Strip out --no-create and --no-recursion so they do not pile up.
499 # Also quote any args containing shell metacharacters.
500 ac_configure_args=
501 for ac_arg
502 do
503   case "$ac_arg" in
504   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
505   | --no-cr | --no-c) ;;
506   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
507   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
508   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
509   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
510   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
511   esac
512 done
513
514 # NLS nuisances.
515 # Only set these to C if already set.  These must not be set unconditionally
516 # because not all systems understand e.g. LANG=C (notably SCO).
517 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
518 # Non-C LC_CTYPE values break the ctype check.
519 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
520 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
521 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
522 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
523
524 # confdefs.h avoids OS command line length limits that DEFS can exceed.
525 rm -rf conftest* confdefs.h
526 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
527 echo > confdefs.h
528
529 # A filename unique to this package, relative to the directory that
530 # configure is in, which we can look for to find out if srcdir is correct.
531 ac_unique_file=make/lilypond.lsm.in
532
533 # Find the source files, if location was not specified.
534 if test -z "$srcdir"; then
535   ac_srcdir_defaulted=yes
536   # Try the directory containing this script, then its parent.
537   ac_prog=$0
538   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
539   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
540   srcdir=$ac_confdir
541   if test ! -r $srcdir/$ac_unique_file; then
542     srcdir=..
543   fi
544 else
545   ac_srcdir_defaulted=no
546 fi
547 if test ! -r $srcdir/$ac_unique_file; then
548   if test "$ac_srcdir_defaulted" = yes; then
549     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
550   else
551     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
552   fi
553 fi
554 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
555
556 # Prefer explicitly selected file to automatically selected ones.
557 if test -z "$CONFIG_SITE"; then
558   if test "x$prefix" != xNONE; then
559     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
560   else
561     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
562   fi
563 fi
564 for ac_site_file in $CONFIG_SITE; do
565   if test -r "$ac_site_file"; then
566     echo "loading site script $ac_site_file"
567     . "$ac_site_file"
568   fi
569 done
570
571 if test -r "$cache_file"; then
572   echo "loading cache $cache_file"
573   . $cache_file
574 else
575   echo "creating cache $cache_file"
576   > $cache_file
577 fi
578
579 ac_ext=c
580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
581 ac_cpp='$CPP $CPPFLAGS'
582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
583 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
584 cross_compiling=$ac_cv_prog_cc_cross
585
586 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
587   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
588   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
589     ac_n= ac_c='
590 ' ac_t='        '
591   else
592     ac_n=-n ac_c= ac_t=
593   fi
594 else
595   ac_n= ac_c='\c' ac_t=
596 fi
597
598
599
600
601 # Bootstrap StepMake configure
602
603
604     . $srcdir/VERSION
605     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
606     if test x$MY_PATCH_LEVEL != x; then
607         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
608     fi
609
610     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
611         PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
612     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
613     
614     if test "x$PACKAGE" = "xSTEPMAKE"; then
615         echo Stepmake package!
616         (cd stepmake; rm -f stepmake; ln -s ../stepmake .)
617         (cd stepmake; rm -f bin; ln -s ../bin .)
618         ac_aux_dir=
619 for ac_dir in bin $srcdir/bin; do
620   if test -f $ac_dir/install-sh; then
621     ac_aux_dir=$ac_dir
622     ac_install_sh="$ac_aux_dir/install-sh -c"
623     break
624   elif test -f $ac_dir/install.sh; then
625     ac_aux_dir=$ac_dir
626     ac_install_sh="$ac_aux_dir/install.sh -c"
627     break
628   fi
629 done
630 if test -z "$ac_aux_dir"; then
631   { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
632 fi
633 ac_config_guess=$ac_aux_dir/config.guess
634 ac_config_sub=$ac_aux_dir/config.sub
635 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
636
637     else
638         echo Package: $PACKAGE
639         ac_aux_dir=
640 for ac_dir in stepmake/bin $srcdir/stepmake/bin; do
641   if test -f $ac_dir/install-sh; then
642     ac_aux_dir=$ac_dir
643     ac_install_sh="$ac_aux_dir/install-sh -c"
644     break
645   elif test -f $ac_dir/install.sh; then
646     ac_aux_dir=$ac_dir
647     ac_install_sh="$ac_aux_dir/install.sh -c"
648     break
649   fi
650 done
651 if test -z "$ac_aux_dir"; then
652   { echo "configure: error: can not find install-sh or install.sh in stepmake/bin $srcdir/stepmake/bin" 1>&2; exit 1; }
653 fi
654 ac_config_guess=$ac_aux_dir/config.guess
655 ac_config_sub=$ac_aux_dir/config.sub
656 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
657
658     fi
659
660     
661     
662     
663     cat >> confdefs.h <<EOF
664 #define PACKAGE "${PACKAGE_NAME}"
665 EOF
666
667     cat >> confdefs.h <<EOF
668 #define TOPLEVEL_VERSION "${FULL_VERSION}"
669 EOF
670
671
672     package_depth=`dirname $cache_file`
673     
674
675     AUTOGENERATE="This file was automatically generated by configure"
676     
677     absolute_builddir="`pwd`"
678     
679
680     # No versioning on directory names of sub-packages 
681     stepmake=stepmake
682     
683
684     STATE_VECTOR=`ls make/STATE-VECTOR 2>/dev/null`
685     if test "x$STATE_VECTOR" != "x"; then
686         STATE_VECTOR="\$(depth)/$STATE_VECTOR"
687     fi
688     
689
690     CONFIGSUFFIX=
691     # Check whether --enable-config or --disable-config was given.
692 if test "${enable_config+set}" = set; then
693   enableval="$enable_config"
694   CONFIGSUFFIX=$enableval
695 fi
696
697
698     if test "$CONFIGSUFFIX" != "" ; then
699         CONFIGFILE=config-$CONFIGSUFFIX
700     else
701         CONFIGFILE=config
702     fi
703     
704      
705     
706 # Make sure we can run config.sub.
707 if $ac_config_sub sun4 >/dev/null 2>&1; then :
708 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
709 fi
710
711 echo $ac_n "checking host system type""... $ac_c" 1>&6
712 echo "configure:713: checking host system type" >&5
713
714 host_alias=$host
715 case "$host_alias" in
716 NONE)
717   case $nonopt in
718   NONE)
719     if host_alias=`$ac_config_guess`; then :
720     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
721     fi ;;
722   *) host_alias=$nonopt ;;
723   esac ;;
724 esac
725
726 host=`$ac_config_sub $host_alias`
727 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
728 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
729 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
730 echo "$ac_t""$host" 1>&6
731
732     for ac_prog in make
733 do
734 # Extract the first word of "$ac_prog", so it can be a program name with args.
735 set dummy $ac_prog; ac_word=$2
736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
737 echo "configure:738: checking for $ac_word" >&5
738 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
739   echo $ac_n "(cached) $ac_c" 1>&6
740 else
741   if test -n "$MAKE"; then
742   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
743 else
744   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
745   for ac_dir in $PATH; do
746     test -z "$ac_dir" && ac_dir=.
747     if test -f $ac_dir/$ac_word; then
748       ac_cv_prog_MAKE="$ac_prog"
749       break
750     fi
751   done
752   IFS="$ac_save_ifs"
753 fi
754 fi
755 MAKE="$ac_cv_prog_MAKE"
756 if test -n "$MAKE"; then
757   echo "$ac_t""$MAKE" 1>&6
758 else
759   echo "$ac_t""no" 1>&6
760 fi
761
762 test -n "$MAKE" && break
763 done
764 test -n "$MAKE" || MAKE="error"
765
766     for ac_prog in find
767 do
768 # Extract the first word of "$ac_prog", so it can be a program name with args.
769 set dummy $ac_prog; ac_word=$2
770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
771 echo "configure:772: checking for $ac_word" >&5
772 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
773   echo $ac_n "(cached) $ac_c" 1>&6
774 else
775   if test -n "$FIND"; then
776   ac_cv_prog_FIND="$FIND" # Let the user override the test.
777 else
778   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
779   for ac_dir in $PATH; do
780     test -z "$ac_dir" && ac_dir=.
781     if test -f $ac_dir/$ac_word; then
782       ac_cv_prog_FIND="$ac_prog"
783       break
784     fi
785   done
786   IFS="$ac_save_ifs"
787 fi
788 fi
789 FIND="$ac_cv_prog_FIND"
790 if test -n "$FIND"; then
791   echo "$ac_t""$FIND" 1>&6
792 else
793   echo "$ac_t""no" 1>&6
794 fi
795
796 test -n "$FIND" && break
797 done
798 test -n "$FIND" || FIND="error"
799
800
801
802
803     for ac_prog in tar
804 do
805 # Extract the first word of "$ac_prog", so it can be a program name with args.
806 set dummy $ac_prog; ac_word=$2
807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
808 echo "configure:809: checking for $ac_word" >&5
809 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
810   echo $ac_n "(cached) $ac_c" 1>&6
811 else
812   if test -n "$TAR"; then
813   ac_cv_prog_TAR="$TAR" # Let the user override the test.
814 else
815   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
816   for ac_dir in $PATH; do
817     test -z "$ac_dir" && ac_dir=.
818     if test -f $ac_dir/$ac_word; then
819       ac_cv_prog_TAR="$ac_prog"
820       break
821     fi
822   done
823   IFS="$ac_save_ifs"
824 fi
825 fi
826 TAR="$ac_cv_prog_TAR"
827 if test -n "$TAR"; then
828   echo "$ac_t""$TAR" 1>&6
829 else
830   echo "$ac_t""no" 1>&6
831 fi
832
833 test -n "$TAR" && break
834 done
835 test -n "$TAR" || TAR="error"
836
837     for ac_prog in bash
838 do
839 # Extract the first word of "$ac_prog", so it can be a program name with args.
840 set dummy $ac_prog; ac_word=$2
841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
842 echo "configure:843: checking for $ac_word" >&5
843 if eval "test \"`echo '$''{'ac_cv_prog_BASH'+set}'`\" = set"; then
844   echo $ac_n "(cached) $ac_c" 1>&6
845 else
846   if test -n "$BASH"; then
847   ac_cv_prog_BASH="$BASH" # Let the user override the test.
848 else
849   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
850   for ac_dir in $PATH; do
851     test -z "$ac_dir" && ac_dir=.
852     if test -f $ac_dir/$ac_word; then
853       ac_cv_prog_BASH="$ac_prog"
854       break
855     fi
856   done
857   IFS="$ac_save_ifs"
858 fi
859 fi
860 BASH="$ac_cv_prog_BASH"
861 if test -n "$BASH"; then
862   echo "$ac_t""$BASH" 1>&6
863 else
864   echo "$ac_t""no" 1>&6
865 fi
866
867 test -n "$BASH" && break
868 done
869 test -n "$BASH" || BASH="/bin/sh"
870
871
872     # Extract the first word of "python", so it can be a program name with args.
873 set dummy python; ac_word=$2
874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
875 echo "configure:876: checking for $ac_word" >&5
876 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
877   echo $ac_n "(cached) $ac_c" 1>&6
878 else
879   case "$PYTHON" in
880   /*)
881   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
882   ;;
883   *)
884   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
885   for ac_dir in $PATH; do
886     test -z "$ac_dir" && ac_dir=.
887     if test -f $ac_dir/$ac_word; then
888       ac_cv_path_PYTHON="$ac_dir/$ac_word"
889       break
890     fi
891   done
892   IFS="$ac_save_ifs"
893   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
894   ;;
895 esac
896 fi
897 PYTHON="$ac_cv_path_PYTHON"
898 if test -n "$PYTHON"; then
899   echo "$ac_t""$PYTHON" 1>&6
900 else
901   echo "$ac_t""no" 1>&6
902 fi
903
904     
905
906
907     
908         result="`echo \"$MAKE\" | grep echo`"
909         if test "x$MAKE" = "xerror" -o "x$result" != "x"; then
910                 
911     echo "configure: warning: can\'t find GNU make. You should install GNU make" 1>&2
912     warn_b=yes
913
914         fi
915
916     if test $MAKE != "error" ; then
917         $MAKE -v| grep GNU > /dev/null
918         if test "$?" = 1
919         then
920                 
921     echo "configure: warning: Please install *GNU* make" 1>&2
922     warn_b=yes
923  
924         fi 
925     fi 
926
927     
928         result="`echo \"$PYTHON\" | grep echo`"
929         if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
930                 
931     echo "configure: warning: can\'t find python. You should install Python" 1>&2
932     warn_b=yes
933
934         fi
935
936
937     if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
938         LN=cp # hard link does not work under cygnus-nt
939         LN_S=cp # symbolic link does not work for native nt
940         ZIP="zip -r -9" #
941         DOTEXE=.exe
942        DIRSEP='\\'
943         PATHSEP=';'
944        INSTALL="\$(stepdir)/../bin/install-dot-exe.sh -c"
945     else
946         DIRSEP='/'
947         PATHSEP=':'
948         LN=ln
949         LN_S='ln -s'
950         ZIP="zip -r -9"
951         INSTALL="\$(stepdir)/../bin/install-sh -c"
952     fi
953     
954     
955     
956     
957     
958     cat >> confdefs.h <<EOF
959 #define DIRSEP '${DIRSEP}'
960 EOF
961
962     cat >> confdefs.h <<EOF
963 #define PATHSEP '${PATHSEP}'
964 EOF
965
966     
967     
968   
969    
970     
971     if test "$datadir" = "\${prefix}/share"; then
972             datadir='${prefix}/share/'$package
973     fi
974     DIR_DATADIR=${datadir}
975     presome=${prefix}
976     if test "$prefix" = "NONE"; then
977             presome=${ac_default_prefix}
978     fi
979     DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
980     
981     
982     cat >> confdefs.h <<EOF
983 #define DIR_DATADIR "${DIR_DATADIR}"
984 EOF
985
986
987
988
989 # For all packages except the StepMake package itself
990 subdirs="stepmake"
991
992
993 # Uncomment the configuration options your package needs.
994
995     # -O is necessary to get inlining
996     OPTIMIZE=""
997     CXXFLAGS=${CXXFLAGS:-""}
998     CFLAGS=${CFLAGS:-""}
999     checking_b=yes
1000     optimise_b=no
1001     profile_b=no
1002     debug_b=yes
1003
1004     # Check whether --enable-checking or --disable-checking was given.
1005 if test "${enable_checking+set}" = set; then
1006   enableval="$enable_checking"
1007   checking_b=$enableval 
1008 fi
1009
1010
1011     # actually, the default is: tja='-O' to get inlining...
1012     # off=''  --jcn
1013
1014     #actually, that sucks.
1015     #  tja looks like a typo.  Default is optimisation off. --hwn
1016     
1017     # Check whether --enable-optimise or --disable-optimise was given.
1018 if test "${enable_optimise+set}" = set; then
1019   enableval="$enable_optimise"
1020   optimise_b=$enableval
1021 fi
1022
1023     
1024     # Check whether --enable-profiling or --disable-profiling was given.
1025 if test "${enable_profiling+set}" = set; then
1026   enableval="$enable_profiling"
1027   profile_b=$enableval
1028 fi
1029
1030     
1031     # Check whether --enable-debugging or --disable-debugging was given.
1032 if test "${enable_debugging+set}" = set; then
1033   enableval="$enable_debugging"
1034   debug_b=$enableval
1035 fi
1036
1037
1038     # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1039 if test "${enable_mingw_prefix+set}" = set; then
1040   enableval="$enable_mingw_prefix"
1041   MINGWPREFIX=$enableval
1042 else
1043   MINGWPREFIX=no
1044 fi
1045
1046
1047     if test "$printing_b" = no; then
1048         # ugh
1049         cat >> confdefs.h <<\EOF
1050 #define NPRINT 1
1051 EOF
1052
1053         DEFINES="$DEFINES -DNPRINT"
1054     fi
1055         
1056     if test "$checking_b" = no; then
1057         # ugh
1058         cat >> confdefs.h <<\EOF
1059 #define NDEBUG 1
1060 EOF
1061
1062         DEFINES="$DEFINES -DNDEBUG"
1063     fi
1064
1065     if test "$optimise_b" = yes; then
1066         OPTIMIZE="-O2 -finline-functions"
1067     fi
1068
1069     if test "$optimise_b" = no; then
1070         OPTIMIZE=""
1071     fi
1072
1073     if test $profile_b = yes; then
1074         EXTRA_LIBES="-pg"
1075         OPTIMIZE="$OPTIMIZE -pg"
1076     fi
1077
1078     if test $debug_b = yes; then        
1079         OPTIMIZE="$OPTIMIZE -g"
1080     fi
1081
1082     # however, C++ support in mingw32 v 0.1.4 is still flaky
1083     if test x$MINGWPREFIX != xno; then 
1084         ICFLAGS="-I$MINGWPREFIX/include"
1085         ILDFLAGS="-$MINGWPREFIX/lib"
1086     fi
1087
1088     # Extract the first word of "gcc", so it can be a program name with args.
1089 set dummy gcc; ac_word=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1091 echo "configure:1092: checking for $ac_word" >&5
1092 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1093   echo $ac_n "(cached) $ac_c" 1>&6
1094 else
1095   if test -n "$CC"; then
1096   ac_cv_prog_CC="$CC" # Let the user override the test.
1097 else
1098   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1099   for ac_dir in $PATH; do
1100     test -z "$ac_dir" && ac_dir=.
1101     if test -f $ac_dir/$ac_word; then
1102       ac_cv_prog_CC="gcc"
1103       break
1104     fi
1105   done
1106   IFS="$ac_save_ifs"
1107 fi
1108 fi
1109 CC="$ac_cv_prog_CC"
1110 if test -n "$CC"; then
1111   echo "$ac_t""$CC" 1>&6
1112 else
1113   echo "$ac_t""no" 1>&6
1114 fi
1115
1116 if test -z "$CC"; then
1117   # Extract the first word of "cc", so it can be a program name with args.
1118 set dummy cc; ac_word=$2
1119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1120 echo "configure:1121: checking for $ac_word" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1122   echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124   if test -n "$CC"; then
1125   ac_cv_prog_CC="$CC" # Let the user override the test.
1126 else
1127   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1128   ac_prog_rejected=no
1129   for ac_dir in $PATH; do
1130     test -z "$ac_dir" && ac_dir=.
1131     if test -f $ac_dir/$ac_word; then
1132       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1133         ac_prog_rejected=yes
1134         continue
1135       fi
1136       ac_cv_prog_CC="cc"
1137       break
1138     fi
1139   done
1140   IFS="$ac_save_ifs"
1141 if test $ac_prog_rejected = yes; then
1142   # We found a bogon in the path, so make sure we never use it.
1143   set dummy $ac_cv_prog_CC
1144   shift
1145   if test $# -gt 0; then
1146     # We chose a different compiler from the bogus one.
1147     # However, it has the same basename, so the bogon will be chosen
1148     # first if we set CC to just the basename; use the full file name.
1149     shift
1150     set dummy "$ac_dir/$ac_word" "$@"
1151     shift
1152     ac_cv_prog_CC="$@"
1153   fi
1154 fi
1155 fi
1156 fi
1157 CC="$ac_cv_prog_CC"
1158 if test -n "$CC"; then
1159   echo "$ac_t""$CC" 1>&6
1160 else
1161   echo "$ac_t""no" 1>&6
1162 fi
1163
1164   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1165 fi
1166
1167 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1168 echo "configure:1169: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1169
1170 ac_ext=c
1171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1172 ac_cpp='$CPP $CPPFLAGS'
1173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1174 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1175 cross_compiling=$ac_cv_prog_cc_cross
1176
1177 cat > conftest.$ac_ext <<EOF
1178 #line 1179 "configure"
1179 #include "confdefs.h"
1180 main(){return(0);}
1181 EOF
1182 if { (eval echo configure:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1183   ac_cv_prog_cc_works=yes
1184   # If we can't run a trivial program, we are probably using a cross compiler.
1185   if (./conftest; exit) 2>/dev/null; then
1186     ac_cv_prog_cc_cross=no
1187   else
1188     ac_cv_prog_cc_cross=yes
1189   fi
1190 else
1191   echo "configure: failed program was:" >&5
1192   cat conftest.$ac_ext >&5
1193   ac_cv_prog_cc_works=no
1194 fi
1195 rm -fr conftest*
1196
1197 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1198 if test $ac_cv_prog_cc_works = no; then
1199   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1200 fi
1201 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1202 echo "configure:1203: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1203 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1204 cross_compiling=$ac_cv_prog_cc_cross
1205
1206 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1207 echo "configure:1208: checking whether we are using GNU C" >&5
1208 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1209   echo $ac_n "(cached) $ac_c" 1>&6
1210 else
1211   cat > conftest.c <<EOF
1212 #ifdef __GNUC__
1213   yes;
1214 #endif
1215 EOF
1216 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1217   ac_cv_prog_gcc=yes
1218 else
1219   ac_cv_prog_gcc=no
1220 fi
1221 fi
1222
1223 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1224
1225 if test $ac_cv_prog_gcc = yes; then
1226   GCC=yes
1227   ac_test_CFLAGS="${CFLAGS+set}"
1228   ac_save_CFLAGS="$CFLAGS"
1229   CFLAGS=
1230   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1231 echo "configure:1232: checking whether ${CC-cc} accepts -g" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1233   echo $ac_n "(cached) $ac_c" 1>&6
1234 else
1235   echo 'void f(){}' > conftest.c
1236 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1237   ac_cv_prog_cc_g=yes
1238 else
1239   ac_cv_prog_cc_g=no
1240 fi
1241 rm -f conftest*
1242
1243 fi
1244
1245 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1246   if test "$ac_test_CFLAGS" = set; then
1247     CFLAGS="$ac_save_CFLAGS"
1248   elif test $ac_cv_prog_cc_g = yes; then
1249     CFLAGS="-g -O2"
1250   else
1251     CFLAGS="-O2"
1252   fi
1253 else
1254   GCC=
1255   test "${CFLAGS+set}" = set || CFLAGS="-g"
1256 fi
1257
1258     LD='$(CC)'
1259     
1260
1261     CPPFLAGS=${CPPFLAGS:-""}
1262     
1263     
1264     
1265     
1266     
1267     
1268
1269 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1270
1271 printing_b=no
1272 # Check whether --enable-printing or --disable-printing was given.
1273 if test "${enable_printing+set}" = set; then
1274   enableval="$enable_printing"
1275   printing_b=$enableval
1276 fi
1277
1278
1279 if test "$optimise_b" = yes; then
1280     DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1281     cat >> confdefs.h <<\EOF
1282 #define STRINGS_UTILS_INLINED 1
1283 EOF
1284
1285 fi
1286
1287 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1288 echo "configure:1289: checking how to run the C++ preprocessor" >&5
1289 if test -z "$CXXCPP"; then
1290 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1291   echo $ac_n "(cached) $ac_c" 1>&6
1292 else
1293   ac_ext=C
1294 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1295 ac_cpp='$CXXCPP $CPPFLAGS'
1296 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1297 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1298 cross_compiling=$ac_cv_prog_cxx_cross
1299   CXXCPP="${CXX-g++} -E"
1300   cat > conftest.$ac_ext <<EOF
1301 #line 1302 "configure"
1302 #include "confdefs.h"
1303 #include <stdlib.h>
1304 EOF
1305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1306 { (eval echo configure:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1307 ac_err=`grep -v '^ *+' conftest.out`
1308 if test -z "$ac_err"; then
1309   :
1310 else
1311   echo "$ac_err" >&5
1312   echo "configure: failed program was:" >&5
1313   cat conftest.$ac_ext >&5
1314   rm -rf conftest*
1315   CXXCPP=/lib/cpp
1316 fi
1317 rm -f conftest*
1318   ac_cv_prog_CXXCPP="$CXXCPP"
1319 fi
1320 fi
1321 CXXCPP="$ac_cv_prog_CXXCPP"
1322 echo "$ac_t""$CXXCPP" 1>&6
1323
1324
1325     ac_ext=C
1326 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1327 ac_cpp='$CXXCPP $CPPFLAGS'
1328 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1329 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1330 cross_compiling=$ac_cv_prog_cxx_cross
1331
1332     for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1333 do
1334 # Extract the first word of "$ac_prog", so it can be a program name with args.
1335 set dummy $ac_prog; ac_word=$2
1336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1337 echo "configure:1338: checking for $ac_word" >&5
1338 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1339   echo $ac_n "(cached) $ac_c" 1>&6
1340 else
1341   if test -n "$CXX"; then
1342   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1343 else
1344   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1345   for ac_dir in $PATH; do
1346     test -z "$ac_dir" && ac_dir=.
1347     if test -f $ac_dir/$ac_word; then
1348       ac_cv_prog_CXX="$ac_prog"
1349       break
1350     fi
1351   done
1352   IFS="$ac_save_ifs"
1353 fi
1354 fi
1355 CXX="$ac_cv_prog_CXX"
1356 if test -n "$CXX"; then
1357   echo "$ac_t""$CXX" 1>&6
1358 else
1359   echo "$ac_t""no" 1>&6
1360 fi
1361
1362 test -n "$CXX" && break
1363 done
1364 test -n "$CXX" || CXX="gcc"
1365
1366
1367 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1368 echo "configure:1369: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1369
1370 ac_ext=C
1371 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1372 ac_cpp='$CXXCPP $CPPFLAGS'
1373 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1374 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1375 cross_compiling=$ac_cv_prog_cxx_cross
1376
1377 cat > conftest.$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1380 main(){return(0);}
1381 EOF
1382 if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1383   ac_cv_prog_cxx_works=yes
1384   # If we can't run a trivial program, we are probably using a cross compiler.
1385   if (./conftest; exit) 2>/dev/null; then
1386     ac_cv_prog_cxx_cross=no
1387   else
1388     ac_cv_prog_cxx_cross=yes
1389   fi
1390 else
1391   echo "configure: failed program was:" >&5
1392   cat conftest.$ac_ext >&5
1393   ac_cv_prog_cxx_works=no
1394 fi
1395 rm -fr conftest*
1396
1397 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1398 if test $ac_cv_prog_cxx_works = no; then
1399   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1400 fi
1401 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1402 echo "configure:1403: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1403 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1404 cross_compiling=$ac_cv_prog_cxx_cross
1405
1406 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1407 echo "configure:1408: checking whether we are using GNU C++" >&5
1408 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1409   echo $ac_n "(cached) $ac_c" 1>&6
1410 else
1411   cat > conftest.C <<EOF
1412 #ifdef __GNUC__
1413   yes;
1414 #endif
1415 EOF
1416 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1417   ac_cv_prog_gxx=yes
1418 else
1419   ac_cv_prog_gxx=no
1420 fi
1421 fi
1422
1423 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1424
1425 if test $ac_cv_prog_gxx = yes; then
1426   GXX=yes
1427   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1428   ac_save_CXXFLAGS="$CXXFLAGS"
1429   CXXFLAGS=
1430   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1431 echo "configure:1432: checking whether ${CXX-g++} accepts -g" >&5
1432 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1433   echo $ac_n "(cached) $ac_c" 1>&6
1434 else
1435   echo 'void f(){}' > conftest.cc
1436 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1437   ac_cv_prog_cxx_g=yes
1438 else
1439   ac_cv_prog_cxx_g=no
1440 fi
1441 rm -f conftest*
1442
1443 fi
1444
1445 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1446   if test "$ac_test_CXXFLAGS" = set; then
1447     CXXFLAGS="$ac_save_CXXFLAGS"
1448   elif test $ac_cv_prog_cxx_g = yes; then
1449     CXXFLAGS="-g -O2"
1450   else
1451     CXXFLAGS="-O2"
1452   fi
1453 else
1454   GXX=
1455   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1456 fi
1457
1458
1459     ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1460 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1461 echo "configure:1462: checking for FlexLexer.h" >&5
1462 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1463   echo $ac_n "(cached) $ac_c" 1>&6
1464 else
1465   cat > conftest.$ac_ext <<EOF
1466 #line 1467 "configure"
1467 #include "confdefs.h"
1468 #include <FlexLexer.h>
1469 EOF
1470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1471 { (eval echo configure:1472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1472 ac_err=`grep -v '^ *+' conftest.out`
1473 if test -z "$ac_err"; then
1474   rm -rf conftest*
1475   eval "ac_cv_header_$ac_safe=yes"
1476 else
1477   echo "$ac_err" >&5
1478   echo "configure: failed program was:" >&5
1479   cat conftest.$ac_ext >&5
1480   rm -rf conftest*
1481   eval "ac_cv_header_$ac_safe=no"
1482 fi
1483 rm -f conftest*
1484 fi
1485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1486   echo "$ac_t""yes" 1>&6
1487   true
1488 else
1489   echo "$ac_t""no" 1>&6
1490
1491     echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1492     warn_b=yes
1493
1494 fi
1495
1496
1497     CPPFLAGS="$CPPFLAGS $DEFINES"
1498     CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1499     LDFLAGS=$EXTRA_LIBES
1500
1501     
1502     
1503     LD='$(CXX)'
1504     
1505
1506
1507     # ugh autoconf
1508         if $CXX --version | grep '2\.[78]' > /dev/null ||
1509         $CXX --version | grep 'egcs' > /dev/null
1510         then
1511             true
1512     else
1513             
1514     echo "configure: warning: can\'t find g++ 2.7" 1>&2
1515     warn_b=yes
1516
1517     fi
1518
1519
1520     echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1521 echo "configure:1522: checking whether explicit instantiation is needed" >&5
1522 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1523   echo $ac_n "(cached) $ac_c" 1>&6
1524 else
1525   cat > conftest.$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1528
1529     template <class T> struct foo { static int baz; };
1530     template <class T> int foo<T>::baz = 1;
1531     
1532 int main() {
1533  return foo<int>::baz; 
1534 ; return 0; }
1535 EOF
1536 if { (eval echo configure:1537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1537   rm -rf conftest*
1538   lily_cv_need_explicit_instantiation=no
1539 else
1540   echo "configure: failed program was:" >&5
1541   cat conftest.$ac_ext >&5
1542   rm -rf conftest*
1543   lily_cv_need_explicit_instantiation=yes
1544 fi
1545 rm -f conftest*
1546 fi
1547
1548 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1549     if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1550         cat >> confdefs.h <<\EOF
1551 #define NEED_EXPLICIT_INSTANTIATION 1
1552 EOF
1553
1554     fi
1555
1556
1557     # ugh, automake: we want (and check for) bison
1558     for ac_prog in 'bison -y' byacc
1559 do
1560 # Extract the first word of "$ac_prog", so it can be a program name with args.
1561 set dummy $ac_prog; ac_word=$2
1562 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1563 echo "configure:1564: checking for $ac_word" >&5
1564 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1565   echo $ac_n "(cached) $ac_c" 1>&6
1566 else
1567   if test -n "$YACC"; then
1568   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1569 else
1570   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1571   for ac_dir in $PATH; do
1572     test -z "$ac_dir" && ac_dir=.
1573     if test -f $ac_dir/$ac_word; then
1574       ac_cv_prog_YACC="$ac_prog"
1575       break
1576     fi
1577   done
1578   IFS="$ac_save_ifs"
1579 fi
1580 fi
1581 YACC="$ac_cv_prog_YACC"
1582 if test -n "$YACC"; then
1583   echo "$ac_t""$YACC" 1>&6
1584 else
1585   echo "$ac_t""no" 1>&6
1586 fi
1587
1588 test -n "$YACC" && break
1589 done
1590 test -n "$YACC" || YACC="yacc"
1591
1592     # ugh, automake: we want (and check for) flex
1593     # AC_PROG_LEX
1594     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
1595
1596     # AC_DECL_YYTEXT
1597     # ugh, ugh
1598     ac_cv_prog_lex_root=lex.yy
1599
1600     for ac_prog in bison
1601 do
1602 # Extract the first word of "$ac_prog", so it can be a program name with args.
1603 set dummy $ac_prog; ac_word=$2
1604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1605 echo "configure:1606: checking for $ac_word" >&5
1606 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1607   echo $ac_n "(cached) $ac_c" 1>&6
1608 else
1609   if test -n "$BISON"; then
1610   ac_cv_prog_BISON="$BISON" # Let the user override the test.
1611 else
1612   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1613   for ac_dir in $PATH; do
1614     test -z "$ac_dir" && ac_dir=.
1615     if test -f $ac_dir/$ac_word; then
1616       ac_cv_prog_BISON="$ac_prog"
1617       break
1618     fi
1619   done
1620   IFS="$ac_save_ifs"
1621 fi
1622 fi
1623 BISON="$ac_cv_prog_BISON"
1624 if test -n "$BISON"; then
1625   echo "$ac_t""$BISON" 1>&6
1626 else
1627   echo "$ac_t""no" 1>&6
1628 fi
1629
1630 test -n "$BISON" && break
1631 done
1632 test -n "$BISON" || BISON="error"
1633
1634     for ac_prog in flex
1635 do
1636 # Extract the first word of "$ac_prog", so it can be a program name with args.
1637 set dummy $ac_prog; ac_word=$2
1638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1639 echo "configure:1640: checking for $ac_word" >&5
1640 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1641   echo $ac_n "(cached) $ac_c" 1>&6
1642 else
1643   if test -n "$FLEX"; then
1644   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
1645 else
1646   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1647   for ac_dir in $PATH; do
1648     test -z "$ac_dir" && ac_dir=.
1649     if test -f $ac_dir/$ac_word; then
1650       ac_cv_prog_FLEX="$ac_prog"
1651       break
1652     fi
1653   done
1654   IFS="$ac_save_ifs"
1655 fi
1656 fi
1657 FLEX="$ac_cv_prog_FLEX"
1658 if test -n "$FLEX"; then
1659   echo "$ac_t""$FLEX" 1>&6
1660 else
1661   echo "$ac_t""no" 1>&6
1662 fi
1663
1664 test -n "$FLEX" && break
1665 done
1666 test -n "$FLEX" || FLEX="error"
1667
1668     
1669         result="`echo \"$BISON\" | grep echo`"
1670         if test "x$BISON" = "xerror" -o "x$result" != "x"; then
1671                 
1672     echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
1673     warn_b=yes
1674
1675         fi
1676
1677     
1678         result="`echo \"$FLEX\" | grep echo`"
1679         if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
1680                 
1681     echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
1682     warn_b=yes
1683
1684         fi
1685
1686
1687     if test $BISON != "error"; then
1688         bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
1689         if test $bison_version -lt 25; then
1690             
1691     echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
1692     warn_b=yes
1693
1694         fi      
1695     fi
1696
1697     
1698     
1699
1700
1701     for ac_prog in ar
1702 do
1703 # Extract the first word of "$ac_prog", so it can be a program name with args.
1704 set dummy $ac_prog; ac_word=$2
1705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1706 echo "configure:1707: checking for $ac_word" >&5
1707 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1708   echo $ac_n "(cached) $ac_c" 1>&6
1709 else
1710   if test -n "$AR"; then
1711   ac_cv_prog_AR="$AR" # Let the user override the test.
1712 else
1713   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1714   for ac_dir in $PATH; do
1715     test -z "$ac_dir" && ac_dir=.
1716     if test -f $ac_dir/$ac_word; then
1717       ac_cv_prog_AR="$ac_prog"
1718       break
1719     fi
1720   done
1721   IFS="$ac_save_ifs"
1722 fi
1723 fi
1724 AR="$ac_cv_prog_AR"
1725 if test -n "$AR"; then
1726   echo "$ac_t""$AR" 1>&6
1727 else
1728   echo "$ac_t""no" 1>&6
1729 fi
1730
1731 test -n "$AR" && break
1732 done
1733 test -n "$AR" || AR="error"
1734
1735     # Extract the first word of "ranlib", so it can be a program name with args.
1736 set dummy ranlib; ac_word=$2
1737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1738 echo "configure:1739: checking for $ac_word" >&5
1739 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1740   echo $ac_n "(cached) $ac_c" 1>&6
1741 else
1742   if test -n "$RANLIB"; then
1743   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1744 else
1745   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1746   for ac_dir in $PATH; do
1747     test -z "$ac_dir" && ac_dir=.
1748     if test -f $ac_dir/$ac_word; then
1749       ac_cv_prog_RANLIB="ranlib"
1750       break
1751     fi
1752   done
1753   IFS="$ac_save_ifs"
1754   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1755 fi
1756 fi
1757 RANLIB="$ac_cv_prog_RANLIB"
1758 if test -n "$RANLIB"; then
1759   echo "$ac_t""$RANLIB" 1>&6
1760 else
1761   echo "$ac_t""no" 1>&6
1762 fi
1763
1764
1765     
1766     
1767
1768 # AC_STEPMAKE_LIBTOOL
1769
1770     lang=English
1771     ALL_LINGUAS="en nl"
1772
1773     # with/enable ??
1774     # Check whether --with-localedir or --without-localedir was given.
1775 if test "${with_localedir+set}" = set; then
1776   withval="$with_localedir"
1777   localedir=$with_localedir
1778 else
1779   localedir='${prefix}/share/locale'
1780 fi
1781
1782
1783     # Check whether --with-lang or --without-lang was given.
1784 if test "${with_lang+set}" = set; then
1785   withval="$with_lang"
1786   language=$with_lang
1787 else
1788   language=English
1789 fi
1790
1791
1792     echo $ac_n "checking language""... $ac_c" 1>&6
1793 echo "configure:1794: checking language" >&5    
1794     case "$language" in
1795       En* | en* | Am* | am* | US* | us*)
1796             lang=English;;
1797       NL | nl | Du* | du* | Ned* | ned*)
1798             lang=Dutch;;
1799       "")
1800             lang=English;;
1801       *)
1802             lang=unknown;;
1803     esac
1804     echo "$ac_t""$lang" 1>&6
1805
1806     if test "$lang" = "unknown" ; then
1807         
1808     echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
1809     warn_b=yes
1810
1811     fi
1812
1813
1814
1815     DIR_LOCALEDIR=${localedir}
1816     presome=${prefix}
1817     if test "$prefix" = "NONE"; then
1818             presome=${ac_default_prefix}
1819     fi
1820     DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
1821     
1822     
1823     cat >> confdefs.h <<EOF
1824 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
1825 EOF
1826
1827
1828     echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
1829 echo "configure:1830: checking for gettext in -lintl" >&5
1830 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
1831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1832   echo $ac_n "(cached) $ac_c" 1>&6
1833 else
1834   ac_save_LIBS="$LIBS"
1835 LIBS="-lintl  $LIBS"
1836 cat > conftest.$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1839 /* Override any gcc2 internal prototype to avoid an error.  */
1840 #ifdef __cplusplus
1841 extern "C"
1842 #endif
1843 /* We use char because int might match the return type of a gcc2
1844     builtin and then its argument prototype would still apply.  */
1845 char gettext();
1846
1847 int main() {
1848 gettext()
1849 ; return 0; }
1850 EOF
1851 if { (eval echo configure:1852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1852   rm -rf conftest*
1853   eval "ac_cv_lib_$ac_lib_var=yes"
1854 else
1855   echo "configure: failed program was:" >&5
1856   cat conftest.$ac_ext >&5
1857   rm -rf conftest*
1858   eval "ac_cv_lib_$ac_lib_var=no"
1859 fi
1860 rm -f conftest*
1861 LIBS="$ac_save_LIBS"
1862
1863 fi
1864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1865   echo "$ac_t""yes" 1>&6
1866     ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1867     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1868   cat >> confdefs.h <<EOF
1869 #define $ac_tr_lib 1
1870 EOF
1871
1872   LIBS="-lintl $LIBS"
1873
1874 else
1875   echo "$ac_t""no" 1>&6
1876 fi
1877
1878     for ac_func in gettext
1879 do
1880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1881 echo "configure:1882: checking for $ac_func" >&5
1882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1883   echo $ac_n "(cached) $ac_c" 1>&6
1884 else
1885   cat > conftest.$ac_ext <<EOF
1886 #line 1887 "configure"
1887 #include "confdefs.h"
1888 /* System header to define __stub macros and hopefully few prototypes,
1889     which can conflict with char $ac_func(); below.  */
1890 #include <assert.h>
1891 /* Override any gcc2 internal prototype to avoid an error.  */
1892 #ifdef __cplusplus
1893 extern "C"
1894 #endif
1895 /* We use char because int might match the return type of a gcc2
1896     builtin and then its argument prototype would still apply.  */
1897 char $ac_func();
1898
1899 int main() {
1900
1901 /* The GNU C library defines this for functions which it implements
1902     to always fail with ENOSYS.  Some functions are actually named
1903     something starting with __ and the normal name is an alias.  */
1904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1905 choke me
1906 #else
1907 $ac_func();
1908 #endif
1909
1910 ; return 0; }
1911 EOF
1912 if { (eval echo configure:1913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1913   rm -rf conftest*
1914   eval "ac_cv_func_$ac_func=yes"
1915 else
1916   echo "configure: failed program was:" >&5
1917   cat conftest.$ac_ext >&5
1918   rm -rf conftest*
1919   eval "ac_cv_func_$ac_func=no"
1920 fi
1921 rm -f conftest*
1922 fi
1923
1924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1925   echo "$ac_t""yes" 1>&6
1926     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1927   cat >> confdefs.h <<EOF
1928 #define $ac_tr_func 1
1929 EOF
1930  
1931 else
1932   echo "$ac_t""no" 1>&6
1933 fi
1934 done
1935
1936
1937
1938     # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
1939     for ac_prog in msgfmt
1940 do
1941 # Extract the first word of "$ac_prog", so it can be a program name with args.
1942 set dummy $ac_prog; ac_word=$2
1943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1944 echo "configure:1945: checking for $ac_word" >&5
1945 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1946   echo $ac_n "(cached) $ac_c" 1>&6
1947 else
1948   if test -n "$MSGFMT"; then
1949   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1950 else
1951   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1952   for ac_dir in $PATH; do
1953     test -z "$ac_dir" && ac_dir=.
1954     if test -f $ac_dir/$ac_word; then
1955       ac_cv_prog_MSGFMT="$ac_prog"
1956       break
1957     fi
1958   done
1959   IFS="$ac_save_ifs"
1960 fi
1961 fi
1962 MSGFMT="$ac_cv_prog_MSGFMT"
1963 if test -n "$MSGFMT"; then
1964   echo "$ac_t""$MSGFMT" 1>&6
1965 else
1966   echo "$ac_t""no" 1>&6
1967 fi
1968
1969 test -n "$MSGFMT" && break
1970 done
1971 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
1972
1973     echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
1974 echo "configure:1975: checking whether msgfmt accepts -o" >&5
1975     msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
1976     if test "$msgfmt_output" = ""; then
1977         echo "$ac_t""yes" 1>&6
1978     else
1979         # urg
1980         MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
1981         echo "$ac_t""no" 1>&6
1982         
1983     echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
1984     warn_b=yes
1985
1986     fi
1987     if test ! -n "$MSGFMT"; then
1988         
1989     echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
1990     warn_b=yes
1991
1992     fi
1993
1994
1995     # Check whether --enable-tex-prefix or --disable-tex-prefix was given.
1996 if test "${enable_tex_prefix+set}" = set; then
1997   enableval="$enable_tex_prefix"
1998   TEXPREFIX=$enableval
1999 else
2000   TEXPREFIX=auto 
2001 fi
2002
2003     
2004     # Check whether --enable-tex-dir or --disable-tex-dir was given.
2005 if test "${enable_tex_dir+set}" = set; then
2006   enableval="$enable_tex_dir"
2007   TEXDIR=$enableval
2008 else
2009   TEXDIR=auto 
2010 fi
2011
2012
2013     # Check whether --enable-mf-dir or --disable-mf-dir was given.
2014 if test "${enable_mf_dir+set}" = set; then
2015   enableval="$enable_mf_dir"
2016   MFDIR=$enableval
2017 else
2018   MFDIR=auto
2019 fi
2020
2021
2022     if test "x$TEXPREFIX" = xauto ; then
2023         
2024     
2025
2026     echo $ac_n "checking TeX/MF root dir directory""... $ac_c" 1>&6
2027 echo "configure:2028: checking TeX/MF root dir directory" >&5    
2028
2029     find_root_prefix="$prefix"
2030     
2031
2032     test "x$find_root_prefix" = xNONE && find_root_prefix="$ac_default_prefix"
2033     find_texpostfix="";
2034     for postfix in "/lib/tex/" "/lib/texmf" "/lib" "/tex" "/texmf"; do
2035         find_texprefix="$find_root_prefix$postfix"
2036         if test -d $find_texprefix; then
2037             find_texpostfix=$postfix
2038             break;
2039         fi
2040     done
2041     
2042     if test "x$find_texpostfix" = x; then
2043         find_texpostfix='/lib/texmf/tex'
2044         
2045     echo "configure: warning: Cannot determine the TeX-directory. Please use --enable-tex-prefix" 1>&2
2046     warn_b=yes
2047
2048     fi
2049
2050     find_texprefix="$find_root_prefix/$find_texpostfix"
2051
2052     # only assign if variablename not empty
2053     if test x != "x$TEXPREFIX"; then
2054         TEXPREFIX='${prefix}'/"$find_texpostfix"
2055     fi
2056     echo "$ac_t""$find_texprefix" 1>&6
2057
2058
2059     else
2060      find_texprefix=$TEXPREFIX
2061     fi
2062
2063     if test "x$MFDIR" = xauto; then
2064         
2065     
2066     
2067     echo $ac_n "checking MF input directory""... $ac_c" 1>&6
2068 echo "configure:2069: checking MF input directory" >&5    
2069     find_dirdir=`(cd $find_texprefix; 
2070       $FIND ./ -type d -a -name source -print |sort|head -1|sed 's#^\./##')`
2071     
2072
2073     if test "x$find_dirdir" = x; then
2074        find_dirdir="/source";
2075        
2076     echo "configure: warning: Cannot determine MF input subdirectory. Please set from command-line" 1>&2
2077     warn_b=yes
2078
2079         true
2080     fi
2081     MFDIR=$find_dirdir
2082     echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
2083
2084     MFDIR="$TEXPREFIX/$MFDIR"
2085
2086     fi
2087         
2088     if test "x$TEXDIR" = xauto ; then
2089         
2090     
2091     
2092     echo $ac_n "checking TeX input directory""... $ac_c" 1>&6
2093 echo "configure:2094: checking TeX input directory" >&5    
2094     find_dirdir=`(cd $find_texprefix; 
2095       $FIND ./ -type d -a -name tex -print |sort|head -1|sed 's#^\./##')`
2096     
2097
2098     if test "x$find_dirdir" = x; then
2099        find_dirdir="/tex";
2100        
2101     echo "configure: warning: Cannot determine TeX input subdirectory. Please set from command-line" 1>&2
2102     warn_b=yes
2103
2104         true
2105     fi
2106     TEXDIR=$find_dirdir
2107     echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
2108
2109     TEXDIR="$TEXPREFIX/$TEXDIR"
2110
2111     fi
2112
2113     
2114     
2115     
2116
2117
2118     if test "x$YODL" = "x"; then 
2119         for ac_prog in striproff
2120 do
2121 # Extract the first word of "$ac_prog", so it can be a program name with args.
2122 set dummy $ac_prog; ac_word=$2
2123 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2124 echo "configure:2125: checking for $ac_word" >&5
2125 if eval "test \"`echo '$''{'ac_cv_prog_STRIPROFF'+set}'`\" = set"; then
2126   echo $ac_n "(cached) $ac_c" 1>&6
2127 else
2128   if test -n "$STRIPROFF"; then
2129   ac_cv_prog_STRIPROFF="$STRIPROFF" # Let the user override the test.
2130 else
2131   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2132   for ac_dir in $PATH; do
2133     test -z "$ac_dir" && ac_dir=.
2134     if test -f $ac_dir/$ac_word; then
2135       ac_cv_prog_STRIPROFF="$ac_prog"
2136       break
2137     fi
2138   done
2139   IFS="$ac_save_ifs"
2140 fi
2141 fi
2142 STRIPROFF="$ac_cv_prog_STRIPROFF"
2143 if test -n "$STRIPROFF"; then
2144   echo "$ac_t""$STRIPROFF" 1>&6
2145 else
2146   echo "$ac_t""no" 1>&6
2147 fi
2148
2149 test -n "$STRIPROFF" && break
2150 done
2151 test -n "$STRIPROFF" || STRIPROFF="-echo no striproff"
2152
2153         for ac_prog in yodl
2154 do
2155 # Extract the first word of "$ac_prog", so it can be a program name with args.
2156 set dummy $ac_prog; ac_word=$2
2157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2158 echo "configure:2159: checking for $ac_word" >&5
2159 if eval "test \"`echo '$''{'ac_cv_prog_YODL'+set}'`\" = set"; then
2160   echo $ac_n "(cached) $ac_c" 1>&6
2161 else
2162   if test -n "$YODL"; then
2163   ac_cv_prog_YODL="$YODL" # Let the user override the test.
2164 else
2165   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2166   for ac_dir in $PATH; do
2167     test -z "$ac_dir" && ac_dir=.
2168     if test -f $ac_dir/$ac_word; then
2169       ac_cv_prog_YODL="$ac_prog"
2170       break
2171     fi
2172   done
2173   IFS="$ac_save_ifs"
2174 fi
2175 fi
2176 YODL="$ac_cv_prog_YODL"
2177 if test -n "$YODL"; then
2178   echo "$ac_t""$YODL" 1>&6
2179 else
2180   echo "$ac_t""no" 1>&6
2181 fi
2182
2183 test -n "$YODL" && break
2184 done
2185 test -n "$YODL" || YODL="-echo no yodl"
2186
2187         for ac_prog in yodl2html
2188 do
2189 # Extract the first word of "$ac_prog", so it can be a program name with args.
2190 set dummy $ac_prog; ac_word=$2
2191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2192 echo "configure:2193: checking for $ac_word" >&5
2193 if eval "test \"`echo '$''{'ac_cv_prog_YODL2HTML'+set}'`\" = set"; then
2194   echo $ac_n "(cached) $ac_c" 1>&6
2195 else
2196   if test -n "$YODL2HTML"; then
2197   ac_cv_prog_YODL2HTML="$YODL2HTML" # Let the user override the test.
2198 else
2199   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2200   for ac_dir in $PATH; do
2201     test -z "$ac_dir" && ac_dir=.
2202     if test -f $ac_dir/$ac_word; then
2203       ac_cv_prog_YODL2HTML="$ac_prog"
2204       break
2205     fi
2206   done
2207   IFS="$ac_save_ifs"
2208 fi
2209 fi
2210 YODL2HTML="$ac_cv_prog_YODL2HTML"
2211 if test -n "$YODL2HTML"; then
2212   echo "$ac_t""$YODL2HTML" 1>&6
2213 else
2214   echo "$ac_t""no" 1>&6
2215 fi
2216
2217 test -n "$YODL2HTML" && break
2218 done
2219 test -n "$YODL2HTML" || YODL2HTML="-echo no yodl"
2220
2221         for ac_prog in yodl2latex
2222 do
2223 # Extract the first word of "$ac_prog", so it can be a program name with args.
2224 set dummy $ac_prog; ac_word=$2
2225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2226 echo "configure:2227: checking for $ac_word" >&5
2227 if eval "test \"`echo '$''{'ac_cv_prog_YODL2LATEX'+set}'`\" = set"; then
2228   echo $ac_n "(cached) $ac_c" 1>&6
2229 else
2230   if test -n "$YODL2LATEX"; then
2231   ac_cv_prog_YODL2LATEX="$YODL2LATEX" # Let the user override the test.
2232 else
2233   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2234   for ac_dir in $PATH; do
2235     test -z "$ac_dir" && ac_dir=.
2236     if test -f $ac_dir/$ac_word; then
2237       ac_cv_prog_YODL2LATEX="$ac_prog"
2238       break
2239     fi
2240   done
2241   IFS="$ac_save_ifs"
2242 fi
2243 fi
2244 YODL2LATEX="$ac_cv_prog_YODL2LATEX"
2245 if test -n "$YODL2LATEX"; then
2246   echo "$ac_t""$YODL2LATEX" 1>&6
2247 else
2248   echo "$ac_t""no" 1>&6
2249 fi
2250
2251 test -n "$YODL2LATEX" && break
2252 done
2253
2254         for ac_prog in yodl2man
2255 do
2256 # Extract the first word of "$ac_prog", so it can be a program name with args.
2257 set dummy $ac_prog; ac_word=$2
2258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2259 echo "configure:2260: checking for $ac_word" >&5
2260 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MAN'+set}'`\" = set"; then
2261   echo $ac_n "(cached) $ac_c" 1>&6
2262 else
2263   if test -n "$YODL2MAN"; then
2264   ac_cv_prog_YODL2MAN="$YODL2MAN" # Let the user override the test.
2265 else
2266   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2267   for ac_dir in $PATH; do
2268     test -z "$ac_dir" && ac_dir=.
2269     if test -f $ac_dir/$ac_word; then
2270       ac_cv_prog_YODL2MAN="$ac_prog"
2271       break
2272     fi
2273   done
2274   IFS="$ac_save_ifs"
2275 fi
2276 fi
2277 YODL2MAN="$ac_cv_prog_YODL2MAN"
2278 if test -n "$YODL2MAN"; then
2279   echo "$ac_t""$YODL2MAN" 1>&6
2280 else
2281   echo "$ac_t""no" 1>&6
2282 fi
2283
2284 test -n "$YODL2MAN" && break
2285 done
2286 test -n "$YODL2MAN" || YODL2MAN="-echo no yodl"
2287
2288         for ac_prog in yodl2msless
2289 do
2290 # Extract the first word of "$ac_prog", so it can be a program name with args.
2291 set dummy $ac_prog; ac_word=$2
2292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2293 echo "configure:2294: checking for $ac_word" >&5
2294 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MSLESS'+set}'`\" = set"; then
2295   echo $ac_n "(cached) $ac_c" 1>&6
2296 else
2297   if test -n "$YODL2MSLESS"; then
2298   ac_cv_prog_YODL2MSLESS="$YODL2MSLESS" # Let the user override the test.
2299 else
2300   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2301   for ac_dir in $PATH; do
2302     test -z "$ac_dir" && ac_dir=.
2303     if test -f $ac_dir/$ac_word; then
2304       ac_cv_prog_YODL2MSLESS="$ac_prog"
2305       break
2306     fi
2307   done
2308   IFS="$ac_save_ifs"
2309 fi
2310 fi
2311 YODL2MSLESS="$ac_cv_prog_YODL2MSLESS"
2312 if test -n "$YODL2MSLESS"; then
2313   echo "$ac_t""$YODL2MSLESS" 1>&6
2314 else
2315   echo "$ac_t""no" 1>&6
2316 fi
2317
2318 test -n "$YODL2MSLESS" && break
2319 done
2320 test -n "$YODL2MSLESS" || YODL2MSLESS="-echo no yodl"
2321
2322         for ac_prog in yodl2texinfo
2323 do
2324 # Extract the first word of "$ac_prog", so it can be a program name with args.
2325 set dummy $ac_prog; ac_word=$2
2326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2327 echo "configure:2328: checking for $ac_word" >&5
2328 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TEXINFO'+set}'`\" = set"; then
2329   echo $ac_n "(cached) $ac_c" 1>&6
2330 else
2331   if test -n "$YODL2TEXINFO"; then
2332   ac_cv_prog_YODL2TEXINFO="$YODL2TEXINFO" # Let the user override the test.
2333 else
2334   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2335   for ac_dir in $PATH; do
2336     test -z "$ac_dir" && ac_dir=.
2337     if test -f $ac_dir/$ac_word; then
2338       ac_cv_prog_YODL2TEXINFO="$ac_prog"
2339       break
2340     fi
2341   done
2342   IFS="$ac_save_ifs"
2343 fi
2344 fi
2345 YODL2TEXINFO="$ac_cv_prog_YODL2TEXINFO"
2346 if test -n "$YODL2TEXINFO"; then
2347   echo "$ac_t""$YODL2TEXINFO" 1>&6
2348 else
2349   echo "$ac_t""no" 1>&6
2350 fi
2351
2352 test -n "$YODL2TEXINFO" && break
2353 done
2354 test -n "$YODL2TEXINFO" || YODL2TEXINFO="-echo no yodl"
2355
2356         for ac_prog in yodl2txt
2357 do
2358 # Extract the first word of "$ac_prog", so it can be a program name with args.
2359 set dummy $ac_prog; ac_word=$2
2360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2361 echo "configure:2362: checking for $ac_word" >&5
2362 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TXT'+set}'`\" = set"; then
2363   echo $ac_n "(cached) $ac_c" 1>&6
2364 else
2365   if test -n "$YODL2TXT"; then
2366   ac_cv_prog_YODL2TXT="$YODL2TXT" # Let the user override the test.
2367 else
2368   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2369   for ac_dir in $PATH; do
2370     test -z "$ac_dir" && ac_dir=.
2371     if test -f $ac_dir/$ac_word; then
2372       ac_cv_prog_YODL2TXT="$ac_prog"
2373       break
2374     fi
2375   done
2376   IFS="$ac_save_ifs"
2377 fi
2378 fi
2379 YODL2TXT="$ac_cv_prog_YODL2TXT"
2380 if test -n "$YODL2TXT"; then
2381   echo "$ac_t""$YODL2TXT" 1>&6
2382 else
2383   echo "$ac_t""no" 1>&6
2384 fi
2385
2386 test -n "$YODL2TXT" && break
2387 done
2388 test -n "$YODL2TXT" || YODL2TXT="-echo no yodl"
2389
2390     else
2391         
2392         
2393         
2394         
2395         
2396         
2397         
2398         
2399         export STRIPROFF YODL YODL2HTML YODL2LATEX YODL2MAN YODL2MSLESS YODL2TEXINFO YODL2TXT
2400     fi
2401     if test "x$YODL" = "-echo no yodl"; then
2402         
2403     echo "configure: warning: Did not find YODL (Yodl is Yet Oneother Document Language, see http://www.cs.uu.nl/~hanwen/yodl)" 1>&2
2404     warn_b=yes
2405
2406     fi    
2407
2408
2409
2410
2411         result="`echo \"$FIND\" | grep echo`"
2412         if test "x$FIND" = "xerror" -o "x$result" != "x"; then
2413                 
2414     echo "configure: warning: can\'t find find. Please use --enable-tex-dir" 1>&2
2415     warn_b=yes
2416
2417         fi
2418
2419
2420 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2421 echo "configure:2422: checking for 8-bit clean memcmp" >&5
2422 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2423   echo $ac_n "(cached) $ac_c" 1>&6
2424 else
2425   if test "$cross_compiling" = yes; then
2426   ac_cv_func_memcmp_clean=no
2427 else
2428   cat > conftest.$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2431 #ifdef __cplusplus
2432 extern "C" void exit(int);
2433 #endif
2434
2435 main()
2436 {
2437   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2438   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2439 }
2440
2441 EOF
2442 if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2443 then
2444   ac_cv_func_memcmp_clean=yes
2445 else
2446   echo "configure: failed program was:" >&5
2447   cat conftest.$ac_ext >&5
2448   rm -fr conftest*
2449   ac_cv_func_memcmp_clean=no
2450 fi
2451 rm -fr conftest*
2452 fi
2453
2454 fi
2455
2456 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2457 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2458
2459 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2460 echo "configure:2461: checking for vprintf" >&5
2461 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2462   echo $ac_n "(cached) $ac_c" 1>&6
2463 else
2464   cat > conftest.$ac_ext <<EOF
2465 #line 2466 "configure"
2466 #include "confdefs.h"
2467 /* System header to define __stub macros and hopefully few prototypes,
2468     which can conflict with char vprintf(); below.  */
2469 #include <assert.h>
2470 /* Override any gcc2 internal prototype to avoid an error.  */
2471 #ifdef __cplusplus
2472 extern "C"
2473 #endif
2474 /* We use char because int might match the return type of a gcc2
2475     builtin and then its argument prototype would still apply.  */
2476 char vprintf();
2477
2478 int main() {
2479
2480 /* The GNU C library defines this for functions which it implements
2481     to always fail with ENOSYS.  Some functions are actually named
2482     something starting with __ and the normal name is an alias.  */
2483 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2484 choke me
2485 #else
2486 vprintf();
2487 #endif
2488
2489 ; return 0; }
2490 EOF
2491 if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2492   rm -rf conftest*
2493   eval "ac_cv_func_vprintf=yes"
2494 else
2495   echo "configure: failed program was:" >&5
2496   cat conftest.$ac_ext >&5
2497   rm -rf conftest*
2498   eval "ac_cv_func_vprintf=no"
2499 fi
2500 rm -f conftest*
2501 fi
2502
2503 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2504   echo "$ac_t""yes" 1>&6
2505   cat >> confdefs.h <<\EOF
2506 #define HAVE_VPRINTF 1
2507 EOF
2508
2509 else
2510   echo "$ac_t""no" 1>&6
2511 fi
2512
2513 if test "$ac_cv_func_vprintf" != yes; then
2514 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2515 echo "configure:2516: checking for _doprnt" >&5
2516 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2517   echo $ac_n "(cached) $ac_c" 1>&6
2518 else
2519   cat > conftest.$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2522 /* System header to define __stub macros and hopefully few prototypes,
2523     which can conflict with char _doprnt(); below.  */
2524 #include <assert.h>
2525 /* Override any gcc2 internal prototype to avoid an error.  */
2526 #ifdef __cplusplus
2527 extern "C"
2528 #endif
2529 /* We use char because int might match the return type of a gcc2
2530     builtin and then its argument prototype would still apply.  */
2531 char _doprnt();
2532
2533 int main() {
2534
2535 /* The GNU C library defines this for functions which it implements
2536     to always fail with ENOSYS.  Some functions are actually named
2537     something starting with __ and the normal name is an alias.  */
2538 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2539 choke me
2540 #else
2541 _doprnt();
2542 #endif
2543
2544 ; return 0; }
2545 EOF
2546 if { (eval echo configure:2547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2547   rm -rf conftest*
2548   eval "ac_cv_func__doprnt=yes"
2549 else
2550   echo "configure: failed program was:" >&5
2551   cat conftest.$ac_ext >&5
2552   rm -rf conftest*
2553   eval "ac_cv_func__doprnt=no"
2554 fi
2555 rm -f conftest*
2556 fi
2557
2558 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2559   echo "$ac_t""yes" 1>&6
2560   cat >> confdefs.h <<\EOF
2561 #define HAVE_DOPRNT 1
2562 EOF
2563
2564 else
2565   echo "$ac_t""no" 1>&6
2566 fi
2567
2568 fi
2569
2570 for ac_func in memmem snprintf vsnprintf gettext
2571 do
2572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2573 echo "configure:2574: checking for $ac_func" >&5
2574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2575   echo $ac_n "(cached) $ac_c" 1>&6
2576 else
2577   cat > conftest.$ac_ext <<EOF
2578 #line 2579 "configure"
2579 #include "confdefs.h"
2580 /* System header to define __stub macros and hopefully few prototypes,
2581     which can conflict with char $ac_func(); below.  */
2582 #include <assert.h>
2583 /* Override any gcc2 internal prototype to avoid an error.  */
2584 #ifdef __cplusplus
2585 extern "C"
2586 #endif
2587 /* We use char because int might match the return type of a gcc2
2588     builtin and then its argument prototype would still apply.  */
2589 char $ac_func();
2590
2591 int main() {
2592
2593 /* The GNU C library defines this for functions which it implements
2594     to always fail with ENOSYS.  Some functions are actually named
2595     something starting with __ and the normal name is an alias.  */
2596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2597 choke me
2598 #else
2599 $ac_func();
2600 #endif
2601
2602 ; return 0; }
2603 EOF
2604 if { (eval echo configure:2605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2605   rm -rf conftest*
2606   eval "ac_cv_func_$ac_func=yes"
2607 else
2608   echo "configure: failed program was:" >&5
2609   cat conftest.$ac_ext >&5
2610   rm -rf conftest*
2611   eval "ac_cv_func_$ac_func=no"
2612 fi
2613 rm -f conftest*
2614 fi
2615
2616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2617   echo "$ac_t""yes" 1>&6
2618     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2619   cat >> confdefs.h <<EOF
2620 #define $ac_tr_func 1
2621 EOF
2622  
2623 else
2624   echo "$ac_t""no" 1>&6
2625 fi
2626 done
2627
2628
2629 cat >> confdefs.h <<EOF
2630 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2631 EOF
2632
2633 cat >> confdefs.h <<EOF
2634 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
2635 EOF
2636
2637
2638 for ac_prog in makeinfo
2639 do
2640 # Extract the first word of "$ac_prog", so it can be a program name with args.
2641 set dummy $ac_prog; ac_word=$2
2642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2643 echo "configure:2644: checking for $ac_word" >&5
2644 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2645   echo $ac_n "(cached) $ac_c" 1>&6
2646 else
2647   if test -n "$MAKEINFO"; then
2648   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2649 else
2650   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2651   for ac_dir in $PATH; do
2652     test -z "$ac_dir" && ac_dir=.
2653     if test -f $ac_dir/$ac_word; then
2654       ac_cv_prog_MAKEINFO="$ac_prog"
2655       break
2656     fi
2657   done
2658   IFS="$ac_save_ifs"
2659 fi
2660 fi
2661 MAKEINFO="$ac_cv_prog_MAKEINFO"
2662 if test -n "$MAKEINFO"; then
2663   echo "$ac_t""$MAKEINFO" 1>&6
2664 else
2665   echo "$ac_t""no" 1>&6
2666 fi
2667
2668 test -n "$MAKEINFO" && break
2669 done
2670 test -n "$MAKEINFO" || MAKEINFO="error"
2671
2672
2673         result="`echo \"$YODL2TEXINFO\" | grep echo`"
2674         if test "x$YODL2TEXINFO" = "xerror" -o "x$result" != "x"; then
2675                 
2676     echo "configure: warning: can\'t find yodl. You should install Yodl 1.30.2 or better" 1>&2
2677     warn_b=yes
2678
2679         fi
2680
2681
2682
2683     trap '' 1 2 15
2684 cat > confcache <<\EOF
2685 # This file is a shell script that caches the results of configure
2686 # tests run on this system so they can be shared between configure
2687 # scripts and configure runs.  It is not useful on other systems.
2688 # If it contains results you don't want to keep, you may remove or edit it.
2689 #
2690 # By default, configure uses ./config.cache as the cache file,
2691 # creating it if it does not exist already.  You can give configure
2692 # the --cache-file=FILE option to use a different cache file; that is
2693 # what configure does when it calls configure scripts in
2694 # subdirectories, so they share the cache.
2695 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2696 # config.status only pays attention to the cache file if you give it the
2697 # --recheck option to rerun configure.
2698 #
2699 EOF
2700 # The following way of writing the cache mishandles newlines in values,
2701 # but we know of no workaround that is simple, portable, and efficient.
2702 # So, don't put newlines in cache variables' values.
2703 # Ultrix sh set writes to stderr and can't be redirected directly,
2704 # and sets the high bit in the cache file unless we assign to the vars.
2705 (set) 2>&1 |
2706   case `(ac_space=' '; set) 2>&1` in
2707   *ac_space=\ *)
2708     # `set' does not quote correctly, so add quotes (double-quote substitution
2709     # turns \\\\ into \\, and sed turns \\ into \).
2710     sed -n \
2711       -e "s/'/'\\\\''/g" \
2712       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2713     ;;
2714   *)
2715     # `set' quotes correctly as required by POSIX, so do not add quotes.
2716     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2717     ;;
2718   esac >> confcache
2719 if cmp -s $cache_file confcache; then
2720   :
2721 else
2722   if test -w $cache_file; then
2723     echo "updating cache $cache_file"
2724     cat confcache > $cache_file
2725   else
2726     echo "not updating unwritable cache $cache_file"
2727   fi
2728 fi
2729 rm -f confcache
2730
2731 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2732
2733 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2734 # Let make expand exec_prefix.
2735 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2736
2737 # Any assignment to VPATH causes Sun make to only execute
2738 # the first set of double-colon rules, so remove it if not needed.
2739 # If there is a colon in the path, we need to keep it.
2740 if test "x$srcdir" = x.; then
2741   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2742 fi
2743
2744 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2745
2746 DEFS=-DHAVE_CONFIG_H
2747
2748 # Without the "./", some shells look in PATH for config.status.
2749 : ${CONFIG_STATUS=./config.status}
2750
2751 echo creating $CONFIG_STATUS
2752 rm -f $CONFIG_STATUS
2753 cat > $CONFIG_STATUS <<EOF
2754 #! /bin/sh
2755 # Generated automatically by configure.
2756 # Run this file to recreate the current configuration.
2757 # This directory was configured as follows,
2758 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2759 #
2760 # $0 $ac_configure_args
2761 #
2762 # Compiler output produced by configure, useful for debugging
2763 # configure, is in ./config.log if it exists.
2764
2765 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2766 for ac_option
2767 do
2768   case "\$ac_option" in
2769   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2770     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2771     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2772   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2773     echo "$CONFIG_STATUS generated by autoconf version 2.12"
2774     exit 0 ;;
2775   -help | --help | --hel | --he | --h)
2776     echo "\$ac_cs_usage"; exit 0 ;;
2777   *) echo "\$ac_cs_usage"; exit 1 ;;
2778   esac
2779 done
2780
2781 ac_given_srcdir=$srcdir
2782
2783 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2784 EOF
2785 cat >> $CONFIG_STATUS <<EOF
2786
2787 # Protect against being on the right side of a sed subst in config.status.
2788 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2789  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2790 $ac_vpsub
2791 $extrasub
2792 s%@CFLAGS@%$CFLAGS%g
2793 s%@CPPFLAGS@%$CPPFLAGS%g
2794 s%@CXXFLAGS@%$CXXFLAGS%g
2795 s%@DEFS@%$DEFS%g
2796 s%@LDFLAGS@%$LDFLAGS%g
2797 s%@LIBS@%$LIBS%g
2798 s%@exec_prefix@%$exec_prefix%g
2799 s%@prefix@%$prefix%g
2800 s%@program_transform_name@%$program_transform_name%g
2801 s%@bindir@%$bindir%g
2802 s%@sbindir@%$sbindir%g
2803 s%@libexecdir@%$libexecdir%g
2804 s%@datadir@%$datadir%g
2805 s%@sysconfdir@%$sysconfdir%g
2806 s%@sharedstatedir@%$sharedstatedir%g
2807 s%@localstatedir@%$localstatedir%g
2808 s%@libdir@%$libdir%g
2809 s%@includedir@%$includedir%g
2810 s%@oldincludedir@%$oldincludedir%g
2811 s%@infodir@%$infodir%g
2812 s%@mandir@%$mandir%g
2813 s%@package@%$package%g
2814 s%@PACKAGE@%$PACKAGE%g
2815 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
2816 s%@package_depth@%$package_depth%g
2817 s%@AUTOGENERATE@%$AUTOGENERATE%g
2818 s%@absolute_builddir@%$absolute_builddir%g
2819 s%@stepmake@%$stepmake%g
2820 s%@STATE_VECTOR@%$STATE_VECTOR%g
2821 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
2822 s%@host@%$host%g
2823 s%@host_alias@%$host_alias%g
2824 s%@host_cpu@%$host_cpu%g
2825 s%@host_vendor@%$host_vendor%g
2826 s%@host_os@%$host_os%g
2827 s%@MAKE@%$MAKE%g
2828 s%@FIND@%$FIND%g
2829 s%@TAR@%$TAR%g
2830 s%@BASH@%$BASH%g
2831 s%@PYTHON@%$PYTHON%g
2832 s%@DOTEXE@%$DOTEXE%g
2833 s%@ZIP@%$ZIP%g
2834 s%@LN@%$LN%g
2835 s%@LN_S@%$LN_S%g
2836 s%@INSTALL@%$INSTALL%g
2837 s%@PATHSEP@%$PATHSEP%g
2838 s%@DIRSEP@%$DIRSEP%g
2839 s%@DIR_DATADIR@%$DIR_DATADIR%g
2840 s%@subdirs@%$subdirs%g
2841 s%@CC@%$CC%g
2842 s%@LD@%$LD%g
2843 s%@ICFLAGS@%$ICFLAGS%g
2844 s%@ILDFLAGS@%$ILDFLAGS%g
2845 s%@DEFINES@%$DEFINES%g
2846 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
2847 s%@CXX@%$CXX%g
2848 s%@CXXCPP@%$CXXCPP%g
2849 s%@YACC@%$YACC%g
2850 s%@BISON@%$BISON%g
2851 s%@FLEX@%$FLEX%g
2852 s%@AR@%$AR%g
2853 s%@RANLIB@%$RANLIB%g
2854 s%@localedir@%$localedir%g
2855 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
2856 s%@MSGFMT@%$MSGFMT%g
2857 s%@TEXPREFIX@%$TEXPREFIX%g
2858 s%@TEXDIR@%$TEXDIR%g
2859 s%@MFDIR@%$MFDIR%g
2860 s%@STRIPROFF@%$STRIPROFF%g
2861 s%@YODL@%$YODL%g
2862 s%@YODL2HTML@%$YODL2HTML%g
2863 s%@YODL2LATEX@%$YODL2LATEX%g
2864 s%@YODL2MAN@%$YODL2MAN%g
2865 s%@YODL2MSLESS@%$YODL2MSLESS%g
2866 s%@YODL2TEXINFO@%$YODL2TEXINFO%g
2867 s%@YODL2TXT@%$YODL2TXT%g
2868 s%@LIBOBJS@%$LIBOBJS%g
2869 s%@MAKEINFO@%$MAKEINFO%g
2870
2871 CEOF
2872 EOF
2873
2874 cat >> $CONFIG_STATUS <<\EOF
2875
2876 # Split the substitutions into bite-sized pieces for seds with
2877 # small command number limits, like on Digital OSF/1 and HP-UX.
2878 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2879 ac_file=1 # Number of current file.
2880 ac_beg=1 # First line for current file.
2881 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2882 ac_more_lines=:
2883 ac_sed_cmds=""
2884 while $ac_more_lines; do
2885   if test $ac_beg -gt 1; then
2886     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2887   else
2888     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2889   fi
2890   if test ! -s conftest.s$ac_file; then
2891     ac_more_lines=false
2892     rm -f conftest.s$ac_file
2893   else
2894     if test -z "$ac_sed_cmds"; then
2895       ac_sed_cmds="sed -f conftest.s$ac_file"
2896     else
2897       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2898     fi
2899     ac_file=`expr $ac_file + 1`
2900     ac_beg=$ac_end
2901     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2902   fi
2903 done
2904 if test -z "$ac_sed_cmds"; then
2905   ac_sed_cmds=cat
2906 fi
2907 EOF
2908
2909 cat >> $CONFIG_STATUS <<EOF
2910
2911 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
2912 EOF
2913 cat >> $CONFIG_STATUS <<\EOF
2914 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2915   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2916   case "$ac_file" in
2917   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2918        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2919   *) ac_file_in="${ac_file}.in" ;;
2920   esac
2921
2922   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2923
2924   # Remove last slash and all that follows it.  Not all systems have dirname.
2925   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2926   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2927     # The file is in a subdirectory.
2928     test ! -d "$ac_dir" && mkdir "$ac_dir"
2929     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2930     # A "../" for each directory in $ac_dir_suffix.
2931     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2932   else
2933     ac_dir_suffix= ac_dots=
2934   fi
2935
2936   case "$ac_given_srcdir" in
2937   .)  srcdir=.
2938       if test -z "$ac_dots"; then top_srcdir=.
2939       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2940   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2941   *) # Relative path.
2942     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2943     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2944   esac
2945
2946
2947   echo creating "$ac_file"
2948   rm -f "$ac_file"
2949   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2950   case "$ac_file" in
2951   *Makefile*) ac_comsub="1i\\
2952 # $configure_input" ;;
2953   *) ac_comsub= ;;
2954   esac
2955
2956   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2957   sed -e "$ac_comsub
2958 s%@configure_input@%$configure_input%g
2959 s%@srcdir@%$srcdir%g
2960 s%@top_srcdir@%$top_srcdir%g
2961 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2962 fi; done
2963 rm -f conftest.s*
2964
2965 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2966 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2967 #
2968 # ac_d sets the value in "#define NAME VALUE" lines.
2969 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2970 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2971 ac_dC='\3'
2972 ac_dD='%g'
2973 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2974 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2975 ac_uB='\([      ]\)%\1#\2define\3'
2976 ac_uC=' '
2977 ac_uD='\4%g'
2978 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2979 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2980 ac_eB='$%\1#\2define\3'
2981 ac_eC=' '
2982 ac_eD='%g'
2983
2984 if test "${CONFIG_HEADERS+set}" != set; then
2985 EOF
2986 cat >> $CONFIG_STATUS <<EOF
2987   CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
2988 EOF
2989 cat >> $CONFIG_STATUS <<\EOF
2990 fi
2991 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2992   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2993   case "$ac_file" in
2994   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2995        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2996   *) ac_file_in="${ac_file}.in" ;;
2997   esac
2998
2999   echo creating $ac_file
3000
3001   rm -f conftest.frag conftest.in conftest.out
3002   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3003   cat $ac_file_inputs > conftest.in
3004
3005 EOF
3006
3007 # Transform confdefs.h into a sed script conftest.vals that substitutes
3008 # the proper values into config.h.in to produce config.h.  And first:
3009 # Protect against being on the right side of a sed subst in config.status.
3010 # Protect against being in an unquoted here document in config.status.
3011 rm -f conftest.vals
3012 cat > conftest.hdr <<\EOF
3013 s/[\\&%]/\\&/g
3014 s%[\\$`]%\\&%g
3015 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3016 s%ac_d%ac_u%gp
3017 s%ac_u%ac_e%gp
3018 EOF
3019 sed -n -f conftest.hdr confdefs.h > conftest.vals
3020 rm -f conftest.hdr
3021
3022 # This sed command replaces #undef with comments.  This is necessary, for
3023 # example, in the case of _POSIX_SOURCE, which is predefined and required
3024 # on some systems where configure will not decide to define it.
3025 cat >> conftest.vals <<\EOF
3026 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3027 EOF
3028
3029 # Break up conftest.vals because some shells have a limit on
3030 # the size of here documents, and old seds have small limits too.
3031
3032 rm -f conftest.tail
3033 while :
3034 do
3035   ac_lines=`grep -c . conftest.vals`
3036   # grep -c gives empty output for an empty file on some AIX systems.
3037   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3038   # Write a limited-size here document to conftest.frag.
3039   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3040   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3041   echo 'CEOF
3042   sed -f conftest.frag conftest.in > conftest.out
3043   rm -f conftest.in
3044   mv conftest.out conftest.in
3045 ' >> $CONFIG_STATUS
3046   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3047   rm -f conftest.vals
3048   mv conftest.tail conftest.vals
3049 done
3050 rm -f conftest.vals
3051
3052 cat >> $CONFIG_STATUS <<\EOF
3053   rm -f conftest.frag conftest.h
3054   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3055   cat conftest.in >> conftest.h
3056   rm -f conftest.in
3057   if cmp -s $ac_file conftest.h 2>/dev/null; then
3058     echo "$ac_file is unchanged"
3059     rm -f conftest.h
3060   else
3061     # Remove last slash and all that follows it.  Not all systems have dirname.
3062       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3063       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3064       # The file is in a subdirectory.
3065       test ! -d "$ac_dir" && mkdir "$ac_dir"
3066     fi
3067     rm -f $ac_file
3068     mv conftest.h $ac_file
3069   fi
3070 fi; done
3071
3072 EOF
3073 cat >> $CONFIG_STATUS <<EOF
3074
3075 EOF
3076 cat >> $CONFIG_STATUS <<\EOF
3077
3078 exit 0
3079 EOF
3080 chmod +x $CONFIG_STATUS
3081 rm -fr confdefs* $ac_clean_files
3082 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3083
3084 if test "$no_recursion" != yes; then
3085
3086   # Remove --cache-file and --srcdir arguments so they do not pile up.
3087   ac_sub_configure_args=
3088   ac_prev=
3089   for ac_arg in $ac_configure_args; do
3090     if test -n "$ac_prev"; then
3091       ac_prev=
3092       continue
3093     fi
3094     case "$ac_arg" in
3095     -cache-file | --cache-file | --cache-fil | --cache-fi \
3096     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3097       ac_prev=cache_file ;;
3098     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3099     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3100       ;;
3101     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3102       ac_prev=srcdir ;;
3103     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3104       ;;
3105     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3106     esac
3107   done
3108
3109   for ac_config_dir in stepmake; do
3110
3111     # Do not complain, so a configure script can configure whichever
3112     # parts of a large source tree are present.
3113     if test ! -d $srcdir/$ac_config_dir; then
3114       continue
3115     fi
3116
3117     echo configuring in $ac_config_dir
3118
3119     case "$srcdir" in
3120     .) ;;
3121     *)
3122       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3123       else
3124         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3125       fi
3126       ;;
3127     esac
3128
3129     ac_popdir=`pwd`
3130     cd $ac_config_dir
3131
3132       # A "../" for each directory in /$ac_config_dir.
3133       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3134
3135     case "$srcdir" in
3136     .) # No --srcdir option.  We are building in place.
3137       ac_sub_srcdir=$srcdir ;;
3138     /*) # Absolute path.
3139       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3140     *) # Relative path.
3141       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3142     esac
3143
3144     # Check for guested configure; otherwise get Cygnus style configure.
3145     if test -f $ac_sub_srcdir/configure; then
3146       ac_sub_configure=$ac_sub_srcdir/configure
3147     elif test -f $ac_sub_srcdir/configure.in; then
3148       ac_sub_configure=$ac_configure
3149     else
3150       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3151       ac_sub_configure=
3152     fi
3153
3154     # The recursion is here.
3155     if test -n "$ac_sub_configure"; then
3156
3157       # Make the cache file name correct relative to the subdirectory.
3158       case "$cache_file" in
3159       /*) ac_sub_cache_file=$cache_file ;;
3160       *) # Relative path.
3161         ac_sub_cache_file="$ac_dots$cache_file" ;;
3162       esac
3163
3164       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3165       # The eval makes quoting arguments work.
3166       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3167       then :
3168       else
3169         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3170       fi
3171     fi
3172
3173     cd $ac_popdir
3174   done
3175 fi
3176
3177
3178     rm -f GNUmakefile
3179     cp make/toplevel.make.in ./GNUmakefile
3180     chmod 444 GNUmakefile
3181
3182