-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
53 lines (42 loc) · 1.62 KB
/
configure.ac
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
dnl Process this file with autoconf to produce configure.
dnl This file is part of opag, an option parser generator.
dnl Copyright (C) 2002, 2003, 2004, 2005 Martin Dickopp
dnl
dnl This file is free software; the copyright holder gives unlimited
dnl permission to copy and/or distribute it, with or without
dnl modifications, as long as this notice is preserved.
dnl
dnl This file is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
dnl PARTICULAR PURPOSE.
AC_PREREQ(2.59)
AC_INIT([opag], [0.8.0], [[email protected]])
AC_CONFIG_SRCDIR([src/opag.c])
AC_COPYRIGHT([Copyright (C) 2002, 2003, 2004, 2005 Martin Dickopp])
AM_INIT_AUTOMAKE([gnu no-define std-options 1.9])
AC_CONFIG_HEADER([config.h])
MD_PATH_PROG([opag])
AC_GNU_SOURCE
AC_PROG_CC
if test "x$ac_cv_prog_cc_stdc" = xno; then
AC_MSG_ERROR([an ANSI C compiler is required to build this package])
fi
AC_C_CONST
AC_C_INLINE
AC_CHECK_HEADERS([errno.h fcntl.h malloc.h sys/file.h], [], [], [AC_INCLUDES_DEFAULT])
AC_CHECK_DECLS([strerror, strchr], [], [], [AC_INCLUDES_DEFAULT])
AC_CHECK_DECLS([malloc], [], [], [AC_INCLUDES_DEFAULT
@%:@if !STDC_HEADERS && HAVE_MALLOC_H
@%:@ include <malloc.h>
@%:@endif])
AC_CHECK_TYPES([size_t, ssize_t], [], [], [AC_INCLUDES_DEFAULT])
AC_SEARCH_LIBS([remove], [posix])
AC_SEARCH_LIBS([strerror], [cposix])
AC_CHECK_FUNCS([isblank])
AC_REPLACE_FUNCS([qsort strerror])
if test "x$ac_cv_func_strerror" != xyes; then
MD_CHECK_TYPE_SYS_ERRLIST
fi
AC_CONFIG_FILES([Makefile src/Makefile man/Makefile man/opag.1])
AC_OUTPUT