source: trunk/third/xalf/configure.in @ 16253

Revision 16253, 2.5 KB checked in by ghudson, 23 years ago (diff)
Merge with xalf 0.12 (missing some IRIX changes).
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(src/xalf.c)
3
4AM_INIT_AUTOMAKE(xalf, 0.12)
5
6dnl Specify a header configuration file
7AM_CONFIG_HEADER(config.h)
8
9dnl Checks for programs.
10AC_PROG_CC
11
12dnl Initialize libtool
13dnl AM_DISABLE_STATIC
14AM_PROG_LIBTOOL
15
16AM_SANITY_CHECK
17
18AC_PROG_INSTALL
19AC_PROG_LN_S
20AC_PROG_MAKE_SET
21
22dnl Checks for libraries.
23AM_PATH_GTK(1.2.0)
24AC_PATH_XTRA
25
26AC_CHECK_FUNCS([unsetenv])
27
28dnl Check for getopt_long, substitute the distributed versions if not
29AC_CHECK_FUNC(getopt_long,,[LIBOBJS="$LIBOBJS getopt.o getopt1.o"])
30AC_SUBST(LIBOBJS)
31
32dnl Check if ld-linux is available, eg. LD_PRELOAD can handle multiple libraries.
33dnl A cleaner solution would be nice.
34AC_CHECK_FILE(/lib/ld-linux.so.1, [AC_DEFINE(MULTI_PRELOAD)])
35AC_CHECK_FILE(/lib/ld-linux.so.2, [AC_DEFINE(MULTI_PRELOAD)])
36
37dnl GNOME capplet
38AC_ARG_ENABLE(capplet, [  --enable-capplet        build the GNOME capplet [default=yes]],[enable_capplet="$enableval"],[enable_capplet=yes])
39if test "$enable_capplet" = "yes"; then                                         
40  AC_MSG_CHECKING([for GNOME control center config])                           
41  GNOME_CC_CFLAGS="`gnome-config --cflags capplet`"                             
42  GNOME_CC_LIBS="`gnome-config --libs capplet`"                                 
43  if test $? -ne 0; then                                                       
44    AC_MSG_RESULT([no])                                                         
45    AC_MSG_WARN([Can't run "gnome-config capplet", not building capplet])       
46    enable_capplet=no
47  else                                                                         
48    AC_MSG_RESULT([yes])                                                       
49    AC_SUBST(GNOME_CC_CFLAGS)                                                   
50    AC_SUBST(GNOME_CC_LIBS)                                                     
51  fi                                                                           
52fi   
53AM_CONDITIONAL(COMPILE_CAPPLET, test x$enable_capplet = xyes)
54
55case "$host" in
56  *-sgi-irix6*)
57    need_ldinit=yes
58    dnl If we are building N32 binaries, use the _RLDN32_LIST variable.
59    /usr/sbin/getabi add "$CFLAGS" > /dev/null 2>&1
60    case $? in
61      3)
62        AC_DEFINE(RLD_LIST, "_RLDN32_LIST")
63        ;;
64      *)
65        AC_DEFINE(RLD_LIST, "_RLD_LIST")
66        ;;
67    esac
68    ;;
69  *)
70    need_ldinit=no
71    ;;
72esac
73AM_CONDITIONAL(NEED_LD_INIT_OPTION, test x$need_ldinit = xyes)
74
75AC_DEFINE(DEFAULT_TIMEOUT, 240)
76
77AC_OUTPUT(
78Makefile
79extras/Makefile
80lib/Makefile
81src/Makefile
82capplet/Makefile
83)
84
Note: See TracBrowser for help on using the repository browser.