autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Logging --version


From: Akim Demaille
Subject: Logging --version
Date: 03 Apr 2001 23:09:51 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)

Here is my version of Mo's suggestion.

First here is the result.  Look for --version in there.  Please, tell
me if you think using --version can be risky, i.e., if running a
program we AC_CHECK_PROG for is bad.  Would root run
AC_CHECK_PROG(REBOOT, reboot)?  Hm, maybe not good enough for 2.50.

Yeah, let's wait.  Still, please comment.

/tmp % cat configure.ac                                          nostromo 23:06
AC_INIT
AC_F77_WRAPPERS
/tmp % cat config.log                                            nostromo Err 1
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure 2.49e, executed with
 > ./configure 

## ---------- ##
## Platform.  ##
## ---------- ##

hostname = nostromo
uname -m = i686
uname -r = 2.2.18pre21
uname -s = Linux
uname -v = #1 Sat Nov 18 18:47:15 EST 2000

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH = 
/home/lrde/prof/akim/bin:/home/lrde/prof/akim/bin:/home/lrde/prof/akim/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/X11R6/bin:/usr/local/kde/bin

## ------------ ##
## Core tests.  ##
## ------------ ##

configure:902: PATH=".;."; conftest.sh
./configure: conftest.sh: command not found
configure:905: $? = 127
configure:968: checking for g77
configure:983: found /usr/bin/g77
configure:985: /usr/bin/g77 --version </dev/null >&2
GNU Fortran 0.5.25 20010315 (release)
Copyright (C) 1997 Free Software Foundation, Inc.
For more version information on components of the GNU Fortran
compilation system, especially useful when reporting bugs,
type the command `g77 --verbose'.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
or type the command `info -f g77 Copying'.
configure:988: $? = 0
configure:997: result: g77
configure:1020: checking for Fortran 77 compiler default output
configure:1023: g77   conftest.f  >&5
/usr/lib/gcc-lib/i386-linux/2.95.3/libg2c.a(open.o): In function `f_open':
open.o(.text+0x637): the use of `tempnam' is dangerous, better use `mkstemp'
configure:1026: $? = 0
configure:1049: result: a.out
configure:1054: checking whether the Fortran 77 compiler works
configure:1060: ./a.out
configure:1063: $? = 0
configure:1078: result: yes
configure:1085: checking whether we are cross compiling
configure:1087: result: no
configure:1090: checking for executable suffix
configure:1092: g77 -o conftest   conftest.f  >&5
/usr/lib/gcc-lib/i386-linux/2.95.3/libg2c.a(open.o): In function `f_open':
open.o(.text+0x637): the use of `tempnam' is dangerous, better use `mkstemp'
configure:1095: $? = 0
configure:1117: result: 
configure:1123: checking for object suffix
configure:1134: g77 -c  conftest.f >&5
configure:1137: $? = 0
configure:1156: result: o
configure:1164: checking whether we are using the GNU Fortran 77 compiler
configure:1178: g77 -c  conftest.F >&5
configure:1181: $? = 0
configure:1184: test -s conftest.o
configure:1187: $? = 0
configure:1199: result: yes
configure:1206: checking whether g77 accepts -g
configure:1218: g77 -c -g conftest.f >&5
configure:1221: $? = 0
configure:1224: test -s conftest.o
configure:1227: $? = 0
configure:1238: result: yes
configure:1264: checking how to get verbose linking output from g77
configure:1276: g77 -c -g -O2 conftest.f >&5
configure:1279: $? = 0
configure:1282: test -s conftest.o
configure:1285: $? = 0
configure:1307: g77 -o conftest -g -O2 -v  conftest.f  >&5
g77 version 2.95.3 20010315 (Debian release) (from FSF-g77 version 0.5.25 
20010315 (release))
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.3/specs
gcc version 2.95.3 20010315 (Debian release)
 /usr/lib/gcc-lib/i386-linux/2.95.3/f771 conftest.f -quiet -dumpbase conftest.f 
