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