]> cygwin.com Git - cygwin-apps/cygutils.git/blob - configure.ac
Add -s option to mkshortcut
[cygwin-apps/cygutils.git] / configure.ac
1 # Process this file with autoconf to produce a configure script.
2 AC_PREREQ(2.59)
3 AC_INIT(cygutils, 1.2.4, cwilson@ece.gatech.edu)
4 AC_CONFIG_SRCDIR([config.h.in])
5 AM_INIT_AUTOMAKE
6 AM_CONFIG_HEADER([config.h])
7 AM_MAINTAINER_MODE
8
9 # Checks for programs.
10 AC_PROG_CC
11 AC_PROG_CXX
12 AM_PROG_CC_C_O
13 AC_PROG_INSTALL
14
15 # Checks for libraries.
16 AC_CHECK_LIB(popt, poptPrintHelp)
17 AC_CHECK_FUNC(shmget,[
18 HAVE_INTRINSIC_IPC="yes"
19 ],[
20 HAVE_INTRINSIC_IPC="no"
21 ])
22
23 # AC_CHECK_LIB(intl, gettext)
24 AM_GNU_GETTEXT(external,[],[])
25 BUILD_INCLUDED_LIBINTL=no
26 USE_INCLUDED_LIBINTL=no
27 AC_SUBST(BUILD_INCLUDED_LIBINTL)
28 AC_SUBST(USE_INCLUDED_LIBINTL)
29
30 # Checks for header files.
31 AC_HEADER_STDC
32 AC_HEADER_TIME
33 AC_CHECK_HEADERS([stdlib.h stddef.h errno.h limits.h malloc.h \
34 ctype.h getopt.h popt.h windows.h])
35 AC_CHECK_HEADERS([string.h strings.h], break)
36 AC_CHECK_HEADERS([stdarg.h varargs.h], break)
37 AC_CHECK_HEADERS([sys/ipc.h sys/sem.h sys/shm.h sys/msg.h])
38 AC_CHECK_HEADERS([langinfo.h sys/param.h fcntl.h unistd.h \
39 termios.h sys/ioctl.h])
40 AC_CHECK_HEADERS([wchar.h])
41 AC_CHECK_HEADERS([locale.h])
42 AC_CHECK_FUNCS([setlocale])
43 AC_HEADER_TIOCGWINSZ
44
45 # Checks for typedefs, structures, and compiler characteristics.
46 AC_C_CONST
47 AC_STRUCT_TM
48
49 # Checks for library functions.
50 AC_FUNC_MALLOC
51 AC_CHECK_FUNCS([strcasecmp strchr strdup strrchr strerror])
52 AC_CHECK_FUNCS([bzero getcwd memset nl_langinfo gettimeofday])
53 AC_FUNC_LSTAT
54 AC_FUNC_STAT
55 AC_FUNC_VPRINTF
56 dnl should only exist on windows, I hope
57 AC_CHECK_STDCALL_FUNC([OpenClipboard],[void *])
58
59 dnl Set Conditionals for Makefile.am
60 AM_CONDITIONAL(WITH_WINDOWS_PROGRAMS, test "$ac_cv_func_OpenClipboard" = yes)
61 AM_CONDITIONAL(WITH_NATIVE_IPC_PROGRAMS, test "$HAVE_INTRINSIC_IPC" = yes)
62
63 AC_CONFIG_FILES([Makefile po/Makefile.in])
64
65 AC_OUTPUT
This page took 0.038846 seconds and 6 git commands to generate.