source: configure.in @ af2ca19

barnowl_perlaimdebianowlrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since af2ca19 was 5145235, checked in by James M. Kretchmar <kretch@mit.edu>, 22 years ago
Fix memory problem in setting default tty. Removed some commented material from configure.in and owl.c
  • Property mode set to 100644
File size: 2.2 KB
Line 
1dnl $Id$
2dnl Process this file with autoconf to produce a configure script.
3AC_INIT(owl.c)
4
5AC_CONFIG_HEADER(config.h)
6
7AC_PROG_CC
8
9dnl If we're using GCC, enable all warnings
10if test "$GCC" = yes; then
11     CFLAGS="$CFLAGS -Wall -g";
12fi
13
14dnl Check for Athena
15AC_MSG_CHECKING(for /usr/athena/include)
16if test -d /usr/athena/include; then
17        CFLAGS=${CFLAGS}\ -I/usr/athena/include
18        AC_MSG_RESULT(yes)
19else
20        AC_MSG_RESULT(no)
21fi
22AC_MSG_CHECKING(for /usr/athena/lib)
23if test -d /usr/athena/lib; then
24        LDFLAGS=-L/usr/athena/lib\ ${LDFLAGS}
25        AC_MSG_RESULT(yes)
26else
27        AC_MSG_RESULT(no)
28fi
29
30AC_CHECK_LIB(ncurses, initscr,,
31   AC_CHECK_LIB(curses, initscr,, AC_MSG_ERROR(No curses library found.)))
32AC_CHECK_LIB(com_err, com_err)
33AC_CHECK_LIB(nsl, gethostbyname)
34AC_CHECK_LIB(socket, socket)
35AC_CHECK_LIB(k5crypto, krb5_derive_key)
36AC_CHECK_LIB(des425, des425_req_act_vno)
37AC_CHECK_LIB(krb5, krb5_get_credentials)
38AC_CHECK_LIB(krb4, krb_sendauth)
39AC_CHECK_LIB(zephyr, ZGetSender,, AC_MSG_ERROR(No zephyr library found.))
40AC_CHECK_LIB(zephyr, ZInitLocationInfo, AC_DEFINE(HAVE_LIBZEPHYR_ZINITLOCATIONINFO),)
41
42dnl Checks for header files.
43AC_HEADER_STDC
44AC_HEADER_SYS_WAIT
45AC_CHECK_HEADERS(strings.h sys/ioctl.h unistd.h)
46
47dnl Add CFLAGS for embeded perl
48FOO=`perl -MExtUtils::Embed -e ccopts`
49echo Adding perl CFLAGS ${FOO}
50CFLAGS=${CFLAGS}\ ${FOO}
51
52dnl Find the location of XSUBPP
53AC_MSG_CHECKING(for the perl xsubpp precompiler)
54XSUBPPDIR="`(perl -MExtUtils::MakeMaker -e 'print ExtUtils::MakeMaker->new({NAME => qw(owl)})->tool_xsubpp;') | grep \^XSUBPPDIR | sed -e 's/XSUBPPDIR = //g;'`"
55if test -n "${XSUBPPDIR}"; then
56   AC_MSG_RESULT(${XSUBPPDIR})
57else
58   AC_MSG_ERROR(not found)
59fi
60
61dnl Add LDFLAGS for embeded perl
62FOO=`perl -MExtUtils::Embed -e ldopts`
63echo Adding perl LDFLAGS ${FOO}
64LDFLAGS=${LDFLAGS}\ ${FOO}
65
66dnl Checks for typedefs, structures, and compiler characteristics.
67AC_CHECK_FILE(/usr/share/terminfo, AC_DEFINE(TERMINFO, "/usr/share/terminfo"),
68  AC_CHECK_FILE(/usr/share/lib/terminfo, AC_DEFINE(TERMINFO, "/usr/share/lib/terminfo"),
69  AC_MSG_ERROR(No terminfo found for this system)))
70
71dnl Checks for library functions.
72dnl AC_PROG_GCC_TRADITIONAL
73dnl AC_CHECK_FUNCS(gethostname strdup)
74
75AC_SUBST(XSUBPPDIR)
76
77AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the repository browser.