Develop and Download Open Source Software

Browse CVS Repository

Diff of /freewnn/FreeWnn/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.56 by aonoto, Thu Aug 1 18:43:07 2013 UTC revision 1.57 by aonoto, Sat Aug 3 14:56:59 2013 UTC
# Line 139  fi Line 139  fi
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)
# Line 413  case $host in Line 413  case $host in
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      ;;      ;;
# Line 497  AC_SEARCH_LIBS(crypt, crypt) Line 497  AC_SEARCH_LIBS(crypt, crypt)
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.
# Line 636  AC_FUNC_SETPGRP Line 633  AC_FUNC_SETPGRP
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 \
# Line 646  AC_CHECK_FUNCS(random drand48 fchmod get Line 649  AC_CHECK_FUNCS(random drand48 fchmod get
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=
# Line 677  if test $client = true; then Line 681  if test $client = true; then
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=

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26