public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: java/4295: Install problem for fastjar on Cygwin
@ 2001-10-16 13:36 Tom Tromey
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Tromey @ 2001-10-16 13:36 UTC (permalink / raw)
  To: tromey; +Cc: gcc-prs

The following reply was made to PR java/4295; it has been noted by GNATS.

From: Tom Tromey <tromey@redhat.com>
To: "Billinghurst, David (CRTS)" <David.Billinghurst@riotinto.com>
Cc: "'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>
Subject: Re: java/4295: Install problem for fastjar on Cygwin
Date: 15 Oct 2001 21:21:32 -0600

 >>>>> "David" == Billinghurst, David (CRTS) <David.Billinghurst@riotinto.com> writes:
 
 David> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4295&database=gcc
 David> I can test a cygwin related patch.  This bit me recently.
 
 The patch is appended.
 It includes the patch to `configure'.
 If this works for you I will check it in.
 
 Thanks!
 Tom
 
 Index: ChangeLog
 from  Tom Tromey  <tromey@redhat.com>
 
 	For PR java/4295:
 	* aclocal.m4, configure, Makefile.in: Rebuilt.
 	* configure.in: Added AC_EXEEXT.
 
 Index: Makefile.in
 ===================================================================
 RCS file: /cvs/gcc/gcc/fastjar/Makefile.in,v
 retrieving revision 1.7
 diff -u -r1.7 Makefile.in
 --- Makefile.in 2001/05/17 17:02:03 1.7
 +++ Makefile.in 2001/10/16 02:05:32
 @@ -66,6 +66,7 @@
  CC = @CC@
  CHMOD = @CHMOD@
  CP = @CP@
 +EXEEXT = @EXEEXT@
  MAKEINFO = @MAKEINFO@
  PACKAGE = @PACKAGE@
  RM = @RM@
 @@ -128,6 +129,7 @@
  mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  CONFIG_HEADER = config.h
  CONFIG_CLEAN_FILES =  install-defs.sh
 +bin_PROGRAMS =  jar$(EXEEXT)
  PROGRAMS =  $(bin_PROGRAMS)
  
  
 @@ -247,12 +249,12 @@
  
  maintainer-clean-compile:
  
 -grepjar: $(grepjar_OBJECTS) $(grepjar_DEPENDENCIES)
 -	@rm -f grepjar
 +grepjar$(EXEEXT): $(grepjar_OBJECTS) $(grepjar_DEPENDENCIES)
 +	@rm -f grepjar$(EXEEXT)
  	$(LINK) $(grepjar_LDFLAGS) $(grepjar_OBJECTS) $(grepjar_LDADD) $(LIBS)
  
 -jar: $(jar_OBJECTS) $(jar_DEPENDENCIES)
 -	@rm -f jar
 +jar$(EXEEXT): $(jar_OBJECTS) $(jar_DEPENDENCIES)
 +	@rm -f jar$(EXEEXT)
  	$(LINK) $(jar_LDFLAGS) $(jar_OBJECTS) $(jar_LDADD) $(LIBS)
  
  tags: TAGS
 Index: configure
 ===================================================================
 RCS file: /cvs/gcc/gcc/fastjar/configure,v
 retrieving revision 1.4
 diff -u -r1.4 configure
 --- configure 2001/06/28 19:42:24 1.4
 +++ configure 2001/10/16 02:05:35
 @@ -1220,7 +1220,102 @@
    echo "$ac_t""no" 1>&6
  fi
  
 +echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
 +echo "configure:1225: checking for Cygwin environment" >&5
 +if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
 +  echo $ac_n "(cached) $ac_c" 1>&6
 +else
 +  cat > conftest.$ac_ext <<EOF
 +#line 1230 "configure"
 +#include "confdefs.h"
 +
 +int main() {
 +
 +#ifndef __CYGWIN__
 +#define __CYGWIN__ __CYGWIN32__
 +#endif
 +return __CYGWIN__;
 +; return 0; }
 +EOF
 +if { (eval echo configure:1241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 +  rm -rf conftest*
 +  ac_cv_cygwin=yes
 +else
 +  echo "configure: failed program was:" >&5
 +  cat conftest.$ac_ext >&5
 +  rm -rf conftest*
 +  ac_cv_cygwin=no
 +fi
 +rm -f conftest*
 +rm -f conftest*
 +fi
  
 +echo "$ac_t""$ac_cv_cygwin" 1>&6
 +CYGWIN=
 +test "$ac_cv_cygwin" = yes && CYGWIN=yes
 +echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
 +echo "configure:1258: checking for mingw32 environment" >&5
 +if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
 +  echo $ac_n "(cached) $ac_c" 1>&6
 +else
 +  cat > conftest.$ac_ext <<EOF
 +#line 1263 "configure"
 +#include "confdefs.h"
 +
 +int main() {
 +return __MINGW32__;
 +; return 0; }
 +EOF
 +if { (eval echo configure:1270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 +  rm -rf conftest*
 +  ac_cv_mingw32=yes
 +else
 +  echo "configure: failed program was:" >&5
 +  cat conftest.$ac_ext >&5
 +  rm -rf conftest*
 +  ac_cv_mingw32=no
 +fi
 +rm -f conftest*
 +rm -f conftest*
 +fi
 +
 +echo "$ac_t""$ac_cv_mingw32" 1>&6
 +MINGW32=
 +test "$ac_cv_mingw32" = yes && MINGW32=yes
 +
 +
 +echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
 +echo "configure:1289: checking for executable suffix" >&5
 +if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
 +  echo $ac_n "(cached) $ac_c" 1>&6
 +else
 +  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
 +  ac_cv_exeext=.exe
 +else
 +  rm -f conftest*
 +  echo 'int main () { return 0; }' > conftest.$ac_ext
 +  ac_cv_exeext=
 +  if { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
 +    for file in conftest.*; do
 +      case $file in
 +      *.c | *.o | *.obj | *.ilk | *.pdb) ;;
 +      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
 +      esac
 +    done
 +  else
 +    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
 +  fi
 +  rm -f conftest*
 +  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
 +fi
 +fi
 +
 +EXEEXT=""
 +test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
 +echo "$ac_t""${ac_cv_exeext}" 1>&6
 +ac_exeext=$EXEEXT
 +
 +
  if test "$GCC" = yes; then
    fastjar_warn_cflags='-W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings'
  fi
 @@ -1231,12 +1326,12 @@
  do
  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
 -echo "configure:1235: checking for $ac_hdr that defines DIR" >&5
 +echo "configure:1330: checking for $ac_hdr that defines DIR" >&5
  if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
 -#line 1240 "configure"
 +#line 1335 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <$ac_hdr>
 @@ -1244,7 +1339,7 @@
  DIR *dirp = 0;
  ; return 0; }
  EOF
 -if { (eval echo configure:1248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 +if { (eval echo configure:1343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_header_dirent_$ac_safe=yes"
  else
 @@ -1269,7 +1364,7 @@
  # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  if test $ac_header_dirent = dirent.h; then
  echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
 -echo "configure:1273: checking for opendir in -ldir" >&5
 +echo "configure:1368: checking for opendir in -ldir" >&5
  ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
 @@ -1277,7 +1372,7 @@
    ac_save_LIBS="$LIBS"
  LIBS="-ldir  $LIBS"
  cat > conftest.$ac_ext <<EOF
 -#line 1281 "configure"
 +#line 1376 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
 @@ -1288,7 +1383,7 @@
  opendir()
  ; return 0; }
  EOF
 -if { (eval echo configure:1292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 +if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
 @@ -1310,7 +1405,7 @@
  
  else
  echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
 -echo "configure:1314: checking for opendir in -lx" >&5
 +echo "configure:1409: checking for opendir in -lx" >&5
  ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
 @@ -1318,7 +1413,7 @@
    ac_save_LIBS="$LIBS"
  LIBS="-lx  $LIBS"
  cat > conftest.$ac_ext <<EOF
 -#line 1322 "configure"
 +#line 1417 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
 @@ -1329,7 +1424,7 @@
  opendir()
  ; return 0; }
  EOF
 -if { (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 +if { (eval echo configure:1428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
 @@ -1352,7 +1447,7 @@
  fi
  
  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 -echo "configure:1356: checking how to run the C preprocessor" >&5
 +echo "configure:1451: checking how to run the C preprocessor" >&5
  # On Suns, sometimes $CPP names a directory.
  if test -n "$CPP" && test -d "$CPP"; then
    CPP=
 @@ -1367,13 +1462,13 @@
    # On the NeXT, cc -E runs the code through the compiler's parser,
    # not just through cpp.
    cat > conftest.$ac_ext <<EOF
 -#line 1371 "configure"
 +#line 1466 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 -{ (eval echo configure:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 +{ (eval echo configure:1472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    :
 @@ -1384,13 +1479,13 @@
    rm -rf conftest*
    CPP="${CC-cc} -E -traditional-cpp"
    cat > conftest.$ac_ext <<EOF
 -#line 1388 "configure"
 +#line 1483 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 -{ (eval echo configure:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 +{ (eval echo configure:1489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    :
 @@ -1401,13 +1496,13 @@
    rm -rf conftest*
    CPP="${CC-cc} -nologo -E"
    cat > conftest.$ac_ext <<EOF
 -#line 1405 "configure"
 +#line 1500 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 -{ (eval echo configure:1411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 +{ (eval echo configure:1506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    :
 @@ -1432,12 +1527,12 @@
  echo "$ac_t""$CPP" 1>&6
  
  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 -echo "configure:1436: checking for ANSI C header files" >&5
 +echo "configure:1531: checking for ANSI C header files" >&5
  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
 -#line 1441 "configure"
 +#line 1536 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  #include <stdarg.h>
 @@ -1445,7 +1540,7 @@
  #include <float.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 -{ (eval echo configure:1449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 +{ (eval echo configure:1544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    rm -rf conftest*
 @@ -1462,7 +1557,7 @@
  if test $ac_cv_header_stdc = yes; then
    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
 -#line 1466 "configure"
 +#line 1561 "configure"
  #include "confdefs.h"
  #include <string.h>
  EOF
 @@ -1480,7 +1575,7 @@
  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 <<EOF
 -#line 1484 "configure"
 +#line 1579 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
 @@ -1501,7 +1596,7 @@
    :
  else
    cat > conftest.$ac_ext <<EOF
 -#line 1505 "configure"
 +#line 1600 "configure"
  #include "confdefs.h"
  #include <ctype.h>
  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 @@ -1512,7 +1607,7 @@
  exit (0); }
  
  EOF
 -if { (eval echo configure:1516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 +if { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    :
  else
 @@ -1536,12 +1631,12 @@
  fi
  
  echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
 -echo "configure:1540: checking whether struct tm is in sys/time.h or time.h" >&5
 +echo "configure:1635: checking whether struct tm is in sys/time.h or time.h" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
 -#line 1545 "configure"
 +#line 1640 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <time.h>
 @@ -1549,7 +1644,7 @@
  struct tm *tp; tp->tm_sec;
  ; return 0; }
  EOF
 -if { (eval echo configure:1553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 +if { (eval echo configure:1648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_tm=time.h
  else
 @@ -1573,17 +1668,17 @@
  do
  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 -echo "configure:1577: checking for $ac_hdr" >&5
 +echo "configure:1672: checking for $ac_hdr" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
 -#line 1582 "configure"
 +#line 1677 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 -{ (eval echo configure:1587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 +{ (eval echo configure:1682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    rm -rf conftest*
 @@ -1611,12 +1706,12 @@
  
  
  echo $ac_n "checking for off_t""... $ac_c" 1>&6
 -echo "configure:1615: checking for off_t" >&5
 +echo "configure:1710: checking for off_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
 -#line 1620 "configure"
 +#line 1715 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
 @@ -1644,12 +1739,12 @@
  fi
  
  echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
 -echo "configure:1648: checking whether struct tm is in sys/time.h or time.h" >&5
 +echo "configure:1743: checking whether struct tm is in sys/time.h or time.h" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
 -#line 1653 "configure"
 +#line 1748 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <time.h>
 @@ -1657,7 +1752,7 @@
  struct tm *tp; tp->tm_sec;
  ; return 0; }
  EOF
 -if { (eval echo configure:1661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 +if { (eval echo configure:1756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_tm=time.h
  else
 @@ -1679,7 +1774,7 @@
  
  
  echo $ac_n "checking size of char""... $ac_c" 1>&6
 -echo "configure:1683: checking size of char" >&5
 +echo "configure:1778: checking size of char" >&5
  if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
 @@ -1687,7 +1782,7 @@
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
 -#line 1691 "configure"
 +#line 1786 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  main()
 @@ -1698,7 +1793,7 @@
    exit(0);
  }
  EOF
 -if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 +if { (eval echo configure:1797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_sizeof_char=`cat conftestval`
  else
 @@ -1718,7 +1813,7 @@
  
  
  echo $ac_n "checking size of short""... $ac_c" 1>&6
 -echo "configure:1722: checking size of short" >&5
 +echo "configure:1817: checking size of short" >&5
  if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
 @@ -1726,7 +1821,7 @@
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
 -#line 1730 "configure"
 +#line 1825 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  main()
 @@ -1737,7 +1832,7 @@
    exit(0);
  }
  EOF
 -if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 +if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_sizeof_short=`cat conftestval`
  else
 @@ -1757,7 +1852,7 @@
  
  
  echo $ac_n "checking size of int""... $ac_c" 1>&6
 -echo "configure:1761: checking size of int" >&5
 +echo "configure:1856: checking size of int" >&5
  if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
 @@ -1765,7 +1860,7 @@
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
 -#line 1769 "configure"
 +#line 1864 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  main()
 @@ -1776,7 +1871,7 @@
    exit(0);
  }
  EOF
 -if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 +if { (eval echo configure:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_sizeof_int=`cat conftestval`
  else
 @@ -1796,7 +1891,7 @@
  
  
  echo $ac_n "checking size of long""... $ac_c" 1>&6
 -echo "configure:1800: checking size of long" >&5
 +echo "configure:1895: checking size of long" >&5
  if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
 @@ -1804,7 +1899,7 @@
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
 -#line 1808 "configure"
 +#line 1903 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  main()
 @@ -1815,7 +1910,7 @@
    exit(0);
  }
  EOF
 -if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 +if { (eval echo configure:1914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_sizeof_long=`cat conftestval`
  else
 @@ -1835,7 +1930,7 @@
  
  
  echo $ac_n "checking size of long long""... $ac_c" 1>&6
 -echo "configure:1839: checking size of long long" >&5
 +echo "configure:1934: checking size of long long" >&5
  if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
 @@ -1843,7 +1938,7 @@
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
 -#line 1847 "configure"
 +#line 1942 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  main()
 @@ -1854,7 +1949,7 @@
    exit(0);
  }
  EOF
 -if { (eval echo configure:1858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 +if { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_sizeof_long_long=`cat conftestval`
  else
 @@ -1875,14 +1970,14 @@
  
  
  echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
 -echo "configure:1879: checking whether byte ordering is bigendian" >&5
 +echo "configure:1974: checking whether byte ordering is bigendian" >&5
  if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_cv_c_bigendian=unknown
  # See if sys/param.h defines the BYTE_ORDER macro.
  cat > conftest.$ac_ext <<EOF
 -#line 1886 "configure"
 +#line 1981 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/param.h>
 @@ -1893,11 +1988,11 @@
  #endif
  ; return 0; }
  EOF
 -if { (eval echo configure:1897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 +if { (eval echo configure:1992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    # It does; now see whether it defined to BIG_ENDIAN or not.
  cat > conftest.$ac_ext <<EOF
 -#line 1901 "configure"
 +#line 1996 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/param.h>
 @@ -1908,7 +2003,7 @@
  #endif
  ; return 0; }
  EOF
 -if { (eval echo configure:1912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 +if { (eval echo configure:2007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_c_bigendian=yes
  else
 @@ -1928,7 +2023,7 @@
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
 -#line 1932 "configure"
 +#line 2027 "configure"
  #include "confdefs.h"
  main () {
    /* Are we little or big endian?  From Harbison&Steele.  */
 @@ -1941,7 +2036,7 @@
    exit (u.c[sizeof (long) - 1] == 1);
  }
  EOF
 -if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 +if { (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
    ac_cv_c_bigendian=no
  else
 @@ -1978,7 +2073,7 @@
  use_zlib=maybe
  if test "$with_system_zlib" = yes; then
     echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
 -echo "configure:1982: checking for deflate in -lz" >&5
 +echo "configure:2077: checking for deflate in -lz" >&5
  ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
 @@ -1986,7 +2081,7 @@
    ac_save_LIBS="$LIBS"
  LIBS="-lz  $LIBS"
  cat > conftest.$ac_ext <<EOF
 -#line 1990 "configure"
 +#line 2085 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
 @@ -1997,7 +2092,7 @@
  deflate()
  ; return 0; }
  EOF
 -if { (eval echo configure:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 +if { (eval echo configure:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
 @@ -2181,6 +2276,7 @@
  s%@CP@%$CP%g
  s%@STRIP@%$STRIP%g
  s%@CHMOD@%$CHMOD%g
 +s%@EXEEXT@%$EXEEXT%g
  s%@fastjar_warn_cflags@%$fastjar_warn_cflags%g
  s%@CPP@%$CPP%g
  s%@ZLIBS@%$ZLIBS%g
 Index: configure.in
 ===================================================================
 RCS file: /cvs/gcc/gcc/fastjar/configure.in,v
 retrieving revision 1.4
 diff -u -r1.4 configure.in
 --- configure.in 2001/06/28 19:42:24 1.4
 +++ configure.in 2001/10/16 02:05:35
 @@ -10,6 +10,7 @@
  AC_PATH_PROG(CP, cp, /bin/cp, $PATH:/bin:/usr/bin:/usr/local/bin)
  AC_PATH_PROG(STRIP, strip, /usr/bin/strip, $PATH:/bin:/usr/bin:/usr/local/bin)
  AC_PATH_PROG(CHMOD, chmod, /bin/chmod, $PATH:/bin:/usr/bin:/usr/local/bin)
 +AC_EXEEXT
  
  dnl Add warning flags if we are using gcc.
  if test "$GCC" = yes; then


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: java/4295: Install problem for fastjar on Cygwin
@ 2001-10-17  9:00 tromey
  0 siblings, 0 replies; 8+ messages in thread
From: tromey @ 2001-10-17  9:00 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, java-prs, openup01, tromey

Synopsis: Install problem for fastjar on Cygwin

State-Changed-From-To: analyzed->closed
State-Changed-By: tromey
State-Changed-When: Wed Oct 17 09:00:40 2001
State-Changed-Why:
    I've fixed this.
    The fix will appear in gcj 3.1.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4295&database=gcc


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: java/4295: Install problem for fastjar on Cygwin
@ 2001-10-17  8:56 Tom Tromey
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Tromey @ 2001-10-17  8:56 UTC (permalink / raw)
  To: tromey; +Cc: gcc-prs

The following reply was made to PR java/4295; it has been noted by GNATS.

From: Tom Tromey <tromey@redhat.com>
To: "Billinghurst, David (CRTS)" <David.Billinghurst@riotinto.com>
Cc: "'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>
Subject: Re: java/4295: Install problem for fastjar on Cygwin
Date: 17 Oct 2001 10:10:52 -0600

 >>>>> "David" == Billinghurst, David (CRTS) <David.Billinghurst@riotinto.com> writes:
 
 David> It works.  Thanks.  Worth considering for 3.0.x.
 
 Thanks for the feedback.
 I think we're already too late for 3.0.2.
 Maybe 3.0.3 once the tree opens up again though.
 
 Tom


^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: java/4295: Install problem for fastjar on Cygwin
@ 2001-10-16 20:36 Billinghurst, David (CRTS)
  0 siblings, 0 replies; 8+ messages in thread
From: Billinghurst, David (CRTS) @ 2001-10-16 20:36 UTC (permalink / raw)
  To: tromey; +Cc: gcc-prs

The following reply was made to PR java/4295; it has been noted by GNATS.

From: "Billinghurst, David (CRTS)" <David.Billinghurst@riotinto.com>
To: "'tromey@redhat.com'" <tromey@redhat.com>
Cc: "'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>
Subject: RE: java/4295: Install problem for fastjar on Cygwin
Date: Wed, 17 Oct 2001 03:34:45 -0000

 It works.  Thanks.  Worth considering for 3.0.x.
 
 -----Original Message-----
 From: Tom Tromey [ mailto:tromey@redhat.com ]
 Sent: Tuesday, 16 October 2001 1:22 
 To: Billinghurst, David (CRTS)
 Cc: 'gcc-gnats@gcc.gnu.org'
 Subject: Re: java/4295: Install problem for fastjar on Cygwin
 
 
 >>>>> "David" == Billinghurst, David (CRTS)
 <David.Billinghurst@riotinto.com> writes:
 
 David> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4295&database=gcc
 David> I can test a cygwin related patch.  This bit me recently.
 
 The patch is appended.
 It includes the patch to `configure'.
 If this works for you I will check it in.
 
 Thanks!
 Tom


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: java/4295: Install problem for fastjar on Cygwin
@ 2001-10-15 19:06 Billinghurst, David (CRTS)
  0 siblings, 0 replies; 8+ messages in thread
