Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fc5fe85c27
Fetching contributors…

Cannot retrieve contributors at this time

file 63 lines (50 sloc) 1.76 kb
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
# Process this file with autoconf to produce a configure script.
AC_INIT(juman, 6.0, nl-resource@nlp.kuee.kyoto-u.ac.jp)
AC_PREREQ(2.53)
# AC_REVISION($Revision: 1.9 $)
AC_CONFIG_SRCDIR([juman/juman.c])
AM_INIT_AUTOMAKE(${PACKAGE_NAME}, ${PACKAGE_VERSION})
AM_CONFIG_HEADER([config.h])

# Checks for programs.
AC_PROG_CC
AC_PROG_MAKE_SET
# AC_PROG_RANLIB
AC_PROG_LIBTOOL

LIBJUMAN_VERSION_INFO="4:0:0"
AC_SUBST(LIBJUMAN_VERSION_INFO)

# Checks for libraries.
AC_CHECK_LIB(socket, socket, NET_LIBS="-lsocket $NET_LIBS")
AC_CHECK_LIB(nsl, gethostbyname, NET_LIBS="-lnsl $NET_LIBS")
AC_SUBST(NET_LIBS)

# Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/file.h sys/socket.h unistd.h windows.h winsock.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_OFF_T
AC_STRUCT_TM

# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_FUNC_MMAP
AC_TYPE_SIGNAL
AC_FUNC_STAT
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([getcwd gethostbyname memset socket strcasecmp strchr strdup])


# Set additional definitions.
AC_DEFINE_UNQUOTED(NUMERIC_P, 1, [Define numeric_p])
AC_DEFINE_UNQUOTED(THROUGH_P, 1, [Define through_p])

RC_DEFAULT="$sysconfdir/jumanrc"

# Set RC_DEFAULT in config.h.
if test "x$prefix" = xNONE; then
   prefix="${ac_default_prefix}"
fi
if test "x$exec_prefix" = xNONE; then
   exec_prefix='${prefix}'
fi

eval RC_DEFAULT=`eval echo "$RC_DEFAULT"`
AC_DEFINE_UNQUOTED(RC_DEFAULT, "$RC_DEFAULT", [Define to the location of "jumanrc" file.])


AC_CONFIG_FILES([Makefile lib/Makefile makemat/Makefile makeint/Makefile makepat/Makefile juman/Makefile dic/Makefile autodic/Makefile doc/Makefile])
AC_OUTPUT
Something went wrong with that request. Please try again.