File: configure.ac

package info (click to toggle)
gworkspace 0.8.3-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 13,648 kB
  • ctags: 1,130
  • sloc: objc: 66,631; ansic: 309; sh: 299; makefile: 136
file content (51 lines) | stat: -rw-r--r-- 1,931 bytes parent folder | download
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
AC_PREREQ(2.52)
AC_INIT

if test -z "$GNUSTEP_SYSTEM_ROOT"; then
  AC_MSG_ERROR([You must run the GNUstep initialization script first!])
fi

#--------------------------------------------------------------------
# Use config.guess, config.sub and install-sh provided by gnustep-make
#--------------------------------------------------------------------
AC_CONFIG_AUX_DIR([$GNUSTEP_MAKEFILES])

#--------------------------------------------------------------------
# Support for determining mountpoints
#--------------------------------------------------------------------
AC_CHECK_FUNCS(getmntinfo)

AC_CHECK_HEADERS(mntent.h)
AC_CHECK_HEADERS(sys/mntent.h)

AC_CHECK_MEMBER(struct mntent.mnt_dir,[AC_DEFINE(MNT_FSNAME,mnt_fsname,mntent structure member name)],,[#include <mntent.h>])
AC_CHECK_MEMBER(struct mntent.mnt_mountp,[AC_DEFINE(MNT_FSNAME,mnt_special,mntent structure member name)],,[#include <sys/mntent.h>])

AC_CHECK_MEMBER(struct mntent.mnt_dir,[AC_DEFINE(MNT_DIR,mnt_dir,mntent structure member name)],,[#include <mntent.h>])
AC_CHECK_MEMBER(struct mntent.mnt_mountp,[AC_DEFINE(MNT_DIR,mnt_mountp,mntent structure member name)],,[#include <sys/mntent.h>])

AC_CHECK_MEMBER(struct mntent.mnt_dir,[AC_DEFINE(MNT_FSTYPE,mnt_type,mntent structure member name)],,[#include <mntent.h>])
AC_CHECK_MEMBER(struct mntent.mnt_mountp,[AC_DEFINE(MNT_FSTYPE,mnt_fstype,mntent structure member name)],,[#include <sys/mntent.h>])

AC_FUNC_GETMNTENT

#--------------------------------------------------------------------
# Debug logging
#--------------------------------------------------------------------
AC_ARG_ENABLE(debug_log,
  [  --enable-debug-log  		Enable debug logging],,
      enable_debug_log=no)

if test "$enable_debug_log" = "no"; then
 GW_DEBUG_LOG=0
else
 GW_DEBUG_LOG=1
fi

AC_DEFINE_UNQUOTED([GW_DEBUG_LOG], [$GW_DEBUG_LOG], [debug logging])

AC_CONFIG_HEADER([config.h])

AC_CONFIG_FILES([GNUmakefile])

AC_OUTPUT