| 139 |
if test $client = true; then |
if test $client = true; then |
| 140 |
SUBDIRS="$SUBDIRS \$(CLIENT_SUBDIRS)" |
SUBDIRS="$SUBDIRS \$(CLIENT_SUBDIRS)" |
| 141 |
dnl currently client is only uum and its man is in SERVER_WNNMANDIR |
dnl currently client is only uum and its man is in SERVER_WNNMANDIR |
| 142 |
dnl WNNMANDIR=$WNNMANDIR \$(CLIENT_WNNMANDIR)" |
dnl WNNMANDIR="$WNNMANDIR \$(CLIENT_WNNMANDIR)" |
| 143 |
fi |
fi |
| 144 |
|
|
| 145 |
AC_SUBST(SUBDIRS) |
AC_SUBST(SUBDIRS) |
| 413 |
if test $GCC = yes; then |
if test $GCC = yes; then |
| 414 |
CCOPTIONS="-Dsun -D`uname -p` -DSVR4 -DSYSV" |
CCOPTIONS="-Dsun -D`uname -p` -DSVR4 -DSYSV" |
| 415 |
else |
else |
| 416 |
# TODO: need change for sparcv9 / x64 architecture ... |
# TODO: need change for sparcv9 / x64 architecture ... |
| 417 |
CCOPTIONS="-Xc -xF -xcg92 -Dsun -D`uname -p` -DSVR4 -DSYSV" |
CCOPTIONS="-Xc -xF -xcg92 -Dsun -D`uname -p` -DSVR4 -DSYSV" |
| 418 |
fi |
fi |
| 419 |
;; |
;; |
| 497 |
AC_CHECK_LIB(socket, connect) |
AC_CHECK_LIB(socket, connect) |
| 498 |
AC_CHECK_LIB(bind, getservbyname) |
AC_CHECK_LIB(bind, getservbyname) |
| 499 |
AC_SEARCH_LIBS(gethostbyname, nsl) |
AC_SEARCH_LIBS(gethostbyname, nsl) |
| 500 |
dnl libutil only needed by uum w/openpty... |
dnl libutil only needed by uum with openpty... (determine later) |
| 501 |
dnl FIXME: deals with Linux that have both ptsname & openpty |
AC_CHECK_LIB(util, openpty, [HAVE_LIBUTIL='have_libutil']) |
|
AC_CHECK_LIB(util, openpty, [UUM_LIBS="$UUM_LIBS -lutil"]) |
|
|
AC_SUBST(UUM_LIBS) |
|
|
|
|
| 502 |
|
|
| 503 |
dnl |
dnl |
| 504 |
dnl Checks for header files. |
dnl Checks for header files. |
| 633 |
dnl FreeWnn do not use the 3rd parameter of wait3(). |
dnl FreeWnn do not use the 3rd parameter of wait3(). |
| 634 |
dnl AC_FUNC_WAIT3 |
dnl AC_FUNC_WAIT3 |
| 635 |
|
|
| 636 |
|
olibs="$LIBS" |
| 637 |
|
if test "x$HAVE_LIBUTIL" = "xhave_libutil"; then |
| 638 |
|
# openpty needs libutil in AC_CHECK_FUNCS, so add temporally |
| 639 |
|
LIBS="$LIBS -lutil" |
| 640 |
|
fi |
| 641 |
|
|
| 642 |
dnl NOTE: FD_SET is defined as macro on many systems. But this check |
dnl NOTE: FD_SET is defined as macro on many systems. But this check |
| 643 |
dnl will be done in Wnn/include/wnn_os.h , so don't care... |
dnl will be done in Wnn/include/wnn_os.h , so don't care... |
| 644 |
AC_CHECK_FUNCS(random drand48 fchmod getopt killpg \ |
AC_CHECK_FUNCS(random drand48 fchmod getopt killpg \ |
| 649 |
dnl for bcopy/index -> memcpy/strchr conversion (preparation): |
dnl for bcopy/index -> memcpy/strchr conversion (preparation): |
| 650 |
AC_CHECK_FUNCS(bcopy bzero bcmp index rindex \ |
AC_CHECK_FUNCS(bcopy bzero bcmp index rindex \ |
| 651 |
memcpy memmove memset strchr strrchr) |
memcpy memmove memset strchr strrchr) |
| 652 |
|
LIBS="${olibs}" |
| 653 |
|
|
| 654 |
dnl Check fallback functions for jserver (should use AC_REPLACE_FUNCS?) |
dnl Check fallback functions for jserver (should use AC_REPLACE_FUNCS?) |
| 655 |
JS_SUPPORTOBJS= |
JS_SUPPORTOBJS= |
| 681 |
fi |
fi |
| 682 |
fi |
fi |
| 683 |
|
|
| 684 |
|
dnl delayed check whether we use libutil or not |
| 685 |
|
dnl Environment that has ptsname & openpty should use ptsname and |
| 686 |
|
dnl libutil is not needed. |
| 687 |
|
if test $client = true; then |
| 688 |
|
AC_CHECK_FUNCS([ptsname], [HAVE_PTSNAME='have_ptsname']) |
| 689 |
|
AC_MSG_CHECKING([whether we use libutil for uum]) |
| 690 |
|
case "x$HAVE_PTSNAME$HAVE_LIBUTIL" in |
| 691 |
|
# 'xhave_ptsnamehave_libutil') ;; |
| 692 |
|
# 'xhave_ptsname') ;; |
| 693 |
|
'xhave_libutil') |
| 694 |
|
AC_MSG_RESULT(yes) |
| 695 |
|
UUM_LIBS="$UUM_LIBS -lutil" ;; |
| 696 |
|
# 'x') ;; |
| 697 |
|
*) |
| 698 |
|
AC_MSG_RESULT(no) |
| 699 |
|
;; |
| 700 |
|
esac |
| 701 |
|
AC_SUBST(UUM_LIBS) |
| 702 |
|
fi |
| 703 |
|
|
| 704 |
dnl delayed check for --enable-client-set[ug]id |
dnl delayed check for --enable-client-set[ug]id |
| 705 |
if test $client = true; then |
if test $client = true; then |
| 706 |
guess_setuid= |
guess_setuid= |