- Timestamp:
- 2020-02-15T18:55:27+13:00 (4 years ago)
- Location:
- main/trunk/greenstone3/src/packages/javagdbm
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/packages/javagdbm/configure
r30751 r33928 2 2 # From configure.in Revision: 26707 . 3 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated by GNU Autoconf 2.6 8.4 # Generated by GNU Autoconf 2.69. 5 5 # 6 6 # 7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 9 # Foundation, Inc. 7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 10 8 # 11 9 # … … 136 134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 135 136 # Use a proper internal environment variable to ensure we don't fall 137 # into an infinite loop, continuously re-executing ourselves. 138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 139 _as_can_reexec=no; export _as_can_reexec; 140 # We cannot yet assume a decent shell, so we have to provide a 141 # neutralization value for shells without unset; and this also 142 # works around shells that cannot unset nonexistent variables. 143 # Preserve -v and -x to the replacement shell. 144 BASH_ENV=/dev/null 145 ENV=/dev/null 146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 147 case $- in # (((( 148 *v*x* | *x*v* ) as_opts=-vx ;; 149 *v* ) as_opts=-v ;; 150 *x* ) as_opts=-x ;; 151 * ) as_opts= ;; 152 esac 153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 154 # Admittedly, this is quite paranoid, since all the known shells bail 155 # out after a failed `exec'. 156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 157 as_fn_exit 255 158 fi 159 # We don't want this to propagate to other subprocesses. 160 { _as_can_reexec=; unset _as_can_reexec;} 138 161 if test "x$CONFIG_SHELL" = x; then 139 162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : … … 169 192 exitcode=1; echo positional parameters were not saved. 170 193 fi 171 test x\$exitcode = x0 || exit 1" 194 test x\$exitcode = x0 || exit 1 195 test -x / || exit 1" 172 196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO … … 214 238 215 239 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 # Preserve -v and -x to the replacement shell. 220 BASH_ENV=/dev/null 221 ENV=/dev/null 222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 223 export CONFIG_SHELL 224 case $- in # (((( 225 *v*x* | *x*v* ) as_opts=-vx ;; 226 *v* ) as_opts=-v ;; 227 *x* ) as_opts=-x ;; 228 * ) as_opts= ;; 229 esac 230 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240 export CONFIG_SHELL 241 # We cannot yet assume a decent shell, so we have to provide a 242 # neutralization value for shells without unset; and this also 243 # works around shells that cannot unset nonexistent variables. 244 # Preserve -v and -x to the replacement shell. 245 BASH_ENV=/dev/null 246 ENV=/dev/null 247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 248 case $- in # (((( 249 *v*x* | *x*v* ) as_opts=-vx ;; 250 *v* ) as_opts=-v ;; 251 *x* ) as_opts=-x ;; 252 * ) as_opts= ;; 253 esac 254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 255 # Admittedly, this is quite paranoid, since all the known shells bail 256 # out after a failed `exec'. 257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 258 exit 255 231 259 fi 232 260 … … 330 358 331 359 } # as_fn_mkdir_p 360 361 # as_fn_executable_p FILE 362 # ----------------------- 363 # Test if FILE is an executable regular file. 364 as_fn_executable_p () 365 { 366 test -f "$1" && test -x "$1" 367 } # as_fn_executable_p 332 368 # as_fn_append VAR VALUE 333 369 # ---------------------- … … 451 487 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 452 488 489 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 490 # already done that, so ensure we don't try to do so again and fall 491 # in an infinite loop. This has already happened in practice. 492 _as_can_reexec=no; export _as_can_reexec 453 493 # Don't try to exec as it changes $[0], causing all sort of problems 454 494 # (the dirname of $[0] is not the place where we might find the … … 485 525 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 486 526 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 487 # In both cases, we have to default to `cp -p '.527 # In both cases, we have to default to `cp -pR'. 488 528 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 489 as_ln_s='cp -p '529 as_ln_s='cp -pR' 490 530 elif ln conf$$.file conf$$ 2>/dev/null; then 491 531 as_ln_s=ln 492 532 else 493 as_ln_s='cp -p '533 as_ln_s='cp -pR' 494 534 fi 495 535 else 496 as_ln_s='cp -p '536 as_ln_s='cp -pR' 497 537 fi 498 538 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file … … 506 546 fi 507 547 508 if test -x / >/dev/null 2>&1; then 509 as_test_x='test -x' 510 else 511 if ls -dL / >/dev/null 2>&1; then 512 as_ls_L_option=L 513 else 514 as_ls_L_option= 515 fi 516 as_test_x=' 517 eval sh -c '\'' 518 if test -d "$1"; then 519 test -d "$1/."; 520 else 521 case $1 in #( 522 -*)set "./$1";; 523 esac; 524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 525 ???[sx]*):;;*)false;;esac;fi 526 '\'' sh 527 ' 528 fi 529 as_executable_p=$as_test_x 548 as_test_x='test -x' 549 as_executable_p=as_fn_executable_p 530 550 531 551 # Sed expression to map a string onto a valid CPP name. … … 611 631 GDBM_INCLUDE 612 632 GDBM_LIBPATH 613 javagdbm_cv_path_java 614 javagdbm_cv_path_javah 615 JAVA_HOME 633 JAVACFLAGS 634 JAVAC 616 635 EGREP 617 636 GREP … … 660 679 oldincludedir 661 680 includedir 681 runstatedir 662 682 localstatedir 663 683 sharedstatedir … … 731 751 sharedstatedir='${prefix}/com' 732 752 localstatedir='${prefix}/var' 753 runstatedir='${localstatedir}/run' 733 754 includedir='${prefix}/include' 734 755 oldincludedir='/usr/include' … … 983 1004 silent=yes ;; 984 1005 1006 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1007 | --runstate | --runstat | --runsta | --runst | --runs \ 1008 | --run | --ru | --r) 1009 ac_prev=runstatedir ;; 1010 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1011 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1012 | --run=* | --ru=* | --r=*) 1013 runstatedir=$ac_optarg ;; 1014 985 1015 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 986 1016 ac_prev=sbindir ;; … … 1120 1150 datadir sysconfdir sharedstatedir localstatedir includedir \ 1121 1151 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1122 libdir localedir mandir 1152 libdir localedir mandir runstatedir 1123 1153 do 1124 1154 eval ac_val=\$$ac_var … … 1148 1178 if test "x$build_alias" = x; then 1149 1179 cross_compiling=maybe 1150 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.1151 If a cross compiler is detected then cross compile mode will be used" >&21152 1180 elif test "x$build_alias" != "x$host_alias"; then 1153 1181 cross_compiling=yes … … 1275 1303 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1276 1304 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1305 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1277 1306 --libdir=DIR object code libraries [EPREFIX/lib] 1278 1307 --includedir=DIR C header files [PREFIX/include] … … 1385 1414 cat <<\_ACEOF 1386 1415 configure 1387 generated by GNU Autoconf 2.6 81388 1389 Copyright (C) 201 0Free Software Foundation, Inc.1416 generated by GNU Autoconf 2.69 1417 1418 Copyright (C) 2012 Free Software Foundation, Inc. 1390 1419 This configure script is free software; the Free Software Foundation 1391 1420 gives unlimited permission to copy, distribute and modify it. … … 1495 1524 { 1496 1525 static int test_array [1 - 2 * !(($2) >= 0)]; 1497 test_array [0] = 0 1526 test_array [0] = 0; 1527 return test_array [0]; 1498 1528 1499 1529 ; … … 1511 1541 { 1512 1542 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1513 test_array [0] = 0 1543 test_array [0] = 0; 1544 return test_array [0]; 1514 1545 1515 1546 ; … … 1537 1568 { 1538 1569 static int test_array [1 - 2 * !(($2) < 0)]; 1539 test_array [0] = 0 1570 test_array [0] = 0; 1571 return test_array [0]; 1540 1572 1541 1573 ; … … 1553 1585 { 1554 1586 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1555 test_array [0] = 0 1587 test_array [0] = 0; 1588 return test_array [0]; 1556 1589 1557 1590 ; … … 1587 1620 { 1588 1621 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1589 test_array [0] = 0 1622 test_array [0] = 0; 1623 return test_array [0]; 1590 1624 1591 1625 ; … … 1751 1785 } && test -s conftest$ac_exeext && { 1752 1786 test "$cross_compiling" = yes || 1753 $as_test_x conftest$ac_exeext1787 test -x conftest$ac_exeext 1754 1788 }; then : 1755 1789 ac_retval=0 … … 1774 1808 1775 1809 It was created by $as_me, which was 1776 generated by GNU Autoconf 2.6 8. Invocation command line was1810 generated by GNU Autoconf 2.69. Invocation command line was 1777 1811 1778 1812 $ $0 $@ … … 2032 2066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2033 2067 as_fn_error $? "failed to load site script $ac_site_file 2034 See \`config.log' for more details" "$LINENO" 5 2068 See \`config.log' for more details" "$LINENO" 5; } 2035 2069 fi 2036 2070 done … … 2180 2214 case $ac_cv_build in 2181 2215 *-*-*) ;; 2182 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 2216 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2183 2217 esac 2184 2218 build=$ac_cv_build … … 2213 2247 case $ac_cv_host in 2214 2248 *-*-*) ;; 2215 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 2249 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2216 2250 esac 2217 2251 host=$ac_cv_host … … 2246 2280 case $ac_cv_target in 2247 2281 *-*-*) ;; 2248 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 2282 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2249 2283 esac 2250 2284 target=$ac_cv_target … … 2296 2330 test -z "$as_dir" && as_dir=. 2297 2331 for ac_exec_ext in '' $ac_executable_extensions; do 2298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2299 2333 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2300 2334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 2336 2370 test -z "$as_dir" && as_dir=. 2337 2371 for ac_exec_ext in '' $ac_executable_extensions; do 2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2339 2373 ac_cv_prog_ac_ct_CC="gcc" 2340 2374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 2389 2423 test -z "$as_dir" && as_dir=. 2390 2424 for ac_exec_ext in '' $ac_executable_extensions; do 2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2392 2426 ac_cv_prog_CC="${ac_tool_prefix}cc" 2393 2427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 2430 2464 test -z "$as_dir" && as_dir=. 2431 2465 for ac_exec_ext in '' $ac_executable_extensions; do 2432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2433 2467 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2434 2468 ac_prog_rejected=yes … … 2488 2522 test -z "$as_dir" && as_dir=. 2489 2523 for ac_exec_ext in '' $ac_executable_extensions; do 2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2491 2525 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2492 2526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 2532 2566 test -z "$as_dir" && as_dir=. 2533 2567 for ac_exec_ext in '' $ac_executable_extensions; do 2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2535 2569 ac_cv_prog_ac_ct_CC="$ac_prog" 2536 2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 2575 2609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2576 2610 as_fn_error $? "no acceptable C compiler found in \$PATH 2577 See \`config.log' for more details" "$LINENO" 5 2611 See \`config.log' for more details" "$LINENO" 5; } 2578 2612 2579 2613 # Provide some information about the compiler. … … 2690 2724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2691 2725 as_fn_error 77 "C compiler cannot create executables 2692 See \`config.log' for more details" "$LINENO" 5 2726 See \`config.log' for more details" "$LINENO" 5; } 2693 2727 else 2694 2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 … … 2733 2767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2734 2768 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2735 See \`config.log' for more details" "$LINENO" 5 2769 See \`config.log' for more details" "$LINENO" 5; } 2736 2770 fi 2737 2771 rm -f conftest conftest$ac_cv_exeext … … 2792 2826 as_fn_error $? "cannot run C compiled programs. 2793 2827 If you meant to cross compile, use \`--host'. 2794 See \`config.log' for more details" "$LINENO" 5 2828 See \`config.log' for more details" "$LINENO" 5; } 2795 2829 fi 2796 2830 fi … … 2844 2878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2845 2879 as_fn_error $? "cannot compute suffix of object files: cannot compile 2846 See \`config.log' for more details" "$LINENO" 5 2880 See \`config.log' for more details" "$LINENO" 5; } 2847 2881 fi 2848 2882 rm -f conftest.$ac_cv_objext conftest.$ac_ext … … 2978 3012 #include <stdarg.h> 2979 3013 #include <stdio.h> 2980 #include <sys/types.h> 2981 #include <sys/stat.h> 3014 struct stat; 2982 3015 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2983 3016 struct buf { int x; }; … … 3101 3134 for ac_prog in ginstall scoinst install; do 3102 3135 for ac_exec_ext in '' $ac_executable_extensions; do 3103 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then3136 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3104 3137 if test $ac_prog = install && 3105 3138 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then … … 3324 3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3325 3358 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3326 See \`config.log' for more details" "$LINENO" 5 3359 See \`config.log' for more details" "$LINENO" 5; } 3327 3360 fi 3328 3361 … … 3350 3383 for ac_exec_ext in '' $ac_executable_extensions; do 3351 3384 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3352 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; }|| continue3385 as_fn_executable_p "$ac_path_GREP" || continue 3353 3386 # Check for GNU ac_path_GREP and select it if it is found. 3354 3387 # Check for GNU $ac_path_GREP … … 3416 3449 for ac_exec_ext in '' $ac_executable_extensions; do 3417 3450 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3418 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; }|| continue3451 as_fn_executable_p "$ac_path_EGREP" || continue 3419 3452 # Check for GNU ac_path_EGREP and select it if it is found. 3420 3453 # Check for GNU $ac_path_EGREP … … 3609 3642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3610 3643 as_fn_error 77 "cannot compute sizeof (void *) 3611 See \`config.log' for more details" "$LINENO" 5 3644 See \`config.log' for more details" "$LINENO" 5; } 3612 3645 else 3613 3646 ac_cv_sizeof_void_p=0 … … 3642 3675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3643 3676 as_fn_error 77 "cannot compute sizeof (int) 3644 See \`config.log' for more details" "$LINENO" 5 3677 See \`config.log' for more details" "$LINENO" 5; } 3645 3678 else 3646 3679 ac_cv_sizeof_int=0 … … 3675 3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3676 3709 as_fn_error 77 "cannot compute sizeof (long) 3677 See \`config.log' for more details" "$LINENO" 5 3710 See \`config.log' for more details" "$LINENO" 5; } 3678 3711 else 3679 3712 ac_cv_sizeof_long=0 … … 3695 3728 ######## check for the JDK and tools within the JDK 3696 3729 ######## look in the JAVA_HOME environment variable at configure-time 3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the JDK" >&5 3698 $as_echo_n "checking for the JDK... " >&6; } 3699 if test "z$JAVA_HOME" != z && 3700 test -d $JAVA_HOME && 3701 (test -d $JAVA_HOME/bin) 3702 # The following used to be the test, but failed on newer versions of MacOS 3703 # Cut back to something simpler, and rely on the later tests for JNIINC to confirm 3704 # files like 'jni.h' can be found 3730 #AC_MSG_CHECKING([for the JDK]) 3731 #if test "z$JAVA_HOME" != z && 3705 3732 # test -d $JAVA_HOME && 3706 # (test -d $JAVA_HOME/include || test -d $JAVA_HOME/../Headers) 3707 then 3708 3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $JAVA_HOME" >&5 3710 $as_echo "found in $JAVA_HOME" >&6; } 3711 else 3712 as_fn_error $? "not found in \$JAVA_HOME" "$LINENO" 5 3713 fi 3714 3715 # TODO: Check for specific header files in the JDK, or 3716 # functions/definitions within those headers? 3717 3718 # TODO: guess which include directory to use under the JDK 3719 3720 # Extract the first word of "javah", so it can be a program name with args. 3721 set dummy javah; ac_word=$2 3733 # (test -d $JAVA_HOME/bin) 3734 ## The following used to be the test, but failed on newer versions of MacOS 3735 ## Cut back to something simpler, and rely on the later tests for JNIINC to confirm 3736 ## files like 'jni.h' can be found 3737 ## test -d $JAVA_HOME && 3738 ## (test -d $JAVA_HOME/include || test -d $JAVA_HOME/../Headers) 3739 #then 3740 # AC_SUBST(JAVA_HOME) 3741 # AC_MSG_RESULT([found in $JAVA_HOME]) 3742 #else 3743 # AC_MSG_ERROR([not found in \$JAVA_HOME]) 3744 #fi 3745 3746 ## TODO: Check for specific header files in the JDK, or 3747 ## functions/definitions within those headers? 3748 3749 ## TODO: guess which include directory to use under the JDK 3750 3751 #AC_PATH_PROG(javagdbm_cv_path_javah, javah, missing_javah) 3752 #if test "$javagdbm_cv_path_javah" = missing_javah; then 3753 # AC_MSG_ERROR([javah not found.]) 3754 #fi 3755 3756 #AC_PATH_PROG(javagdbm_cv_path_java, java, missing) 3757 #if test "$javagdbm_cv_path_java" = missing; then 3758 # AC_MSG_ERROR([java not found.]) 3759 #fi 3760 3761 # Replacing the above with a more streamlined test for 'javac' 3762 # This should have the advantage of meaning its not mandated 3763 # that JAVA_HOME must be set for it to locate a javac 3764 3765 3766 if test "x$JAVAC" = x ; then 3767 if test "x$JAVAPREFIX" = x; then 3768 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT 3769 do 3770 # Extract the first word of "$ac_prog", so it can be a program name with args. 3771 set dummy $ac_prog; ac_word=$2 3722 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3723 3773 $as_echo_n "checking for $ac_word... " >&6; } 3724 if ${ac_cv_p ath_javagdbm_cv_path_javah+:} false; then :3774 if ${ac_cv_prog_JAVAC+:} false; then : 3725 3775 $as_echo_n "(cached) " >&6 3726 3776 else 3727 case $javagdbm_cv_path_javah in 3728 [\\/]* | ?:[\\/]*) 3729 ac_cv_path_javagdbm_cv_path_javah="$javagdbm_cv_path_javah" # Let the user override the test with a path. 3730 ;; 3731 *) 3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3777 if test -n "$JAVAC"; then 3778 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test. 3779 else 3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3733 3781 for as_dir in $PATH 3734 3782 do … … 3736 3784 test -z "$as_dir" && as_dir=. 3737 3785 for ac_exec_ext in '' $ac_executable_extensions; do 3738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then3739 ac_cv_p ath_javagdbm_cv_path_javah="$as_dir/$ac_word$ac_exec_ext"3786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3787 ac_cv_prog_JAVAC="$ac_prog" 3740 3788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3741 3789 break 2 … … 3745 3793 IFS=$as_save_IFS 3746 3794 3747 test -z "$ac_cv_path_javagdbm_cv_path_javah" && ac_cv_path_javagdbm_cv_path_javah="missing_javah" 3748 ;; 3749 esac 3750 fi 3751 javagdbm_cv_path_javah=$ac_cv_path_javagdbm_cv_path_javah 3752 if test -n "$javagdbm_cv_path_javah"; then 3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $javagdbm_cv_path_javah" >&5 3754 $as_echo "$javagdbm_cv_path_javah" >&6; } 3795 fi 3796 fi 3797 JAVAC=$ac_cv_prog_JAVAC 3798 if test -n "$JAVAC"; then 3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 3800 $as_echo "$JAVAC" >&6; } 3755 3801 else 3756 3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 … … 3759 3805 3760 3806 3761 if test "$javagdbm_cv_path_javah" = missing_javah; then 3762 as_fn_error $? "javah not found." "$LINENO" 5 3763 fi 3764 3765 # Extract the first word of "java", so it can be a program name with args. 3766 set dummy java; ac_word=$2 3807 test -n "$JAVAC" && break 3808 done 3809 3810 else 3811 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT 3812 do 3813 # Extract the first word of "$ac_prog", so it can be a program name with args. 3814 set dummy $ac_prog; ac_word=$2 3767 3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3768 3816 $as_echo_n "checking for $ac_word... " >&6; } 3769 if ${ac_cv_p ath_javagdbm_cv_path_java+:} false; then :3817 if ${ac_cv_prog_JAVAC+:} false; then : 3770 3818 $as_echo_n "(cached) " >&6 3771 3819 else 3772 case $javagdbm_cv_path_java in 3773 [\\/]* | ?:[\\/]*) 3774 ac_cv_path_javagdbm_cv_path_java="$javagdbm_cv_path_java" # Let the user override the test with a path. 3775 ;; 3776 *) 3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3820 if test -n "$JAVAC"; then 3821 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test. 3822 else 3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3778 3824 for as_dir in $PATH 3779 3825 do … … 3781 3827 test -z "$as_dir" && as_dir=. 3782 3828 for ac_exec_ext in '' $ac_executable_extensions; do 3783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then3784 ac_cv_p ath_javagdbm_cv_path_java="$as_dir/$ac_word$ac_exec_ext"3829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3830 ac_cv_prog_JAVAC="$ac_prog" 3785 3831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3786 3832 break 2 … … 3790 3836 IFS=$as_save_IFS 3791 3837 3792 test -z "$ac_cv_path_javagdbm_cv_path_java" && ac_cv_path_javagdbm_cv_path_java="missing" 3793 ;; 3794 esac 3795 fi 3796 javagdbm_cv_path_java=$ac_cv_path_javagdbm_cv_path_java 3797 if test -n "$javagdbm_cv_path_java"; then 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $javagdbm_cv_path_java" >&5 3799 $as_echo "$javagdbm_cv_path_java" >&6; } 3838 fi 3839 fi 3840 JAVAC=$ac_cv_prog_JAVAC 3841 if test -n "$JAVAC"; then 3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 3843 $as_echo "$JAVAC" >&6; } 3800 3844 else 3801 3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 … … 3804 3848 3805 3849 3806 if test "$javagdbm_cv_path_java" = missing; then 3807 as_fn_error $? "java not found." "$LINENO" 5 3808 fi 3850 test -n "$JAVAC" && break 3851 done 3852 test -n "$JAVAC" || JAVAC="$JAVAPREFIX" 3853 3854 fi 3855 test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5 3856 else 3857 echo "Checking for javac... $JAVAC" 3858 fi 3859 3860 3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5 3862 $as_echo_n "checking if $JAVAC works... " >&6; } 3863 if ${ac_cv_prog_javac_works+:} false; then : 3864 $as_echo_n "(cached) " >&6 3865 else 3866 3867 JAVA_TEST=Test.java 3868 CLASS_TEST=Test.class 3869 cat << \EOF > $JAVA_TEST 3870 /* #line 3870 "configure" */ 3871 public class Test { 3872 } 3873 EOF 3874 if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST' 3875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 3876 (eval $ac_try) 2>&5 3877 ac_status=$? 3878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3879 test $ac_status = 0; }; } >/dev/null 2>&1; then 3880 ac_cv_prog_javac_works=yes 3881 else 3882 as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5 3883 echo "configure: failed program was:" >&5 3884 cat $JAVA_TEST >&5 3885 fi 3886 rm -f $JAVA_TEST $CLASS_TEST 3887 3888 fi 3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5 3890 $as_echo "$ac_cv_prog_javac_works" >&6; } 3891 if test "x$JAVACFLAGS" = x ; then 3892 JAVACFLAGS="-source 1.4 -target 1.4" 3893 fi 3894 3895 3896 3809 3897 3810 3898 # check for gdbm library … … 3944 4032 JNISUFFIX="jnilib" 3945 4033 JNILDFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM" 3946 if test -d "$JAVA_HOME/include/darwin"; then3947 JNICFLAGS="-I$JAVA_HOME/include -I$JAVA_HOME/include/darwin"3948 fi3949 4034 fi 3950 4035 if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then … … 4420 4505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 4421 4506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 4422 # In both cases, we have to default to `cp -p '.4507 # In both cases, we have to default to `cp -pR'. 4423 4508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 4424 as_ln_s='cp -p '4509 as_ln_s='cp -pR' 4425 4510 elif ln conf$$.file conf$$ 2>/dev/null; then 4426 4511 as_ln_s=ln 4427 4512 else 4428 as_ln_s='cp -p '4513 as_ln_s='cp -pR' 4429 4514 fi 4430 4515 else 4431 as_ln_s='cp -p '4516 as_ln_s='cp -pR' 4432 4517 fi 4433 4518 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file … … 4489 4574 fi 4490 4575 4491 if test -x / >/dev/null 2>&1; then 4492 as_test_x='test -x' 4493 else 4494 if ls -dL / >/dev/null 2>&1; then 4495 as_ls_L_option=L 4496 else 4497 as_ls_L_option= 4498 fi 4499 as_test_x=' 4500 eval sh -c '\'' 4501 if test -d "$1"; then 4502 test -d "$1/."; 4503 else 4504 case $1 in #( 4505 -*)set "./$1";; 4506 esac; 4507 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 4508 ???[sx]*):;;*)false;;esac;fi 4509 '\'' sh 4510 ' 4511 fi 4512 as_executable_p=$as_test_x 4576 4577 # as_fn_executable_p FILE 4578 # ----------------------- 4579 # Test if FILE is an executable regular file. 4580 as_fn_executable_p () 4581 { 4582 test -f "$1" && test -x "$1" 4583 } # as_fn_executable_p 4584 as_test_x='test -x' 4585 as_executable_p=as_fn_executable_p 4513 4586 4514 4587 # Sed expression to map a string onto a valid CPP name. … … 4532 4605 ac_log=" 4533 4606 This file was extended by $as_me, which was 4534 generated by GNU Autoconf 2.6 8. Invocation command line was4607 generated by GNU Autoconf 2.69. Invocation command line was 4535 4608 4536 4609 CONFIG_FILES = $CONFIG_FILES … … 4585 4658 ac_cs_version="\\ 4586 4659 config.status 4587 configured by $0, generated by GNU Autoconf 2.6 8,4660 configured by $0, generated by GNU Autoconf 2.69, 4588 4661 with options \\"\$ac_cs_config\\" 4589 4662 4590 Copyright (C) 201 0Free Software Foundation, Inc.4663 Copyright (C) 2012 Free Software Foundation, Inc. 4591 4664 This config.status script is free software; the Free Software Foundation 4592 4665 gives unlimited permission to copy, distribute and modify it." … … 4666 4739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4667 4740 if \$ac_cs_recheck; then 4668 set X '$SHELL''$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion4741 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 4669 4742 shift 4670 4743 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 … … 4699 4772 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;; 4700 4773 4701 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 4774 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 4702 4775 esac 4703 4776 done … … 4907 4980 case $ac_mode$ac_tag in 4908 4981 :[FHL]*:*);; 4909 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 4982 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 4910 4983 :[FH]-) ac_tag=-:-;; 4911 4984 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; … … 4935 5008 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 4936 5009 esac || 4937 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 5010 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 4938 5011 esac 4939 5012 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac … … 4962 5035 case $ac_tag in 4963 5036 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 4964 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5037 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 4965 5038 esac 4966 5039 ;; -
main/trunk/greenstone3/src/packages/javagdbm/configure.in
r26707 r33928 71 71 ######## check for the JDK and tools within the JDK 72 72 ######## look in the JAVA_HOME environment variable at configure-time 73 AC_MSG_CHECKING([for the JDK]) 74 if test "z$JAVA_HOME" != z && 75 test -d $JAVA_HOME && 76 (test -d $JAVA_HOME/bin) 77 # The following used to be the test, but failed on newer versions of MacOS 78 # Cut back to something simpler, and rely on the later tests for JNIINC to confirm 79 # files like 'jni.h' can be found 80 # test -d $JAVA_HOME && 81 # (test -d $JAVA_HOME/include || test -d $JAVA_HOME/../Headers) 82 then 83 AC_SUBST(JAVA_HOME) 84 AC_MSG_RESULT([found in $JAVA_HOME]) 85 else 86 AC_MSG_ERROR([not found in \$JAVA_HOME]) 87 fi 88 89 # TODO: Check for specific header files in the JDK, or 90 # functions/definitions within those headers? 91 92 # TODO: guess which include directory to use under the JDK 93 94 AC_PATH_PROG(javagdbm_cv_path_javah, javah, missing_javah) 95 if test "$javagdbm_cv_path_javah" = missing_javah; then 96 AC_MSG_ERROR([javah not found.]) 97 fi 98 99 AC_PATH_PROG(javagdbm_cv_path_java, java, missing) 100 if test "$javagdbm_cv_path_java" = missing; then 101 AC_MSG_ERROR([java not found.]) 102 fi 103 73 #AC_MSG_CHECKING([for the JDK]) 74 #if test "z$JAVA_HOME" != z && 75 # test -d $JAVA_HOME && 76 # (test -d $JAVA_HOME/bin) 77 ## The following used to be the test, but failed on newer versions of MacOS 78 ## Cut back to something simpler, and rely on the later tests for JNIINC to confirm 79 ## files like 'jni.h' can be found 80 ## test -d $JAVA_HOME && 81 ## (test -d $JAVA_HOME/include || test -d $JAVA_HOME/../Headers) 82 #then 83 # AC_SUBST(JAVA_HOME) 84 # AC_MSG_RESULT([found in $JAVA_HOME]) 85 #else 86 # AC_MSG_ERROR([not found in \$JAVA_HOME]) 87 #fi 88 89 ## TODO: Check for specific header files in the JDK, or 90 ## functions/definitions within those headers? 91 92 ## TODO: guess which include directory to use under the JDK 93 94 #AC_PATH_PROG(javagdbm_cv_path_javah, javah, missing_javah) 95 #if test "$javagdbm_cv_path_javah" = missing_javah; then 96 # AC_MSG_ERROR([javah not found.]) 97 #fi 98 99 #AC_PATH_PROG(javagdbm_cv_path_java, java, missing) 100 #if test "$javagdbm_cv_path_java" = missing; then 101 # AC_MSG_ERROR([java not found.]) 102 #fi 103 104 # Replacing the above with a more streamlined test for 'javac' 105 # This should have the advantage of meaning its not mandated 106 # that JAVA_HOME must be set for it to locate a javac 107 AC_PROG_JAVAC 108 104 109 # check for gdbm library 105 110 #AC_CHECK_LIB(gdbm, gdbm_open, [javagdbm_cv_lib_gdbm="-lgdbm"],
Note:
See TracChangeset
for help on using the changeset viewer.