source: abuse/tags/pd/imlib/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: 957 bytes
Line 
1AC_INIT(jwindow.c)
2AM_INIT_AUTOMAKE(imlib, 2.0)
3AC_PROG_CC
4AC_PROG_CPP
5AC_PROG_CXX
6AC_PROG_RANLIB
7AC_CANONICAL_HOST
8
9AC_PATH_XTRA
10
11# Do we have X shared memory support?
12AC_CHECK_LIB(Xext,XShmAttach,:,[
13AC_CHECK_LIB(XextSam,XShmAttach,:,AC_DEFINE(NO_XSHM),$X_LIBS -lX11 -lXext)
14],$X_LIBS -lX11)
15
16JOYSTICK=port/unix/joystick.o
17SOUND=port/unix/sound.o
18TIMING=port/unix/timing.o
19LIBSVGA=
20case ${host} in
21  *-*-linux*)
22        JOYSTICK=port/linux/joystick.o
23        SOUND=port/sgi/sound.o
24        AC_CHECK_HEADER(vga.h,LIBSVGA=libsvgawin.a,)
25        ;;
26  mips-sgi-irix*)
27        SOUND=port/sgi/sound.o
28        TIMING=port/sgi/timing.o
29        ;;
30  powerpc-*-aix4*)
31        SOUND=port/aix/sound.o
32        ;;
33  *)
34        ;;
35esac
36AC_SUBST(JOYSTICK)
37AC_SUBST(SOUND)
38AC_SUBST(TIMING)
39AC_SUBST(LIBSVGA)
40
41AC_CHECK_FUNCS(atexit on_exit, break)
42AB_C_BIGENDIAN
43
44AC_LANG_SAVE
45AC_LANG_CPLUSPLUS
46AB_ADD_FLAGS(-fno-exceptions -fno-rtti)
47AC_LANG_RESTORE
48
49mkdir -p port/unix port/x11 port/svga port/linux port/sgi port/aix
50
51AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the repository browser.