source: abuse/tags/pd/abuse/configure.in @ 49

Last change on this file since 49 was 49, checked in by Sam Hocevar, 11 years ago
  • Imported original public domain release, for future reference.
File size: 932 bytes
Line 
1AC_INIT(src/game.c)
2AM_INIT_AUTOMAKE(abuse, 2.0)
3AC_PROG_CC
4AC_PROG_CPP
5AC_PROG_CXX
6AC_CANONICAL_HOST
7AC_ARG_PROGRAM
8AC_PROG_INSTALL
9
10AC_PATH_XTRA
11
12# Do we need to link against something for X shared memory support?
13AC_CHECK_LIB(Xext,XShmAttach,:,[
14AC_CHECK_LIB(XextSam,XShmAttach,LIBS="$LIBS -lXextSam",,$X_LIBS -lX11 -lXext)
15],$X_LIBS -lX11)
16
17PROGS=
18case ${host} in
19  *-*-linux*)
20        AC_CHECK_HEADER(vga.h,PROGS='abuse.console keydrv',)
21        PROGS="${PROGS} lnx_sdrv"
22        ;;
23  mips-sgi-irix*)
24        PROGS=sgi_sdrv
25        ;;
26  powerpc-*-aix4*)
27        if test -f /usr/lpp/UMS/include/UMSAudioDevice.h &&
28           test -f /usr/lpp/som/include/somobj.h; then
29          PROGS=aix_sdrv
30        fi
31        ;;
32  *)
33        ;;
34esac
35AC_SUBST(PROGS)
36
37AC_CHECK_HEADERS(bstring.h)
38AC_CHECK_FUNCS(atexit on_exit, break)
39AB_C_BIGENDIAN
40AC_SUBST(LIBS)
41
42AC_LANG_SAVE
43AC_LANG_CPLUSPLUS
44AB_ADD_FLAGS(-fno-exceptions -fno-rtti)
45AC_LANG_RESTORE
46
47mkdir -p src/net/unix src/net/mac
48
49AC_OUTPUT(Makefile abuse)
Note: See TracBrowser for help on using the repository browser.