]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/configure
release: 1.1.34
[lilypond.git] / stepmake / 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
58
59
60 # Guess values for system-dependent variables and create Makefiles.
61 # Generated automatically using autoconf version 2.12 
62 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
63 #
64 # This configure script is free software; the Free Software Foundation
65 # gives unlimited permission to copy, distribute and modify it.
66
67 # Defaults:
68 ac_help=
69 ac_default_prefix=/usr/local
70 # Any additions from configure.in:
71 ac_help="$ac_help
72   enable-config=FILE      put configure settings in config-FILE.make"
73 ac_help="$ac_help
74   with-localedir=LOCALE   use LOCALE as locale dir. Default: PREFIX/share/locale "
75 ac_help="$ac_help
76   with-lang=LANG          use LANG as language to emit messages"
77
78 # Initialize some variables set by options.
79 # The variables have the same names as the options, with
80 # dashes changed to underlines.
81 build=NONE
82 cache_file=./config.cache
83 exec_prefix=NONE
84 host=NONE
85 no_create=
86 nonopt=NONE
87 no_recursion=
88 prefix=NONE
89 program_prefix=NONE
90 program_suffix=NONE
91 program_transform_name=s,x,x,
92 silent=
93 site=
94 srcdir=
95 target=NONE
96 verbose=
97 x_includes=NONE
98 x_libraries=NONE
99 bindir='${exec_prefix}/bin'
100 sbindir='${exec_prefix}/sbin'
101 libexecdir='${exec_prefix}/libexec'
102 datadir='${prefix}/share'
103 sysconfdir='${prefix}/etc'
104 sharedstatedir='${prefix}/com'
105 localstatedir='${prefix}/var'
106 libdir='${exec_prefix}/lib'
107 includedir='${prefix}/include'
108 oldincludedir='/usr/include'
109 infodir='${prefix}/info'
110 mandir='${prefix}/man'
111
112 # Initialize some other variables.
113 subdirs=
114 MFLAGS= MAKEFLAGS=
115 # Maximum number of lines to put in a shell here document.
116 ac_max_here_lines=12
117
118 ac_prev=
119 for ac_option
120 do
121
122   # If the previous option needs an argument, assign it.
123   if test -n "$ac_prev"; then
124     eval "$ac_prev=\$ac_option"
125     ac_prev=
126     continue
127   fi
128
129   case "$ac_option" in
130   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
131   *) ac_optarg= ;;
132   esac
133
134   # Accept the important Cygnus configure options, so we can diagnose typos.
135
136   case "$ac_option" in
137
138   -bindir | --bindir | --bindi | --bind | --bin | --bi)
139     ac_prev=bindir ;;
140   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
141     bindir="$ac_optarg" ;;
142
143   -build | --build | --buil | --bui | --bu)
144     ac_prev=build ;;
145   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
146     build="$ac_optarg" ;;
147
148   -cache-file | --cache-file | --cache-fil | --cache-fi \
149   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
150     ac_prev=cache_file ;;
151   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
152   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
153     cache_file="$ac_optarg" ;;
154
155   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156     ac_prev=datadir ;;
157   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158   | --da=*)
159     datadir="$ac_optarg" ;;
160
161   -disable-* | --disable-*)
162     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163     # Reject names that are not valid shell variable names.
164     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166     fi
167     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168     eval "enable_${ac_feature}=no" ;;
169
170   -enable-* | --enable-*)
171     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172     # Reject names that are not valid shell variable names.
173     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175     fi
176     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
177     case "$ac_option" in
178       *=*) ;;
179       *) ac_optarg=yes ;;
180     esac
181     eval "enable_${ac_feature}='$ac_optarg'" ;;
182
183   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
184   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
185   | --exec | --exe | --ex)
186     ac_prev=exec_prefix ;;
187   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
188   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
189   | --exec=* | --exe=* | --ex=*)
190     exec_prefix="$ac_optarg" ;;
191
192   -gas | --gas | --ga | --g)
193     # Obsolete; use --with-gas.
194     with_gas=yes ;;
195
196   -help | --help | --hel | --he)
197     # Omit some internal or obsolete options to make the list less imposing.
198     # This message is too long to be a string in the A/UX 3.1 sh.
199     cat << EOF
200 Usage: configure [options] [host]
201 Options: [defaults in brackets after descriptions]
202 Configuration:
203   --cache-file=FILE       cache test results in FILE
204   --help                  print this message
205   --no-create             do not create output files
206   --quiet, --silent       do not print \`checking...' messages
207   --version               print the version of autoconf that created configure
208 Directory and file names:
209   --prefix=PREFIX         install architecture-independent files in PREFIX
210                           [$ac_default_prefix]
211   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
212                           [same as prefix]
213   --bindir=DIR            user executables in DIR [EPREFIX/bin]
214   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
215   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
216   --datadir=DIR           read-only architecture-independent data in DIR
217                           [PREFIX/share]
218   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
219   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
220                           [PREFIX/com]
221   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
222   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
223   --includedir=DIR        C header files in DIR [PREFIX/include]
224   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
225   --infodir=DIR           info documentation in DIR [PREFIX/info]
226   --mandir=DIR            man documentation in DIR [PREFIX/man]
227   --srcdir=DIR            find the sources in DIR [configure dir or ..]
228   --program-prefix=PREFIX prepend PREFIX to installed program names
229   --program-suffix=SUFFIX append SUFFIX to installed program names
230   --program-transform-name=PROGRAM
231                           run sed PROGRAM on installed program names
232 EOF
233     cat << EOF
234 Host type:
235   --build=BUILD           configure for building on BUILD [BUILD=HOST]
236   --host=HOST             configure for HOST [guessed]
237   --target=TARGET         configure for TARGET [TARGET=HOST]
238 Features and packages:
239   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
240   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
241   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
242   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
243   --x-includes=DIR        X include files are in DIR
244   --x-libraries=DIR       X library files are in DIR
245 EOF
246     if test -n "$ac_help"; then
247       echo "--enable and --with options recognized:$ac_help"
248     fi
249     exit 0 ;;
250
251   -host | --host | --hos | --ho)
252     ac_prev=host ;;
253   -host=* | --host=* | --hos=* | --ho=*)
254     host="$ac_optarg" ;;
255
256   -includedir | --includedir | --includedi | --included | --include \
257   | --includ | --inclu | --incl | --inc)
258     ac_prev=includedir ;;
259   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260   | --includ=* | --inclu=* | --incl=* | --inc=*)
261     includedir="$ac_optarg" ;;
262
263   -infodir | --infodir | --infodi | --infod | --info | --inf)
264     ac_prev=infodir ;;
265   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266     infodir="$ac_optarg" ;;
267
268   -libdir | --libdir | --libdi | --libd)
269     ac_prev=libdir ;;
270   -libdir=* | --libdir=* | --libdi=* | --libd=*)
271     libdir="$ac_optarg" ;;
272
273   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274   | --libexe | --libex | --libe)
275     ac_prev=libexecdir ;;
276   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277   | --libexe=* | --libex=* | --libe=*)
278     libexecdir="$ac_optarg" ;;
279
280   -localstatedir | --localstatedir | --localstatedi | --localstated \
281   | --localstate | --localstat | --localsta | --localst \
282   | --locals | --local | --loca | --loc | --lo)
283     ac_prev=localstatedir ;;
284   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287     localstatedir="$ac_optarg" ;;
288
289   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290     ac_prev=mandir ;;
291   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292     mandir="$ac_optarg" ;;
293
294   -nfp | --nfp | --nf)
295     # Obsolete; use --without-fp.
296     with_fp=no ;;
297
298   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
299   | --no-cr | --no-c)
300     no_create=yes ;;
301
302   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
304     no_recursion=yes ;;
305
306   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308   | --oldin | --oldi | --old | --ol | --o)
309     ac_prev=oldincludedir ;;
310   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313     oldincludedir="$ac_optarg" ;;
314
315   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316     ac_prev=prefix ;;
317   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318     prefix="$ac_optarg" ;;
319
320   -program-prefix | --program-prefix | --program-prefi | --program-pref \
321   | --program-pre | --program-pr | --program-p)
322     ac_prev=program_prefix ;;
323   -program-prefix=* | --program-prefix=* | --program-prefi=* \
324   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325     program_prefix="$ac_optarg" ;;
326
327   -program-suffix | --program-suffix | --program-suffi | --program-suff \
328   | --program-suf | --program-su | --program-s)
329     ac_prev=program_suffix ;;
330   -program-suffix=* | --program-suffix=* | --program-suffi=* \
331   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332     program_suffix="$ac_optarg" ;;
333
334   -program-transform-name | --program-transform-name \
335   | --program-transform-nam | --program-transform-na \
336   | --program-transform-n | --program-transform- \
337   | --program-transform | --program-transfor \
338   | --program-transfo | --program-transf \
339   | --program-trans | --program-tran \
340   | --progr-tra | --program-tr | --program-t)
341     ac_prev=program_transform_name ;;
342   -program-transform-name=* | --program-transform-name=* \
343   | --program-transform-nam=* | --program-transform-na=* \
344   | --program-transform-n=* | --program-transform-=* \
345   | --program-transform=* | --program-transfor=* \
346   | --program-transfo=* | --program-transf=* \
347   | --program-trans=* | --program-tran=* \
348   | --progr-tra=* | --program-tr=* | --program-t=*)
349     program_transform_name="$ac_optarg" ;;
350
351   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352   | -silent | --silent | --silen | --sile | --sil)
353     silent=yes ;;
354
355   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356     ac_prev=sbindir ;;
357   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358   | --sbi=* | --sb=*)
359     sbindir="$ac_optarg" ;;
360
361   -sharedstatedir | --sharedstatedir | --sharedstatedi \
362   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363   | --sharedst | --shareds | --shared | --share | --shar \
364   | --sha | --sh)
365     ac_prev=sharedstatedir ;;
366   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369   | --sha=* | --sh=*)
370     sharedstatedir="$ac_optarg" ;;
371
372   -site | --site | --sit)
373     ac_prev=site ;;
374   -site=* | --site=* | --sit=*)
375     site="$ac_optarg" ;;
376
377   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378     ac_prev=srcdir ;;
379   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
380     srcdir="$ac_optarg" ;;
381
382   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
383   | --syscon | --sysco | --sysc | --sys | --sy)
384     ac_prev=sysconfdir ;;
385   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
386   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
387     sysconfdir="$ac_optarg" ;;
388
389   -target | --target | --targe | --targ | --tar | --ta | --t)
390     ac_prev=target ;;
391   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
392     target="$ac_optarg" ;;
393
394   -v | -verbose | --verbose | --verbos | --verbo | --verb)
395     verbose=yes ;;
396
397   -version | --version | --versio | --versi | --vers)
398     echo "configure generated by autoconf version 2.12"
399     exit 0 ;;
400
401   -with-* | --with-*)
402     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403     # Reject names that are not valid shell variable names.
404     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406     fi
407     ac_package=`echo $ac_package| sed 's/-/_/g'`
408     case "$ac_option" in
409       *=*) ;;
410       *) ac_optarg=yes ;;
411     esac
412     eval "with_${ac_package}='$ac_optarg'" ;;
413
414   -without-* | --without-*)
415     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416     # Reject names that are not valid shell variable names.
417     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419     fi
420     ac_package=`echo $ac_package| sed 's/-/_/g'`
421     eval "with_${ac_package}=no" ;;
422
423   --x)
424     # Obsolete; use --with-x.
425     with_x=yes ;;
426
427   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
428   | --x-incl | --x-inc | --x-in | --x-i)
429     ac_prev=x_includes ;;
430   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
431   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
432     x_includes="$ac_optarg" ;;
433
434   -x-libraries | --x-libraries | --x-librarie | --x-librari \
435   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
436     ac_prev=x_libraries ;;
437   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
438   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
439     x_libraries="$ac_optarg" ;;
440
441   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
442     ;;
443
444   *)
445     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446       echo "configure: warning: $ac_option: invalid host type" 1>&2
447     fi
448     if test "x$nonopt" != xNONE; then
449       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
450     fi
451     nonopt="$ac_option"
452     ;;
453
454   esac
455 done
456
457 if test -n "$ac_prev"; then
458   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 fi
460
461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462
463 # File descriptor usage:
464 # 0 standard input
465 # 1 file creation
466 # 2 errors and warnings
467 # 3 some systems may open it to /dev/tty
468 # 4 used on the Kubota Titan
469 # 6 checking for... messages and results
470 # 5 compiler messages saved in config.log
471 if test "$silent" = yes; then
472   exec 6>/dev/null
473 else
474   exec 6>&1
475 fi
476 exec 5>./config.log
477
478 echo "\
479 This file contains any messages produced by compilers while
480 running configure, to aid debugging if configure makes a mistake.
481 " 1>&5
482
483 # Strip out --no-create and --no-recursion so they do not pile up.
484 # Also quote any args containing shell metacharacters.
485 ac_configure_args=
486 for ac_arg
487 do
488   case "$ac_arg" in
489   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490   | --no-cr | --no-c) ;;
491   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
493   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
495   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
496   esac
497 done
498
499 # NLS nuisances.
500 # Only set these to C if already set.  These must not be set unconditionally
501 # because not all systems understand e.g. LANG=C (notably SCO).
502 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503 # Non-C LC_CTYPE values break the ctype check.
504 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
505 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
506 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
507 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
508
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 echo > confdefs.h
513
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file=make/stepmake.lsm.in
517
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520   ac_srcdir_defaulted=yes
521   # Try the directory containing this script, then its parent.
522   ac_prog=$0
523   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525   srcdir=$ac_confdir
526   if test ! -r $srcdir/$ac_unique_file; then
527     srcdir=..
528   fi
529 else
530   ac_srcdir_defaulted=no
531 fi
532 if test ! -r $srcdir/$ac_unique_file; then
533   if test "$ac_srcdir_defaulted" = yes; then
534     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535   else
536     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537   fi
538 fi
539 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543   if test "x$prefix" != xNONE; then
544     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545   else
546     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547   fi
548 fi
549 for ac_site_file in $CONFIG_SITE; do
550   if test -r "$ac_site_file"; then
551     echo "loading site script $ac_site_file"
552     . "$ac_site_file"
553   fi
554 done
555
556 if test -r "$cache_file"; then
557   echo "loading cache $cache_file"
558   . $cache_file
559 else
560   echo "creating cache $cache_file"
561   > $cache_file
562 fi
563
564 ac_ext=c
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
570
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574     ac_n= ac_c='
575 ' ac_t='        '
576   else
577     ac_n=-n ac_c= ac_t=
578   fi
579 else
580   ac_n= ac_c='\c' ac_t=
581 fi
582
583
584
585
586 # Bootstrap StepMake configure
587
588
589     . $srcdir/VERSION
590     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
591     if test x$MY_PATCH_LEVEL != x; then
592         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
593     fi
594
595     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
596         PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
597     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
598     
599     # No versioning on directory names of sub-packages 
600     # urg, urg
601     stepmake=${datadir}/stepmake
602     presome=${prefix}
603     if test "$prefix" = "NONE"; then
604             presome=${ac_default_prefix}
605     fi
606     stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
607
608     if test "x$PACKAGE" = "xSTEPMAKE"; then
609         echo Stepmake package!
610         (cd stepmake; rm -f stepmake; ln -s ../stepmake .)
611         (cd stepmake; rm -f bin; ln -s ../bin .)
612         ac_aux_dir=
613 for ac_dir in bin $srcdir/bin; do
614   if test -f $ac_dir/install-sh; then
615     ac_aux_dir=$ac_dir
616     ac_install_sh="$ac_aux_dir/install-sh -c"
617     break
618   elif test -f $ac_dir/install.sh; then
619     ac_aux_dir=$ac_dir
620     ac_install_sh="$ac_aux_dir/install.sh -c"
621     break
622   fi
623 done
624 if test -z "$ac_aux_dir"; then
625   { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
626 fi
627 ac_config_guess=$ac_aux_dir/config.guess
628 ac_config_sub=$ac_aux_dir/config.sub
629 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
630
631         stepmake=stepmake
632     else
633         echo Package: $PACKAGE
634         # Check for installed stepmake
635         if test -d $stepmake; then
636             echo Using installed stepmake: $stepmake
637         else
638             stepmake='$(depth)'/stepmake
639             echo Using local stepmake: $datadir/stepmake not found
640         fi
641         ac_aux_dir=
642 for ac_dir in \
643           $HOME/usr/local/share/stepmake/bin\
644           $HOME/usr/local/lib/stepmake/bin\
645           $HOME/usr/share/stepmake/bin\
646           $HOME/usr/lib/stepmake/bin\
647           /usr/local/share/stepmake/bin\
648           /usr/local/lib/stepmake/bin\
649           /usr/share/stepmake/bin\
650           /usr/lib/stepmake/bin\
651           stepmake/bin\
652          $srcdir/\
653           $HOME/usr/local/share/stepmake/bin\
654           $HOME/usr/local/lib/stepmake/bin\
655           $HOME/usr/share/stepmake/bin\
656           $HOME/usr/lib/stepmake/bin\
657           /usr/local/share/stepmake/bin\
658           /usr/local/lib/stepmake/bin\
659           /usr/share/stepmake/bin\
660           /usr/lib/stepmake/bin\
661           stepmake/bin\
662         ; do
663   if test -f $ac_dir/install-sh; then
664     ac_aux_dir=$ac_dir
665     ac_install_sh="$ac_aux_dir/install-sh -c"
666     break
667   elif test -f $ac_dir/install.sh; then
668     ac_aux_dir=$ac_dir
669     ac_install_sh="$ac_aux_dir/install.sh -c"
670     break
671   fi
672 done
673 if test -z "$ac_aux_dir"; then
674   { echo "configure: error: can not find install-sh or install.sh in \
675           $HOME/usr/local/share/stepmake/bin\
676           $HOME/usr/local/lib/stepmake/bin\
677           $HOME/usr/share/stepmake/bin\
678           $HOME/usr/lib/stepmake/bin\
679           /usr/local/share/stepmake/bin\
680           /usr/local/lib/stepmake/bin\
681           /usr/share/stepmake/bin\
682           /usr/lib/stepmake/bin\
683           stepmake/bin\
684          $srcdir/\
685           $HOME/usr/local/share/stepmake/bin\
686           $HOME/usr/local/lib/stepmake/bin\
687           $HOME/usr/share/stepmake/bin\
688           $HOME/usr/lib/stepmake/bin\
689           /usr/local/share/stepmake/bin\
690           /usr/local/lib/stepmake/bin\
691           /usr/share/stepmake/bin\
692           /usr/lib/stepmake/bin\
693           stepmake/bin\
694         " 1>&2; exit 1; }
695 fi
696 ac_config_guess=$ac_aux_dir/config.guess
697 ac_config_sub=$ac_aux_dir/config.sub
698 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
699
700     fi
701
702     
703     
704     
705     
706     cat >> confdefs.h <<EOF
707 #define PACKAGE "${PACKAGE_NAME}"
708 EOF
709
710     cat >> confdefs.h <<EOF
711 #define TOPLEVEL_VERSION "${FULL_VERSION}"
712 EOF
713
714
715     if test "$package_depth" = "" ; then
716         package_depth="."
717     else
718         package_depth="../$package_depth"
719     fi
720     export package_depth
721     
722
723     AUTOGENERATE="This file was automatically generated by configure"
724     
725     absolute_builddir="`pwd`"
726     
727
728     STATE_VECTOR=`ls make/STATE-VECTOR 2>/dev/null`
729     if test "x$STATE_VECTOR" != "x"; then
730         STATE_VECTOR="\$(depth)/$STATE_VECTOR"
731     fi
732     
733
734     CONFIGSUFFIX=
735     # Check whether --enable-config or --disable-config was given.
736 if test "${enable_config+set}" = set; then
737   enableval="$enable_config"
738   CONFIGSUFFIX=$enableval
739 fi
740
741
742     if test "$CONFIGSUFFIX" != "" ; then
743         CONFIGFILE=config-$CONFIGSUFFIX
744     else
745         CONFIGFILE=config
746     fi
747     
748      
749     
750 # Make sure we can run config.sub.
751 if $ac_config_sub sun4 >/dev/null 2>&1; then :
752 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
753 fi
754
755 echo $ac_n "checking host system type""... $ac_c" 1>&6
756 echo "configure:757: checking host system type" >&5
757
758 host_alias=$host
759 case "$host_alias" in
760 NONE)
761   case $nonopt in
762   NONE)
763     if host_alias=`$ac_config_guess`; then :
764     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
765     fi ;;
766   *) host_alias=$nonopt ;;
767   esac ;;
768 esac
769
770 host=`$ac_config_sub $host_alias`
771 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
772 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
773 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
774 echo "$ac_t""$host" 1>&6
775
776     for ac_prog in gmake make
777 do
778 # Extract the first word of "$ac_prog", so it can be a program name with args.
779 set dummy $ac_prog; ac_word=$2
780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
781 echo "configure:782: checking for $ac_word" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
783   echo $ac_n "(cached) $ac_c" 1>&6
784 else
785   if test -n "$MAKE"; then
786   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
787 else
788   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
789   for ac_dir in $PATH; do
790     test -z "$ac_dir" && ac_dir=.
791     if test -f $ac_dir/$ac_word; then
792       ac_cv_prog_MAKE="$ac_prog"
793       break
794     fi
795   done
796   IFS="$ac_save_ifs"
797 fi
798 fi
799 MAKE="$ac_cv_prog_MAKE"
800 if test -n "$MAKE"; then
801   echo "$ac_t""$MAKE" 1>&6
802 else
803   echo "$ac_t""no" 1>&6
804 fi
805
806 test -n "$MAKE" && break
807 done
808 test -n "$MAKE" || MAKE="error"
809
810     for ac_prog in find
811 do
812 # Extract the first word of "$ac_prog", so it can be a program name with args.
813 set dummy $ac_prog; ac_word=$2
814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
815 echo "configure:816: checking for $ac_word" >&5
816 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
817   echo $ac_n "(cached) $ac_c" 1>&6
818 else
819   if test -n "$FIND"; then
820   ac_cv_prog_FIND="$FIND" # Let the user override the test.
821 else
822   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
823   for ac_dir in $PATH; do
824     test -z "$ac_dir" && ac_dir=.
825     if test -f $ac_dir/$ac_word; then
826       ac_cv_prog_FIND="$ac_prog"
827       break
828     fi
829   done
830   IFS="$ac_save_ifs"
831 fi
832 fi
833 FIND="$ac_cv_prog_FIND"
834 if test -n "$FIND"; then
835   echo "$ac_t""$FIND" 1>&6
836 else
837   echo "$ac_t""no" 1>&6
838 fi
839
840 test -n "$FIND" && break
841 done
842 test -n "$FIND" || FIND="error"
843
844
845
846     for ac_prog in tar
847 do
848 # Extract the first word of "$ac_prog", so it can be a program name with args.
849 set dummy $ac_prog; ac_word=$2
850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
851 echo "configure:852: checking for $ac_word" >&5
852 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
853   echo $ac_n "(cached) $ac_c" 1>&6
854 else
855   if test -n "$TAR"; then
856   ac_cv_prog_TAR="$TAR" # Let the user override the test.
857 else
858   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
859   for ac_dir in $PATH; do
860     test -z "$ac_dir" && ac_dir=.
861     if test -f $ac_dir/$ac_word; then
862       ac_cv_prog_TAR="$ac_prog"
863       break
864     fi
865   done
866   IFS="$ac_save_ifs"
867 fi
868 fi
869 TAR="$ac_cv_prog_TAR"
870 if test -n "$TAR"; then
871   echo "$ac_t""$TAR" 1>&6
872 else
873   echo "$ac_t""no" 1>&6
874 fi
875
876 test -n "$TAR" && break
877 done
878 test -n "$TAR" || TAR="error"
879
880     for ac_prog in bash
881 do
882 # Extract the first word of "$ac_prog", so it can be a program name with args.
883 set dummy $ac_prog; ac_word=$2
884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
885 echo "configure:886: checking for $ac_word" >&5
886 if eval "test \"`echo '$''{'ac_cv_prog_BASH'+set}'`\" = set"; then
887   echo $ac_n "(cached) $ac_c" 1>&6
888 else
889   if test -n "$BASH"; then
890   ac_cv_prog_BASH="$BASH" # Let the user override the test.
891 else
892   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
893   for ac_dir in $PATH; do
894     test -z "$ac_dir" && ac_dir=.
895     if test -f $ac_dir/$ac_word; then
896       ac_cv_prog_BASH="$ac_prog"
897       break
898     fi
899   done
900   IFS="$ac_save_ifs"
901 fi
902 fi
903 BASH="$ac_cv_prog_BASH"
904 if test -n "$BASH"; then
905   echo "$ac_t""$BASH" 1>&6
906 else
907   echo "$ac_t""no" 1>&6
908 fi
909
910 test -n "$BASH" && break
911 done
912 test -n "$BASH" || BASH="/bin/sh"
913
914
915     # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
916 set dummy ${PYTHON:-python}; ac_word=$2
917 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
918 echo "configure:919: checking for $ac_word" >&5
919 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
920   echo $ac_n "(cached) $ac_c" 1>&6
921 else
922   case "$PYTHON" in
923   /*)
924   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
925   ;;
926   *)
927   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
928   for ac_dir in $PATH; do
929     test -z "$ac_dir" && ac_dir=.
930     if test -f $ac_dir/$ac_word; then
931       ac_cv_path_PYTHON="$ac_dir/$ac_word"
932       break
933     fi
934   done
935   IFS="$ac_save_ifs"
936   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
937   ;;
938 esac
939 fi
940 PYTHON="$ac_cv_path_PYTHON"
941 if test -n "$PYTHON"; then
942   echo "$ac_t""$PYTHON" 1>&6
943 else
944   echo "$ac_t""no" 1>&6
945 fi
946
947     
948
949     if test $MAKE != "error" ; then
950         $MAKE -v 2> /dev/null | grep GNU > /dev/null
951         if test "$?" = 1
952         then
953                 
954     echo "configure: warning: Please install *GNU* make" 1>&2
955     warn_b=yes
956  
957         fi
958     fi 
959
960     
961         result="`echo \"$PYTHON\" | grep echo`"
962         if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
963                 
964     echo "configure: warning: can\'t find python. You should install Python" 1>&2
965     warn_b=yes
966
967         fi
968
969
970     if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
971         LN=cp # hard link does not work under cygnus-nt
972         LN_S='cp -r' # symbolic link does not work for native nt
973         ZIP="zip -r -9" #
974         DOTEXE=.exe
975         # urg
976         # DIRSEP='\\'
977         # PATHSEP=';'
978         #
979         # cygwin fixes all these things.  
980         # it seems these were used because of dos-style TEXINPUTS and
981         # MFINPUTS needed for miktex.
982         # but this breaks parsing of all other cygwin/unix style paths.
983         #
984         # if your (mik)tex breaks, make a:
985         #    /usr/local/bin/tex:
986         #    #!/bin/sh
987         #    TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex 
988         #
989         # and
990         #
991         #    /usr/local/bin/mf:
992         #    #!/bin/sh
993         #    MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf 
994         #
995         # this way, you may have buildscripts/out/lilypond-profile 
996         # 'automatically' sourced from /usr/etc/profile.d/ too.
997         #
998         DIRSEP='/'
999         PATHSEP=':'
1000         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1001     else
1002         DIRSEP='/'
1003         PATHSEP=':'
1004         LN=ln
1005         LN_S='ln -s'
1006         ZIP="zip -r -9"
1007         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1008     fi
1009     
1010     
1011     
1012     
1013     
1014     cat >> confdefs.h <<EOF
1015 #define DIRSEP '${DIRSEP}'
1016 EOF
1017
1018     cat >> confdefs.h <<EOF
1019 #define PATHSEP '${PATHSEP}'
1020 EOF
1021
1022     
1023     
1024   
1025    
1026     
1027     if test "$datadir" = "\${prefix}/share"; then
1028             datadir='${prefix}/share/'$package
1029     fi
1030     DIR_DATADIR=${datadir}
1031     presome=${prefix}
1032     if test "$prefix" = "NONE"; then
1033             presome=${ac_default_prefix}
1034     fi
1035     DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1036     
1037     
1038     cat >> confdefs.h <<EOF
1039 #define DIR_DATADIR "${DIR_DATADIR}"
1040 EOF
1041
1042
1043
1044
1045 # For all packages except the StepMake package itself
1046 # AC_CONFIG_SUBDIRS(stepmake)
1047
1048 # Uncomment the configuration options your package needs.
1049 # AC_STEPMAKE_COMPILE
1050 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1051 # AC_STEPMAKE_CXX
1052 # AC_STEPMAKE_GXX
1053 # AC_STEPMAKE_CXXTEMPLATE
1054 # AC_STEPMAKE_LEXYACC
1055 # AC_STEPMAKE_LIB
1056 # AC_STEPMAKE_LIBTOOL
1057
1058     lang=English
1059     ALL_LINGUAS="en nl"
1060
1061     # with/enable ??
1062     # Check whether --with-localedir or --without-localedir was given.
1063 if test "${with_localedir+set}" = set; then
1064   withval="$with_localedir"
1065   localedir=$with_localedir
1066 else
1067   localedir='${prefix}/share/locale'
1068 fi
1069
1070
1071     # Check whether --with-lang or --without-lang was given.
1072 if test "${with_lang+set}" = set; then
1073   withval="$with_lang"
1074   language=$with_lang
1075 else
1076   language=English
1077 fi
1078
1079
1080     echo $ac_n "checking language""... $ac_c" 1>&6
1081 echo "configure:1082: checking language" >&5    
1082     case "$language" in
1083       En* | en* | Am* | am* | US* | us*)
1084             lang=English;;
1085       NL | nl | Du* | du* | Ned* | ned*)
1086             lang=Dutch;;
1087       "")
1088             lang=English;;
1089       *)
1090             lang=unknown;;
1091     esac
1092     echo "$ac_t""$lang" 1>&6
1093
1094     if test "$lang" = "unknown" ; then
1095         
1096     echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
1097     warn_b=yes
1098
1099     fi
1100
1101
1102 # AC_STEPMAKE_GETTEXT
1103 # AC_STEPMAKE_MAN
1104 # AC_STEPMAKE_MSGFMT
1105 # AC_STEPMAKE_TEXMF
1106 # AC_STEPMAKE_TEXMF_DIRS
1107
1108     if test "x$YODL" = "x"; then 
1109         for ac_prog in striproff
1110 do
1111 # Extract the first word of "$ac_prog", so it can be a program name with args.
1112 set dummy $ac_prog; ac_word=$2
1113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114 echo "configure:1115: checking for $ac_word" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_STRIPROFF'+set}'`\" = set"; then
1116   echo $ac_n "(cached) $ac_c" 1>&6
1117 else
1118   if test -n "$STRIPROFF"; then
1119   ac_cv_prog_STRIPROFF="$STRIPROFF" # Let the user override the test.
1120 else
1121   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1122   for ac_dir in $PATH; do
1123     test -z "$ac_dir" && ac_dir=.
1124     if test -f $ac_dir/$ac_word; then
1125       ac_cv_prog_STRIPROFF="$ac_prog"
1126       break
1127     fi
1128   done
1129   IFS="$ac_save_ifs"
1130 fi
1131 fi
1132 STRIPROFF="$ac_cv_prog_STRIPROFF"
1133 if test -n "$STRIPROFF"; then
1134   echo "$ac_t""$STRIPROFF" 1>&6
1135 else
1136   echo "$ac_t""no" 1>&6
1137 fi
1138
1139 test -n "$STRIPROFF" && break
1140 done
1141 test -n "$STRIPROFF" || STRIPROFF="-echo no striproff"
1142
1143         for ac_prog in yodl
1144 do
1145 # Extract the first word of "$ac_prog", so it can be a program name with args.
1146 set dummy $ac_prog; ac_word=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_YODL'+set}'`\" = set"; then
1150   echo $ac_n "(cached) $ac_c" 1>&6
1151 else
1152   if test -n "$YODL"; then
1153   ac_cv_prog_YODL="$YODL" # Let the user override the test.
1154 else
1155   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1156   for ac_dir in $PATH; do
1157     test -z "$ac_dir" && ac_dir=.
1158     if test -f $ac_dir/$ac_word; then
1159       ac_cv_prog_YODL="$ac_prog"
1160       break
1161     fi
1162   done
1163   IFS="$ac_save_ifs"
1164 fi
1165 fi
1166 YODL="$ac_cv_prog_YODL"
1167 if test -n "$YODL"; then
1168   echo "$ac_t""$YODL" 1>&6
1169 else
1170   echo "$ac_t""no" 1>&6
1171 fi
1172
1173 test -n "$YODL" && break
1174 done
1175 test -n "$YODL" || YODL="-echo no yodl"
1176
1177         for ac_prog in yodl2html
1178 do
1179 # Extract the first word of "$ac_prog", so it can be a program name with args.
1180 set dummy $ac_prog; ac_word=$2
1181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1182 echo "configure:1183: checking for $ac_word" >&5
1183 if eval "test \"`echo '$''{'ac_cv_prog_YODL2HTML'+set}'`\" = set"; then
1184   echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186   if test -n "$YODL2HTML"; then
1187   ac_cv_prog_YODL2HTML="$YODL2HTML" # Let the user override the test.
1188 else
1189   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1190   for ac_dir in $PATH; do
1191     test -z "$ac_dir" && ac_dir=.
1192     if test -f $ac_dir/$ac_word; then
1193       ac_cv_prog_YODL2HTML="$ac_prog"
1194       break
1195     fi
1196   done
1197   IFS="$ac_save_ifs"
1198 fi
1199 fi
1200 YODL2HTML="$ac_cv_prog_YODL2HTML"
1201 if test -n "$YODL2HTML"; then
1202   echo "$ac_t""$YODL2HTML" 1>&6
1203 else
1204   echo "$ac_t""no" 1>&6
1205 fi
1206
1207 test -n "$YODL2HTML" && break
1208 done
1209 test -n "$YODL2HTML" || YODL2HTML="-echo no yodl"
1210
1211         for ac_prog in yodl2latex
1212 do
1213 # Extract the first word of "$ac_prog", so it can be a program name with args.
1214 set dummy $ac_prog; ac_word=$2
1215 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216 echo "configure:1217: checking for $ac_word" >&5
1217 if eval "test \"`echo '$''{'ac_cv_prog_YODL2LATEX'+set}'`\" = set"; then
1218   echo $ac_n "(cached) $ac_c" 1>&6
1219 else
1220   if test -n "$YODL2LATEX"; then
1221   ac_cv_prog_YODL2LATEX="$YODL2LATEX" # Let the user override the test.
1222 else
1223   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1224   for ac_dir in $PATH; do
1225     test -z "$ac_dir" && ac_dir=.
1226     if test -f $ac_dir/$ac_word; then
1227       ac_cv_prog_YODL2LATEX="$ac_prog"
1228       break
1229     fi
1230   done
1231   IFS="$ac_save_ifs"
1232 fi
1233 fi
1234 YODL2LATEX="$ac_cv_prog_YODL2LATEX"
1235 if test -n "$YODL2LATEX"; then
1236   echo "$ac_t""$YODL2LATEX" 1>&6
1237 else
1238   echo "$ac_t""no" 1>&6
1239 fi
1240
1241 test -n "$YODL2LATEX" && break
1242 done
1243
1244         for ac_prog in yodl2man
1245 do
1246 # Extract the first word of "$ac_prog", so it can be a program name with args.
1247 set dummy $ac_prog; ac_word=$2
1248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1249 echo "configure:1250: checking for $ac_word" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MAN'+set}'`\" = set"; then
1251   echo $ac_n "(cached) $ac_c" 1>&6
1252 else
1253   if test -n "$YODL2MAN"; then
1254   ac_cv_prog_YODL2MAN="$YODL2MAN" # Let the user override the test.
1255 else
1256   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1257   for ac_dir in $PATH; do
1258     test -z "$ac_dir" && ac_dir=.
1259     if test -f $ac_dir/$ac_word; then
1260       ac_cv_prog_YODL2MAN="$ac_prog"
1261       break
1262     fi
1263   done
1264   IFS="$ac_save_ifs"
1265 fi
1266 fi
1267 YODL2MAN="$ac_cv_prog_YODL2MAN"
1268 if test -n "$YODL2MAN"; then
1269   echo "$ac_t""$YODL2MAN" 1>&6
1270 else
1271   echo "$ac_t""no" 1>&6
1272 fi
1273
1274 test -n "$YODL2MAN" && break
1275 done
1276 test -n "$YODL2MAN" || YODL2MAN="-echo no yodl"
1277
1278         for ac_prog in yodl2msless
1279 do
1280 # Extract the first word of "$ac_prog", so it can be a program name with args.
1281 set dummy $ac_prog; ac_word=$2
1282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1283 echo "configure:1284: checking for $ac_word" >&5
1284 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MSLESS'+set}'`\" = set"; then
1285   echo $ac_n "(cached) $ac_c" 1>&6
1286 else
1287   if test -n "$YODL2MSLESS"; then
1288   ac_cv_prog_YODL2MSLESS="$YODL2MSLESS" # Let the user override the test.
1289 else
1290   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1291   for ac_dir in $PATH; do
1292     test -z "$ac_dir" && ac_dir=.
1293     if test -f $ac_dir/$ac_word; then
1294       ac_cv_prog_YODL2MSLESS="$ac_prog"
1295       break
1296     fi
1297   done
1298   IFS="$ac_save_ifs"
1299 fi
1300 fi
1301 YODL2MSLESS="$ac_cv_prog_YODL2MSLESS"
1302 if test -n "$YODL2MSLESS"; then
1303   echo "$ac_t""$YODL2MSLESS" 1>&6
1304 else
1305   echo "$ac_t""no" 1>&6
1306 fi
1307
1308 test -n "$YODL2MSLESS" && break
1309 done
1310 test -n "$YODL2MSLESS" || YODL2MSLESS="-echo no yodl"
1311
1312         for ac_prog in yodl2texinfo
1313 do
1314 # Extract the first word of "$ac_prog", so it can be a program name with args.
1315 set dummy $ac_prog; ac_word=$2
1316 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1317 echo "configure:1318: checking for $ac_word" >&5
1318 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TEXINFO'+set}'`\" = set"; then
1319   echo $ac_n "(cached) $ac_c" 1>&6
1320 else
1321   if test -n "$YODL2TEXINFO"; then
1322   ac_cv_prog_YODL2TEXINFO="$YODL2TEXINFO" # Let the user override the test.
1323 else
1324   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1325   for ac_dir in $PATH; do
1326     test -z "$ac_dir" && ac_dir=.
1327     if test -f $ac_dir/$ac_word; then
1328       ac_cv_prog_YODL2TEXINFO="$ac_prog"
1329       break
1330     fi
1331   done
1332   IFS="$ac_save_ifs"
1333 fi
1334 fi
1335 YODL2TEXINFO="$ac_cv_prog_YODL2TEXINFO"
1336 if test -n "$YODL2TEXINFO"; then
1337   echo "$ac_t""$YODL2TEXINFO" 1>&6
1338 else
1339   echo "$ac_t""no" 1>&6
1340 fi
1341
1342 test -n "$YODL2TEXINFO" && break
1343 done
1344 test -n "$YODL2TEXINFO" || YODL2TEXINFO="-echo no yodl"
1345
1346         for ac_prog in yodl2txt
1347 do
1348 # Extract the first word of "$ac_prog", so it can be a program name with args.
1349 set dummy $ac_prog; ac_word=$2
1350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1351 echo "configure:1352: checking for $ac_word" >&5
1352 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TXT'+set}'`\" = set"; then
1353   echo $ac_n "(cached) $ac_c" 1>&6
1354 else
1355   if test -n "$YODL2TXT"; then
1356   ac_cv_prog_YODL2TXT="$YODL2TXT" # Let the user override the test.
1357 else
1358   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1359   for ac_dir in $PATH; do
1360     test -z "$ac_dir" && ac_dir=.
1361     if test -f $ac_dir/$ac_word; then
1362       ac_cv_prog_YODL2TXT="$ac_prog"
1363       break
1364     fi
1365   done
1366   IFS="$ac_save_ifs"
1367 fi
1368 fi
1369 YODL2TXT="$ac_cv_prog_YODL2TXT"
1370 if test -n "$YODL2TXT"; then
1371   echo "$ac_t""$YODL2TXT" 1>&6
1372 else
1373   echo "$ac_t""no" 1>&6
1374 fi
1375
1376 test -n "$YODL2TXT" && break
1377 done
1378 test -n "$YODL2TXT" || YODL2TXT="-echo no yodl"
1379
1380         YODL2LESS_DIR='$(bindir)/'
1381     else
1382         
1383         
1384         
1385         
1386         
1387         
1388         
1389         
1390         
1391         export STRIPROFF YODL YODL2HTML YODL2LATEX YODL2MAN YODL2MSLESS YODL2TEXINFO YODL2TXT
1392     fi
1393     if test "x$YODL" = "-echo no yodl"; then
1394         
1395     echo "configure: warning: Did not find YODL (Yodl is Yet Oneother Document Language, see http://www.cs.uu.nl/~hanwen/yodl)" 1>&2
1396     warn_b=yes
1397
1398     fi    
1399
1400
1401 # AM_PATH_GTK(1.0.0,,AC_MSG_ERROR([please install proper version of gtk]))
1402 # AM_PATH_GTK__(0.9.4,,AC_MSG_ERROR([please install proper version of gtk--]))
1403
1404 for ac_prog in makeinfo
1405 do
1406 # Extract the first word of "$ac_prog", so it can be a program name with args.
1407 set dummy $ac_prog; ac_word=$2
1408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1409 echo "configure:1410: checking for $ac_word" >&5
1410 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1411   echo $ac_n "(cached) $ac_c" 1>&6
1412 else
1413   if test -n "$MAKEINFO"; then
1414   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1415 else
1416   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1417   for ac_dir in $PATH; do
1418     test -z "$ac_dir" && ac_dir=.
1419     if test -f $ac_dir/$ac_word; then
1420       ac_cv_prog_MAKEINFO="$ac_prog"
1421       break
1422     fi
1423   done
1424   IFS="$ac_save_ifs"
1425 fi
1426 fi
1427 MAKEINFO="$ac_cv_prog_MAKEINFO"
1428 if test -n "$MAKEINFO"; then
1429   echo "$ac_t""$MAKEINFO" 1>&6
1430 else
1431   echo "$ac_t""no" 1>&6
1432 fi
1433
1434 test -n "$MAKEINFO" && break
1435 done
1436 test -n "$MAKEINFO" || MAKEINFO="error"
1437
1438 # AC_CHECK_SEARCH_RESULT($YODL2TEXINFO, yodl,  
1439 #    You should install Yodl 1.30.pre6 or better)
1440
1441
1442     trap '' 1 2 15
1443 cat > confcache <<\EOF
1444 # This file is a shell script that caches the results of configure
1445 # tests run on this system so they can be shared between configure
1446 # scripts and configure runs.  It is not useful on other systems.
1447 # If it contains results you don't want to keep, you may remove or edit it.
1448 #
1449 # By default, configure uses ./config.cache as the cache file,
1450 # creating it if it does not exist already.  You can give configure
1451 # the --cache-file=FILE option to use a different cache file; that is
1452 # what configure does when it calls configure scripts in
1453 # subdirectories, so they share the cache.
1454 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1455 # config.status only pays attention to the cache file if you give it the
1456 # --recheck option to rerun configure.
1457 #
1458 EOF
1459 # The following way of writing the cache mishandles newlines in values,
1460 # but we know of no workaround that is simple, portable, and efficient.
1461 # So, don't put newlines in cache variables' values.
1462 # Ultrix sh set writes to stderr and can't be redirected directly,
1463 # and sets the high bit in the cache file unless we assign to the vars.
1464 (set) 2>&1 |
1465   case `(ac_space=' '; set) 2>&1` in
1466   *ac_space=\ *)
1467     # `set' does not quote correctly, so add quotes (double-quote substitution
1468     # turns \\\\ into \\, and sed turns \\ into \).
1469     sed -n \
1470       -e "s/'/'\\\\''/g" \
1471       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1472     ;;
1473   *)
1474     # `set' quotes correctly as required by POSIX, so do not add quotes.
1475     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1476     ;;
1477   esac >> confcache
1478 if cmp -s $cache_file confcache; then
1479   :
1480 else
1481   if test -w $cache_file; then
1482     echo "updating cache $cache_file"
1483     cat confcache > $cache_file
1484   else
1485     echo "not updating unwritable cache $cache_file"
1486   fi
1487 fi
1488 rm -f confcache
1489
1490 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1491
1492 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1493 # Let make expand exec_prefix.
1494 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1495
1496 # Any assignment to VPATH causes Sun make to only execute
1497 # the first set of double-colon rules, so remove it if not needed.
1498 # If there is a colon in the path, we need to keep it.
1499 if test "x$srcdir" = x.; then
1500   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1501 fi
1502
1503 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1504
1505 DEFS=-DHAVE_CONFIG_H
1506
1507 # Without the "./", some shells look in PATH for config.status.
1508 : ${CONFIG_STATUS=./config.status}
1509
1510 echo creating $CONFIG_STATUS
1511 rm -f $CONFIG_STATUS
1512 cat > $CONFIG_STATUS <<EOF
1513 #! /bin/sh
1514 # Generated automatically by configure.
1515 # Run this file to recreate the current configuration.
1516 # This directory was configured as follows,
1517 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1518 #
1519 # $0 $ac_configure_args
1520 #
1521 # Compiler output produced by configure, useful for debugging
1522 # configure, is in ./config.log if it exists.
1523
1524 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1525 for ac_option
1526 do
1527   case "\$ac_option" in
1528   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1529     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1530     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1531   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1532     echo "$CONFIG_STATUS generated by autoconf version 2.12"
1533     exit 0 ;;
1534   -help | --help | --hel | --he | --h)
1535     echo "\$ac_cs_usage"; exit 0 ;;
1536   *) echo "\$ac_cs_usage"; exit 1 ;;
1537   esac
1538 done
1539
1540 ac_given_srcdir=$srcdir
1541
1542 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.hh:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1543 EOF
1544 cat >> $CONFIG_STATUS <<EOF
1545
1546 # Protect against being on the right side of a sed subst in config.status.
1547 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1548  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1549 $ac_vpsub
1550 $extrasub
1551 s%@CFLAGS@%$CFLAGS%g
1552 s%@CPPFLAGS@%$CPPFLAGS%g
1553 s%@CXXFLAGS@%$CXXFLAGS%g
1554 s%@DEFS@%$DEFS%g
1555 s%@LDFLAGS@%$LDFLAGS%g
1556 s%@LIBS@%$LIBS%g
1557 s%@exec_prefix@%$exec_prefix%g
1558 s%@prefix@%$prefix%g
1559 s%@program_transform_name@%$program_transform_name%g
1560 s%@bindir@%$bindir%g
1561 s%@sbindir@%$sbindir%g
1562 s%@libexecdir@%$libexecdir%g
1563 s%@datadir@%$datadir%g
1564 s%@sysconfdir@%$sysconfdir%g
1565 s%@sharedstatedir@%$sharedstatedir%g
1566 s%@localstatedir@%$localstatedir%g
1567 s%@libdir@%$libdir%g
1568 s%@includedir@%$includedir%g
1569 s%@oldincludedir@%$oldincludedir%g
1570 s%@infodir@%$infodir%g
1571 s%@mandir@%$mandir%g
1572 s%@stepmake@%$stepmake%g
1573 s%@package@%$package%g
1574 s%@PACKAGE@%$PACKAGE%g
1575 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
1576 s%@package_depth@%$package_depth%g
1577 s%@AUTOGENERATE@%$AUTOGENERATE%g
1578 s%@absolute_builddir@%$absolute_builddir%g
1579 s%@STATE_VECTOR@%$STATE_VECTOR%g
1580 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
1581 s%@host@%$host%g
1582 s%@host_alias@%$host_alias%g
1583 s%@host_cpu@%$host_cpu%g
1584 s%@host_vendor@%$host_vendor%g
1585 s%@host_os@%$host_os%g
1586 s%@MAKE@%$MAKE%g
1587 s%@FIND@%$FIND%g
1588 s%@TAR@%$TAR%g
1589 s%@BASH@%$BASH%g
1590 s%@PYTHON@%$PYTHON%g
1591 s%@DOTEXE@%$DOTEXE%g
1592 s%@ZIP@%$ZIP%g
1593 s%@LN@%$LN%g
1594 s%@LN_S@%$LN_S%g
1595 s%@INSTALL@%$INSTALL%g
1596 s%@PATHSEP@%$PATHSEP%g
1597 s%@DIRSEP@%$DIRSEP%g
1598 s%@DIR_DATADIR@%$DIR_DATADIR%g
1599 s%@STRIPROFF@%$STRIPROFF%g
1600 s%@YODL@%$YODL%g
1601 s%@YODL2HTML@%$YODL2HTML%g
1602 s%@YODL2LATEX@%$YODL2LATEX%g
1603 s%@YODL2MAN@%$YODL2MAN%g
1604 s%@YODL2MSLESS@%$YODL2MSLESS%g
1605 s%@YODL2TEXINFO@%$YODL2TEXINFO%g
1606 s%@YODL2TXT@%$YODL2TXT%g
1607 s%@YODL2LESS_DIR@%$YODL2LESS_DIR%g
1608 s%@MAKEINFO@%$MAKEINFO%g
1609
1610 CEOF
1611 EOF
1612
1613 cat >> $CONFIG_STATUS <<\EOF
1614
1615 # Split the substitutions into bite-sized pieces for seds with
1616 # small command number limits, like on Digital OSF/1 and HP-UX.
1617 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1618 ac_file=1 # Number of current file.
1619 ac_beg=1 # First line for current file.
1620 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1621 ac_more_lines=:
1622 ac_sed_cmds=""
1623 while $ac_more_lines; do
1624   if test $ac_beg -gt 1; then
1625     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1626   else
1627     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1628   fi
1629   if test ! -s conftest.s$ac_file; then
1630     ac_more_lines=false
1631     rm -f conftest.s$ac_file
1632   else
1633     if test -z "$ac_sed_cmds"; then
1634       ac_sed_cmds="sed -f conftest.s$ac_file"
1635     else
1636       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1637     fi
1638     ac_file=`expr $ac_file + 1`
1639     ac_beg=$ac_end
1640     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1641   fi
1642 done
1643 if test -z "$ac_sed_cmds"; then
1644   ac_sed_cmds=cat
1645 fi
1646 EOF
1647
1648 cat >> $CONFIG_STATUS <<EOF
1649
1650 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
1651 EOF
1652 cat >> $CONFIG_STATUS <<\EOF
1653 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1654   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1655   case "$ac_file" in
1656   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1657        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1658   *) ac_file_in="${ac_file}.in" ;;
1659   esac
1660
1661   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1662
1663   # Remove last slash and all that follows it.  Not all systems have dirname.
1664   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1665   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1666     # The file is in a subdirectory.
1667     test ! -d "$ac_dir" && mkdir "$ac_dir"
1668     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1669     # A "../" for each directory in $ac_dir_suffix.
1670     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1671   else
1672     ac_dir_suffix= ac_dots=
1673   fi
1674
1675   case "$ac_given_srcdir" in
1676   .)  srcdir=.
1677       if test -z "$ac_dots"; then top_srcdir=.
1678       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1679   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1680   *) # Relative path.
1681     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1682     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1683   esac
1684
1685
1686   echo creating "$ac_file"
1687   rm -f "$ac_file"
1688   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1689   case "$ac_file" in
1690   *Makefile*) ac_comsub="1i\\
1691 # $configure_input" ;;
1692   *) ac_comsub= ;;
1693   esac
1694
1695   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1696   sed -e "$ac_comsub
1697 s%@configure_input@%$configure_input%g
1698 s%@srcdir@%$srcdir%g
1699 s%@top_srcdir@%$top_srcdir%g
1700 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1701 fi; done
1702 rm -f conftest.s*
1703
1704 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1705 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1706 #
1707 # ac_d sets the value in "#define NAME VALUE" lines.
1708 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1709 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1710 ac_dC='\3'
1711 ac_dD='%g'
1712 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1713 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1714 ac_uB='\([      ]\)%\1#\2define\3'
1715 ac_uC=' '
1716 ac_uD='\4%g'
1717 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1718 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1719 ac_eB='$%\1#\2define\3'
1720 ac_eC=' '
1721 ac_eD='%g'
1722
1723 if test "${CONFIG_HEADERS+set}" != set; then
1724 EOF
1725 cat >> $CONFIG_STATUS <<EOF
1726   CONFIG_HEADERS="$CONFIGFILE.hh:config.hh.in"
1727 EOF
1728 cat >> $CONFIG_STATUS <<\EOF
1729 fi
1730 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1731   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1732   case "$ac_file" in
1733   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1734        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1735   *) ac_file_in="${ac_file}.in" ;;
1736   esac
1737
1738   echo creating $ac_file
1739
1740   rm -f conftest.frag conftest.in conftest.out
1741   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1742   cat $ac_file_inputs > conftest.in
1743
1744 EOF
1745
1746 # Transform confdefs.h into a sed script conftest.vals that substitutes
1747 # the proper values into config.h.in to produce config.h.  And first:
1748 # Protect against being on the right side of a sed subst in config.status.
1749 # Protect against being in an unquoted here document in config.status.
1750 rm -f conftest.vals
1751 cat > conftest.hdr <<\EOF
1752 s/[\\&%]/\\&/g
1753 s%[\\$`]%\\&%g
1754 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1755 s%ac_d%ac_u%gp
1756 s%ac_u%ac_e%gp
1757 EOF
1758 sed -n -f conftest.hdr confdefs.h > conftest.vals
1759 rm -f conftest.hdr
1760
1761 # This sed command replaces #undef with comments.  This is necessary, for
1762 # example, in the case of _POSIX_SOURCE, which is predefined and required
1763 # on some systems where configure will not decide to define it.
1764 cat >> conftest.vals <<\EOF
1765 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1766 EOF
1767
1768 # Break up conftest.vals because some shells have a limit on
1769 # the size of here documents, and old seds have small limits too.
1770
1771 rm -f conftest.tail
1772 while :
1773 do
1774   ac_lines=`grep -c . conftest.vals`
1775   # grep -c gives empty output for an empty file on some AIX systems.
1776   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1777   # Write a limited-size here document to conftest.frag.
1778   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1779   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1780   echo 'CEOF
1781   sed -f conftest.frag conftest.in > conftest.out
1782   rm -f conftest.in
1783   mv conftest.out conftest.in
1784 ' >> $CONFIG_STATUS
1785   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1786   rm -f conftest.vals
1787   mv conftest.tail conftest.vals
1788 done
1789 rm -f conftest.vals
1790
1791 cat >> $CONFIG_STATUS <<\EOF
1792   rm -f conftest.frag conftest.h
1793   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
1794   cat conftest.in >> conftest.h
1795   rm -f conftest.in
1796   if cmp -s $ac_file conftest.h 2>/dev/null; then
1797     echo "$ac_file is unchanged"
1798     rm -f conftest.h
1799   else
1800     # Remove last slash and all that follows it.  Not all systems have dirname.
1801       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1802       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1803       # The file is in a subdirectory.
1804       test ! -d "$ac_dir" && mkdir "$ac_dir"
1805     fi
1806     rm -f $ac_file
1807     mv conftest.h $ac_file
1808   fi
1809 fi; done
1810
1811 EOF
1812 cat >> $CONFIG_STATUS <<EOF
1813
1814 EOF
1815 cat >> $CONFIG_STATUS <<\EOF
1816
1817 exit 0
1818 EOF
1819 chmod +x $CONFIG_STATUS
1820 rm -fr confdefs* $ac_clean_files
1821 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1822
1823
1824     rm -f GNUmakefile
1825     cp make/toplevel.make.in ./GNUmakefile
1826     chmod 444 GNUmakefile
1827