File: configure.in

package info (click to toggle)
gauche-gtk 0.4.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,520 kB
  • ctags: 3,230
  • sloc: ansic: 6,655; lisp: 4,159; sh: 2,707; makefile: 344
file content (85 lines) | stat: -rw-r--r-- 2,253 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
dnl
dnl Configuring gauche-gtk
dnl  process this file with "autoconf -I `gauche-config --ac`" to
dnl  generate 'configure'.
dnl $Id: configure.in,v 1.18 2004/06/27 04:26:33 shirok Exp $
AC_PREREQ(2.54)
AC_INIT(Gauche-gtk, 0.4.1, shiro@acm.org)
AC_REVISION($Revision: 1.18 $)
AC_CONFIG_HEADER(src/gtk-config.h)
AC_GAUCHE_INIT_EXT
AC_CANONICAL_SYSTEM

# options for configure scripts
AC_ARG_ENABLE(gtkgl,
   AC_HELP_STRING([--enable-gtkgl], [Enable gtkglext interface.]), [
   AC_DEFINE(HAVE_GTKGL, 1)
   GTKGL_SO="gauche-gtkgl.so"
   GTKGL_LIB="-lgtkgl";
   GTKGL_SCM="gtk/gtkgl.scm";
   PANGOFT2_LIB=""
])
AC_ARG_ENABLE(glgd,
   AC_HELP_STRING([--enable-glgd], [Enable glgd interface.]), [
   AC_DEFINE(HAVE_GTKGL, 1)
   AC_DEFINE(HAVE_GLGD, 1)
   GTKGL_SO="gauche-gtkgl.so"
   GTKGL_LIB="-lgtkgl";
   GTKGL_SCM="gtk/gtkgl.scm"
   PANGOFT2_LIB="";
   GLGD_SO="gauche-glgd.so"
   GLGD_LIB="-lglgd";
   GLGD_SCM="gtk/glgd.scm"
])
AC_ARG_ENABLE(glgd-pango,
   AC_HELP_STRING([--enable-glgd-pango], [Enable glgd interface with Pango.]), [
   AC_DEFINE(HAVE_GTKGL, 1)
   AC_DEFINE(HAVE_GLGD, 1)
   AC_DEFINE(HAVE_GLGD_PANGO, 1)
   GTKGL_SO="gauche-gtkgl.so"
   GTKGL_LIB="-lgtkgl";
   GTKGL_SCM="gtk/gtkgl.scm"
   PANGOFT2_LIB="-lpangoft2-1.0";
   GLGD_SO="gauche-glgd.so"
   GLGD_LIB="-lglgd";
   GLGD_SCM="gtk/glgd.scm"
])
AC_SUBST(GTKGL_SO)
AC_SUBST(GTKGL_LIB)
AC_SUBST(GTKGL_SCM)
AC_SUBST(PANGOFT2_LIB)
AC_SUBST(GLGD_SO)
AC_SUBST(GLGD_LIB)
AC_SUBST(GLGD_SCM)

# Sets the default value of INSTALL_TYPE macro.
AC_GAUCHE_INSTALL_TYPE(sys)

# Get compiler parameters which Gauche has been compiled with.
AC_GAUCHE_CC
AC_GAUCHE_FLAGS

# Check for other programs.

# Check for libraries
AC_PATH_XTRA

# Set LDFLAGS to generate shared library.
AC_GAUCHE_FIX_LIBS

  
CFLAGS="$CFLAGS `$GAUCHE_CONFIG --so-cflags`"

# Prepare file list.
gen_files=`cat src/GDKFILES src/GDKPIXBUFFILES src/GTKFILES src/PANGOFILES`
GEN_OBJS="`echo $gen_files | sed 's/\.h/.$(OBJEXT)/g'`"
AC_SUBST(GEN_OBJS)
GEN_SRCS="`echo $gen_files | sed 's/\.h/.c/g'`"
AC_SUBST(GEN_SRCS)
GEN_STUBS="`echo $gen_files | sed 's/\.h/.stub/g'`"
AC_SUBST(GEN_STUBS)

# Output
AC_GAUCHE_MAKE_GPD
echo $PACKAGE_VERSION > VERSION
AC_OUTPUT(Makefile src/Makefile lib/Makefile gtkgl/Makefile glgd/Makefile)