source: configure.in @ 67103d4

barnowl_perlaimdebianowlrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 67103d4 was 6794f72, checked in by James M. Kretchmar <kretch@mit.edu>, 22 years ago
Refixed 'login or login' typo in help Fixed M-u description Removed 'first' and 'last' from basic command help Added M-N to basic key help Added M-D, M-u to basic key help Fixed a quoting problem in configure.in Changed top of help to use 'show' instead of M-x
  • Property mode set to 100644
File size: 3.2 KB
RevLine 
[1aee7d9]1dnl $Id$
[7d4fbcd]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
30dnl A hack for myself to use gnu curses
31dnl AC_MSG_CHECKING(for mit gnu hack)
32dnl if test -d /mit/gnu/include; then
33dnl     CFLAGS=${CFLAGS}\ -I/mit/gnu/include
34dnl     AC_MSG_RESULT(yes)
35dnl else
36dnl     AC_MSG_RESULT(no)
37dnl fi
38
39
40dnl Solaris ships with a broken curses.h
41dnl AC_MSG_CHECKING(for solaris broken curses.h)
42dnl if grep "Sun Microsystems" /usr/include/curses.h > /dev/null 2> /dev/null; then
43dnl   if test  "`grep -c getwc\(stdin\) /usr/include/widec.h`" = "2" ; then
44dnl     rm -rf includefix
45dnl     mkdir includefix
46dnl     sed -e 's/<widec.h>/\"widec.h\"/' /usr/include/curses.h > ./includefix/curses.h
47dnl 
48dnl     sed -e 's/<wchar.h>/\"wchar.h\"/' \
49dnl         -e 's/^#define.putwchar.*//' \
50dnl         -e 's/^#define.getwchar().*//' \
51dnl         -e 's/^#define.getwc(p).*//' \
52dnl         -e 's/^#define.putwc(x, p).*//' \
53dnl         /usr/include/widec.h > includefix/widec.h
54dnl     CFLAGS=-I./includefix\ ${CFLAGS}
55dnl     AC_MSG_RESULT(yes)
56dnl   fi
57dnl else
58dnl   AC_MSG_RESULT(no)
59dnl fi
60
61
62
63AC_CHECK_LIB(ncurses, initscr,,
64   AC_CHECK_LIB(curses, initscr,, AC_MSG_ERROR(No curses library found.)))
65AC_CHECK_LIB(com_err, com_err)
66AC_CHECK_LIB(nsl, gethostbyname)
67AC_CHECK_LIB(socket, socket)
68AC_CHECK_LIB(k5crypto, krb5_derive_key)
69AC_CHECK_LIB(des425, des425_req_act_vno)
70AC_CHECK_LIB(krb5, krb5_get_credentials)
71AC_CHECK_LIB(krb4, krb_sendauth)
72AC_CHECK_LIB(zephyr, ZGetSender,, AC_MSG_ERROR(No zephyr library found.))
73AC_CHECK_LIB(zephyr, ZInitLocationInfo, AC_DEFINE(HAVE_LIBZEPHYR_ZINITLOCATIONINFO),)
74
75dnl Checks for header files.
76AC_HEADER_STDC
77AC_HEADER_SYS_WAIT
78AC_CHECK_HEADERS(strings.h sys/ioctl.h unistd.h)
79
80dnl Add CFLAGS for embeded perl
81FOO=`perl -MExtUtils::Embed -e ccopts`
82echo Adding perl CFLAGS ${FOO}
83CFLAGS=${CFLAGS}\ ${FOO}
84
[8ee73f8d]85dnl Find the location of XSUBPP
86AC_MSG_CHECKING(for the perl xsubpp precompiler)
[6794f72]87XSUBPPDIR="`(perl -MExtUtils::MakeMaker -e 'print ExtUtils::MakeMaker->new({NAME => qw(owl)})->tool_xsubpp;') | grep \^XSUBPPDIR | sed -e 's/XSUBPPDIR = //g;'`"
[8ee73f8d]88if test -n "${XSUBPPDIR}"; then
89   AC_MSG_RESULT(${XSUBPPDIR})
90else
91   AC_MSG_ERROR(not found)
92fi
93
[7d4fbcd]94dnl Add LDFLAGS for embeded perl
95FOO=`perl -MExtUtils::Embed -e ldopts`
96echo Adding perl LDFLAGS ${FOO}
97LDFLAGS=${LDFLAGS}\ ${FOO}
98
99dnl Checks for typedefs, structures, and compiler characteristics.
100AC_CHECK_FILE(/usr/share/terminfo, AC_DEFINE(TERMINFO, "/usr/share/terminfo"),
101  AC_CHECK_FILE(/usr/share/lib/terminfo, AC_DEFINE(TERMINFO, "/usr/share/lib/terminfo"),
102  AC_MSG_ERROR(No terminfo found for this system)))
103
104dnl Checks for library functions.
105dnl AC_PROG_GCC_TRADITIONAL
106dnl AC_CHECK_FUNCS(gethostname strdup)
107
[8ee73f8d]108AC_SUBST(XSUBPPDIR)
109
[7d4fbcd]110AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the repository browser.