Re: [Flex-help] flex-2.5.37 testsuite clean up on Solaris
flex is a tool for generating scanners
Brought to you by:
wlestes
|
From: Will E. <wes...@gm...> - 2012-10-24 18:38:58
|
For the record, the shell script autogen.sh in the top level of the flex source distribution is what I use to rebuild flex from the ground up. It likely has options that you will want to use yourself. --Will On Wednesday, 24 October 2012, 2:31 pm -0400, Dennis Clarke <dc...@bl...> wrote: > > Okay, looks like I have it sorted out now. For now I will try to just go through the usual motions after an autoreconf to see if this all works well. > > # uname -a > SunOS ns1 5.10 Generic_147440-21 sun4u sparc SUNW,UltraAX-i2 > # which cc > /opt/studio/SOS12/SUNWspro/bin/cc > # cc -V > cc: Sun C 5.9 SunOS_sparc Patch 124867-16 2010/08/11 > usage: cc [ options] files. Use 'cc -flags' for details > > I hand edited all the tests Makefile.am files and then ran autoreconf thus : > > # autoreconf --version > autoreconf (GNU Autoconf) 2.69 > Copyright (C) 2012 Free Software Foundation, Inc. > License GPLv3+/Autoconf: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. > > Written by David J. MacKenzie and Akim Demaille. > # > > > # autoreconf --verbose > autoreconf: Entering directory `.' > autoreconf: configure.in: not running autopoint: --install not given > autoreconf: running: aclocal -I m4 > m4/gettext.m4:378: warning: macro 'AM_LC_MESSAGES' not found in library > autoreconf: configure.in: tracing > autoreconf: configure.in: not using Libtool > autoreconf: running: /usr/local/bin/autoconf > autoreconf: running: /usr/local/bin/autoheader > autoreconf: running: automake --no-force > tests/test-table-opts/Makefile.am:33: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:34: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:37: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:37: warning: foreach opt,$(allopts: non-POSIX variable name > tests/test-table-opts/Makefile.am:37: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:38: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:38: warning: foreach opt,$(allopts: non-POSIX variable name > tests/test-table-opts/Makefile.am:38: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:39: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:39: warning: foreach opt,$(allopts: non-POSIX variable name > tests/test-table-opts/Makefile.am:39: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:40: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:43: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:43: warning: addsuffix $(EXEEXT: non-POSIX variable name > tests/test-table-opts/Makefile.am:43: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:44: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:44: warning: addsuffix $(EXEEXT: non-POSIX variable name > tests/test-table-opts/Makefile.am:44: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:45: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:45: warning: addsuffix $(EXEEXT: non-POSIX variable name > tests/test-table-opts/Makefile.am:45: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:46: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:49: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:49: warning: addsuffix .c,$(opttests: non-POSIX variable name > tests/test-table-opts/Makefile.am:49: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:50: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:50: warning: addsuffix .c,$(vertests: non-POSIX variable name > tests/test-table-opts/Makefile.am:50: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:51: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:51: warning: addsuffix .c,$(sertests: non-POSIX variable name > tests/test-table-opts/Makefile.am:51: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:52: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:55: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:55: warning: addsuffix .o,$(opttests: non-POSIX variable name > tests/test-table-opts/Makefile.am:55: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:56: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:56: warning: addsuffix .o,$(vertests: non-POSIX variable name > tests/test-table-opts/Makefile.am:56: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:57: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:57: warning: addsuffix .o,$(sertests: non-POSIX variable name > tests/test-table-opts/Makefile.am:57: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:58: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:61: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:61: warning: addsuffix .tables,$(sertests: non-POSIX variable name > tests/test-table-opts/Makefile.am:61: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:62: warning: ':='-style assignments are not portable > tests/test-table-opts/Makefile.am:62: warning: addsuffix .tables,$(alltests: non-POSIX variable name > tests/test-table-opts/Makefile.am:62: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:71: warning: '%'-style pattern rules are a GNU make extension > tests/test-table-opts/Makefile.am:72: warning: subst -,_,$(basename $(@F: non-POSIX variable name > tests/test-table-opts/Makefile.am:72: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:74: warning: '%'-style pattern rules are a GNU make extension > tests/test-table-opts/Makefile.am:75: warning: subst -,_,$(basename $(@F: non-POSIX variable name > tests/test-table-opts/Makefile.am:75: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:77: warning: '%'-style pattern rules are a GNU make extension > tests/test-table-opts/Makefile.am:78: warning: subst -,_,$(basename $(@F: non-POSIX variable name > tests/test-table-opts/Makefile.am:78: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:80: warning: '%'-style pattern rules are a GNU make extension > tests/test-table-opts/Makefile.am:81: warning: subst -,_,$(basename $(@F: non-POSIX variable name > tests/test-table-opts/Makefile.am:81: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:83: warning: '%'-style pattern rules are a GNU make extension > tests/test-table-opts/Makefile.am:84: warning: subst -,_,$(basename $(@F: non-POSIX variable name > tests/test-table-opts/Makefile.am:84: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:86: warning: '%'-style pattern rules are a GNU make extension > tests/test-table-opts/Makefile.am:87: warning: subst -,_,$(basename $(@F: non-POSIX variable name > tests/test-table-opts/Makefile.am:87: (probably a GNU make extension) > tests/test-table-opts/Makefile.am:89: warning: '%'-style pattern rules are a GNU make extension > tests/test-table-opts/Makefile.am:92: warning: '%'-style pattern rules are a GNU make extension > tests/test-table-opts/Makefile.am:95: warning: '%'-style pattern rules are a GNU make extension > tests/test-table-opts/Makefile.am:123: warning: '%'-style pattern rules are a GNU make extension > tests/test-table-opts/Makefile.am:124: warning: '%'-style pattern rules are a GNU make extension > tests/test-table-opts/Makefile.am:125: warning: '%'-style pattern rules are a GNU make extension > tests/test-table-opts/Makefile.am:127: warning: '%'-style pattern rules are a GNU make extension > tests/test-table-opts/Makefile.am:128: warning: '%'-style pattern rules are a GNU make extension > tests/test-table-opts/Makefile.am:129: warning: '%'-style pattern rules are a GNU make extension > autoreconf: Leaving directory `.' > # > > # ./configure --enable-dependency-tracking > checking for a BSD-compatible install... ./install-sh -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... ./install-sh -c -d > checking for gawk... no > checking for mawk... no > checking for nawk... nawk > checking whether make sets $(MAKE)... yes > checking whether NLS is requested... yes > checking for msgfmt... /usr/local/bin/msgfmt > checking for gmsgfmt... /usr/local/bin/msgfmt > checking for xgettext... /usr/local/bin/xgettext > checking for msgmerge... /usr/local/bin/msgmerge > checking for style of include used by make... GNU > checking for gcc... /opt/studio/SOS12/SUNWspro/bin/cc > checking whether the C compiler works... yes > checking for C compiler default output file name... a.out > checking for suffix of executables... > checking whether we are cross compiling... no > checking for suffix of object files... o > checking whether we are using the GNU C compiler... no > checking whether /opt/studio/SOS12/SUNWspro/bin/cc accepts -g... yes > checking for /opt/studio/SOS12/SUNWspro/bin/cc option to accept ISO C89... none needed > checking dependency style of /opt/studio/SOS12/SUNWspro/bin/cc... dashXmstdout > checking build system type... sparc-sun-solaris2.10 > checking host system type... sparc-sun-solaris2.10 > checking for non-GNU ld... /usr/ccs/bin/ld > checking if the linker (/usr/ccs/bin/ld) is GNU ld... no > checking for shared library run path origin... done > checking whether NLS is requested... yes > checking for GNU gettext in libc... no > checking for iconv... yes > checking how to link with libiconv... /usr/local/lib/libiconv.so -R/usr/local/lib > checking for GNU gettext in libintl... yes > checking whether to use NLS... yes > checking where the gettext function comes from... external libintl > checking how to link with libintl... /usr/local/lib/libintl.so -L/usr/local/lib /usr/local/lib/libiconv.so -lc -R/usr/local/lib > checking for bison... no > checking for byacc... no > checking for flex... no > checking for lex... lex > checking lex output file root... lex.yy > checking lex library... -ll > checking whether yytext is a pointer... no > checking for gcc... (cached) /opt/studio/SOS12/SUNWspro/bin/cc > checking whether we are using the GNU C compiler... (cached) no > checking whether /opt/studio/SOS12/SUNWspro/bin/cc accepts -g... (cached) yes > checking for /opt/studio/SOS12/SUNWspro/bin/cc option to accept ISO C89... (cached) none needed > checking dependency style of /opt/studio/SOS12/SUNWspro/bin/cc... (cached) dashXmstdout > checking whether we are using the GNU C++ compiler... no > checking whether /opt/studio/SOS12/SUNWspro/bin/CC accepts -g... yes > checking dependency style of /opt/studio/SOS12/SUNWspro/bin/CC... dashXmstdout > checking whether /opt/studio/SOS12/SUNWspro/bin/cc and cc understand -c and -o together... yes > checking whether ln -s works... yes > checking for ranlib... ranlib > checking for gawk... (cached) nawk > checking for bison... bison > checking for help2man... help2man > checking for m4 that supports -P... /usr/local/bin/m4 > checking for indent... /opt/studio/SOS12/SUNWspro/bin/indent > checking if /opt/studio/SOS12/SUNWspro/bin/indent is GNU indent... no > configure: WARNING: /opt/studio/SOS12/SUNWspro/bin/indent does not appear to be GNU indent. > checking how to run the C preprocessor... /opt/studio/SOS12/SUNWspro/bin/cc -E > checking for grep that handles long lines and -e... /usr/xpg4/bin/grep > checking for egrep... /usr/xpg4/bin/grep -E > checking for ANSI C header files... yes > checking for sys/wait.h that is POSIX.1 compatible... yes > checking for sys/types.h... yes > checking for sys/stat.h... yes > checking for stdlib.h... yes > checking for string.h... yes > checking for memory.h... yes > checking for strings.h... yes > checking for inttypes.h... yes > checking for stdint.h... yes > checking for unistd.h... yes > checking for inttypes.h... (cached) yes > checking libintl.h usability... yes > checking libintl.h presence... yes > checking for libintl.h... yes > checking limits.h usability... yes > checking limits.h presence... yes > checking for limits.h... yes > checking locale.h usability... yes > checking locale.h presence... yes > checking for locale.h... yes > checking malloc.h usability... yes > checking malloc.h presence... yes > checking for malloc.h... yes > checking netinet/in.h usability... yes > checking netinet/in.h presence... yes > checking for netinet/in.h... yes > checking regex.h usability... yes > checking regex.h presence... yes > checking for regex.h... yes > checking stddef.h usability... yes > checking stddef.h presence... yes > checking for stddef.h... yes > checking for stdlib.h... (cached) yes > checking for string.h... (cached) yes > checking for strings.h... (cached) yes > checking for unistd.h... (cached) yes > checking for pthread_mutex_lock in -lpthread... yes > checking pthread.h usability... yes > checking pthread.h presence... yes > checking for pthread.h... yes > checking for log10 in -lm... yes > checking for stdbool.h that conforms to C99... no > checking for _Bool... yes > checking for an ANSI C-conforming const... yes > checking for size_t... yes > checking for working alloca.h... yes > checking for alloca... yes > checking for pid_t... yes > checking vfork.h usability... no > checking vfork.h presence... no > checking for vfork.h... no > checking for fork... yes > checking for vfork... yes > checking for working fork... yes > checking for working vfork... (cached) yes > checking for stdlib.h... (cached) yes > checking for GNU libc compatible malloc... yes > checking for stdlib.h... (cached) yes > checking for GNU libc compatible realloc... yes > checking for dup2... yes > checking for isascii... yes > checking for memset... yes > checking for pow... yes > checking for regcomp... yes > checking for setlocale... yes > checking for strchr... yes > checking for strtol... yes > checking that generated files are newer than configure... done > configure: creating ./config.status > config.status: creating Makefile > config.status: creating doc/Makefile > config.status: creating examples/Makefile > config.status: creating examples/fastwc/Makefile > config.status: creating examples/manual/Makefile > config.status: creating lib/Makefile > config.status: creating po/Makefile.in > config.status: WARNING: 'po/Makefile.in.in' seems to ignore the --datarootdir setting > config.status: creating tools/Makefile > config.status: creating tests/Makefile > config.status: creating tests/TEMPLATE/Makefile > config.status: creating tests/test-array-nr/Makefile > config.status: creating tests/test-array-r/Makefile > config.status: creating tests/test-basic-nr/Makefile > config.status: creating tests/test-basic-r/Makefile > config.status: creating tests/test-bison-yylloc/Makefile > config.status: creating tests/test-bison-yylval/Makefile > config.status: creating tests/test-c-cpp-nr/Makefile > config.status: creating tests/test-c-cpp-r/Makefile > config.status: creating tests/test-header-nr/Makefile > config.status: creating tests/test-header-r/Makefile > config.status: creating tests/test-include-by-buffer/Makefile > config.status: creating tests/test-include-by-push/Makefile > config.status: creating tests/test-include-by-reentrant/Makefile > config.status: creating tests/test-multiple-scanners-nr/Makefile > config.status: creating tests/test-multiple-scanners-r/Makefile > config.status: creating tests/test-noansi-nr/Makefile > config.status: creating tests/test-noansi-r/Makefile > config.status: creating tests/test-prefix-nr/Makefile > config.status: creating tests/test-prefix-r/Makefile > config.status: creating tests/test-pthread/Makefile > config.status: creating tests/test-string-nr/Makefile > config.status: creating tests/test-string-r/Makefile > config.status: creating tests/test-yyextra/Makefile > config.status: creating tests/test-alloc-extra/Makefile > config.status: creating tests/test-lineno-nr/Makefile > config.status: creating tests/test-lineno-r/Makefile > config.status: creating tests/test-linedir-r/Makefile > config.status: creating tests/test-debug-r/Makefile > config.status: creating tests/test-debug-nr/Makefile > config.status: creating tests/test-mem-nr/Makefile > config.status: creating tests/test-mem-r/Makefile > config.status: creating tests/test-posix/Makefile > config.status: creating tests/test-posixly-correct/Makefile > config.status: creating tests/test-table-opts/Makefile > config.status: creating tests/test-c++-basic/Makefile > config.status: creating tests/test-bison-nr/Makefile > config.status: creating tests/test-reject/Makefile > config.status: creating tests/test-c++-multiple-scanners/Makefile > config.status: creating tests/test-top/Makefile > config.status: creating tests/test-rescan-nr/Makefile > config.status: creating tests/test-rescan-r/Makefile > config.status: creating tests/test-quotes/Makefile > config.status: creating tests/test-ccl/Makefile > config.status: creating tests/test-extended/Makefile > config.status: creating tests/test-c++-yywrap/Makefile > config.status: creating tests/test-concatenated-options/Makefile > config.status: creating config.h > config.status: config.h is unchanged > config.status: executing default-1 commands > config.status: creating po/POTFILES > config.status: creating po/Makefile > config.status: executing depfiles commands > # > > The end result is Makefiles in the tests directories like so : > > # grep CXX tests/test-c++-yywrap/Makefile | grep "\ \-o" > $(CXX) $(CXXFLAGS) -o $@ $(LDFLAGS) $(OBJS) > $(CXX) -c $(CXXFLAGS) -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $< > # > # grep CC tests/test-lineno-r/Makefile | grep "\ \-o" > $(CC) $(CFLAGS) -o $@ $(LDFLAGS) $(OBJS) $(LOADLIBES) > $(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $< > # > > those look correct to me as they now use $(CFLAGS) and $(CXXFLAGS) on the compile lines. > > However, I do see that for some reason the C++ compiler is still being called with the options from $CFLAGS. > > okay .. I'm working on it here ... bear with me > > Dennis > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Flex-help mailing list > Fle...@li... > https://lists.sourceforge.net/lists/listinfo/flex-help -- Will Estes (wl...@us...) Flex Project Maintainer http://flex.sourceforge.net/ |