| 1 |
dnl |
| 2 |
dnl $Id: configure.in,v 1.1.2.2 1999/04/06 03:12:19 nakanisi Exp $ |
| 3 |
dnl |
| 4 |
|
| 5 |
dnl FreeWnn is a network-extensible Kana-to-Kanji conversion system. |
| 6 |
dnl This file is part of FreeWnn. |
| 7 |
dnl |
| 8 |
dnl Copyright Kyoto University Research Institute for Mathematical Sciences |
| 9 |
dnl 1987, 1988, 1989, 1990, 1991, 1992 |
| 10 |
dnl Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999 |
| 11 |
dnl Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992 |
| 12 |
dnl |
| 13 |
dnl Author: OMRON SOFTWARE Co., Ltd. <freewnn@rd.kyoto.omronsoft.co.jp> |
| 14 |
dnl |
| 15 |
dnl This program is free software; you can redistribute it and/or modify |
| 16 |
dnl it under the terms of the GNU General Public License as published by |
| 17 |
dnl the Free Software Foundation; either version 2, or (at your option) |
| 18 |
dnl any later version. |
| 19 |
dnl |
| 20 |
dnl This program is distributed in the hope that it will be useful, |
| 21 |
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 22 |
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 23 |
dnl GNU General Public License for more details. |
| 24 |
dnl |
| 25 |
dnl You should have received a copy of the GNU General Public License |
| 26 |
dnl along with GNU Emacs; see the file COPYING. If not, write to the |
| 27 |
dnl Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 28 |
dnl |
| 29 |
dnl Commentary: |
| 30 |
dnl |
| 31 |
dnl Change log: |
| 32 |
dnl |
| 33 |
dnl Last modified date: 22,Mar.1999 |
| 34 |
dnl |
| 35 |
|
| 36 |
dnl |
| 37 |
dnl Process this file with autoconf to produce a configure script. |
| 38 |
dnl |
| 39 |
AC_INIT(Wnn/conv/cvt_head.h) |
| 40 |
|
| 41 |
dnl |
| 42 |
dnl Checks for cc and cpp. |
| 43 |
dnl |
| 44 |
AC_PROG_CC |
| 45 |
AC_MSG_CHECKING(for cpp) |
| 46 |
hosttype=`uname` |
| 47 |
CCOPTIONS="" |
| 48 |
CDEBUGFLAGS=-O |
| 49 |
case $hosttype in |
| 50 |
"Linux") |
| 51 |
CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE" |
| 52 |
CDEBUGFLAGS="-O2 -fno-strength-reduce" |
| 53 |
if test -x /lib/cpp; then |
| 54 |
CPP=/lib/cpp |
| 55 |
fi |
| 56 |
;; |
| 57 |
"FreeBSD") |
| 58 |
CCOPTIONS="-DCSRG_BASED" |
| 59 |
CDEBUGFLAGS="-O2 -fno-strength-reduce" |
| 60 |
if test -x /usr/libexec/cpp; then |
| 61 |
CPP=/usr/libexec/cpp |
| 62 |
fi |
| 63 |
;; |
| 64 |
"SunOS") |
| 65 |
if test $CC = gcc; then |
| 66 |
CDEBUGFLAGS=-O2 |
| 67 |
CCOPTIONS="-Dsun -Dsparc -DSVR4 -DSYSV" |
| 68 |
else |
| 69 |
CCOPTIONS="-Xc -xF -xcg92 -Dsun -Dsparc -DSVR4 -DSYSV" |
| 70 |
fi |
| 71 |
if test -x /usr/ccs/lib/cpp; then |
| 72 |
CPP=/usr/ccs/lib/cpp |
| 73 |
fi |
| 74 |
;; |
| 75 |
*) |
| 76 |
AC_MSG_ERROR("This system is not supported.") |
| 77 |
;; |
| 78 |
esac |
| 79 |
AC_PROG_CPP |
| 80 |
|
| 81 |
dnl |
| 82 |
dnl Checks for programs. |
| 83 |
dnl |
| 84 |
AC_PROG_YACC |
| 85 |
AC_PROG_LEX |
| 86 |
dnl AC_PROG_INSTALL |
| 87 |
AC_PROG_LN_S |
| 88 |
AC_PROG_MAKE_SET |
| 89 |
AC_PROG_RANLIB |
| 90 |
AC_SUBST(CCOPTIONS) |
| 91 |
AC_SUBST(CDEBUGFLAGS) |
| 92 |
|
| 93 |
dnl Checks for libraries. |
| 94 |
dnl Replace `main' with a function in -lFS: |
| 95 |
AC_CHECK_LIB(FS, main) |
| 96 |
dnl Replace `main' with a function in -lFresco: |
| 97 |
AC_CHECK_LIB(Fresco, main) |
| 98 |
dnl Replace `main' with a function in -lICE: |
| 99 |
AC_CHECK_LIB(ICE, main) |
| 100 |
dnl Replace `main' with a function in -lPEX5: |
| 101 |
AC_CHECK_LIB(PEX5, main) |
| 102 |
dnl Replace `main' with a function in -lSM: |
| 103 |
AC_CHECK_LIB(SM, main) |
| 104 |
dnl Replace `main' with a function in -lX11: |
| 105 |
AC_CHECK_LIB(X11, main) |
| 106 |
dnl Replace `main' with a function in -lXIE: |
| 107 |
AC_CHECK_LIB(XIE, main) |
| 108 |
dnl Replace `main' with a function in -lXau: |
| 109 |
AC_CHECK_LIB(Xau, main) |
| 110 |
dnl Replace `main' with a function in -lXaw: |
| 111 |
AC_CHECK_LIB(Xaw, main) |
| 112 |
dnl Replace `main' with a function in -lXbsd: |
| 113 |
AC_CHECK_LIB(Xbsd, main) |
| 114 |
dnl Replace `main' with a function in -lXdmcp: |
| 115 |
AC_CHECK_LIB(Xdmcp, main) |
| 116 |
dnl Replace `main' with a function in -lXext: |
| 117 |
AC_CHECK_LIB(Xext, main) |
| 118 |
dnl Replace `main' with a function in -lXi: |
| 119 |
AC_CHECK_LIB(Xi, main) |
| 120 |
dnl Replace `main' with a function in -lXmu: |
| 121 |
AC_CHECK_LIB(Xmu, main) |
| 122 |
dnl Replace `main' with a function in -lXt: |
| 123 |
AC_CHECK_LIB(Xt, main) |
| 124 |
dnl Replace `main' with a function in -lXtf: |
| 125 |
AC_CHECK_LIB(Xtf, main) |
| 126 |
dnl Replace `main' with a function in -lXtst: |
| 127 |
AC_CHECK_LIB(Xtst, main) |
| 128 |
dnl Replace `main' with a function in -lcurses: |
| 129 |
AC_CHECK_LIB(curses, main) |
| 130 |
dnl Replace `main' with a function in -lfl: |
| 131 |
AC_CHECK_LIB(fl, main) |
| 132 |
dnl Replace `main' with a function in -lfont: |
| 133 |
AC_CHECK_LIB(font, main) |
| 134 |
dnl Replace `main' with a function in -loldX: |
| 135 |
AC_CHECK_LIB(oldX, main) |
| 136 |
dnl Replace `main' with a function in -lphigs: |
| 137 |
AC_CHECK_LIB(phigs, main) |
| 138 |
dnl Replace `main' with a function in -lxpg4: |
| 139 |
AC_CHECK_LIB(xpg4, main) |
| 140 |
|
| 141 |
AC_CHECK_LIB(crypt, main) |
| 142 |
AC_CHECK_LIB(socket, main) |
| 143 |
AC_CHECK_LIB(nsl, main) |
| 144 |
|
| 145 |
dnl |
| 146 |
dnl Checks for header files. |
| 147 |
dnl |
| 148 |
AC_PATH_X |
| 149 |
AC_HEADER_STDC |
| 150 |
AC_HEADER_SYS_WAIT |
| 151 |
AC_CHECK_HEADERS(fcntl.h limits.h malloc.h sgtty.h strings.h sys/file.h sys/ioctl.h sys/time.h termio.h unistd.h) |
| 152 |
|
| 153 |
dnl |
| 154 |
dnl Checks for typedefs, structures, and compiler characteristics. |
| 155 |
dnl |
| 156 |
AC_TYPE_MODE_T |
| 157 |
AC_HEADER_TIME |
| 158 |
|
| 159 |
dnl |
| 160 |
dnl Checks for library functions. |
| 161 |
dnl |
| 162 |
AC_PROG_GCC_TRADITIONAL |
| 163 |
AC_FUNC_MEMCMP |
| 164 |
AC_TYPE_SIGNAL |
| 165 |
AC_FUNC_WAIT3 |
| 166 |
AC_CHECK_FUNCS(gethostname mkdir select socket strtol) |
| 167 |
|
| 168 |
dnl |
| 169 |
dnl Creating Makefiles. |
| 170 |
dnl |
| 171 |
AC_OUTPUT(Wnn/man/2.env/wnn/Makefile Wnn/pubdic/Makefile cWnn/uum/Makefile cWnn/man/6.jutil/Makefile cWnn/man/Makefile Wnn/man/4.cmd/Makefile kWnn/uum/Makefile cWnn/td/rk/Makefile cWnn/include/Makefile Wnn/jd/rk.vi/Makefile Wnn/jd/Makefile Makefile kWnn/include/Makefile Wnn/ld/Makefile Wnn/man/2.env/dic/Makefile Wnn/man/2.env/Makefile Wnn/man/3.libwnn/Makefile Wnn/man/6.jutil/Makefile Wnn/uum/Makefile cWnn/man/1.intro/Makefile cWnn/conv/Makefile Wnn/jd/rk/Makefile cWnn/td/Makefile Wnn/man/Makefile cWnn/td/rk_z/Makefile kWnn/conv/Makefile cWnn/man/4.cmd/Makefile cWnn/jlib/Makefile Wnn/include/Makefile Wnn/jutil/Makefile kWnn/jlib/Makefile cWnn/cd/rk_z/Makefile cWnn/Makefile cWnn/cdic/Makefile cWnn/man/2.env/Makefile Wnn/man/3.libwnn/js_lib/Makefile Wnn/man/3.libwnn/rk_lib/Makefile Contrib/dic/gerodic/Makefile kWnn/Makefile cWnn/jserver/Makefile kWnn/kdic/Makefile cWnn/tdic/Makefile Wnn/romkan/Makefile cWnn/cd/Makefile cWnn/jutil/Makefile cWnn/romkan/Makefile kWnn/jserver/Makefile Wnn/Makefile Wnn/man/3.libwnn/jl_lib/Makefile kWnn/romkan/Makefile kWnn/jutil/Makefile Pubdic/Makefile Wnn/conv/Makefile cWnn/cd/rk/Makefile cWnn/td/rk_p/Makefile Wnn/jlib.V3/Makefile kWnn/kd/Makefile Wnn/ld/rk/Makefile cWnn/etc/Makefile Wnn/jlib/Makefile Wnn/jserver/Makefile Wnn/wnncons/dic/Makefile cWnn/cd/rk_p/Makefile kWnn/kd/rk/Makefile Wnn/wnncons/Makefile Wnn/man/3.libwnn/misc_lib/Makefile kWnn/etc/Makefile) |