-g -O2 -version -fversion -o /tmp/ccEAwOwQ.s
GNU F77 version 2.95.3 20010315 (Debian release) (i386-linux) compiled by GNU C 
version 2.95.3 20010315 (Debian release).
GNU Fortran Front End version 0.5.25 20010315 (release)
 as -V -Qy -o /tmp/ccSegndy.o /tmp/ccEAwOwQ.s
GNU assembler version 2.11.90.0.1 (i386-linux) using BFD version 2.11.90.0.1
 /usr/lib/gcc-lib/i386-linux/2.95.3/collect2 -m elf_i386 -dynamic-linker 
/lib/ld-linux.so.2 -o conftest /usr/lib/crt1.o /usr/lib/crti.o 
/usr/lib/gcc-lib/i386-linux/2.95.3/crtbegin.o 
-L/usr/lib/gcc-lib/i386-linux/2.95.3 /tmp/ccSegndy.o -lg2c -lm -lgcc -lc -lgcc 
/usr/lib/gcc-lib/i386-linux/2.95.3/crtend.o /usr/lib/crtn.o
/usr/lib/gcc-lib/i386-linux/2.95.3/libg2c.a(open.o): In function `f_open':
open.o(.text+0x637): the use of `tempnam' is dangerous, better use `mkstemp'
configure:1351: result: -v
configure:1353: checking for Fortran 77 libraries
configure:1379: g77 -o conftest -g -O2 -v  conftest.f  >&5
g77 version 2.95.3 20010315 (Debian release) (from FSF-g77 version 0.5.25 
20010315 (release))
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.3/specs
gcc version 2.95.3 20010315 (Debian release)
 /usr/lib/gcc-lib/i386-linux/2.95.3/f771 conftest.f -quiet -dumpbase conftest.f 
-g -O2 -version -fversion -o /tmp/ccKP0oQ8.s
GNU F77 version 2.95.3 20010315 (Debian release) (i386-linux) compiled by GNU C 
version 2.95.3 20010315 (Debian release).
GNU Fortran Front End version 0.5.25 20010315 (release)
 as -V -Qy -o /tmp/ccwjc3T8.o /tmp/ccKP0oQ8.s
GNU assembler version 2.11.90.0.1 (i386-linux) using BFD version 2.11.90.0.1
 /usr/lib/gcc-lib/i386-linux/2.95.3/collect2 -m elf_i386 -dynamic-linker 
