⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 java.m4

📁 xgrafix 是PTSG模拟程序中的图形截面库 改版本是最新版本
💻 M4
字号:
dnl ######################################################################dnldnl File:	java.m4dnldnl Purpose:	Determine where the java tools, base classes, anddnl             swing extension classes are.dnldnl Version:	$Id: java.m4,v 1.23 2004/08/23 22:06:39 cary Exp $dnldnl Copyright Tech-X Corporation, 2001.  Redistribution allowed provideddnl this copyright statement remains intact.dnldnl ######################################################################dnl ######################################################################dnldnl Determine the location of javadnldnl ######################################################################AC_ARG_WITH(java-home,[  --with-java-home=<location of java>      to set base directory of java],JAVA_HOME="$withval")dnl Look in the usual pathif test -n "$JAVA_HOME"; then  JAVA_PATH=$JAVA_HOME/binelse  JAVA_PATH=/usr/java/java/bin:/mfe/local/java/bin:/usr/local/java2/bin:/usr/local/java/bin:/loc/java/bin:/usr/java/bin:/usr/bin:/usr/lib/j2sdk1.3/bin:/usr/lpp/J1.1.6/bin:/usr/IBMVJava/ide/program/binfiAC_PATH_PROGS(JAVA, java, , $JAVA_PATH)if test -z "$JAVA"; then    AC_MSG_ERROR(Unable to find java in $JAVA_PATH.  Use --with-java-home to set correct base directory of java.)else  JAVA_BINDIR=`dirname $JAVA`  JAVA_BINDIR=`(cd $JAVA_BINDIR; pwd)`  JAVA_HOME=`dirname $JAVA_BINDIR`  JAVA_HOME=`(cd $JAVA_HOME; pwd)`fiJAVAEXEC=$JAVAAC_SUBST(JAVA_BINDIR)AC_SUBST(JAVA_HOME)AC_SUBST(JAVA)AC_SUBST(JAVAEXEC)dnl ######################################################################dnldnl Determine the Java versiondnldnl ######################################################################javaver=`$JAVA_BINDIR/java -version 2>&1 | sed 's/java version \"//' | sed 's/\".*//'`javaver=`echo $javaver | sed 's/ .*$//'`# echo javaver  = \'$javaver\'minorversion=0isdone=""while test $minorversion -lt 5 -a ! "$isdone"; do  minorversion=`expr $minorversion + 1`  # echo minorversion = $minorversion  isver=`echo $javaver | grep 1\.$minorversion\.`  if test -n "$isver"; then    JAVA_MINOR_VERSION=$minorversion    isdone=true  fidone# echo JAVA_MINOR_VERSION is $JAVA_MINOR_VERSIONAC_SUBST(JAVA_MINOR_VERSION)dnl ######################################################################dnldnl Determine the Java toolsdnldnl ######################################################################if test -z "$JAVAC"; then  AC_ARG_WITH(javac,[  --with-javac=<java cmp> to use <java compiler> (jikes) instead of javac],JAVAC="$withval",JAVAC=javac)fiif test "$JAVAC" = javac; then  AC_PATH_PROGS(JAVAC, javac, "", $JAVA_HOME/bin)else  AC_CHECK_PROG(JAVAC, $JAVAC, $JAVAC)fiif test -z "$JAVAC"; then  AC_MSG_WARN(Unable to find $JAVAC in your path.  Java classes will not be created.)  JAVA_MAKEFILES=""else  JAVA=""fiecho ... Using java compiler $JAVACexport JAVACAC_SUBST(JAVAC)dnl ######################################################################dnldnl Determine the location of classes.zipdnldnl ######################################################################JAVA_LIBPATH=$JAVA_HOME/libif test $JAVA_MINOR_VERSION -lt 2; then  AC_PATH_PROGS(CLASSES_ZIP, classes.zip, "", $JAVA_LIBPATH)  if test -z "$CLASSES_ZIP"; then    AC_MSG_WARN(Unable to find classes.zip in $JAVA_LIBPATH.  Use --with-java-home to set correct base directory of java.)  fifiAC_SUBST(CLASSES_ZIP)dnl ######################################################################dnldnl Determine location of the capsapi zip filednldnl ######################################################################dnl JAR_PATH=$HOME/$UNIXFLAVOR/jlib:/usr/local/jlib:/local/jlib:/mfe/local/jlib:/loc/jlib:$JAVA_LIBPATHdnl AC_ARG_WITH(capsapi-zipfile,dnl [  --with-capsapi-zip=<capsapi-zip file>     to set location of Netscape's capsapi zip file],dnl CAPSAPI_ZIP="$withval")dnl dnl Look in the usual pathdnl if test -z "$CAPSAPI_ZIP"; thendnl   AC_PATH_PROGS(CAPSAPI_ZIP, capsapi_classes.zip, "", $JAR_PATH)dnl fidnl dnl if test -z "$CAPSAPI_ZIP"; thendnl   AC_MSG_WARN(The capsapi zip file was not found.  It is needed for projects to support Netscape 4.7x.  Use --with-capsapi-zipfile to set.)dnl fidnl AC_SUBST(CAPSAPI_ZIP)dnl ######################################################################dnldnl Determine the locations of the jar utilitydnldnl ######################################################################dnl Look in the usual pathAC_PATH_PROGS(JAR, jar, "", $JAVA_HOME/bin:$PATH)if test -z "$JAR"; then  AC_MSG_ERROR(The jar utility was not found in the Java home or the path.  Use --with-java-home to set base directory of java.)fiAC_SUBST(JAR)dnl ######################################################################dnldnl Determine location of Swingdnldnl ######################################################################dnl JRC: No need for swing anymore.dnl AC_ARG_WITH(swing-jarfile,dnl [  --with-swing-jarfile=<swing-jar>         to set location of the swing jarfile],dnl SWING_JAR="$withval")dnl if test -n "$SWING_JAR"; thendnl   if ! test -f $SWING_JAR; thendnl     AC_MSG_ERROR(File $SWING_JAR not found.  Use --with-swing-jarfile to set correctly)dnl   fidnl elsednl   AC_PATH_PROGS(SWING_JAR, swing.jar, "", $JAR_PATH)dnl   if test -z "$SWING_JAR"; thendnl     AC_MSG_WARN(The swing jar file was not found.  This is okay if you are using Java1.2 or later.  Use --with-swing-jarfile to set.)dnl   fidnl fidnl AC_SUBST(SWING_JAR)dnl ######################################################################dnldnl Find javadocs documentation programs and setup docs directorydnldnl ######################################################################AC_PATH_PROGS(JAVADOC, javadoc, "", $JAVA_HOME/bin)if test -z "$JAVADOC"; then AC_MSG_WARN(The javadoc utility was not found in the Java home.  Use --with-java-home to set base directory of java.)fiAC_SUBST(JAVADOC)if test ! -d docs; then mkdir docs; fiif test ! -d docs/javaapi; then mkdir docs/javaapi; fidnl ######################################################################dnldnl Link the classes into the html subdirectory and the jars into the dnl classes subdirectorydnldnl ######################################################################echo $ac_n creating the links for Java to work... $ac_cif test -d html/classes; then   for i in "$CLASSES_ZIP" "$SWING_JAR" "$CAPSAPI_ZIP"; do    if test -n "$i"; then      fname=`basename $i`      # echo working on $i      rm -f html/classes/$fname      ln -s $i html/classes/$fname    fi  doneelif test ! -d classes; then   mkdir classes  cd classes  for i in "$CLASSES_ZIP" "$SWING_JAR" "$CAPSAPI_ZIP"; do    if test -n "$i"; then      fname=`basename $i`      # echo working on $i      rm -f $fname      ln -s $i $fname    fi  done  cd ..fiif test ! -d html; then   mkdir html  cd html  rm -f classes  ln -s ../classes .  cd ..  echo " done."fi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -