#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell autoconf@gnu.org about your system, echo including any error possibly output before this echo message } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="mk/ptII.mk.in" ac_default_prefix=$PTII # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir localstatedir includedir oldincludedir docdir infodir htmldir dvidir pdfdir psdir libdir localedir mandir DEFS ECHO_C ECHO_N ECHO_T LIBS build_alias host_alias target_alias CMD_PATH FIND GAWK JAVAC JAVA JAR JARSIGNER JAVAWS KEYTOOL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GREP EGREP JAVADOC PTECLIPSE PTCC CXX CXXFLAGS ac_ct_CXX PTJYTHON PTJYTHON_BAT JJTREE PTCCJNI JAVAH MATLAB PTMATLAB_CC CALTROP_DIR CHIC_DIR CLASSPATHSEPARATOR COLT_DIR CMKIT_DIR ECLIPSE_CLASSPATHENTRY_PDE_REQUIREDPLUGINS ECLIPSE_DIR GC_INCLUDE_DIR GC_LD_DIRECTIVE ECLIPSE_EXCLUDING_SRC ECLIPSE_CLASSPATHENTRY_LIBS IMAGEJ_JAR JAI_JARS JAR_INDEX JAVA_SYSTEM_JAR JAVA3D_JARS JAVACC JAVACC_DIR JAVACV_JAR JAVAX_CRYPTO_JAR JDOCBREAKITERATOR JDOCSOURCEFLAGS JDOCTAG JDOCTAGLET JINI_DIR JINI_PRESENT JOYSTICK_JAR JTCLSH JTREE JVERSION JMF_JARS JNA_JAR JODE_CLASSES JYTHON_DIR JXTA_DIR KIELER_JAR KVM_CLASSES KVM_DIR LEJOS_DIR LIBEXPAT_INCLUDE_DIR LIBEXPAT_LIB_DIR MAJOR_OS_NAME MATLAB_DIR MATLAB_LIBDIR MATLAB_64LIBDIR MYSQL_JAR OPENCV_JAR ORACLE_OJDBC_JAR PSDF_DIR PTBACKTRACK_DIR PTBACKTRACK_ECLIPSE_DIR PTBACKTRACK_ECLIPSE_DOC_JARS PTBACKTRACK_ECLIPSE_JARS PTBACKTRACK_ECLIPSE_PACKAGES PTBOOST_INCLUDE PTBSH_JAR PTBSH_MLC_DIR PTBSH_RUN_DIR PTBSH_PACKAGES PTCALTROP_DIR PTCHIC_DIR PTCM_DIR PTCODEGEN_OPTIONAL_PACKAGES PTCOLT_DIR PTCOLT_JARS PTCOLT_PACKAGES PTCOMM_DIR PTCOMM_PACKAGES PTCOPERNICUS_DIR PTCUNIT_DIR PTDATABASE_DIR PTDATABASE_JNLP_JARS PTDATABASE_PACKAGES PTDISTRIBUTED_DIR PTDISTRIBUTED_JARS PTDISTRIBUTED_PACKAGES PTDOCLETS_DIR PTEXCEL_DIR PTEXCEL_PACKAGES PTFUZZY_DIR PTFUZZYENGINE_DIR PTFUZZY_PACKAGES PTGMP_INCLUDE PTGMP_LD_FLAGS PTGMP_LIB PTGRDOMAIN_JAR PTGR_PACKAGES PTGRO_DIR PTGRO_PACKAGES PTII PTITEXTPDF_DIR PTITEXTPDF_JAR PTITEXTPDF_PACKAGES PTJACL_DIR PTJACL_JAR PTJAI_DIR PTJAI_PACKAGES PTJAVACV_DIR PTJAVACV_PACKAGES PTJAVA_DIR PTJAVA_DIR_NO_CYGDRIVE PTJAVA_HOME PTJAVA3D_DIR PTJMF_DIR PTJMF_PACKAGES PTJNI_ARCHITECTURE PTJNI_INCLUDE PTJNI_DL_LIBRARY PTJNI_LIB_ARCHITECTURE PTJNI_NO_CYGWIN PTJNI_GCC_SHARED_FLAG PTJNI_SHAREDLIBRARY_CFLAG PTJNI_SHAREDLIBRARY_LDFLAG PTJNI_SHAREDLIBRARY_PREFIX PTJNI_SHAREDLIBRARY_SUFFIX PTJNI_SHAREDLIBRARY_SUFFIX2 PTJNI_LIBRARIES PTJOGL_DIR PTJOGL_JARS PTJOYSTICK_DIR PTJOYSTICK_PACKAGES PTJXL_JAR PTJYTHON_DIR PTJYTHON_PACKAGES PTJXTA_DIR PTOPENCV_DIR PTOPENCVCG_DIR PTOPENCV_INCLUDE_DIR PTOPENCV_PACKAGES PTKIELER_DIR PTKVM_DIR PTLBNL_DIR PTLEGO_DIR PTLEJOS_DIR PTLIBEXPAT_DIR PTMATLAB_CC_FLAGS PTMATLAB_DIR PTMATLAB_LD_ARGS PTMATLAB_64LD_ARGS PTMESCAL_DIR PTPDFRENDERER_DIR PTPDFRENDERER_JAR PTPSDF_DIR PTSVG_DIR PTSVG_JAR PTPROCESSING_JARS PTPTALON_DIR PTPTALON_PACKAGES ANTLR_DIR PTQUICKTIME_DIR PTQUICKTIME_PACKAGES PTRXTX_PACKAGES PTSPACE_DIR PTSPACEDOMAIN_JAR PTSPACEDOMAIN_PACKAGES PTTINI_DIR PTTINYOS_DIR PTGIOTTO_DIR PTWABA_DIR PTX10_DIR PTX10_PACKAGES PTII_LOCALURL QTJAVA_ZIP RXTX_JAR RXTX_PRESENT SOOT_CLASSES SOOT_DIR TINI_CLASSES TINI_DIR TOOLS_JAR TOSROOT_NO_CYGDRIVE TOSDIR_NO_CYGDRIVE GIOTTO_CLASSES GIOTTO_DIR WABA_CLASSES WABA_DIR X10_CLASSES X10_DIR LIBOBJS LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP CXX CXXFLAGS CCC' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute directory names. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { echo "$as_me: error: Working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$0" || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-verbose, configure prints verbose msgs Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-find=PATH use the find command from PATH, PTJAVA_DIR environment variable --with-gawk=PATH use the gawk command from PATH with maven, /usr/bin/gawk --with-java=DIR use Java binaries from DIR, defaults to the value of the PTJAVA_DIR environment variable --with-cmkit=DIR use CaffeineMark from DIR, defaults to \$PTII/vendors/cm --with-cal=DIR use ptCal.jar from DIR, defaults to \$PTII/lib --with-chic=DIR use chic.jar from DIR, defaults to \$PTII/lib --with-colt=DIR use colt.jar from DIR, defaults to \$PTII/vendors/misc/colt --with-cunit=DIR use CUnit from DIR, defaults to /usr/local or $PTII/vendors/CUnit --with-tools_jar=DIR use tools.jar from DIR, defaults to \$PTJAVA_HOME/../lib/tools.jar --with-eclipse=ECLIPSE_DIR use Eclipse from ECLIPSE_DIR, defaults to $TMP_ECLIPSE_DIR --with-fuzzyengine=DIRECTORY use FuzzyEngine from DIRECTORY, defaults to \$PTII/vendors/misc/FuzzyEngine --with-gc-include=DIR use gc.h from DIR defaults to \$PTII/vendors/gc/gc/include --with-itextpdf=JARFILE use iText from JARFILE, defaults to \$PTII/vendors/misc/itext/iText.jar --with-jogl=DIRECTORY use Java OpenGL interface (jogl) from DIRECTORY, defaults to \$PTII/vendors/sun/jogl --with-joystick-jar=JARFILE use JOYSTICK from JARFILE, defaults to \$PTII/vendors/misc/joystick/Joystick.jar --with-jxl=JARFILE use Java Excel API from JARFILE, defaults to \$PTII/ptolemy/actor/lib/excel/jxl.jar --with-jython=DIR use jython.jar from DIR, defaults to \$PTII/lib, though the path is searched for jython --with-jxta=DIR use jxta.jar from DIR, defaults to \$PTII/vendors/sun/jxta --with-kieler-jar=JARFILE use JARFILE, defaults to \$PTII/lib/kieler.jar --with-javacv=JAR use the javaCV JAR, defaults to \$PTII/vendors/misc/javacv-bin/javacv.jar --with-rxtx=DIR use Java Serial Port Interfacrxtx from DIR, defaults to $RXTX_JAR_DEFAULT --with-lejos=DIR use Java lejos from DIR, defaults to \$PTII/vendors/lejos/lejosBeta3 --with-javacc=DIR use JavaCC.zip from DIR, defaults to \$PTII/vendors/sun/javacc-4.0 --with-ptjacl_jar=PTJACL.JAR ptjacl.jar file, used for running the test scripts --with-java3D=DIR use j3dcore.jar, j3dutils.jar, and vecmath.jar from DIR. Usually Java 3D is installed in the JDK in jre/lib/ext --with-jini=DIR use Jini jars from DIR, defaults to \$PTII/ptolemy/distributed/jini --with-jode=DIR use JODE from DIR, defaults to \$PTII/vendors/jode/1.1.2-pre1 --with-kvm=DIR use PalmOS KVM from DIR, defaults to \$PTII/vendors/sun/j2me_cldc --with-mapss=DIR use mapss.jar from DIR, defaults to \$PTII/lib --with-antlr=DIR use antlr.jar from DIR, defaults to \$PTII/ptolemy/actor/ptalon/antlr' --with-soot=DIR use SOOT from DIR, defaults to \$PTII/lib --with-javasystemjar=DIR use rt.lib from DIR, defaults to JRE java.home property with lib/rt.jar appended --with-mysql=/path/to/mysql.jar path to mysql.jar defaults to \$PTII/ptolemy/actor/lib/database/$MYSQL_TARGET_JAR --with-ojdbc=/path/to/ojdbcN.jar path to ojdbc.jar defaults to \$PTII/ptolemy/actor/lib/database/ojdbc6.jar or ojdbc5.jar $OJDBC_TARGET_JAR --with-pdfrenderer=PDFRENDERER_JAR use PDFRenderer PDFRENDERER_JAR defaults to \$PTII/lib/PDFRenderer.jar --with-batikjar=BATIK_JAR use Batik jar BATIK_JAR, defaults to \$KEPLER/lib/jar/batik-all-1.6.jar --with-tini=DIR use TINI from DIR, defaults to \$PTII/vendors/dalsemi/tini --with-giotto=DIR use GiottoSDF from DIR, defaults to \$PTII/vendors/giotto --with-waba=DIR use PalmOS WABA from DIR, defaults to \$PTII/vendors/misc/waba/wabasdk --with-X10=DIR use X10 from DIR, defaults to \$PTII/vendors/misc/x10 --with-expat-include=DIR use expat.h from DIR defaults to /usr/include Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then set x "$prefix/share/config.site" "$prefix/etc/config.site" else set x "$ac_default_prefix/share/config.site" \ "$ac_default_prefix/etc/config.site" fi shift for ac_site_file do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu #PT_VERBOSE=1 # Check whether --enable-verbose was given. if test "${enable_verbose+set}" = set; then enableval=$enable_verbose; PTVERBOSE=1 fi if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: For more verbose output, run ./configure --enable-verbose" >&5 echo "${ECHO_T}For more verbose output, run ./configure --enable-verbose" >&6; } fi # PT_MSG_RESULT # PT_MSG_STATUS # Java does not find things in c:/program files/java { echo "$as_me:$LINENO: checking if your path has 'program files/java' instead of 'Program Files/Java' " >&5 echo $ECHO_N "checking if your path has 'program files/java' instead of 'Program Files/Java' ... $ECHO_C" >&6; } echo "$PATH" | egrep 'program files/java' > /dev/null status=$? if test "$status" -eq 0 ; then { echo "$as_me:$LINENO: WARNING: Temporarily changing your path within configure for Java because Java can't find c:/program files/java, but can find c:/Program files/Java." >&5 echo "$as_me: WARNING: Temporarily changing your path within configure for Java because Java can't find c:/program files/java, but can find c:/Program files/Java." >&2;} PATH="`echo $PATH | sed 's@program files/java@Program Files/Java@g'`" else if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi fi # We must have PTII set before running configure. if test -z "$PTII"; then if test -n "$PTOLEMY"; then if test -d "$PTOLEMY/tycho/java"; then echo "\$PTOLEMY/tycho/java exists, setting PTII to that value" PTII="$PTOLEMY/tycho/java" # We should not have to call AC_PREFIX_DEFAULT($PTII) here # but autoconf shuffles things around, so the call to # AC_PREFIX_DEFAULT($PTII) that is 15 or so lines below # actually appears at the top of configure. ac_default_prefix=$PTII else echo "You must set the PTII environment variable before running configure" exit 3 fi else echo "You must set the PTII environment variable before running configure" exit 3 fi fi if test ! -d "$PTII"; then echo "\$PTII is set to '$PTII', but it does not exist" exit 3 fi if test ! -w "$PTII"; then echo "Warning: \$PTII is set to '$PTII', but it is not writable by you." echo "This may or may not be a problem. If you are running under" echo "Windows, then you might be able to ignore this problem and" echo "proceed with the build. If you continue to have problems," echo "try upgrading to cygwin1.1.0 or later" fi { echo "$as_me:$LINENO: checking if \$PTII ('$PTII') has backslashes" >&5 echo $ECHO_N "checking if \$PTII ('$PTII') has backslashes... $ECHO_C" >&6; } echo "$PTII" | egrep '\\' > /dev/null status=$? if test "$status" -eq 1 ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok '$PTII' does not contain backslashes" >&5 echo "${ECHO_T}ok '$PTII' does not contain backslashes" >&6; }; fi else { { echo "$as_me:$LINENO: error: \$PTII == $PTII, which contains backslashes. Even under Windows, please set PTII to use forward slashes." >&5 echo "$as_me: error: \$PTII == $PTII, which contains backslashes. Even under Windows, please set PTII to use forward slashes." >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: checking if \$PTII ('$PTII') contains \"cygdrive\"" >&5 echo $ECHO_N "checking if \$PTII ('$PTII') contains \"cygdrive\"... $ECHO_C" >&6; } echo "$PTII" | egrep 'cygdrive|cygwin' > /dev/null status=$? if test "$status" -eq 1 ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok '$PTII' does not contain cygdrive or cygwin, which is right." >&5 echo "${ECHO_T}ok '$PTII' does not contain cygdrive or cygwin, which is right." >&6; }; fi else { echo "$as_me:$LINENO: WARNING: '\$PTII == $PTII, which contains 'cygdrive' or 'cygwin'. It could be that you have incorrectly set PTII. If you have installed Cygwin in c:/cygwin, and your Ptolemy II installation is in a directory outside of the c:/cygwin tree, then Cygwin may change your PTII variable to include \"/cygdrive/c\". This will cause problems with non-Cygwin tools like javac that do not understand /cygdrive/c PTII can end up with cygdrive or cygwin in it if you mistakenly do something like PTII=\`pwd\`. Under Cygwin, try permanently setting PTII in the control panel (Start->Control Panels->Advanced->Environment Variables) or temporary set it within bash: PTII=c:/users/yourname/ptII export PTII and then rerun ./configure See $PTII/doc/install.htm for details.'" >&5 echo "$as_me: WARNING: '\$PTII == $PTII, which contains 'cygdrive' or 'cygwin'. It could be that you have incorrectly set PTII. If you have installed Cygwin in c:/cygwin, and your Ptolemy II installation is in a directory outside of the c:/cygwin tree, then Cygwin may change your PTII variable to include \"/cygdrive/c\". This will cause problems with non-Cygwin tools like javac that do not understand /cygdrive/c PTII can end up with cygdrive or cygwin in it if you mistakenly do something like PTII=\`pwd\`. Under Cygwin, try permanently setting PTII in the control panel (Start->Control Panels->Advanced->Environment Variables) or temporary set it within bash: PTII=c:/users/yourname/ptII export PTII and then rerun ./configure See $PTII/doc/install.htm for details.'" >&2;} fi case "`uname -s`" in CYGWIN_NT-*) { echo "$as_me:$LINENO: checking if \$PTII ('$PTII') contains \"cygwin\"" >&5 echo $ECHO_N "checking if \$PTII ('$PTII') contains \"cygwin\"... $ECHO_C" >&6; } cygpath -w "$PTII" | grep cygwin > /dev/null status=$? if test "$status" -eq 1 ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok \$PTII is '$PTII', which does not contain cygwin, which is right." >&5 echo "${ECHO_T}ok \$PTII is '$PTII', which does not contain cygwin, which is right." >&6; }; fi else { echo "$as_me:$LINENO: WARNING: 'cygpath -w \$PTII' == '\`cygpath -w $PTII\`' which contains 'cygwin'. This could happen if your home directory is in the default location for cygwin which cygwin thinks is /home/yourname, but windows thinks is c:\\cygwin\\home\\yourname. This will cause problems with non-Cygwin tools like javac that do not understand Cygwin directory structure and mounts will not be able to find files in $PTII. The solution is to move the Ptolemy II tree outside of c:\\cygwin and to set the PTII variable to point to that location and then rerun cd \$PTII ./configure See $PTII/doc/install.htm for details.'" >&5 echo "$as_me: WARNING: 'cygpath -w \$PTII' == '\`cygpath -w $PTII\`' which contains 'cygwin'. This could happen if your home directory is in the default location for cygwin which cygwin thinks is /home/yourname, but windows thinks is c:\\cygwin\\home\\yourname. This will cause problems with non-Cygwin tools like javac that do not understand Cygwin directory structure and mounts will not be able to find files in $PTII. The solution is to move the Ptolemy II tree outside of c:\\cygwin and to set the PTII variable to point to that location and then rerun cd \$PTII ./configure See $PTII/doc/install.htm for details.'" >&2;} fi ;; esac # If we are under Cygwin, check that we can find CMD case "`uname -s`" in CYGWIN_NT-*) # Extract the first word of "cmd", so it can be a program name with args. set dummy cmd; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_CMD_PATH+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $CMD_PATH in [\\/]* | ?:[\\/]*) ac_cv_path_CMD_PATH="$CMD_PATH" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_CMD_PATH="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi CMD_PATH=$ac_cv_path_CMD_PATH if test -n "$CMD_PATH"; then { echo "$as_me:$LINENO: result: $CMD_PATH" >&5 echo "${ECHO_T}$CMD_PATH" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test ! -x "$CMD_PATH"; then { echo "$as_me:$LINENO: WARNING: Failed to find the 'cmd' command, which is used by the $PTII/bin/ptolemy script. Under Windows 2000, cmd is usually found at c:\\winnt\\system32\\cmd.exe. Under Windows XP, cmd is usually found at c:\\windows\\system32\\cmd.exe. You may need to modify your PATH to explicitly include c:\\winnt\\system32 by going or c:\\windows\\system32 by going to to Start->Settings->Control Panels->System->Environment and changing %SystemRoot%\\system32 to c:\\winnt\\system32 or c:\\windows\\system32." >&5 echo "$as_me: WARNING: Failed to find the 'cmd' command, which is used by the $PTII/bin/ptolemy script. Under Windows 2000, cmd is usually found at c:\\winnt\\system32\\cmd.exe. Under Windows XP, cmd is usually found at c:\\windows\\system32\\cmd.exe. You may need to modify your PATH to explicitly include c:\\winnt\\system32 by going or c:\\windows\\system32 by going to to Start->Settings->Control Panels->System->Environment and changing %SystemRoot%\\system32 to c:\\winnt\\system32 or c:\\windows\\system32." >&2;} fi ;; *) ;; esac PTII_DEFAULT=$PTII # The default value of prefix #-------------------------------------------------------------------- # The PTII directory as a URL #-------------------------------------------------------------------- # Read the PTII variable and substitute forward slashes # for backward slashes case "`uname -s`" in CYGWIN_ME-*) # Windows ME is not a real os, and it does not have CMD. # So, we punt PTII_DIR=$PTII ;; CYGWIN_98-*) # Windows 98 is not a real os, and it does not have CMD. # So, we punt PTII_DIR=$PTII ;; CYGWIN*) # We use cmd /c chdir here to get rid of /cygwin/c PTII_DIR=`(cd "$PTII"; cmd /c chdir) | tr -d '\r' | sed 's@\\\@/@g'` ;; *) PTII_DIR=$PTII ;; esac #-------------------------------------------------------------------- # Look for the "find" command #-------------------------------------------------------------------- # Check whether --with-find was given. if test "${with_find+set}" = set; then withval=$with_find; FIND=$withval else FIND=/usr/bin/find fi # Extract the first word of "find", so it can be a program name with args. set dummy find; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_FIND+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $FIND in [\\/]* | ?:[\\/]*) ac_cv_path_FIND="$FIND" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi FIND=$ac_cv_path_FIND if test -n "$FIND"; then { echo "$as_me:$LINENO: result: $FIND" >&5 echo "${ECHO_T}$FIND" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test `echo "$FIND" | grep system32`; then { echo "$as_me:$LINENO: WARNING: Your path is probably messed up, you have a system32 directory in your path before /bin" >&5 echo "$as_me: WARNING: Your path is probably messed up, you have a system32 directory in your path before /bin" >&2;} FIND=/bin/find fi if test ! -f "$FIND"; then { echo "$as_me:$LINENO: WARNING: Could not find the "find" command, looked in \"$FIND\"" >&5 echo "$as_me: WARNING: Could not find the "find" command, looked in \"$FIND\"" >&2;} fi #-------------------------------------------------------------------- # Look for the "gawk" command, used by maven #-------------------------------------------------------------------- # Check whether --with-gawk was given. if test "${with_gawk+set}" = set; then withval=$with_gawk; GAWK=$withval else GAWK=gawk fi # Extract the first word of "gawk", so it can be a program name with args. set dummy gawk; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_GAWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $GAWK in [\\/]* | ?:[\\/]*) ac_cv_path_GAWK="$GAWK" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GAWK="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi GAWK=$ac_cv_path_GAWK if test -n "$GAWK"; then { echo "$as_me:$LINENO: result: $GAWK" >&5 echo "${ECHO_T}$GAWK" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test ! -x "$GAWK"; then { echo "$as_me:$LINENO: WARNING: Couldn't find gawk, looking for awk. gawk or awk is used by maven." >&5 echo "$as_me: WARNING: Couldn't find gawk, looking for awk. gawk or awk is used by maven." >&2;} # Extract the first word of "awk", so it can be a program name with args. set dummy awk; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_GAWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $GAWK in [\\/]* | ?:[\\/]*) ac_cv_path_GAWK="$GAWK" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GAWK="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi GAWK=$ac_cv_path_GAWK if test -n "$GAWK"; then { echo "$as_me:$LINENO: result: $GAWK" >&5 echo "${ECHO_T}$GAWK" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test ! -x "$GAWK"; then GAWK=awk fi fi # Substitute %20 for any spaces. PTII_LOCALURL=`echo "file:///$PTII_DIR" | sed 's/ /%20/g'` #-------------------------------------------------------------------- # See if there was a command-line option for where Java is; if # not, check to see if the PTJAVA_DIR environment variable is set; # if it is not, look for javac on the path. # NOTE: If your javac compiler is in /usr/bin, then PTJAVA_DIR is # likely to be set to /usr. Consider using PTJAVA_HOME if # you are looking for Java jar files. # Note that PTJAVA_HOME is set to the jre directory, wheras # PTJAVA_DIR is set to the directory above the jre directory. # PTJAVA_HOME will _not_ have a trailing slash. #-------------------------------------------------------------------- # Check whether --with-java was given. if test "${with_java+set}" = set; then withval=$with_java; PTJAVA_DIR=$withval fi if test -d "$PTJAVA_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: PTJAVA_DIR environment variable was set to '$PTJAVA_DIR', and there is a directory at that location, so we will try it." >&5 echo "${ECHO_T} PTJAVA_DIR environment variable was set to '$PTJAVA_DIR', and there is a directory at that location, so we will try it." >&6; }; fi else if test -z "$PTJAVA_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: PTJAVA_DIR environment variable was not set, so we search for the java compiler." >&5 echo "${ECHO_T}PTJAVA_DIR environment variable was not set, so we search for the java compiler." >&6; }; fi else { echo "$as_me:$LINENO: WARNING: PTJAVA_DIR environment variable is set to '${PTJAVA_DIR}', which is not a directory, so we search for the java compiler." >&5 echo "$as_me: WARNING: PTJAVA_DIR environment variable is set to '${PTJAVA_DIR}', which is not a directory, so we search for the java compiler." >&2;} fi # Extract the first word of "javac", so it can be a program name with args. set dummy javac; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_JAVAC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $JAVAC in [\\/]* | ?:[\\/]*) ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi JAVAC=$ac_cv_path_JAVAC if test -n "$JAVAC"; then { echo "$as_me:$LINENO: result: $JAVAC" >&5 echo "${ECHO_T}$JAVAC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test -x "$JAVAC"; then JAVABIN=`dirname "$JAVAC"` PTJAVA_DIR=`dirname "$JAVABIN"` if test "$PTJAVA_DIR" = "/"; then if test -d /usr/java; then PTJAVA_DIR=/usr/java { echo "$as_me:$LINENO: WARNING: Found javac in \"$JAVABIN\", /usr/java exists, so we are setting PTJAVA_DIR to '$PTJAVA_DIR'" >&5 echo "$as_me: WARNING: Found javac in \"$JAVABIN\", /usr/java exists, so we are setting PTJAVA_DIR to '$PTJAVA_DIR'" >&2;} fi fi else { echo "$as_me:$LINENO: WARNING: Failed to find javac, perhaps Java is not installed?" >&5 echo "$as_me: WARNING: Failed to find javac, perhaps Java is not installed?" >&2;} fi # The default location that we look for the JDK. This should probably # be a list that includes /usr/local/jdk and /opt/jdk if test ! -d "$PTJAVA_DIR"; then DEFAULT_JDK=/opt/jdk1.3 if test -d "$DEFAULT_JDK"; then PTJAVA_DIR=`cd "$DEFAULT_JDK"; pwd` { echo "$as_me:$LINENO: WARNING: '${PTJAVA_DIR}' is not a directory, using the default '${DEFAULT_JDK}'" >&5 echo "$as_me: WARNING: '${PTJAVA_DIR}' is not a directory, using the default '${DEFAULT_JDK}'" >&2;} else DEFAULT_JDK=/usr/java if test -d "$DEFAULT_JDK"; then PTJAVA_DIR=`cd "$DEFAULT_JDK"; pwd` { echo "$as_me:$LINENO: WARNING: '${PTJAVA_DIR}' is not a directory, using the default '${DEFAULT_JDK}'" >&5 echo "$as_me: WARNING: '${PTJAVA_DIR}' is not a directory, using the default '${DEFAULT_JDK}'" >&2;} else { { echo "$as_me:$LINENO: error: Java directory $DEFAULT_JDK doesn't exist. Be sure that the directory that contains javac and java is in your path. Typically, under Windows, this directory might be c:\jdk1.3.1\bin For instructions about adding to a directory to your path permanently, consult your user documentation. Under bash, you may temporarily add a directory with something like: PATH=/cygdrive/c/jdk1.3.1/bin:\$PATH export PATH rm config.*; ./configure You may also try --with-java=DIR, or set the PTJAVA_DIR environment variable to the directory where your jdk is located: PTJAVA_DIR=/cygdrive/c/jdk1.3.1 export PATH rm config.*; ./configure but adding the directory to your path is likely to work best." >&5 echo "$as_me: error: Java directory $DEFAULT_JDK doesn't exist. Be sure that the directory that contains javac and java is in your path. Typically, under Windows, this directory might be c:\jdk1.3.1\bin For instructions about adding to a directory to your path permanently, consult your user documentation. Under bash, you may temporarily add a directory with something like: PATH=/cygdrive/c/jdk1.3.1/bin:\$PATH export PATH rm config.*; ./configure You may also try --with-java=DIR, or set the PTJAVA_DIR environment variable to the directory where your jdk is located: PTJAVA_DIR=/cygdrive/c/jdk1.3.1 export PATH rm config.*; ./configure but adding the directory to your path is likely to work best." >&2;} { (exit 1); exit 1; }; } fi fi fi fi # PTJAVA_DIR without /cygdrive # Use changequote here to preserve square brackets PTJAVA_DIR_NO_CYGDRIVE="`echo "$PTJAVA_DIR" | sed 's@/cygdrive/\([a-z]\)/@\1:/@'`" # # Check that we have the javac that corresponds with PTJAVA_DIR in our path # { echo "$as_me:$LINENO: checking for the java runtime in $PTJAVA_DIR/bin" >&5 echo $ECHO_N "checking for the java runtime in $PTJAVA_DIR/bin... $ECHO_C" >&6; } if test -f "$PTJAVA_DIR/bin/java" -o -f "$PTJAVA_DIR/bin/java.exe"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJAVA_DIR/bin/java" >&5 echo "${ECHO_T}$PTJAVA_DIR/bin/java" >&6; }; fi # Extract the first word of "java", so it can be a program name with args. set dummy java; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_JAVA+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $JAVA in [\\/]* | ?:[\\/]*) ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi JAVA=$ac_cv_path_JAVA if test -n "$JAVA"; then { echo "$as_me:$LINENO: result: $JAVA" >&5 echo "${ECHO_T}$JAVA" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "$PTJAVA_DIR/bin/java" = "$JAVA"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: You have the right java in your path, \"$PTJAVA_DIR/bin/java\" = \"$JAVA\"" >&5 echo "${ECHO_T} You have the right java in your path, \"$PTJAVA_DIR/bin/java\" = \"$JAVA\"" >&6; }; fi else { echo "$as_me:$LINENO: WARNING: '$PTJAVA_DIR/bin/java' is not the same as '$JAVA'. Perhaps '$JAVA' is in your path before '$PTJAVA_DIR/bin/java'? If you have problems later, be sure that you don't have a mismatch in JDK versions." >&5 echo "$as_me: WARNING: '$PTJAVA_DIR/bin/java' is not the same as '$JAVA'. Perhaps '$JAVA' is in your path before '$PTJAVA_DIR/bin/java'? If you have problems later, be sure that you don't have a mismatch in JDK versions." >&2;} JAVA="$PTJAVA_DIR/bin/java" fi else if test -f "$PTJAVA_DIR/Commands/java"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJAVA_DIR/Commands/java" >&5 echo "${ECHO_T}$PTJAVA_DIR/Commands/java" >&6; }; fi # Extract the first word of "java", so it can be a program name with args. set dummy java; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_JAVA+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $JAVA in [\\/]* | ?:[\\/]*) ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi JAVA=$ac_cv_path_JAVA if test -n "$JAVA"; then { echo "$as_me:$LINENO: result: $JAVA" >&5 echo "${ECHO_T}$JAVA" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "$PTJAVA_DIR/Commands/java" = "$JAVA"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: You have the right java in your path, \"$PTJAVA_DIR/Commands/java\" = \"$JAVA\"" >&5 echo "${ECHO_T} You have the right java in your path, \"$PTJAVA_DIR/Commands/java\" = \"$JAVA\"" >&6; }; fi else { echo "$as_me:$LINENO: WARNING: '$PTJAVA_DIR/Commands/java' is not the same as '$JAVA'. Perhaps '$JAVA' is in your path before '$PTJAVA_DIR/Commands/java'? If you have problems later, be sure that you don't have a mismatch in JDK versions." >&5 echo "$as_me: WARNING: '$PTJAVA_DIR/Commands/java' is not the same as '$JAVA'. Perhaps '$JAVA' is in your path before '$PTJAVA_DIR/Commands/java'? If you have problems later, be sure that you don't have a mismatch in JDK versions." >&2;} JAVA="$PTJAVA_DIR/Commands/java" fi else { { echo "$as_me:$LINENO: error: Cannot find '$PTJAVA_DIR/bin/java' or '$PTJAVA_DIR/Commands/java'. Try --with-java=DIR, or set the PTJAVA_DIR environment variable. " >&5 echo "$as_me: error: Cannot find '$PTJAVA_DIR/bin/java' or '$PTJAVA_DIR/Commands/java'. Try --with-java=DIR, or set the PTJAVA_DIR environment variable. " >&2;} { (exit 1); exit 1; }; } fi fi # # Check that we have the javac that corresponds with PTJAVA_DIR in our path # { echo "$as_me:$LINENO: checking for the java compiler in $PTJAVA_DIR/bin" >&5 echo $ECHO_N "checking for the java compiler in $PTJAVA_DIR/bin... $ECHO_C" >&6; } if test -f "$PTJAVA_DIR/bin/javac"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJAVA_DIR/bin/javac" >&5 echo "${ECHO_T}$PTJAVA_DIR/bin/javac" >&6; }; fi # Extract the first word of "javac", so it can be a program name with args. set dummy javac; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_JAVAC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $JAVAC in [\\/]* | ?:[\\/]*) ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi JAVAC=$ac_cv_path_JAVAC if test -n "$JAVAC"; then { echo "$as_me:$LINENO: result: $JAVAC" >&5 echo "${ECHO_T}$JAVAC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test ! -x "$JAVAC"; then { echo "$as_me:$LINENO: WARNING: Failed to find the 'javac' command in your path. This is not necessarily a problem, since '$PTJAVA_DIR/bin/javac' was found, but if you have problems, then you may want to adjust your path" >&5 echo "$as_me: WARNING: Failed to find the 'javac' command in your path. This is not necessarily a problem, since '$PTJAVA_DIR/bin/javac' was found, but if you have problems, then you may want to adjust your path" >&2;} fi if test "$PTJAVA_DIR/bin/javac" = "$JAVAC"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: You have the right javac in your path, \"$PTJAVA_DIR/bin/javac\" = \"$JAVAC\"" >&5 echo "${ECHO_T} You have the right javac in your path, \"$PTJAVA_DIR/bin/javac\" = \"$JAVAC\"" >&6; }; fi else { echo "$as_me:$LINENO: WARNING: '$PTJAVA_DIR/bin/javac' is not the same as '$JAVAC'. Perhaps '$JAVAC' is in your path before '$PTJAVA_DIR/bin/javac'? If you have problems later, be sure that you don't have a mismatch in JDK versions." >&5 echo "$as_me: WARNING: '$PTJAVA_DIR/bin/javac' is not the same as '$JAVAC'. Perhaps '$JAVAC' is in your path before '$PTJAVA_DIR/bin/javac'? If you have problems later, be sure that you don't have a mismatch in JDK versions." >&2;} JAVAC="$PTJAVA_DIR/bin/javac" fi else if test -f "$PTJAVA_DIR/Commands/javac"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJAVA_DIR/Commands/javac" >&5 echo "${ECHO_T}$PTJAVA_DIR/Commands/javac" >&6; }; fi # Extract the first word of "javac", so it can be a program name with args. set dummy javac; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_JAVAC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $JAVAC in [\\/]* | ?:[\\/]*) ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi JAVAC=$ac_cv_path_JAVAC if test -n "$JAVAC"; then { echo "$as_me:$LINENO: result: $JAVAC" >&5 echo "${ECHO_T}$JAVAC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "$PTJAVA_DIR/Commands/javac" = "$JAVAC"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: You have the right java in your path, \"$PTJAVA_DIR/Commands/javac\" = \"$JAVAC\"" >&5 echo "${ECHO_T} You have the right java in your path, \"$PTJAVA_DIR/Commands/javac\" = \"$JAVAC\"" >&6; }; fi else { echo "$as_me:$LINENO: WARNING: '$PTJAVA_DIR/Commands/javac' is not the same as '$JAVAC'. Perhaps '$JAVAC' is in your path before '$PTJAVA_DIR/Commands/javac'? If you have problems later, be sure that you don't have a mismatch in JDK versions." >&5 echo "$as_me: WARNING: '$PTJAVA_DIR/Commands/javac' is not the same as '$JAVAC'. Perhaps '$JAVAC' is in your path before '$PTJAVA_DIR/Commands/javac'? If you have problems later, be sure that you don't have a mismatch in JDK versions." >&2;} JAVAC="$PTJAVA_DIR/Commands/javac" fi else { { echo "$as_me:$LINENO: error: Cannot find '$PTJAVA_DIR/bin/javac' or '$PTJAVA_DIR/Commands/javac'. Try --with-java=DIR, or set the PTJAVA_DIR environment variable." >&5 echo "$as_me: error: Cannot find '$PTJAVA_DIR/bin/javac' or '$PTJAVA_DIR/Commands/javac'. Try --with-java=DIR, or set the PTJAVA_DIR environment variable." >&2;} { (exit 1); exit 1; }; } fi fi #-------------------------------------------------------------------- # Test the Java Compiler (javac) #-------------------------------------------------------------------- { echo "$as_me:$LINENO: checking the Java compiler with a simple compile" >&5 echo $ECHO_N "checking the Java compiler with a simple compile... $ECHO_C" >&6; } JVERSION=unknown # We need to run javac in the config directory so that javac from jdk1.1.6 # under NT and cygwin works properly startdir="$PTII" cd "$srcdir/config" rm -f *.class if "$JAVAC" confTest.java ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi { echo "$as_me:$LINENO: checking the value of the java.version Property " >&5 echo $ECHO_N "checking the value of the java.version Property ... $ECHO_C" >&6; } # Older versions of cygwin might not have env, but 1.1 does if env CLASSPATH="$PTII/config" "$JAVA" confTest > /dev/null; then # Run it again and get the results JVERSION=`CLASSPATH="$PTII/config" "$JAVA" confTest` if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $JVERSION" >&5 echo "${ECHO_T}$JVERSION" >&6; }; fi else { { echo "$as_me:$LINENO: error: 'CLASSPATH=\"$PTII/config\" \"$JAVA\" confTest failed. If java fails, then you will not be able to run Ptolemy II. This could be because your PTII variable is set incorrectly, perhaps it has 'cygwin' or 'cygdrive' in it? Under Cygwin, try setting PTII in the control panel (Start->Control Panels->Advanced->Environment Variables) or temporary set it within bash: PTII=c:/users/yourname/ptII export PTII and then rerun ./configure See $PTII/doc/install.htm for details.'" >&5 echo "$as_me: error: 'CLASSPATH=\"$PTII/config\" \"$JAVA\" confTest failed. If java fails, then you will not be able to run Ptolemy II. This could be because your PTII variable is set incorrectly, perhaps it has 'cygwin' or 'cygdrive' in it? Under Cygwin, try setting PTII in the control panel (Start->Control Panels->Advanced->Environment Variables) or temporary set it within bash: PTII=c:/users/yourname/ptII export PTII and then rerun ./configure See $PTII/doc/install.htm for details.'" >&2;} { (exit 1); exit 1; }; } fi else { { echo "$as_me:$LINENO: error: 'CLASSPATH=\"$PTII/config\" \"$JAVAC\" confTest.java failed. If javac fails, then you will not be able to compile Ptolemy II. This could be because your PTII variable is set incorrectly. Under Cygwin, try setting PTII in the control panel (Start->Control Panels->Advanced->Environment Variables) or temporary set it within bash: PTII=c:/users/yourname/ptII export PTII and then rerun ./configure See $PTII/doc/install.htm for details.'" >&5 echo "$as_me: error: 'CLASSPATH=\"$PTII/config\" \"$JAVAC\" confTest.java failed. If javac fails, then you will not be able to compile Ptolemy II. This could be because your PTII variable is set incorrectly. Under Cygwin, try setting PTII in the control panel (Start->Control Panels->Advanced->Environment Variables) or temporary set it within bash: PTII=c:/users/yourname/ptII export PTII and then rerun ./configure See $PTII/doc/install.htm for details.'" >&2;} { (exit 1); exit 1; }; } fi cd "$startdir" #-------------------------------------------------------------------- # We require JDK1.5 #-------------------------------------------------------------------- { echo "$as_me:$LINENO: checking the JDK version" >&5 echo $ECHO_N "checking the JDK version... $ECHO_C" >&6; } JDOCSIZE= UPGRADE_JVM=no # Ptalon uses generics, which are present only in Java 1.5 and later HAS_GENERICS=no JAVA1_6_OR_LATER=no case "$JVERSION" in 1.1.*) UPGRADE_JVM=yes;; 1.2.*) UPGRADE_JVM=yes;; 1.3.*) UPGRADE_JVM=yes;; 1.4.*) UPGRADE_JVM=yes;; 1.5.*) # If we call the jdk1.4 javadoc without -breakiterator, # then we get lots of warnings # -breakiterator is only present in jdk1.4 and later JDOCBREAKITERATOR=-breakiterator # Ptalon uses generics JDOCSOURCEFLAGS="-source 1.5" HAS_GENERICS=yes if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok, you are running $JVERSION" >&5 echo "${ECHO_T}ok, you are running $JVERSION" >&6; }; fi ;; *) # -breakiterator is only present in jdk1.4 and later JDOCBREAKITERATOR=-breakiterator # Ptalon uses generics, assume 1.6 or greater here HAS_GENERICS=yes JAVA1_6_OR_LATER=yes if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok, you are running $JVERSION" >&5 echo "${ECHO_T}ok, you are running $JVERSION" >&6; }; fi ;; esac if test "$UPGRADE_JVM" = "yes"; then { { echo "$as_me:$LINENO: error: Ptolemy II requires JDK 1.4 or later. JDK 1.2.2 has a bug involving compiling inner classes with protected methods. The RTOS domain uses java.util.Timer, which is present in JDK 1.3 and later. ptolemy/kernel/attributes/URIAttribute.java uses java.net.URI, which is present in JDK 1.4 and later. JDK 1.5 or later is required so that these packages can use generics: - actor/gui/run, which uses org/mlc/swing - actor/lib/vhdl - backtrack - ptalon Please upgrade your JDK to 1.5 and try again" >&5 echo "$as_me: error: Ptolemy II requires JDK 1.4 or later. JDK 1.2.2 has a bug involving compiling inner classes with protected methods. The RTOS domain uses java.util.Timer, which is present in JDK 1.3 and later. ptolemy/kernel/attributes/URIAttribute.java uses java.net.URI, which is present in JDK 1.4 and later. JDK 1.5 or later is required so that these packages can use generics: - actor/gui/run, which uses org/mlc/swing - actor/lib/vhdl - backtrack - ptalon Please upgrade your JDK to 1.5 and try again" >&2;} { (exit 1); exit 1; }; } fi # Set PTJAVA_HOME # Under Cygwin, PTJAVA_HOME will not contain /cygdrive/c # Under Cygwin, PTJAVA_DIR _will_ contain /cygdrive/c # We need to run javac in the config directory so that javac from # jdk1.1.6 under NT and cygwin works properly startdir=$PTII cd "$srcdir/config" { echo "$as_me:$LINENO: checking for java.home property by compiling a test program " >&5 echo $ECHO_N "checking for java.home property by compiling a test program ... $ECHO_C" >&6; } # Don't use 'env $JAVAC . . .' here, it will not work under Cygwin if "$JAVAC" JavaHome.java ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi { echo "$as_me:$LINENO: checking for java.home property by running a test program " >&5 echo $ECHO_N "checking for java.home property by running a test program ... $ECHO_C" >&6; } if env CLASSPATH="$PTII/config" "$JAVA" JavaHome > /dev/null; then # Run it again and get the results with \ converted to / PTJAVA_HOME=`CLASSPATH="$PTII/config" "$JAVA" JavaHome` if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJAVA_HOME" >&5 echo "${ECHO_T}$PTJAVA_HOME" >&6; }; fi PTDOCLETS_DIR=doclets else { echo "$as_me:$LINENO: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVA JavaHome' failed. Since we cannot determine where the JRE is, we cannot set PTJAVA_HOME. for use with doclets or the serial communications protocol" >&5 echo "$as_me: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVA JavaHome' failed. Since we cannot determine where the JRE is, we cannot set PTJAVA_HOME. for use with doclets or the serial communications protocol" >&2;} fi fi cd "$startdir" # # Check that jar can handle the -i argument # { echo "$as_me:$LINENO: checking for the jar command" >&5 echo $ECHO_N "checking for the jar command... $ECHO_C" >&6; } if test -f "$PTJAVA_DIR/bin/jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJAVA_DIR/bin/jar" >&5 echo "${ECHO_T}$PTJAVA_DIR/bin/jar" >&6; }; fi JAR="$PTJAVA_DIR/bin/jar" else if test -f "$PTJAVA_DIR/Commands/java"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJAVA_DIR/Commands/java" >&5 echo "${ECHO_T}$PTJAVA_DIR/Commands/java" >&6; }; fi JAR="$PTJAVA_DIR/Commands/jar" else { echo "$as_me:$LINENO: WARNING: Cannot find '$PTJAVA_DIR/bin/jar'. or '$PTJAVA/Commands/jar', looking in the path. This is usually only a problem if you run 'make install'" >&5 echo "$as_me: WARNING: Cannot find '$PTJAVA_DIR/bin/jar'. or '$PTJAVA/Commands/jar', looking in the path. This is usually only a problem if you run 'make install'" >&2;} # Extract the first word of "jar", so it can be a program name with args. set dummy jar; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_JAR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $JAR in [\\/]* | ?:[\\/]*) ac_cv_path_JAR="$JAR" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi JAR=$ac_cv_path_JAR if test -n "$JAR"; then { echo "$as_me:$LINENO: result: $JAR" >&5 echo "${ECHO_T}$JAR" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi { echo "$as_me:$LINENO: checking that $JAR can handle -i" >&5 echo $ECHO_N "checking that $JAR can handle -i... $ECHO_C" >&6; } if test -x "$JAR"; then cd "$srcdir/config" "$JAR" -cf jarTest.jar confTest.class if "$JAR" -i jarTest.jar; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $JAR -i worked" >&5 echo "${ECHO_T}$JAR -i worked" >&6; }; fi # JAR_INDEX now includes the JAR_FLAGS flag so that we can # pass -J-Xss100m for linux JAR_INDEX='"$(JAR)" $(JAR_FLAGS) -i $@' else { echo "$as_me:$LINENO: WARNING: $JAR -i jarTest.jar failed, so we will not index the jar files" >&5 echo "$as_me: WARNING: $JAR -i jarTest.jar failed, so we will not index the jar files" >&2;} JAR_INDEX="" fi cd "$startdir" else { echo "$as_me:$LINENO: WARNING: jar command \"$JAR\" is not executable or not found. This is usually only a problem if you run 'make install'" >&5 echo "$as_me: WARNING: jar command \"$JAR\" is not executable or not found. This is usually only a problem if you run 'make install'" >&2;} fi # # The jarsigner command is used to create signed jar files for Webstart JNLP files # { echo "$as_me:$LINENO: checking for the jarsigner command" >&5 echo $ECHO_N "checking for the jarsigner command... $ECHO_C" >&6; } if test -f "$PTJAVA_DIR/bin/jarsigner"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJAVA_DIR/bin/jarsigner" >&5 echo "${ECHO_T}$PTJAVA_DIR/bin/jarsigner" >&6; }; fi JARSIGNER="$PTJAVA_DIR/bin/jarsigner" else if test -f "$PTJAVA_DIR/Commands/java"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJAVA_DIR/Commands/java" >&5 echo "${ECHO_T}$PTJAVA_DIR/Commands/java" >&6; }; fi JARSIGNER="$PTJAVA_DIR/Commands/jarsigner" else { echo "$as_me:$LINENO: WARNING: Cannot find '$PTJAVA_DIR/bin/jarsigner'. or '$PTJAVA/Commands/jarsigner', looking in the path. This is only a problem when testing the security actors." >&5 echo "$as_me: WARNING: Cannot find '$PTJAVA_DIR/bin/jarsigner'. or '$PTJAVA/Commands/jarsigner', looking in the path. This is only a problem when testing the security actors." >&2;} # Extract the first word of "jarsigner", so it can be a program name with args. set dummy jarsigner; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_JARSIGNER+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $JARSIGNER in [\\/]* | ?:[\\/]*) ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi JARSIGNER=$ac_cv_path_JARSIGNER if test -n "$JARSIGNER"; then { echo "$as_me:$LINENO: result: $JARSIGNER" >&5 echo "${ECHO_T}$JARSIGNER" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test ! -x "$JARSIGNER"; then { echo "$as_me:$LINENO: WARNING: The jarsigner command \"$JARSIGNER\" is not executable or not found. This is only a problem when testing the security actors." >&5 echo "$as_me: WARNING: The jarsigner command \"$JARSIGNER\" is not executable or not found. This is only a problem when testing the security actors." >&2;} fi # # The javaws command is used to test Webstart JNLP files. # { echo "$as_me:$LINENO: checking for the javaws command" >&5 echo $ECHO_N "checking for the javaws command... $ECHO_C" >&6; } if test -f "$PTJAVA_DIR/bin/javaws"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJAVA_DIR/bin/javaws" >&5 echo "${ECHO_T}$PTJAVA_DIR/bin/javaws" >&6; }; fi JAVAWS="$PTJAVA_DIR/bin/javaws" else if test -f "$PTJAVA_DIR/Commands/java"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJAVA_DIR/Commands/java" >&5 echo "${ECHO_T}$PTJAVA_DIR/Commands/java" >&6; }; fi JAVAWS="$PTJAVA_DIR/Commands/javaws" else { echo "$as_me:$LINENO: WARNING: Cannot find '$PTJAVA_DIR/bin/javaws'. or '$PTJAVA/Commands/javaws', looking in the path. This is only a problem when testing the Java Webstart (JNLP) files." >&5 echo "$as_me: WARNING: Cannot find '$PTJAVA_DIR/bin/javaws'. or '$PTJAVA/Commands/javaws', looking in the path. This is only a problem when testing the Java Webstart (JNLP) files." >&2;} # Extract the first word of "javaws", so it can be a program name with args. set dummy javaws; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_JAVAWS+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $JAVAWS in [\\/]* | ?:[\\/]*) ac_cv_path_JAVAWS="$JAVAWS" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_JAVAWS="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi JAVAWS=$ac_cv_path_JAVAWS if test -n "$JAVAWS"; then { echo "$as_me:$LINENO: result: $JAVAWS" >&5 echo "${ECHO_T}$JAVAWS" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test ! -x "$JAVAWS"; then { echo "$as_me:$LINENO: WARNING: The javaws command \"$JAVAWS\" is not executable or not found. This is only a problem when testing the Java Webstart (JNLP) files." >&5 echo "$as_me: WARNING: The javaws command \"$JAVAWS\" is not executable or not found. This is only a problem when testing the Java Webstart (JNLP) files." >&2;} fi # # keytool command used to generate a certificate for testing actor.lib.security actors # { echo "$as_me:$LINENO: checking for the keytool command" >&5 echo $ECHO_N "checking for the keytool command... $ECHO_C" >&6; } if test -f "$PTJAVA_DIR/bin/keytool"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJAVA_DIR/bin/keytool" >&5 echo "${ECHO_T}$PTJAVA_DIR/bin/keytool" >&6; }; fi KEYTOOL="$PTJAVA_DIR/bin/keytool" else if test -f "$PTJAVA_DIR/Commands/java"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJAVA_DIR/Commands/java" >&5 echo "${ECHO_T}$PTJAVA_DIR/Commands/java" >&6; }; fi KEYTOOL="$PTJAVA_DIR/Commands/keytool" else { echo "$as_me:$LINENO: WARNING: Cannot find '$PTJAVA_DIR/bin/keytool'. or '$PTJAVA/Commands/keytool', looking in the path. This is only a problem when testing the security actors." >&5 echo "$as_me: WARNING: Cannot find '$PTJAVA_DIR/bin/keytool'. or '$PTJAVA/Commands/keytool', looking in the path. This is only a problem when testing the security actors." >&2;} # Extract the first word of "keytool", so it can be a program name with args. set dummy keytool; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_KEYTOOL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $KEYTOOL in [\\/]* | ?:[\\/]*) ac_cv_path_KEYTOOL="$KEYTOOL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_KEYTOOL="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi KEYTOOL=$ac_cv_path_KEYTOOL if test -n "$KEYTOOL"; then { echo "$as_me:$LINENO: result: $KEYTOOL" >&5 echo "${ECHO_T}$KEYTOOL" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test ! -x "$KEYTOOL"; then { echo "$as_me:$LINENO: WARNING: The keytool command \"$KEYTOOL\" is not executable or not found. This is only a problem when testing the security actors." >&5 echo "$as_me: WARNING: The keytool command \"$KEYTOOL\" is not executable or not found. This is only a problem when testing the security actors." >&2;} fi #-------------------------------------------------------------------- # Figure out which separator to use for CLASSPATH # So much for write once, run everywhere. # Find NT4 and Windows 2000 (CYGWIN_NT-4.0 and # CYGWIN_NT-5.0 respectively) #-------------------------------------------------------------------- { echo "$as_me:$LINENO: checking for the proper CLASSPATH separator" >&5 echo $ECHO_N "checking for the proper CLASSPATH separator... $ECHO_C" >&6; } # If you mess with this, consider changing the jdkClassPathSeparator # proc in ptII/util/testsuite/jdktools.tcl case "`uname -s`" in CYGWIN_ME-*) CLASSPATHSEPARATOR=";";; CYGWIN_NT-*) CLASSPATHSEPARATOR=";";; CYGWIN_98-*) CLASSPATHSEPARATOR=";";; *) CLASSPATHSEPARATOR=":";; esac if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: '$CLASSPATHSEPARATOR'" >&5 echo "${ECHO_T}'$CLASSPATHSEPARATOR'" >&6; }; fi #-------------------------------------------------------------------- # Get ready to accumulate information for Eclipse #-------------------------------------------------------------------- # These directories are always excluded from Eclipse # To add to this list, edit .classpath.in ECLIPSE_EXCLUDING_SRC="" # Jar files to include in the Eclipse library #ECLIPSE_CLASSPATHENTRY_LIBS='' ECLIPSE_CLASSPATHENTRY_LIBS='' case "`uname -s`" in Darwin) { echo "$as_me:$LINENO: WARNING: Under Eclipse on Mac OS X, there are various problems with Eclipse. - To run Eclipse-3.4.0 on the Mac, you must use Java 1.5. However, You can still run Eclipse with 1.5 and have Eclipse invoke your application with Java 1.6. The problem is that Eclipse itself must be run with Java 1.5. This may change with Eclipse Galileo. - Eclipse-3.4.0 has problems with Eclipse plugins on the Mac. Note that the backtracking and other Eclipse code will _not_ work on the Mac from within Eclipse. Backtracking will work on the Mac _outside_ of Eclipse. For details, see http://chess.eecs.berkeley.edu/ptexternal/wiki/Main/Mac and follow the 'Problems with Eclipse and Ptolemy on the Mac' link." >&5 echo "$as_me: WARNING: Under Eclipse on Mac OS X, there are various problems with Eclipse. - To run Eclipse-3.4.0 on the Mac, you must use Java 1.5. However, You can still run Eclipse with 1.5 and have Eclipse invoke your application with Java 1.6. The problem is that Eclipse itself must be run with Java 1.5. This may change with Eclipse Galileo. - Eclipse-3.4.0 has problems with Eclipse plugins on the Mac. Note that the backtracking and other Eclipse code will _not_ work on the Mac from within Eclipse. Backtracking will work on the Mac _outside_ of Eclipse. For details, see http://chess.eecs.berkeley.edu/ptexternal/wiki/Main/Mac and follow the 'Problems with Eclipse and Ptolemy on the Mac' link." >&2;} if test -d ptolemy/apps/eclipse/awt/; then { echo "$as_me:$LINENO: WARNING: Under Eclipse on Mac OS X, ptolemy/apps/eclipse/awt is not supported." >&5 echo "$as_me: WARNING: Under Eclipse on Mac OS X, ptolemy/apps/eclipse/awt is not supported." >&2;} ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/apps/eclipse/awt/" fi ;; *) ECLIPSE_CLASSPATHENTRY_PDE_REQUIREDPLUGINS='' ;; esac ##################################################################### ##################################################################### # Below here we look for various packages. # Not all Ptolemy software products need all packages, so # we usually look for a directory that uses the package first # # Please try to keep the packages vaguely alphabetical ##################################################################### ##################################################################### #-------------------------------------------------------------------- # Boost is used by Mescal, which is not shipped with # the standard Ptolemy II download # See http://www.boost.org #-------------------------------------------------------------------- # Set to -Ixxx if we found boost/static_assert.hpp PTBOOST_INCLUDE= # Set to yes if we found boost PTBOOST=no # We only need to look for Boost if mescal is present MESCAL_USER_DIR=$PTII/mescal/views/simulation/model/UINT.H if test ! -f "$MESCAL_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $MESCAL_USER_DIR is not present, so we need not find Boost." >&5 echo "${ECHO_T}$MESCAL_USER_DIR is not present, so we need not find Boost." >&6; }; fi else case "`uname -s`" in Linux) ARCH=linux;; *) ARCH=unknown;; esac if test "$PTBOOST" = "no"; then { echo "$as_me:$LINENO: checking for Boost in \$PTII/mescal/include/boost/static_assert.hpp" >&5 echo $ECHO_N "checking for Boost in \$PTII/mescal/include/boost/static_assert.hpp... $ECHO_C" >&6; } if test -f "$PTII/mescal/include/boost/static_assert.hpp"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi PTBOOST_INCLUDE="-I$PTII/mescal/include" PTBOOST=yes else if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: not found, keep looking" >&5 echo "${ECHO_T}not found, keep looking" >&6; }; fi fi fi if test "$PTBOOST" = "no"; then { echo "$as_me:$LINENO: checking for Boost in /usr/local/include/boost/static_assert.hpp" >&5 echo $ECHO_N "checking for Boost in /usr/local/include/boost/static_assert.hpp... $ECHO_C" >&6; } if test -f "/usr/local/include/boost/static_assert.hpp"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi if test "$ARCH" != "linux"; then PTBOOST_INCLUDE="-I/usr/local/include" fi PTBOOST=yes else if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: not found, keep looking" >&5 echo "${ECHO_T}not found, keep looking" >&6; }; fi fi fi if test "$PTBOOST" = "no"; then { echo "$as_me:$LINENO: WARNING: Failed to find boost/static_assert.hpp, which is only needed to compile files that include $MESCAL_USER_DIR boost can be found at http://www.boost.org To install boost, download the source and then do cd boost-1.30.2 mkdir $PTII/mescal/include cp -r boost $PTII/mescal/include" >&5 echo "$as_me: WARNING: Failed to find boost/static_assert.hpp, which is only needed to compile files that include $MESCAL_USER_DIR boost can be found at http://www.boost.org To install boost, download the source and then do cd boost-1.30.2 mkdir $PTII/mescal/include cp -r boost $PTII/mescal/include" >&2;} fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # # List of possible output files, starting from the most likely. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) # only as a last resort. b.out is created by i960 compilers. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' # # The IRIX 6 linker writes into existing files which may not be # executable, retaining their permissions. Remove them first so a # subsequent execution test works. ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { (ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi { echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6; } if test -z "$ac_file"; then echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6; } { echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Extract the first word of "grep ggrep" to use in msg output if test -z "$GREP"; then set dummy grep ggrep; ac_prog_name=$2 if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS fi GREP="$ac_cv_path_GREP" if test -z "$GREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else # Extract the first word of "egrep" to use in msg output if test -z "$EGREP"; then set dummy egrep; ac_prog_name=$2 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS fi EGREP="$ac_cv_path_EGREP" if test -z "$EGREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test "${ac_cv_header_stdint_h+set}" = set; then { echo "$as_me:$LINENO: checking for stdint.h" >&5 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } if test "${ac_cv_header_stdint_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking stdint.h usability" >&5 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking stdint.h presence" >&5 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for stdint.h" >&5 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } if test "${ac_cv_header_stdint_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_stdint_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; } fi if test $ac_cv_header_stdint_h = yes; then PTSTDINT_H=yes else PTSTDINT_H=no fi if test "$PTSTDINT_H" = "no"; then { echo "$as_me:$LINENO: WARNING: Failed to find stdint.h mescal/views/simulation/model/UINT.h includes stdint.h so that uint32_t and uint64_t are properly typedefd. Older versions of Cygwin might not include stdint.h, the solution is to update Cygwin from http://sources.redhat.com/cygwin See mescal/views/simulation/model/UINT.h for details." >&5 echo "$as_me: WARNING: Failed to find stdint.h mescal/views/simulation/model/UINT.h includes stdint.h so that uint32_t and uint64_t are properly typedefd. Older versions of Cygwin might not include stdint.h, the solution is to update Cygwin from http://sources.redhat.com/cygwin See mescal/views/simulation/model/UINT.h for details." >&2;} fi fi #-------------------------------------------------------------------- # BSH is the Java Beanshell # It is used by the Run Control panel that uses FormLayoutManager # For more information, see # http://www.beanshell.org #-------------------------------------------------------------------- # PTBSH_RUN_DIR is set to run and used in # $PTII/ptolemy/actor/gui/makefile if bsh.jar was found. PTBSH_RUN_DIR= # PTBSH_MLC_DIR is set to mlc and used in # $PTII/org/makefile if BSH was found. PTBSH_MLC_DIR= # BSH jar file. We ship $PTII/lib/bsh-2.0b4.jar. PTBSH_JAR= # We only need to look for if $PTII/ptolemy/actor/gui exists BSH_USER_DIR="$PTII/ptolemy/actor/gui/run" if test ! -d "$BSH_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $BSH_USER_DIR is not present, so we need not find BSH, the Java Bean Shell." >&5 echo "${ECHO_T}$BSH_USER_DIR is not present, so we need not find BSH, the Java Bean Shell." >&6; }; fi else { echo "$as_me:$LINENO: checking for BSH, the Java Bean Shell" >&5 echo $ECHO_N "checking for BSH, the Java Bean Shell... $ECHO_C" >&6; } if test -f "$PTII/lib/bsh-2.0b4.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTII/lib/bsh-2.0b4.jar" >&5 echo "${ECHO_T}$PTII/lib/bsh-2.0b4.jar" >&6; }; fi PTBSH_JAR="$PTII/lib/bsh-2.0b4.jar" PTBSH_MLC_DIR=mlc PTBSH_RUN_DIR=run # PTBSH_PACKAGES is used in ptII/doc/makefile PTBSH_PACKAGES="com.jgoodies.forms.builder com.jgoodies.forms.debug com.jgoodies.forms.factories com.jgoodies.forms.layout com.jgoodies.forms.util org.mlc.swing.example org.mlc.swing.layout ptolemy.actor.gui.run" ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " else { echo "$as_me:$LINENO: WARNING: Failed to find $PTII/lib/bsh-2.0b4.jar, BSH is the Java Bean Shell, which is used by the Ptolemy Run Control Panel. BSH is optional." >&5 echo "$as_me: WARNING: Failed to find $PTII/lib/bsh-2.0b4.jar, BSH is the Java Bean Shell, which is used by the Ptolemy Run Control Panel. BSH is optional." >&2;} fi fi if test -z "$PTBSH_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/gui/run" fi #-------------------------------------------------------------------- # The CaffeineMark Kit is a Java benchmark kit # that is used by C code generation # See http://www-sor.inria.fr/~java/tools/cmkit #-------------------------------------------------------------------- # Directory that contains the CaffeineMark Java Benchmark kit # used by C code generation in copernicus/c CMKIT_DIR='${PTII}/vendors/cm' # PTCM_DIR is set to cm and used in $PTII/ptolemy/copernicus/c/test/makefile # if the CaffeineMark Java Benchmark kit is found PTCM_DIR= # We only need to look for cm if $PTII/ptolemy/copernicus/c exists if test ! -d "$PTII/ptolemy/copernicus/c"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $PTII/ptolemy/copernicus/c is not present, so we need not find the CaffeineMark Kit." >&5 echo "${ECHO_T}$PTII/ptolemy/copernicus/c is not present, so we need not find the CaffeineMark Kit." >&6; }; fi else { echo "$as_me:$LINENO: checking for CaffeineMarkEmbeddedApp.class" >&5 echo $ECHO_N "checking for CaffeineMarkEmbeddedApp.class... $ECHO_C" >&6; } # Check whether --with-cmkit was given. if test "${with_cmkit+set}" = set; then withval=$with_cmkit; CMKIT_DIR=$withval else CMKIT_DIR=$PTII/vendors/cm fi if test -f "$CMKIT_DIR/CaffeineMarkEmbeddedApp.class"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $CMKIT_DIR" >&5 echo "${ECHO_T}$CMKIT_DIR" >&6; }; fi PTCM_DIR=cm else { echo "$as_me:$LINENO: WARNING: Failed to find $CMKIT_DIR/CaffeineMarkEmbeddedApp.class perhaps CaffeineMark is not installed? You need not download CaffeineMark unless you plan on using C code generation using the older Copernicus C code generator. The newer codegen C code generator does not require CaffeineMark. The CaffeineMark kit can be downloaded from http://www-sor.inria.fr/~java/tools/cmkit/embed.zip" >&5 echo "$as_me: WARNING: Failed to find $CMKIT_DIR/CaffeineMarkEmbeddedApp.class perhaps CaffeineMark is not installed? You need not download CaffeineMark unless you plan on using C code generation using the older Copernicus C code generator. The newer codegen C code generator does not require CaffeineMark. The CaffeineMark kit can be downloaded from http://www-sor.inria.fr/~java/tools/cmkit/embed.zip" >&2;} # Note that we don't substitute in the ${PTII} here CMKIT_DIR='${PTII}/vendors/cm' fi fi #-------------------------------------------------------------------- # Caltrop is an language used to define actors # For more information, # see http://embedded.eecs.berkeley.edu/caltrop/ # See if there was a command-line option for where Caltrop is. #-------------------------------------------------------------------- # PTCALTROP_DIR is set to caltrop and used in # $PTII/ptolemy/makefile if Cal was found. PTCALTROP_DIR= # Directory that contains the ptCal jar file CALTROP_DIR='${PTII}/lib' # We only need to look for on if $PTII/ptolemy/caltrop exists CAL_USER_DIR="$PTII/ptolemy/caltrop" if test ! -d "$CAL_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $CAL_USER_DIR is not present, so we need not find the Cal, the actor language." >&5 echo "${ECHO_T}$CAL_USER_DIR is not present, so we need not find the Cal, the actor language." >&6; }; fi else { echo "$as_me:$LINENO: checking for Cal, the actor language" >&5 echo $ECHO_N "checking for Cal, the actor language... $ECHO_C" >&6; } # Check whether --with-cal was given. if test "${with_cal+set}" = set; then withval=$with_cal; CALTROP_DIR=$withval else CALTROP_DIR=$PTII/lib fi if test -f "$CALTROP_DIR/ptCal.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $CALTROP_DIR" >&5 echo "${ECHO_T}$CALTROP_DIR" >&6; }; fi # We found cal { echo "$as_me:$LINENO: checking for saxon8.jar (used by caltrop)" >&5 echo $ECHO_N "checking for saxon8.jar (used by caltrop)... $ECHO_C" >&6; } if test -f "$CALTROP_DIR/saxon8.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $CALTROP_DIR/saxon8.jar" >&5 echo "${ECHO_T}$CALTROP_DIR/saxon8.jar" >&6; }; fi { echo "$as_me:$LINENO: checking for saxon8-dom.jar (used by caltrop)" >&5 echo $ECHO_N "checking for saxon8-dom.jar (used by caltrop)... $ECHO_C" >&6; } if test -f "$CALTROP_DIR/saxon8-dom.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $CALTROP_DIR/saxon8-dom.jar" >&5 echo "${ECHO_T}$CALTROP_DIR/saxon8-dom.jar" >&6; }; fi { echo "$as_me:$LINENO: checking for java_cup.jar (used by caltrop)" >&5 echo $ECHO_N "checking for java_cup.jar (used by caltrop)... $ECHO_C" >&6; } if test -f "$CALTROP_DIR/java_cup.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $CALTROP_DIR/java_cup.jar" >&5 echo "${ECHO_T}$CALTROP_DIR/java_cup.jar" >&6; }; fi PTCALTROP_DIR=caltrop else { echo "$as_me:$LINENO: WARNING: Failed to find $CALTROP_DIR/java_cup.jar which is required by Cal, the actor language. You can download java_cup from http://www.cs.princeton.edu/~appel/modern/java/CUP/ If it is not present, you will not be able to use the Cal actor or run the demonstrations in ptolemy/caltrop" >&5 echo "$as_me: WARNING: Failed to find $CALTROP_DIR/java_cup.jar which is required by Cal, the actor language. You can download java_cup from http://www.cs.princeton.edu/~appel/modern/java/CUP/ If it is not present, you will not be able to use the Cal actor or run the demonstrations in ptolemy/caltrop" >&2;} # Note that we don't substitute in the ${PTII} here CALTROP_DIR='${PTII}/lib/' fi else { echo "$as_me:$LINENO: WARNING: Failed to find $CALTROP_DIR/saxon8-dom.jar which is required by Cal, the actor language. You can download saxon from http://saxon.sourceforge.net/ If it is not present, you will not be able to use the Cal actor or run the demonstrations in ptolemy/caltrop" >&5 echo "$as_me: WARNING: Failed to find $CALTROP_DIR/saxon8-dom.jar which is required by Cal, the actor language. You can download saxon from http://saxon.sourceforge.net/ If it is not present, you will not be able to use the Cal actor or run the demonstrations in ptolemy/caltrop" >&2;} # Note that we don't substitute in the ${PTII} here CALTROP_DIR='${PTII}/lib/' fi else { echo "$as_me:$LINENO: WARNING: Failed to find $CALTROP_DIR/saxon8.jar which is required by Cal, the actor language. You can download saxon from http://saxon.sourceforge.net/ If it is not present, you will not be able to use the Cal actor or run the demonstrations in ptolemy/caltrop" >&5 echo "$as_me: WARNING: Failed to find $CALTROP_DIR/saxon8.jar which is required by Cal, the actor language. You can download saxon from http://saxon.sourceforge.net/ If it is not present, you will not be able to use the Cal actor or run the demonstrations in ptolemy/caltrop" >&2;} # Note that we don't substitute in the ${PTII} here CALTROP_DIR='${PTII}/lib/' fi else { echo "$as_me:$LINENO: WARNING: Failed to find PTII/lib/ptCal.jar ptCal.jar should be present in your distribution. If it is not present, you will not be able to use the Cal actor or run the demonstrations in ptolemy/caltrop" >&5 echo "$as_me: WARNING: Failed to find PTII/lib/ptCal.jar ptCal.jar should be present in your distribution. If it is not present, you will not be able to use the Cal actor or run the demonstrations in ptolemy/caltrop" >&2;} # Note that we don't substitute in the ${PTII} here CALTROP_DIR='${PTII}/lib/' fi fi if test -z "$PTCALTROP_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/caltrop/" else # Note that jasminclasses.jar in soot also includes java_cup ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ \ \ \ " fi #-------------------------------------------------------------------- # "CHIC is a modular verifier for behavioral compatibility checking # of software and hardware components" # # For more information, # see http://www-cad.eecs.berkeley.edu/~tah/chic/ #-------------------------------------------------------------------- # PTCHIC_DIR is set to chic and used in # $PTII/ptolemy/makefile if Chic was found. PTCHIC_DIR= # Directory that contains the chic jar file CHIC_DIR='${PTII}/lib' # We only need to look for if $PTII/ptolemy/chic exists CHIC_USER_DIR="$PTII/ptolemy/chic" if test ! -d "$CHIC_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $CHIC_USER_DIR is not present, so we need not find Chic, the modular verifier for behavioral compatibility checking of software and hardware components." >&5 echo "${ECHO_T}$CHIC_USER_DIR is not present, so we need not find Chic, the modular verifier for behavioral compatibility checking of software and hardware components." >&6; }; fi else { echo "$as_me:$LINENO: checking for Chic, the model checker" >&5 echo $ECHO_N "checking for Chic, the model checker... $ECHO_C" >&6; } # Check whether --with-chic was given. if test "${with_chic+set}" = set; then withval=$with_chic; CHIC_DIR=$withval else CHIC_DIR=$PTII/lib fi if test -f "$CHIC_DIR/chic.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi # We found chic PTCHIC_DIR=chic else { echo "$as_me:$LINENO: WARNING: Failed to find PTII/lib/chic.jar chic.jar should be present in your distribution. Chic is a modular verifier for behavioral compatibility checking of software and hardware components. If it is not present, you will not be able to use the Chic facilities or run the demonstrations in ptolemy/chic." >&5 echo "$as_me: WARNING: Failed to find PTII/lib/chic.jar chic.jar should be present in your distribution. Chic is a modular verifier for behavioral compatibility checking of software and hardware components. If it is not present, you will not be able to use the Chic facilities or run the demonstrations in ptolemy/chic." >&2;} # Note that we don't substitute in the ${PTII} here CHIC_DIR='${PTII}/lib' fi fi if test -z "$PTCHIC_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/chic/" else ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi case "`uname -s`" in Darwin) ECLIPSE_SWT_JAR=org.eclipse.swt.carbon.macosx_ # Darwin has problems with echo -n? PT_ECHO="/bin/echo -n" ;; *) PT_ECHO=echo ;; esac #-------------------------------------------------------------------- # Codegen directories # Check for various codegen directories that are in the devel # tree, but not shipped. #-------------------------------------------------------------------- PTCODEGEN_OPTIONAL_PACKAGES= # We only need to look for if $PTII/ptolemy/codegen exists CODEGEN_USER_DIR="$PTII/ptolemy/codegen" if test ! -d "$CODEGEN_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $CODEGEN_USER_DIR is not present, so we need not check for optional codegen target packages for javadoc." >&5 echo "${ECHO_T}$CODEGEN_USER_DIR is not present, so we need not check for optional codegen target packages for javadoc." >&6; }; fi else { echo "$as_me:$LINENO: checking for optional codegen packages on which to run javadoc" >&5 echo $ECHO_N "checking for optional codegen packages on which to run javadoc... $ECHO_C" >&6; } codegendocpackages="ptolemy.codegen.c.targets.arduino ptolemy.codegen.c.targets.pret ptolemy.codegen.c.targets.pret.actor.lib.gui ptolemy.codegen.c.targets.pret.domains.fsm.kernel ptolemy.codegen.c.targets.pret.domains.giotto.kernel ptolemy.codegen.c.targets.win32 ptolemy.codegen.c.targets.win32.actor.lib.io ptolemy.codegen.c.targets.win32.domains.pn.kernel ptolemy.domains.giotto.cgc" for package in $codegendocpackages do if test "${PTVERBOSE:-none}" = "none"; then $PT_ECHO $ECHO_N "." else $PT_ECHO $ECHO_N "$package " fi path="${PTII}/`echo $package | sed 's@\.@/@g'`" if test -d "${path}"; then PTCODEGEN_OPTIONAL_PACKAGES="$PTCODEGEN_OPTIONAL_PACKAGES $package" fi done if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi fi #-------------------------------------------------------------------- # COLT is a # "Open Source Libraries for High Performance Scientific and Technical # Computing in Java" # For more information, see # http://hoschek.home.cern.ch/hoschek/colt/ #-------------------------------------------------------------------- # PTCOLT_DIR is set to colt and used in # $PTII/ptolemy/actor/lib/makefile if Colt was found. PTCOLT_DIR= # Colt jar files. We ship $PTII/lib/ptcolt.jar, which is a subset # of $PTII/vendors/misc/colt.jar PTCOLT_JARS= # Directory that contains the colt jar file COLT_DIR='${PTII}/vendors/misc/colt' # We only need to look for if $PTII/ptolemy/actor/lib/colt exists COLT_USER_DIR="$PTII/ptolemy/actor/lib/colt" if test ! -d "$COLT_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $COLT_USER_DIR is not present, so we need not find Colt, the Open Source Libraries for High Performance Scientific and Technical Computing in Java." >&5 echo "${ECHO_T}$COLT_USER_DIR is not present, so we need not find Colt, the Open Source Libraries for High Performance Scientific and Technical Computing in Java." >&6; }; fi else { echo "$as_me:$LINENO: checking for Ptolemy subset of Colt, the scientific computing lib" >&5 echo $ECHO_N "checking for Ptolemy subset of Colt, the scientific computing lib... $ECHO_C" >&6; } if test -f "$PTII/lib/ptcolt.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTII/lib/colt.jar" >&5 echo "${ECHO_T}$PTII/lib/colt.jar" >&6; }; fi PTCOLT_JAR="$PTII/lib/ptcolt.jar" PTCOLT_DIR=colt # PTCOLT_PACKAGES is used in ptII/doc/makefile PTCOLT_PACKAGES=ptolemy.actor.lib.colt else { echo "$as_me:$LINENO: WARNING: Failed to find $PTII/lib/ptcolt.jar, will look for full colt.jar" >&5 echo "$as_me: WARNING: Failed to find $PTII/lib/ptcolt.jar, will look for full colt.jar" >&2;} PTCOLT_JAR= fi { echo "$as_me:$LINENO: checking for Full version of Colt, the scientific computing lib" >&5 echo $ECHO_N "checking for Full version of Colt, the scientific computing lib... $ECHO_C" >&6; } # Check whether --with-colt was given. if test "${with_colt+set}" = set; then withval=$with_colt; COLT_DIR=$withval else COLT_DIR=$PTII/vendors/misc/colt fi if test -f "$COLT_DIR/colt.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $COLT_DIR/colt.jar" >&5 echo "${ECHO_T}$COLT_DIR/colt.jar" >&6; }; fi PTCOLT_JARS=$COLT_DIR/colt.jar$CLASSPATHSEPARATOR$PTCOLT_JAR ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " if test -z "$PTCOLT_DIR"; then ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi # We found colt PTCOLT_DIR=colt # PTCOLT_PACKAGES is used in ptII/doc/makefile PTCOLT_PACKAGES=ptolemy.actor.lib.colt else PTCOLT_JARS=$PTCOLT_JAR if test -z "PTCOLT_DIR"; then { echo "$as_me:$LINENO: WARNING: Failed to find $PTII/lib/ptcolt.jar and $COLT_DIR/colt.jar. Colt is the 'Open Source Libraries for High Performance Scientific and Technical Computing in Java' For more information, see http://hoschek.home.cern.ch/hoschek/colt/ If it is not present, you will not be able to use the Colt facilities or run the demonstrations in ptolemy/actor/lib/colt." >&5 echo "$as_me: WARNING: Failed to find $PTII/lib/ptcolt.jar and $COLT_DIR/colt.jar. Colt is the 'Open Source Libraries for High Performance Scientific and Technical Computing in Java' For more information, see http://hoschek.home.cern.ch/hoschek/colt/ If it is not present, you will not be able to use the Colt facilities or run the demonstrations in ptolemy/actor/lib/colt." >&2;} # Note that we don't substitute in the ${PTII} here COLT_DIR='${PTII}/vendors/misc/colt' else if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $COLT_DIR/colt.jar not found, using $PTCOLT_JAR" >&5 echo "${ECHO_T}$COLT_DIR/colt.jar not found, using $PTCOLT_JAR" >&6; }; fi ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi fi fi if test -z "$PTCOLT_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/colt/" fi #-------------------------------------------------------------------- # CUnit is used to test C Code in the code generator # # #-------------------------------------------------------------------- # We only need to look for CUnit if this directory is present CUNIT_USER_DIR="$PTII/ptolemy/codegen/c/kernel/type/test" # PTCUNIT_DIR is set to test and used in # ptII/ptolemy/codegen/c/kernel/type/test/makefile # if CUnit is found PTCUNIT_DIR= if test ! -d "$CUNIT_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $CUNIT_USER_DIR is not present, so we need not find CUnit for testing" >&5 echo "${ECHO_T}$CUNIT_USER_DIR is not present, so we need not find CUnit for testing" >&6; }; fi else { echo "$as_me:$LINENO: checking for CUnit to be used to test the C codegen templates" >&5 echo $ECHO_N "checking for CUnit to be used to test the C codegen templates... $ECHO_C" >&6; } # Check whether --with-tools_jar was given. if test "${with_tools_jar+set}" = set; then withval=$with_tools_jar; CUNIT_DIR=$withval else CUNIT_DIR=/usr/local fi if test -r "$CUNIT_DIR/include/CUnit/Basic.h" ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $CUNIT_DIR" >&5 echo "${ECHO_T}$CUNIT_DIR" >&6; }; fi #PTCUNIT_INCLUDE_DIR="$CUNIT_DIR/include" #PTCUNIT_LIB_DIR="$CUNIT_DIR/lib" PTCUNIT_DIR=test else if test -r /usr/local/include/CUnit/Basic.h ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: /usr/include" >&5 echo "${ECHO_T}/usr/include" >&6; }; fi #PTCUNIT_INCLUDE_DIR=/usr/local/include #PTCUNIT_LIB_DIR=/usr/local/lib PTCUNIT_DIR=test else if test -r "$PTII/vendors/CUnit/include/CUnit/Basic.h" ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTII/vendors/CUnit" >&5 echo "${ECHO_T}$PTII/vendors/CUnit" >&6; }; fi #PTCUNIT_INCLUDE_DIR="$PTII/vendors/CUnit/include" #PTCUNIT_LIB_DIR="$PTII/vendors/CUnit/lib" PTCUNIT_DIR=test else { echo "$as_me:$LINENO: WARNING: Failed to find CUnit in /usr/local or $PTII/vendors/CUnit. CUnit is only necessary to test the C templates of the code generation facility" >&5 echo "$as_me: WARNING: Failed to find CUnit in /usr/local or $PTII/vendors/CUnit. CUnit is only necessary to test the C templates of the code generation facility" >&2;} fi fi fi fi #-------------------------------------------------------------------- # doclets are used to control javadoc # The Ptolemy II doclets are in $PTII/doc/doclets # and use $PTJAVA_HOME/../tools.jar to compile #-------------------------------------------------------------------- # We only need to look for doclet if $PTII/doc/doclets is present DOCLETS_USER_DIR="$PTII/doc/doclets" DOCLETS_PRESENT=no # Location of tools.jar, usually $(PTJAVA_HOME)/../lib/tools.jar TOOLS_JAR= # PTDOCLETS_DIR is set to doclets and used in # $PTII/doc if com.sun.tools.doclets.Taglet can be found PTDOCLETS_DIR= # If we can compile in doc/doclets, we set JDOCTAGLET appropriately # and use JDOCTAGLET in doc/makefile JDOCTAGLET= if test ! -d "$DOCLETS_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $DOCLETS_USER_DIR is not present, so we need not find tools.jar in the JRE." >&5 echo "${ECHO_T}$DOCLETS_USER_DIR is not present, so we need not find tools.jar in the JRE." >&6; }; fi # Use curly brackets around PTII so that if tools.jar is not present TOOLS_JAR='${PTJAVA_HOME}/../lib/tools.jar' else { echo "$as_me:$LINENO: checking for tools.jar for use with doclets" >&5 echo $ECHO_N "checking for tools.jar for use with doclets... $ECHO_C" >&6; } # Check whether --with-tools_jar was given. if test "${with_tools_jar+set}" = set; then withval=$with_tools_jar; TOOLS_JAR=$withval else TOOLS_JAR=${PTJAVA_HOME}/../lib/tools.jar fi if test -f "$TOOLS_JAR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $TOOLS_JAR" >&5 echo "${ECHO_T}$TOOLS_JAR" >&6; }; fi PTDOCLETS_DIR=doclets else { echo "$as_me:$LINENO: WARNING: Could not find tools.jar, checking for classes.jar" >&5 echo "$as_me: WARNING: Could not find tools.jar, checking for classes.jar" >&2;} { echo "$as_me:$LINENO: checking for classes.jar for use with doclets" >&5 echo $ECHO_N "checking for classes.jar for use with doclets... $ECHO_C" >&6; } TOOLS_JAR=${PTJAVA_HOME}/../Classes/classes.jar if test -f "$TOOLS_JAR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $TOOLS_JAR" >&5 echo "${ECHO_T}$TOOLS_JAR" >&6; }; fi PTDOCLETS_DIR=doclets else { echo "$as_me:$LINENO: WARNING: Could not find tools.jar or classes.jar in PTJAVA_HOME = $PTJAVA_HOME Usually, tools.jar is in PTJAVA_HOME/../lib/tools.jar or classes.jar is in PTJAVA_HOME/../Classes/classes.jar Since tools.jar and classes.jar cannot be found, we will not use doclets from ptII/doc/doclets, which means that the actor documentation index system will not work." >&5 echo "$as_me: WARNING: Could not find tools.jar or classes.jar in PTJAVA_HOME = $PTJAVA_HOME Usually, tools.jar is in PTJAVA_HOME/../lib/tools.jar or classes.jar is in PTJAVA_HOME/../Classes/classes.jar Since tools.jar and classes.jar cannot be found, we will not use doclets from ptII/doc/doclets, which means that the actor documentation index system will not work." >&2;} fi fi fi if test -z "$PTDOCLETS_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|doc/doclets/" else addToolsJarToEclipse=yes case "`uname -s`" in Darwin) case "$TOOLS_JAR" in */Classes/classes.jar) addToolsJarToEclipse=no { echo "$as_me:$LINENO: WARNING: Not including $TOOLS_JAR to the Eclipse classpath under Darwin because it is already present." >&5 echo "$as_me: WARNING: Not including $TOOLS_JAR to the Eclipse classpath under Darwin because it is already present." >&2;};; esac;; esac if test "$addToolsJarToEclipse" = "yes" ; then ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi JDOCTAG="-tag Pt.AcceptedRating -tag Pt.ProposedRating" # Use curly brackets so PTII gets expanded in the makefile JDOCTAGLET='-tagletpath "${PTII}" -taglet doc.doclets.RatingTaglet' fi # The javadoc program # Extract the first word of "javadoc", so it can be a program name with args. set dummy javadoc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_JAVADOC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $JAVADOC in [\\/]* | ?:[\\/]*) ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi JAVADOC=$ac_cv_path_JAVADOC if test -n "$JAVADOC"; then { echo "$as_me:$LINENO: result: $JAVADOC" >&5 echo "${ECHO_T}$JAVADOC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test -x "$JAVADOC"; then case "`uname -s`" in CYGWIN*) # We use cygpath here # so that we can run make from within the doc builder gui. The reason is that # the doc builder gui runs make within a cmd shell, not a bash shell, which # means that /cygdrive/c notation will not be understood. { echo "$as_me:$LINENO: checking Under windows, javadoc should use the non-cywin path" >&5 echo $ECHO_N "checking Under windows, javadoc should use the non-cywin path... $ECHO_C" >&6; } JAVADOC=`cygpath --mixed "$JAVADOC"` if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $JAVADOC" >&5 echo "${ECHO_T}$JAVADOC" >&6; }; fi ;; esac fi #-------------------------------------------------------------------- # We use Eclipse for parsing java backtracking. # Eclipse is an integrated development environment, see # http://www.eclipse.org # See if there was a command-line option for where Eclipse can be found # is # If not, look for for $PTII/vendors/eclipse #-------------------------------------------------------------------- # PTBACKTRACK_DIR is set to backtrack and used in # $PTII/ptolemy/makefile if we can handle generics (Java 1.5) PTBACKTRACK_DIR=backtrack # PTBACKTRACK_ECLIPSE_DIR is set to eclipse and used in # $PTII/ptolemy/backtrack/makefile if Eclipse was found # and the jar files were found PTBACKTRACK_ECLIPSE_DIR= # Jar files used by ptolemy/backtrack/eclipse PTBACKTRACK_ECLIPSE_JARS= # Default to looking for Eclipse PTECLIPSE_PLUGINS=yes eclipseMessage="The backtracking facility requires Eclipse 3.2 or greater. You need not download Eclipse unless you plan on using the backtracking facility in ptolemy.backtrack. Eclipse may be downloaded from http://www.eclipse.org/" if test ! -d "$PTII/ptolemy/backtrack/eclipse" -o "x$ECLIPSE_CLASSPATHENTRY_PDE_REQUIREDPLUGINS" == "x"; then if test ! -d "$PTII/ptolemy/backtrack/eclipse"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $PTII/ptolemy/backtrack/eclipse is not present, so we need not find Eclipse." >&5 echo "${ECHO_T}$PTII/ptolemy/backtrack/eclipse is not present, so we need not find Eclipse." >&6; }; fi fi if test "x$ECLIPSE_CLASSPATHENTRY_PDE_REQUIREDPLUGINS" == "x"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: You are running under Mac OS X, and backtracking is not currently supported. See http://chess.eecs.berkeley.edu/ptexternal/wiki/Main/Mac" >&5 echo "${ECHO_T}You are running under Mac OS X, and backtracking is not currently supported. See http://chess.eecs.berkeley.edu/ptexternal/wiki/Main/Mac" >&6; }; fi fi else if test ! "$HAS_GENERICS" = "yes"; then { echo "$as_me:$LINENO: WARNING: You are running Java $JVERSION, which does not support generics. Thus, ptolemy/backtrack/eclipse will not compile." >&5 echo "$as_me: WARNING: You are running Java $JVERSION, which does not support generics. Thus, ptolemy/backtrack/eclipse will not compile." >&2;} PTBACKTRACK_DIR= else { echo "$as_me:$LINENO: checking for Eclipse installation" >&5 echo $ECHO_N "checking for Eclipse installation... $ECHO_C" >&6; } # Use changequote to protect the square brackets in sed # We cd to *clipse so that we get the case right in the jar files. if test -d "c:/Program Files/Eclipse" -o -d "c:/Program Files/eclipse"; then # Remove /cygdrive TMP_ECLIPSE_DIR="`cd c:/Program\ Files/*clipse; pwd | sed 's@/cygdrive/\([a-z]\)/@\1:/@'`" else TMP_ECLIPSE_DIR="c:/Program\ Files/eclipse" fi if test -d "/Applications/eclipse"; then TMP_ECLIPSE_DIR=/Applications/eclipse fi # Check whether --with-eclipse was given. if test "${with_eclipse+set}" = set; then withval=$with_eclipse; ECLIPSE_DIR=$withval else ECLIPSE_DIR=$TMP_ECLIPSE_DIR fi if test "$ECLIPSE_DIR" = "no"; then { echo "$as_me:$LINENO: WARNING: configure called with --without-eclipse-plugins, not building in ptolemy/apps/eclipse and ptolemy/backtrack." >&5 echo "$as_me: WARNING: configure called with --without-eclipse-plugins, not building in ptolemy/apps/eclipse and ptolemy/backtrack." >&2;} ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/apps/eclipse/" else if test ! -d "$ECLIPSE_DIR"; then { echo "$as_me:$LINENO: WARNING: Failed to find Eclipse in $ECLIPSE_DIR" >&5 echo "$as_me: WARNING: Failed to find Eclipse in $ECLIPSE_DIR" >&2;} { echo "$as_me:$LINENO: checking for $PTII/vendors/eclipse" >&5 echo $ECHO_N "checking for $PTII/vendors/eclipse... $ECHO_C" >&6; } if test -d "$PTII/vendors/eclipse"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi ECLIPSE_DIR="$PTII/vendors/eclipse" else { echo "$as_me:$LINENO: WARNING: Failed to find Eclipse in $PTII/vendors/eclipse" >&5 echo "$as_me: WARNING: Failed to find Eclipse in $PTII/vendors/eclipse" >&2;} # Extract the first word of "eclipse", so it can be a program name with args. set dummy eclipse; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTECLIPSE+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTECLIPSE in [\\/]* | ?:[\\/]*) ac_cv_path_PTECLIPSE="$PTECLIPSE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTECLIPSE="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTECLIPSE=$ac_cv_path_PTECLIPSE if test -n "$PTECLIPSE"; then { echo "$as_me:$LINENO: result: $PTECLIPSE" >&5 echo "${ECHO_T}$PTECLIPSE" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${PTECLIPSE:-none}" != "none"; then # Remove /cygdrive ECLIPSE_DIR=`dirname $PTECLIPSE | sed 's@/cygdrive/\([a-z]\)/@\1:/@'` fi fi fi fi if test -d "$ECLIPSE_DIR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $ECLIPSE_DIR" >&5 echo "${ECHO_T}$ECLIPSE_DIR" >&6; }; fi { echo "$as_me:$LINENO: checking for jars used by backtracking in $ECLIPSE_DIR" >&5 echo $ECHO_N "checking for jars used by backtracking in $ECLIPSE_DIR... $ECHO_C" >&6; } # jars="jdt.core osgi resources runtime" # jdt.core core.runtime_ are needed to build backtrack # osgi_ and resources_ are needed to run the tests in backtrack jars="eclipse.jdt.core_ eclipse.core.runtime_ eclipse.osgi_ eclipse.core.resources_ eclipse.equinox.common eclipse.equinox.preferences eclipse.core.jobs eclipse.core.contenttype eclipse.equinox.common_ eclipse.core.jobs_ eclipse.core.contenttype_ eclipse.equinox.preferences_" eclipsejarpath= for jar in $jars do if test "${PTVERBOSE:-none}" = "none"; then $PT_ECHO $ECHO_N "." else $PT_ECHO $ECHO_N "$jar " fi jarpath=`$FIND "$ECLIPSE_DIR/plugins" -name "*${jar}*.jar" | head -1` if test -f "$jarpath"; then # Keep track of the jars so we can use them while building # with make. eclipsejarpath="$eclipsejarpath$CLASSPATHSEPARATOR$jarpath" # NOTE: Eclipse 3.0 has problems if we include these # jars in the .classpath, instead, .classpath.in includes: # #ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ #" else { echo "$as_me:$LINENO: WARNING: Failed to find $jar in $ECLIPSE_DIR: $jarpath" >&5 echo "$as_me: WARNING: Failed to find $jar in $ECLIPSE_DIR: $jarpath" >&2;} eclipsejarpath= break fi done if test ! -z "$eclipsejarpath"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi # Get the plugin jar files for use with javadoc in $PTII/doc case "`uname -s`" in Darwin) ECLIPSE_SWT_JAR=org.eclipse.swt.carbon.macosx_ # Darwin has problems with echo -n? PT_ECHO="/bin/echo -n" ;; *) ECLIPSE_SWT_JAR=eclipse.swt.win32.win32.x86_ PT_ECHO=echo ;; esac { echo "$as_me:$LINENO: checking for Eclipse jars used with javadoc" >&5 echo $ECHO_N "checking for Eclipse jars used with javadoc... $ECHO_C" >&6; } docjars="eclipse.core.commands_ eclipse.equinox.registry_ eclipse.jface_ eclipse.jface.text_ eclipse.ui.workbench_ eclipse.ui.workbench.texteditor_ eclipse.ui.console_ eclipse.ui.editors_ eclipse.text_ eclipse.ui.forms_ eclipse.ui.ide_ eclipse.jdt.ui_ $ECLIPSE_SWT_JAR" # eclipse.core.runtime_ org.eclipse.equinox.common_ org.eclipse.core.resources_ org.eclipse.core.jobs_ PTBACKTRACK_ECLIPSE_DOC_JARS= for jar in $docjars do if test "${PTVERBOSE:-none}" = "none"; then $PT_ECHO $ECHO_N "." else $PT_ECHO $ECHO_N "$jar " fi jarpath=`$FIND "$ECLIPSE_DIR/plugins" -name "*${jar}*.jar" | head -1` if test -f "$jarpath"; then # Keep track of the jars so we can use them while # building with make. PTBACKTRACK_ECLIPSE_DOC_JARS="$PTBACKTRACK_ECLIPSE_DOC_JARS$CLASSPATHSEPARATOR$jarpath" # case "`uname -s`" in # Darwin) ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ # ";; # esac else { echo "$as_me:$LINENO: WARNING: Failed to find $jar in $ECLIPSE_DIR: $jarpath" >&5 echo "$as_me: WARNING: Failed to find $jar in $ECLIPSE_DIR: $jarpath" >&2;} failedToFindEclipseDocJars=1 break fi done if test ! -z "$PTBACKTRACK_ECLIPSE_DOC_JARS" -a -z "$failedToFindEclipseDocJars"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi else { echo "$as_me:$LINENO: WARNING: Failed to find Eclipse jar file for docs. As a result, building the javadoc documentation might show warnings. $eclipseMessage" >&5 echo "$as_me: WARNING: Failed to find Eclipse jar file for docs. As a result, building the javadoc documentation might show warnings. $eclipseMessage" >&2;} fi startdir=$PTII cd "$srcdir/config" { echo "$as_me:$LINENO: checking for ITreeSelection from Eclipse" >&5 echo $ECHO_N "checking for ITreeSelection from Eclipse... $ECHO_C" >&6; } if "$JAVAC" -classpath "$PTBACKTRACK_ECLIPSE_DOC_JARS" EclipseITreeSelection.java ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi # Set to eclipse and used in # $PTII/ptolemy/backtrack/makefile if Eclipse jar # files were found PTBACKTRACK_ECLIPSE_DIR=eclipse # PTBACKTRACK_ECLIPSE_PACKAGES is used in ptII/doc/makefile PTBACKTRACK_ECLIPSE_PACKAGES="ptolemy.backtrack.eclipse.ast ptolemy.backtrack.eclipse.ast.transform ptolemy.backtrack.eclipse.plugin ptolemy.backtrack.eclipse.plugin.actions ptolemy.backtrack.eclipse.plugin.editor ptolemy.backtrack.eclipse.plugin.preferences ptolemy.backtrack.eclipse.plugin.util" PTBACKTRACK_ECLIPSE_JARS=$eclipsejarpath else { echo "$as_me:$LINENO: WARNING: Failed to compile config/EclipseITreeSelection.java with (cd \"$PTII/config\"; \"$JAVAC\" -classpath $PTBACKTRACK_ECLIPSE_DOC_JARS EclipseITreeSelection.java) $eclipseMessage" >&5 echo "$as_me: WARNING: Failed to compile config/EclipseITreeSelection.java with (cd \"$PTII/config\"; \"$JAVAC\" -classpath $PTBACKTRACK_ECLIPSE_DOC_JARS EclipseITreeSelection.java) $eclipseMessage" >&2;} eclipsejarpath= fi cd "$startdir" fi fi if test "$ECLIPSE_DIR" != "no" -a "$PTBACKTRACK_ECLIPSE_DIR" = ""; then { echo "$as_me:$LINENO: WARNING: Failed to find Eclipse perhaps Eclipse is not installed? $eclipseMessage" >&5 echo "$as_me: WARNING: Failed to find Eclipse perhaps Eclipse is not installed? $eclipseMessage" >&2;} PTBACKTRACK_ECLIPSE_JARS= fi fi fi if test -z "$PTBACKTRACK_ECLIPSE_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/backtrack/|ptolemy/backtrack/ast/" fi #-------------------------------------------------------------------- # FuzzyEngine is an "Open source fuzzy inference engine for Java" # http://people.clarkson.edu/~esazonov/FuzzyEngine.htm # However, FuzzyEngine is GPL'd, so we don't ship it. # # See if there was a command-line option for where FuzzyEngine interface is # If not, look for $PTII/vendors/misc/FuzzyEngine/fuzzy/FuzzyEngine.class #-------------------------------------------------------------------- # PTFUZZY_DIR is set to fuzzy and used in # $PTII/ptolemy/actor/lib/logic/makefile if FuzzyEngine.class was found PTFUZZY_DIR= # FuzzyEngine Directory # http://people.clarkson.edu/~esazonov/FuzzyEngine.htm PTFUZZYENGINE_DIR='${PTII}/vendors/misc/FuzzyEngine' FUZZYLOGIC_USER_DIR="$PTII/ptolemy/actor/lib/logic/fuzzy" # We only need to look for FuzzyEngine if $FUZZYLOGIC_USER_DIR if test ! -d "$FUZZYLOGIC_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $FUZZYLOGIC_USER_DIR is not present, so we need not find the FuzzyEngine interface." >&5 echo "${ECHO_T}$FUZZYLOGIC_USER_DIR is not present, so we need not find the FuzzyEngine interface." >&6; }; fi else { echo "$as_me:$LINENO: checking for FuzzyEngine directory" >&5 echo $ECHO_N "checking for FuzzyEngine directory... $ECHO_C" >&6; } # Check whether --with-fuzzyengine was given. if test "${with_fuzzyengine+set}" = set; then withval=$with_fuzzyengine; PTFUZZYENGINE_DIR=$withval else PTFUZZYENGINE_DIR=$PTII/vendors/misc/FuzzyEngine fi if test -f "$PTFUZZYENGINE_DIR/fuzzy/FuzzyEngine.class"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTFUZZYENGINE_DIR" >&5 echo "${ECHO_T}$PTFUZZYENGINE_DIR" >&6; }; fi # Set to fuzzy and used in # $PTII/ptolemy/actor/lib/logic/makefile if FuzzyEngine.class PTFUZZY_DIR=fuzzy # PTFUZZYLOGIC_PACKAGES is used in ptII/doc/makefile PTFUZZY_PACKAGES=ptolemy.actor.lib.logic.fuzzy fi if test "$PTFUZZY_DIR" = ""; then { echo "$as_me:$LINENO: WARNING: Failed to find fuzzy/FuzzyEngine.class in $PTFUZZYENGINE_DIR. Perhaps the FuzzyEngine is not installed? You need not download the FuzzyEngine interface unless you plan on using the actor.lib.logic.fuzzy actors with Ptolemy II. The FuzzyEngine interface can be downloaded from http://people.clarkson.edu/~esazonov/FuzzyEngine.htm an untar'd into $PTII/vendors/misc so that $PTII/vendors/misc/FuzzyEngine/fuzzy/FuzzyEngine.class exists. " >&5 echo "$as_me: WARNING: Failed to find fuzzy/FuzzyEngine.class in $PTFUZZYENGINE_DIR. Perhaps the FuzzyEngine is not installed? You need not download the FuzzyEngine interface unless you plan on using the actor.lib.logic.fuzzy actors with Ptolemy II. The FuzzyEngine interface can be downloaded from http://people.clarkson.edu/~esazonov/FuzzyEngine.htm an untar'd into $PTII/vendors/misc so that $PTII/vendors/misc/FuzzyEngine/fuzzy/FuzzyEngine.class exists. " >&2;} # Note that we don't substitute in the ${PTII} here PTFUZZYENGINE_DIR='${PTII}/vendors/misc/FuzzyEngine' fi fi if test -z "$PTFUZZY_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/logic/fuzzy/" else ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi #-------------------------------------------------------------------- # Garbage Collector (GC) # The C code generator can use the Boehm Garbage Collector # See http://www.hpl.hp.com/personal/Hans_Boehm/gc/ #-------------------------------------------------------------------- # # GC_LD_DIRECTIVE is set to the values to pass to cc or ld if # GC_malloc() can be found either in the default compiler location # or in $PTII/lib. # GC_LD_DIRECTIVE is used in ptolemy/copernicus/c/ GC_LD_DIRECTIVE= # GC_DIR is set to the directory where GC can be found GC_DIR= if test ! -d "$PTII/ptolemy/copernicus/c"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $PTII/ptolemy/copernicus/c is not present, so we need not find the Boehm GC." >&5 echo "${ECHO_T}$PTII/ptolemy/copernicus/c is not present, so we need not find the Boehm GC." >&6; }; fi else # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTCC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTCC in [\\/]* | ?:[\\/]*) ac_cv_path_PTCC="$PTCC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTCC="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTCC=$ac_cv_path_PTCC if test -n "$PTCC"; then { echo "$as_me:$LINENO: result: $PTCC" >&5 echo "${ECHO_T}$PTCC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${PTCC:-none}" = "none"; then { echo "$as_me:$LINENO: WARNING: Failed to find gcc" >&5 echo "$as_me: WARNING: Failed to find gcc" >&2;} # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTCC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTCC in [\\/]* | ?:[\\/]*) ac_cv_path_PTCC="$PTCC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTCC="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTCC=$ac_cv_path_PTCC if test -n "$PTCC"; then { echo "$as_me:$LINENO: result: $PTCC" >&5 echo "${ECHO_T}$PTCC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${PTCC:-none}" != "none"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTCC" >&5 echo "${ECHO_T}$PTCC" >&6; }; fi else { echo "$as_me:$LINENO: WARNING: Failed to find gcc or cc, so we will not be able use GC in $PTII/ptolemy/copernicus/c" >&5 echo "$as_me: WARNING: Failed to find gcc or cc, so we will not be able use GC in $PTII/ptolemy/copernicus/c" >&2;}; fi fi if test "${PTCC:-none}" != "none"; then { echo "$as_me:$LINENO: checking for Garbage Collector" >&5 echo $ECHO_N "checking for Garbage Collector... $ECHO_C" >&6; } { echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6; } if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lgc $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char GC_malloc (); int main () { return GC_malloc (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_gc_GC_malloc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_gc_GC_malloc=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6; } if test $ac_cv_lib_gc_GC_malloc = yes; then PT_GC=yes else PT_GC=no fi if test "$PT_GC" = "yes"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; }; fi else if test -f "$PTII/lib/libgc.a"; then # FIXME: what about Windows? GC_LD_DIRECTIVE='"-L${PTII}/lib" -lgc' if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: use $GC_LD_DIRECTIVE" >&5 echo "${ECHO_T}use $GC_LD_DIRECTIVE" >&6; }; fi else # FIXME: This will not work if $PTII has spaces dirs="$PTII/vendors/gc/gc6.4 $PTII/vendors/gc/gc6.1 $PTII/vendors/gc/gc" for dir in $dirs do if test -d "$dir"; then { echo "$as_me:$LINENO: WARNING: Failed to find GC_malloc(), but $dir exists. See \$PTII/vendors/gc/README.txt if you would like to use the Garbage Collector with the C code generator" >&5 echo "$as_me: WARNING: Failed to find GC_malloc(), but $dir exists. See \$PTII/vendors/gc/README.txt if you would like to use the Garbage Collector with the C code generator" >&2;} fi done fi fi fi { echo "$as_me:$LINENO: checking for gc.h" >&5 echo $ECHO_N "checking for gc.h... $ECHO_C" >&6; } # Check whether --with-gc-include was given. if test "${with_gc_include+set}" = set; then withval=$with_gc_include; GC_INCLUDE_DIR=$withval else GC_INCLUDE_DIR=$PTII/vendors/gc/gc/include fi if test -f "$GC_INCLUDE_DIR/gc.h"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $GC_INCLUDE_DIR/gc.h" >&5 echo "${ECHO_T}$GC_INCLUDE_DIR/gc.h" >&6; }; fi else # FIXME: This will not work if $PTII has spaces dirs="$PTII/vendors/gc/gc6.4 $PTII/vendors/gc/gc6.1 $PTII/vendors/gc/gc" for dir in $dirs do if test -f "$dir/include/gc.h"; then GC_INCLUDE_DIR=$PTII/vendors/gc/gc6.4/include if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $GC_INCLUDE_DIR/gc.h" >&5 echo "${ECHO_T}$GC_INCLUDE_DIR/gc.h" >&6; }; fi fi done if test ! -f "$GC_INCLUDE_DIR/gc.h"; then { echo "$as_me:$LINENO: WARNING: Failed to find gc.h. Checked the following directories: $dirs The Boehm Garbage Collector can be downloaded from http://www.hpl.hp.com/personal/Hans_Boehm/gc/ if you wish to use it with the the older copernicus C code generator. The newer codegenerator in codegen does _not_ require the Boehm GC." >&5 echo "$as_me: WARNING: Failed to find gc.h. Checked the following directories: $dirs The Boehm Garbage Collector can be downloaded from http://www.hpl.hp.com/personal/Hans_Boehm/gc/ if you wish to use it with the the older copernicus C code generator. The newer codegenerator in codegen does _not_ require the Boehm GC." >&2;} fi fi fi #-------------------------------------------------------------------- # iText PDF is a "a library that allows you to generate PDF files on the fly." # http://itextpdf.com/ # However, itextpdf is GPL'd, so we don't ship it. #-------------------------------------------------------------------- # Set to itextpdf and used in # $PTII/ptolemy/vergil/basic/makefile if iText.jar was found PTITEXTPDF_DIR= # iText PDF jar file. iText is from # http://itextpdf.com PTITEXTPDF_JAR= # We only need to look for iText.jar if $ITEXTPDF_USER_DIR exists ITEXTPDF_USER_DIR="$PTII/ptolemy/vergil/basic/itextpdf" if test ! -d "$ITEXTPDF_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $ITEXT_USER_DIR is not present, so we need not find the iText PDF interface." >&5 echo "${ECHO_T}$ITEXT_USER_DIR is not present, so we need not find the iText PDF interface." >&6; }; fi else { echo "$as_me:$LINENO: checking for the iText PDF jar" >&5 echo $ECHO_N "checking for the iText PDF jar... $ECHO_C" >&6; } # Check whether --with-itextpdf was given. if test "${with_itextpdf+set}" = set; then withval=$with_itextpdf; PTITEXTPDF_JAR=$withval else PTITEXTPDF_JAR=$PTII/vendors/misc/itext/iText.jar fi if test -f "$PTITEXTPDF_JAR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTITEXTPDF_JAR" >&5 echo "${ECHO_T}$PTITEXTPDF_JAR" >&6; }; fi # Set to itextpdf and used in # $PTII/ptolemy/vergil/basic/makefile if iText.jar is found PTITEXTPDF_DIR=itextpdf # PTITEXTPDF_PACKAGES is used in ptII/doc/makefile PTITEXTPDF_PACKAGES=ptolemy.vergil.basic.itextpdf fi if test "$PTITEXTPDF_DIR" = ""; then { echo "$as_me:$LINENO: WARNING: Failed to find iText.jar as $PTITEXTPDF_JAR. Perhaps the iText is not installed? You need not download the iText interface unless you would like to export PDF from Vergil. Note that the iText jar file has the Affero General Public License (AGPL), which is an extension of the GNU Public License. To use the iText interface, download iText from http://itextpdf.com place iText.jar in $PTII/vendors/misc/itext/ and then rerun configure." >&5 echo "$as_me: WARNING: Failed to find iText.jar as $PTITEXTPDF_JAR. Perhaps the iText is not installed? You need not download the iText interface unless you would like to export PDF from Vergil. Note that the iText jar file has the Affero General Public License (AGPL), which is an extension of the GNU Public License. To use the iText interface, download iText from http://itextpdf.com place iText.jar in $PTII/vendors/misc/itext/ and then rerun configure." >&2;} # Note that we don't substitute in the ${PTII} here PTITEXTPDF_JAR='${PTII}/vendors/misc/itext/iText.jar' fi fi if test -z "$PTITEXTPDF_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/vergil/basic/itextpdf/" else ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi #-------------------------------------------------------------------- # GMP - GNU arbitrary precision arithmetic library, needed only by mescal # #-------------------------------------------------------------------- # We only need to look for GMP if mescal/relsat is present MESCAL_RELSAT_USER_DIR="$PTII/mescal/relsat" PTGMP=no if test ! -d "$MESCAL_RELSAT_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $MESCAL_RELSAT_USER_DIR is not present, so we need not find GMP." >&5 echo "${ECHO_T}$MESCAL_RELSAT_USER_DIR is not present, so we need not find GMP." >&6; }; fi else case "`uname -s`" in Linux) ARCH=linux;; *) ARCH=unknown;; esac if test "$PTGMP" = "no"; then { echo "$as_me:$LINENO: checking for GMP in \$PTII/mescal/include/gmp.h" >&5 echo $ECHO_N "checking for GMP in \$PTII/mescal/include/gmp.h... $ECHO_C" >&6; } if test -f "$PTII/mescal/include/gmp.h"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi PTGMP_INCLUDE="-I$PTII/mescal/include" PTGMP_LIB="-L$PTII/mescal/lib" PTGMP_LD_FLAGS="-Wl,-R$PTII/mescal/lib" PTGMP=yes else if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: not found, keep looking" >&5 echo "${ECHO_T}not found, keep looking" >&6; }; fi fi fi if test "$PTGMP" = "no"; then { echo "$as_me:$LINENO: checking for GMP in /usr/local/include/gmp.h" >&5 echo $ECHO_N "checking for GMP in /usr/local/include/gmp.h... $ECHO_C" >&6; } if test -f "/usr/local/include/gmp.h"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi if test "$ARCH" != "linux"; then PTGMP_INCLUDE=-I/usr/local/include PTGMP_LIB=-L/usr/local/lib PTGMP_LD_FLAGS="-Wl,-R/usr/local/lib" fi PTGMP=yes else if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: not found, keep looking" >&5 echo "${ECHO_T}not found, keep looking" >&6; }; fi fi fi if test "$PTGMP" = "no"; then { echo "$as_me:$LINENO: checking for GMP" >&5 echo $ECHO_N "checking for GMP... $ECHO_C" >&6; } for ac_header in gmp.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF PTGMP=yes else PTGMP=no fi done fi if test "$PTGMP" = "yes"; then { echo "$as_me:$LINENO: checking for gcc" >&5 echo $ECHO_N "checking for gcc... $ECHO_C" >&6; } # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTCC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTCC in [\\/]* | ?:[\\/]*) ac_cv_path_PTCC="$PTCC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTCC="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTCC=$ac_cv_path_PTCC if test -n "$PTCC"; then { echo "$as_me:$LINENO: result: $PTCC" >&5 echo "${ECHO_T}$PTCC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${PTCC:-none}" = "none"; then { echo "$as_me:$LINENO: WARNING: Failed to find gcc" >&5 echo "$as_me: WARNING: Failed to find gcc" >&2;} # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTCC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTCC in [\\/]* | ?:[\\/]*) ac_cv_path_PTCC="$PTCC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTCC="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTCC=$ac_cv_path_PTCC if test -n "$PTCC"; then { echo "$as_me:$LINENO: result: $PTCC" >&5 echo "${ECHO_T}$PTCC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${PTCC:-none}" = "none"; then { echo "$as_me:$LINENO: WARNING: Failed to find gcc or cc, so we will not be able to compile the mescal output" >&5 echo "$as_me: WARNING: Failed to find gcc or cc, so we will not be able to compile the mescal output" >&2;}; fi fi PTGMP_OK=no startdir=$PTII # Make sure that we check for CXX before cding in to config ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cd "$srcdir/config" { echo "$as_me:$LINENO: checking gmp by compiling a C small program" >&5 echo $ECHO_N "checking gmp by compiling a C small program... $ECHO_C" >&6; } if "$PTCC" gmpTest.c $PTGMP_INCLUDE -o gmpTest $PTGMP_LD_FLAGS $PTGMP_LIB -lgmp ; then ./gmpTest if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi else RESULTS=`"$PTCC" gmpTest.c $PTGMP_INCLUDE -o gmpTest $PTGMP_LD_FLAGS$PTGMP_LIB -lgmp` { echo "$as_me:$LINENO: WARNING: Failed to compile config/gmpTest.c, \"$PTCC\" gmpTest.c $PTGMP_INCLUDE -o gmpTest $PTGMP_LIB -lgmp $RESULTS" >&5 echo "$as_me: WARNING: Failed to compile config/gmpTest.c, \"$PTCC\" gmpTest.c $PTGMP_INCLUDE -o gmpTest $PTGMP_LIB -lgmp $RESULTS" >&2;} fi { echo "$as_me:$LINENO: checking gmp by compiling a C++ small program" >&5 echo $ECHO_N "checking gmp by compiling a C++ small program... $ECHO_C" >&6; } if "$CXX" gmpTest2.cc $PTGMP_INCLUDE -o gmpTest2 $PTGMP_LD_FLAGS $PTGMP_LIB -lgmpxx -lgmp ; then ./gmpTest2 if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi else RESULTS=`"$CXX" gmpTest2.cc $PTGMP_INCLUDE -o gmpTest2 $PTGMP_LD_FLAGS $PTGMP_LIB -lgmpcxx -lgmp` { echo "$as_me:$LINENO: WARNING: Failed to compile config/gmpTest2.cc, \"$CXX\" gmpTest2.cc $PTGMP_INCLUDE -o gmpTest2 $PTGMP_LD_FLAG $PTGMP_LIB -lgmpxx -lgmp $RESULTS Under Cygwin, perhaps you need to add $PTII/bin/mescal to your PATH, Under Linux, perhaps you need to add $PTII/bin/mescal to your LD_LIBRARY_PATH" >&5 echo "$as_me: WARNING: Failed to compile config/gmpTest2.cc, \"$CXX\" gmpTest2.cc $PTGMP_INCLUDE -o gmpTest2 $PTGMP_LD_FLAG $PTGMP_LIB -lgmpxx -lgmp $RESULTS Under Cygwin, perhaps you need to add $PTII/bin/mescal to your PATH, Under Linux, perhaps you need to add $PTII/bin/mescal to your LD_LIBRARY_PATH" >&2;} fi cd "$startdir" fi if test "$PTGMP" = "no"; then { echo "$as_me:$LINENO: WARNING: Failed to find gmp.h, which is only needed to compile $MESCAL_RELSAT_USER_DIR gmp can be found at http://www.swox.com/gmp/ Mescal uses c++, and configure will look in /usr/local and $PTII/mescal/include and $PTII/mescal/lib for gmp, so gmp should be configured with ./configure --enable-cxx --prefix=$PTII/mescal" >&5 echo "$as_me: WARNING: Failed to find gmp.h, which is only needed to compile $MESCAL_RELSAT_USER_DIR gmp can be found at http://www.swox.com/gmp/ Mescal uses c++, and configure will look in /usr/local and $PTII/mescal/include and $PTII/mescal/lib for gmp, so gmp should be configured with ./configure --enable-cxx --prefix=$PTII/mescal" >&2;} fi fi #-------------------------------------------------------------------- # JAI is the Java Advanced Imaging Framework # For more information, # see http://java.sun.com/products/java-media/jai/ # See if there was a command-line option for where JAI is. #-------------------------------------------------------------------- # PTJAI_DIR is set to jai and used in # $PTII/ptolemy/actor/makefile if jai was found PTJAI_DIR= # Used in ptolemy/actor/lib/jai/makefile JAI_JARS= # We only need to look for JAI if the actor/lib/jai directory is present JAI_USER_DIR="$PTII/ptolemy/actor/lib/jai" if test ! -d "$JAI_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $JAI_USER_DIR is not present, so we need not find JAI - The Java Advanced Imaging API." >&5 echo "${ECHO_T}$JAI_USER_DIR is not present, so we need not find JAI - The Java Advanced Imaging API." >&6; }; fi else { echo "$as_me:$LINENO: checking for Java Advanced Imaging (JAI) API" >&5 echo $ECHO_N "checking for Java Advanced Imaging (JAI) API... $ECHO_C" >&6; } # We need to run javac in the config directory so that javac from jdk1.1.6 # under NT and cygwin works properly startdir=$PTII cd "$srcdir/config" # Don't use 'env $JAVAC . . .' here, it will not work under Cygwin if "$JAVAC" JAITest.java ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi PTJAI_DIR=jai # PTJAI_PACKAGES is used in ptII/doc/makefile PTJAI_PACKAGES=ptolemy.actor.lib.jai { echo "$as_me:$LINENO: checking for the jai jar files" >&5 echo $ECHO_N "checking for the jai jar files... $ECHO_C" >&6; } if "$JAVAC" FindClass.java ; then # Usually jai-core.jar will be in the CLASSPATH JAI_JAR=`CLASSPATH="$PTII/config$CLASSPATHSEPARATOR$CLASSPATH" "$JAVA" FindClass javax.media.jai.RenderedOp` if test -f "$JAI_JAR" ; then JAI_JARS_DIR=`dirname "$JAI_JAR"` JAI_JARS="${JAI_JARS_DIR}/jai_core.jar${CLASSPATHSEPARATOR}${JAI_JARS_DIR}/jai_codec.jar" if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $JAI_JARS" >&5 echo "${ECHO_T}$JAI_JARS" >&6; }; fi # Here, we should not be adding JAI_JAR to Eclipse # if jai.jar was in the jre case "`uname -s`" in Darwin) { echo "$as_me:$LINENO: WARNING: Not including $JAI_JARS_DIR/{jai_core.jar,jai_codec.jar} to the Eclipse classpath under Darwin because it is already present." >&5 echo "$as_me: WARNING: Not including $JAI_JARS_DIR/{jai_core.jar,jai_codec.jar} to the Eclipse classpath under Darwin because it is already present." >&2;};; *) ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ \ " ;; esac else { echo "$as_me:$LINENO: WARNING: Either we could not find javax.media.jai.RenderOp or else it was already in the JRE. Searching for jai-core.jar returned: $JAI_JAR If the class cannot be found, then Eclipse might not be able to find the JAI files. This is only a problem if you are using Eclipse. If the class was in the JRE, then Eclipse should compile the JAI files without problems" >&5 echo "$as_me: WARNING: Either we could not find javax.media.jai.RenderOp or else it was already in the JRE. Searching for jai-core.jar returned: $JAI_JAR If the class cannot be found, then Eclipse might not be able to find the JAI files. This is only a problem if you are using Eclipse. If the class was in the JRE, then Eclipse should compile the JAI files without problems" >&2;} JAI_JAR= fi else { echo "$as_me:$LINENO: WARNING: '\"$JAVAC\" FindClass.java' failed. This means that Eclipse might not be able to find the JAI files. This is only a problem if you are using Eclipse" >&5 echo "$as_me: WARNING: '\"$JAVAC\" FindClass.java' failed. This means that Eclipse might not be able to find the JAI files. This is only a problem if you are using Eclipse" >&2;} fi else { echo "$as_me:$LINENO: WARNING: '\"$JAVAC\" JAITest.java' failed. perhaps the Java Advanced Imaging API is not installed? You need not download Jai unless you plan on using the video actors in $JAI_USER_DIR The JAI API can be downloaded from http://java.sun.com/products/java-media/jai/" >&5 echo "$as_me: WARNING: '\"$JAVAC\" JAITest.java' failed. perhaps the Java Advanced Imaging API is not installed? You need not download Jai unless you plan on using the video actors in $JAI_USER_DIR The JAI API can be downloaded from http://java.sun.com/products/java-media/jai/" >&2;} fi cd "$startdir" fi if test -z "$PTJAI_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/jai/" fi #-------------------------------------------------------------------- # JMF is the Java Media Framework # For more information, # see http://java.sun.com/products/java-media/jmf # See if there was a command-line option for where JMF is. #-------------------------------------------------------------------- # PTJMF_DIR is set to jmf and used in # $PTII/ptolemy/actor/lib/makefile if jmf was found PTJMF_DIR= # Used in ptolemy/actor/lib/jmf/makefile JMF_JARS= # We only need to look for jmf if $PTII/ptolemy/actor/lib exists JMF_USER_DIR="$PTII/ptolemy/actor/lib/jmf" if test ! -d "$JMF_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $JMF_USER_DIR is not present, so we need not find the JMF - The Java Media Framework." >&5 echo "${ECHO_T}$JMF_USER_DIR is not present, so we need not find the JMF - The Java Media Framework." >&6; }; fi else { echo "$as_me:$LINENO: checking for Java Media Framework (JMF)" >&5 echo $ECHO_N "checking for Java Media Framework (JMF)... $ECHO_C" >&6; } # We need to run javac in the config directory so that javac # from jdk1.1.6 under NT and cygwin works properly startdir=$PTII cd "$srcdir/config" # Don't use 'env $JAVAC . . .' here, it will not work under Cygwin if "$JAVAC" JMFTest.java ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi PTJMF_DIR=jmf # PTJMF_PACKAGES is used in ptII/doc/makefile PTJMF_PACKAGES=ptolemy.actor.lib.jmf # Usually, JMF gets installed in C:/Program Files/JMF2.1.1 # and CLASSPATH gets that C:/Program Files/JMF2.1.1/lib/jmf.jar # and C:/Program Files/JMF2.1.1/lib/sound.jar appended to it # We need to figure out where it was found so that Eclipse # can find it { echo "$as_me:$LINENO: checking for the JMF directory" >&5 echo $ECHO_N "checking for the JMF directory... $ECHO_C" >&6; } if "$JAVAC" FindClass.java ; then # Usually jmf.jar will be in the CLASSPATH JMF_JAR=`CLASSPATH="$PTII/config$CLASSPATHSEPARATOR$CLASSPATH" "$JAVA" FindClass javax.media.CaptureDeviceInfo` if test -f "$JMF_JAR" ; then JMF_JARS_DIR=`dirname "$JMF_JAR"` if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $JMF_JARS_DIR" >&5 echo "${ECHO_T}$JMF_JARS_DIR" >&6; }; fi # Here, we should not be adding JMF_JAR to Eclipse # if jmf.jar was in the jre ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ "\ JMF_JARS="$JMF_JAR" if test -f "$JMF_JARS_DIR/sound.jar" ; then ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " JMF_JARS="$JMF_JARS$CLASSPATHSEPARATOR$JMF_JARS_DIR/sound.jar" fi else { echo "$as_me:$LINENO: WARNING: Either we could not find javax.media.CaptureDeviceInfo or else it was already in the JRE. Searching for jmf.jar returned: $JMF_JAR If the class cannot be found, then Eclipse might not be able to find the JMF files. This is only a problem if you are using Eclipse. If the class was in the JRE, then Eclipse should compile the JMF files without problems" >&5 echo "$as_me: WARNING: Either we could not find javax.media.CaptureDeviceInfo or else it was already in the JRE. Searching for jmf.jar returned: $JMF_JAR If the class cannot be found, then Eclipse might not be able to find the JMF files. This is only a problem if you are using Eclipse. If the class was in the JRE, then Eclipse should compile the JMF files without problems" >&2;} JMF_JAR= fi else { echo "$as_me:$LINENO: WARNING: '\"$JAVAC\" FindClass.java' failed. This means that Eclipse might not be able to find the JMF files. This is only a problem if you are using Eclipse" >&5 echo "$as_me: WARNING: '\"$JAVAC\" FindClass.java' failed. This means that Eclipse might not be able to find the JMF files. This is only a problem if you are using Eclipse" >&2;} fi else { echo "$as_me:$LINENO: WARNING: '\"$JAVAC\" JMFTest.java' failed. perhaps the Java Media Framework (JMF) is not installed? You need not download the JMF unless you plan on using the video actors in $JMF_USER_DIR The JMF SDK can be downloaded from http://java.sun.com/products/java-media/jmf" >&5 echo "$as_me: WARNING: '\"$JAVAC\" JMFTest.java' failed. perhaps the Java Media Framework (JMF) is not installed? You need not download the JMF unless you plan on using the video actors in $JMF_USER_DIR The JMF SDK can be downloaded from http://java.sun.com/products/java-media/jmf" >&2;} fi cd "$startdir" fi if test -z "$PTJMF_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/jmf/" fi #-------------------------------------------------------------------- # Jogl is Java bindings for OpenGL # https://jogl.dev.java.net/ # Jogl is BSD licensed, but platform dependent, so we don't # include Jogl in the Ptolemy II tree #-------------------------------------------------------------------- # PTGRO_DIR is set to gro # $PTII/ptolemy/domains/makefile if Jogl was found PTGRO_DIR= # Jogl Directory. Jogl is available from # https://jogl.dev.java.net/ PTJOGL_DIR='${PTII}/vendors/sun/jogl' # Java OpenGL (Jogl) jar files. Used to compile gro domain. PTJOGL_JARS= GRO_USER_DIR="$PTII/ptolemy/domains/gro" # We only need to look for Jogl if $GRO_USER_DIR if test ! -d "$GRO_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $GRO_USER_DIR is not present, so we need not find the Jogl interface." >&5 echo "${ECHO_T}$GRO_USER_DIR is not present, so we need not find the Jogl interface." >&6; }; fi else { echo "$as_me:$LINENO: checking for Jogl directory" >&5 echo $ECHO_N "checking for Jogl directory... $ECHO_C" >&6; } # Check whether --with-jogl was given. if test "${with_jogl+set}" = set; then withval=$with_jogl; PTJOGL_DIR=$withval else PTJOGL_DIR=$PTII/vendors/sun/jogl fi if test -f "$PTJOGL_DIR/lib/jogl.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJOGL_DIR" >&5 echo "${ECHO_T}$PTJOGL_DIR" >&6; }; fi # Set to gro and used in # $PTII/ptolemy/domains/makefile if jogl.jar was found. PTGRO_DIR=gro # PTGRO_PACKAGES is used in ptII/doc/makefile PTGRO_PACKAGES="ptolemy.domains.gro.kernel ptolemy.domains.gro.lib" # Look for Jogl jar files jogljars="jogl.jar gluegen-rt.jar" for jar in $jogljars do if test "${PTVERBOSE:-none}" = "none"; then $PT_ECHO $ECHO_N "." else $PT_ECHO $ECHO_N "$jar " fi if test -f "$PTJOGL_DIR/lib/$jar"; then PTJOGL_JARS="${PTJOGL_JARS}${CLASSPATHSEPARATOR}${PTJOGL_DIR}/lib/$jar" ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi done fi if test "$PTGRO_DIR" = ""; then { echo "$as_me:$LINENO: WARNING: Failed to find lib/jogl.jar in $PTJOGL_DIR perhaps the Java OpenGL (Jogl) interface is not installed? You need not download the Jogl interface unless you plan on using the GRO domain with Ptolemy II. The Jogl interface can be downloaded from https://jogl.dev.java.net/ an untar'd into $PTII/vendors/sun. Note that configure looks for $PTII/vendors/sun/jogl, so either move the Jogl distribution or create a symbolic link and then rerun configure. " >&5 echo "$as_me: WARNING: Failed to find lib/jogl.jar in $PTJOGL_DIR perhaps the Java OpenGL (Jogl) interface is not installed? You need not download the Jogl interface unless you plan on using the GRO domain with Ptolemy II. The Jogl interface can be downloaded from https://jogl.dev.java.net/ an untar'd into $PTII/vendors/sun. Note that configure looks for $PTII/vendors/sun/jogl, so either move the Jogl distribution or create a symbolic link and then rerun configure. " >&2;} # Note that we don't substitute in the ${PTII} here PTJOGL_DIR='${PTII}/vendors/sun/jogl' fi fi if test -z "$PTJOGL_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/domains/gro/" fi #-------------------------------------------------------------------- # The Joystick interface is a Java interface to Joysticks, see # http://sourceforge.net/projects/javajoystick/ # See if there was a command-line option for where Joystick interface is # If not, look for $PTII/vendors/misc/joystick #-------------------------------------------------------------------- # PTJOYSTICK_DIR is set to joystick and used in # $PTII/ptolemy/actor/lib/makefile if Joystick.jar was found PTJOYSTICK_DIR= # Joystick Jar file JOYSTICK_JAR='${PTII}/vendors/misc/joystick/Joystick.jar' # We only need to look for joystick if $PTII/ptolemy/actor/lib/joystick exists if test ! -d "$PTII/ptolemy/actor/lib/joystick"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $PTII/ptolemy/actor/lib/joystick is not present, so we need not find the Joystick interface." >&5 echo "${ECHO_T}$PTII/ptolemy/actor/lib/joystick is not present, so we need not find the Joystick interface." >&6; }; fi else { echo "$as_me:$LINENO: checking for joystick jar file" >&5 echo $ECHO_N "checking for joystick jar file... $ECHO_C" >&6; } # Check whether --with-joystick-jar was given. if test "${with_joystick_jar+set}" = set; then withval=$with_joystick_jar; JOYSTICK_JAR=$withval else JOYSTICK_JAR=$PTII/vendors/misc/joystick/Joystick.jar fi if test -f "$JOYSTICK_JAR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $JOYSTICK_JAR" >&5 echo "${ECHO_T}$JOYSTICK_JAR" >&6; }; fi # Set to joystick and used in # $PTII/ptolemy/actor/lib/joystick if joystick was found PTJOYSTICK_DIR=joystick # PTJOYSTICK_PACKAGES is used in ptII/doc/makefile PTJOYSTICK_PACKAGES=ptolemy.actor.lib.joystick fi if test "$PTJOYSTICK_DIR" = ""; then { echo "$as_me:$LINENO: WARNING: Failed to find $JOYSTICK_JAR perhaps the Joystick is not installed? You need not download the Joystick interface unless you plan on using a Joystick with Ptolemy II. The Joystick interface can be downloaded from http://sourceforge.net/projects/javajoystick/" >&5 echo "$as_me: WARNING: Failed to find $JOYSTICK_JAR perhaps the Joystick is not installed? You need not download the Joystick interface unless you plan on using a Joystick with Ptolemy II. The Joystick interface can be downloaded from http://sourceforge.net/projects/javajoystick/" >&2;} # Note that we don't substitute in the ${PTII} here JOYSTICK_JAR='${PTII}/vendors/misc/joystick/Joystick.jar' fi fi if test -z "$PTJOYSTICK_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/joystick/" else ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi #-------------------------------------------------------------------- # JXL is the Java Excel library, which is GPL'd. # For more information, see # http://jexcelapi.sourceforge.net/ #-------------------------------------------------------------------- # PTEXCEL_DIR is set to excel and used in # $PTII/ptolemy/actor/lib/makefile if jxl was found PTEXCEL_DIR= # Used in ptolemy/actor/lib/excel/makefile PTJXL_JAR= # We only need to look for JXL if the actor/lib/excel directory is present EXCEL_USER_DIR="$PTII/ptolemy/actor/lib/excel" if test ! -d "$EXCEL_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $EXCEL_USER_DIR is not present, so we need not find JXL - The Java Excel API." >&5 echo "${ECHO_T}$EXCEL_USER_DIR is not present, so we need not find JXL - The Java Excel API." >&6; }; fi else { echo "$as_me:$LINENO: checking for the Java Excel API (JXL)" >&5 echo $ECHO_N "checking for the Java Excel API (JXL)... $ECHO_C" >&6; } # Check whether --with-jxl was given. if test "${with_jxl+set}" = set; then withval=$with_jxl; PTJXL_JAR=$withval else PTJXL_JAR=$PTII/ptolemy/actor/lib/excel/jxl.jar fi if test -f "$PTJXL_JAR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJXL_JAR" >&5 echo "${ECHO_T}$PTJXL_JAR" >&6; }; fi # Set to itextpdf and used in # $PTII/ptolemy/vergil/basic/makefile if iText.jar is found PTEXCEL_DIR=excel # PTJXL_PACKAGES is used in ptII/doc/makefile PTEXCEL_PACKAGES=ptolemy.actor.lib.excel fi if test "$PTEXCEL_DIR" = ""; then { echo "$as_me:$LINENO: WARNING: Failed to find jxl.jar as $PTEXCEL_JAR. Perhaps the Java Excel API (JXL) is not installed? You need not download the JXL interface unless you would like to use the Excel actor." >&5 echo "$as_me: WARNING: Failed to find jxl.jar as $PTEXCEL_JAR. Perhaps the Java Excel API (JXL) is not installed? You need not download the JXL interface unless you would like to use the Excel actor." >&2;} # Note that we don't substitute in the ${PTII} here PTJXL_JAR='${PTII}/ptolemy/actor/lib/excel/jxl.jar' fi fi if test -z "$PTEXCEL_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/excel/" else ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi #-------------------------------------------------------------------- # Jython is an implementation of Python in Java # For more information, # see http://www.jython.org # See if there was a command-line option for where Jython is. #-------------------------------------------------------------------- # PTJYTHON_DIR is set to python (FIXME: should be jython) and used in # $PTII/ptolemy/actor/lib/makefile if Jython was found. PTJYTHON_DIR= # Directory that contains the jython jar files JYTHON_DIR='${PTII}/lib' # We only need to look for jython if $PTII/ptolemy/actor/lib/python exists # FIXME: Note that the package is called jython, but the directory is python JYTHON_USER_DIR="$PTII/ptolemy/actor/lib/python" if test ! -d "$JYTHON_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $JYTHON_USER_DIR is not present, so we need not find the Jython, the java implementation of Python." >&5 echo "${ECHO_T}$JYTHON_USER_DIR is not present, so we need not find the Jython, the java implementation of Python." >&6; }; fi else # Extract the first word of "jython", so it can be a program name with args. set dummy jython; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTJYTHON+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTJYTHON in [\\/]* | ?:[\\/]*) ac_cv_path_PTJYTHON="$PTJYTHON" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTJYTHON="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTJYTHON=$ac_cv_path_PTJYTHON if test -n "$PTJYTHON"; then { echo "$as_me:$LINENO: result: $PTJYTHON" >&5 echo "${ECHO_T}$PTJYTHON" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${PTJYTHON:-none}" != "none"; then JYTHON_PROG_PARENT_DIR=`dirname "$PTJYTHON"` if test -f "$JYTHON_PROG_PARENT_DIR/jython.jar"; then if test "$JYTHON_DIR" != "$JYTHON_PROG_PARENT_DIR"; then # Use changequote to protect the square brackets in sed # Remove /cygdrive so we can compile with MSVC JYTHON_TMP_DIR=`echo "$JYTHON_PROG_PARENT_DIR" | sed 's@/cygdrive/\([a-zA-Z]\)/@\1:/@'` { echo "$as_me:$LINENO: WARNING: Found $PTJYTHON, using $JYTHON_TMP_DIR/jython.jar instead of $JYTHON_DIR/jython.jar" >&5 echo "$as_me: WARNING: Found $PTJYTHON, using $JYTHON_TMP_DIR/jython.jar instead of $JYTHON_DIR/jython.jar" >&2;} JYTHON_DIR="$JYTHON_TMP_DIR" fi fi else # Extract the first word of "jython.bat", so it can be a program name with args. set dummy jython.bat; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTJYTHON_BAT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTJYTHON_BAT in [\\/]* | ?:[\\/]*) ac_cv_path_PTJYTHON_BAT="$PTJYTHON_BAT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTJYTHON_BAT="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTJYTHON_BAT=$ac_cv_path_PTJYTHON_BAT if test -n "$PTJYTHON_BAT"; then { echo "$as_me:$LINENO: result: $PTJYTHON_BAT" >&5 echo "${ECHO_T}$PTJYTHON_BAT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${PTJYTHON_BAT:-none}" != "none"; then JYTHON_PROG_PARENT_DIR=`dirname "$PTJYTHON_BAT"` if test -f "$JYTHON_PROG_PARENT_DIR/jython.jar"; then if test "$JYTHON_DIR" != "$JYTHON_PROG_PARENT_DIR"; then # Use changequote to protect the square brackets in sed # Remove /cygdrive so we can compile with MSVC JYTHON_TMP_DIR=`echo "$JYTHON_PROG_PARENT_DIR" | sed 's@/cygdrive/\([a-zA-Z]\)/@\1:/@'` { echo "$as_me:$LINENO: WARNING: Found $PTJYTHON_BAT, using $JYTHON_TMP_DIR/jython.jar instead of $JYTHON_DIR/jython.jar" >&5 echo "$as_me: WARNING: Found $PTJYTHON_BAT, using $JYTHON_TMP_DIR/jython.jar instead of $JYTHON_DIR/jython.jar" >&2;} JYTHON_DIR="$JYTHON_TMP_DIR" fi fi fi fi { echo "$as_me:$LINENO: checking for Jython, the Java implementation of Python" >&5 echo $ECHO_N "checking for Jython, the Java implementation of Python... $ECHO_C" >&6; } # Check whether --with-jython was given. if test "${with_jython+set}" = set; then withval=$with_jython; JYTHON_DIR=$withval else JYTHON_DIR=$JYTHON_DIR fi if test -f "$JYTHON_DIR/jython.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $JYTHON_DIR" >&5 echo "${ECHO_T}$JYTHON_DIR" >&6; }; fi # FIXME: This is ugly, but we set to python instead of jython # $PTII/ptolemy/actor/lib/makefile if jython was found PTJYTHON_DIR=python # PTJYTHON_PACKAGES is used in ptII/doc/makefile PTJYTHON_PACKAGES="ptolemy.actor.lib.python ptolemy.actor.gui.python" fi if test "$PTJYTHON_DIR" = ""; then if test -f "$PTII/vendors/jython/jython.jar"; then JYTHON_DIR="$PTII/vendors/jython" if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $JYTHON_DIR" >&5 echo "${ECHO_T}$JYTHON_DIR" >&6; }; fi # FIXME: This is ugly, but we set to python instead of jython # $PTII/ptolemy/actor/lib/makefile if jython was found PTJYTHON_DIR=python PTJYTHON_PACKAGES="ptolemy.actor.lib.python ptolemy.actor.gui.python" else if test -f "$PTII/lib/jython.jar"; then JYTHON_DIR="$PTII/lib" if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $JYTHON_DIR" >&5 echo "${ECHO_T}$JYTHON_DIR" >&6; }; fi # FIXME: This is ugly, but we set to python instead of jython # $PTII/ptolemy/actor/lib/makefile if jython was found PTJYTHON_DIR=python PTJYTHON_PACKAGES="ptolemy.actor.lib.python ptolemy.actor.gui.python" else { echo "$as_me:$LINENO: WARNING: Failed to find $PTII/lib/jython.jar and $PTII/vendors/jython/jython.jar perhaps Jython is not installed? Jython is a java implementation of Python. You need not download Jython unless you plan on using the Jython actors in ptolemy/actor/lib/python The Jython can be downloaded http://www.jython.org/download.html" >&5 echo "$as_me: WARNING: Failed to find $PTII/lib/jython.jar and $PTII/vendors/jython/jython.jar perhaps Jython is not installed? Jython is a java implementation of Python. You need not download Jython unless you plan on using the Jython actors in ptolemy/actor/lib/python The Jython can be downloaded http://www.jython.org/download.html" >&2;} # Note that we don't substitute in the ${PTII} here JYTHON_DIR='${PTII}/vendors/jython' fi fi fi fi if test -z "$PTJYTHON_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/jython/" else ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi #-------------------------------------------------------------------- # "JXTA technology is a set of open protocols that allow any # connected device on the network ranging from cell phones and wireless # PDAs to PCs and servers to communicate and collaborate in a P2P # manner." # # See http://www.jxta.org # See if there was a command-line option for where JXTA is # If not, look for $PTII/vendors/sun/jxta/jxta.jar #-------------------------------------------------------------------- # We only need to look for jxta if $PTII/ptolemy/actor/lib/jxta is present JXTA_USER_DIR="$PTII/ptolemy/actor/lib/jxta" # PTJXTA_DIR is set to jxta and used in # $PTII/actor/lib/makefile if jxta was found PTJXTA_DIR= # Directory that contains the jxta jar files JXTA_DIR='${PTII}/vendors/sun/jxta' if test ! -d "$JXTA_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $JXTA_USER_DIR is not present, so we need not find JXTA." >&5 echo "${ECHO_T}$JXTA_USER_DIR is not present, so we need not find JXTA." >&6; }; fi else { echo "$as_me:$LINENO: checking for jxta directory that contains jxta.jar" >&5 echo $ECHO_N "checking for jxta directory that contains jxta.jar... $ECHO_C" >&6; } # Check whether --with-jxta was given. if test "${with_jxta+set}" = set; then withval=$with_jxta; JXTA_DIR=$withval else JXTA_DIR=$PTII/vendors/sun/jxta fi if test -f "$JXTA_DIR/jxta.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $JXTA_DIR" >&5 echo "${ECHO_T}$JXTA_DIR" >&6; }; fi # Set to jxta and used in # $PTII/ptolemy/actor/lib/makefile if jxta was found PTJXTA_DIR=jxta fi if test "$PTJXTA_DIR" = ""; then { echo "$as_me:$LINENO: WARNING: Failed to find PTII/vendors/sun/jxta/jxta.jar perhaps JXTA is not installed? You need not download JXTA unless you plan on using the peer to peer actors in ptolemy/actor/lib/jxta The JXTA SDK can be downloaded from http://www.jxta.org" >&5 echo "$as_me: WARNING: Failed to find PTII/vendors/sun/jxta/jxta.jar perhaps JXTA is not installed? You need not download JXTA unless you plan on using the peer to peer actors in ptolemy/actor/lib/jxta The JXTA SDK can be downloaded from http://www.jxta.org" >&2;} # Note that we don't substitute in the ${PTII} here JXTA_DIR='${PTII}/vendors/sun/jxta' fi fi if test -z "$PTJXTA_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|vendors/sun/jxta/|ptolemy/actor/lib/jxta/|ptolemy/moml/jxta/" else ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ \ \ \ \ \ \ \ " fi #-------------------------------------------------------------------- # Classes used to layout entities and relations in Vergil that use the # KIELER layout algorithm. # http://www.informatik.uni-kiel.de/rtsys/kieler/ # #-------------------------------------------------------------------- # We only need to look for jxta if $PTII/ptolemy/vergil/basic/layout/kieler is present KIELER_USER_DIR="$PTII/ptolemy/vergil/basic/layout/kieler" # PTKIELER_DIR is set to kieler and used in # $PTII/ptolemy/vergil/basic/layout/makefile if kieler was found PTKIELER_DIR= # Directory that contains the jxta jar files KIELER_JAR='${PTII}/lib/kieler.jar' if test ! -d "$KIELER_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $KIELER_USER_DIR is not present, so we need not find KIELER." >&5 echo "${ECHO_T}$KIELER_USER_DIR is not present, so we need not find KIELER." >&6; }; fi else { echo "$as_me:$LINENO: checking for kieler jar file used by layout " >&5 echo $ECHO_N "checking for kieler jar file used by layout ... $ECHO_C" >&6; } # Check whether --with-jxta was given. if test "${with_jxta+set}" = set; then withval=$with_jxta; KIELER_JAR=$withval else KIELER_JAR=$PTII/lib/kieler.jar fi if test -f "$KIELER_JAR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $KIELER_JAR" >&5 echo "${ECHO_T}$KIELER_JAR" >&6; }; fi # Set to kieler and used in # $PTII/ptolemy/vergil/basic/layout/makefile if kieler was found PTKIELER_DIR=kieler fi if test "$PTKIELER_DIR" = ""; then { echo "$as_me:$LINENO: WARNING: Failed to find $KIELER_JAR perhaps KIELER is not installed? You need not use KIELER unless you plan on using the KIELER layout facility in $KIELER_USER_DIR The KIELER jar is usually found at $PTII/lib/kieler.jar" >&5 echo "$as_me: WARNING: Failed to find $KIELER_JAR perhaps KIELER is not installed? You need not use KIELER unless you plan on using the KIELER layout facility in $KIELER_USER_DIR The KIELER jar is usually found at $PTII/lib/kieler.jar" >&2;} # Note that we don't substitute in the ${PTII} here KIELER_JAR='${PTII}/lib/kieler.jar' fi fi if test -z "$PTKIELER_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/vergil/basic/layout/kieler/" else ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi #-------------------------------------------------------------------- # OpenCV is the Computer Vision platform # For more information, # http://ubaa.net/shared/processing/opencv # See if there was a command-line option for where OpenVision is. #-------------------------------------------------------------------- # PTOPENCV_DIR is set to opencv and used in # $PTII/ptolemy/actor/lib/makefile if opencv was found PTOPENCV_DIR= # Used in ptolemy/actor/lib/opencv/makefile OPENCV_JAR= # We only need to look for OpenCVif the actor/lib/opencv directory is present OPENCV_USER_DIR="$PTII/ptolemy/actor/lib/opencv" # Java Native Access jar file (jna.jar). See https://jna.dev.java.net/ JNA_JAR= if test ! -d "$OPENCV_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $OPENCV_USER_DIR is not present, so we need not find OpenCV - The Open Computer Vision API." >&5 echo "${ECHO_T}$OPENCV_USER_DIR is not present, so we need not find OpenCV - The Open Computer Vision API." >&6; }; fi else { echo "$as_me:$LINENO: checking for OpenCV Java API" >&5 echo $ECHO_N "checking for OpenCV Java API... $ECHO_C" >&6; } # We need to run javac in the config directory so that javac from jdk1.1.6 # under NT and cygwin works properly startdir=$PTII cd "$srcdir/config" # Don't use 'env $JAVAC . . .' here, it will not work under Cygwin if "$JAVAC" OpenCVTest.java ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi PTOPENCV_DIR=opencv # PTOPENCV_PACKAGES is used in ptII/doc/makefile PTOPENCV_PACKAGES=ptolemy.actor.lib.opencv { echo "$as_me:$LINENO: checking for the OpenCV jar files" >&5 echo $ECHO_N "checking for the OpenCV jar files... $ECHO_C" >&6; } if "$JAVAC" FindClass.java ; then # Usually opencv.jar will be in the CLASSPATH OPENCV_JAR=`CLASSPATH="$PTII/config$CLASSPATHSEPARATOR$CLASSPATH" "$JAVA" FindClass hypermedia.video.OpenCV` if test -f "$OPENCV_JAR" ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $OPENCV_JAR" >&5 echo "${ECHO_T}$OPENCV_JAR" >&6; }; fi # Here, we should not be adding OPENCV_JAR to Eclipse # if OpenCV.jar was in the jre case "`uname -s`" in Darwin) { echo "$as_me:$LINENO: WARNING: Not including $OPENCV_JAR to the Eclipse classpath under Darwin because it is already present." >&5 echo "$as_me: WARNING: Not including $OPENCV_JAR to the Eclipse classpath under Darwin because it is already present." >&2;} ;; *) ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " ;; esac else { echo "$as_me:$LINENO: WARNING: Either we could not find hypermedia.video.OpenCV or else it was already in the JRE. Searching for OpenCV.jar returned: $OPENCV_JAR If the class cannot be found, then Eclipse might not be able to find the OpenCV files. This is only a problem if you are using Eclipse. If the class was in the JRE, then Eclipse should compile the OpenCV files without problems. For details, see $PTII/ptolemy/actor/lib/opencv/package.html" >&5 echo "$as_me: WARNING: Either we could not find hypermedia.video.OpenCV or else it was already in the JRE. Searching for OpenCV.jar returned: $OPENCV_JAR If the class cannot be found, then Eclipse might not be able to find the OpenCV files. This is only a problem if you are using Eclipse. If the class was in the JRE, then Eclipse should compile the OpenCV files without problems. For details, see $PTII/ptolemy/actor/lib/opencv/package.html" >&2;} OPENCV_JAR= PTOPENCV_DIR= PTOPENCV_PACKAGES= ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/opencv/javacv/" fi { echo "$as_me:$LINENO: checking for Processing Library" >&5 echo $ECHO_N "checking for Processing Library... $ECHO_C" >&6; } if "$JAVAC" FindClass.java ; then # Usually opencv.jar will be in the CLASSPATH PROCESSING_CORE_JAR=`CLASSPATH="$PTII/config$CLASSPATHSEPARATOR$CLASSPATH" "$JAVA" FindClass processing.core.PImage` if test -f "$PROCESSING_CORE_JAR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PROCESSING_CORE_JAR" >&5 echo "${ECHO_T}$PROCESSING_CORE_JAR" >&6; }; fi PTPROCESSING_JARS=$PROCESSING_CORE_JAR case "`uname -s`" in Darwin) { echo "$as_me:$LINENO: WARNING: Not including $PROCESSING_CORE_JAR in the Eclipse classpath under Darwin because it is already present." >&5 echo "$as_me: WARNING: Not including $PROCESSING_CORE_JAR in the Eclipse classpath under Darwin because it is already present." >&2;} ;; *) ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " ;; esac else { echo "$as_me:$LINENO: WARNING: Either we could not find processing.core.PImage or else it was already in the JRE. Searching for PImage returned: $PROCESSING_CORE_JAR If the class cannot be found, then Eclipse might not be able to find the Processing files. This is only a problem if you are using Eclipse. If the class was in the JRE, then Eclipse should compile the OpenCV files without problems Processing is the image source processing library from http://processing.org. It is used by the vision actors in ptolemy/actor/lib/opencv/. These actors are optional, but require Processing. For details, see $PTII/ptolemy/actor/lib/opencv/package.html" >&5 echo "$as_me: WARNING: Either we could not find processing.core.PImage or else it was already in the JRE. Searching for PImage returned: $PROCESSING_CORE_JAR If the class cannot be found, then Eclipse might not be able to find the Processing files. This is only a problem if you are using Eclipse. If the class was in the JRE, then Eclipse should compile the OpenCV files without problems Processing is the image source processing library from http://processing.org. It is used by the vision actors in ptolemy/actor/lib/opencv/. These actors are optional, but require Processing. For details, see $PTII/ptolemy/actor/lib/opencv/package.html" >&2;} PROCESSING_CORE_JAR= PTOPENCV_DIR= PTOPENCV_PACKAGES= ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/opencv/javacv/" fi fi # Look for JavaCV, which is GPL'd JAVACV_JAR= PTJAVACV_DIR= { echo "$as_me:$LINENO: checking for JavaCV jar file" >&5 echo $ECHO_N "checking for JavaCV jar file... $ECHO_C" >&6; } # Check whether --with-javacv was given. if test "${with_javacv+set}" = set; then withval=$with_javacv; JAVACV_JAR=$withval else JAVACV_JAR=$PTII/vendors/misc/javacv-bin/javacv.jar fi if test -f "$JAVACV_JAR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $JAVACV_JAR" >&5 echo "${ECHO_T}$JAVACV_JAR" >&6; }; fi # Set to javacv and used in # $PTII/ptolemy/actor/lib/opencv/makefile if JavaCV was found PTJAVACV_DIR=javacv ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " else { echo "$as_me:$LINENO: WARNING: Failed to find PTII/vendors/misc/javacv-bin/javacv.jar perhaps JavaCV is not installed? You need only download JavaCV if you plan on using the actors in in ptolemy/actor/lib/opencv/JavaCV JavaCV may be downloaded from http://code.google.com/p/javacv/" >&5 echo "$as_me: WARNING: Failed to find PTII/vendors/misc/javacv-bin/javacv.jar perhaps JavaCV is not installed? You need only download JavaCV if you plan on using the actors in in ptolemy/actor/lib/opencv/JavaCV JavaCV may be downloaded from http://code.google.com/p/javacv/" >&2;} ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/opencv/javacv/" # Note that we don't substitute in the ${PTII} here JAVACV_JAR='${PTII}/vendors/misc/javacv-bin/javacv.jar' fi { echo "$as_me:$LINENO: checking for Java Native Access (JNA) jar" >&5 echo $ECHO_N "checking for Java Native Access (JNA) jar... $ECHO_C" >&6; } if test -f "$PTII/lib/jna.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTII/lib/jna.jar" >&5 echo "${ECHO_T}$PTII/lib/jna.jar" >&6; }; fi JNA_JAR="$PTII/lib/jna.jar" ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " else { echo "$as_me:$LINENO: WARNING: Failed to find $PTII/lib/jna.jar, JNA is the Java Native Access interfaced, used by the OpenCV vision actors in ptolemy/actor/lib/opencv/javacv. These actors are optional, but require JNA. For more information about JNA, see https://jna.dev.java.net/" >&5 echo "$as_me: WARNING: Failed to find $PTII/lib/jna.jar, JNA is the Java Native Access interfaced, used by the OpenCV vision actors in ptolemy/actor/lib/opencv/javacv. These actors are optional, but require JNA. For more information about JNA, see https://jna.dev.java.net/" >&2;} ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/opencv/javacv/" fi else { echo "$as_me:$LINENO: WARNING: '\"$JAVAC\" FindClass.java' failed. This means that Eclipse might not be able to find the OpenCV files. This is only a problem if you are using Eclipse" >&5 echo "$as_me: WARNING: '\"$JAVAC\" FindClass.java' failed. This means that Eclipse might not be able to find the OpenCV files. This is only a problem if you are using Eclipse" >&2;} fi else { echo "$as_me:$LINENO: WARNING: '\"$JAVAC\" OpenTest.java' failed. perhaps the OpenCV Computer Vision API is not installed? You need not download Jai unless you plan on using the video actors in $OPENCV_USER_DIR The OpenCV API can be downloaded from http://ubaa.net/shared/processing/opencv. See ptolemy/actor/lib/opencv/package.html for installing help." >&5 echo "$as_me: WARNING: '\"$JAVAC\" OpenTest.java' failed. perhaps the OpenCV Computer Vision API is not installed? You need not download Jai unless you plan on using the video actors in $OPENCV_USER_DIR The OpenCV API can be downloaded from http://ubaa.net/shared/processing/opencv. See ptolemy/actor/lib/opencv/package.html for installing help." >&2;} fi cd "$startdir" fi if test -z "$PTOPENCV_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/opencv/" fi # PTCGOPENCV_DIR is set to OpenCVTracking and used in # $PTII/ptolemy/codegen/demo/makefile if opencv was found PTOPENCVCG_DIR=OpenCVTracking # We only need to look for OpenCVif the actor/lib/opencv directory is present OPENCVCG_USER_DIR="$PTII/ptolemy/codegen/demo/OpenCVTracking" if test ! -d "$OPENCVCG_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $OPENCVCG_USER_DIR is not present, so we need not find OpenCV - The Open Computer Vision API." >&5 echo "${ECHO_T}$OPENCVCG_USER_DIR is not present, so we need not find OpenCV - The Open Computer Vision API." >&6; }; fi else # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTCC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTCC in [\\/]* | ?:[\\/]*) ac_cv_path_PTCC="$PTCC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTCC="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTCC=$ac_cv_path_PTCC if test -n "$PTCC"; then { echo "$as_me:$LINENO: result: $PTCC" >&5 echo "${ECHO_T}$PTCC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${PTCC:-none}" = "none"; then { echo "$as_me:$LINENO: WARNING: Failed to find gcc" >&5 echo "$as_me: WARNING: Failed to find gcc" >&2;} # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTCC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTCC in [\\/]* | ?:[\\/]*) ac_cv_path_PTCC="$PTCC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTCC="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTCC=$ac_cv_path_PTCC if test -n "$PTCC"; then { echo "$as_me:$LINENO: result: $PTCC" >&5 echo "${ECHO_T}$PTCC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${PTCC:-none}" != "none"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTCC" >&5 echo "${ECHO_T}$PTCC" >&6; }; fi else { echo "$as_me:$LINENO: WARNING: Failed to find gcc or cc, so we will not be able use the OpenCV Codegen code in $OPENCVCG_USER_DIR" >&5 echo "$as_me: WARNING: Failed to find gcc or cc, so we will not be able use the OpenCV Codegen code in $OPENCVCG_USER_DIR" >&2;}; fi fi if test "${PTCC:-none}" != "none"; then { echo "$as_me:$LINENO: checking for OpenCV C API" >&5 echo $ECHO_N "checking for OpenCV C API... $ECHO_C" >&6; } # FIXME: This will not work if $PTII has spaces dirs="/Library/Frameworks/OpenCV.framework/Headers /usr/local/include/opencv" for dir in $dirs do if test -f "$dir/cv.h"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $dir/cv.h}" >&5 echo "${ECHO_T}$dir/cv.h}" >&6; }; fi PTOPENCV_INCLUDE_DIR=$dir break; fi done if test ! -f "$PTOPENCV_INCLUDE_DIR/cv.h"; then { echo "$as_me:$LINENO: WARNING: Failed to find cv.h Checked the following directories: $dirs The OpenCV Codegen facility in $OPENCVCG_USER_DIR requires cv.h. However, Ptolemy will run without this facility." >&5 echo "$as_me: WARNING: Failed to find cv.h Checked the following directories: $dirs The OpenCV Codegen facility in $OPENCVCG_USER_DIR requires cv.h. However, Ptolemy will run without this facility." >&2;} fi fi fi #-------------------------------------------------------------------- # RXTX is the Serial Port interface that replaces # Sun's commapi. # See if there was a command-line option for rxtx is # If not, check to see if $PTII/vendors/sun/rxtx #-------------------------------------------------------------------- # We only need to look for rxtx if $PTII/ptolemy/actor/lib/io/comm is present RXTX_USER_DIR="$PTII/ptolemy/actor/lib/io/comm" RXTX_JAR_DEFAULT='${PTII}/vendors/misc/rxtx/RXTXcomm.jar' RXTX_PRESENT=no # PTLEGO_DIR is set to lego # $PTII/ptolemy/apps/makefile if the Java Communications API was found # PTLEGO_DIR= # PTCOMM_DIR is set to comm and used in # $PTII/ptolemy/actor/lib/io/makefile if the Java Communications API was found # PTCOMM_DIR= if test ! -d "$RXTX_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $RXTX_USER_DIR is not present, so we need not find rxtx." >&5 echo "${ECHO_T}$RXTX_USER_DIR is not present, so we need not find rxtx." >&6; }; fi # Use curly brackets around PTII so that if rxtx is not present # then ${PTII} will appear in ptinvoke. else { echo "$as_me:$LINENO: checking for rxtx directory" >&5 echo $ECHO_N "checking for rxtx directory... $ECHO_C" >&6; } # Check whether --with-rxtx was given. if test "${with_rxtx+set}" = set; then withval=$with_rxtx; RXTX_JAR=$withval else RXTX_JAR=$RXTX_JAR_DEFAULT fi if test -f "$RXTX_JAR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi RXTX_PRESENT=yes else { echo "$as_me:$LINENO: result: Did not find '$RXTX_JAR'" >&5 echo "${ECHO_T}Did not find '$RXTX_JAR'" >&6; } { echo "$as_me:$LINENO: checking for rxtx classes in CLASSPATH" >&5 echo $ECHO_N "checking for rxtx classes in CLASSPATH... $ECHO_C" >&6; } startdir=$PTII cd "$srcdir/config" if "$JAVAC" FindClass.java ; then # Usually RXTXcomm.jar will be in the CLASSPATH RXTX_JAR=`CLASSPATH="$PTII/config$CLASSPATHSEPARATOR$CLASSPATH" "$JAVA" FindClass gnu.io.SerialPort` if test -f "$RXTX_JAR" ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $RXTC_JAR" >&5 echo "${ECHO_T}$RXTC_JAR" >&6; }; fi RXTX_PRESENT=yes # Here, we should not be adding RXTX_JAR to Eclipse # if RXTXcomm.jar was in the jre case "`uname -s`" in Darwin) { echo "$as_me:$LINENO: WARNING: Not including $RXTX_JAR to the Eclipse classpath under Darwin because it is already present." >&5 echo "$as_me: WARNING: Not including $RXTX_JAR to the Eclipse classpath under Darwin because it is already present." >&2;};; *) ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " ;; esac else # RXTX_JAR might contain a warning message from FindClass RXTX_JAR="" CLASSPATH="$PTII/config$CLASSPATHSEPARATOR$CLASSPATH" "$JAVA" FindClass gnu.io.SerialPort > /dev/null retval=$? if test "$retval" = "0"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok, RXTX is probably in the jre directory" >&5 echo "${ECHO_T}ok, RXTX is probably in the jre directory" >&6; }; fi RXTX_PRESENT=yes fi fi cd "$startdir" fi fi if test "$RXTX_PRESENT" = "no"; then { echo "$as_me:$LINENO: WARNING: Perhaps rxtx is not installed? You need not download rxtx unless you plan the actors in actor.lib.comm. The rxtx package can be found at http://rxtx.qbang.org/wiki/index.php/Download" >&5 echo "$as_me: WARNING: Perhaps rxtx is not installed? You need not download rxtx unless you plan the actors in actor.lib.comm. The rxtx package can be found at http://rxtx.qbang.org/wiki/index.php/Download" >&2;} fi fi if test "$RXTX_PRESENT" = "yes"; then # Subdirectories that contains Java Communications API specific code PTLEGO_DIR=lego PTCOMM_DIR=comm # PTRXTX_PACKAGES is used in ptII/doc/makefile PTRXTX_PACKAGES=ptolemy.actor.lib.io.comm else RXTX_JAR="$RXTX_JAR_DEFAULT" ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/io/comm/" fi #-------------------------------------------------------------------- # Lejos is a Java Virtual machine that runs on the Lego Mindstorm # For more information, see http://lejos.sourceforge.net # See if there was a command-line option for rxtxi is # If not, check to see if $PTII/vendors/lejos/lejos/lejosBeta3 #-------------------------------------------------------------------- # We only need to look for rxtx if $PTII/ptolemy/apps/lejos LEJOS_USER_DIR="$PTII/ptolemy/apps/lejos" LEJOS_PRESENT=no # PTLEJOS_DIR is set to lejos # $PTII/ptolemy/apps/makefile if the Java Communications API was found PTLEJOS_DIR= if test ! -d "$LEJOS_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $LEJOS_USER_DIR is not present, so we need not find lejos." >&5 echo "${ECHO_T}$LEJOS_USER_DIR is not present, so we need not find lejos." >&6; }; fi # Use curly brackets around PTII so that if lejos is not present # then ${PTII} will appear in ptinvoke. LEJOS_DIR='${PTII}/vendors/lejos/lejosBeta3' else if test "$RXTX_PRESENT" = "no"; then { echo "$as_me:$LINENO: WARNING: Lejos requires rxtx, which was not found." >&5 echo "$as_me: WARNING: Lejos requires rxtx, which was not found." >&2;} else { echo "$as_me:$LINENO: checking for lejos directory" >&5 echo $ECHO_N "checking for lejos directory... $ECHO_C" >&6; } # Check whether --with-lejos was given. if test "${with_lejos+set}" = set; then withval=$with_lejos; LEJOS_DIR=$withval else LEJOS_DIR=$PTII/vendors/lejos/lejosBeta3 fi if test -d "$LEJOS_DIR/classes/josx"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $LEJOS_DIR" >&5 echo "${ECHO_T}$LEJOS_DIR" >&6; }; fi # Subdirectory that contains Java Communications API specific code PTLEJOS_DIR=lejos LEJOS_PRESENT=yes else { echo "$as_me:$LINENO: WARNING: Failed to find $LEJOS_DIR/classes/josx/" >&5 echo "$as_me: WARNING: Failed to find $LEJOS_DIR/classes/josx/" >&2;} LEJOS_DIR='${PTII}/vendors/lejos' fi fi if test "$LEJOS_PRESENT" = "no"; then { echo "$as_me:$LINENO: WARNING: Perhaps Lejos is not installed? You need not download Lejos unless you plan on use the Lego Mindstorm demos in \$PTII/ptolemy/apps/lejos. Lejos can be downloaded from http://lejos.sourceforge.net and placed in \$PTII/vendors/lejos/lejosBeta3" >&5 echo "$as_me: WARNING: Perhaps Lejos is not installed? You need not download Lejos unless you plan on use the Lego Mindstorm demos in \$PTII/ptolemy/apps/lejos. Lejos can be downloaded from http://lejos.sourceforge.net and placed in \$PTII/vendors/lejos/lejosBeta3" >&2;} fi fi #-------------------------------------------------------------------- # See if there was a command-line option for where javacc is; if # not, check to see if $PTII/vendors/sun/JavaCC exists # if it is does not, look for javacc on the path. # Note that JavaCC-4.2 will not work, there are problems with # ReInit() being static or not static #-------------------------------------------------------------------- # We only need to look for JavaCC if $PTII/ptolemy/data/expr exists if test ! -d "$PTII/ptolemy/data/expr"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $PTII/ptolemy/data/expr is not present, so we need not find JavaCC." >&5 echo "${ECHO_T}$PTII/ptolemy/data/expr is not present, so we need not find JavaCC." >&6; }; fi JAVACC_DIR=$PTII/vendors/sun/javacc-4.0 JAVACC=javacc JJTREE=jjtree else { echo "$as_me:$LINENO: checking for JavaCC" >&5 echo $ECHO_N "checking for JavaCC... $ECHO_C" >&6; } # Check whether --with-javacc was given. if test "${with_javacc+set}" = set; then withval=$with_javacc; JAVACC_DIR=$withval else JAVACC_DIR=$PTII/vendors/sun/javacc-4.0 fi if test "`uname -s`" = "CYGWIN_NT-4.0" -o \ "`uname -s`" = "CYGWIN_NT-5.0" ; then JJTREE='"$(JAVA)" COM.sun.labs.jjtree.Main' JAVACC='"$(JAVA)" COM.sun.labs.javacc.Main' { echo "$as_me:$LINENO: WARNING: Be sure that your CLASSPATH includes JavaCC.zip, which is located in" >&5 echo "$as_me: WARNING: Be sure that your CLASSPATH includes JavaCC.zip, which is located in" >&2;}; else if test ! -d "$JAVACC_DIR"; then { echo "$as_me:$LINENO: WARNING: Could not find directory '${JAVACC_DIR}' so we search for the jjtree command." >&5 echo "$as_me: WARNING: Could not find directory '${JAVACC_DIR}' so we search for the jjtree command." >&2;} # Extract the first word of "jjtree", so it can be a program name with args. set dummy jjtree; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_JJTREE+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $JJTREE in [\\/]* | ?:[\\/]*) ac_cv_path_JJTREE="$JJTREE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_JJTREE="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi JJTREE=$ac_cv_path_JJTREE if test -n "$JJTREE"; then { echo "$as_me:$LINENO: result: $JJTREE" >&5 echo "${ECHO_T}$JJTREE" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test -x "$JJTREE"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $JJTREE" >&5 echo "${ECHO_T}$JJTREE" >&6; }; fi ; JAVACCBIN=`dirname $JJTREE` JAVACC_DIR=`dirname $JAVACCBIN` else { echo "$as_me:$LINENO: WARNING: Failed to find jjtree" >&5 echo "$as_me: WARNING: Failed to find jjtree" >&2;}; fi fi if test -d "$JAVACC_DIR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $JAVACC_DIR" >&5 echo "${ECHO_T}$JAVACC_DIR" >&6; }; fi { echo "$as_me:$LINENO: checking for jjtree" >&5 echo $ECHO_N "checking for jjtree... $ECHO_C" >&6; } if test -x "$JAVACC_DIR/bin/jjtree"; then # Note that we don't substitute in the $(JAVACC_DIR) here JJTREE='$(JAVACC_DIR)/bin/jjtree' if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $JJTREE" >&5 echo "${ECHO_T}$JJTREE" >&6; }; fi else { echo "$as_me:$LINENO: WARNING: Failed to find jjtree in '$JAVACC_DIR/bin'" >&5 echo "$as_me: WARNING: Failed to find jjtree in '$JAVACC_DIR/bin'" >&2;}; fi { echo "$as_me:$LINENO: checking for javacc" >&5 echo $ECHO_N "checking for javacc... $ECHO_C" >&6; } if test -x "$JAVACC_DIR/bin/javacc"; then # Note that we don't substitute in the $(JAVACC_DIR) here JAVACC='$(JAVACC_DIR)/bin/javacc' if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $JAVACC" >&5 echo "${ECHO_T}$JAVACC" >&6; }; fi else { echo "$as_me:$LINENO: WARNING: Failed to find javacc in '$JAVACC_DIR/bin'" >&5 echo "$as_me: WARNING: Failed to find javacc in '$JAVACC_DIR/bin'" >&2;}; fi fi fi if test ! -d "$JAVACC_DIR"; then { echo "$as_me:$LINENO: WARNING: Failed to find javacc, perhaps JavaCC is not installed? You need not download JavaCC unless you plan on modifying .jjt files in ptolemy/data/expr. JavaCC is available from http://javacc.dev.java.net/ Note that the zip file that gets downloaded is actually an installer that must be run to install the JavaCC.zip file that contains the classes. Note that JavaCC-4.1 and 4.2 will not work, there are problems with ReInit() being static or not static. Configure looks for JavaCC in $PTII/vendors/sun/javacc-4.0 so either install JavaCC in that location or use the --with-javacc= flag and then rerun configure.'" >&5 echo "$as_me: WARNING: Failed to find javacc, perhaps JavaCC is not installed? You need not download JavaCC unless you plan on modifying .jjt files in ptolemy/data/expr. JavaCC is available from http://javacc.dev.java.net/ Note that the zip file that gets downloaded is actually an installer that must be run to install the JavaCC.zip file that contains the classes. Note that JavaCC-4.1 and 4.2 will not work, there are problems with ReInit() being static or not static. Configure looks for JavaCC in $PTII/vendors/sun/javacc-4.0 so either install JavaCC in that location or use the --with-javacc= flag and then rerun configure.'" >&2;} JJTREE=touch JAVACC=touch fi fi #-------------------------------------------------------------------- # See if there was a command-line option for where Jacl is #-------------------------------------------------------------------- # We only need to find Jacl if $PTII/util/testsuite # exists. If we are shipping ptplot, then this directory might not # exist PTJACL_JAR=$PTII/lib/ptjacl.jar # JTCLSH uses JAVAFLAGS for use with the # vergil/test/VergilConfiguration.tcl test # We set the ptolemy.ptII.dir property for use in the # actor.lib.test.auto.FileWriter{1,2}.xml tests # JTCLSHFLAGS gets set to -Dptolemy.ptII.isRunningNightlyBuild=true # when we are running the nightlybuild # Codegen uses up lots of memory while running JTCLSH='"$(JAVA)" -Xmx1000M $(JAVAFLAGS) "-Dptolemy.ptII.dir=$(PTII)" $(JTCLSHFLAGS) tcl.lang.Shell' # PTJACL_DIR is set to ptjacl and used in $PTII/ptolemy/actor/gui/makefile # if the ptjacl.jar file was found PTJACL_DIR= if test ! -d "$PTII/util/testsuite"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $PTII/util/testsuite is not present, so we need not find Jacl." >&5 echo "${ECHO_T}$PTII/util/testsuite is not present, so we need not find Jacl." >&6; }; fi else { echo "$as_me:$LINENO: checking for ptjacl.jar" >&5 echo $ECHO_N "checking for ptjacl.jar... $ECHO_C" >&6; } # Check whether --with-ptjacl_jar was given. if test "${with_ptjacl_jar+set}" = set; then withval=$with_ptjacl_jar; PTJACL_JAR=$withval else PTJACL_JAR=$PTII/lib/ptjacl.jar fi if test -f "$PTJACL_JAR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJACL_JAR" >&5 echo "${ECHO_T}$PTJACL_JAR" >&6; }; fi { echo "$as_me:$LINENO: checking for how to run jacl with \"$JAVA\"" >&5 echo $ECHO_N "checking for how to run jacl with \"$JAVA\"... $ECHO_C" >&6; } # This command starts up Jacl if echo "set java::jdkVersion; exit" | CLASSPATH="$PTJACL_JAR" "$JAVA" tcl.lang.Shell; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi PTJACL_DIR=ptjacl else if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: CLASSPATH=\"$PTJACL_JAR\" \"$JAVA\" tcl.lang.Shell failed" >&5 echo "${ECHO_T}CLASSPATH=\"$PTJACL_JAR\" \"$JAVA\" tcl.lang.Shell failed" >&6; }; fi { echo "$as_me:$LINENO: checking for how to run jacl with \"$JAVA\" \"$PTJACL_FLAG\"" >&5 echo $ECHO_N "checking for how to run jacl with \"$JAVA\" \"$PTJACL_FLAG\"... $ECHO_C" >&6; } if echo "set java::jdkVersion; exit" | CLASSPATH="$PTJACL_JAR" "$JAVA" tcl.lang.Shell; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi else if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: 'CLASSPATH=\"$PTJACL_JAR\" \"$JAVA\" tcl.lang.Shell' failed, use 'CLASSPATH=\"$PTJACL_JAR\" \"$JAVA\" tcl.lang.Shell' instead. ptjacl is used by the test suite, so you may be able to ignore this error." >&5 echo "${ECHO_T}'CLASSPATH=\"$PTJACL_JAR\" \"$JAVA\" tcl.lang.Shell' failed, use 'CLASSPATH=\"$PTJACL_JAR\" \"$JAVA\" tcl.lang.Shell' instead. ptjacl is used by the test suite, so you may be able to ignore this error." >&6; }; fi fi JTCLSH='"$(JAVA)" $(JAVAFLAGS) "-Dptolemy.ptII.dir=$(PTII)" $(JTCLFLAGS tcl.lang.Shell' fi else { echo "$as_me:$LINENO: WARNING: The ptjacl.jar file was not found at '$PTJACL_JAR' ptjacl.jar is only necessary if you plan on running the test suite. You can download ptjacl.jar from http://ptolemy.eecs.berkeley.edu/~cxh/java/jacl/ptjacl.html" >&5 echo "$as_me: WARNING: The ptjacl.jar file was not found at '$PTJACL_JAR' ptjacl.jar is only necessary if you plan on running the test suite. You can download ptjacl.jar from http://ptolemy.eecs.berkeley.edu/~cxh/java/jacl/ptjacl.html" >&2;} fi fi if test -z "$PTJACL_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/gui/ptjacl/" else ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi #-------------------------------------------------------------------- # Test for javax.media.j3d (Java 3D) #-------------------------------------------------------------------- # PTJAVA3D_DIR is set to gr and used in # $PTII/ptolemy/actor/lib/makefile if Java 3D was found PTJAVA3D_DIR= # Name of the jar file that includes the GR domain if Java 3D was found # Used in domains/makefile PTGRDOMAIN_JAR= # We only need to look for Java3D if the gr domain is present JAVA3D_USER_DIR="$PTII/ptolemy/domains/gr" if test ! -d "$JAVA3D_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $JAVA3D_USER_DIR is not present, so we need not find Java 3D." >&5 echo "${ECHO_T}$JAVA3D_USER_DIR is not present, so we need not find Java 3D." >&6; }; fi else { echo "$as_me:$LINENO: checking for Java 3D" >&5 echo $ECHO_N "checking for Java 3D... $ECHO_C" >&6; } # Check whether --with-java3D was given. if test "${with_java3D+set}" = set; then withval=$with_java3D; JAVA3D_DIR=$withval else JAVA3D_DIR= fi if test -f "$JAVA3D_DIR/j3dcore.jar" -a -f "$JAVA3D_DIR/j3dutils.jar" -a -f "$JAVA3D_DIR/vecmath.jar"; then JAVA3D_JARS="$JAVA3D_DIR/j3dcore.jar$CLASSPATHSEPARATOR$JAVA3D_DIR/j3dutils.jar$CLASSPATHSEPARATOR$JAVA3D_DIR/vecmath.jar" Java3DJavaC="$JAVAC -classpath $JAVA3D_JARS" else Java3DJavaC="$JAVAC" fi # We need to run javac in the config directory so that javac from jdk1.1.6 # under NT and cygwin works properly startdir=$PTII cd "$srcdir/config" # Don't use 'env $JAVAC . . .' here, it will not work under Cygwin if $Java3DJavaC java3dTest.java ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi PTJAVA3D_DIR=gr PTGRDOMAIN_JAR=gr/gr.jar # PTGR_PACKAGES is used in ptII/doc/makefile PTGR_PACKAGES="ptolemy.domains.gr.kernel ptolemy.domains.gr.lib" else { echo "$as_me:$LINENO: WARNING: '\"$JAVAC\" java3dTest.java' failed. http://java.sun.com/products/java-media/3D/download.html Java 3D is only needed if you want to build in $JAVA3D_USER_DIR, otherwise the build will proceed fine without Java 3D." >&5 echo "$as_me: WARNING: '\"$JAVAC\" java3dTest.java' failed. http://java.sun.com/products/java-media/3D/download.html Java 3D is only needed if you want to build in $JAVA3D_USER_DIR, otherwise the build will proceed fine without Java 3D." >&2;} fi cd "$startdir" fi if test -z "$PTJAVA3D_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/domains/gr/" fi #-------------------------------------------------------------------- # Jini is connection technology from Sun, see http://www.jini.org # See if there was a command-line option for where Jini is # If not, look in $PTII/lib #-------------------------------------------------------------------- # We only need to look for jini if the distributed directory is present JINI_USER_DIR="$PTII/ptolemy/distributed" JINI_PRESENT=no # PTDISTRIBUTED_DIR is set to distributed and used in # $PTII/ptolemy/makefile if jini was found. PTDISTRIBUTED_DIR= if test ! -d "$JINI_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $JINI_USER_DIR is not present, so we need not find Jini." >&5 echo "${ECHO_T}$JINI_USER_DIR is not present, so we need not find Jini." >&6; }; fi # We don't use JINI_VERSION here so that we don't expand PTII # in the makefile JINI_DIR='$PTII/ptolemy/distributed/jini' else { echo "$as_me:$LINENO: checking for jini directory" >&5 echo $ECHO_N "checking for jini directory... $ECHO_C" >&6; } # Check whether --with-jini was given. if test "${with_jini+set}" = set; then withval=$with_jini; JINI_DIR=$withval else JINI_DIR=$PTII/ptolemy/distributed/jini fi JINI_JARS="jini-core.jar jini-ext.jar sun-util.jar" if test -d "$JINI_DIR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $JINI_DIR" >&5 echo "${ECHO_T}$JINI_DIR" >&6; }; fi { echo "$as_me:$LINENO: checking for jars used by jini" >&5 echo $ECHO_N "checking for jars used by jini... $ECHO_C" >&6; } JINI_PRESENT=yes jinijarpath= for jar in $JINI_JARS do if test "${PTVERBOSE:-none}" = "none"; then $PT_ECHO $ECHO_N "." else $PT_ECHO $ECHO_N "$jar " fi jarpath=`$FIND "$JINI_DIR" -name $jar | head -1` if test -f "$jarpath"; then jinijarpath="$jinijarpath$CLASSPATHSEPARATOR$jarpath" # FIXME: we should not be adding to ECLIPSE_CLASSPATHENTRY_LIBS # unless we are sure that we can find all the jars ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " else { echo "$as_me:$LINENO: WARNING: Failed to find $jar in $JINI_DIR: $jarpath" >&5 echo "$as_me: WARNING: Failed to find $jar in $JINI_DIR: $jarpath" >&2;} jinijarpath= break fi done if test ! -z "$jinijarpath"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi JINI_PRESENT="yes" # PTDISTRIBUTED_DIR is set to distributed and used in # $PTII/ptolemy/makefile if jini was found PTDISTRIBUTED_DIR=distributed # PTDISTRIBUTED_PACKAGES is used in ptII/doc/makefile PTDISTRIBUTED_PACKAGES="ptolemy.distributed.actor.lib ptolemy.distributed.actor ptolemy.distributed.client ptolemy.distributed.common ptolemy.distributed.domains.sdf.kernel ptolemy.distributed.rmi ptolemy.distributed.util" PTDISTRIBUTED_JARS=$jinijarpath fi else JINI_DIR='$PTII/vendors/sun/jini/$JINI_VERSION' fi if test "$JINI_PRESENT" = "no"; then { echo "$as_me:$LINENO: WARNING: Perhaps Jini is not installed? You need not download Jini unless you plan on use the distributed Ptolemy feature in ptolemy/distributed. Jini can be downloaded from http://www.jini.org, the $JINI_JARS copied to \$PTII/ptolemy/distributed/jini/jars and configure rerun." >&5 echo "$as_me: WARNING: Perhaps Jini is not installed? You need not download Jini unless you plan on use the distributed Ptolemy feature in ptolemy/distributed. Jini can be downloaded from http://www.jini.org, the $JINI_JARS copied to \$PTII/ptolemy/distributed/jini/jars and configure rerun." >&2;} fi fi #-------------------------------------------------------------------- # Java Native Interface (JNI) # Ptolemy II can interface to user provided native code using JNI # Ptolemy II can interface to Matlab using JNI #-------------------------------------------------------------------- PTJNI_DIR= if test ! -d "$PTII/ptolemy/matlab" -a ! -d "$PTII/mescal/kirika" ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTII/jni, $PTII/ptolemy/matlab and $PTII/mescal/kirika are not present, so we need not find gcc or cc." >&5 echo "${ECHO_T}$PTII/jni, $PTII/ptolemy/matlab and $PTII/mescal/kirika are not present, so we need not find gcc or cc." >&6; }; fi else { echo "$as_me:$LINENO: checking for the proper JNI architecture" >&5 echo $ECHO_N "checking for the proper JNI architecture... $ECHO_C" >&6; } case "`uname -s`" in CYGWIN_*) PTJNI_ARCHITECTURE=win32;; Linux) PTJNI_ARCHITECTURE=linux;; SunOS) PTJNI_ARCHITECTURE=solaris;; Darwin) PTJNI_ARCHITECTURE=darwin;; *) PTJNI_ARCHITECTURE=unknown;; esac case "`uname -s`" in CYGWIN_*) # Extract the first word of "mingw32-gcc", so it can be a program name with args. set dummy mingw32-gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTCCJNI+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTCCJNI in [\\/]* | ?:[\\/]*) ac_cv_path_PTCCJNI="$PTCCJNI" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTCCJNI="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTCCJNI=$ac_cv_path_PTCCJNI if test -n "$PTCCJNI"; then { echo "$as_me:$LINENO: result: $PTCCJNI" >&5 echo "${ECHO_T}$PTCCJNI" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${PTCCJNI:-none}" = "none"; then { echo "$as_me:$LINENO: WARNING: Failed to find mingw32-gcc. Under Windows, Mingw or VisualStudio are required to create shared libraries that work with Java. Cygwin gcc will compile the dll, but it will not run. To install Mingw, see http://www.mingw.org or http://ptolemy.org/ptolemyII/ptIIlatest/cygwin.htm" >&5 echo "$as_me: WARNING: Failed to find mingw32-gcc. Under Windows, Mingw or VisualStudio are required to create shared libraries that work with Java. Cygwin gcc will compile the dll, but it will not run. To install Mingw, see http://www.mingw.org or http://ptolemy.org/ptolemyII/ptIIlatest/cygwin.htm" >&2;} fi;; *) # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTCCJNI+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTCCJNI in [\\/]* | ?:[\\/]*) ac_cv_path_PTCCJNI="$PTCCJNI" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTCCJNI="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTCCJNI=$ac_cv_path_PTCCJNI if test -n "$PTCCJNI"; then { echo "$as_me:$LINENO: result: $PTCCJNI" >&5 echo "${ECHO_T}$PTCCJNI" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${PTCCJNI:-none}" != "none"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTCCJNI+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTCCJNI in [\\/]* | ?:[\\/]*) ac_cv_path_PTCCJNI="$PTCCJNI" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTCCJNI="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTCCJNI=$ac_cv_path_PTCCJNI if test -n "$PTCCJNI"; then { echo "$as_me:$LINENO: result: $PTCCJNI" >&5 echo "${ECHO_T}$PTCCJNI" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi else { echo "$as_me:$LINENO: WARNING: Failed to find gcc or cc, so we will not be able to compile the JNI interface in $PTII/jni" >&5 echo "$as_me: WARNING: Failed to find gcc or cc, so we will not be able to compile the JNI interface in $PTII/jni" >&2;}; fi ;; esac # Extract the first word of "javah", so it can be a program name with args. set dummy javah; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_JAVAH+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $JAVAH in [\\/]* | ?:[\\/]*) ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi JAVAH=$ac_cv_path_JAVAH if test -n "$JAVAH"; then { echo "$as_me:$LINENO: result: $JAVAH" >&5 echo "${ECHO_T}$JAVAH" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Under MacOS X, JAVAH might be a link if test ! -e "$JAVAH"; then { echo "$as_me:$LINENO: WARNING: Failed to find javah at '$JAVAH', perhaps Java is not installed?" >&5 echo "$as_me: WARNING: Failed to find javah at '$JAVAH', perhaps Java is not installed?" >&2;} fi if test "${PTCCJNI:-none}" != "none"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJNICC" >&5 echo "${ECHO_T}$PTJNICC" >&6; }; fi PTJNI_DIR=jni if test ! -z $PTJNI_DIR; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: '$PTJNI_ARCHITECTURE'" >&5 echo "${ECHO_T}'$PTJNI_ARCHITECTURE'" >&6; }; fi { echo "$as_me:$LINENO: checking for the proper JNI architecture include directory" >&5 echo $ECHO_N "checking for the proper JNI architecture include directory... $ECHO_C" >&6; } if test $PTJNI_ARCHITECTURE = "darwin"; then PTJNI_INCLUDE="$PTJAVA_HOME/../Headers" else PTJNI_INCLUDE="$PTJAVA_HOME/../include" fi if test ! -d "$PTJNI_INCLUDE"; then { echo "$as_me:$LINENO: WARNING: $PTJNI_INCLUDE was not found. As a result, compilation of JNI actors will fail." >&5 echo "$as_me: WARNING: $PTJNI_INCLUDE was not found. As a result, compilation of JNI actors will fail." >&2;} else if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJNI_INCLUDE" >&5 echo "${ECHO_T}$PTJNI_INCLUDE" >&6; }; fi fi { echo "$as_me:$LINENO: checking for the proper JNI library architecture" >&5 echo $ECHO_N "checking for the proper JNI library architecture... $ECHO_C" >&6; } case "`uname -p`" in *86) PTJNI_LIB_ARCHITECTURE=i386;; sparc) PTJNI_LIB_ARCHITECTURE=sparc;; unknown) # Some platforms do not properly implement uname -p if test $PTJNI_ARCHITECTURE = "win32" -o $PTJNI_ARCHITECTURE = "linux"; then PTJNI_LIB_ARCHITECTURE=i386 else PTJNI_LIB_ARCHITECTURE=unknown fi ;; x86_64) PTJNI_LIB_ARCHITECTURE=amd64;; *) PTJNI_LIB_ARCHITECTURE=unknown;; esac if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: '$PTJNI_LIB_ARCHITECTURE'" >&5 echo "${ECHO_T}'$PTJNI_LIB_ARCHITECTURE'" >&6; }; fi { echo "$as_me:$LINENO: checking for the proper JNI architecture lib directory" >&5 echo $ECHO_N "checking for the proper JNI architecture lib directory... $ECHO_C" >&6; } if test $PTJNI_ARCHITECTURE = "darwin"; then PTJNI_LIB="$PTJAVA_HOME/../Libraries" else PTJNI_LIB="$PTJAVA_HOME/lib/$PTJNI_LIB_ARCHITECTURE" fi if test ! -d "$PTJNI_LIB"; then { echo "$as_me:$LINENO: WARNING: $PTJNI_LIB was not found. As a result, $PTII/jni/launcher/launcher might not work." >&5 echo "$as_me: WARNING: $PTJNI_LIB was not found. As a result, $PTII/jni/launcher/launcher might not work." >&2;} else if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTJNI_LIB" >&5 echo "${ECHO_T}$PTJNI_LIB" >&6; }; fi fi { echo "$as_me:$LINENO: checking for if the -mno-cygwin flag is available" >&5 echo $ECHO_N "checking for if the -mno-cygwin flag is available... $ECHO_C" >&6; } case "`uname -s`" in CYGWIN_ME-*) PTJNI_NO_CYGWIN=-mno-cygwin;; CYGWIN_NT-*) PTJNI_NO_CYGWIN=-mno-cygwin;; CYGWIN_98-*) PTJNI_NO_CYGWIN=-mno-cygwin;; *) PTJNI_NO_CYGWIN=;; esac if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: '$PTJNI_NO_CYGWIN'" >&5 echo "${ECHO_T}'$PTJNI_NO_CYGWIN'" >&6; }; fi { echo "$as_me:$LINENO: checking for the proper shared library gcc flag" >&5 echo $ECHO_N "checking for the proper shared library gcc flag... $ECHO_C" >&6; } case "`uname -s`" in Darwin) PTJNI_GCC_SHARED_FLAG=-dynamiclib;; *) PTJNI_GCC_SHARED_FLAG=-shared; esac if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: '$PTJNI_GCC_SHARED_FLAG'" >&5 echo "${ECHO_T}'$PTJNI_GCC_SHARED_FLAG'" >&6; }; fi { echo "$as_me:$LINENO: checking for the proper shared library cc flag" >&5 echo $ECHO_N "checking for the proper shared library cc flag... $ECHO_C" >&6; } # Under Cygwin with gcc, we need -D__int64="long long" # FIXME: we should have a test for this instead of setting it explictly case "`uname -s`" in CYGWIN_*) PTJNI_SHAREDLIBRARY_CFLAG="-D__int64=\"long long\"";; Linux) PTJNI_SHAREDLIBRARY_CFLAG=-fPIC;; SunOS) PTJNI_SHAREDLIBRARY_CFLAG=-fPIC;; *) PTJNI_SHAREDLIBRARY_CFLAG=;; esac if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: '$PTJNI_SHAREDLIBRARY_CFLAG'" >&5 echo "${ECHO_T}'$PTJNI_SHAREDLIBRARY_CFLAG'" >&6; }; fi { echo "$as_me:$LINENO: checking for the proper shared library link flag" >&5 echo $ECHO_N "checking for the proper shared library link flag... $ECHO_C" >&6; } case "`uname -s`" in CYGWIN_*) PTJNI_SHAREDLIBRARY_LDFLAG=-Wl,--add-stdcall-alias;; Linux) PTJNI_SHAREDLIBRARY_LDFLAG=-fPIC;; SunOS) PTJNI_SHAREDLIBRARY_LDFLAG=-fPIC;; *) PTJNI_SHAREDLIBRARY_LDFLAG=;; esac if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: '$PTJNI_SHAREDLIBRARY_LDFLAG'" >&5 echo "${ECHO_T}'$PTJNI_SHAREDLIBRARY_LDFLAG'" >&6; }; fi { echo "$as_me:$LINENO: checking for the proper shared library prefix" >&5 echo $ECHO_N "checking for the proper shared library prefix... $ECHO_C" >&6; } case "`uname -s`" in CYGWIN_ME-*) PTJNI_SHAREDLIBRARY_PREFIX=;; CYGWIN_NT-*) PTJNI_SHAREDLIBRARY_PREFIX=;; CYGWIN_98-*) PTJNI_SHAREDLIBRARY_PREFIX=;; SunOS) PTJNI_SHAREDLIBRARY_PREFIX=lib;; *) PTJNI_SHAREDLIBRARY_PREFIX=lib;; esac if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: '$PTJNI_SHAREDLIBRARY_PREFIX'" >&5 echo "${ECHO_T}'$PTJNI_SHAREDLIBRARY_PREFIX'" >&6; }; fi { echo "$as_me:$LINENO: checking for the proper shared library suffix" >&5 echo $ECHO_N "checking for the proper shared library suffix... $ECHO_C" >&6; } PTJNI_SHAREDLIBRARY_SUFFIX2="" case "`uname -s`" in CYGWIN_*) PTJNI_SHAREDLIBRARY_SUFFIX=dll PTJNI_SHAREDLIBRARY_SUFFIX2=dll.a;; SunOS) PTJNI_SHAREDLIBRARY_SUFFIX=so;; Linux) PTJNI_SHAREDLIBRARY_SUFFIX=so;; Darwin) PTJNI_SHAREDLIBRARY_SUFFIX=jnilib PTJNI_SHAREDLIBRARY_SUFFIX2=dylib;; *) PTJNI_SHAREDLIBRARY_SUFFIX=unknown esac if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: '$PTJNI_SHAREDLIBRARY_SUFFIX'" >&5 echo "${ECHO_T}'$PTJNI_SHAREDLIBRARY_SUFFIX'" >&6; }; fi { echo "$as_me:$LINENO: checking for JNI libraries needed to link JNI" >&5 echo $ECHO_N "checking for JNI libraries needed to link JNI... $ECHO_C" >&6; } PTJNI_DL_LIBRARY= case "`uname -s`" in CYGWIN_*) PTJNI_LIBRARIES=-lcygwin;; Linux) PTJNI_LIBRARIES= PTJNI_DL_LIBRARY=-ldl;; *) PTJNI_LIBRARIES=;; esac if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: '$PTJNI_LIBRARIES'" >&5 echo "${ECHO_T}'$PTJNI_LIBRARIES'" >&6; }; fi fi fi fi #-------------------------------------------------------------------- # Jode is a java decompiler. It is useful for looking at the contents # of class files. It can be downloaded from # http://jode.sourceforge.net/download.php # Jode is full GPL, so we can't distribute it without making Ptolemy # GPL'd as well. #-------------------------------------------------------------------- # PTJODE_DIR is set to jode and used in # $PTII/ptolemy/apps/makefile if jode was found #PTJODE_DIR= # Note that we don't substitute in the ${PTII} or $(JODE_DIR) here # Defaults for ptII.mk and bin/ptinvoke.in # Use {} here instead of () because bin/ptinvoke uses JODE_DIR and JODE_CLASSES # and under /bin/sh $(FOO) does not work, but ${FOO} does JODE_DIR='${PTII}/vendors/jode/1.1.2-pre1' JODE_CLASSES='${JODE_DIR}/jode.jar' # We only need to look for jode if $PTII/ptolemy/apps/jode exists if test ! -d "$PTII/vendors/jode"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $PTII/vendors/jode is not present, so we need not find Jode, which is a java disassembler." >&5 echo "${ECHO_T}$PTII/vendors/jode is not present, so we need not find Jode, which is a java disassembler." >&6; }; fi else { echo "$as_me:$LINENO: checking for jode directory" >&5 echo $ECHO_N "checking for jode directory... $ECHO_C" >&6; } # Check whether --with-jode was given. if test "${with_jode+set}" = set; then withval=$with_jode; JODE_DIR=$withval else JODE_DIR=$PTII/vendors/jode/1.1.2-pre1 fi if test -d "$JODE_DIR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $JODE_DIR" >&5 echo "${ECHO_T}$JODE_DIR" >&6; }; fi { echo "$as_me:$LINENO: checking for \$JODE_DIR/jode.jar" >&5 echo $ECHO_N "checking for \$JODE_DIR/jode.jar... $ECHO_C" >&6; } if test -f "$JODE_DIR/jode.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $JODE_DIR/jode.jar" >&5 echo "${ECHO_T}$JODE_DIR/jode.jar" >&6; }; fi JODE_CLASSES=$JODE_DIR/jode.jar else JODE_CLASSES=no fi fi if test "$JODE_CLASSES" = "no"; then { echo "$as_me:$LINENO: WARNING: Failed to find jode/jode.jar perhaps Jode is not installed? Jode is used to disassemble Java .class files and is only necessary if you plan on debugging the byte code based code generator. Jode can be downloaded from http://jode.sourceforge.net/download.php" >&5 echo "$as_me: WARNING: Failed to find jode/jode.jar perhaps Jode is not installed? Jode is used to disassemble Java .class files and is only necessary if you plan on debugging the byte code based code generator. Jode can be downloaded from http://jode.sourceforge.net/download.php" >&2;} # Note that we don't substitute in the ${PTII} or $(JODE_DIR) here JODE_DIR='${PTII}/vendors/jode/1.1.2-pre1' JODE_CLASSES='${JODE_DIR}/jode.jar' #else # Set to jode and used in # $PTII/ptolemy/apps/makefile if jode was found #PTJODE_DIR=jode fi fi #-------------------------------------------------------------------- # KVM is the JDK for PalmOS # See if there was a command-line option for where # j2me_cldc/bin/api/classes is; if not, # check to see if $PTII/vendors/sun/j2me_cldc exists #-------------------------------------------------------------------- # PTKVM_DIR is set to kvm and used in # $PTII/ptolemy/makefile if kvm was found PTKVM_DIR= # # We only need to look for kvm if $PTII/ptolemy/apps/kvm exists if test ! -d "$PTII/ptolemy/apps/kvm"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $PTII/ptolemy/apps/kvm is not present, so we need not find the PalmOS kvm." >&5 echo "${ECHO_T}$PTII/ptolemy/apps/kvm is not present, so we need not find the PalmOS kvm." >&6; }; fi KVM_DIR='${PTII}/vendors/sun/j2me_cldc' # Unfortunately, j2me_cldc does not ship with a jar of zip file # It needs to be built KVM_CLASSES='$(KVM_DIR)/bin/api/classes' else { echo "$as_me:$LINENO: checking for kvm directory" >&5 echo $ECHO_N "checking for kvm directory... $ECHO_C" >&6; } # Check whether --with-kvm was given. if test "${with_kvm+set}" = set; then withval=$with_kvm; KVM_DIR=$withval else KVM_DIR=$PTII/vendors/sun/j2me_cldc fi if test -d "$KVM_DIR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $KVM_DIR" >&5 echo "${ECHO_T}$KVM_DIR" >&6; }; fi { echo "$as_me:$LINENO: checking for \$KVM_DIR/bin/api/classes" >&5 echo $ECHO_N "checking for \$KVM_DIR/bin/api/classes... $ECHO_C" >&6; } if test -d "$KVM_DIR/bin/api/classes"; then KVM_CLASSES='$(KVM_DIR)/bin/api/classes' if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $KVM_CLASSES" >&5 echo "${ECHO_T}$KVM_CLASSES" >&6; }; fi else KVM_CLASSES=no fi else if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: Not found in $KVM_DIR" >&5 echo "${ECHO_T}Not found in $KVM_DIR" >&6; }; fi { echo "$as_me:$LINENO: checking for kvm directory in /j2me_cldc" >&5 echo $ECHO_N "checking for kvm directory in /j2me_cldc... $ECHO_C" >&6; } # Likely place for kvm under windows KVM_DIR=/j2me_cldc if test -d "$KVM_DIR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $KVM_DIR" >&5 echo "${ECHO_T}$KVM_DIR" >&6; }; fi { echo "$as_me:$LINENO: checking for \$KVM_DIR/bin/api/classes" >&5 echo $ECHO_N "checking for \$KVM_DIR/bin/api/classes... $ECHO_C" >&6; } if test -d "$KVM_DIR/bin/api/classes"; then KVM_CLASSES='$(KVM_DIR)/bin/api/classes' if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $KVM_CLASSES" >&5 echo "${ECHO_T}$KVM_CLASSES" >&6; }; fi else KVM_CLASSES=no fi else KVM_CLASSES=no fi fi if test "$KVM_CLASSES" = "no"; then { echo "$as_me:$LINENO: WARNING: Failed to find j2me_cldc/bin/api/classes, perhaps Kvm is not installed? You need not download Kvm unless you plan on building applications for the Palm Pilot or Handspring Visor. Kvm can be downloaded from http://java.sun.com/products/cldc" >&5 echo "$as_me: WARNING: Failed to find j2me_cldc/bin/api/classes, perhaps Kvm is not installed? You need not download Kvm unless you plan on building applications for the Palm Pilot or Handspring Visor. Kvm can be downloaded from http://java.sun.com/products/cldc" >&2;} # Note that we don't substitute in the ${PTII} or $(KVM_DIR) here KVM_DIR='${PTII}/vendors/sun/kvm' KVM_CLASSES='$(KVM_DIR)/bin/api/classes' else # Set to kvm and used in # $PTII/ptolemy/makefile if kvm was found PTKVM_DIR=kvm fi fi #-------------------------------------------------------------------- # MATLAB Interface # check to see if matlab is in the user's path #-------------------------------------------------------------------- # PTMATLAB_DIR is set to matlab and used in $PTII/ptolemy/makefile # if matlab and gcc are found; PTMATLAB_LIBDIR is then also set to # the platform-dependent directory containg Matlab's engine libraries PTMATLAB_DIR= PTMATLAB_LIBDIR= PTMATLAB_SUPPORTED=no case "`uname -s`" in Darwin) PTMATLAB_SUPPORTED=yes ;; Linux) PTMATLAB_SUPPORTED=yes ;; CYGWIN*) PTMATLAB_SUPPORTED=yes ;; SunOS*) PTMATLAB_SUPPORTED=yes ;; esac if test "$PTMATLAB_SUPPORTED" = "no"; then { echo "$as_me:$LINENO: WARNING: The Matlab interface is not supported on this platform (you are running \`uname -s\`)." >&5 echo "$as_me: WARNING: The Matlab interface is not supported on this platform (you are running \`uname -s\`)." >&2;} else # We only need to look for matlab if $PTII/ptolemy/matlab exists if test ! -d "$PTII/ptolemy/matlab"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $PTII/ptolemy/matlab is not present, so we need not find matlab and gcc." >&5 echo "${ECHO_T}$PTII/ptolemy/matlab is not present, so we need not find matlab and gcc." >&6; }; fi MATLAB_DIR=/matlab #PTCC=gcc else # Extract the first word of "matlab", so it can be a program name with args. set dummy matlab; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_MATLAB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MATLAB in [\\/]* | ?:[\\/]*) ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MATLAB=$ac_cv_path_MATLAB if test -n "$MATLAB"; then { echo "$as_me:$LINENO: result: $MATLAB" >&5 echo "${ECHO_T}$MATLAB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${MATLAB:-none}" = "none"; then { echo "$as_me:$LINENO: WARNING: Failed to find matlab executable in the path. Perhaps Matlab is not installed? If Matlab is not present, then the Ptolemy II/Matlab interface in \$PTII/ptolemy/matlab will not be usable." >&5 echo "$as_me: WARNING: Failed to find matlab executable in the path. Perhaps Matlab is not installed? If Matlab is not present, then the Ptolemy II/Matlab interface in \$PTII/ptolemy/matlab will not be usable." >&2;}; else startdir=$PTII cd "$srcdir/config" if "$JAVAC" MatlabRootDirectory.java ; then { echo "$as_me:$LINENO: checking the value of the Matlab root directory " >&5 echo $ECHO_N "checking the value of the Matlab root directory ... $ECHO_C" >&6; } if env CLASSPATH="$PTII/config" "$JAVA" MatlabRootDirectory "$MATLAB"> /dev/null; then MATLAB_DIR_TMP=`CLASSPATH="$PTII/config" "$JAVA" MatlabRootDirectory "$MATLAB"` # Use changequote to protect the square brackets in sed # Remove /cygdrive so we can compile with MSVC MATLAB_DIR=`echo "$MATLAB_DIR_TMP" | sed 's@/cygdrive/\([a-zA-Z]\)/@\1:/@'` if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: '$MATLAB_DIR'" >&5 echo "${ECHO_T}'$MATLAB_DIR'" >&6; }; fi else { echo "$as_me:$LINENO: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVA MatlabRootDirectory \"$MATLAB\"' failed. We will not be able to compile the Matlab interface in ptolemy/matlab/" >&5 echo "$as_me: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVA MatlabRootDirectory \"$MATLAB\"' failed. We will not be able to compile the Matlab interface in ptolemy/matlab/" >&2;}; fi else { echo "$as_me:$LINENO: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVAC MatlabRootDirectory.java' failed. We will not be able to compile the Matlab interface in ptolemy/matlab" >&5 echo "$as_me: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVAC MatlabRootDirectory.java' failed. We will not be able to compile the Matlab interface in ptolemy/matlab" >&2;}; fi cd "$startdir" if test ! -d "$MATLAB_DIR"; then { echo "$as_me:$LINENO: WARNING: Failed to find '${MATLAB_DIR}' If Matlab is not present, then the Ptolemy II/Matlab interface in \$PTII/ptolemy/matlab will not be usable." >&5 echo "$as_me: WARNING: Failed to find '${MATLAB_DIR}' If Matlab is not present, then the Ptolemy II/Matlab interface in \$PTII/ptolemy/matlab will not be usable." >&2;}; else { echo "$as_me:$LINENO: checking for gcc" >&5 echo $ECHO_N "checking for gcc... $ECHO_C" >&6; } case "`uname -s`" in CYGWIN_*) # Extract the first word of "mingw32-gcc", so it can be a program name with args. set dummy mingw32-gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTMATLAB_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTMATLAB_CC in [\\/]* | ?:[\\/]*) ac_cv_path_PTMATLAB_CC="$PTMATLAB_CC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTMATLAB_CC="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTMATLAB_CC=$ac_cv_path_PTMATLAB_CC if test -n "$PTMATLAB_CC"; then { echo "$as_me:$LINENO: result: $PTMATLAB_CC" >&5 echo "${ECHO_T}$PTMATLAB_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${PTMATLAB_CC:-none}" = "none"; then { echo "$as_me:$LINENO: WARNING: Failed to find mingw32-gcc. Under Windows, Mingw or VisualStudio are required to compile the Ptolemy/Matlab dll. Cygwin gcc will compile the dll, but it will not run. To install Mingw, see http://www.mingw.org or http://ptolemy.org/ptolemyII/ptIIlatest/cygwin.htm" >&5 echo "$as_me: WARNING: Failed to find mingw32-gcc. Under Windows, Mingw or VisualStudio are required to compile the Ptolemy/Matlab dll. Cygwin gcc will compile the dll, but it will not run. To install Mingw, see http://www.mingw.org or http://ptolemy.org/ptolemyII/ptIIlatest/cygwin.htm" >&2;} else OLDCC="$CC" CC="$PTMATLAB_CC" PTJNI_LIBC="" fi;; *) # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTMATLAB_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTMATLAB_CC in [\\/]* | ?:[\\/]*) ac_cv_path_PTMATLAB_CC="$PTMATLAB_CC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTMATLAB_CC="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTMATLAB_CC=$ac_cv_path_PTMATLAB_CC if test -n "$PTMATLAB_CC"; then { echo "$as_me:$LINENO: result: $PTMATLAB_CC" >&5 echo "${ECHO_T}$PTMATLAB_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${PTMATLAB_CC:-none}" != "none"; then OLDCC="$CC" CC="$PTMATLAB_CC" PTJNI_LIBC="-lc" else { echo "$as_me:$LINENO: WARNING: Failed to find gcc" >&5 echo "$as_me: WARNING: Failed to find gcc" >&2;} # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTMATLAB_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTMATLAB_CC in [\\/]* | ?:[\\/]*) ac_cv_path_PTMATLAB_CC="$PTMATLAB_CC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTMATLAB_CC="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTMATLAB_CC=$ac_cv_path_PTMATLAB_CC if test -n "$PTMATLAB_CC"; then { echo "$as_me:$LINENO: result: $PTMATLAB_CC" >&5 echo "${ECHO_T}$PTMATLAB_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${PTMATLAB_CC:-none}" != "none"; then OLDCC="$CC" CC="$PTMATLAB_CC" PTJNI_LIBC="-lc" else { echo "$as_me:$LINENO: WARNING: Failed to find gcc or cc, so we will not be able to compile the Matlab interface in ptolemy/matlab" >&5 echo "$as_me: WARNING: Failed to find gcc or cc, so we will not be able to compile the Matlab interface in ptolemy/matlab" >&2;}; fi fi;; esac if test "${PTMATLAB_CC:-none}" != "none"; then for ac_func in malloc_size do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF MALLOC_SIZE_FLAG=-DHAVE_MALLOC_SIZE fi done CC="$OLDCC" cd "$srcdir/config" if "$JAVAC" MajorOSName.java ; then { echo "$as_me:$LINENO: checking which major type of OS we are running under" >&5 echo $ECHO_N "checking which major type of OS we are running under... $ECHO_C" >&6; } # Older versions of cygwin might not have env, but 1.1 does if env CLASSPATH="$PTII/config" "$JAVA" MajorOSName > /dev/null; then # Run it again and get the results. We get just the first word: Windows, Linux, Mac etc. MAJOR_OS_NAME=`CLASSPATH="$PTII/config" "$JAVA" MajorOSName | awk '{print $1}'` if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $MAJOR_OS_NAME" >&5 echo "${ECHO_T}$MAJOR_OS_NAME" >&6; }; fi else { echo "$as_me:$LINENO: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVA MajorOSName' failed. The Matlab interface will build fine, but not being able to determine the major operating system name could cause problems with running (cd \"$PTII/ptolemy/matlab\"; make install)" >&5 echo "$as_me: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVA MajorOSName' failed. The Matlab interface will build fine, but not being able to determine the major operating system name could cause problems with running (cd \"$PTII/ptolemy/matlab\"; make install)" >&2;}; fi fi cd "$startdir" MATLAB_USE_MSVC="no" # These flags work for MacOSX r2009a, Linux r2008a, Windows r2008a PTMATLAB_CC_FLAGS="-DPT_NO_ENGGETARRAY -DPT_NO_ENGPUTARRAY -DPT_NO_MXGETNAME $MALLOC_SIZE_FLAG" case "`uname -s`" in Linux) if test "`uname -m`" = "x86_64"; then MATLAB_LIBDIR=${MATLAB_DIR}/bin/glnxa64 else MATLAB_LIBDIR=${MATLAB_DIR}/bin/glnx86 if ! test -d ${MATLAB_DIR}; then MATLAB_LIBDIR=${MATLAB_DIR}/extern/lib/glnx86 fi fi ;; CYGWIN*) # As of 5/2007, we no longer use MSVC cl for Matlab MATLAB_USE_MSVC="no" MATLAB_LIBDIR=${MATLAB_DIR}/bin/win32 ;; SunOS*) MATLAB_LIBDIR=${MATLAB_DIR}/extern/lib/sol2 if test ! -d "$MATLAB_LIBDIR"; then # Why, under Unix, are the libs in the bin dir? MATLAB_LIBDIR=${MATLAB_DIR}/bin if test ! -f "$MATLAB_LIBDIR/libmx.so"; then MATLAB_LIBDIR=${MATLAB_DIR}/bin/sol64 PTMATLAB_CC_FLAGS="-m64 $PTMATLAB_CC_FLAGS" fi else if test ! -f "$MATLAB_LIBDIR/libmx.so"; then # Why, under Unix, are the libs in the bin dir? # matlab r2006a MATLAB_LIBDIR=${MATLAB_DIR}/bin fi fi ;; Darwin) MATLAB_LIBDIR=${MATLAB_DIR}/bin/maci MATLAB_64LIBDIR=${MATLAB_DIR}/bin/maci64 ;; *) MATLAB_LIBDIR=${MATLAB_DIR}/extern/lib ;; esac if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: using '${MATLAB_LIBDIR}' for Matlab's engine libraries" >&5 echo "${ECHO_T}using '${MATLAB_LIBDIR}' for Matlab's engine libraries" >&6; }; fi if test $MATLAB_USE_MSVC = "yes"; then { echo "$as_me:$LINENO: checking for Microsoft Visual C cl" >&5 echo $ECHO_N "checking for Microsoft Visual C cl... $ECHO_C" >&6; } # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTMATLAB_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTMATLAB_CC in [\\/]* | ?:[\\/]*) ac_cv_path_PTMATLAB_CC="$PTMATLAB_CC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTMATLAB_CC="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTMATLAB_CC=$ac_cv_path_PTMATLAB_CC if test -n "$PTMATLAB_CC"; then { echo "$as_me:$LINENO: result: $PTMATLAB_CC" >&5 echo "${ECHO_T}$PTMATLAB_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${PTMATLAB_CC:-none}" != "none"; then PTMATLAB_DIR=matlab MATLAB_LIBPATH_DIR="${MATLAB_DIR}/extern/lib/win32/microsoft" MATLAB_LIBPATH=`echo "$MATLAB_LIBPATH_DIR" | sed 's/ /\\\\\ /'` PTMATLAB_LD_ARGS="/Tpptmatlab.cc /Feptmatlab.dll /link /dll /libpath:\\\"${MATLAB_LIBPATH}\\\" libeng.lib libmx.lib" else { echo "$as_me:$LINENO: WARNING: Failed to find cl" >&5 echo "$as_me: WARNING: Failed to find cl" >&2;} # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTMATLAB_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTMATLAB_CC in [\\/]* | ?:[\\/]*) ac_cv_path_PTMATLAB_CC="$PTMATLAB_CC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTMATLAB_CC="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTMATLAB_CC=$ac_cv_path_PTMATLAB_CC if test -n "$PTMATLAB_CC"; then { echo "$as_me:$LINENO: result: $PTMATLAB_CC" >&5 echo "${ECHO_T}$PTMATLAB_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${PTMATLAB_CC:-none}" != "none"; then PTMATLAB_DIR=matlab else { echo "$as_me:$LINENO: WARNING: Failed to find MSVC cl or GNU gcc, so we will not be able to compile the Matlab interface in ptolemy/matlab. Note that the Matlab interface does not work under Windows with gcc-3.3, you must use the Microsoft Visual C 'cl' compiler." >&5 echo "$as_me: WARNING: Failed to find MSVC cl or GNU gcc, so we will not be able to compile the Matlab interface in ptolemy/matlab. Note that the Matlab interface does not work under Windows with gcc-3.3, you must use the Microsoft Visual C 'cl' compiler." >&2;}; fi fi else if test $PTJNI_ARCHITECTURE = "darwin"; then PTMATLAB_LD_ARGS="ptmatlab.cc -fno-exceptions -dynamiclib -o ${PTJNI_SHAREDLIBRARY_PREFIX}ptmatlab32.${PTJNI_SHAREDLIBRARY_SUFFIX} -L\"${MATLAB_LIBDIR}\" ${PTJNI_SHAREDLIBRARY_LDFLAG} -leng -lmx -lmex" PTMATLAB_64LD_ARGS="ptmatlab.cc -fno-exceptions -dynamiclib -o ${PTJNI_SHAREDLIBRARY_PREFIX}ptmatlab64.${PTJNI_SHAREDLIBRARY_SUFFIX} -L\"${MATLAB_64LIBDIR}\" ${PTJNI_SHAREDLIBRARY_LDFLAG} -leng -lmx -lmex" else PTMATLAB_LD_ARGS="-shared ptmatlab.cc -fno-exceptions -o ${PTJNI_SHAREDLIBRARY_PREFIX}ptmatlab.${PTJNI_SHAREDLIBRARY_SUFFIX} -L\"${MATLAB_LIBDIR}\" ${PTJNI_SHAREDLIBRARY_LDFLAG} ${PTJNI_LIBC} -leng -lmx -lmex" if test "`uname -m`" = "x86_64"; then PTMATLAB_LD_ARGS="$PTMATLAB_LD_ARGS -fPIC" fi fi # Under MacOS X, JAVAH might be a link if test ! -e "$JAVAH"; then { echo "$as_me:$LINENO: WARNING: Failed to find javah at '$JAVAH', perhaps the JDK is not installed? We will not be able to compile the Matlab interface in ptolemy/matlab" >&5 echo "$as_me: WARNING: Failed to find javah at '$JAVAH', perhaps the JDK is not installed? We will not be able to compile the Matlab interface in ptolemy/matlab" >&2;}; else PTMATLAB_DIR=matlab fi fi fi fi fi fi fi if test -z "$PTMATLAB_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/matlab/" fi #-------------------------------------------------------------------- # Mescal - # #-------------------------------------------------------------------- # PTMESCAL_DIR is set to mescal and used in $PTII/makefile # if $PTII/mescal was found PTMESCAL_DIR= MESCAL_USER_DIR="$PTII/mescal" if test -d "$MESCAL_USER_DIR"; then PTMESCAL_DIR=mescal ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|**/devel/|mescal/apps/|mescal/totem/domains/meta/codegen/|mescal/views/memory/registerfile/|mescal/views/simulation/model/probe/|mescal/xml2hmdes/" fi #-------------------------------------------------------------------- # PSDF is the Parameterized Synchronous Data Flow domain #-------------------------------------------------------------------- # PTPSDF_DIR is set to PSDF and used in # $PTII/ptolemy/domains/makefile if mapss.jar was found. PTPSDF_DIR= # Directory that contains the mapss.jar file PSDF_DIR='${PTII}/lib' # We only need to look for on if $PTII/ptolemy/domains/psdf exists PSDF_USER_DIR="$PTII/ptolemy/domains/psdf" if test ! -d "$PSDF_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $PSDF_USER_DIR is not present, so we need not find the mapss.jar." >&5 echo "${ECHO_T}$PSDF_USER_DIR is not present, so we need not find the mapss.jar." >&6; }; fi else { echo "$as_me:$LINENO: checking for mapss.jar, used by the PSDF domain" >&5 echo $ECHO_N "checking for mapss.jar, used by the PSDF domain... $ECHO_C" >&6; } # Check whether --with-mapss was given. if test "${with_mapss+set}" = set; then withval=$with_mapss; PSDF_DIR=$withval else PSDF_DIR=$PTII/lib fi if test -f "$PSDF_DIR/mapss.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PSDF_DIR" >&5 echo "${ECHO_T}$PSDF_DIR" >&6; }; fi PTPSDF_DIR=psdf else { echo "$as_me:$LINENO: WARNING: Failed to find PTII/lib/mapss.jar If it is not present, you will not be able to use the Parameterized Synchronous Data Flow domain." >&5 echo "$as_me: WARNING: Failed to find PTII/lib/mapss.jar If it is not present, you will not be able to use the Parameterized Synchronous Data Flow domain." >&2;} # Note that we don't substitute in the ${PTII} here PSDF_DIR='${PTII}/lib/' fi fi if test -z "$PTPSDF_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/domains/psdf/" else ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi #-------------------------------------------------------------------- # Ptalon #-------------------------------------------------------------------- # PTPTALON_DIR is set to ptalon and used in # $PTII/ptolemy/actor/makefile if antlr.jar was found. PTPTALON_DIR= # Directory that contains the antlr.jar file ANTLR_DIR='${PTII}/ptolemy/actor/ptalon/antlr' # We only need to look for on if $PTII/ptolemy/actor/ptalon exists PTALON_USER_DIR="$PTII/ptolemy/actor/ptalon" if test ! -d "$PTALON_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $PTALON_USER_DIR is not present, so we need not find anltr.jar." >&5 echo "${ECHO_T}$PTALON_USER_DIR is not present, so we need not find anltr.jar." >&6; }; fi else { echo "$as_me:$LINENO: checking for anltr.jar, used by the Ptalon" >&5 echo $ECHO_N "checking for anltr.jar, used by the Ptalon... $ECHO_C" >&6; } # Check whether --with-mapss was given. if test "${with_mapss+set}" = set; then withval=$with_mapss; ANTLR_DIR=$withval else ANTLR_DIR=$PTII/ptolemy/actor/ptalon/antlr fi if test -f "$ANTLR_DIR/antlr.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $ANTLR_DIR" >&5 echo "${ECHO_T}$ANTLR_DIR" >&6; }; fi PTPTALON_DIR=ptalon # PTALON_PACKAGES is used in $PTII/doc/makefile PTPTALON_PACKAGES="ptolemy.actor.ptalon ptolemy.actor.ptalon.lib ptolemy.actor.ptalon.gt" else { echo "$as_me:$LINENO: WARNING: Failed to find PTII/ptolemy/actor/ptalon/antlr/antlr.jar If it is not present, you will not be able to use the Ptalon." >&5 echo "$as_me: WARNING: Failed to find PTII/ptolemy/actor/ptalon/antlr/antlr.jar If it is not present, you will not be able to use the Ptalon." >&2;} # Note that we don't substitute in the ${PTII} here PTPTALON_DIR='${PTII}/ptolemy/actor/ptalon/antlr' fi if test ! "$HAS_GENERICS" = "yes"; then { echo "$as_me:$LINENO: WARNING: You are running Java $JVERSION, which does not support generics. Thus, ptolemy/actor/ptalon will not compile." >&5 echo "$as_me: WARNING: You are running Java $JVERSION, which does not support generics. Thus, ptolemy/actor/ptalon will not compile." >&2;} PTPTALON_DIR= PTPTALON_PACKAGES= fi fi if test -z "$PTPTALON_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/ptalon/" else ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi #-------------------------------------------------------------------- # Test for quicktime #-------------------------------------------------------------------- # PTQUICKTIME_DIR is set to quicktime and used in # $PTII/ptolemy/domains/gr/lib/makefile if Quicktime for Java was found PTQUICKTIME_DIR= # Set to the location of the QTJava.zip file QTJAVA_ZIP= # We only need to look for Java3D if the gr domain is present QUICKTIME_USER_DIR="$PTII/ptolemy/domains/gr/lib/quicktime" if test ! -d "$QUICKTIME_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $QUICKTIME_USER_DIR is not present, so we need not find Quicktime for Java." >&5 echo "${ECHO_T}$QUICKTIME_USER_DIR is not present, so we need not find Quicktime for Java." >&6; }; fi else { echo "$as_me:$LINENO: checking for Quicktime for Java" >&5 echo $ECHO_N "checking for Quicktime for Java... $ECHO_C" >&6; } # We need to run javac in the config directory so that javac from jdk1.1.6 # under NT and cygwin works properly startdir=$PTII cd "$srcdir/config" # Don't use 'env $JAVAC . . .' here, it will not work under Cygwin # Use -classpath here because that is what we use when we compile # In javac 1.4.2, -classpath seems to mean we ignore $CLASSPATH if "$JAVAC" -classpath "$PTII" quickTimeTest.java ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi PTQUICKTIME_DIR=quicktime else if test "${MAJOR_OS_NAME:-none}" = "none"; then if "$JAVAC" MajorOSName.java ; then { echo "$as_me:$LINENO: checking the which major type of OS we are running under" >&5 echo $ECHO_N "checking the which major type of OS we are running under... $ECHO_C" >&6; } # Older versions of cygwin might not have env, but 1.1 does if env CLASSPATH="$PTII/config" "$JAVA" MajorOSName > /dev/null; then # Run it again and get the results MAJOR_OS_NAME=`CLASSPATH="$PTII/config" "$JAVA" MajorOSName` if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $MAJOR_OS_NAME" >&5 echo "${ECHO_T}$MAJOR_OS_NAME" >&6; }; fi else { echo "$as_me:$LINENO: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVA MajorOSName' failed. This means we cannot look for the Quicktime zip file in the likely places" >&5 echo "$as_me: WARNING: 'CLASSPATH=\"$PTII/config\" $JAVA MajorOSName' failed. This means we cannot look for the Quicktime zip file in the likely places" >&2;}; fi fi fi if test "${MAJOR_OS_NAME:-none}" = "Windows"; then SAFE_PROGRAMFILES=`echo $PROGRAMFILES | sed -e 's@\\\@/@g'` { echo "$as_me:$LINENO: WARNING: '\"$JAVAC\" quickTime3dTest.java' failed, looking for QTJava.zip in $SAFE_PROGRAMFILES/java/*/lib/ext/QTJava.zip'" >&5 echo "$as_me: WARNING: '\"$JAVAC\" quickTime3dTest.java' failed, looking for QTJava.zip in $SAFE_PROGRAMFILES/java/*/lib/ext/QTJava.zip'" >&2;} # Under Windows try to find the jar file #c:/Program Files/Java/j2re1.4.1_02/lib/ext/QTJava.zip QTJAVA_ZIP=`cd "$SAFE_PROGRAMFILES"; ls -tr java/*/lib/ext/QTJava.zip | head -1` if test -z "$QTJAVA_ZIP" ; then { echo "$as_me:$LINENO: WARNING: 'Did not find \"$SAFE_PROGRAMFILES/java/*/lib/ext/QTJava.zip\"'" >&5 echo "$as_me: WARNING: 'Did not find \"$SAFE_PROGRAMFILES/java/*/lib/ext/QTJava.zip\"'" >&2;} else QTJAVA_ZIP="$SAFE_PROGRAMFILES/$QTJAVA_ZIP" if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok, found '$QTJAVA_ZIP'" >&5 echo "${ECHO_T} ok, found '$QTJAVA_ZIP'" >&6; }; fi { echo "$as_me:$LINENO: checking again for Quicktime for Java" >&5 echo $ECHO_N "checking again for Quicktime for Java... $ECHO_C" >&6; } if "$JAVAC" -classpath "$QTJAVA_ZIP" quickTimeTest.java ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi PTQUICKTIME_DIR=quicktime # PTQUICKTIME_PACKAGES is used in ptII/doc/makefile PTQUICKTIME_PACKAGES=ptolemy.domains.gr.lib.quicktime fi fi fi if test -z "$PTQUICKTIME_DIR" ; then { echo "$as_me:$LINENO: WARNING: '\"$JAVAC\" quickTime3dTest.java' failed. You may need to install QuickTime with the 'QuickTime For Java' option from http://developer.apple.com/quicktime/qtjava/ During installation, choose 'custom' and then 'select all'. This drops QTJava.zip into the lib/ext of all your installed JREs. Then you have to copy this zip file to the jre/lib/ext directory of your SDK and rerun configure. If configure still fails, you may need to unzip the QTJava.zip file and create a QTJava.jar file: # unzip QTJava.zip cd QTJava jar -cf ../QTJava.jar . QuickTime for Java is only needed if you want to build in $QUICKTIME_USER_DIR, otherwise the build will proceed fine without Quicktime for Java." >&5 echo "$as_me: WARNING: '\"$JAVAC\" quickTime3dTest.java' failed. You may need to install QuickTime with the 'QuickTime For Java' option from http://developer.apple.com/quicktime/qtjava/ During installation, choose 'custom' and then 'select all'. This drops QTJava.zip into the lib/ext of all your installed JREs. Then you have to copy this zip file to the jre/lib/ext directory of your SDK and rerun configure. If configure still fails, you may need to unzip the QTJava.zip file and create a QTJava.jar file: # unzip QTJava.zip cd QTJava jar -cf ../QTJava.jar . QuickTime for Java is only needed if you want to build in $QUICKTIME_USER_DIR, otherwise the build will proceed fine without Quicktime for Java." >&2;} fi fi cd "$startdir" fi if test -z "$PTQUICKTIME_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/domains/gr/lib/quicktime/" else if test ! -z "$QTJAVA_ZIP"; then ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi fi #-------------------------------------------------------------------- # Soot is a Java Optimization Framework, see # http://www.sable.mcgill.ca/soot/ # See if there was a command-line option for where Soot is # If not, look in $PTII/vendors/sun/soot #-------------------------------------------------------------------- # PTCOPERNICUS_DIR is set to copernicus and used in # $PTII/ptolemy/makefile if soot was found PTCOPERNICUS_DIR= # Directory that contains the soot jar files SOOT_DIR='${PTII}/lib' # Soot needs to find java.lang.Object # Use {} here instead of () because bin/ptinvoke uses JAVA_SYSTEM_JAR # and under /bin/sh $(FOO) does not work, but ${FOO} does JAVA_SYSTEM_JAR='${PTJAVA_HOME}/lib/rt.jar' # Java 1.5 has javax.crypto.Cipher in jce.jar JAVAX_CRYPTO_JAR='${PTJAVA_HOME}/lib/jce.jar' # We don't bother overriding this below so that something close # to the right default is in ptII.mk and the user can just change # SOOT_DIR or JAVA_SYSTEM_JAR # Use {} here instead of () because bin/ptinvoke uses SOOT_CLASSES SOOT_CLASSES='${SOOT_DIR}/sootclasses.jar${CLASSPATHSEPARATOR}${SOOT_DIR}/jasminclasses.jar${CLASSPATHSEPARATOR}${SOOT_DIR}/polyglotclasses-1.3.2.jar${CLASSPATHSEPARATOR}${JAVA_SYSTEM_JAR}${CLASSPATHSEPARATOR}${JAVAX_CRYPTO_JAR}' # We only need to look for soot if $PTII/ptolemy/copernicus exists if test ! -d "$PTII/ptolemy/copernicus"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $PTII/ptolemy/copernicus is not present, so we need not find the Soot - a Java Optimization Framework." >&5 echo "${ECHO_T}$PTII/ptolemy/copernicus is not present, so we need not find the Soot - a Java Optimization Framework." >&6; }; fi SOOT_DIR='${PTII}/lib' else { echo "$as_me:$LINENO: checking for soot directory" >&5 echo $ECHO_N "checking for soot directory... $ECHO_C" >&6; } # Check whether --with-soot was given. if test "${with_soot+set}" = set; then withval=$with_soot; SOOT_DIR=$withval else SOOT_DIR=$PTII/lib fi if test -d "$SOOT_DIR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $SOOT_DIR" >&5 echo "${ECHO_T}$SOOT_DIR" >&6; }; fi { echo "$as_me:$LINENO: checking for \$SOOT_DIR/sootclasses.jar" >&5 echo $ECHO_N "checking for \$SOOT_DIR/sootclasses.jar... $ECHO_C" >&6; } if test -f "$SOOT_DIR/sootclasses.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi { echo "$as_me:$LINENO: checking for \$SOOT_DIR/jasminclasses.jar" >&5 echo $ECHO_N "checking for \$SOOT_DIR/jasminclasses.jar... $ECHO_C" >&6; } if test -f "$SOOT_DIR/jasminclasses.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi fi { echo "$as_me:$LINENO: checking for \$SOOT_DIR/polyglotclasses-1.3.2.jar" >&5 echo $ECHO_N "checking for \$SOOT_DIR/polyglotclasses-1.3.2.jar... $ECHO_C" >&6; } if test -f "$SOOT_DIR/polyglotclasses-1.3.2.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi fi if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $SOOT_CLASSES" >&5 echo "${ECHO_T}$SOOT_CLASSES" >&6; }; fi else SOOT_CLASSES_FOUND=no fi # else # We could look in other places . . . fi if test "$SOOT_CLASSES_FOUND" = "no"; then { echo "$as_me:$LINENO: WARNING: Failed to find soot/sootclasses.jar perhaps Soot is not installed? You need not download Soot unless you plan on using code generation The Soot SDK can be downloaded from http://www.sable.mcgill.ca/soot/" >&5 echo "$as_me: WARNING: Failed to find soot/sootclasses.jar perhaps Soot is not installed? You need not download Soot unless you plan on using code generation The Soot SDK can be downloaded from http://www.sable.mcgill.ca/soot/" >&2;} # Note that we don't substitute in the ${PTII} or $(SOOT_DIR) here SOOT_DIR='${PTII}/lib' else # Set to copernicus and used in # $PTII/ptolemy/makefile if soot was found PTCOPERNICUS_DIR=copernicus fi { echo "$as_me:$LINENO: checking for rt.jar by compiling config/SystemJar.java" >&5 echo $ECHO_N "checking for rt.jar by compiling config/SystemJar.java... $ECHO_C" >&6; } # Check whether --with-javasystemjar was given. if test "${with_javasystemjar+set}" = set; then withval=$with_javasystemjar; JAVA_SYSTEM_JAR=$withval else JAVA_SYSTEM_JAR='$(PTJAVA_HOME)/lib/rt.jar' fi startdir=$PTII cd "$srcdir/config" if "$JAVAC" SystemJar.java ; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi { echo "$as_me:$LINENO: checking the location or rt.jar" >&5 echo $ECHO_N "checking the location or rt.jar... $ECHO_C" >&6; } if env CLASSPATH="$PTII/config" "$JAVA" SystemJar > /dev/null; then # Run it again and get the results JAVA_SYSTEM_JAR=`CLASSPATH="$PTII/config" "$JAVA" SystemJar` if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: '$JAVA_SYSTEM_JAR'" >&5 echo "${ECHO_T}'$JAVA_SYSTEM_JAR'" >&6; }; fi else { echo "$as_me:$LINENO: WARNING: 'CLASSPATH=\"$PTII/config\" \"$JAVA\" SystemJar failed. Classes that use Soot will compile, but will fail to run.'" >&5 echo "$as_me: WARNING: 'CLASSPATH=\"$PTII/config\" \"$JAVA\" SystemJar failed. Classes that use Soot will compile, but will fail to run.'" >&2;} fi else { echo "$as_me:$LINENO: WARNING: 'cd \"$srcdir/config\"; \"$JAVAC\" SystemJar.java failed. Classes that use Soot will compile, but will fail to run.'" >&5 echo "$as_me: WARNING: 'cd \"$srcdir/config\"; \"$JAVAC\" SystemJar.java failed. Classes that use Soot will compile, but will fail to run.'" >&2;} fi cd "$startdir" fi if test -z "$PTCOPERNICUS_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/copernicus/" else ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ \ \ " # What about JAVA_SYSTEM_JAR? fi #-------------------------------------------------------------------- # Space - domains/space uses ojdbc6.jar #-------------------------------------------------------------------- # PTDATABASE_DIR is set to database and used in # $PTII/ptolemy/actor/lib/makefile if ojdbc6.jar was found. PTDATABASE_DIR= # PTDATABASE_JNLP_JARS is set to the database jars that need to be signed # and used in mk/jnlp.mk PTDATABASE_JNLP_JARS= # PTDATABASE_PACKAGES is used in ptII/doc/makefile PTDATABASE_PACKAGES= # PTSPACE_DIR is set to space and used in # $PTII/ptolemy/domains/makefile if ojdbc6.jar was found. PTSPACE_DIR= # PTSPACEDOMAIN_PACKAGES is used in ptII/doc/makefile PTSPACEDOMAIN_PACKAGES= # MySQL Jar mysql-connector-java-5.1.6-bin.jar MYSQL_JAR= # Oracle Java Database jar (ojdbc5.jar or ojdbc6.jar) ORACLE_OJDBC_JAR= # PTSPACEDOMAIN_JAR is the name of the jar file that includes the space # domain if ojdbc6.jar was found. PTSPACEDOMAIN_JAR used in domains/makefile PTSPACEDOMAIN_JAR= # We only need to look for on if $PTII/ptolemy/domains/space exists SPACE_USER_DIR="$PTII/ptolemy/domains/space" DATABASE_USER_DIR="$PTII/ptolemy/actor/lib/database" if test ! -d "$SPACE_USER_DIR" -a ! -d "$DATABASE_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $SPACE_USER_DIR and $DATABASE_USER_DIR are not present, so we need not find the Mysql jar and Oracle ojdbc6.jar." >&5 echo "${ECHO_T}$SPACE_USER_DIR and $DATABASE_USER_DIR are not present, so we need not find the Mysql jar and Oracle ojdbc6.jar." >&6; }; fi MYSQL_JAR= ORACLE_OJDBC_JAR= else MYSQL_TARGET_JAR=mysql-connector-java-5.1.6-bin.jar { echo "$as_me:$LINENO: checking for mysql jar, used by the database actors" >&5 echo $ECHO_N "checking for mysql jar, used by the database actors... $ECHO_C" >&6; } # Check whether --with-ojdbc6 was given. if test "${with_ojdbc6+set}" = set; then withval=$with_ojdbc6; MYSQL_JAR=$withval else MYSQL_JAR=$PTII/ptolemy/actor/lib/database/$MYSQL_TARGET_JAR fi if test -f "$MYSQL_JAR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $MYSQL_JAR" >&5 echo "${ECHO_T}$MYSQL_JAR" >&6; }; fi fi OJDBC_TARGET_JAR=ojdbc6.jar if test "$JAVA1_6_OR_LATER" != "yes"; then OJDBC_TARGET_JAR=ojdbc5.jar fi { echo "$as_me:$LINENO: checking for ojdbc.jar, used by the database actors" >&5 echo $ECHO_N "checking for ojdbc.jar, used by the database actors... $ECHO_C" >&6; } # Check whether --with-ojdbc was given. if test "${with_ojdbc+set}" = set; then withval=$with_ojdbc; ORACLE_OJDBC_JAR=$withval else ORACLE_OJDBC_JAR=$PTII/ptolemy/actor/lib/database/$OJDBC_TARGET_JAR fi if test -f "$ORACLE_OJDBC_JAR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $ORACLE_OJDBC_JAR" >&5 echo "${ECHO_T}$ORACLE_OJDBC_JAR" >&6; }; fi fi if test -f "$MYSQL_JAR" -o -f "$ORACLE_OJDBC_JAR"; then PTDATABASE_DIR=database PTDATABASE_PACKAGES=ptolemy.actor.lib.database PTSPACE_DIR=space PTSPACEDOMAIN_JAR=space/space.jar PTSPACEDOMAIN_PACKAGES=ptolemy.domains.space # Update PTDATABASE_JNLP_JARS, used to sign jar files in mk/jnlp.mk # The sed commands remove $PTII/ PTDATABASE_JNLP_JARS="ptolemy/actor/lib/database/database.jar ptolemy/domains/space/space.jar" if test -f "$ORACLE_OJDBC_JAR"; then PTDATABASE_JNLP_JARS="$PTDATABASE_JNLP_JARS `echo "$ORACLE_OJDBC_JAR" | sed "s@$PTII/@@"`" fi if test -f "$MYSQL_JAR"; then PTDATABASE_JNLP_JARS="$PTDATABASE_JNLP_JARS `echo "$MYSQL_JAR" | sed "s@$PTII/@@"`" fi else { echo "$as_me:$LINENO: WARNING: Failed to find PTII/actor/lib/database/$MYSQL_TARGET_JAR and/or PTII/actor/lib/database/$OJDBC_TARGET_JAR If neither Java Database Connection jar is present, you will not be able to use the space domain or the database actors." >&5 echo "$as_me: WARNING: Failed to find PTII/actor/lib/database/$MYSQL_TARGET_JAR and/or PTII/actor/lib/database/$OJDBC_TARGET_JAR If neither Java Database Connection jar is present, you will not be able to use the space domain or the database actors." >&2;} ORACLE_OJDBC_JAR= MYSQL_JAR= fi fi if test -z "$MYSQL_JAR" -a -z "$ORACLE_OJDBC_JAR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/database/|ptolemy/domains/space/" else if test -f "$MYSQL_JAR"; then ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi if test -f "$ORACLE_OJDBC_JAR"; then ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi fi #-------------------------------------------------------------------- # PDFRenderer used to display PDF in vergil. # Source may be found at https://pdf-renderer.dev.java.net/ #-------------------------------------------------------------------- # PTPDFRENDERER_DIR is set to pdf and used in # $PTII/ptolemy/vergil/makefile if PDFRenderer is found PTPDFRENDERER_DIR= # Jar file used by ptolemy/vergil/pdfrenderer PTPDFRENDERER_JAR= PDFRENDERER_USER_DIR=$PTII/ptolemy/vergil/pdfrenderer # We only need to look for PDFRender.jar if the directory that uses it exists. if test ! -d "$PDFRENDERER_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $PTII/$PDFRENDERER_USER_DIR is not present, so we need not find PDFRenderer." >&5 echo "${ECHO_T}$PTII/$PDFRENDERER_USER_DIR is not present, so we need not find PDFRenderer." >&6; }; fi else { echo "$as_me:$LINENO: checking for PDFRenderer" >&5 echo $ECHO_N "checking for PDFRenderer... $ECHO_C" >&6; } # Check whether --with-pdfrendererjar was given. if test "${with_pdfrendererjar+set}" = set; then withval=$with_pdfrendererjar; PTPDFRENDERER_JAR=$withval else PTPDFRENDERER_JAR=$PTII/lib/PDFRenderer.jar fi if test -f "$PTPDFRENDERER_JAR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTPDFRENDERER_JAR" >&5 echo "${ECHO_T}$PTPDFRENDERER_JAR" >&6; }; fi PTPDFRENDERER_DIR=pdfrenderer ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi if test "$PTPDFRENDERER_DIR" = ""; then { echo "$as_me:$LINENO: WARNING: Failed to find the PDFRenderer Jar file You need only have PDFRenderer if you want to render PDF files in Vergil. PDFRenderer may be downloaded from https://pdf-renderer.dev.java.net/" >&5 echo "$as_me: WARNING: Failed to find the PDFRenderer Jar file You need only have PDFRenderer if you want to render PDF files in Vergil. PDFRenderer may be downloaded from https://pdf-renderer.dev.java.net/" >&2;} PTPDFRENDERER_JAR= fi fi if test -z "$PTPDFRENDERER_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|$PDFRENDERER_USER_DIR" fi #-------------------------------------------------------------------- # The Batik SVG toolkit is used by Kepler so we include Batik # support in Diva. See # http://xmlgraphics.apache.org/batik/ # See if there was a command-line option for where Batikc # is # If not, look for for $PTII/vendors/eclipse #-------------------------------------------------------------------- # PTSVG_DIR is set to svg and used in # $PTII/diva/util/java2d/makefile if Batik SVG jar files were found PTSVG_DIR= # Jar file used by diva/util/java2d/svg/makefile PTSVG_JAR= # We only need to look for Batik if $PTII/diva/util/java2d/svg exists if test ! -d "$PTII/diva/util/java2d/svg"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $PTII/diva/util/java2d/svg is not present, so we need not find Batik SVG." >&5 echo "${ECHO_T}$PTII/diva/util/java2d/svg is not present, so we need not find Batik SVG." >&6; }; fi else { echo "$as_me:$LINENO: checking for Batik SVG" >&5 echo $ECHO_N "checking for Batik SVG... $ECHO_C" >&6; } # Check whether --with-batikjar was given. if test "${with_batikjar+set}" = set; then withval=$with_batikjar; PTSVG_JAR=$withval else PTSVG_JAR=$KEPLER/lib/jar/batik-all-1.6.jar fi if test -f "$PTSVG_JAR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTSVG_JAR" >&5 echo "${ECHO_T}$PTSVG_JAR" >&6; }; fi PTSVG_DIR=svg ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi if test "$PTSVG_DIR" = ""; then { echo "$as_me:$LINENO: WARNING: Failed to find Batik Jar file You need only have Batik if you are planning on rebuilding diva.jar for use with Kepler. Batik can be downloaded from http://xmlgraphics.apache.org/batik/" >&5 echo "$as_me: WARNING: Failed to find Batik Jar file You need only have Batik if you are planning on rebuilding diva.jar for use with Kepler. Batik can be downloaded from http://xmlgraphics.apache.org/batik/" >&2;} PTSVG_JAR= fi fi if test -z "$PTSVG_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|diva/util/java2d/svg/" fi #-------------------------------------------------------------------- # TINI is the JDK for Dallas Tini board, see # www.ibutton.com # See if there was a command-line option for where # tinisk is; if not, # check to see if $PTII/vendors/dalsemi/tini/bin/tiniclasses.jar exists #-------------------------------------------------------------------- # PTTINI_DIR is set to tini and used in # $PTII/ptolemy/apps/makefile if tini was found PTTINI_DIR= # # We only need to look for tini if $PTII/ptolemy/apps/tini exists if test ! -d "$PTII/ptolemy/apps/tini"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $PTII/ptolemy/apps/tini is not present, so we need not find the Dallas Semiconductor tini." >&5 echo "${ECHO_T}$PTII/ptolemy/apps/tini is not present, so we need not find the Dallas Semiconductor tini." >&6; }; fi TINI_DIR='${PTII}/vendors/dalsemi/tini' TINI_CLASSES='${TINI_DIR}/bin/tini.jar' else { echo "$as_me:$LINENO: checking for tini directory" >&5 echo $ECHO_N "checking for tini directory... $ECHO_C" >&6; } # Check whether --with-tini was given. if test "${with_tini+set}" = set; then withval=$with_tini; TINI_DIR=$withval else TINI_DIR=$PTII/vendors/dalsemi/tini fi if test -d "$TINI_DIR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $TINI_DIR" >&5 echo "${ECHO_T}$TINI_DIR" >&6; }; fi { echo "$as_me:$LINENO: checking for \$TINI_DIR/bin/tini.jar" >&5 echo $ECHO_N "checking for \$TINI_DIR/bin/tini.jar... $ECHO_C" >&6; } if test -f "$TINI_DIR/bin/tini.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $TINI_DIR/bin/tini.jar" >&5 echo "${ECHO_T}$TINI_DIR/bin/tini.jar" >&6; }; fi TINI_CLASSES='${TINI_DIR}/bin/tini.jar' else TINI_CLASSES=no fi if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $TINI_CLASSES" >&5 echo "${ECHO_T}$TINI_CLASSES" >&6; }; fi fi if test "$TINI_CLASSES" = "no"; then { echo "$as_me:$LINENO: WARNING: Failed to find tini/bin/tiniclasses.jar perhaps Tini is not installed? You need not download Tini unless you plan on building applications for the Dallas Semiconductor Tini board. The Tini SDK can be downloaded from http://www.ibutton.com" >&5 echo "$as_me: WARNING: Failed to find tini/bin/tiniclasses.jar perhaps Tini is not installed? You need not download Tini unless you plan on building applications for the Dallas Semiconductor Tini board. The Tini SDK can be downloaded from http://www.ibutton.com" >&2;} # Note that we don't substitute in the ${PTII} or $(TINI_DIR) here TINI_DIR='${PTII}/vendors/dalsemi/tini' TINI_CLASSES='${TINI_DIR}/bin/tini.jar' else # Set to tini and used in # $PTII/ptolemy/apps/makefile if tini was found PTTINI_DIR=tini fi fi #-------------------------------------------------------------------- # TinyOS #-------------------------------------------------------------------- # PTTINYOS_DIR is set to ptinyos and used in # $PTII/ptolemy/domains/makefile if TinyOS is found PTTINYOS_DIR= # The problem is that the nesc/configure script does not understand # "c:/" style syntax, it works with "/cygdrive/c/", yet Java # does not understand /cygdrive/c syntax, so we hack PTINYOS_DIR=$PTII/ptolemy/domains/ptinyos if test ! -d "$PTINYOS_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $PTINYOS_DIR is not present so we need not set up for TinyOS." >&5 echo "${ECHO_T}$PTINYOS_DIR is not present so we need not set up for TinyOS." >&6; }; fi # Nothing to exclude # ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/domains/nc/" else { echo "$as_me:$LINENO: checking the for TinyOS" >&5 echo $ECHO_N "checking the for TinyOS... $ECHO_C" >&6; } if test -z "$TOSROOT"; then { echo "$as_me:$LINENO: WARNING: \$TOSROOT is not set. It must be set to use PtinyOS." >&5 echo "$as_me: WARNING: \$TOSROOT is not set. It must be set to use PtinyOS." >&2;} fi if test ! -d "$TOSROOT"; then { echo "$as_me:$LINENO: WARNING: \$TOSROOT is set to '$TOSROOT', but there is no directory by that name, so we will not set up for PtinyOS. For details, see $PTII/ptolemy/domains/ptinyos/README.txt." >&5 echo "$as_me: WARNING: \$TOSROOT is set to '$TOSROOT', but there is no directory by that name, so we will not set up for PtinyOS. For details, see $PTII/ptolemy/domains/ptinyos/README.txt." >&2;} else if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $TOSROOT" >&5 echo "${ECHO_T}$TOSROOT" >&6; }; fi # Use changequote to protect the square brackets in sed TOSROOT_NO_CYGDRIVE=`echo "$TOSROOT" | sed 's@^/cygdrive/\([a-zA-Z]\)/@\1:/@'` { echo "$as_me:$LINENO: checking for TOSDIR directory" >&5 echo $ECHO_N "checking for TOSDIR directory... $ECHO_C" >&6; } if test ! -d "$TOSDIR"; then { echo "$as_me:$LINENO: WARNING: \$TOSDIR is set to '$TOSDIR', but there is no directory by that name. For details, see $PTII/ptolemy/domains/ptinyos/README.txt." >&5 echo "$as_me: WARNING: \$TOSDIR is set to '$TOSDIR', but there is no directory by that name. For details, see $PTII/ptolemy/domains/ptinyos/README.txt." >&2;} else if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $TOSDIR" >&5 echo "${ECHO_T}$TOSDIR" >&6; }; fi # Use changequote to protect the square brackets in sed TOSDIR_NO_CYGDRIVE=`echo "$TOSDIR" | sed 's@^/cygdrive/\([a-zA-Z]\)/@\1:/@'` fi { echo "$as_me:$LINENO: checking for PTINYOS_MOMLROOT" >&5 echo $ECHO_N "checking for PTINYOS_MOMLROOT... $ECHO_C" >&6; } if test -z "$PTINYOS_MOMLROOT"; then { echo "$as_me:$LINENO: WARNING: \$PTINYOS_MOMLROOT is not set. For details, see $PTII/ptolemy/domains/ptinyos/README.txt." >&5 echo "$as_me: WARNING: \$PTINYOS_MOMLROOT is not set. For details, see $PTII/ptolemy/domains/ptinyos/README.txt." >&2;} else if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; fi if test ! -d "$PTINYOS_MOMLROOT"; then # Try to make the directory mkdir -p "$PTINYOS_MOMLROOT" fi { echo "$as_me:$LINENO: checking for PTINYOS_MOMLROOT directory" >&5 echo $ECHO_N "checking for PTINYOS_MOMLROOT directory... $ECHO_C" >&6; } if test ! -d "$PTINYOS_MOMLROOT"; then { echo "$as_me:$LINENO: WARNING: \$PTINYOS_MOMLROOT is set to '$PTINYOS_MOMLROOT', but there is no directory by that name. For details, see $PTII/ptolemy/domains/ptinyos/README.txt." >&5 echo "$as_me: WARNING: \$PTINYOS_MOMLROOT is set to '$PTINYOS_MOMLROOT', but there is no directory by that name. For details, see $PTII/ptolemy/domains/ptinyos/README.txt." >&2;} else PTINYOS_MOMLROOT_NO_CYGDRIVE=`echo "$PTINYOS_MOMLROOT" | sed 's@^/cygdrive/\(a-zA-Z\)/@\1:/@'` if test -d "$PTINYOS_MOMLROOT_NO_CYGDRIVE"; then # If MOMLROOT is under $PTII, then add it to the classpat echo "$PTINYOS_MOMLROOT_NO_CYGDRIVE" | grep "$PTII" > /dev/null retval=$? if test "$retval" = "0"; then SHORT_PTINYOS_MOMLROOT_NO_CYGDRIVE=`echo "$PTINYOS_MOMLROOT_NO_CYGDRIVE" | sed "s@$PTII/@@"` ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " else { echo "$as_me:$LINENO: WARNING: \$PTINYOS_MOMLROOT ($PTINYOS_MOMLROOT) is not under \$PTII ($PTII) so we are not appending \$PTINYOS_MOMLROOT to the Eclipse classpath. This is only a problem for Viptos users, who will not be able to view .nc files when running under Eclipse." >&5 echo "$as_me: WARNING: \$PTINYOS_MOMLROOT ($PTINYOS_MOMLROOT) is not under \$PTII ($PTII) so we are not appending \$PTINYOS_MOMLROOT to the Eclipse classpath. This is only a problem for Viptos users, who will not be able to view .nc files when running under Eclipse." >&2;} fi else { echo "$as_me:$LINENO: WARNING: \$PTINYOS_MOMLROOT_NO_CYGDRIVE does not exist" >&5 echo "$as_me: WARNING: \$PTINYOS_MOMLROOT_NO_CYGDRIVE does not exist" >&2;} fi if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTINYOS_MOMLROOT" >&5 echo "${ECHO_T}$PTINYOS_MOMLROOT" >&6; }; fi fi fi # The jars to the classpath ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ \ " # If TOSROOT is under $PTII, then add it to the classpat echo "$TOSROOT_NO_CYGDRIVE" | grep "$PTII" > /dev/null retval=$? if test "$retval" = "0"; then SHORT_TOSROOT_NO_CYGDRIVE=`echo "$TOSROOT_NO_CYGDRIVE" | sed "s@$PTII/@@"` ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " else { echo "$as_me:$LINENO: WARNING: \$TOSROOT ($TOSROOT)is not under \$PTII ($PTII) so we are not appending \$TOSROOT to the Eclipse classpath. This is only a problem for Viptos users, who will not be able to view .nc files when running under Eclipse." >&5 echo "$as_me: WARNING: \$TOSROOT ($TOSROOT)is not under \$PTII ($PTII) so we are not appending \$TOSROOT to the Eclipse classpath. This is only a problem for Viptos users, who will not be able to view .nc files when running under Eclipse." >&2;} fi fi fi if test ! -d "$TOSROOT"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/domains/ptinyos/" else PTTINYOS_DIR=ptinyos fi #-------------------------------------------------------------------- # GiottoSDK is an embedded implementation of the Giotto language # www.eecs.berkeley.edu/~fresco/giotto # # check to see if $PTII/vendors/giotto/giotto.jar exists #-------------------------------------------------------------------- # PTGIOTTO_DIR is set to Giotto and used in # $PTII/ptolemy/apps/makefile if giotto was found PTGIOTTO_DIR= # if test ! -d "$PTII/ptolemy/domains/giotto"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $PTII/ptolemy/domains/giotto is not present, so we need not find the Giotto SDK." >&5 echo "${ECHO_T}$PTII/ptolemy/domains/giotto is not present, so we need not find the Giotto SDK." >&6; }; fi GIOTTO_DIR='${PTII}/vendors/giotto' GIOTTO_CLASSES='${GIOTTO_DIR}/gdk.jar' else { echo "$as_me:$LINENO: checking for giotto directory" >&5 echo $ECHO_N "checking for giotto directory... $ECHO_C" >&6; } # Check whether --with-giotto was given. if test "${with_giotto+set}" = set; then withval=$with_giotto; GIOTTO_DIR=$withval else GIOTTO_DIR=$PTII/vendors/giotto fi GIOTTO_CLASSES=no if test -d "$GIOTTO_DIR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $GIOTTO_DIR" >&5 echo "${ECHO_T}$GIOTTO_DIR" >&6; }; fi { echo "$as_me:$LINENO: checking for \$GIOTTO_DIR/gdk.jar" >&5 echo $ECHO_N "checking for \$GIOTTO_DIR/gdk.jar... $ECHO_C" >&6; } if test -f "$GIOTTO_DIR/gdk.jar"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $GIOTTO_DIR/gdk.jar" >&5 echo "${ECHO_T}$GIOTTO_DIR/gdk.jar" >&6; }; fi GIOTTO_CLASSES='${GIOTTO_DIR}/gdk.jar' else GIOTTO_CLASSES=no fi if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $GIOTTO_CLASSES" >&5 echo "${ECHO_T}$GIOTTO_CLASSES" >&6; }; fi fi if test "$GIOTTO_CLASSES" = "no"; then { echo "$as_me:$LINENO: WARNING: Failed to find giotto/gdk.jar perhaps Giotto is not installed? You need not download Giotto unless you plan on generating code for Giotto models. The Giotto SDK can be downloaded from http://www-cad.eecs.berkeley.edu/~giotto/ Copy gdk.jar to $PTII/vendors/giotto, for example: mkdir -p $PTII/vendors/giotto cp C:/Program\ Files/Giotto*/gdk.jar $PTII/vendors/giotto/" >&5 echo "$as_me: WARNING: Failed to find giotto/gdk.jar perhaps Giotto is not installed? You need not download Giotto unless you plan on generating code for Giotto models. The Giotto SDK can be downloaded from http://www-cad.eecs.berkeley.edu/~giotto/ Copy gdk.jar to $PTII/vendors/giotto, for example: mkdir -p $PTII/vendors/giotto cp C:/Program\ Files/Giotto*/gdk.jar $PTII/vendors/giotto/" >&2;} # Note that we don't substitute in the ${PTII} or $(GIOTTO_DIR) here GIOTTO_DIR='${PTII}/vendors/giotto' GIOTTO_CLASSES='${GIOTTO_DIR}/gdk.jar' else # Set to giotto and used in # $PTII/ptolemy/copernicus/java/ if giotto was found PTGIOTTO_DIR=giotto fi fi #-------------------------------------------------------------------- # WABA is the JDK for PalmOS # See if there was a command-line option for where # wabask is; if not, # check to see if $PTII/vendors/misc/waba/wabasdk exists #-------------------------------------------------------------------- # PTWABA_DIR is set to waba and used in # $PTII/ptolemy/makefile if waba was found PTWABA_DIR= # # We only need to look for waba if $PTII/ptolemy/apps/kvm exists if test ! -d "$PTII/ptolemy/apps/kvm"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $PTII/ptolemy/apps/kvm is not present, so we need not find the PalmOS waba." >&5 echo "${ECHO_T}$PTII/ptolemy/apps/kvm is not present, so we need not find the PalmOS waba." >&6; }; fi WABA_DIR='${PTII}/vendors/misc/waba/wabasdk' # Unfortunately, j2me_cldc does not ship with a jar of zip file # It needs to be built WABA_CLASSES='$(WABA_DIR)/classes' else { echo "$as_me:$LINENO: checking for waba directory" >&5 echo $ECHO_N "checking for waba directory... $ECHO_C" >&6; } # Check whether --with-waba was given. if test "${with_waba+set}" = set; then withval=$with_waba; WABA_DIR=$withval else WABA_DIR=$PTII/vendors/misc/waba/wabasdk fi if test -d "$WABA_DIR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $WABA_DIR" >&5 echo "${ECHO_T}$WABA_DIR" >&6; }; fi { echo "$as_me:$LINENO: checking for \$WABA_DIR/classes" >&5 echo $ECHO_N "checking for \$WABA_DIR/classes... $ECHO_C" >&6; } if test -d "$WABA_DIR/classes"; then WABA_CLASSES='$(WABA_DIR)/classes' if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $WABA_CLASSES" >&5 echo "${ECHO_T}$WABA_CLASSES" >&6; }; fi else WABA_CLASSES=no fi else if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: Not found in $WABA_DIR" >&5 echo "${ECHO_T}Not found in $WABA_DIR" >&6; }; fi { echo "$as_me:$LINENO: checking for waba directory in /waba" >&5 echo $ECHO_N "checking for waba directory in /waba... $ECHO_C" >&6; } # Likely place for waba under windows WABA_DIR=/waba/wabasdk if test -d "$WABA_DIR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $WABA_DIR" >&5 echo "${ECHO_T}$WABA_DIR" >&6; }; fi { echo "$as_me:$LINENO: checking for \$WABA_DIR/classes" >&5 echo $ECHO_N "checking for \$WABA_DIR/classes... $ECHO_C" >&6; } if test -d "$WABA_DIR/classes"; then WABA_CLASSES='$(WABA_DIR)/classes' if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $WABA_CLASSES" >&5 echo "${ECHO_T}$WABA_CLASSES" >&6; }; fi else WABA_CLASSES=no fi else WABA_CLASSES=no fi fi if test "$WABA_CLASSES" = "no"; then { echo "$as_me:$LINENO: WARNING: Failed to find waba/wabasdk perhaps Waba is not installed? You need not download Waba unless you plan on building applications for the Palm Pilot or Handspring Visor. Waba can be downloaded from http://www.wabasoft.com" >&5 echo "$as_me: WARNING: Failed to find waba/wabasdk perhaps Waba is not installed? You need not download Waba unless you plan on building applications for the Palm Pilot or Handspring Visor. Waba can be downloaded from http://www.wabasoft.com" >&2;} # Note that we don't substitute in the ${PTII} or $(WABA_DIR) here WABA_DIR='${PTII}/vendors/misc/waba/wabasdk' WABA_CLASSES='$(WABA_DIR)/classes' else # Set to waba and used in # $PTII/ptolemy/makefile if waba was found PTWABA_DIR=waba fi fi #-------------------------------------------------------------------- # X10 is the interface library for power line communication, see # http://x10.homelinux.org/download.html # See if there was a command-line option for where # the X10 sdk is; if not, # check to see if $PTII/vendors/misc/x10 exists #-------------------------------------------------------------------- # PTX10_DIR is set to x10 and used in # $PTII/ptolemy/actor/lib/x10/makefile if x10 was found PTX10_DIR= # Set to the location of the X10 classes X10_CLASSES= # We only need to look for x10 if $PTII/ptolemy/actor/lib/x10 exists X10_USER_DIR="$PTII/ptolemy/actor/lib/x10" if test ! -d "$X10_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $X10_USER_DIR is not present, so we need not find the X10 SDK. X10 is the power line comm interface." >&5 echo "${ECHO_T}$X10_USER_DIR is not present, so we need not find the X10 SDK. X10 is the power line comm interface." >&6; }; fi else if test "$RXTX_PRESENT" = "no"; then { echo "$as_me:$LINENO: WARNING: The Java Serial Port Communications API is not installed. The X10 Interface requires rxtx to interface to the serial port The rxtx package can be found at http://rxtx.qbang.org/wiki/index.php/Download and placed in \$PTII/vendors/misc/rxtx so that \$PTII/vendors/misc/rxtx/RXTXComm.jar exists." >&5 echo "$as_me: WARNING: The Java Serial Port Communications API is not installed. The X10 Interface requires rxtx to interface to the serial port The rxtx package can be found at http://rxtx.qbang.org/wiki/index.php/Download and placed in \$PTII/vendors/misc/rxtx so that \$PTII/vendors/misc/rxtx/RXTXComm.jar exists." >&2;} else { echo "$as_me:$LINENO: checking for X10 directory" >&5 echo $ECHO_N "checking for X10 directory... $ECHO_C" >&6; } # Check whether --with-x10 was given. if test "${with_x10+set}" = set; then withval=$with_x10; X10_DIR=$withval else X10_DIR=$PTII/vendors/misc/x10 fi if test -d "$X10_DIR"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $X10_DIR" >&5 echo "${ECHO_T}$X10_DIR" >&6; }; fi { echo "$as_me:$LINENO: checking for \$X10_DIR/tjx10p-13/lib/x10.jar" >&5 echo $ECHO_N "checking for \$X10_DIR/tjx10p-13/lib/x10.jar... $ECHO_C" >&6; } if test -f "$X10_DIR/tjx10p-13/lib/x10.jar"; then X10_CLASSES=${X10_DIR}/tjx10p-13/lib/x10.jar if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $X10_CLASSES" >&5 echo "${ECHO_T}$X10_CLASSES" >&6; }; fi PTX10_DIR=x10 # PTX10_PACKAGES is used in ptII/doc/makefile PTX10_PACKAGES=ptolemy.actor.lib.x10 else { echo "$as_me:$LINENO: WARNING: not found, keeping looking" >&5 echo "$as_me: WARNING: not found, keeping looking" >&2;} { echo "$as_me:$LINENO: checking for \$X10_DIR/tjx10p-12/lib/x10.jar" >&5 echo $ECHO_N "checking for \$X10_DIR/tjx10p-12/lib/x10.jar... $ECHO_C" >&6; } if test -f "$X10_DIR/tjx10p-12/lib/x10.jar"; then X10_CLASSES=${X10_DIR}/tjx10p-12/lib/x10.jar if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $X10_CLASSES" >&5 echo "${ECHO_T}$X10_CLASSES" >&6; }; fi PTX10_DIR=x10 # PTX10_PACKAGES is used in ptII/doc/makefile PTX10_PACKAGES=ptolemy.actor.lib.x10 else { echo "$as_me:$LINENO: WARNING: not found, keeping looking" >&5 echo "$as_me: WARNING: not found, keeping looking" >&2;} { echo "$as_me:$LINENO: checking for \$X10_DIR/tjx10p-11/lib/x10.jar" >&5 echo $ECHO_N "checking for \$X10_DIR/tjx10p-11/lib/x10.jar... $ECHO_C" >&6; } if test -f "$X10_DIR/tjx10p-11/lib/x10.jar"; then X10_CLASSES=${X10_DIR}/tjx10p-11/lib/x10.jar if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $X10_CLASSES" >&5 echo "${ECHO_T}$X10_CLASSES" >&6; }; fi PTX10_DIR=x10 else { echo "$as_me:$LINENO: WARNING: not found" >&5 echo "$as_me: WARNING: not found" >&2;} # PTX10_PACKAGES is used in ptII/doc/makefile PTX10_PACKAGES= X10_CLASSES= fi fi fi fi if test -z "$PTX10_DIR"; then { echo "$as_me:$LINENO: WARNING: Failed to find tjx10p-13/lib/x10.jar tjx10p-12/lib/x10.jar or tjx10p-11/lib/x10.jar. Perhaps X10 is not installed? You need not download X10 unless you plan on building applications using the X10 interface. The X10 SDK can be downloaded from http://x10.homelinux.org. See also $PTII/vendors/misc/x10/README.txt" >&5 echo "$as_me: WARNING: Failed to find tjx10p-13/lib/x10.jar tjx10p-12/lib/x10.jar or tjx10p-11/lib/x10.jar. Perhaps X10 is not installed? You need not download X10 unless you plan on building applications using the X10 interface. The X10 SDK can be downloaded from http://x10.homelinux.org. See also $PTII/vendors/misc/x10/README.txt" >&2;} # Note that we don't substitute in the ${PTII} or $(X10_DIR) here X10_DIR='${PTII}/vendors/misc/x10' X10_CLASSES='${X10_DIR}/tjx10p-13/lib/x10.jar' else # Set to x10 and used in # $PTII/ptolemy/actor/lib/x10/makefile if x10 was found PTX10_DIR=x10 fi fi fi if test -z "$PTX10_DIR"; then ECLIPSE_EXCLUDING_SRC="$ECLIPSE_EXCLUDING_SRC|ptolemy/actor/lib/x10/|ptolemy/actor/lib/x10/" else ECLIPSE_CLASSPATHENTRY_LIBS="$ECLIPSE_CLASSPATHENTRY_LIBS \ " fi #-------------------------------------------------------------------- # libexpat is used by the lbnl simulation interface in ptII/lbnl #-------------------------------------------------------------------- # The include and lib dirs for libexpat LIBEXPAT_INCLUDE_DIR= LIBEXPAT_LIB_DIR= # PTLIBEXPAT_DIR is set util if LIBEXPAT_INCLUDE_DIR and LIBEXPAT_LIB_DIR are set PTLIBEXPAT_DIR= # PTLBNL_DIR is set to lbnl if LIBEXPAT_INCLUDE_DIR and LIBEXPAT_LIB_DIR are set PTLBNL_DIR= LIBEXPAT_USER_DIR=$PTII/lbnl/lib/util if test ! -d "$LIBEXPAT_USER_DIR"; then if test "${PTVERBOSE:-none}" != "none"; then { echo "$as_me:$LINENO: result: $LIBEXPAT_USER_DIR is not present, so we need not find libexpat." >&5 echo "${ECHO_T}$LIBEXPAT_USER_DIR is not present, so we need not find libexpat." >&6; }; fi else # Cygwin gcc can be used to compile files that do not link # with Java, so we don't need mingw here # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTCC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTCC in [\\/]* | ?:[\\/]*) ac_cv_path_PTCC="$PTCC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTCC="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTCC=$ac_cv_path_PTCC if test -n "$PTCC"; then { echo "$as_me:$LINENO: result: $PTCC" >&5 echo "${ECHO_T}$PTCC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${PTCC:-none}" = "none"; then { echo "$as_me:$LINENO: WARNING: Failed to find gcc" >&5 echo "$as_me: WARNING: Failed to find gcc" >&2;} # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PTCC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PTCC in [\\/]* | ?:[\\/]*) ac_cv_path_PTCC="$PTCC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PTCC="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PTCC=$ac_cv_path_PTCC if test -n "$PTCC"; then { echo "$as_me:$LINENO: result: $PTCC" >&5 echo "${ECHO_T}$PTCC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "${PTCC:-none}" != "none"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $PTCC" >&5 echo "${ECHO_T}$PTCC" >&6; }; fi else { echo "$as_me:$LINENO: WARNING: Failed to find gcc or cc, so we will not be able use LIBEXPAT in $LIBEXPAT_USER_DIR" >&5 echo "$as_me: WARNING: Failed to find gcc or cc, so we will not be able use LIBEXPAT in $LIBEXPAT_USER_DIR" >&2;}; fi fi if test "${PTCC:-none}" != "none"; then { echo "$as_me:$LINENO: checking for libexpat" >&5 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6; } # FIXME: This will not work if $PTII has spaces dirs="$PTII/vendors/libexpat /usr/local/lib /usr/lib" for dir in $dirs do if test -f "$dir/libexpat.${PTJNI_SHAREDLIBRARY_SUFFIX}"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $dir/libexpat.${PTJNI_SHAREDLIBRARY_SUFFIX}" >&5 echo "${ECHO_T}$dir/libexpat.${PTJNI_SHAREDLIBRARY_SUFFIX}" >&6; }; fi LIBEXPAT_LIB_DIR=$dir break; else # Mac OS X could have jnilib or dylib, Cygwin has /usr/lib/libexpat.dll.a if test -f "$dir/libexpat.${PTJNI_SHAREDLIBRARY_SUFFIX2}"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $dir/libexpat.${PTJNI_SHAREDLIBRARY_SUFFIX2}" >&5 echo "${ECHO_T}$dir/libexpat.${PTJNI_SHAREDLIBRARY_SUFFIX2}" >&6; }; fi LIBEXPAT_LIB_DIR=$dir break; fi fi done if test ! -d "$LIBEXPAT_LIB_DIR"; then { echo "$as_me:$LINENO: WARNING: Failed to find libexpat.${PTJNI_SHAREDLIBRARY_SUFFIX} The LBNL Simulation facility in \$PTII/lbnl/lib/util requires libexpat. However, Ptolemy will run without this facility." >&5 echo "$as_me: WARNING: Failed to find libexpat.${PTJNI_SHAREDLIBRARY_SUFFIX} The LBNL Simulation facility in \$PTII/lbnl/lib/util requires libexpat. However, Ptolemy will run without this facility." >&2;} fi fi { echo "$as_me:$LINENO: checking for expat.h" >&5 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; } # Check whether --with-expat-include was given. if test "${with_expat_include+set}" = set; then withval=$with_expat_include; LIBEXPAT_INCLUDE_DIR=$withval else LIBEXPAT_INCLUDE_DIR=/usr/include fi if test -f "$LIBEXPAT_INCLUDE_DIR/expat.h"; then if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $LIBEXPAT_INCLUDE_DIR/expat.h" >&5 echo "${ECHO_T}$LIBEXPAT_INCLUDE_DIR/expat.h" >&6; }; fi else # FIXME: This will not work if $PTII has spaces dirs="$PTII/vendors/libexpat /usr/local/include /usr/include" for dir in $dirs do if test -f "$dir/expat.h"; then LIBEXPAT_INCLUDE_DIR=$dir if test "${PTVERBOSE:-none}" = "none"; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; }; else { echo "$as_me:$LINENO: result: $LIBEXPAT_INCLUDE_DIR/expat.h" >&5 echo "${ECHO_T}$LIBEXPAT_INCLUDE_DIR/expat.h" >&6; }; fi fi done if test ! -f "$LIBEXPAT_INCLUDE_DIR/expat.h"; then { echo "$as_me:$LINENO: WARNING: Failed to find expat.h Checked the following directories: $dirs The LBNL Simulation facility in \$PTII/lbnl/lib/util requires libexpat. However, Ptolemy will run without this facility." >&5 echo "$as_me: WARNING: Failed to find expat.h Checked the following directories: $dirs The LBNL Simulation facility in \$PTII/lbnl/lib/util requires libexpat. However, Ptolemy will run without this facility." >&2;} fi fi fi if test -f "$LIBEXPAT_INCLUDE_DIR/expat.h"; then if test -f "$LIBEXPAT_LIB_DIR/libexpat.${PTJNI_SHAREDLIBRARY_SUFFIX}" -o -f "$LIBEXPAT_LIB_DIR/libexpat.${PTJNI_SHAREDLIBRARY_SUFFIX2}" -o -f "$LIBEXPAT_LIB_DIR/libexpat.${PTJNI_SHAREDLIBRARY_SUFFIX}.a"; then # Used in $PTII/lbnl/lib/util/makefile PTLIBEXPAT_DIR=util # Used in $PTII/makefile PTLBNL_DIR=lbnl fi fi # Keep these substitutions alphabetical, with a description # Directory that contains the Caltrop jar file ptCal.jar # used by bin/ptinvoke.in # Directory that contains chic.jar. # Chic is a modular verifier for behavioral compatibility checking of # software and hardware components. # Used in bin/ptinvoke.in # Separator in CLASSPATH, For Unix, this should be :, for Cygwin use ; # Directory that contains colt.jar # Colt is a "Open Source Libraries for High Performance Scientific # and Technical Computing in Java" used in bin/ptinvoke.in # Directory that contains the CaffeineMark Java Benchmark kit # used by C code generation in copernicus/c # Text for .classpath. Under all platforms other than Mac OS X, this will be: # # Under Mac OS X, the plug-ins will not work in the project, see # http://chess.eecs.berkeley.edu/ptexternal/wiki/Main/Mac#EclipseProblems # Location of Eclipse, which is used by ptolemy/backtracking # Location of GNU Awk, used by maven # Directory that contains gc.h, used in copernicus/c # GC_LD_DIRECTIVE is set to the values to pass to cc or ld if # GC_malloc() can be found either in the default compiler location # or in $PTII/lib. # GC_LD_DIRECTIVE is used in ptolemy/copernicus/c/ # Eclipse .classpath excluding src values # of the form "vendors/|ptolemy/matlab/" # Eclipse .classpath lib elements of the format # # ImageJ jar file # Jar files for Java Advanced Imaging (JAI) used by ptolemy/actor/lib/jai/makefile # The jar command # Command to run that indexes a jar file named tmp.jar # Usually it looks like '"$(JAR)" -i $@' # The jarsigner command is used to create signed jar files for Webstart JNLP files # Location of rt.jar, usually $(PTJAVA_HOME)/lib/rt.jar # However, we have to be careful of backslashes and /cygwin # Soot uses this variable to find java.lang.Object # JAVA3D_JARS is the jar files to use with Java 3D. Usually, this is # empty, because most installations have Java 3D in the jdk # jre/lib/ext directory, but some do not. If --with-java3D was used # with configure, then JAVA3D_JARS will be set to include the jars. # javac binary # javacc binary # Directory that contains JavaCC, which is used in ptolemy/data/expr # The JavaCV jar file, used in actor/lib/opencv/javacv for computer vision # The javadoc binary, used to create html documentation of java classes. # The javah binary, used by jni for matlab. # The javaws command is used to test Webstart JNLP files. # Location of jce.jar, usually $(PTJAVA_HOME)/lib/jce.jar # Java 1.5 has javax.crypto.Cipher in jce.jar # However, we have to be careful of backslashes and /cygwin # Soot uses this variable to find java.lang.Object # If we are running under JDK1.4, then set JDOCBREAKITERATOR = -breakiterator # Ptalon uses generics, if we are running JDK1.5, # then JDOCSOURCEFLAGS = -source 1.5 # If we can compile in doc/doclets, we set JDOCTAG appropriately # and use JDOCTAG in doc/makefile # If we can compile in doc/doclets, we set JDOCTAGLET appropriately # and use JDOCTAGLET in doc/makefile # Jini home directory, see http://www.sun.com/jini/ # If Jini is present, the set to yes, otherwise, set to no # Jar file that contains Joystick interface, # see http://sourceforge.net/projects/javajoystick/ # jtclsh script, used for test suites # jtree binary # JDK Version determined by running confTest.class and getting java.version # Jar files for Java Media Framework (JMF) used by ptolemy/actor/lib/makefile # Java Native Access jar file (jna.jar). See # https://jna.dev.java.net/. Used in ptolemy/actor/lib/opencv # jode.jar used in bin/ptinvoke to start up Jode, the .class disassembler # Jython home directory that contains jython.jar, see http://www.jython.org # JXTA home directory that contains jxta.jar, see http://www.jxta.org # keytool command used to generate a certificate for testing actor.lib.security actors # The Kieler jar file, used to layout models # kvm/tools/classes.jar file used by the PalmOS KVM # Directory that contains the kvm used by PalmOS # Set to the location of the lejos installation, usually in # $PTII/vendors/lejos # Set to the directory that contains expat.h and used in $PTII/lbnl/lib/util # Set to the directory that contains libexpat.{so,jnilib,dll} and used in $PTII/lbnl/lib/util # The major type of OS we are running under. # Under all forms Windows, this should be Windows; ynder Linux: Linux, etc. # Used in ptolemy/matlab/makefile # Set to the location of the matlab installation, e.g. /matlabr11 # This directory usually contains bin,... # Set the location of Matlab's engine libraries # Set the location of Matlab's engine libraries (64bit) # Mysql Java Database jar (mysql-connector-java-5.1.6-bin.jar), # used by domains/space and actor/lib/database # Jar file for Open Computer Vision (OpenCV) # Oracle Java Database jar (ojdbc6.jar), used by domains/space # and actor/lib/database # Set to $PTII/lib if $PTII/lib/mapss.jar was found and used # in $PTII/bin/ptinvoke.in # Set to backtrack if Java 1.5 or later is present # Set to eclipse if Eclipse was found # Plugin Eclipse jar files, used by $PTII/doc # Eclipse jar files used by ptolemy/backtrack # Ptolemy II packages that use Eclipse # PTBACKTRACK_PACKAGES is used in ptII/doc/makefile # Set to -I$PTII/mescal/include or -I/usr/local/include # if we found boost/static_assert.hpp (mescal) # Set to the BSH jar file and used to compile org/mlc # Set to mlc and used in $PTII/org/makefile if Java Bean Shell is found. # PTBSH_RUN_DIR is set to run and used in # $PTII/ptolemy/actor/gui/makefile if bsh.jar was found. # Set to the packages that require bsh and used in $PTII/doc/makefile # Set to caltrop and used in $PTII/ptolemy/makefile if Cal was found. # Set to gcc if gcc was found and used in $PTII/ptolemy/matlab/makefile. # Set to mingw32-gcc or gcc and used in $PTII/ptolemy/matlab/makefile and jni # Set to chic and used in $PTII/ptolemy/makefile if chic was found. # PTCM_DIR is set to cm and used in $PTII/ptolemy/copernicus/c/test/makefile # if the CaffeineMark Java Benchmark kit is found # Optional codegen package that are in the devel tree, but not shipped. # Used in doc/makefile # Set to colt and used in $PTII/ptolemy/actor/lib/makefile if colt was found. # Colt jar files. We ship $PTII/lib/ptcolt.jar, which is a subset # of $PTII/vendors/misc/colt.jar # Ptolemy II packages that use COLT # PTCOLT_PACKAGES is used in ptII/doc/makefile # PTCOMM_DIR is set to comm and used in # $PTII/ptolemy/actor/lib/makefile if the Java Communications API was found # # Ptolemy II packages that use the Java Serial Communication facility # PTCOMM_PACKAGES is used in ptII/doc/makefile # Set to copernicus and used in $PTII/ptolemy/makefile if Soot was found # PTCUNIT_DIR is set to test and used in # ptII/ptolemy/codegen/c/kernel/type/test/makefile # if CUnit is found # PTDATABASE_DIR is set to database and used in # $PTII/ptolemy/actor/lib/makefile if ojdbc6.jar was found. # PTDATABASE_JNLP_JARS is set to the database jars that need to be signed # and used in mk/jnlp.mk # PTDATABASE_PACKAGES is set if ojdbc6.jar was found and # used in ptII/doc/makefile # Set to distributed and used in # $PTII/ptolemy/makefile if jini was found # Set to jini jar file and used # $PTII/ptolemy/distributed/*/makefile if jini was found # Ptolemy II packages that use the distributed # PTDISTRIBUTED_PACKAGES is used in ptII/doc/makefile # PTDOCLETS_DIR is set to doclets and used in # $PTII/doc if tools.jar can be found. # PTEXCEL_DIR is set to excel and used in # $PTII/ptolemy/actor/lib/makefile if jxl was found # PTEXCEL_PACKAGES is used in doc/makefile # Set to fuzzy and used in # $PTII/ptolemy/actor/lib/logic/makefile if FuzzyEngine.jar was found # FuzzyEngine directory. FuzzyEngine is from # http://people.clarkson.edu/~esazonov/FuzzyEngine.htm # PTFUZZYLOGIC_PACKAGES is used in ptII/doc/makefile if FuzzyEngine.jar is found # Set to -I$PTII/mescal/include or -I/usr/local/include if gmp.h is found # and used in $PTII/mescal/relsat # Set to -Wl,-R$PTII/mescal/lib or -Wl,-R/usr/local/lib if the gmp # libraries are found and used in $PTII/mescal/relsat # Set to -L$PTII/mescal/lib or -L/usr/local/lib if the gmp libraries are found # and used in $PTII/mescal/relsat # Name of the jar file that includes the GR domain if Java 3D was found. # Used in domains/makefile. # Ptolemy II packages that use the Java 3D facility # PTGR_PACKAGES is used in ptII/doc/makefile # Set to gro and used in # $PTII/ptolemy/domains/makefile if the Java OpenGL (Jogl) interface was found. # PTGRO_PACKAGES is used in ptII/doc/makefile if Jogl was found. # Location of the the PTII directory # $PTII/ptolemy/plot/ptplot.jnlp.in reads this # Set to itextpdf and used in # $PTII/ptolemy/vergil/basic/makefile if iText.jar was found # iText PDF jar file. iText is from # http://itextpdf.com # PTITEXTPDF_PACKAGES is used in ptII/doc/makefile if iTextjar is found # Set to ptjacl and used in # $PTII/ptolemy/actor/gui/makefile if ptjacl.jar was found # ptjacl.jar file, used to run the test suites # Set to jai and used in # $PTII/ptolemy/actor/lib/makefile if Java Advanced Imaging was found # Ptolemy II packages that use Java Advanced Imaging # PTJAI_PACKAGES is used in ptII/doc/makefile # Set to javacv and used in # $PTII/ptolemy/actor/lib/opencv/makefile if JavaCV was found # Ptolemy II packages that use JavaCV. # PTJAVACV_PACKAGES is used in ptII/doc/makefile # Location of the JDK # Location of the JDK # Value of java.home property, location of the JDK with /cygdrive/c/ converted to c:/ # Set to gr and used in # $PTII/ptolemy/domains/makefile if Java 3D was found # Set to jmf if jmf.jar was found # Ptolemy II packages that use Java Media Framwork # PTJMF_PACKAGES is used in ptII/doc/makefile # JNI architecture, used to compile C files # set to jni include directory # Set to -ldl for use by jni/launcher/makefile under Linux # JNI lib architecture, used to run jni/launcher # Flag to use with TinyOS under Cygwin (-mno-cygwin) # GCC shared flag. Usually -shared, except on the mac, where it is -dynamiclib # JNI shared library C compiler flag, under Solaris this would be -fPIC. # JNI shared library linker flag, under Solaris this would be -fPIC. # JNI shared library prefix, under Solaris this would be lib. # JNI shared library suffix, under Windows this would be dll. # JNI shared library suffix, under Mac OS X, this would by dylib # JNI libraries needed to link, such as -lcygwin (Used by Viptos) # Java OpenGL (Jogl) directory. FuzzyEngine is from # https://jogl.dev.java.net/ # Java OpenGL (Jogl) jar files. Used to compile gro domain. # Set to joystick if Joystick.jar was found # Ptolemy II packages that use the Java Joystick facilty # PTJOYSTICK_PACKAGES is used in ptII/doc/makefile # Used in ptolemy/actor/lib/excel/makefile # Set to python if jython.jar was found # Ptolemy II packages that use Jython # PTJYTHON_PACKAGES is used in ptII/doc/makefile # Set to jxta ans used in # $PTII/actor/lib/makefile if jxta.jar was found # Set to opencv and used in # $PTII/ptolemy/actor/lib/makefile if OpenCV Open Computer Vision was found # PTCGOPENCV_DIR is set to OpenCVTracking and used in # $PTII/ptolemy/codegen/demo/makefile if opencv was found # Directory that contains cv.h # Ptolemy II packages that use OpenCV # PTOPENCV_PACKAGES is used in ptII/doc/makefile # Set to kieler and used in # $PTII/ptolemy/vergil/basic/layout/makefile if kieler was found # Set to kvm and used in # $PTII/ptolemy/apps/makefile if kvm was found # Set to lbnl and used in $PTII/makefile if libexpat was found. # Set to lego and used in # $PTII/ptolemy/apps/makefile if the Java Communications API was found # Set to lejos and used in # $PTII/ptolemy/apps/makefile if the Java Communications API was found # and Legos was found # Set to util and used in $PTII/lbnl/lib/util/makefile if libexpat was found # Set to gcc or cl and used in # $PTII/ptolemy/matlab/makefile if the Matlab was found. # Set to -m64 under Solaris if libs are in bin/sol64 # and used $PTII/ptolemy/matlab/makefile if the Matlab was found. # Set to matlab and used in # $PTII/ptolemy/makefile if the Matlab was found. # Linker args for Matlab # $PTII/ptolemy/matlab/makefile # Linker args for Matlab # $PTII/ptolemy/matlab/makefile # Set to mescal and used in $PTII/makefile # if $PTII/mescal was found # Set to pdf and used in ptolemy/vergil/makefile if # PDFRenderer.jar is found. # Jar file used in ptolemy/vergil/pdf # Set to psdf and used in $PTII/ptolemy/domains/makefile if # $PTII/lib/mapss.jar was found # PTSVG_DIR is set to svg and used in # $PTII/diva/util/java2d/makefile if Batik SVG jar files were found # Jar file used by diva/util/java2d/svg/makefile # Jar files used by the Image Processing library from http://processing.org # PTPTALON_DIR is set to ptalon and used in # $PTII/ptolemy/actor/makefile if antlr.jar was found. # PTALON_PACKAGES is used in $PTII/doc/makefile # Directory that contains the antlr.jar file, used by ptalon # Set to quicktime and used in $PTII/ptolemy/domains/gr/lib/makefile if # QuickTime for Java was found. # Ptolemy II packages that use the Quicktime facility # PTQUICKTIME_PACKAGES is used in ptII/doc/makefile # Ptolemy II packages that use the RXTX Java Serial Communication facility # PTRXTX_PACKAGES is used in ptII/doc/makefile # PTSPACE_DIR is set to space and used in # $PTII/ptolemy/domains/makefile if ojdbc6.jar was found. # PTSPACEDOMAIN_JAR is the name of the jar file that includes the space # domain if ojdbc6.jar was found. PTSPACEDOMAIN_JAR used in domains/makefile # PTSPACEDOMAIN_PACKAGES is set if ojdbc6.jar was found and # used in ptII/doc/makefile # Set to tini and used in # $PTII/ptolemy/apps/makefile if TINI was found # PTTINYOS_DIR is set to ptinyos and used in # $PTII/ptolemy/domains/makefile if TinyOS is found # Set to giotto and used in # $PTII/ptolemy/apps/makefile if Giotto was found # Set to quicktime and used in # $PTII/ptolemy/domains/gr/lib/makefile if Quicktime for Java was found # Set to waba and used in # $PTII/ptolemy/apps/makefile if Waba was found # Set to x10 and used in # $PTII/ptolemy/actor/lib/x10/makefile if the X10 jar files were found # Ptolemy II packages that use the X10 facilty. # PTX10_PACKAGES is used in ptII/doc/makefile # Location of the local $PTII directory as a file:/// URL # This variable is used with the Java Network Launching Protocol files # Set to the location of the QTJava.zip file # Jar file that contains RXTX Serial Port Interface # If Rxtx is present, then set to yes, otherwise set to no # tini/bin/tinclasses.jar file used Soot - a Java Optimization Framework # Directory that contains the Soot installation # tini/bin/tiniclasses.jar file used by the Dallas Semi Tini # Directory that contains the Tini installation # Location of tools.jar, usually $(PTJAVA_HOME)/../lib/tools.jar # Location of TinyOS, used by ptinyos domain # giotto/gdk.jar file used by GiottoSDK # Directory that contains the GiottoSDK installation # waba/tools/classes.jar file used by the PalmOS WABA # Directory that contains the waba used by PalmOS # tjx10p-11/lib/x10.jar file used for X10 # Directory that contains the X10 installation # Files we substitute in ac_config_files="$ac_config_files mk/ptII.mk bin/ptinvoke" ac_config_commands="$ac_config_commands default" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that # take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. ac_script=' t clear :clear s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g t quote s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g t quote b any :quote s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g s/\[/\\&/g s/\]/\\&/g s/\$/$$/g H :any ${ g s/^\n// s/\n/ /g p } ' DEFS=`sed -n "$ac_script" confdefs.h` ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made for. config_files="$ac_config_files" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE Configuration files: $config_files Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --he | --h | --help | --hel | -h ) echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 CONFIG_SHELL=$SHELL export CONFIG_SHELL exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "mk/ptII.mk") CONFIG_FILES="$CONFIG_FILES mk/ptII.mk" ;; "bin/ptinvoke") CONFIG_FILES="$CONFIG_FILES bin/ptinvoke" ;; "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # # Set up the sed scripts for CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF SHELL!$SHELL$ac_delim PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim PACKAGE_NAME!$PACKAGE_NAME$ac_delim PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim PACKAGE_STRING!$PACKAGE_STRING$ac_delim PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim exec_prefix!$exec_prefix$ac_delim prefix!$prefix$ac_delim program_transform_name!$program_transform_name$ac_delim bindir!$bindir$ac_delim sbindir!$sbindir$ac_delim libexecdir!$libexecdir$ac_delim datarootdir!$datarootdir$ac_delim datadir!$datadir$ac_delim sysconfdir!$sysconfdir$ac_delim sharedstatedir!$sharedstatedir$ac_delim localstatedir!$localstatedir$ac_delim includedir!$includedir$ac_delim oldincludedir!$oldincludedir$ac_delim docdir!$docdir$ac_delim infodir!$infodir$ac_delim htmldir!$htmldir$ac_delim dvidir!$dvidir$ac_delim pdfdir!$pdfdir$ac_delim psdir!$psdir$ac_delim libdir!$libdir$ac_delim localedir!$localedir$ac_delim mandir!$mandir$ac_delim DEFS!$DEFS$ac_delim ECHO_C!$ECHO_C$ac_delim ECHO_N!$ECHO_N$ac_delim ECHO_T!$ECHO_T$ac_delim LIBS!$LIBS$ac_delim build_alias!$build_alias$ac_delim host_alias!$host_alias$ac_delim target_alias!$target_alias$ac_delim CMD_PATH!$CMD_PATH$ac_delim FIND!$FIND$ac_delim GAWK!$GAWK$ac_delim JAVAC!$JAVAC$ac_delim JAVA!$JAVA$ac_delim JAR!$JAR$ac_delim JARSIGNER!$JARSIGNER$ac_delim JAVAWS!$JAVAWS$ac_delim KEYTOOL!$KEYTOOL$ac_delim CC!$CC$ac_delim CFLAGS!$CFLAGS$ac_delim LDFLAGS!$LDFLAGS$ac_delim CPPFLAGS!$CPPFLAGS$ac_delim ac_ct_CC!$ac_ct_CC$ac_delim EXEEXT!$EXEEXT$ac_delim OBJEXT!$OBJEXT$ac_delim CPP!$CPP$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim JAVADOC!$JAVADOC$ac_delim PTECLIPSE!$PTECLIPSE$ac_delim PTCC!$PTCC$ac_delim CXX!$CXX$ac_delim CXXFLAGS!$CXXFLAGS$ac_delim ac_ct_CXX!$ac_ct_CXX$ac_delim PTJYTHON!$PTJYTHON$ac_delim PTJYTHON_BAT!$PTJYTHON_BAT$ac_delim JJTREE!$JJTREE$ac_delim PTCCJNI!$PTCCJNI$ac_delim JAVAH!$JAVAH$ac_delim MATLAB!$MATLAB$ac_delim PTMATLAB_CC!$PTMATLAB_CC$ac_delim CALTROP_DIR!$CALTROP_DIR$ac_delim CHIC_DIR!$CHIC_DIR$ac_delim CLASSPATHSEPARATOR!$CLASSPATHSEPARATOR$ac_delim COLT_DIR!$COLT_DIR$ac_delim CMKIT_DIR!$CMKIT_DIR$ac_delim ECLIPSE_CLASSPATHENTRY_PDE_REQUIREDPLUGINS!$ECLIPSE_CLASSPATHENTRY_PDE_REQUIREDPLUGINS$ac_delim ECLIPSE_DIR!$ECLIPSE_DIR$ac_delim GC_INCLUDE_DIR!$GC_INCLUDE_DIR$ac_delim GC_LD_DIRECTIVE!$GC_LD_DIRECTIVE$ac_delim ECLIPSE_EXCLUDING_SRC!$ECLIPSE_EXCLUDING_SRC$ac_delim ECLIPSE_CLASSPATHENTRY_LIBS!$ECLIPSE_CLASSPATHENTRY_LIBS$ac_delim IMAGEJ_JAR!$IMAGEJ_JAR$ac_delim JAI_JARS!$JAI_JARS$ac_delim JAR_INDEX!$JAR_INDEX$ac_delim JAVA_SYSTEM_JAR!$JAVA_SYSTEM_JAR$ac_delim JAVA3D_JARS!$JAVA3D_JARS$ac_delim JAVACC!$JAVACC$ac_delim JAVACC_DIR!$JAVACC_DIR$ac_delim JAVACV_JAR!$JAVACV_JAR$ac_delim JAVAX_CRYPTO_JAR!$JAVAX_CRYPTO_JAR$ac_delim JDOCBREAKITERATOR!$JDOCBREAKITERATOR$ac_delim JDOCSOURCEFLAGS!$JDOCSOURCEFLAGS$ac_delim JDOCTAG!$JDOCTAG$ac_delim JDOCTAGLET!$JDOCTAGLET$ac_delim JINI_DIR!$JINI_DIR$ac_delim JINI_PRESENT!$JINI_PRESENT$ac_delim JOYSTICK_JAR!$JOYSTICK_JAR$ac_delim JTCLSH!$JTCLSH$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF CEOF$ac_eof _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF JTREE!$JTREE$ac_delim JVERSION!$JVERSION$ac_delim JMF_JARS!$JMF_JARS$ac_delim JNA_JAR!$JNA_JAR$ac_delim JODE_CLASSES!$JODE_CLASSES$ac_delim JYTHON_DIR!$JYTHON_DIR$ac_delim JXTA_DIR!$JXTA_DIR$ac_delim KIELER_JAR!$KIELER_JAR$ac_delim KVM_CLASSES!$KVM_CLASSES$ac_delim KVM_DIR!$KVM_DIR$ac_delim LEJOS_DIR!$LEJOS_DIR$ac_delim LIBEXPAT_INCLUDE_DIR!$LIBEXPAT_INCLUDE_DIR$ac_delim LIBEXPAT_LIB_DIR!$LIBEXPAT_LIB_DIR$ac_delim MAJOR_OS_NAME!$MAJOR_OS_NAME$ac_delim MATLAB_DIR!$MATLAB_DIR$ac_delim MATLAB_LIBDIR!$MATLAB_LIBDIR$ac_delim MATLAB_64LIBDIR!$MATLAB_64LIBDIR$ac_delim MYSQL_JAR!$MYSQL_JAR$ac_delim OPENCV_JAR!$OPENCV_JAR$ac_delim ORACLE_OJDBC_JAR!$ORACLE_OJDBC_JAR$ac_delim PSDF_DIR!$PSDF_DIR$ac_delim PTBACKTRACK_DIR!$PTBACKTRACK_DIR$ac_delim PTBACKTRACK_ECLIPSE_DIR!$PTBACKTRACK_ECLIPSE_DIR$ac_delim PTBACKTRACK_ECLIPSE_DOC_JARS!$PTBACKTRACK_ECLIPSE_DOC_JARS$ac_delim PTBACKTRACK_ECLIPSE_JARS!$PTBACKTRACK_ECLIPSE_JARS$ac_delim PTBACKTRACK_ECLIPSE_PACKAGES!$PTBACKTRACK_ECLIPSE_PACKAGES$ac_delim PTBOOST_INCLUDE!$PTBOOST_INCLUDE$ac_delim PTBSH_JAR!$PTBSH_JAR$ac_delim PTBSH_MLC_DIR!$PTBSH_MLC_DIR$ac_delim PTBSH_RUN_DIR!$PTBSH_RUN_DIR$ac_delim PTBSH_PACKAGES!$PTBSH_PACKAGES$ac_delim PTCALTROP_DIR!$PTCALTROP_DIR$ac_delim PTCHIC_DIR!$PTCHIC_DIR$ac_delim PTCM_DIR!$PTCM_DIR$ac_delim PTCODEGEN_OPTIONAL_PACKAGES!$PTCODEGEN_OPTIONAL_PACKAGES$ac_delim PTCOLT_DIR!$PTCOLT_DIR$ac_delim PTCOLT_JARS!$PTCOLT_JARS$ac_delim PTCOLT_PACKAGES!$PTCOLT_PACKAGES$ac_delim PTCOMM_DIR!$PTCOMM_DIR$ac_delim PTCOMM_PACKAGES!$PTCOMM_PACKAGES$ac_delim PTCOPERNICUS_DIR!$PTCOPERNICUS_DIR$ac_delim PTCUNIT_DIR!$PTCUNIT_DIR$ac_delim PTDATABASE_DIR!$PTDATABASE_DIR$ac_delim PTDATABASE_JNLP_JARS!$PTDATABASE_JNLP_JARS$ac_delim PTDATABASE_PACKAGES!$PTDATABASE_PACKAGES$ac_delim PTDISTRIBUTED_DIR!$PTDISTRIBUTED_DIR$ac_delim PTDISTRIBUTED_JARS!$PTDISTRIBUTED_JARS$ac_delim PTDISTRIBUTED_PACKAGES!$PTDISTRIBUTED_PACKAGES$ac_delim PTDOCLETS_DIR!$PTDOCLETS_DIR$ac_delim PTEXCEL_DIR!$PTEXCEL_DIR$ac_delim PTEXCEL_PACKAGES!$PTEXCEL_PACKAGES$ac_delim PTFUZZY_DIR!$PTFUZZY_DIR$ac_delim PTFUZZYENGINE_DIR!$PTFUZZYENGINE_DIR$ac_delim PTFUZZY_PACKAGES!$PTFUZZY_PACKAGES$ac_delim PTGMP_INCLUDE!$PTGMP_INCLUDE$ac_delim PTGMP_LD_FLAGS!$PTGMP_LD_FLAGS$ac_delim PTGMP_LIB!$PTGMP_LIB$ac_delim PTGRDOMAIN_JAR!$PTGRDOMAIN_JAR$ac_delim PTGR_PACKAGES!$PTGR_PACKAGES$ac_delim PTGRO_DIR!$PTGRO_DIR$ac_delim PTGRO_PACKAGES!$PTGRO_PACKAGES$ac_delim PTII!$PTII$ac_delim PTITEXTPDF_DIR!$PTITEXTPDF_DIR$ac_delim PTITEXTPDF_JAR!$PTITEXTPDF_JAR$ac_delim PTITEXTPDF_PACKAGES!$PTITEXTPDF_PACKAGES$ac_delim PTJACL_DIR!$PTJACL_DIR$ac_delim PTJACL_JAR!$PTJACL_JAR$ac_delim PTJAI_DIR!$PTJAI_DIR$ac_delim PTJAI_PACKAGES!$PTJAI_PACKAGES$ac_delim PTJAVACV_DIR!$PTJAVACV_DIR$ac_delim PTJAVACV_PACKAGES!$PTJAVACV_PACKAGES$ac_delim PTJAVA_DIR!$PTJAVA_DIR$ac_delim PTJAVA_DIR_NO_CYGDRIVE!$PTJAVA_DIR_NO_CYGDRIVE$ac_delim PTJAVA_HOME!$PTJAVA_HOME$ac_delim PTJAVA3D_DIR!$PTJAVA3D_DIR$ac_delim PTJMF_DIR!$PTJMF_DIR$ac_delim PTJMF_PACKAGES!$PTJMF_PACKAGES$ac_delim PTJNI_ARCHITECTURE!$PTJNI_ARCHITECTURE$ac_delim PTJNI_INCLUDE!$PTJNI_INCLUDE$ac_delim PTJNI_DL_LIBRARY!$PTJNI_DL_LIBRARY$ac_delim PTJNI_LIB_ARCHITECTURE!$PTJNI_LIB_ARCHITECTURE$ac_delim PTJNI_NO_CYGWIN!$PTJNI_NO_CYGWIN$ac_delim PTJNI_GCC_SHARED_FLAG!$PTJNI_GCC_SHARED_FLAG$ac_delim PTJNI_SHAREDLIBRARY_CFLAG!$PTJNI_SHAREDLIBRARY_CFLAG$ac_delim PTJNI_SHAREDLIBRARY_LDFLAG!$PTJNI_SHAREDLIBRARY_LDFLAG$ac_delim PTJNI_SHAREDLIBRARY_PREFIX!$PTJNI_SHAREDLIBRARY_PREFIX$ac_delim PTJNI_SHAREDLIBRARY_SUFFIX!$PTJNI_SHAREDLIBRARY_SUFFIX$ac_delim PTJNI_SHAREDLIBRARY_SUFFIX2!$PTJNI_SHAREDLIBRARY_SUFFIX2$ac_delim PTJNI_LIBRARIES!$PTJNI_LIBRARIES$ac_delim PTJOGL_DIR!$PTJOGL_DIR$ac_delim PTJOGL_JARS!$PTJOGL_JARS$ac_delim PTJOYSTICK_DIR!$PTJOYSTICK_DIR$ac_delim PTJOYSTICK_PACKAGES!$PTJOYSTICK_PACKAGES$ac_delim PTJXL_JAR!$PTJXL_JAR$ac_delim PTJYTHON_DIR!$PTJYTHON_DIR$ac_delim PTJYTHON_PACKAGES!$PTJYTHON_PACKAGES$ac_delim PTJXTA_DIR!$PTJXTA_DIR$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF CEOF$ac_eof _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF PTOPENCV_DIR!$PTOPENCV_DIR$ac_delim PTOPENCVCG_DIR!$PTOPENCVCG_DIR$ac_delim PTOPENCV_INCLUDE_DIR!$PTOPENCV_INCLUDE_DIR$ac_delim PTOPENCV_PACKAGES!$PTOPENCV_PACKAGES$ac_delim PTKIELER_DIR!$PTKIELER_DIR$ac_delim PTKVM_DIR!$PTKVM_DIR$ac_delim PTLBNL_DIR!$PTLBNL_DIR$ac_delim PTLEGO_DIR!$PTLEGO_DIR$ac_delim PTLEJOS_DIR!$PTLEJOS_DIR$ac_delim PTLIBEXPAT_DIR!$PTLIBEXPAT_DIR$ac_delim PTMATLAB_CC_FLAGS!$PTMATLAB_CC_FLAGS$ac_delim PTMATLAB_DIR!$PTMATLAB_DIR$ac_delim PTMATLAB_LD_ARGS!$PTMATLAB_LD_ARGS$ac_delim PTMATLAB_64LD_ARGS!$PTMATLAB_64LD_ARGS$ac_delim PTMESCAL_DIR!$PTMESCAL_DIR$ac_delim PTPDFRENDERER_DIR!$PTPDFRENDERER_DIR$ac_delim PTPDFRENDERER_JAR!$PTPDFRENDERER_JAR$ac_delim PTPSDF_DIR!$PTPSDF_DIR$ac_delim PTSVG_DIR!$PTSVG_DIR$ac_delim PTSVG_JAR!$PTSVG_JAR$ac_delim PTPROCESSING_JARS!$PTPROCESSING_JARS$ac_delim PTPTALON_DIR!$PTPTALON_DIR$ac_delim PTPTALON_PACKAGES!$PTPTALON_PACKAGES$ac_delim ANTLR_DIR!$ANTLR_DIR$ac_delim PTQUICKTIME_DIR!$PTQUICKTIME_DIR$ac_delim PTQUICKTIME_PACKAGES!$PTQUICKTIME_PACKAGES$ac_delim PTRXTX_PACKAGES!$PTRXTX_PACKAGES$ac_delim PTSPACE_DIR!$PTSPACE_DIR$ac_delim PTSPACEDOMAIN_JAR!$PTSPACEDOMAIN_JAR$ac_delim PTSPACEDOMAIN_PACKAGES!$PTSPACEDOMAIN_PACKAGES$ac_delim PTTINI_DIR!$PTTINI_DIR$ac_delim PTTINYOS_DIR!$PTTINYOS_DIR$ac_delim PTGIOTTO_DIR!$PTGIOTTO_DIR$ac_delim PTWABA_DIR!$PTWABA_DIR$ac_delim PTX10_DIR!$PTX10_DIR$ac_delim PTX10_PACKAGES!$PTX10_PACKAGES$ac_delim PTII_LOCALURL!$PTII_LOCALURL$ac_delim QTJAVA_ZIP!$QTJAVA_ZIP$ac_delim RXTX_JAR!$RXTX_JAR$ac_delim RXTX_PRESENT!$RXTX_PRESENT$ac_delim SOOT_CLASSES!$SOOT_CLASSES$ac_delim SOOT_DIR!$SOOT_DIR$ac_delim TINI_CLASSES!$TINI_CLASSES$ac_delim TINI_DIR!$TINI_DIR$ac_delim TOOLS_JAR!$TOOLS_JAR$ac_delim TOSROOT_NO_CYGDRIVE!$TOSROOT_NO_CYGDRIVE$ac_delim TOSDIR_NO_CYGDRIVE!$TOSDIR_NO_CYGDRIVE$ac_delim GIOTTO_CLASSES!$GIOTTO_CLASSES$ac_delim GIOTTO_DIR!$GIOTTO_DIR$ac_delim WABA_CLASSES!$WABA_CLASSES$ac_delim WABA_DIR!$WABA_DIR$ac_delim X10_CLASSES!$X10_CLASSES$ac_delim X10_DIR!$X10_DIR$ac_delim LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF :end s/|#_!!_#|//g CEOF$ac_eof _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 echo "$as_me: error: Invalid tag $ac_tag." >&2;} { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac ac_file_inputs="$ac_file_inputs $ac_f" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input="Generated from "`IFS=: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin";; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir="$ac_dir" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= case `sed -n '/datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t $ac_datarootdir_hack " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out"; rm -f "$tmp/out";; *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; esac ;; :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "default":C) chmod a+x bin/ptinvoke ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi