1 dnl aclocal.m4 -*-shell-script-*-
2 dnl StepMake subroutines for configure.ac
5 ### mostly interal macros
7 # Get full path of executable ($1)
8 AC_DEFUN(STEPMAKE_GET_EXECUTABLE, [
9 ## which doesn't work in ash, if /usr/bin/which isn't installed
10 ## type -p doesn't work in ash
11 ## command -v doesn't work in zsh
12 ## command -v "$1" 2>&1
13 ## this test should work in ash, bash, pdksh (ksh), zsh
14 type -p $1 2>/dev/null | tail -n 1 | awk '{print $NF}'
18 # Get version string from executable ($1)
19 AC_DEFUN(STEPMAKE_GET_VERSION, [
20 ## "$1" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
23 ## Workaround for broken Debian gcc version string:
24 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
26 ## -V: Workaround for python
28 changequote(<<, >>)#dnl
30 ## Assume and hunt for dotted version multiplet.
31 ## use eval trickery, because we cannot use multi-level $() instead of ``
32 ## for compatibility reasons.
34 ## grab the first version number in --version output.
35 eval _ver=\"\`("$1" --version || "$1" -V) 2>&1 |
36 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
39 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
40 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
43 if test -z "$_ver"; then
44 ## If empty, try date [fontforge]
45 eval _ver=\"\`("$1" --version || "$1" -V) 2>&1 | grep '[0-9]\{6,8\}' \
47 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
53 # Calculate simplistic numeric version from version string ($1)
54 # As yet, we have no need for something more elaborate.
55 AC_DEFUN(STEPMAKE_NUMERIC_VERSION, [
58 if ([$]3) {three = [$]3}
61 {printf "%.0f\n", [$]1*1000000 + [$]2*1000 + three}'
65 # Add item ($2) to list ($1, one of 'OPTIONAL', 'REQUIRED')
66 AC_DEFUN(STEPMAKE_ADD_ENTRY, [
67 eval "$1"=\"`eval echo \"'$'$1\" \"$2\"`\"
70 # Check if tested program ($2) was found ($1).
71 # If not, add entry to missing-list ($3, one of 'OPTIONAL', 'REQUIRED').
72 # We could abort here if a 'REQUIRED' program is not found
73 AC_DEFUN(STEPMAKE_OPTIONAL_REQUIRED, [
74 STEPMAKE_CHECK_SEARCH_RESULT($1)
75 if test $? -ne 0; then
76 STEPMAKE_ADD_ENTRY($3, $2)
77 if test "$3" = "REQUIRED"; then
78 command="echo ERROR: $2 not found"
79 # abort configure process here?
81 command="- echo $2 not found"
91 # Return if tested proram ($1) was found (true) or not (false).
92 AC_DEFUN(STEPMAKE_CHECK_SEARCH_RESULT, [
93 r="`eval echo '$'"$1"`"
94 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"$1"`' : '.*\(echo\)' > /dev/null; then
97 ##STEPMAKE_WARN(cannot find $2. $3)
103 # Check version of program ($1)
104 # If version ($4: optional argument, supply if version cannot be
105 # parsed using --version or -V ) is smaller than requested ($3), add
106 # entry to missing-list ($2, one of 'OPTIONAL', 'REQUIRED').
107 AC_DEFUN(STEPMAKE_CHECK_VERSION, [
108 r="`eval echo '$'"$1"`"
109 AC_MSG_CHECKING([$r version])
110 exe=`STEPMAKE_GET_EXECUTABLE($r)`
111 if test -n "$4"; then
114 ver=`STEPMAKE_GET_VERSION($exe)`
116 num=`STEPMAKE_NUMERIC_VERSION($ver)`
117 req=`STEPMAKE_NUMERIC_VERSION($3)`
118 AC_MSG_RESULT([$ver])
119 if test "$num" -lt "$req"; then
120 STEPMAKE_ADD_ENTRY($2, ["$r >= $3 (installed: $ver)"])
122 vervar="`echo $1 | tr '[a-z]' '[A-Z]'`_VERSION"
123 eval `echo $vervar=$num`
124 ## AC_SUBST(`eval echo $vervar`)
127 # Check version of program ($1)
128 # If version is greater than or equals unsupported ($3),
129 # add entry to unsupported list ($2, 'UNSUPPORTED')
130 AC_DEFUN(STEPMAKE_CHECK_VERSION_UNSUPPORTED, [
131 r="`eval echo '$'"$1"`"
132 AC_MSG_CHECKING([$r version])
133 exe=`STEPMAKE_GET_EXECUTABLE($r)`
134 ver=`STEPMAKE_GET_VERSION($exe)`
135 num=`STEPMAKE_NUMERIC_VERSION($ver)`
136 sup=`STEPMAKE_NUMERIC_VERSION($3)`
137 AC_MSG_RESULT([$ver])
138 if test "$num" -ge "$sup"; then
139 STEPMAKE_ADD_ENTRY($2, ["$r < $3 (installed: $ver)"])
143 ### Macros to build configure.ac
146 AC_DEFUN(STEPMAKE_BIBTEX2HTML, [
147 STEPMAKE_PROGS(BIBTEX2HTML, bibtex2html bib2html, $1)
148 if test "$BIBTEX2HTML" = "bib2html"; then
149 BIBTEX2HTML_FLAGS='$< $(@)'
151 BIBTEX2HTML_FLAGS='-o $(@D)/$(*F) $<'
153 AC_SUBST(BIBTEX2HTML)
154 AC_SUBST(BIBTEX2HTML_FLAGS)
158 AC_DEFUN(STEPMAKE_BISON, [
159 # ugh, automake: we want (and check for) bison
162 STEPMAKE_PROGS(BISON, bison, $1)
164 # urg. should test functionality rather than version.
165 if test "$BISON" = "bison" -a -n "$2"; then
166 STEPMAKE_CHECK_VERSION(BISON, $1, $2)
170 AC_DEFUN(STEPMAKE_COMPILE_BEFORE, [
171 # -O is necessary to get inlining
173 CXXFLAGS=${CXXFLAGS-$CFLAGS}
174 LDFLAGS=${LDFLAGS-""}
180 AC_ARG_ENABLE(debugging,
181 [AS_HELP_STRING([--enable-debugging],
182 [compile with debugging info. Default: on])],
183 [debug_b=$enableval])
185 AC_ARG_ENABLE(optimising,
186 [AS_HELP_STRING([--enable-optimising],
187 [compile with optimising. Default: on])],
188 [optimise_b=$enableval])
190 AC_ARG_ENABLE(profiling,
191 [AS_HELP_STRING([--enable-profiling],
192 [compile with gprof support. Default: off])],
193 [profile_b=$enableval])
196 [AS_HELP_STRING([--enable-pipe],
197 [compile with -pipe. Default: on])],
200 if test "$optimise_b" = yes; then
202 DEFINES="$DEFINES -DNDEBUG"
203 OPTIMIZE=" -O2 -finline-functions"
206 if test $profile_b = yes; then
208 OPTIMIZE="$OPTIMIZE -pg"
211 if test $debug_b = yes; then
212 OPTIMIZE="$OPTIMIZE -g"
216 AC_DEFUN(STEPMAKE_COMPILE, [
218 AC_REQUIRE([STEPMAKE_COMPILE_BEFORE])
219 AC_REQUIRE([AC_PROG_CC])
221 STEPMAKE_OPTIONAL_REQUIRED(CC, cc, $1)
225 # If -pipe requested, test if it works and add to CFLAGS.
226 if test "$pipe_b" = yes; then
227 save_cflags="$CFLAGS"
228 CFLAGS=" -pipe $CFLAGS";
229 AC_CACHE_CHECK([whether compiler understands -pipe],
230 [stepmake_cv_cflags_pipe],
231 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[/* -pipe test */]])],
232 [stepmake_cv_cflags_pipe=yes],
233 [stepmake_cv_cflags_pipe=no]))
235 if test $stepmake_cv_cflags_pipe = yes; then
236 OPTIMIZE="$OPTIMIZE -pipe"
240 CFLAGS="$CFLAGS $OPTIMIZE"
241 CPPFLAGS=${CPPFLAGS-""}
243 AC_MSG_CHECKING([for IEEE-conformance compiler flags])
244 save_cflags="$CFLAGS"
247 dnl should do compile test?
248 AC_MSG_RESULT(-mieee)
249 CFLAGS=" -mieee $CFLAGS"
252 AC_MSG_RESULT([none])
256 AC_SUBST(cross_compiling)
264 AC_DEFUN(STEPMAKE_CXX, [
266 STEPMAKE_OPTIONAL_REQUIRED(CXX, c++, $1)
268 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
277 AC_DEFUN(STEPMAKE_CXXTEMPLATE, [
278 AC_CACHE_CHECK([whether explicit instantiation is needed],
279 stepmake_cv_need_explicit_instantiation,
280 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
281 template <class T> struct foo { static int baz; };
282 template <class T> int foo<T>::baz = 1;
283 ]], [[ return foo<int>::baz; ]])],[stepmake_cv_need_explicit_instantiation=no],[stepmake_cv_need_explicit_instantiation=yes]))
284 if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
285 AC_DEFINE(NEED_EXPLICIT_INSTANTIATION)
289 AC_DEFUN(STEPMAKE_GXXCODEGENBUG, [
290 AC_MSG_CHECKING([options for known g++ bugs])
291 case "$GXX:$CXX_VERSION" in
293 AC_MSG_RESULT([-fno-optimize-sibling-calls (tail call bug)])
294 CXXFLAGS="$CXXFLAGS -fno-optimize-sibling-calls"
297 AC_MSG_RESULT([-fno-tree-vrp (comparison bug)])
298 CXXFLAGS="$CXXFLAGS -fno-tree-vrp"
300 *) AC_MSG_RESULT([none])
306 AC_DEFUN(STEPMAKE_DATADIR, [
308 if test "$prefix" = "NONE"; then
309 presome=${ac_default_prefix}
312 build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
314 DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${presome}/share!"`
315 DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
316 BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
319 AC_SUBST(datarootdir)
320 AC_SUBST(build_package_datadir)
321 AC_DEFINE_UNQUOTED(DATADIR, ["${DATADIR}"])
322 AC_DEFINE_UNQUOTED(BUILD_PACKAGE_DATADIR, ["${BUILD_PACKAGE_DATADIR}"])
325 ## ugh: cut & paste programming from datadir.
326 AC_DEFUN(STEPMAKE_LIBDIR, [
327 presome=${exec_prefix}
328 if test "$presome" = "NONE"; then
331 if test "$presome" = "NONE"; then
332 presome=${ac_default_prefix}
335 build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
337 LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
338 BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
341 AC_SUBST(build_package_libdir)
342 AC_DEFINE_UNQUOTED(LIBDIR, ["${LIBDIR}"])
343 AC_DEFINE_UNQUOTED(BUILD_PACKAGE_LIBDIR, ["${BUILD_PACKAGE_LIBDIR}"])
347 AC_DEFUN(STEPMAKE_PREFIX_EXPAND_FIXUP, [
348 # undo expanding of explicit --infodir=/usr/share
349 # to ease install-time override with prefix=...
350 strip=`echo $includedir | eval sed s@^$prefix@@`
351 if test "$includedir" = "`eval echo $prefix$strip`"; then
352 includedir='${prefix}'$strip''
354 strip=`echo $libdir | eval sed s@^$exec_prefix@@`
355 if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
356 libdir='${exec_prefix}'$strip''
358 strip=`echo $infodir | eval sed s@^$datarootdir@@`
359 if test "$infodir" = "`eval echo $datarootdir$strip`"; then
360 infodir='${datarootdir}'$strip''
362 strip=`echo $mandir | eval sed s@^$datarootdir@@`
363 if test "$mandir" = "`eval echo $datarootdir$strip`"; then
364 mandir='${datarootdir}'$strip''
369 AC_DEFUN(STEPMAKE_END, [
370 STEPMAKE_PREFIX_EXPAND_FIXUP
375 AC_CONFIG_FILES([$CONFIGFILE.make:config.make.in])
378 if test -n "$OPTIONAL"; then
380 echo "WARNING: Please consider installing optional programs or files: $OPTIONAL"
383 if test -n "$REQUIRED"; then
385 echo "ERROR: Please install required programs: $REQUIRED"
388 if test -n "$UNSUPPORTED"; then
390 echo "ERROR: Please use older version of programs: $UNSUPPORTED"
393 if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
395 echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
396 if test -f config.cache ; then
397 echo "Remove config.cache before rerunning ./configure"
401 if test -n "$REQUIRED$UNSUPPORTED"; then
402 rm -f $srcdir/GNUmakefile
406 # regular in-place build
407 # test for srcdir_build = yes ?
408 if test "$srcdir_build" = "yes"; then
409 rm -f $srcdir/GNUmakefile
410 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
411 chmod 444 $srcdir/GNUmakefile
413 if test -f $srcdir/GNUmakefile; then
415 Source directory already configured. Please clean the source directory
417 make -C $srcdir distclean
424 abssrcdir="`cd $srcdir; pwd`"
426 for d in 2 3 4 5 ; do
427 for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name GNUmakefile`; do
430 # source is below build directory, always copy
433 case "$abssrcdir/${mf#./}" in
435 # find descended into build directory, don't copy
440 cat <<EOF | $PYTHON - > $mf
441 print 'depth=' + ('../' * ( $d-1 ) )
442 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
443 print 'include \$(configure-srcdir)/$mf'
444 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
447 for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
450 # source is below build directory, always copy
453 case "$abssrcdir/${mf#./}" in
455 # find descended into build directory, don't copy
460 cat <<EOF | $PYTHON - > $mf
461 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
462 print 'include \$(configure-srcdir)/$mf'
468 cat <<EOF > GNUmakefile
470 include config\$(if \$(conf),-\$(conf),).make
471 include \$(configure-srcdir)/GNUmakefile.in
473 chmod 444 GNUmakefile
479 AC_DEFUN(STEPMAKE_FLEX, [
480 # ugh, automake: we want (and check for) flex
482 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
486 ac_cv_prog_lex_root=lex.yy
487 STEPMAKE_PROGS(FLEX, flex, $1)
491 AC_DEFUN(STEPMAKE_FLEXLEXER, [
492 AC_CHECK_HEADERS([FlexLexer.h],[true],[false])
493 if test $? -ne 0; then
494 warn='FlexLexer.h (flex package)'
495 STEPMAKE_ADD_ENTRY($1, $warn)
497 # check for yyFlexLexer.yy_current_buffer,
498 # in 2.5.4 <= flex < 2.5.29
499 AC_CACHE_CHECK([for yyFlexLexer.yy_current_buffer],
500 [stepmake_cv_flexlexer_yy_current_buffer],
501 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
503 #include <FlexLexer.h>
504 class yy_flex_lexer: public yyFlexLexer
509 yy_current_buffer = 0;
513 [stepmake_cv_flexlexer_yy_current_buffer=yes],
514 [stepmake_cv_flexlexer_yy_current_buffer=no]))
515 if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
516 AC_DEFINE(HAVE_FLEXLEXER_YY_CURRENT_BUFFER, 1, [Define to 1 if yyFlexLexer has yy_current_buffer.])
522 AC_DEFUN(STEPMAKE_FLEXLEXER_LOCATION, [
523 AC_MSG_CHECKING([FlexLexer.h location])
526 cat <<EOF > conftest.cc
528 #include <FlexLexer.h>
530 FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
531 sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
532 sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
534 AC_SUBST(FLEXLEXER_FILE)
535 AC_MSG_RESULT($FLEXLEXER_FILE)
538 AC_DEFUN(STEPMAKE_GCC_OR_CLANG, [
540 if test "$HAS_CLANG" = "no"; then
541 if test "$GCC" = "yes"; then
542 STEPMAKE_CHECK_VERSION(CC, $1, $2)
544 warn="$CC (Please install *GNU* cc)"
545 STEPMAKE_ADD_ENTRY($1, $warn)
548 # no else, we're fine with any clang
551 AC_DEFUN(STEPMAKE_GETTEXT, [
553 if test "$prefix" = "NONE"; then
554 presome=${ac_default_prefix}
556 LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
559 AC_DEFINE_UNQUOTED(LOCALEDIR, ["${LOCALEDIR}"])
560 AC_CHECK_LIB(intl, gettext)
561 AC_CHECK_FUNCS(gettext)
565 # Check for guile, between minimum ($2) and maximum version ($3).
566 # If missing, add entry to missing-list ($1, one of 'OPTIONAL', 'REQUIRED')
567 AC_DEFUN(STEPMAKE_GUILE, [
568 AC_MSG_CHECKING([for guile])
571 for r in $GUILE guile guile2 guile2.0 guile-2.0 guile1 guile1.9 guile1.8 guile-1 guile-1.9 guile-1.8; do
572 exe=`STEPMAKE_GET_EXECUTABLE($r)`
573 if ! $exe --version > /dev/null 2>&1 ; then
576 ver=`STEPMAKE_GET_VERSION($exe)`
577 num=`STEPMAKE_NUMERIC_VERSION($ver)`
578 req=`STEPMAKE_NUMERIC_VERSION($2)`
579 sup=`STEPMAKE_NUMERIC_VERSION($3)`
580 if test -n "$2" && test "$num" -lt "$req"; then
581 guile=["$r >= $2 (installed: $ver)"]
584 if test -n "$3" && test "$num" -ge "$sup"; then
585 guile=["$r < $3 (installed: $ver)"]
594 AC_MSG_RESULT([$found])
595 if test "$found" != "no"; then
596 AC_MSG_CHECKING([$guile version])
597 AC_MSG_RESULT([$ver])
600 STEPMAKE_ADD_ENTRY($1, $guile)
602 STEPMAKE_PATH_PROG(GUILE, $GUILE)
606 # STEPMAKE_GUILE_FLAGS --- set flags for compiling and linking with Guile
608 # This macro runs the guile-config script, installed with Guile,
609 # to find out where Guile's header files and libraries are
610 # installed. It sets two variables, marked for substitution, as
613 # GUILE_CFLAGS --- flags to pass to a C or C++ compiler to build
614 # code that uses Guile header files. This is almost
615 # always just a -I flag.
617 # GUILE_LDFLAGS --- flags to pass to the linker to link a
618 # program against Guile. This includes -lguile for
619 # the Guile library itself, any libraries that Guile
620 # itself requires (like -lqthreads), and so on. It may
621 # also include a -L flag to tell the compiler where to
622 # find the libraries.
624 AC_DEFUN([STEPMAKE_GUILE_FLAGS], [
625 exe=`STEPMAKE_GET_EXECUTABLE($guile_config)`
626 if test -x $exe; then
627 AC_MSG_CHECKING([guile compile flags])
628 GUILE_CFLAGS="`$guile_config compile`"
629 AC_MSG_RESULT($GUILE_CFLAGS)
630 AC_MSG_CHECKING([guile link flags])
631 GUILE_LDFLAGS="`$guile_config link`"
632 AC_MSG_RESULT($GUILE_LDFLAGS)
634 AC_SUBST(GUILE_CFLAGS)
635 AC_SUBST(GUILE_LDFLAGS)
639 # Check for guile-config, between minimum ($2) and maximum version ($3).
640 # If missing, add entry to missing-list ($1, one of 'OPTIONAL', 'REQUIRED')
641 AC_DEFUN(STEPMAKE_GUILE_DEVEL, [
642 ## First, let's just see if we can find Guile at all.
643 test -n "$target_alias" && target_guile_config=$target_alias-guile-config
644 test -n "$host_alias" && host_guile_config=$host_alias-guile-config
645 AC_MSG_CHECKING([for guile-config])
646 guile_config="guile-config"
648 for r in $GUILE_CONFIG $target_guile_config $host_guile_config $build_guile_config guile-config guile2-config guile2.0-config guile-2.0-config guile1-config guile1.9-config guile1.8-config guile-1-config guile-1.9-config guile-1.8-config; do
649 exe=`STEPMAKE_GET_EXECUTABLE($r)`
650 if ! $exe --version > /dev/null 2>&1 ; then
653 ver=`STEPMAKE_GET_VERSION($exe)`
654 num=`STEPMAKE_NUMERIC_VERSION($ver)`
655 req=`STEPMAKE_NUMERIC_VERSION($2)`
656 sup=`STEPMAKE_NUMERIC_VERSION($3)`
657 if test -n "$2" -a "$num" -lt "$req"; then
658 guile_config=["$r >= $2 (installed: $ver)"]
661 if test -n "$3" -a "$num" -ge "$sup"; then
662 guile_config=["$r < $3 (installed: $ver)"]
671 AC_MSG_RESULT([$found])
672 if test "$found" != "no"; then
673 AC_MSG_CHECKING([$guile_config version])
674 AC_MSG_RESULT([$ver])
677 STEPMAKE_ADD_ENTRY($1, "$guile_config (guile-devel, guile-dev or libguile-dev package) or guile1-config (guile1-devel package)")
680 AC_SUBST(GUILE_CONFIG)
683 changequote(<<, >>)#dnl
684 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
685 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
686 GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
687 changequote([, ])#dnl
689 save_CPPFLAGS="$CPPFLAGS"
691 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
692 LIBS="$GUILE_LDFLAGS $LIBS"
693 AC_CHECK_HEADERS([libguile.h])
694 AC_CHECK_LIB(guile, scm_boot_guile)
695 AC_CHECK_FUNCS(scm_boot_guile,,libguile_b=no)
696 if test "$libguile_b" = "no"; then
697 warn='libguile (libguile-dev, guile-devel or guile-dev
699 STEPMAKE_ADD_ENTRY(REQUIRED, $warn)
701 CPPFLAGS="$save_CPPFLAGS"
703 AC_DEFINE_UNQUOTED(GUILE_MAJOR_VERSION, $GUILE_MAJOR_VERSION)
704 AC_DEFINE_UNQUOTED(GUILE_MINOR_VERSION, $GUILE_MINOR_VERSION)
705 AC_DEFINE_UNQUOTED(GUILE_PATCH_LEVEL, $GUILE_PATCH_LEVEL)
709 AC_DEFUN(STEPMAKE_DLOPEN, [
710 AC_CHECK_LIB(dl, dlopen)
711 AC_CHECK_FUNCS(dlopen)
714 AC_DEFUN(STEPMAKE_HAS_CLANG, [
719 ], HAS_CLANG=yes, HAS_CLANG=no)
722 AC_DEFUN(STEPMAKE_GXX_OR_CLANG, [
724 if test "$HAS_CLANG" = "no"; then
725 if test "$GXX" = "yes"; then
726 STEPMAKE_CHECK_VERSION(CXX, $1, $2)
728 warn="$CXX (Please install *GNU* c++)"
729 STEPMAKE_ADD_ENTRY($1, $warn)
732 # no else, we're fine with any clang
736 AC_DEFUN(STEPMAKE_INIT, [
739 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
740 MICRO_VERSION=$PATCH_LEVEL
741 TOPLEVEL_VERSION=$FULL_VERSION
742 if test x$MY_PATCH_LEVEL != x; then
743 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
745 VERSION=$FULL_VERSION
746 export MAJOR_VERSION MINOR_VERSION PATCH_LEVEL
747 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
748 changequote(<<, >>)#dnl
749 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
750 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
751 changequote([, ])#dnl
753 # No versioning on directory names of sub-packages
755 stepmake=${datadir}/stepmake
757 if test "$prefix" = "NONE"; then
758 presome=${ac_default_prefix}
760 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
762 # urg, how is this supposed to work?
763 if test "$program_prefix" = "NONE"; then
766 if test "$program_suffix" = "NONE"; then
770 AC_MSG_CHECKING(Package)
771 if test "$PACKAGE" = "STEPMAKE"; then
772 AC_MSG_RESULT(Stepmake package!)
774 AC_MSG_CHECKING(builddir)
776 ugh_ugh_autoconf250_builddir="`pwd`"
778 if test "$srcdir" = "."; then
782 package_builddir="`dirname $ugh_ugh_autoconf250_builddir`"
783 package_srcdir="`dirname $srcdir`"
785 AC_MSG_RESULT($ugh_ugh_autoconf250_builddir)
787 (cd stepmake 2>/dev/null || mkdir stepmake)
788 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
791 AC_MSG_RESULT($PACKAGE)
793 AC_MSG_CHECKING(builddir)
794 ugh_ugh_autoconf250_builddir="`pwd`"
796 here_dir=$(cd . && pwd)
797 full_src_dir=$(cd $srcdir && pwd)
799 if test "$full_src_dir" = "$here_dir"; then
804 AC_MSG_RESULT($ugh_ugh_autoconf250_builddir)
806 AC_MSG_CHECKING(for stepmake)
807 # Check for installed stepmake
808 if test -d $stepmake; then
809 AC_MSG_RESULT($stepmake)
811 stepmake="`cd $srcdir/stepmake; pwd`"
812 AC_MSG_RESULT([$srcdir/stepmake ($datadir/stepmake not found)])
816 AC_SUBST(ugh_ugh_autoconf250_builddir)
818 # Use absolute directory for non-srcdir builds, so that build
820 if test "$srcdir_build" = "no" ; then
821 srcdir="`cd $srcdir; pwd`"
828 AC_SUBST(PACKAGE_NAME)
830 AC_SUBST(MAJOR_VERSION)
831 AC_SUBST(MINOR_VERSION)
832 AC_SUBST(MICRO_VERSION)
834 # stepmake nonstandard names
835 AC_SUBST(PATCH_LEVEL)
836 AC_SUBST(TOPLEVEL_VERSION)
838 # We don't need the upper case variant,
839 # so stick to macros are uppercase convention.
840 # AC_DEFINE_UNQUOTED(package, ["${package}"])
841 # AC_DEFINE_UNQUOTED(PACKAGE, ["${PACKAGE}"])
842 AC_DEFINE_UNQUOTED(PACKAGE, ["${package}"])
843 AC_DEFINE_UNQUOTED(PACKAGE_NAME, ["${PACKAGE_NAME}"])
844 AC_DEFINE_UNQUOTED(TOPLEVEL_VERSION, ["${FULL_VERSION}"])
846 if test -z "$package_depth"; then
849 package_depth="../$package_depth"
852 AC_SUBST(package_depth)
854 AUTOGENERATE="This file was automatically generated by configure"
855 AC_SUBST(AUTOGENERATE)
858 AC_ARG_ENABLE(config,
859 [AS_HELP_STRING([--enable-config=CONF],
860 [put settings in config-CONF.make and config-CONF.h;
861 do `make conf=CONF' to get output in ./out-CONF])],
862 [CONFIGURATION=$enableval])
866 test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
867 CONFIGFILE=config$CONFIGSUFFIX
868 AC_SUBST(CONFIGSUFFIX)
871 STEPMAKE_PROGS(MAKE, gmake make, REQUIRED)
872 STEPMAKE_PROGS(FIND, find, REQUIRED)
874 STEPMAKE_PROGS(TAR, tar, REQUIRED)
876 if test "$(echo 2)" != "2" ||
877 test "x`uname`" = "xHP-UX"; then
878 AC_PATH_PROG(KSH, ksh, /bin/ksh)
879 AC_PATH_PROG(BASH, bash, $KSH)
880 STEPMAKE_WARN(avoiding buggy /bin/sh)
881 AC_PATH_PROG(SHELL, bash, $KSH)
884 AC_PATH_PROG(BASH, bash, $SHELL)
888 STEPMAKE_PYTHON(REQUIRED, 1.5, 3.0)
890 if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
891 $MAKE -v 2> /dev/null | grep GNU > /dev/null
892 if test "$?" = 1; then
893 warn='make (Please install *GNU* make)'
894 # STEPMAKE_WARN($warn)
895 STEPMAKE_ADD_ENTRY(REQUIRED, $warn)
906 AC_SUBST(program_prefix)
907 AC_SUBST(program_suffix)
911 AC_DEFINE_UNQUOTED(DIRSEP, ['${DIRSEP}'])
912 AC_DEFINE_UNQUOTED(PATHSEP, ['${PATHSEP}'])
922 AC_DEFUN(STEPMAKE_LIB, [
923 STEPMAKE_PROGS(AR, ar, $1)
925 STEPMAKE_OPTIONAL_REQUIRED(RANLIB, ranlib, $1)
929 AC_DEFUN(STEPMAKE_LIBTOOL, [
931 # **Never** try to set library version numbers so that they correspond
932 # to the release number of your package. This is an abuse that only
933 # fosters misunderstanding of the purpose of library versions.
935 REVISION=$PATCH_LEVEL
936 # CURRENT=$MINOR_VERSION
937 CURRENT=`expr $MINOR_VERSION + 1`
938 # AGE=`expr $MAJOR_VERSION + 1`
946 AC_DEFUN(STEPMAKE_LOCALE, [
951 AC_ARG_WITH(localedir,
952 [AS_HELP_STRING([--with-localedir=DIR],
953 [location of locales. Default: PREFIX/share/locale])],
954 localedir=$with_localedir,
955 localedir='${prefix}/share/locale')
958 [AS_HELP_STRING([--with-lang=LANG],
959 [use LANG as language to emit messages])],
963 AC_MSG_CHECKING(language)
965 En* | en* | Am* | am* | US* | us*)
967 NL | nl | Du* | du* | Ned* | ned*)
976 if test "$lang" = "unknown" ; then
977 STEPMAKE_WARN($language not supported; available are: $ALL_LINGUAS)
983 AC_DEFUN(STEPMAKE_MAKEINFO, [
984 STEPMAKE_PROGS(MAKEINFO, makeinfo, $1)
988 AC_DEFUN(STEPMAKE_MAN, [
989 STEPMAKE_PROGS(GROFF, groff ditroff, $1)
991 STEPMAKE_PROGS(TROFF, troff, $1)
993 STEPMAKE_PROGS(TBL, tbl, $1)
998 AC_DEFUN(STEPMAKE_MSGFMT, [
999 STEPMAKE_PROGS(MSGFMT, msgfmt, $1)
1003 # Check for program ($2), set full path result to ($1).
1004 # If missing, add entry to missing-list ($3, one of 'OPTIONAL', 'REQUIRED')
1005 AC_DEFUN(STEPMAKE_PATH_PROG, [
1006 AC_CHECK_PROGS($1, $2, no)
1007 STEPMAKE_OPTIONAL_REQUIRED($1, $2, $3)
1008 if test $? -eq 0; then
1009 AC_PATH_PROGS($1, $2)
1010 if test -n "$4"; then
1011 STEPMAKE_CHECK_VERSION($1, $3, $4)
1017 # Check for program in set of names ($2), set result to ($1) .
1018 # If missing, add entry to missing-list ($3, one of 'OPTIONAL', 'REQUIRED')
1019 # If exists, and a minimal version ($4) is required
1020 AC_DEFUN(STEPMAKE_PROGS, [
1021 AC_CHECK_PROGS($1, $2, no)
1022 STEPMAKE_OPTIONAL_REQUIRED($1, $2, $3)
1023 if test $? -eq 0 -a -n "$4"; then
1024 STEPMAKE_CHECK_VERSION($1, $3, $4)
1029 AC_DEFUN(STEPMAKE_PERL, [
1030 STEPMAKE_PATH_PROG(PERL, perl, $1)
1034 # Check for python, between minimum ($2) and maximum version ($3).
1035 # If missing, add entry to missing-list ($1, one of 'OPTIONAL', 'REQUIRED')
1036 AC_DEFUN(STEPMAKE_PYTHON, [
1037 AC_MSG_CHECKING([for python])
1040 for r in $PYTHON python python3 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0; do
1041 exe=`STEPMAKE_GET_EXECUTABLE($r)`
1042 if ! $exe -V > /dev/null 2>&1 ; then
1045 ver=`STEPMAKE_GET_VERSION($exe)`
1046 num=`STEPMAKE_NUMERIC_VERSION($ver)`
1047 req=`STEPMAKE_NUMERIC_VERSION($2)`
1048 sup=`STEPMAKE_NUMERIC_VERSION($3)`
1049 if test -n "$2" && test "$num" -lt "$req"; then
1050 python=["$r >= $2 (installed: $ver)"]
1053 if test -n "$3" && test "$num" -ge "$sup"; then
1054 python=["$r < $3 (installed: $ver)"]
1063 AC_MSG_RESULT([$found])
1064 if test "$found" != "no"; then
1065 AC_MSG_CHECKING([$python version])
1066 AC_MSG_RESULT([$ver])
1069 STEPMAKE_ADD_ENTRY($1, $python)
1071 AC_PATH_PROG(PYTHON, $PYTHON)
1075 # Check for python-config, between minimum ($2) and maximum version ($3).
1076 # If missing, add entry to missing-list ($1, one of 'OPTIONAL', 'REQUIRED')
1077 AC_DEFUN(STEPMAKE_PYTHON_DEVEL, [
1078 AC_ARG_WITH(python-include,
1079 [AS_HELP_STRING([--with-python-include=DIR],
1080 [location of the python include dir])],[
1081 if test "$withval" = "yes" -o "$withval" = "no"; then
1082 AC_MSG_WARN(Usage: --with-python-include=includedir)
1084 PYTHON_CFLAGS="-I${withval}"
1088 AC_ARG_WITH(python-lib,
1089 [AS_HELP_STRING([--with-python-lib=NAME],
1090 [name of the python lib])],[
1091 if test "$withval" = "yes" -o "$withval" = "no"; then
1092 AC_MSG_WARN(Usage: --with-python-lib=name)
1094 LDFLAGS="$LDFLAGS -l${withval}"
1098 STEPMAKE_PYTHON($1, $2, $3)
1099 AC_CHECK_PROGS(PYTHON_CONFIG, `basename $PYTHON`-config, no)
1101 if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
1102 # Clean out junk: http://bugs.python.org/issue3290
1103 # Python headers may need some -f* flags, leave them in.
1104 # We want the sed commands to look like 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' and 's/-arch [^[:space:]]*//g', but automake eats brackets.
1105 #PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/-[[WDOm]][[[:alnum:][:punct:]]][[[:alnum:][:punct:]]]*//g' | sed -e 's/-arch @<:@^@<:@:space:@:>@@:>@*//g'`
1106 # The above sed BRE matches parts of legal options, stipping down part of that option, resulting in invalid gcc arguments. Gentoo Bug #415793
1107 # For instance, '-floop-stip-mime' becomes '-floop-strip', and '-fvect-cost-model' becomes '-fvect-cost'.
1108 # Tentative fix to require a non alphanumeric character before the initial hyphen of the BRE or the hyphen being the first character in the string.
1109 PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/\(^\|[[^[:alnum:]]]\)-[[WDOm]][[[:alnum:][:punct:]]][[[:alnum:][:punct:]]]*//g' | sed -e 's/-arch @<:@^@<:@:space:@:>@@:>@*//g'`
1110 PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
1113 if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
1114 changequote(<<, >>)#dnl
1115 # alternatively, for python >= 2.0
1116 # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
1117 PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
1118 PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
1119 changequote([, ])#dnl
1122 if test -z "$PYTHON_HEADER"; then
1123 CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
1124 AC_CHECK_HEADERS([Python.h],[PYTHON_HEADER=yes])
1127 if test -z "$PYTHON_HEADER"; then
1128 warn="Python.h (python-devel, python-dev or libpython-dev package)"
1129 STEPMAKE_ADD_ENTRY($1, $warn)
1135 AC_DEFUN(STEPMAKE_STL_DATA_METHOD, [
1136 AC_CACHE_CHECK([for stl.data () method],
1137 [stepmake_cv_stl_data_method],
1138 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
1140 using namespace std;
1142 void *p = v.data ();
1144 [stepmake_cv_stl_data_method=yes],
1145 [stepmake_cv_stl_data_method=no]))
1146 if test $stepmake_cv_stl_data_method = yes; then
1147 AC_DEFINE(HAVE_STL_DATA_METHOD, 1, [define if stl classes have data () method])
1152 AC_DEFUN(STEPMAKE_TEXMF_DIRS, [
1153 STEPMAKE_PROGS(KPSEWHICH, kpsewhich, $1)
1155 AC_MSG_CHECKING(for metapost required files)
1156 if test "$MFPLAIN_MP" = ""; then
1157 MFPLAIN_MP=`kpsewhich -format=mp mfplain`
1159 if test "$MFPLAIN_MP" = ""; then
1161 STEPMAKE_ADD_ENTRY($1,['metapost CTAN package (texlive-metapost)'])
1167 AC_DEFUN(STEPMAKE_TEXMF, [
1168 STEPMAKE_PROGS(METAFONT, mf-nowin mf mfw mfont, $1)
1169 STEPMAKE_PROGS(METAPOST, mpost, $1)
1170 if test "$METAPOST" != ""; then
1171 ver=`STEPMAKE_GET_VERSION($METAPOST)`
1172 num=`STEPMAKE_NUMERIC_VERSION($ver)`
1173 # Avoid buggy metapost versions: 1.600 <= x < 1.803
1174 if test "$num" -ge "1600000" -a "$num" -lt "1803000"; then
1175 STEPMAKE_ADD_ENTRY($1, ["mpost (due to a bug in metapost, versions 1.600 <= x < 1.803 are not supported; installed: $ver)"])
1179 AC_MSG_CHECKING(for working metafont mode)
1180 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
1181 for MFMODE in $modelist; do
1182 $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
1183 if test -f mfput.tfm; then
1187 AC_MSG_RESULT($MFMODE)
1195 AC_DEFUN(STEPMAKE_WARN, [
1201 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
1202 dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
1203 dnl also defines GSTUFF_PKG_ERRORS on error
1204 AC_DEFUN(PKG_CHECK_MODULES, [
1207 if test -z "$PKG_CONFIG"; then
1208 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
1211 if test "$PKG_CONFIG" = "no" ; then
1212 echo "*** The pkg-config script could not be found. Make sure it is"
1213 echo "*** in your path, or set the PKG_CONFIG environment variable"
1214 echo "*** to the full path to pkg-config."
1215 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
1217 PKG_CONFIG_MIN_VERSION=0.9.0
1218 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
1219 AC_MSG_CHECKING(for $2)
1221 if $PKG_CONFIG --exists "$2" ; then
1225 AC_MSG_CHECKING($1_CFLAGS)
1226 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
1227 AC_MSG_RESULT($$1_CFLAGS)
1229 AC_MSG_CHECKING($1_LIBS)
1230 $1_LIBS=`$PKG_CONFIG --libs "$2"`
1231 AC_MSG_RESULT($$1_LIBS)
1235 ## If we have a custom action on failure, don't print errors, but
1236 ## do set a variable so people can do so.
1237 $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
1238 ifelse([$4], ,echo $$1_PKG_ERRORS,)
1246 if test $succeeded = yes; then
1247 ifelse([$3], , :, [$3])
1249 ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
1253 AC_DEFUN(STEPMAKE_FREETYPE2, [
1254 PKG_CHECK_MODULES(FREETYPE2, $1 >= $3, have_freetype2=yes, true)
1255 if test "$have_freetype2" = yes; then
1256 AC_DEFINE(HAVE_FREETYPE2)
1257 save_CPPFLAGS="$CPPFLAGS"
1259 CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
1260 LIBS="$FREETYPE2_LIBS $LIBS"
1261 AC_SUBST(FREETYPE2_CFLAGS)
1262 AC_SUBST(FREETYPE2_LIBS)
1263 CPPFLAGS="$save_CPPFLAGS"
1267 #r="lib$1-dev or $1-devel"
1268 r="libfreetype6-dev or freetype?-devel"
1269 ver="`pkg-config --modversion $1`"
1270 STEPMAKE_ADD_ENTRY($2, ["$r >= $3 (installed: $ver)"])
1274 AC_DEFUN(STEPMAKE_PANGO, [
1275 PKG_CHECK_MODULES(PANGO, $1 >= $3, have_pango16=yes, true)
1276 if test "$have_pango16" = yes ; then
1277 AC_DEFINE(HAVE_PANGO16)
1278 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
1279 save_CPPFLAGS="$CPPFLAGS"
1281 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
1282 LIBS="$PANGO_LIBS $LIBS"
1283 AC_CHECK_HEADERS([pango/pangofc-fontmap.h])
1284 AC_CHECK_FUNCS([pango_fc_font_map_add_decoder_find_func])
1285 AC_SUBST(PANGO_CFLAGS)
1286 AC_SUBST(PANGO_LIBS)
1287 CPPFLAGS="$save_CPPFLAGS"
1291 #r="lib$1-dev or $1-devel"
1292 r="libpango1.0-dev or pango1.0-devel"
1293 ver="`pkg-config --modversion $1`"
1294 STEPMAKE_ADD_ENTRY($2, ["$r >= $3 (installed: $ver)"])
1298 AC_DEFUN(STEPMAKE_PANGO_FT2, [
1299 PKG_CHECK_MODULES(PANGO_FT2, $1 >= $3, have_pangoft2=yes, true)
1300 if test "$have_pangoft2" = yes ; then
1301 AC_DEFINE(HAVE_PANGO16)
1302 AC_DEFINE(HAVE_PANGO_FT2)
1303 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
1304 save_CPPFLAGS="$CPPFLAGS"
1306 CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
1307 LIBS="$PANGO_FT2_LIBS $LIBS"
1308 AC_CHECK_HEADERS([pango/pangoft2.h])
1309 AC_CHECK_FUNCS([pango_ft2_font_map_create_context])
1310 AC_SUBST(PANGO_FT2_CFLAGS)
1311 AC_SUBST(PANGO_FT2_LIBS)
1312 CPPFLAGS="$save_CPPFLAGS"
1316 #r="lib$1-dev or $1-devel"e
1317 r="libpango1.0-dev or pango?-devel"
1318 ver="`pkg-config --modversion $1`"
1319 STEPMAKE_ADD_ENTRY($2, ["$r >= $3 (installed: $ver)"])
1323 AC_DEFUN(STEPMAKE_FONTCONFIG, [
1324 PKG_CHECK_MODULES(FONTCONFIG, $1 >= $3, have_fontconfig=yes, true)
1325 if test "$have_fontconfig" = yes ; then
1326 AC_DEFINE(HAVE_FONTCONFIG)
1327 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
1328 save_CPPFLAGS="$CPPFLAGS"
1330 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
1331 LIBS="$FONTCONFIG_LIBS $LIBS"
1332 AC_SUBST(FONTCONFIG_CFLAGS)
1333 AC_SUBST(FONTCONFIG_LIBS)
1334 CPPFLAGS="$save_CPPFLAGS"
1337 r="lib$1-dev or $1-devel"
1338 ver="`pkg-config --modversion $1`"
1339 STEPMAKE_ADD_ENTRY($2, ["$r >= $3 (installed: $ver)"])
1343 AC_DEFUN(STEPMAKE_WINDOWS, [
1347 if test "$CYGWIN" = "yes"; then
1348 LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
1350 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1351 elif test "$MINGW32" = "yes"; then
1355 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1361 AC_DEFINE_UNQUOTED(DIRSEP, ['${DIRSEP}'])
1362 AC_DEFINE_UNQUOTED(PATHSEP, ['${PATHSEP}'])
1365 AC_SUBST(program_suffix)
1367 AC_MSG_CHECKING([for some flavor of Windows])
1368 if test "$CYGWIN$MINGW32" = "nono"; then
1371 PLATFORM_WINDOWS=yes
1373 AC_MSG_RESULT([$PLATFORM_WINDOWS])
1374 AC_SUBST(PLATFORM_WINDOWS)
1375 STEPMAKE_PROGS(WINDRES, $target-windres windres, x)