File: configure.in

package info (click to toggle)
libproplist 0.8.2-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 460 kB
  • ctags: 510
  • sloc: ansic: 2,732; sh: 308; yacc: 257; lex: 172; makefile: 78
file content (46 lines) | stat: -rw-r--r-- 998 bytes parent folder | download
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(proplist.l)

AM_INIT_AUTOMAKE(libPropList, 0.8.2)


dnl Checks for programs.
AC_PROG_CC
AM_PROG_LEX
AC_PROG_YACC
AC_PROG_MAKE_SET
AM_PROG_LIBTOOL

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h unistd.h crypt.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_HEADER_TIME

dnl Checks for library functions.
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL

#AC_CHECK_FUNCS(gethostname gethostbyname gettimeofday mkdir rmdir select strstr socket)

if test "$HAVE_SOCKET" = ""; then
	AC_CHECK_LIB(socket, socket, XTRALIBS="$XTRALIBS -lsocket")
fi

if test "$HAVE_GETHOSTBYNAME" = ""; then
	AC_CHECK_LIB(nsl, gethostbyname, XTRALIBS="$XTRALIBS -lnsl")
fi

AC_CHECK_LIB(crypt, crypt, LIBCRYPT="-lcrypt", LIBCRYPT="")


AC_SUBST(LIBSOCK)
AC_SUBST(LIBCRYPT)
AC_SUBST(XTRALIBS)

AC_OUTPUT(Makefile)
#defaults/Makefile Makefile gsdd/Makefile)