source: configure.in @ 1aee7d9

barnowl_perlaimdebianowlrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 1aee7d9 was 1aee7d9, checked in by Erik Nygren <nygren@mit.edu>, 18 years ago
* Added RCS Id strings to all files. * 'show keymaps' shows details of all keymaps after summary list.
  • Property mode set to 100644
File size: 2.8 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
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
85dnl Add LDFLAGS for embeded perl
86FOO=`perl -MExtUtils::Embed -e ldopts`
87echo Adding perl LDFLAGS ${FOO}
88LDFLAGS=${LDFLAGS}\ ${FOO}
89
90dnl Checks for typedefs, structures, and compiler characteristics.
91AC_CHECK_FILE(/usr/share/terminfo, AC_DEFINE(TERMINFO, "/usr/share/terminfo"),
92  AC_CHECK_FILE(/usr/share/lib/terminfo, AC_DEFINE(TERMINFO, "/usr/share/lib/terminfo"),
93  AC_MSG_ERROR(No terminfo found for this system)))
94
95dnl Checks for library functions.
96dnl AC_PROG_GCC_TRADITIONAL
97dnl AC_CHECK_FUNCS(gethostname strdup)
98
99AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the repository browser.