Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 1 | # This file is part of the FreeType project. |
| 2 | # |
| 3 | # Process this file with autoconf to produce a configure script. |
Werner Lemberg | 60a04df | 2005-06-04 23:04:30 +0000 | [diff] [blame] | 4 | # |
Werner Lemberg | 9b9d334 | 2008-02-21 23:22:06 +0000 | [diff] [blame] | 5 | # Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by |
Werner Lemberg | 60a04df | 2005-06-04 23:04:30 +0000 | [diff] [blame] | 6 | # David Turner, Robert Wilhelm, and Werner Lemberg. |
| 7 | # |
| 8 | # This file is part of the FreeType project, and may only be used, modified, |
| 9 | # and distributed under the terms of the FreeType project license, |
| 10 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you |
| 11 | # indicate that you have read the license and understand and accept it |
| 12 | # fully. |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 13 | |
Werner Lemberg | 4df5b26 | 2006-05-08 07:10:29 +0000 | [diff] [blame] | 14 | AC_INIT([FreeType], [@VERSION@], [freetype@nongnu.org], [freetype]) |
Werner Lemberg | b3f3210 | 2001-06-08 12:19:22 +0000 | [diff] [blame] | 15 | AC_CONFIG_SRCDIR([ftconfig.in]) |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 16 | |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 17 | |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 18 | # Don't forget to update docs/VERSION.DLL! |
| 19 | |
Werner Lemberg | 3b0e500 | 2007-07-03 04:48:19 +0000 | [diff] [blame] | 20 | version_info='9:16:3' |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 21 | AC_SUBST([version_info]) |
Werner Lemberg | 3de5b07 | 2001-03-20 07:52:52 +0000 | [diff] [blame] | 22 | ft_version=`echo $version_info | tr : .` |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 23 | AC_SUBST([ft_version]) |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 24 | |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 25 | |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 26 | # checks for system type |
| 27 | |
Suzuki, Toshiya (鈴木俊哉) | bfe872d | 2006-10-14 13:08:05 +0000 | [diff] [blame] | 28 | AC_CANONICAL_BUILD |
| 29 | AC_CANONICAL_HOST |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 30 | AC_CANONICAL_TARGET |
| 31 | |
| 32 | |
| 33 | # checks for programs |
| 34 | |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 35 | AC_PROG_CC |
| 36 | AC_PROG_CPP |
Suzuki, Toshiya (鈴木俊哉) | bfe872d | 2006-10-14 13:08:05 +0000 | [diff] [blame] | 37 | AC_SUBST(EXEEXT) |
| 38 | |
| 39 | |
| 40 | # checks for native programs to generate building tool |
| 41 | |
| 42 | if test ${cross_compiling} = yes; then |
Suzuki, Toshiya (鈴木俊哉) | 4fc0cce | 2007-08-11 16:35:06 +0000 | [diff] [blame] | 43 | AC_CHECK_PROG(CC_BUILD, ${build}-gcc, ${build}-gcc) |
Suzuki, Toshiya (鈴木俊哉) | bfe872d | 2006-10-14 13:08:05 +0000 | [diff] [blame] | 44 | test -z "${CC_BUILD}" && AC_CHECK_PROG(CC_BUILD, gcc, gcc) |
| 45 | test -z "${CC_BUILD}" && AC_CHECK_PROG(CC_BUILD, cc, cc, , , /usr/ucb/cc) |
| 46 | test -z "${CC_BUILD}" && AC_MSG_ERROR([cannot find native C compiler]) |
| 47 | |
| 48 | AC_MSG_CHECKING([for suffix of native executables]) |
| 49 | rm -f a.* b.* a_out.exe conftest.* |
| 50 | echo > conftest.c "int main() { return 0;}" |
| 51 | ${CC_BUILD} conftest.c || AC_MSG_ERROR([native C compiler is not working]) |
| 52 | rm -f conftest.c |
| 53 | if test -x a.out -o -x b.out -o -x conftest; then |
| 54 | EXEEXT_BUILD="" |
| 55 | elif test -x a_out.exe -o -x conftest.exe; then |
| 56 | EXEEXT_BUILD=".exe" |
| 57 | elif test -x conftest.* ; then |
| 58 | EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\.//g'` |
| 59 | fi |
| 60 | AC_MSG_RESULT($EXEEXT_BUILD) |
| 61 | else |
| 62 | CC_BUILD=${CC} |
| 63 | EXEEXT_BUILD=${EXEEXT} |
| 64 | fi |
| 65 | |
| 66 | |
| 67 | if test ! -z ${EXEEXT_BUILD}; then |
| 68 | EXEEXT_BUILD=."${EXEEXT_BUILD}" |
| 69 | fi |
| 70 | AC_SUBST(CC_BUILD) |
| 71 | AC_SUBST(EXEEXT_BUILD) |
| 72 | |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 73 | |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 74 | |
| 75 | # get compiler flags right |
| 76 | |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 77 | if test "x$CC" = xgcc; then |
Werner Lemberg | 92aa527 | 2005-05-23 21:33:02 +0000 | [diff] [blame] | 78 | XX_CFLAGS="-Wall" |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 79 | XX_ANSIFLAGS="-pedantic -ansi" |
| 80 | else |
| 81 | case "$host" in |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 82 | *-dec-osf*) |
| 83 | CFLAGS= |
| 84 | XX_CFLAGS="-std1 -g3" |
| 85 | XX_ANSIFLAGS= |
| 86 | ;; |
| 87 | *) |
| 88 | XX_CFLAGS= |
| 89 | XX_ANSIFLAGS= |
| 90 | ;; |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 91 | esac |
| 92 | fi |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 93 | AC_SUBST([XX_CFLAGS]) |
| 94 | AC_SUBST([XX_ANSIFLAGS]) |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 95 | |
Werner Lemberg | fd9777e | 2000-07-31 10:56:42 +0000 | [diff] [blame] | 96 | |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 97 | # auxiliary programs |
| 98 | |
| 99 | AC_CHECK_PROG([RMF], [rm], [rm -f]) |
| 100 | AC_CHECK_PROG([RMDIR], [rmdir], [rmdir]) |
| 101 | |
| 102 | |
| 103 | # Since this file will be finally moved to another directory we make |
| 104 | # the path of the install script absolute. This small code snippet has |
| 105 | # been taken from automake's `ylwrap' script. |
| 106 | |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 107 | AC_PROG_INSTALL |
Werner Lemberg | fd9777e | 2000-07-31 10:56:42 +0000 | [diff] [blame] | 108 | case "$INSTALL" in |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 109 | /*) |
| 110 | ;; |
| 111 | */*) |
| 112 | INSTALL="`pwd`/$INSTALL" ;; |
Werner Lemberg | fd9777e | 2000-07-31 10:56:42 +0000 | [diff] [blame] | 113 | esac |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 114 | |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 115 | |
| 116 | # checks for header files |
| 117 | |
Werner Lemberg | d060a75 | 2000-07-20 06:57:41 +0000 | [diff] [blame] | 118 | AC_HEADER_STDC |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 119 | AC_CHECK_HEADERS([fcntl.h unistd.h]) |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 120 | |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 121 | |
| 122 | # checks for typedefs, structures, and compiler characteristics |
| 123 | |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 124 | AC_C_CONST |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 125 | AC_CHECK_SIZEOF([int]) |
| 126 | AC_CHECK_SIZEOF([long]) |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 127 | |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 128 | |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 129 | # checks for library functions |
| 130 | |
| 131 | # Here we check whether we can use our mmap file component. |
| 132 | |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 133 | AC_FUNC_MMAP |
| 134 | if test "$ac_cv_func_mmap_fixed_mapped" != yes; then |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 135 | FTSYS_SRC='$(BASE_DIR)/ftsystem.c' |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 136 | else |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 137 | FTSYS_SRC='$(BUILD_DIR)/ftsystem.c' |
Werner Lemberg | b1dd353 | 2000-07-31 22:51:00 +0000 | [diff] [blame] | 138 | |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 139 | AC_CHECK_DECLS([munmap], |
| 140 | [], |
| 141 | [], |
| 142 | [ |
| 143 | |
| 144 | #ifdef HAVE_UNISTD_H |
| 145 | #include <unistd.h> |
| 146 | #endif |
| 147 | #include <sys/mman.h> |
| 148 | |
| 149 | ]) |
| 150 | |
Werner Lemberg | b1dd353 | 2000-07-31 22:51:00 +0000 | [diff] [blame] | 151 | FT_MUNMAP_PARAM |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 152 | fi |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 153 | AC_SUBST([FTSYS_SRC]) |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 154 | |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 155 | AC_CHECK_FUNCS([memcpy memmove]) |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 156 | |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 157 | |
| 158 | # Check for system zlib |
| 159 | |
Werner Lemberg | fd7456c | 2006-04-03 15:46:48 +0000 | [diff] [blame] | 160 | # don't quote AS_HELP_STRING! |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 161 | AC_ARG_WITH([zlib], |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 162 | AS_HELP_STRING([--without-zlib], |
| 163 | [use internal zlib instead of system-wide])) |
David Turner | 621e488 | 2002-12-16 21:51:24 +0000 | [diff] [blame] | 164 | if test x$with_zlib != xno && test -z "$LIBZ"; then |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 165 | AC_CHECK_LIB([z], [gzsetparams], [AC_CHECK_HEADER([zlib.h], [LIBZ='-lz'])]) |
David Turner | 621e488 | 2002-12-16 21:51:24 +0000 | [diff] [blame] | 166 | fi |
| 167 | if test x$with_zlib != xno && test -n "$LIBZ"; then |
| 168 | CFLAGS="$CFLAGS -DFT_CONFIG_OPTION_SYSTEM_ZLIB" |
David Turner | 19b6b99 | 2002-12-23 22:40:21 +0000 | [diff] [blame] | 169 | LDFLAGS="$LDFLAGS $LIBZ" |
David Turner | 621e488 | 2002-12-16 21:51:24 +0000 | [diff] [blame] | 170 | SYSTEM_ZLIB=yes |
| 171 | fi |
Werner Lemberg | 6eb116e | 2003-05-11 07:12:26 +0000 | [diff] [blame] | 172 | |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 173 | |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 174 | # Whether to use Mac OS resource-based fonts. |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 175 | |
Werner Lemberg | fd7456c | 2006-04-03 15:46:48 +0000 | [diff] [blame] | 176 | # don't quote AS_HELP_STRING! |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 177 | AC_ARG_WITH([old-mac-fonts], |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 178 | AS_HELP_STRING([--with-old-mac-fonts], |
| 179 | [allow Mac resource-based fonts to be used])) |
Werner Lemberg | 6eb116e | 2003-05-11 07:12:26 +0000 | [diff] [blame] | 180 | if test x$with_old_mac_fonts = xyes; then |
Suzuki, Toshiya (鈴木俊哉) | 458c342 | 2006-02-08 12:58:24 +0000 | [diff] [blame] | 181 | orig_LDFLAGS="${LDFLAGS}" |
| 182 | AC_MSG_CHECKING([CoreServices & ApplicationServices of Mac OS X]) |
Suzuki, Toshiya (鈴木俊哉) | 5d3ac4a | 2008-02-21 10:15:41 +0000 | [diff] [blame] | 183 | FT2_EXTRA_LIBS="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices" |
Suzuki, Toshiya (鈴木俊哉) | 9d49961 | 2006-10-12 01:35:54 +0000 | [diff] [blame] | 184 | LDFLAGS="$LDFLAGS $FT2_EXTRA_LIBS" |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 185 | AC_LINK_IFELSE([ |
| 186 | AC_LANG_PROGRAM([ |
Werner Lemberg | dcbb708 | 2007-02-08 08:54:09 +0000 | [diff] [blame] | 187 | |
Suzuki, Toshiya (鈴木俊哉) | 7e3d601 | 2006-12-15 15:23:21 +0000 | [diff] [blame] | 188 | #if defined(__GNUC__) && defined(__APPLE_CC__) |
| 189 | # include <Carbon/Carbon.h> |
| 190 | # include <ApplicationServices/ApplicationServices.h> |
| 191 | #else |
| 192 | # include <ConditionalMacros.h> |
| 193 | # include <Files.h> |
| 194 | #endif |
Werner Lemberg | dcbb708 | 2007-02-08 08:54:09 +0000 | [diff] [blame] | 195 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 196 | ], |
| 197 | [ |
Suzuki, Toshiya (鈴木俊哉) | 7e3d601 | 2006-12-15 15:23:21 +0000 | [diff] [blame] | 198 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 199 | short res = 0; |
Suzuki, Toshiya (鈴木俊哉) | 7e3d601 | 2006-12-15 15:23:21 +0000 | [diff] [blame] | 200 | |
| 201 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 202 | UseResFile( res ); |
Suzuki, Toshiya (鈴木俊哉) | 7e3d601 | 2006-12-15 15:23:21 +0000 | [diff] [blame] | 203 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 204 | ])], |
Suzuki, Toshiya (鈴木俊哉) | 027357f | 2007-02-05 02:50:45 +0000 | [diff] [blame] | 205 | [AC_MSG_RESULT([ok]) |
| 206 | AC_MSG_CHECKING([OS_INLINE macro is ANSI compatible]) |
| 207 | orig_CFLAGS="$CFLAGS" |
| 208 | CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS" |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 209 | AC_COMPILE_IFELSE([ |
| 210 | AC_LANG_PROGRAM([ |
Werner Lemberg | dcbb708 | 2007-02-08 08:54:09 +0000 | [diff] [blame] | 211 | |
Suzuki, Toshiya (鈴木俊哉) | 027357f | 2007-02-05 02:50:45 +0000 | [diff] [blame] | 212 | #if defined(__GNUC__) && defined(__APPLE_CC__) |
| 213 | # include <Carbon/Carbon.h> |
| 214 | # include <ApplicationServices/ApplicationServices.h> |
| 215 | #else |
| 216 | # include <ConditionalMacros.h> |
| 217 | # include <Files.h> |
| 218 | #endif |
Werner Lemberg | dcbb708 | 2007-02-08 08:54:09 +0000 | [diff] [blame] | 219 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 220 | ], |
| 221 | [ |
Werner Lemberg | dcbb708 | 2007-02-08 08:54:09 +0000 | [diff] [blame] | 222 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 223 | /* OSHostByteOrder() is typed as OS_INLINE */ |
| 224 | int32_t os_byte_order = OSHostByteOrder(); |
Werner Lemberg | dcbb708 | 2007-02-08 08:54:09 +0000 | [diff] [blame] | 225 | |
| 226 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 227 | if ( OSBigEndian != os_byte_order ) |
| 228 | return 1; |
Werner Lemberg | dcbb708 | 2007-02-08 08:54:09 +0000 | [diff] [blame] | 229 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 230 | ])], |
Werner Lemberg | dcbb708 | 2007-02-08 08:54:09 +0000 | [diff] [blame] | 231 | [AC_MSG_RESULT([ok]) |
| 232 | CFLAGS="$orig_CFLAGS" |
| 233 | CFLAGS="$CFLAGS -DHAVE_ANSI_OS_INLINE=1" |
| 234 | ], |
| 235 | [AC_MSG_RESULT([no, ANSI incompatible]) |
| 236 | CFLAGS="$orig_CFLAGS" |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 237 | ])], |
Werner Lemberg | 6be99f9 | 2006-02-09 07:38:57 +0000 | [diff] [blame] | 238 | [AC_MSG_RESULT([not found]) |
| 239 | LDFLAGS="${orig_LDFLAGS}" |
| 240 | CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"]) |
Suzuki, Toshiya (鈴木俊哉) | 8cfa8bd | 2006-05-19 22:11:50 +0000 | [diff] [blame] | 241 | else |
| 242 | case x$target_os in |
| 243 | xdarwin*) |
| 244 | dnl AC_MSG_WARN([target system is MacOS but configured to build without Carbon]) |
| 245 | CFLAGS="$CFLAGS -DDARWIN_NO_CARBON" |
| 246 | ;; |
| 247 | *) ;; |
| 248 | esac |
Werner Lemberg | 6eb116e | 2003-05-11 07:12:26 +0000 | [diff] [blame] | 249 | fi |
| 250 | |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 251 | |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 252 | # Whether to use FileManager which is deprecated since Mac OS X 10.4. |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 253 | |
| 254 | AC_ARG_WITH([fsspec], |
| 255 | AS_HELP_STRING([--with-fsspec], |
| 256 | [use obsolete FSSpec API of MacOS, if available (default=yes)])) |
| 257 | if test x$with_fsspec = xno; then |
| 258 | CFLAGS="$CFLAGS -DHAVE_FSSPEC=0" |
Suzuki, Toshiya (鈴木俊哉) | 7e3d601 | 2006-12-15 15:23:21 +0000 | [diff] [blame] | 259 | elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 260 | AC_MSG_CHECKING([FSSpec-based FileManager]) |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 261 | AC_LINK_IFELSE([ |
| 262 | AC_LANG_PROGRAM([ |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 263 | |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 264 | #if defined(__GNUC__) && defined(__APPLE_CC__) |
| 265 | # include <Carbon/Carbon.h> |
| 266 | # include <ApplicationServices/ApplicationServices.h> |
| 267 | #else |
| 268 | # include <ConditionalMacros.h> |
| 269 | # include <Files.h> |
| 270 | #endif |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 271 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 272 | ], |
| 273 | [ |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 274 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 275 | FCBPBPtr paramBlock; |
| 276 | short vRefNum; |
| 277 | long dirID; |
| 278 | ConstStr255Param fileName; |
| 279 | FSSpec* spec; |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 280 | |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 281 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 282 | /* FSSpec functions: deprecated since Mac OS X 10.4 */ |
| 283 | PBGetFCBInfoSync( paramBlock ); |
| 284 | FSMakeFSSpec( vRefNum, dirID, fileName, spec ); |
Werner Lemberg | b4142d5 | 2007-01-17 12:45:26 +0000 | [diff] [blame] | 285 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 286 | ])], |
Werner Lemberg | 6be99f9 | 2006-02-09 07:38:57 +0000 | [diff] [blame] | 287 | [AC_MSG_RESULT([ok]) |
| 288 | CFLAGS="$CFLAGS -DHAVE_FSSPEC=1"], |
| 289 | [AC_MSG_RESULT([not found]) |
| 290 | CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"]) |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 291 | fi |
| 292 | |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 293 | |
| 294 | # Whether to use FileManager in Carbon since MacOS 9.x. |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 295 | |
| 296 | AC_ARG_WITH([fsref], |
| 297 | AS_HELP_STRING([--with-fsref], |
| 298 | [use Carbon FSRef API of MacOS, if available (default=yes)])) |
| 299 | if test x$with_fsref = xno; then |
| 300 | AC_MSG_WARN([ |
| 301 | *** WARNING |
| 302 | FreeType2 built without FSRef API cannot load |
| 303 | data-fork fonts on MacOS, except of XXX.dfont. |
Werner Lemberg | 6be99f9 | 2006-02-09 07:38:57 +0000 | [diff] [blame] | 304 | ]) |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 305 | CFLAGS="$CFLAGS -DHAVE_FSREF=0" |
Suzuki, Toshiya (鈴木俊哉) | 7e3d601 | 2006-12-15 15:23:21 +0000 | [diff] [blame] | 306 | elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 307 | AC_MSG_CHECKING([FSRef-based FileManager]) |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 308 | AC_LINK_IFELSE([ |
| 309 | AC_LANG_PROGRAM([ |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 310 | |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 311 | #if defined(__GNUC__) && defined(__APPLE_CC__) |
| 312 | # include <Carbon/Carbon.h> |
| 313 | # include <ApplicationServices/ApplicationServices.h> |
| 314 | #else |
| 315 | # include <ConditionalMacros.h> |
| 316 | # include <Files.h> |
| 317 | #endif |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 318 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 319 | ], |
| 320 | [ |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 321 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 322 | short vRefNum; |
| 323 | long dirID; |
| 324 | ConstStr255Param fileName; |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 325 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 326 | Boolean* isDirectory; |
| 327 | UInt8* path; |
| 328 | SInt16 desiredRefNum; |
| 329 | SInt16* iterator; |
| 330 | SInt16* actualRefNum; |
| 331 | HFSUniStr255* outForkName; |
| 332 | FSVolumeRefNum volume; |
| 333 | FSCatalogInfoBitmap whichInfo; |
| 334 | FSCatalogInfo* catalogInfo; |
| 335 | FSForkInfo* forkInfo; |
| 336 | FSRef* ref; |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 337 | |
Suzuki, Toshiya (鈴木俊哉) | 44b5e57 | 2007-12-06 07:47:25 +0000 | [diff] [blame] | 338 | #if HAVE_FSSPEC |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 339 | FSSpec* spec; |
Suzuki, Toshiya (鈴木俊哉) | 44b5e57 | 2007-12-06 07:47:25 +0000 | [diff] [blame] | 340 | #endif |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 341 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 342 | /* FSRef functions: no need to check? */ |
| 343 | FSGetForkCBInfo( desiredRefNum, volume, iterator, |
| 344 | actualRefNum, forkInfo, ref, |
| 345 | outForkName ); |
| 346 | FSPathMakeRef( path, ref, isDirectory ); |
Suzuki, Toshiya (鈴木俊哉) | 44b5e57 | 2007-12-06 07:47:25 +0000 | [diff] [blame] | 347 | |
| 348 | #if HAVE_FSSPEC |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 349 | FSpMakeFSRef ( spec, ref ); |
| 350 | FSGetCatalogInfo( ref, whichInfo, catalogInfo, |
| 351 | outForkName, spec, ref ); |
Suzuki, Toshiya (鈴木俊哉) | 44b5e57 | 2007-12-06 07:47:25 +0000 | [diff] [blame] | 352 | #endif |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 353 | ])], |
Werner Lemberg | 6be99f9 | 2006-02-09 07:38:57 +0000 | [diff] [blame] | 354 | [AC_MSG_RESULT([ok]) |
| 355 | CFLAGS="$CFLAGS -DHAVE_FSREF=1"], |
| 356 | [AC_MSG_RESULT([not found]) |
| 357 | CFLAGS="$CFLAGS -DHAVE_FSREF=0"]) |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 358 | fi |
| 359 | |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 360 | |
Werner Lemberg | dcbb708 | 2007-02-08 08:54:09 +0000 | [diff] [blame] | 361 | # Whether to use QuickDraw API in ToolBox which is deprecated since |
| 362 | # Mac OS X 10.4. |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 363 | |
| 364 | AC_ARG_WITH([quickdraw-toolbox], |
| 365 | AS_HELP_STRING([--with-quickdraw-toolbox], |
| 366 | [use MacOS QuickDraw in ToolBox, if available (default=yes)])) |
| 367 | if test x$with_quickdraw_toolbox = xno; then |
| 368 | CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0" |
Suzuki, Toshiya (鈴木俊哉) | 7e3d601 | 2006-12-15 15:23:21 +0000 | [diff] [blame] | 369 | elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 370 | AC_MSG_CHECKING([QuickDraw FontManager functions in ToolBox]) |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 371 | AC_LINK_IFELSE([ |
| 372 | AC_LANG_PROGRAM([ |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 373 | |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 374 | #if defined(__GNUC__) && defined(__APPLE_CC__) |
| 375 | # include <Carbon/Carbon.h> |
| 376 | # include <ApplicationServices/ApplicationServices.h> |
| 377 | #else |
| 378 | # include <ConditionalMacros.h> |
| 379 | # include <Fonts.h> |
| 380 | #endif |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 381 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 382 | ], |
| 383 | [ |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 384 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 385 | Str255 familyName; |
| 386 | SInt16 familyID = 0; |
| 387 | FMInput* fmIn = NULL; |
| 388 | FMOutput* fmOut = NULL; |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 389 | |
| 390 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 391 | GetFontName( familyID, familyName ); |
| 392 | GetFNum( familyName, &familyID ); |
| 393 | fmOut = FMSwapFont( fmIn ); |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 394 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 395 | ])], |
Werner Lemberg | 6be99f9 | 2006-02-09 07:38:57 +0000 | [diff] [blame] | 396 | [AC_MSG_RESULT([ok]) |
| 397 | CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=1"], |
| 398 | [AC_MSG_RESULT([not found]) |
| 399 | CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"]) |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 400 | fi |
| 401 | |
| 402 | |
Werner Lemberg | dcbb708 | 2007-02-08 08:54:09 +0000 | [diff] [blame] | 403 | # Whether to use QuickDraw API in Carbon which is deprecated since |
| 404 | # Mac OS X 10.4. |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 405 | |
| 406 | AC_ARG_WITH([quickdraw-carbon], |
| 407 | AS_HELP_STRING([--with-quickdraw-carbon], |
| 408 | [use MacOS QuickDraw in Carbon, if available (default=yes)])) |
| 409 | if test x$with_quickdraw_carbon = xno; then |
| 410 | CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0" |
Suzuki, Toshiya (鈴木俊哉) | 7e3d601 | 2006-12-15 15:23:21 +0000 | [diff] [blame] | 411 | elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 412 | AC_MSG_CHECKING([QuickDraw FontManager functions in Carbon]) |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 413 | AC_LINK_IFELSE([ |
| 414 | AC_LANG_PROGRAM([ |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 415 | |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 416 | #if defined(__GNUC__) && defined(__APPLE_CC__) |
| 417 | # include <Carbon/Carbon.h> |
| 418 | # include <ApplicationServices/ApplicationServices.h> |
| 419 | #else |
| 420 | # include <ConditionalMacros.h> |
| 421 | # include <Fonts.h> |
| 422 | #endif |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 423 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 424 | ], |
| 425 | [ |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 426 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 427 | FMFontFamilyIterator famIter; |
| 428 | FMFontFamily family; |
| 429 | Str255 famNameStr; |
| 430 | FMFontFamilyInstanceIterator instIter; |
| 431 | FMFontStyle style; |
| 432 | FMFontSize size; |
| 433 | FMFont font; |
| 434 | FSSpec* pathSpec; |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 435 | |
| 436 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 437 | FMCreateFontFamilyIterator( NULL, NULL, kFMUseGlobalScopeOption, |
| 438 | &famIter ); |
| 439 | FMGetNextFontFamily( &famIter, &family ); |
| 440 | FMGetFontFamilyName( family, famNameStr ); |
| 441 | FMCreateFontFamilyInstanceIterator( family, &instIter ); |
| 442 | FMGetNextFontFamilyInstance( &instIter, &font, &style, &size ); |
| 443 | FMDisposeFontFamilyInstanceIterator( &instIter ); |
| 444 | FMDisposeFontFamilyIterator( &famIter ); |
| 445 | FMGetFontContainer( font, pathSpec ); |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 446 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 447 | ])], |
Werner Lemberg | 6be99f9 | 2006-02-09 07:38:57 +0000 | [diff] [blame] | 448 | [AC_MSG_RESULT([ok]) |
| 449 | CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=1"], |
| 450 | [AC_MSG_RESULT([not found]) |
| 451 | CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"]) |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 452 | fi |
| 453 | |
| 454 | |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 455 | # Whether to use AppleTypeService since Mac OS X. |
| 456 | |
Werner Lemberg | fd7456c | 2006-04-03 15:46:48 +0000 | [diff] [blame] | 457 | # don't quote AS_HELP_STRING! |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 458 | AC_ARG_WITH([ats], |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 459 | AS_HELP_STRING([--with-ats], |
| 460 | [use AppleTypeService, if available (default=yes)])) |
| 461 | if test x$with_ats = xno; then |
| 462 | CFLAGS="$CFLAGS -DHAVE_ATS=0" |
Suzuki, Toshiya (鈴木俊哉) | 7e3d601 | 2006-12-15 15:23:21 +0000 | [diff] [blame] | 463 | elif test x$with_old_mac_fonts = xyes -a x$with_ats != x ; then |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 464 | AC_MSG_CHECKING([AppleTypeService functions]) |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 465 | AC_LINK_IFELSE([ |
| 466 | AC_LANG_PROGRAM([ |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 467 | |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 468 | #include <Carbon/Carbon.h> |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 469 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 470 | ], |
| 471 | [ |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 472 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 473 | FSSpec* pathSpec; |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 474 | |
| 475 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 476 | ATSFontFindFromName( NULL, kATSOptionFlagsUnRestrictedScope ); |
Suzuki, Toshiya (鈴木俊哉) | 44b5e57 | 2007-12-06 07:47:25 +0000 | [diff] [blame] | 477 | #if HAVE_FSSPEC |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 478 | ATSFontGetFileSpecification( 0, pathSpec ); |
Suzuki, Toshiya (鈴木俊哉) | 44b5e57 | 2007-12-06 07:47:25 +0000 | [diff] [blame] | 479 | #endif |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 480 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 481 | ])], |
Werner Lemberg | 6be99f9 | 2006-02-09 07:38:57 +0000 | [diff] [blame] | 482 | [AC_MSG_RESULT([ok]) |
| 483 | CFLAGS="$CFLAGS -DHAVE_ATS=1"], |
| 484 | [AC_MSG_RESULT([not found]) |
| 485 | CFLAGS="$CFLAGS -DHAVE_ATS=0"]) |
Werner Lemberg | 435046b | 2006-01-11 10:57:42 +0000 | [diff] [blame] | 486 | fi |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 487 | |
Suzuki, Toshiya (鈴木俊哉) | 7e3d601 | 2006-12-15 15:23:21 +0000 | [diff] [blame] | 488 | case "$CFLAGS" in |
| 489 | *HAVE_FSSPEC* | *HAVE_FSREF* | *HAVE_QUICKDRAW* | *HAVE_ATS* ) |
| 490 | AC_MSG_WARN([ |
| 491 | *** WARNING |
Werner Lemberg | 0fd08bd | 2006-12-16 02:57:46 +0000 | [diff] [blame] | 492 | FSSpec/FSRef/QuickDraw/ATS options are explicitly given, |
Suzuki, Toshiya (鈴木俊哉) | 60e83a1 | 2008-02-14 02:55:16 +0000 | [diff] [blame] | 493 | thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c. |
Suzuki, Toshiya (鈴木俊哉) | 7e3d601 | 2006-12-15 15:23:21 +0000 | [diff] [blame] | 494 | ]) |
| 495 | CFLAGS="$CFLAGS "'-I$(TOP_DIR)/builds/mac/' |
| 496 | ;; |
| 497 | *) |
| 498 | ;; |
| 499 | esac |
| 500 | |
Suzuki, Toshiya (鈴木俊哉) | f8d16cc | 2006-01-11 09:28:38 +0000 | [diff] [blame] | 501 | |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 502 | AC_SUBST([LIBZ]) |
| 503 | AC_SUBST([CFLAGS]) |
| 504 | AC_SUBST([LDFLAGS]) |
Suzuki, Toshiya (鈴木俊哉) | 9d49961 | 2006-10-12 01:35:54 +0000 | [diff] [blame] | 505 | AC_SUBST([FT2_EXTRA_LIBS]) |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 506 | AC_SUBST([SYSTEM_ZLIB]) |
| 507 | |
David Turner | 621e488 | 2002-12-16 21:51:24 +0000 | [diff] [blame] | 508 | |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 509 | LT_INIT(win32-dll) |
Werner Lemberg | b661788 | 2007-08-04 22:17:48 +0000 | [diff] [blame] | 510 | |
Werner Lemberg | 53a1edd | 2004-02-08 22:45:48 +0000 | [diff] [blame] | 511 | AC_SUBST([hardcode_libdir_flag_spec]) |
| 512 | AC_SUBST([wl]) |
Werner Lemberg | a984fda | 2008-06-09 21:02:13 +0000 | [diff] [blame] | 513 | # urgh -- this is an internal libtool variable... |
| 514 | AC_SUBST([enable_shared]) |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 515 | |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 516 | |
| 517 | # configuration file -- stay in 8.3 limit |
| 518 | # |
| 519 | # since #undef doesn't survive in configuration header files we replace |
| 520 | # `/undef' with `#undef' after creating the output file |
| 521 | |
| 522 | AC_CONFIG_HEADERS([ftconfig.h:ftconfig.in], |
| 523 | [mv ftconfig.h ftconfig.tmp |
| 524 | sed 's|/undef|#undef|' < ftconfig.tmp > ftconfig.h |
| 525 | rm ftconfig.tmp]) |
| 526 | |
| 527 | # create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk' |
Werner Lemberg | dcbb708 | 2007-02-08 08:54:09 +0000 | [diff] [blame] | 528 | # and `builds/unix/unix-cc.mk' that will be used by the build system |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 529 | # |
Werner Lemberg | 3a317c6 | 2003-04-28 09:43:32 +0000 | [diff] [blame] | 530 | AC_CONFIG_FILES([unix-cc.mk:unix-cc.in |
| 531 | unix-def.mk:unix-def.in |
| 532 | freetype-config |
| 533 | freetype2.pc:freetype2.in]) |
David Turner | ce9a044 | 2002-01-08 18:33:55 +0000 | [diff] [blame] | 534 | |
Werner Lemberg | e42dbce | 2003-11-09 08:37:14 +0000 | [diff] [blame] | 535 | # re-generate the Jamfile to use libtool now |
| 536 | # |
| 537 | # AC_CONFIG_FILES([../../Jamfile:../../Jamfile.in]) |
David Turner | ce9a044 | 2002-01-08 18:33:55 +0000 | [diff] [blame] | 538 | |
Werner Lemberg | b3f3210 | 2001-06-08 12:19:22 +0000 | [diff] [blame] | 539 | AC_OUTPUT |
David Turner | 7404301 | 2000-07-08 00:22:20 +0000 | [diff] [blame] | 540 | |
Werner Lemberg | dcbb708 | 2007-02-08 08:54:09 +0000 | [diff] [blame] | 541 | # end of configure.raw |