summaryrefslogtreecommitdiff
path: root/configure.in
blob: 382cc18ffbe2985e467523b026643f42f0ff88c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Process this file with autoconf to produce a configure script.
# $Id: configure.in,v 1.5 2013/04/10 20:56:09 brandon Exp $
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# 
AC_PREREQ(2.59)# Minimum Autoconf version required.

AC_INIT([GNU Fontutils], [0.6.90])
AC_CONFIG_HEADERS(include/c-auto.h)
AC_CONFIG_SRCDIR([lib/spline.c])

AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_RANLIB

AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS(assert.h float.h limits.h memory.h pwd.h stdlib.h \
                 string.h sys/param.h unistd.h)

AC_C_CONST

AC_FUNC_CLOSEDIR_VOID

# This is a GNU libc invention.
AC_MSG_CHECKING(whether program_invocation_name is predefined)
AC_CACHE_VAL(kb_cv_var_program_inv_name,
[AC_TRY_LINK(,
  [extern char *program_invocation_name; program_invocation_name = "love";],
  kb_cv_var_program_inv_name=yes, kb_cv_var_program_inv_name=no)])dnl
AC_MSG_RESULT($kb_cv_var_program_inv_name)
if test "$kb_cv_var_program_inv_name" = yes; then
  AC_DEFINE(HAVE_PROGRAM_INVOCATION_NAME, [], [Have program_invocation_name])
fi

# We must have gcc.
[if test -n "$GCC"
then :
else
  echo "Warning: these programs are written in GNU C,"
  echo "so you need to have gcc."
fi]


# Set paths for X
AC_PATH_X
AC_SUBST(x_includes, $x_includes)
AC_SUBST(x_libraries, $x_libraries)

# This will generate `Makefile'(s), `config.status', and our header file.
AC_CONFIG_FILES([GNUmakefile doc/Makefile])
AC_OUTPUT