1dnl This file is part of the FreeType Jam project. 2dnl See http://www.freetype.org/jam/ for more details 3dnl 4dnl Process this file with autoconf to produce a configure script. 5dnl 6 7AC_INIT 8AC_CONFIG_SRCDIR([Makefile.in]) 9 10dnl release version number 11dnl 12jam_version='2.5.2' 13AC_SUBST(jam_version) 14 15dnl checks for system type 16AC_CANONICAL_TARGET([]) 17 18dnl checks for programs 19AC_PROG_CC 20AC_PROG_CPP 21 22dnl get Compiler flags right. 23SUFEXE= 24XX_CFLAGS= 25case "$host" in 26 *-cygwin*) 27 CFLAGS= 28 SUFEXE=.exe 29 XX_CFLAGS="-D__cygwin__" 30 ;; 31 *-dec-osf*) 32 CFLAGS= 33 XX_CFLAGS="-std1 -g3" 34 ;; 35esac 36AC_SUBST(XX_CFLAGS) 37AC_SUBST(SUFEXE) 38 39AC_CHECK_PROG(RMF, rm, rm -f) 40AC_CHECK_PROG(RMDIR, rmdir, rmdir) 41 42dnl Since this file will be finally moved to another directory we make 43dnl the path of the install script absolute. This small code snippet has 44dnl been taken from automake's `ylwrap' script. 45AC_PROG_INSTALL 46case "$INSTALL" in 47 /*) 48 ;; 49 */*) 50 INSTALL="`pwd`/$INSTALL" ;; 51esac 52 53AC_SUBST(CFLAGS) 54AC_SUBST(LDFLAGS) 55 56dnl we need to expand $bindir directly, instead of the default 57dnl '${exec_prefix}/bin', so perform a little Autoconf magic 58dnl this is really disgusting !! 59AC_DEFUN([AC_EXPAND_DIR], 60[$1=$2 61$1=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" 62 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 63 eval echo \""[$]$1"\" 64 )` 65]) 66 67AC_EXPAND_DIR(my_bindir, $bindir) 68AC_SUBST(my_bindir) 69 70dnl create the Unix-specific Makefile and version information 71dnl 72AC_CONFIG_FILES([../../Makefile:Makefile.in 73 ../../patchlevel.h:patchlevel.h.in 74 ../../Jamrules:Jamrules.in]) 75 76AC_OUTPUT 77 78dnl end of configure.ac 79