File: configure.in

package info (click to toggle)
skktools 1.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 924 kB
  • ctags: 143
  • sloc: sh: 7,211; ansic: 1,251; perl: 798; lisp: 269; ruby: 133; makefile: 98; awk: 94; cpp: 73; sed: 1
file content (74 lines) | stat: -rw-r--r-- 1,971 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
dnl -*- mode: autoconf -*-
dnl Process this file with autoconf to produce a configure script.
AC_INIT(skkdic-count.c)
AC_CONFIG_HEADER(config.h)

dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PATH_PROG(BZIP2, bzip2,, $PATH)
AC_PATH_PROG(DATE, date,, $PATH)
AC_PATH_PROG(GZIP, gzip,, $PATH)
AC_PATH_PROG(MD5, md5,, $PATH)
if test "x$ac_cv_path_MD5" = x; then
    AC_PATH_PROG(MD5, md5sum,, $PATH)
fi
AC_PATH_PROG(TAR, tar,, /usr/local/bin:$PATH)
dnl Checks for executable suffix.
AC_EXEEXT

dnl Checks for libraries.

AC_ARG_WITH(gdbm,
[  --with-gdbm             use gdbm instead of ndbm],
[WITH_GDBM="$withval"])

if test "$WITH_GDBM" = yes; then
   AC_CHECK_LIB(gdbm, dbm_open,, AC_CHECK_LIB(gdbm_compat, dbm_open,,, -lgdbm))
   if test "$ac_cv_lib_gdbm_compat_dbm_open" = yes; then
      AC_CHECK_LIB(gdbm, gdbm_open)
   fi
fi

if test "x$LIBS" = x; then
   AC_CHECK_FUNC(dbm_open,, AC_CHECK_LIB(ndbm, dbm_open))
   if test "$ac_cv_func_dbm_open" = no; then
      if test "x$LIBS" = x; then
         AC_CHECK_LIB(db, __db_ndbm_open)
      fi
      if test "x$LIBS" = x; then
         AC_CHECK_LIB(gdbm, dbm_open,, AC_CHECK_LIB(gdbm_compat, dbm_open,,, -lgdbm))
	 if test "$ac_cv_lib_gdbm_compat_dbm_open" = yes; then
	    AC_CHECK_LIB(gdbm, gdbm_open)
    	 fi
      fi
   fi
fi

PKG_CHECK_MODULES(GLIB2, glib-2.0 >= 2.0.0, HAVE_GLIB2=yes, HAVE_GLIB2=no)
case "$HAVE_GLIB2" in
	yes) SKKDIC_EXPR2="skkdic-expr2\${EXEEXT}" ;;
	no)  SKKDIC_EXPR2="" ;;
esac
AC_SUBST(GLIB2_LIBS)
AC_SUBST(GLIB2_CFLAGS)
AC_SUBST(SKKDIC_EXPR2)

dnl Checks for header files.
AC_CHECK_HEADERS(fcntl.h)
AC_CHECK_HEADERS(malloc.h)

if test "$ac_cv_func_dbm_open" = yes || test "$ac_cv_lib_ndbm_dbm_open" = yes; then
    AC_CHECK_HEADERS(ndbm.h)
    if test "$ac_cv_header_ndbm_h" = no; then
	AC_CHECK_HEADERS(db1/ndbm.h)
    fi
fi

dnl Checks for typedefs, structures, and compiler characteristics.

dnl Checks for library functions.
AC_TYPE_SIGNAL

AC_OUTPUT(Makefile)