~ubuntu-branches/ubuntu/oneiric/chemtool/oneiric-proposed

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Potyra
  • Date: 2005-09-18 02:43:31 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050918024331-lrgdmafsouaebfrj
Tags: 1.6.7-2ubuntu1
* import newer debian version; closes: #649 (malone)
* move openbabel to depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
AC_CHECK_LIB(ibs, main)
15
15
dnl Replace `main' with a function in -lm:
16
16
AC_CHECK_LIB(m, acos)
 
17
 
 
18
AC_ARG_ENABLE(enable_gtk1,
 
19
[  --enable-gtk1           Use GTK+-1.x even if GTK+-2.x is available [no]],enable_gtk1=no)
 
20
 
 
21
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 
22
 
 
23
AC_MSG_CHECKING([for GTK version and compile options ])
 
24
 
 
25
if test x$PKG_CONFIG = xno -o x$enable_gtk1 = xyes ; then
17
26
AM_PATH_GTK(1.0.2, , exit 1)
 
27
else
 
28
if $PKG_CONFIG gtk+-2.0 --cflags ; then
 
29
       GTK_CFLAGS="-DGTK2 `$PKG_CONFIG gtk+-2.0 --cflags` "
 
30
       GTK_LIBS=`$PKG_CONFIG gtk+-2.0 --libs`
 
31
dnl    use_gtk2=yes
 
32
        AC_DEFINE(GTK2)
 
33
       enable_stockgtk=yes
 
34
else
 
35
if $PKG_CONFIG --cflags gtk+ ; then
 
36
        GTK_CFLAGS=`$PKG_CONFIG gtk+ --cflags`       
 
37
        GTK_LIBS=`$PKG_CONFIG gtk+ --libs`
 
38
dnl    use_gtk2=no
 
39
fi
 
40
fi
 
41
fi
18
42
 
 
43
dnl AC_MSG_RESULT using GTK2 : $use_gtk2
19
44
 
20
45
dnl Checks for header files.
21
46
AC_PATH_X
22
47
AC_HEADER_DIRENT
23
48
AC_HEADER_STDC
 
49
 
 
50
dnl just an ugly hack to work around the more aggressive header checks
 
51
dnl in recent autoconf. Not sure if we should really rely on include
 
52
dnl paths being provided in CPPFLAGS, not CFLAGS, or if a nested set
 
53
dnl of tests encompassing all dependent headers would be in order.
 
54
dnl
 
55
dnl saved_CPPFLAGS=$CPPFLAGS
 
56
dnl CPPFLAGS="$CFLAGS $CPPFLAGS"
 
57
 
24
58
AC_CHECK_HEADERS(strings.h unistd.h libintl.h)
25
59
 
 
60
dnl CPPFLAGS=$saved_CPPFLAGS
 
61
 
26
62
dnl Checks for typedefs, structures, and compiler characteristics.
27
63
AC_C_CONST
28
64
AC_TYPE_SIZE_T
93
129
dnl "
94
130
 
95
131
AC_MSG_CHECKING(whether to enable locales)
96
 
dnl AC_ARG_ENABLE(locales,
97
 
dnl [  --enable-locales        Use locales [no]],,enable_locales=no)
98
 
dnl if test x$enable_locales = xyes; then
 
132
AC_ARG_ENABLE(locales,
 
133
[  --enable-locales        Support localised messages [yes]],,enable_locales=yes)
 
134
if test x$enable_locales = xyes; then
99
135
if test "$ac_cv_header_libintl_h" = "yes" 
100
136
then
101
137
        AC_MSG_RESULT(yes)
102
138
        AC_DEFINE_UNQUOTED(LOCALEDIR="\"\$datadir/locale"\")
 
139
else
 
140
        AC_MSG_RESULT(no)
 
141
        AC_DEFINE(DISABLE_NLS)
 
142
fi
103
143
else    
104
144
        AC_MSG_RESULT(no)
105
145
        AC_DEFINE(DISABLE_NLS)
169
209
AC_SUBST(EMFLIBS)
170
210
AC_SUBST(MYGTKSRCS)
171
211
AC_SUBST(MYGTKOBJS)
 
212
AC_SUBST(GTK_CFLAGS)
 
213
AC_SUBST(GTK_LIBS)
172
214
 
173
215
AC_OUTPUT(Makefile src-cht/Makefile)