📄 configure
字号:
rm -f conftest* cat > conftest.java <<EOFclass conftest { public static void main( String args[] ) { System.out.println( "Hello world" ); } }EOF pac_jcompile='${pac_JC} ${pac_JFLAGS} conftest.java 1>&5' if { (eval echo configure:909: \"$pac_jcompile\") 1>&5; (eval $pac_jcompile) 2>&5; } && test -s conftest.class ; then rm -rf conftest* ; pac_java_working=yes else rm -rf conftest* ; pac_java_working=no fi if test "$pac_java_working" = "yes" ; then echo "$ac_t""yes" 1>&6 break else echo "$ac_t""no" 1>&6 echo $ac_n "checking for working Java in user's PATH""... $ac_c" 1>&6echo "configure:921: checking for working Java in user's PATH" >&5 JAVA_HOME="" fi fi fi donefiif test -z "${JAVA_HOME}" ; then echo "$ac_t""not found" 1>&6fi if test -z "$JAVA_HOME" ; then# Locate Java in known location ac_aux_dir=for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f $ac_dir/install.sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break fidoneif test -z "$ac_aux_dir"; then { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }fiac_config_guess=$ac_aux_dir/config.guessac_config_sub=$ac_aux_dir/config.subac_configure=$ac_aux_dir/configure # This should be Cygnus configure.JAVA_HOME=""# Determine the system typesubdir=""# Make sure we can run config.sub.if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }fiecho $ac_n "checking host system type""... $ac_c" 1>&6echo "configure:964: checking host system type" >&5host_alias=$hostcase "$host_alias" inNONE) case $nonopt in NONE) if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } fi ;; *) host_alias=$nonopt ;; esac ;;esachost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`echo "$ac_t""$host" 1>&6case "$host" in mips-sgi-irix*) if test -d "/software/irix" ; then subdir="irix" elif test -d "/software/irix-6" ; then subdir="irix-6" fi ;; *linux*) if test -d "/software/linux" ; then subdir="linux" fi ;; *solaris*) if test -d "/software/solaris" ; then subdir="solaris" elif test -d "/software/solaris-2" ; then subdir="solaris-2" fi ;; *sun4*) if test -d "/software/sun4" ; then subdir="sun4" fi ;; *aix*) if test -d "/software/aix-4" ; then subdir="aix-4" fi ;; *rs6000*) if test -d "/software/aix-4" ; then subdir="aix-4" fi ;; *freebsd*) if test -d "/software/freebsd" ; then subdir="freebsd" fiesac#if test -z "$subdir" ; then if test -d "/software/common" ; then subdir="common" fifi#echo $ac_n "checking for Java in known locations""... $ac_c" 1>&6echo "configure:1032: checking for Java in known locations" >&5# Make sure that we have glob expansion turned onset +freverse_dirs=""for dir in \ /usr \ /usr/jdk* \ /usr/j2sdk* \ /usr/java* \ /usr/java/j2sdk* \ /usr/local \ /usr/local/java* \ /usr/local/jdk* \ /usr/local/j2sdk* \ /usr/contrib \ /usr/contrib/java* \ /usr/contrib/jdk* \ /usr/contrib/j2sdk* \ $HOME/java* \ $HOME/jdk* \ $HOME/j2sdk* \ /opt/jdk* \ /opt/j2sdk* \ /opt/java* \ /opt/local \ /opt/local/jdk* \ /opt/local/j2sdk* \ /opt/local/java* \ /Tools/jdk* \ /Tools/j2sdk* \ /software/$subdir/apps/packages/java* \ /software/$subdir/apps/packages/jdk* \ /software/$subdir/apps/packages/j2sdk* \ /software/$subdir/com/packages/java* \ /software/$subdir/com/packages/jdk* \ /software/$subdir/com/packages/j2sdk* \ /soft/apps/packages/java* \ /soft/apps/packages/jdk* \ /soft/apps/packages/j2sdk* \ /soft/com/packages/java* \ /soft/com/packages/jdk* \ /soft/com/packages/j2sdk* \ /local/encap/java* \ /local/encap/j2sdk* \ /local/encap/jdk* ; do if test -d $dir ; then reverse_dirs="$dir $reverse_dirs" fidonefor dir in $reverse_dirs ; do if test -d $dir ; then case "$dir" in *java-workshop* ) if test -d "$dir/JDK/bin" ; then if test -x "$dir/JDK/bin/java" \ -a -x "$dir/JDK/bin/javac" ; then JAVA_HOME="$dir/JDK" fi fi ;; *java* | *jdk* | *j2sdk* ) if test -x "$dir/bin/java" -a -x "$dir/bin/javac" ; then JAVA_HOME="$dir" fi ;; esac # Not all releases work. Try a simple program if test -n "${JAVA_HOME}" ; then echo "$ac_t""found ${JAVA_HOME}" 1>&6 echo $ac_n "checking if ${JAVA_HOME}/bin/javac compiles""... $ac_c" 1>&6echo "configure:1102: checking if ${JAVA_HOME}/bin/javac compiles" >&5 pac_JC="${JAVA_HOME}/bin/javac"pac_JFLAGS="" rm -f conftest* cat > conftest.java <<EOFclass conftest { public static void main( String args[] ) { System.out.println( "Hello world" ); } }EOF pac_jcompile='${pac_JC} ${pac_JFLAGS} conftest.java 1>&5' if { (eval echo configure:1121: \"$pac_jcompile\") 1>&5; (eval $pac_jcompile) 2>&5; } && test -s conftest.class ; then rm -rf conftest* ; pac_java_working=yes else rm -rf conftest* ; pac_java_working=no fi if test "$pac_java_working" = "yes" ; then echo "$ac_t""yes" 1>&6 break else echo "$ac_t""no" 1>&6 echo $ac_n "checking for working Java in known locations""... $ac_c" 1>&6echo "configure:1133: checking for working Java in known locations" >&5 JAVA_HOME="" fi fi fidoneif test -z "${JAVA_HOME}" ; then echo "$ac_t""not found" 1>&6fi fi if test -z "$JAVA_HOME" ; then echo "configure: warning: Cannot locate JAVA in known locations and \$PATH !" 1>&2 if test "$enable_softerror" = "yes" ; then echo "configure: warning: Put JAVA in your path or supply it as an argument to configure " 1>&2 exit 0else { echo "configure: error: Put JAVA in your path or supply it as an argument to configure " 1>&2; exit 1; }fi else# Set FOUND_ENV_JAVA_HOME to indicate JAVA_HOME is found in PAC_XXX_JAVA FOUND_ENV_JAVA_HOME=yes fifi# Set the JAVA related tools, like javac and jar.JC="$JAVA_HOME/bin/javac"RMIC="$JAVA_HOME/bin/rmic"JAR="$JAVA_HOME/bin/jar"if test $enable_jdb = "yes" ; then JVM="$JAVA_HOME/bin/jdb"else JVM="$JAVA_HOME/bin/java"fiif test "$FOUND_ENV_JAVA_HOME" = "no" ; then echo $ac_n "checking if $JC compiles""... $ac_c" 1>&6echo "configure:1172: checking if $JC compiles" >&5 if test -x "$JC" ; then pac_JC="$JC"pac_JFLAGS="" rm -f conftest* cat > conftest.java <<EOFclass conftest { public static void main( String args[] ) { System.out.println( "Hello world" ); } }EOF pac_jcompile='${pac_JC} ${pac_JFLAGS} conftest.java 1>&5' if { (eval echo configure:1192: \"$pac_jcompile\") 1>&5; (eval $pac_jcompile) 2>&5; } && test -s conftest.class ; then rm -rf conftest* ; pac_java_working=yes else rm -rf conftest* ; pac_java_working=no fi if test "$pac_java_working" = "yes" ; then echo "$ac_t""yes" 1>&6 else echo "$ac_t""no" 1>&6 if test "$enable_softerror" = "yes" ; then echo "configure: warning: $JC does not compile, check JAVA_HOME = $JAVA_HOME " 1>&2 exit 0else { echo "configure: error: $JC does not compile, check JAVA_HOME = $JAVA_HOME " 1>&2; exit 1; }fi fi else echo "$ac_t""no" 1>&6 if test "$enable_softerror" = "yes" ; then echo "configure: warning: $JC does not exist, check JAVA_HOME = $JAVA_HOME " 1>&2 exit 0else { echo "configure: error: $JC does not exist, check JAVA_HOME = $JAVA_HOME " 1>&2; exit 1; }fi fififor exe in "$RMIC" "$JAR" "$JVM" ; do echo $ac_n "checking if $exe exists""... $ac_c" 1>&6echo "configure:1226: checking if $exe exists" >&5 if test -x "$exe" ; then echo "$ac_t""yes" 1>&6 else echo "$ac_t""no" 1>&6 if test "$enable_softerror" = "yes" ; then echo "configure: warning: $exe does NOT exist, check JAVA_HOME = $JAVA_HOME " 1>&2 exit 0else { echo "configure: error: $exe does NOT exist, check JAVA_HOME = $JAVA_HOME " 1>&2; exit 1; }fi fidoneecho $ac_n "checking if $JC compiles Swing-1.1.1 code""... $ac_c" 1>&6echo "configure:1243: checking if $JC compiles Swing-1.1.1 code" >&5pac_JC="$JC"pac_JFLAGS="" rm -f conftest* cat > conftest.java <<EOFimport javax.swing.*;class conftest {public static void main( String args[] ){ JFrame frame = new JFrame(); System.out.println( "Checking Swing" );}}EOF pac_jcompile='${pac_JC} ${pac_JFLAGS} conftest.java 1>&5' if { (eval echo configure:1265: \"$pac_jcompile\") 1>&5; (eval $pac_jcompile) 2>&5; } && test -s conftest.class ; then rm -rf conftest* ; pac_java_working=yes else rm -rf conftest* ; pac_java_working=no fiif test "$pac_java_working" = "yes" ; then echo "$ac_t""yes, assume Java 2 SDK!" 1>&6 enable_internalswing=no SWING_LIBS=""else echo "$ac_t""no, assume Java 1 SDK!" 1>&6 enable_internalswing=yes if test -f "$JAVA_HOME/lib/classes.zip" ; then JAVA_LIBS="$JAVA_HOME/lib/rt.jar:$JAVA_HOME/lib/classes.zip:$JAVA_HOME/classes" else echo "configure: warning: $JAVA_HOME/lib/classes.zip does NOT exist" 1>&2 if test "$enable_softerror" = "yes" ; then echo "configure: warning: JAVA_LIBS cannot be set, neither can CLASSPATH ! " 1>&2 exit 0else { echo "configure: error: JAVA_LIBS cannot be set, neither can CLASSPATH ! " 1>&2; exit 1; }fi fifiif test "$enable_internalswing" = "yes" ; then echo $ac_n "checking if $JC with swing.jar compiles Swing-1.1.1 code""... $ac_c" 1>&6echo "configure:1295: checking if $JC with swing.jar compiles Swing-1.1.1 code" >&5 pac_JC="$JC"pac_JFLAGS="-classpath $JAVA_LIBS:$srcdir/swing/swing.jar:. -d ." rm -f conftest* cat > conftest.java <<EOFimport javax.swing.*;class conftest {public static void main( String args[] ){ JFrame frame = new JFrame(); System.out.println( "Checking Swing" );} }EOF pac_jcompile='${pac_JC} ${pac_JFLAGS} conftest.java 1>&5' if { (eval echo configure:1317: \"$pac_jcompile\") 1>&5; (eval $pac_jcompile) 2>&5; } && test -s conftest.class ; then rm -rf conftest* ; pac_java_working=yes else rm -rf conftest* ; pac_java_working=no fi if test "$pac_java_working" = "yes" ; then echo "$ac_t""yes" 1>&6 else echo "$ac_t""no" 1>&6 echo "configure: warning: $JC cannot compile with Jumpshot-3 !" 1>&2 if test "$enable_softerror" = "yes" ; then echo "configure: warning: Jumpshot-3 can be compiled with Java 1.1.5 or better including any Java 2 SDK. " 1>&2 exit 0else { echo "configure: error: Jumpshot-3 can be compiled with Java 1.1.5 or better including any Java 2 SDK. " 1>&2; exit 1; }fi fifi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -