forked from GitHub/gf-core
- update actions/cache to v4 - update haskell/actions/setup to haskell-actions/setup - stack doesn't support ghc < 8.4, remove from CI - don't fail immediately - add -fpermissive flag to gcc - only build 9.6.6 with macos and windows latest - bump base upper bound
67 lines
1.8 KiB
Plaintext
67 lines
1.8 KiB
Plaintext
AC_INIT(Portable Grammar Format library, 0.1-pre,
|
|
http://www.grammaticalframework.org/,
|
|
libpgf)
|
|
AC_PREREQ(2.58)
|
|
|
|
AC_CONFIG_SRCDIR([gu/mem.c])
|
|
AC_CONFIG_AUX_DIR([scripts])
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
AC_CANONICAL_TARGET
|
|
|
|
AM_INIT_AUTOMAKE([1.7.9])
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
AM_MAINTAINER_MODE([enable])
|
|
AC_CHECK_LIB(m,nan)
|
|
AC_PROG_MAKE_SET
|
|
AC_PROG_INSTALL
|
|
AC_PROG_LIBTOOL
|
|
AC_PROG_CC
|
|
AC_PROG_CC_C99
|
|
AM_PROG_CC_C_O
|
|
|
|
[if [ "x$GCC" = "xyes" ]; then
|
|
CFLAGS="$CFLAGS\
|
|
-Wall\
|
|
-Wextra\
|
|
-Wno-missing-field-initializers\
|
|
-fpermissive\
|
|
-Wno-unused-parameter\
|
|
-Wno-unused-value"
|
|
fi]
|
|
|
|
case "$target_cpu" in
|
|
i?86) cpu=i386; AC_DEFINE(LIGHTNING_I386, 1,
|
|
[Define if lightning is targeting the x86 architecture]) ;;
|
|
x86_64) cpu=i386; AC_DEFINE(LIGHTNING_I386, 1,
|
|
[Define if lightning is targeting the x86 architecture]) ;;
|
|
sparc*) cpu=sparc; AC_DEFINE(LIGHTNING_SPARC, 1,
|
|
[Define if lightning is targeting the sparc architecture]) ;;
|
|
powerpc) cpu=ppc; AC_DEFINE(LIGHTNING_PPC, 1,
|
|
[Define if lightning is targeting the powerpc architecture]) ;;
|
|
arm*) cpu=arm; AC_DEFINE(LIGHTNING_ARM, 1,
|
|
[Define if lightning is targeting the arm architecture]) ;;
|
|
aarch64) cpu=aarch64; AC_DEFINE(LIGHTNING_AARCH64, 1,
|
|
[Define if lightning is targeting the aarch64 architecture]) ;;
|
|
*) AC_MSG_ERROR([cpu $target_cpu not supported]) ;;
|
|
esac
|
|
|
|
cpu_dir=pgf/lightning/$cpu
|
|
AC_CONFIG_LINKS(pgf/lightning/asm.h:$cpu_dir/asm.h dnl
|
|
pgf/lightning/fp.h:$cpu_dir/fp.h dnl
|
|
pgf/lightning/core.h:$cpu_dir/core.h dnl
|
|
pgf/lightning/funcs.h:$cpu_dir/funcs.h, [],
|
|
[cpu_dir=$cpu_dir])
|
|
|
|
AC_CONFIG_FILES([Makefile
|
|
libgu.pc
|
|
libpgf.pc
|
|
])
|
|
|
|
AC_OUTPUT
|