File: configure.ac

package info (click to toggle)
wordnet 1%3A3.0-24
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 21,292 kB
  • ctags: 722
  • sloc: sh: 10,759; ansic: 5,870; yacc: 758; ruby: 634; lex: 417; python: 311; makefile: 136
file content (90 lines) | stat: -rw-r--r-- 2,287 bytes parent folder | download | duplicates (7)
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.59)
AC_INIT(WordNet, 3.0, [wordnet@princeton.edu], wordnet)
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADER([config.h])

AC_PREFIX_DEFAULT([/usr/local/WordNet-3.0])
AH_TEMPLATE([DEFAULTPATH],[The default search path for WordNet data files])
AC_DEFINE_UNQUOTED(DEFAULTPATH, "${prefix}/share/wordnet", "Path to WordNet dictionaries")

# Checks for programs.
AC_PROG_CC
AC_PROG_RANLIB
AC_PROG_LEX
AC_PROG_YACC
AC_PROG_INSTALL
AM_PROG_LIBTOOL

# Figure out if we're running flex
AC_MSG_RESULT([$LEX])
AM_CONDITIONAL(LEX_TEST, test x$LEX = xflex)

dnl Checks for libraries.
AC_CHECK_LIB(tcl8.4, main, $())
AC_CHECK_LIB(tk8.4, main, $())
#AC_DEFINE_UNQUOTED(TK_XINCLUDES, "${prefix}/include/tcl8.4", "Path to Tcl/tk includes")
#AC_SUBST([TK_PREFIX])
#AC_SUBST([TCL_INCLUDE_SPEC])

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([locale.h malloc.h stdlib.h string.h])

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([strchr strdup strrchr strstr strtol])

# dictzip is only used for dict format
AC_CHECK_PROGS(DICTZIP,dictzip cat)

# Set HAVE_LANGINFO_CODESET if nl_langinfo is found

AC_LANGINFO_CODESET

AM_INIT_AUTOMAKE(WordNet, 3.0)

SC_PATH_TCLCONFIG
SC_PATH_TKCONFIG
SC_LOAD_TCLCONFIG
SC_LOAD_TKCONFIG

# This doesn't do anything
AC_CONFIG_COMMANDS([default])

AC_CONFIG_FILES([Makefile
             dict/Makefile dict/dbfiles/Makefile
	     doc/Makefile
	     doc/html/Makefile doc/man/Makefile
	     doc/pdf/Makefile doc/ps/Makefile
	     include/Makefile
             src/Makefile src/grind/Makefile
	     lib/Makefile lib/wnres/Makefile
	     contrib/Makefile contrib/wordnet_structures/Makefile])

AC_OUTPUT

AC_MSG_RESULT(
[
WordNet is now configured

  Installation directory:               ${prefix}

  To build and install WordNet:

    make
    make install

  To run, environment variables should be set as follows:

    PATH - include ${bindir}
    WNHOME - if not using default installation location, set to ${prefix}

    See INSTALL file for details and additional environment variables
    which may need to be set on your system.

])