forked from moretension/duti
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
35 lines (27 loc) · 740 Bytes
/
configure.ac
File metadata and controls
35 lines (27 loc) · 740 Bytes
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
# Process with autoconf to create configure script
AC_INIT(dh, INTERNAL, nosupport@all)
AC_PREREQ(2.52)
AC_COPYRIGHT([Copyright released into the public domain by Andrew Mortensen, January 2008.])
AC_CONFIG_SRCDIR([duti.c])
build_date=`date "+%B %d, %Y"`
AC_SUBST(build_date)
# program checks
AC_PROG_AWK
AC_PROG_CC
AC_PROG_INSTALL
AC_CANONICAL_SYSTEM
DUTI_CHECK_SDK
DUTI_CHECK_DEPLOYMENT_TARGET
# function checks
AC_CHECK_FUNC(strlcpy,have_strlcpy=yes,)
if test x_$have_strlcpy = x_; then
AC_ERROR([required function strlcpy not found.])
fi
if test x_$OPTOPTS = x_; then
if test x_$GCC = x_yes; then
OPTOPTS="$OPTOPTS -Wall -Wmissing-prototypes"
fi
fi
AC_SUBST(OPTOPTS)
AC_CONFIG_FILES([Makefile version.c])
AC_OUTPUT