| 11 |
dnl Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999 |
dnl Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999 |
| 12 |
dnl Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992 |
dnl Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992 |
| 13 |
dnl Copyright FreeWnn Project |
dnl Copyright FreeWnn Project |
| 14 |
dnl 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 |
dnl 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
| 15 |
|
dnl 2010 |
| 16 |
dnl |
dnl |
| 17 |
dnl Maintainer: FreeWnn Project |
dnl Maintainer: FreeWnn Project |
| 18 |
dnl |
dnl |
| 314 |
*-*-linux*) |
*-*-linux*) |
| 315 |
CCOPTIONS="-Dlinux -D_GNU_SOURCE -D_POSIX_SOURCE -D_BSD_SOURCE" |
CCOPTIONS="-Dlinux -D_GNU_SOURCE -D_POSIX_SOURCE -D_BSD_SOURCE" |
| 316 |
;; |
;; |
|
*-*-darwin*) |
|
|
if test $GCC = yes; then |
|
|
# Unfortunately, autoconf (at least 2.57) does not recognize |
|
|
# proper CPP. (Normal cpp-precomp nor auto-retrying in basic mode does |
|
|
# not work with pubdic+ processing.) So define here .... |
|
|
# Note: It seems gcc-3.3 (or (probably) later) does not need this. |
|
|
CPP=${CPP:-"$CC -E -no-cpp-precomp"} |
|
|
fi |
|
|
# Don't care other CC-s. |
|
|
;; |
|
| 317 |
*-*-sunos*) |
*-*-sunos*) |
| 318 |
if test $GCC = yes; then |
if test $GCC = yes; then |
| 319 |
CCOPTIONS="-Dsun -Dsparc" |
CCOPTIONS="-Dsun -Dsparc" |
| 326 |
if test $GCC = yes; then |
if test $GCC = yes; then |
| 327 |
CCOPTIONS="-Dsun -D`uname -p` -DSVR4 -DSYSV" |
CCOPTIONS="-Dsun -D`uname -p` -DSVR4 -DSYSV" |
| 328 |
else |
else |
| 329 |
|
# TODO: need change for sparcv9 / x64 architecture ... |
| 330 |
CCOPTIONS="-Xc -xF -xcg92 -Dsun -D`uname -p` -DSVR4 -DSYSV" |
CCOPTIONS="-Xc -xF -xcg92 -Dsun -D`uname -p` -DSVR4 -DSYSV" |
| 331 |
fi |
fi |
| 332 |
;; |
;; |
| 375 |
dnl よいと思われる。 |
dnl よいと思われる。 |
| 376 |
AC_PROG_CPP |
AC_PROG_CPP |
| 377 |
|
|
| 378 |
|
dnl Define cpp for text processing. |
| 379 |
|
AC_MSG_CHECKING([cpp for text processing]) |
| 380 |
|
if test "$GCC" = "yes" -a "$CPP" = "$CC -E"; then |
| 381 |
|
# Need checking your gcc accepts '-traditional-cpp' option? |
| 382 |
|
FZK_PP=${FZK_PP:-"$CPP -traditional-cpp"} |
| 383 |
|
else |
| 384 |
|
FZK_PP=${FZK_PP:-"$CPP"} |
| 385 |
|
fi |
| 386 |
|
AC_MSG_RESULT($FZK_PP) |
| 387 |
|
AC_SUBST(FZK_PP) |
| 388 |
|
|
| 389 |
dnl |
dnl |
| 390 |
dnl Checks for programs. |
dnl Checks for programs. |
| 391 |
dnl |
dnl |
| 406 |
AC_SEARCH_LIBS(crypt, crypt) |
AC_SEARCH_LIBS(crypt, crypt) |
| 407 |
AC_CHECK_LIB(socket, connect) |
AC_CHECK_LIB(socket, connect) |
| 408 |
AC_CHECK_LIB(bind, getservbyname) |
AC_CHECK_LIB(bind, getservbyname) |
| 409 |
AC_CHECK_LIB(nsl, gethostbyname) |
AC_SEARCH_LIBS(gethostbyname, nsl) |
| 410 |
dnl libutil only needed by uum w/openpty... |
dnl libutil only needed by uum w/openpty... |
| 411 |
dnl FIXME: deals with Linux that have both ptsname & openpty |
dnl FIXME: deals with Linux that have both ptsname & openpty |
| 412 |
AC_CHECK_LIB(util, openpty) |
AC_CHECK_LIB(util, openpty) |