blob: 307a391e6e8e2d54cc16797e8c856cdbb38428ed (
plain) (
blame)
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
|
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([libbrandt], [0.1], [teichm@net.in.tum.de])
AM_INIT_AUTOMAKE([1.15])
AC_CONFIG_SRCDIR([smc.c])
#AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC_C99
LT_INIT([pic-only])
# Checks for libraries.
AC_SEARCH_LIBS([pari_init], [pari], [], [AC_MSG_ERROR([unable to find the pari_init() function from libpari])])
# Checks for header files.
AC_CHECK_HEADER(pari/pari.h, [], [AC_MSG_ERROR([unable to find the pari.h header file from libpari])], [])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_TYPE_UINT16_T
# Checks for library functions.
# fix std
CC=$(echo "${CC}" | sed 's/-std=gnu99/-std=c99/')
CPP=$(echo "${CC}" | sed 's/-std=gnu99/-std=c99/')
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
|