From ea1947ffcc606d757357398b24e74a3f4ecefa07 Mon Sep 17 00:00:00 2001 From: neonloop Date: Wed, 20 Oct 2021 14:54:27 +0000 Subject: Initial commit from steward-fu release --- tools/moddesc/configure.ac | 67 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 tools/moddesc/configure.ac (limited to 'tools/moddesc/configure.ac') diff --git a/tools/moddesc/configure.ac b/tools/moddesc/configure.ac new file mode 100644 index 0000000..ecb929e --- /dev/null +++ b/tools/moddesc/configure.ac @@ -0,0 +1,67 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +#AC_PREREQ(2.56) +AC_INIT(moddesc, 1.0) + +PKG_PROG_PKG_CONFIG() + +AC_CONFIG_SRCDIR([moddesc.c]) + +AC_CANONICAL_SYSTEM + +AM_INIT_AUTOMAKE + +# Checks for programs. +AC_PROG_CC +AC_PROG_MAKE_SET + +AC_DISABLE_STATIC +AC_LIBTOOL_DLOPEN + +AM_PROG_CC_C_O + +AM_MAINTAINER_MODE + +LT_INIT + +AC_CONFIG_MACRO_DIR([m4]) + +echo "You Machine: ${target_cpu} ${target_os}" + +AC_ARG_WITH(bennu-prefix,[ --with-bennu-prefix=PFX Prefix where Bennu is installed (optional)],bennu_prefix="$withval", bennu_prefix="`pwd`/../../core") + +case "$target_os" in + mingw32|mingw32msvc) + CFLAGS+=" -DWIN32 -D_WIN32 " + ;; + + linux-gnu*) + case "$target_cpu" in + i*86*) + CFLAGS+=" -Wall -m32 -DTARGET_LINUX" + LDFLAGS+=" -lc -ldl -m32" + ;; + + *) + CFLAGS+=" -Wall -DTARGET_LINUX" + LDFLAGS+=" -lc -ldl" + ;; + + esac + ;; + +esac + +COMMON_CFLAGS+="$CFLAGS -I${bennu_prefix}/include" +COMMON_LDFLAGS+="$LDFLAGS" + +# Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS([stdlib.h]) + +AC_SUBST(COMMON_CFLAGS) +AC_SUBST(COMMON_LDFLAGS) + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT -- cgit v1.2.3