]> cygwin.com Git - cygwin-apps/cygutils.git/blame_incremental - configure.ac
Add hippo.ico to cygicons DLL
[cygwin-apps/cygutils.git] / configure.ac
... / ...
CommitLineData
1# Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.63)
3AC_INIT(cygutils, 1.4.1, cygwin@cygwin.com)
4AC_CONFIG_SRCDIR([config.h.in])
5AC_CONFIG_AUX_DIR([build-aux])
6AC_CONFIG_MACRO_DIR([m4])
7AM_INIT_AUTOMAKE([1.11 silent-rules -Wall -Werror dist-lzma no-dist-gzip])
8AM_CONFIG_HEADER([config.h])
9AM_MAINTAINER_MODE
10
11VERSION_MAJOR=`echo $VERSION | cut -f1 -d.`
12VERSION_MINOR=`echo $VERSION | cut -f2 -d.`
13VERSION_PATCH=`echo $VERSION | cut -f3 -d.`
14
15AC_SUBST(VERSION_MAJOR)
16AC_SUBST(VERSION_MINOR)
17AC_SUBST(VERSION_PATCH)
18
19AC_CANONICAL_HOST
20
21# Checks for programs.
22AC_PROG_CC
23AC_PROG_CXX
24AM_PROG_CC_C_O
25AC_PROG_INSTALL
26AC_PROG_LN_S
27
28LT_INIT([win32-dll dlopen disable-static])
29LT_LANG([Windows Resource])
30
31# Checks for libraries.
32AC_CHECK_LIB(popt, poptPrintHelp,[
33 AC_DEFINE(HAVE_LIBPOPT,1,[Define to 1 if you have the `popt' library (-lpopt).])])dnl '`
34AC_CHECK_FUNC(shmget,[
35 HAVE_INTRINSIC_IPC="yes"
36 ],[
37 HAVE_INTRINSIC_IPC="no"
38 ])
39
40# AC_CHECK_LIB(intl, gettext)
41AM_GNU_GETTEXT(external,[],[])
42AM_GNU_GETTEXT_VERSION([0.17])
43BUILD_INCLUDED_LIBINTL=no
44USE_INCLUDED_LIBINTL=no
45AC_SUBST(BUILD_INCLUDED_LIBINTL)
46AC_SUBST(USE_INCLUDED_LIBINTL)
47
48CYGICONS_DLL_VERSION=0
49AC_SUBST(CYGICONS_DLL_VERSION)
50
51# Checks for header files.
52AC_HEADER_STDC
53AC_HEADER_TIME
54AC_CHECK_HEADERS([stdlib.h stddef.h errno.h limits.h malloc.h \
55ctype.h getopt.h popt.h windows.h])
56AC_CHECK_HEADERS([string.h strings.h], break)
57AC_CHECK_HEADERS([stdarg.h varargs.h], break)
58AC_CHECK_HEADERS([sys/ipc.h sys/sem.h sys/shm.h sys/msg.h])
59AC_CHECK_HEADERS([langinfo.h sys/param.h fcntl.h unistd.h \
60termios.h sys/ioctl.h])
61AC_CHECK_HEADERS([wchar.h])
62AC_CHECK_HEADERS([locale.h])
63AC_CHECK_FUNCS([setlocale])
64AC_HEADER_TIOCGWINSZ
65
66# Checks for typedefs, structures, and compiler characteristics.
67AC_C_CONST
68AC_STRUCT_TM
69
70# Checks for library functions.
71AC_FUNC_MALLOC
72AC_CHECK_FUNCS([strcasecmp strchr strdup strrchr strerror])
73AC_CHECK_FUNCS([bzero getcwd memset nl_langinfo gettimeofday])
74AC_FUNC_LSTAT
75AC_FUNC_STAT
76AC_FUNC_VPRINTF
77dnl should only exist on windows, I hope
78AC_CHECK_STDCALL_FUNC([OpenClipboard],[void *])
79AC_CHECK_DECLS([cygwin_conv_path], [],[
80case "$host" in
81*cygwin* ) AC_MSG_ERROR([At least cygwin-1.7 is required]) ;;
82esac],dnl
83 [[#include <sys/cygwin.h>]])
84
85dnl Set Conditionals for Makefile.am
86AM_CONDITIONAL(WITH_WINDOWS_PROGRAMS, test "$ac_cv_func_OpenClipboard" = yes)
87AM_CONDITIONAL(WITH_NATIVE_IPC_PROGRAMS, test "$HAVE_INTRINSIC_IPC" = yes)
88host_is_cygwin=no
89case "$host" in
90*cygwin* ) host_is_cygwin=yes ;;
91esac
92AM_CONDITIONAL(WITH_CYGWIN_SPECIFIC_PROGRAMS, test "$host_is_cygwin" = yes)
93
94AC_CONFIG_FILES([Makefile po/Makefile.in src/cygicons/cygicons.rc])
95
96AC_OUTPUT
This page took 0.018442 seconds and 5 git commands to generate.