From: Billinghurst, David (CRTS) @ 2001-10-15 19:06 UTC (permalink / raw)
  To: tromey; +Cc: gcc-prs

The following reply was made to PR java/4295; it has been noted by GNATS.

From: "Billinghurst, David (CRTS)" <David.Billinghurst@riotinto.com>
To: "'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>,
   "'gcc-prs@gcc.gnu.org'" <gcc-prs@gcc.gnu.org>,
   "'tromey@gcc.gnu.org'"
	 <tromey@gcc.gnu.org>,
   "'java-prs@gcc.gnu.org'" <java-prs@gcc.gnu.org>
Cc:  
Subject: Re: java/4295: Install problem for fastjar on Cygwin 
Date: Tue, 16 Oct 2001 01:35:30 -0000

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4295&database=gcc
 
 I can test a cygwin related patch.  This bit me recently.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: java/4295: Install problem for fastjar on Cygwin
@ 2001-09-17  9:56 Tom Tromey
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Tromey @ 2001-09-17  9:56 UTC (permalink / raw)
  To: tromey; +Cc: gcc-prs

The following reply was made to PR java/4295; it has been noted by GNATS.

From: Tom Tromey <tromey@redhat.com>
To: openup01@rd.francetelecom.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: java/4295: Install problem for fastjar on Cygwin
Date: 17 Sep 2001 11:02:59 -0600

 >>>>> ">" == openup01  <openup01@rd.francetelecom.com> writes:
 
 >> Synopsis:       Install problem for fastjar on Cygwin
 
 >> After doing the 'make bootstrap' (which works), the 'make install' fails
 >> in directory fastjar with a message like :
 >> chmod : file /usr/bin/#inst.1250# does not exist.
 
 >> It seems that the 'install-binPROGRAMS' target fails to specify correctly
 >> the .exe extension for the install-sh script.
 
 Thanks.  I believe the fix is as easy as adding `AC_EXEEXT' to the
 fastjar configure.in.  However, I don't have easy access to a Cygwin
 box to test this.  If I send you a patch can you test it?  I will send
 a patch that includes the changes to configure and Makefile.in, so you
 won't need autoconf or automake.
 
 Tom


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: java/4295: Install problem for fastjar on Cygwin
@ 2001-09-17  9:49 tromey
  0 siblings, 0 replies; 8+ messages in thread
From: tromey @ 2001-09-17  9:49 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, java-prs, nobody, openup01, tromey

Synopsis: Install problem for fastjar on Cygwin

Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Mon Sep 17 09:49:35 2001
Responsible-Changed-Why:
    I'm handling this.
State-Changed-From-To: open->analyzed
State-Changed-By: tromey
State-Changed-When: Mon Sep 17 09:49:35 2001
State-Changed-Why:
    I think we're merely missing AC_EXEEXT.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4295&database=gcc


^ permalink raw reply	[flat|nested] 8+ messages in thread

* java/4295: Install problem for fastjar on Cygwin
@ 2001-09-11  0:46 openup01
  0 siblings, 0 replies; 8+ messages in thread
From: openup01 @ 2001-09-11  0:46 UTC (permalink / raw)
  To: gcc-gnats

>Number:         4295
>Category:       java
>Synopsis:       Install problem for fastjar on Cygwin
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 11 00:46:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Laurent Vaucher
>Release:        GCC-3.0.1
>Organization:
>Environment:
i686-pc-cygwin
>Description:
After doing the 'make bootstrap' (which works), the 'make install' fails
in directory fastjar with a message like :
chmod : file /usr/bin/#inst.1250# does not exist.
>How-To-Repeat:

>Fix:
It seems that the 'install-binPROGRAMS' target fails to specify correctly
the .exe extension for the install-sh script.
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-10-17  9:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-16 13:36 java/4295: Install problem for fastjar on Cygwin Tom Tromey
  -- strict thread matches above, loose matches on Subject: below --
2001-10-17  9:00 tromey
2001-10-17  8:56 Tom Tromey
2001-10-16 20:36 Billinghurst, David (CRTS)
2001-10-15 19:06 Billinghurst, David (CRTS)
2001-09-17  9:56 Tom Tromey
2001-09-17  9:49 tromey
2001-09-11  0:46 openup01

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).