/lib/ld-linux.so.2 -o conftest /usr/lib/crt1.o /usr/lib/crti.o 
/usr/lib/gcc-lib/i386-linux/2.95.3/crtbegin.o 
-L/usr/lib/gcc-lib/i386-linux/2.95.3 /tmp/ccwjc3T8.o -lg2c -lm -lgcc -lc -lgcc 
/usr/lib/gcc-lib/i386-linux/2.95.3/crtend.o /usr/lib/crtn.o
/usr/lib/gcc-lib/i386-linux/2.95.3/libg2c.a(open.o): In function `f_open':
open.o(.text+0x637): the use of `tempnam' is dangerous, better use `mkstemp'
configure:1534: result:  -L/usr/lib/gcc-lib/i386-linux/2.95.3 -lg2c -lm
configure:1593: checking for gcc
configure:1608: found /usr/bin/gcc
configure:1610: /usr/bin/gcc --version </dev/null >&2
2.95.3
configure:1613: $? = 0
configure:1622: result: gcc
configure:1879: checking whether we are using the GNU C compiler
configure:1900: gcc -c   conftest.c >&5
configure:1903: $? = 0
configure:1906: test -s conftest.o
configure:1909: $? = 0
configure:1921: result: yes
configure:1927: checking whether gcc accepts -g
configure:1945: gcc -c -g  conftest.c >&5
configure:1948: $? = 0
configure:1951: test -s conftest.o
configure:1954: $? = 0
configure:1964: result: yes
configure:1991: gcc -c -g -O2  conftest.c >&5
conftest.c:2: parse error before `me'
configure:1994: $? = 1
configure: failed program was:
#ifndef __cplusplus
  choke me
#endif
configure:2089: checking for Fortran 77 name-mangling scheme
configure:2107: g77 -c -g -O2 conftest.f >&5
configure:2110: $? = 0
configure:2113: test -s conftest.o
configure:2116: $? = 0
configure:2153: gcc -o conftest -g -O2   conftest.c cf77_test.o  
-L/usr/lib/gcc-lib/i386-linux/2.95.3 -lg2c -lm  >&5
/tmp/ccqDd25M.o: In function `main':
/tmp/configure:2146: undefined reference to `foobar'
collect2: ld returned 1 exit status
configure:2156: $? = 1
configure: failed program was:
#line 2134 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char foobar ();
int
main ()
{
foobar ();
  ;
  return 0;
}
configure:2153: gcc -o conftest -g -O2   conftest.c cf77_test.o  
-L/usr/lib/gcc-lib/i386-linux/2.95.3 -lg2c -lm  >&5
configure:2156: $? = 0
configure:2159: test -s conftest
configure:2162: $? = 0
configure:2208: gcc -o conftest -g -O2   conftest.c cf77_test.o  
-L/usr/lib/gcc-lib/i386-linux/2.95.3 -lg2c -lm  >&5
/tmp/cczaEpcP.o: In function `main':
/tmp/configure:2201: undefined reference to `foo_bar_'
collect2: ld returned 1 exit status
configure:2211: $? = 1
configure: failed program was:
#line 2189 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char foo_bar_ ();
int
main ()
{
foo_bar_ ();
  ;
  return 0;
}
configure:2208: gcc -o conftest -g -O2   conftest.c cf77_test.o  
-L/usr/lib/gcc-lib/i386-linux/2.95.3 -lg2c -lm  >&5
configure:2211: $? = 0
configure:2214: test -s conftest
configure:2217: $? = 0
configure:2264: result: lower case, underscore, extra underscore

## ----------------- ##
## Cache variables.  ##
## ----------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_f77_compiler_gnu=yes
ac_cv_f77_mangling='lower case, underscore, extra underscore'
ac_cv_flibs=' -L/usr/lib/gcc-lib/i386-linux/2.95.3 -lg2c -lm'
ac_cv_objext=o
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_F77=g77
ac_cv_prog_cc_g=yes
ac_cv_prog_f77_g=yes
ac_cv_prog_f77_v=-v

## ------------ ##
## confdefs.h.  ##
## ------------ ##

#define F77_FUNC(name,NAME) name ## _
#define F77_FUNC_(name,NAME) name ## __


configure: exit 0


Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * acgeneral.m4 (AC_CHECK_PROG, AC_PATH_PROG): Log the --version of
        the program used.
        Suggested by Mo Dejong.

Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.706
diff -u -u -r1.706 acgeneral.m4
--- acgeneral.m4 2001/03/30 12:49:36 1.706
+++ acgeneral.m4 2001/04/03 21:06:19
@@ -2395,6 +2395,8 @@
   continue
 fi])dnl
 ac_cv_prog_$1="$3"
+echo "$as_me:__oline__: found $ac_dir/$ac_word" >&AS_MESSAGE_LOG_FD
+AC_TRY_COMMAND([$ac_dir/$ac_word --version </dev/null >&2])
 break])
 m4_ifvaln([$6],
 [if test $ac_prog_rejected = yes; then
@@ -2459,6 +2461,8 @@
   AC_SHELL_PATH_WALK([$4],
 [if AS_EXECUTABLE_P("$ac_dir/$ac_word"); then
    ac_cv_path_$1="$ac_dir/$ac_word"
+   echo "$as_me:__oline__: found $ac_dir/$ac_word" >&AS_MESSAGE_LOG_FD
+   AC_TRY_COMMAND([$ac_dir/$ac_word --version </dev/null >&2])
    break
 fi])
 dnl If no 3rd arg is given, leave the cache variable unset,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]