After installing GNU m4 1.4.18, bison 3.3.90 builds but "make check"
(or "gmake check") fails. See the attached log files.
log1 - configure
log2 - make
log3 - make check

Bruno
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc -m64 -O2
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... yes
checking whether gcc -m64 -O2 accepts -g... yes
checking for gcc -m64 -O2 option to enable C11 features... -std=gnu11
checking dependency style of gcc -m64 -O2 -std=gnu11... gcc3
checking whether we are using the GNU C++ compiler... yes
checking whether g++ -m64 -O2 accepts -g... yes
checking for g++ -m64 -O2 option to enable C++11 features... -std=gnu++11
checking dependency style of g++ -m64 -O2 -std=gnu++11... gcc3
checking how to run the C preprocessor... gcc -m64 -O2 -std=gnu11 -E
checking for grep that handles long lines and -e... /usr/bin/ggrep
checking for egrep... /usr/bin/ggrep -E
checking for ANSI C header files... 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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for Minix Amsterdam compiler... no
checking for ar... ar
checking for ranlib... ranlib
checking build system type... x86_64-pc-solaris2.11
checking host system type... x86_64-pc-solaris2.11
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether pragma GCC diagnostic push works... yes
checking whether C++ compiler handles -Werror -Wunknown-warning-option... no
checking whether C++ compiler handles -fno-exceptions... yes
checking whether C++ compiler accepts -std=c++98... no
checking whether C++ compiler accepts -std=c++98 -stdlib=libc++... no
checking whether C++ compiler accepts -std=c++03... no
checking whether C++ compiler accepts -std=c++03 -stdlib=libc++... no
checking whether C++ compiler accepts -std=c++11... yes
checking whether C++ compiler accepts -std=c++14... no
checking whether C++ compiler accepts -std=c++14 -stdlib=libc++... no
checking whether C++ compiler accepts -std=c++17... no
checking whether C++ compiler accepts -std=c++17 -stdlib=libc++... no
checking whether C++ compiler accepts -std=c++2a... no
checking whether C++ compiler accepts -std=c++2a -stdlib=libc++... no
checking whether gcc -m64 -O2 -std=gnu11 supports POSIXLY_CORRECT=1... yes
checking whether g++ -m64 -O2 -std=gnu++11 builds executables that work... yes
checking whether g++ -m64 -O2 -std=gnu++11 supports POSIXLY_CORRECT=1... yes
checking for dmd... no
checking for Java compiler... no
checking for Java virtual machine... java
checking for flex... no
checking for lex... lex
checking whether lex is flex... no
checking lex output file root... lex.yy
checking lex library... -ll
checking whether yytext is a pointer... no
configure: WARNING: bypassing lex because flex is required
checking for bison... no
checking for byacc... no
checking for ranlib... (cached) ranlib
checking for GNU M4 that supports accurate traces... 
/export/home/bruno/prefix64/bin/m4
checking whether /export/home/bruno/prefix64/bin/m4 accepts --gnu... yes
checking how m4 supports trace files... --debugfile
checking for perl... /usr/bin/perl
checking for xsltproc... /usr/bin/xsltproc
checking for locale.h... yes
checking for sys/param.h... yes
checking for sys/socket.h... yes
checking for unistd.h... (cached) yes
checking for stdio_ext.h... yes
checking for features.h... no
checking for getopt.h... yes
checking for sys/cdefs.h... no
checking for sys/time.h... yes
checking for limits.h... yes
checking for wchar.h... yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for math.h... yes
checking for sys/mman.h... yes
checking for spawn.h... yes
checking for sys/resource.h... yes
checking for sys/times.h... yes
checking for sys/wait.h... yes
checking for crtdefs.h... no
checking for wctype.h... yes
checking for sys/stat.h... (cached) yes
checking for inline... inline
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether malloc, realloc, calloc are POSIX compliant... yes
checking for canonicalize_file_name... yes
checking for getcwd... yes
checking for readlink... yes
checking for realpath... yes
checking for readlinkat... yes
checking for _set_invalid_parameter_handler... no
checking for fcntl... yes
checking for symlink... yes
checking for vasnprintf... no
checking for snprintf... yes
checking for fsync... yes
checking for microuptime... no
checking for nanouptime... no
checking for getprogname... yes
checking for getexecname... yes
checking for getrusage... yes
checking for gettimeofday... yes
checking for tcdrain... yes
checking for mbsinit... yes
checking for mbrtowc... yes
checking for isascii... yes
checking for mprotect... yes
checking for obstack_printf... no
checking for lstat... yes
checking for strerror_r... yes
checking for __xpg_strerror_r... no
checking for pipe2... no
checking for setenv... yes
checking for link... yes
checking for sigaction... yes
checking for sigaltstack... yes
checking for siginterrupt... yes
checking for strdup... yes
checking for strndup... yes
checking for pipe... yes
checking for iswcntrl... yes
checking for wcwidth... yes
checking for __fseterr... no
checking for getdtablesize... yes
checking for catgets... yes
checking for setlocale... yes
checking whether // is distinct from /... no
checking whether realpath works... yes
checking if environ is properly declared... no
checking whether the preprocessor supports include_next... yes
checking whether system header files limit the line length... no
checking for complete errno.h... yes
checking whether strerror_r is declared... yes
checking for strerror_r... (cached) yes
checking whether strerror_r returns char *... no
checking for sig_atomic_t... yes
checking for working fcntl.h... no (bad O_NOATIME)
checking for pid_t... yes
checking for mode_t... yes
checking for stdint.h... yes
checking for inttypes.h... yes
checking whether printf supports size specifiers as in C99... yes
checking whether printf supports 'long double' arguments... yes
checking whether printf supports infinite 'double' arguments... yes
checking whether byte ordering is bigendian... no
checking whether long double and double are the same... no
checking whether printf supports infinite 'long double' arguments... yes
checking whether printf supports the 'a' and 'A' directives... no
checking whether printf supports the 'F' directive... yes
checking whether printf supports the 'n' directive... yes
checking whether printf supports the 'ls' directive... no
checking whether printf supports POSIX/XSI format strings with positions... yes
checking whether printf supports the grouping flag... yes
checking whether printf supports the left-adjust flag correctly... yes
checking whether printf supports the zero flag correctly... yes
checking whether printf supports large precisions... yes
checking whether printf survives out-of-memory conditions... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking for wchar_t... yes
checking for wint_t... yes
checking whether wint_t is too small... no
checking for intmax_t... yes
checking where to find the exponent in a 'double'... word 1 bit 20
checking whether snprintf returns a byte count as in C99... yes
checking for snprintf... (cached) yes
checking for strnlen... yes
checking for wcslen... yes
checking for wcsnlen... yes
checking for mbrtowc... (cached) yes
checking for wcrtomb... yes
checking whether _snprintf is declared... no
checking for arithmetic hrtime_t... yes
checking for getopt.h... (cached) yes
checking for getopt_long_only... yes
checking whether getopt is POSIX compatible... yes
checking for working GNU getopt function... no
checking for C/C++ restrict keyword... __restrict
checking for struct timeval... yes
checking for wide-enough struct timeval.tv_sec member... yes
checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... no
checking whether stdint.h conforms to C99... no
checking sys/inttypes.h usability... yes
checking sys/inttypes.h presence... yes
checking for sys/inttypes.h... yes
checking sys/bitypes.h usability... no
checking sys/bitypes.h presence... no
checking for sys/bitypes.h... no
checking for bit size of ptrdiff_t... 64
checking for bit size of size_t... 64
checking for bit size of sig_atomic_t... 32
checking for bit size of wchar_t... 32
checking for bit size of wint_t... 32
checking whether sig_atomic_t is signed... yes
checking whether wchar_t is signed... yes
checking whether wint_t is signed... yes
checking for ptrdiff_t integer literal suffix... l
checking for size_t integer literal suffix... ul
checking for sig_atomic_t integer literal suffix... 
checking for wchar_t integer literal suffix... 
checking for wint_t integer literal suffix... 
checking for inttypes.h... (cached) yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking where to find the exponent in a 'float'... word 0 bit 23
checking whether isnan(float) can be used without linking with libm... yes
checking whether isnan(float) works... yes
checking whether isnan(double) can be used without linking with libm... yes
checking whether isnan(long double) can be used without linking with libm... yes
checking whether isnanl works... yes
checking whether ldexp() can be used without linking with libm... yes
checking for ld used by gcc -m64 -O2 -std=gnu11... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for shared library run path origin... done
checking 32-bit host C ABI... no
checking for 64-bit host... yes
checking for the common suffixes of directories in the library search path... 
lib/64,lib/amd64
checking for nl_langinfo and CODESET... yes
checking for a sed that does not truncate output... /usr/bin/gsed
checking for mbstate_t... yes
checking for a traditional japanese locale... none
checking for a transitional chinese locale... none
checking for a french Unicode locale... fr_FR.UTF-8
checking for mmap... yes
checking for MAP_ANONYMOUS... yes
checking whether memchr works... yes
checking whether <limits.h> defines MIN and MAX... no
checking whether <sys/param.h> defines MIN and MAX... no
checking whether obstack_printf is declared... no
checking for O_CLOEXEC... yes
checking for promoted mode_t type... mode_t
checking whether strerror(0) succeeds... yes
checking for strerror_r with POSIX signature... yes
checking whether strerror_r works... no
checking whether strerror_r is declared... (cached) yes
checking for library containing posix_spawn... none required
checking for posix_spawn... yes
checking whether posix_spawn works... yes
checking whether posix_spawnattr_setschedpolicy is supported... yes
checking whether posix_spawnattr_setschedparam is supported... yes
checking for nl_langinfo... yes
checking for ptrdiff_t... yes
checking whether C symbols are prefixed with underscore at the linker level... 
no
checking for sigset_t... yes
checking for shared library path variable... LD_LIBRARY_PATH
checking whether to activate relocatable installation... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether setenv is declared... yes
checking for uid_t in sys/types.h... yes
checking whether snprintf is declared... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking whether strdup is declared... yes
checking whether strndup is declared... yes
checking for struct timespec in <time.h>... yes
checking whether clearerr_unlocked is declared... no
checking whether feof_unlocked is declared... no
checking whether ferror_unlocked is declared... no
checking whether fflush_unlocked is declared... no
checking whether fgets_unlocked is declared... no
checking whether fputc_unlocked is declared... no
checking whether fputs_unlocked is declared... no
checking whether fread_unlocked is declared... no
checking whether fwrite_unlocked is declared... no
checking whether getc_unlocked is declared... yes
checking whether getchar_unlocked is declared... yes
checking whether putc_unlocked is declared... yes
checking whether putchar_unlocked is declared... yes
checking whether unsetenv is declared... yes
checking whether vsnprintf is declared... yes
checking whether <wchar.h> uses 'inline' correctly... yes
checking whether frexp() can be used without linking with libm... yes
checking whether alarm is declared... yes
checking whether stat file-mode macros are broken... no
checking for nlink_t... yes
checking whether getdtablesize is declared... yes
checking whether imported symbols can be declared weak... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_kill in -lpthread... yes
checking for multithread API to use... posix
checking whether lstat correctly handles trailing slash... yes
checking whether strnlen is declared... yes
checking for alloca as a compiler built-in... yes
checking whether to enable assertions... yes
checking for library containing clock_gettime... none required
checking for clock_gettime... yes
checking for clock_settime... yes
checking whether // is distinct from /... (cached) no
checking whether dup2 works... yes
checking for error_at_line... no
checking whether fcntl handles F_DUPFD correctly... yes
checking whether fcntl understands F_DUPFD_CLOEXEC... yes
checking whether conversion from 'int' to 'long double' works... yes
checking whether fopen recognizes a trailing slash... yes
checking for __fpending... yes
checking whether __fpending is declared... yes
checking for nl_langinfo... (cached) yes
checking for ptrdiff_t... (cached) yes
checking whether gethrtime is declared... yes
checking whether program_invocation_name is declared... no
checking whether program_invocation_short_name is declared... no
checking whether __argv is declared... no
checking whether __progname is defined in default libraries... yes
checking whether gettimeofday clobbers localtime buffer... no
checking for gettimeofday with POSIX signature... yes
checking whether INT32_MAX < INTMAX_MAX... yes
checking whether INT64_MAX == LONG_MAX... yes
checking whether UINT32_MAX < UINTMAX_MAX... yes
checking whether UINT64_MAX == ULONG_MAX... yes
checking whether isnan macro works... yes
checking whether isnan(double) can be used without linking with libm... 
(cached) yes
checking whether isnan(float) can be used without linking with libm... (cached) 
yes
checking whether isnan(float) works... (cached) yes
checking whether isnan(long double) can be used without linking with libm... 
(cached) yes
checking whether isnanl works... (cached) yes
checking whether ldexpl is declared... yes
checking whether ldexpl() can be used without linking with libm... no
checking whether ldexpl() can be used with libm... yes
checking whether ldexpl works... yes
checking for libtextstyle... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... (cached) yes
checking whether NAN macro works... yes
checking whether HUGE_VAL works... yes
checking whether mbrtowc handles incomplete characters... guessing yes
checking whether mbrtowc works as well as mbtowc... guessing yes
checking whether mbrtowc handles a NULL pwc argument... yes
checking whether mbrtowc handles a NULL string argument... yes
checking whether mbrtowc has a correct return value... yes
checking whether mbrtowc returns 0 when parsing a NUL character... guessing yes
checking whether mbrtowc works on empty input... yes
checking whether the C locale is free of encoding errors... yes
checking whether mbrtowc handles incomplete characters... (cached) guessing yes
checking whether mbrtowc works as well as mbtowc... (cached) guessing yes
checking whether mbswidth is declared in <wchar.h>... no
checking for mbstate_t... (cached) yes
checking for obstacks that work with any size object... no
checking whether open recognizes a trailing slash... yes
checking whether posix_spawn_file_actions_addclose works... no
checking whether posix_spawn_file_actions_adddup2 works... no
checking whether posix_spawn_file_actions_addopen works... no
checking whether program_invocation_name is declared... (cached) no
checking whether program_invocation_short_name is declared... (cached) no
checking for raise... yes
checking for sigprocmask... yes
checking whether readlink signature is correct... yes
checking whether readlink handles trailing slash correctly... yes
checking search.h usability... yes
checking search.h presence... yes
checking for search.h... yes
checking for tsearch... yes
checking whether rename honors trailing slash on destination... no
checking whether rename honors trailing slash on source... yes
checking whether rename manages hard links correctly... yes
checking whether rename manages existing destinations correctly... yes
checking for struct sigaction.sa_sigaction... yes
checking for volatile sig_atomic_t... yes
checking for sighandler_t... no
checking for sigprocmask... (cached) yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for snprintf... (cached) yes
checking whether snprintf respects a size of 1... yes
checking whether printf supports POSIX/XSI format strings with positions... 
(cached) yes
checking for snprintf... (cached) yes
checking whether snprintf truncates the result as in C99... yes
checking whether snprintf fully supports the 'n' directive... yes
checking whether snprintf respects a size of 1... (cached) yes
checking whether vsnprintf respects a zero size as in C99... yes
checking for nl_langinfo... (cached) yes
checking for ptrdiff_t... (cached) yes
checking for posix_spawnattr_t... yes
checking for posix_spawn_file_actions_t... yes
checking for nl_langinfo... (cached) yes
checking for ptrdiff_t... (cached) yes
checking for ssize_t... yes
checking for good max_align_t... yes
checking whether NULL can be used in arbitrary expressions... yes
checking which flavor of printf attribute matches inttypes macros... system
checking for stpcpy... yes
checking for working strerror function... yes
checking for working strndup... yes
checking for strverscmp... no
checking for struct tms... yes
checking whether unlink honors trailing slashes... yes
checking whether unlink of a parent directory fails as it should... guessing yes
checking for unsetenv... yes
checking for unsetenv() return type... int
checking whether unsetenv obeys POSIX... no
checking for ptrdiff_t... (cached) yes
checking for vsnprintf... yes
checking whether snprintf respects a size of 1... (cached) yes
checking whether printf supports POSIX/XSI format strings with positions... 
(cached) yes
checking for vsnprintf... (cached) yes
checking whether snprintf truncates the result as in C99... (cached) yes
checking whether snprintf fully supports the 'n' directive... (cached) yes
checking whether snprintf respects a size of 1... (cached) yes
checking whether vsnprintf respects a zero size as in C99... (cached) yes
checking for nl_langinfo... (cached) yes
checking for ptrdiff_t... (cached) yes
checking for nl_langinfo... (cached) yes
checking for ptrdiff_t... (cached) yes
checking for waitid... yes
checking whether iswcntrl works... yes
checking for towlower... yes
checking for wctype_t... yes
checking for wctrans_t... yes
checking whether wcwidth is declared... yes
checking whether wcwidth works reasonably in UTF-8 locales... yes
checking for stdint.h... (cached) yes
checking whether frexp works... yes
checking whether frexpl is declared... yes
checking whether frexpl() can be used without linking with libm... no
checking whether isnan(long double) can be used without linking with libm... 
(cached) yes
checking whether isnanl works... (cached) yes
checking whether isnan(double) can be used without linking with libm... 
(cached) yes
checking whether frexp works... (cached) yes
checking whether ldexp can be used without linking with libm... (cached) yes
checking whether frexpl() can be used without linking with libm... (cached) no
checking whether ldexpl() can be used without linking with libm... (cached) no
checking for signbit macro... yes
checking for signbit compiler built-ins... yes
checking for pthread_rwlock_t... yes
checking whether pthread_rwlock_rdlock prefers a writer to a reader... yes
checking whether getdtablesize works... yes
checking for nl_langinfo... (cached) yes
checking for ptrdiff_t... (cached) yes
checking whether stat handles trailing slashes on files... yes
checking for nlink_t... (cached) yes
checking for struct stat.st_atim.tv_nsec... yes
checking whether struct stat.st_atim is of type struct timespec... yes
checking for struct stat.st_birthtimespec.tv_nsec... no
checking for struct stat.st_birthtimensec... no
checking for struct stat.st_birthtim.tv_nsec... no
checking whether rmdir works... yes
checking if malloc debugging is wanted... no
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... no
checking for msgmerge... /usr/bin/msgmerge
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for valgrind... no
checking Valgrind suppression file... 
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating src/yacc
config.status: creating javacomp.sh
config.status: creating javaexec.sh
config.status: creating gnulib-po/Makefile.in
config.status: creating runtime-po/Makefile.in
config.status: creating etc/bench.pl
config.status: creating tests/atlocal
config.status: creating tests/bison
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating doc/yacc.1
config.status: creating lib/config.h
config.status: linking ../GNUmakefile to GNUmakefile
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating gnulib-po/POTFILES
config.status: creating gnulib-po/Makefile
config.status: creating runtime-po/POTFILES
config.status: creating runtime-po/Makefile
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing tests/atconfig commands
  LEX      examples/c/reccalc/scan.stamp
  LEX      examples/c/reccalc/scan.stamp
  LEX      examples/c/reccalc/scan.stamp
  GEN      lib/alloca.h
  GEN      lib/configmake.h
  GEN      lib/fcntl.h
  GEN      lib/getopt.h
  GEN      lib/getopt-cdefs.h
  GEN      lib/inttypes.h
  GEN      lib/textstyle.h
  GEN      lib/limits.h
  GEN      lib/math.h
  GEN      lib/signal.h
  GEN      lib/spawn.h
  GEN      lib/stdint.h
  GEN      lib/stdio.h
  GEN      lib/stdlib.h
  GEN      lib/string.h
  GEN      lib/sys/resource.h
  GEN      lib/sys/stat.h
  GEN      lib/sys/time.h
  GEN      lib/sys/times.h
  GEN      lib/sys/types.h
  GEN      lib/sys/wait.h
  GEN      lib/time.h
  GEN      lib/unistd.h
  GEN      lib/unitypes.h
  GEN      lib/uniwidth.h
  GEN      lib/wchar.h
  GEN      lib/wctype.h
make  all-recursive
Making all in po
Making all in runtime-po
Making all in gnulib-po
Making all in .
  CC       src/bison-AnnotationList.o
  CC       src/bison-InadequacyList.o
  CC       src/bison-Sbitset.o
  CC       src/bison-assoc.o
  CC       src/bison-closure.o
  CC       src/bison-complain.o
  CC       src/bison-conflicts.o
  CC       src/bison-derives.o
  CC       src/bison-files.o
  CC       src/bison-fixits.o
  CC       src/bison-getargs.o
  CC       src/bison-gram.o
  CC       src/bison-graphviz.o
  CC       src/bison-ielr.o
  CC       src/bison-lalr.o
  CC       src/bison-location.o
  CC       src/bison-lr0.o
  CC       src/bison-main.o
  CC       src/bison-muscle-tab.o
  CC       src/bison-named-ref.o
  CC       src/bison-nullable.o
  CC       src/bison-output.o
  CC       src/bison-parse-gram.o
  CC       src/bison-print-graph.o
  CC       src/bison-print-xml.o
  CC       src/bison-print.o
  CC       src/bison-reader.o
  CC       src/bison-reduce.o
  CC       src/bison-relation.o
  CC       src/bison-scan-code-c.o
  CC       src/bison-scan-gram-c.o
  CC       src/bison-scan-skel-c.o
  CC       src/bison-state.o
  CC       src/bison-symlist.o
  CC       src/bison-symtab.o
  CC       src/bison-tables.o
  CC       src/bison-uniqstr.o
  CC       lib/allocator.o
  CC       lib/areadlink.o
  CC       lib/argmatch.o
  CC       lib/gl_array_list.o
  CC       lib/binary-io.o
  CC       lib/bitrotate.o
  CC       lib/bitset.o
  CC       lib/bitset/array.o
  CC       lib/bitset/stats.o
  CC       lib/bitset/table.o
  CC       lib/bitset/list.o
  CC       lib/bitset/vector.o
  CC       lib/bitsetv.o
  CC       lib/c-ctype.o
  CC       lib/c-strcasecmp.o
  CC       lib/c-strncasecmp.o
  CC       lib/careadlinkat.o
  CC       lib/cloexec.o
  CC       lib/close-stream.o
  CC       lib/closeout.o
  CC       lib/concat-filename.o
  CC       lib/dirname.o
  CC       lib/basename.o
  CC       lib/dirname-lgpl.o
  CC       lib/basename-lgpl.o
  CC       lib/stripslash.o
  CC       lib/exitfail.o
  CC       lib/fatal-signal.o
  CC       lib/fd-safer-flag.o
  CC       lib/dup-safer-flag.o
  CC       lib/fopen-safer.o
  CC       lib/gethrxtime.o
  CC       lib/xtime.o
  CC       lib/getprogname.o
  CC       lib/gettime.o
  CC       lib/hash.o
  CC       lib/gl_list.o
  CC       lib/localcharset.o
  CC       lib/glthread/lock.o
  CC       lib/math.o
  CC       lib/mbswidth.o
  CC       lib/pipe2.o
  CC       lib/pipe2-safer.o
  CC       lib/printf-frexp.o
  CC       lib/printf-frexpl.o
  CC       lib/progname.o
  CC       lib/quotearg.o
  CC       lib/sig-handler.o
  CC       lib/spawn-pipe.o
  CC       lib/stat-time.o
  CC       lib/glthread/threadlib.o
  CC       lib/timespec.o
  CC       lib/timevar.o
  CC       lib/unistd.o
  CC       lib/dup-safer.o
  CC       lib/fd-safer.o
  CC       lib/pipe-safer.o
  CC       lib/uniwidth/width.o
  CC       lib/wait-process.o
  CC       lib/wctype-h.o
  CC       lib/xmalloc.o
  CC       lib/xalloc-die.o
  CC       lib/xconcat-filename.o
  CC       lib/gl_xlist.o
  CC       lib/xreadlink.o
  CC       lib/xsize.o
  CC       lib/xstrndup.o
  CC       lib/get-errno.o
  CC       lib/path-join.o
  CC       lib/asnprintf.o
  CC       lib/error.o
  CC       lib/fprintf.o
  CC       lib/frexpl.o
  CC       lib/fseterr.o
  CC       lib/getopt.o
  CC       lib/getopt1.o
  CC       lib/lstat.o
  CC       lib/obstack.o
  CC       lib/obstack_printf.o
  CC       lib/perror.o
  CC       lib/printf.o
  CC       lib/printf-args.o
  CC       lib/printf-parse.o
  CC       lib/rename.o
  CC       lib/snprintf.o
  CC       lib/spawn_faction_addclose.o
  CC       lib/spawn_faction_adddup2.o
  CC       lib/spawn_faction_addopen.o
  CC       lib/sprintf.o
  CC       lib/strerror.o
  CC       lib/strerror_r.o
  CC       lib/strverscmp.o
  CC       lib/unsetenv.o
  CC       lib/vasnprintf.o
  CC       lib/vfprintf.o
  CC       lib/vsnprintf.o
  CC       lib/vsprintf.o
  CC       lib/xmemdup0.o
  AR       lib/libbison.a
  CCLD     src/bison
  CC       lib/main.o
  CC       lib/yyerror.o
  AR       lib/liby.a
  LEX      examples/c/reccalc/scan.stamp
  LEX      examples/c/reccalc/scan.stamp
make  check-recursive
Making check in po
Making check in runtime-po
Making check in gnulib-po
Making check in .
make  examples/c/calc/calc  examples/c/lexcalc/lexcalc  
examples/c/mfcalc/mfcalc  examples/c/reccalc/reccalc  examples/c/rpcalc/rpcalc  
  examples/c++/variant examples/c++/variant-11   ./tests/bison  tests/atconfig 
tests/atlocal
  YACC     examples/c/calc/calc.c
scriptversion=2018-03-07.03; # UTC

# Copyright (C) 1996-2018 Free Software Foundation, Inc.
#
# Written by Tom Tromey <tro...@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.

# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.

# This file is maintained in Automake, please report
# bugs to <bug-autom...@gnu.org> or send patches to
# <automake-patc...@gnu.org>.

+ scriptversion=2018-03-07.03
get_dirname ()
{
  case $1 in
    */*|*\\*) printf '%s\n' "$1" | sed -e 's|\([\\/]\)[^\\/]*$|\1|';;
    # Otherwise,  we want the empty string (not ".").
  esac
}

# guard FILE
# ----------
# The CPP macro used to guard inclusion of FILE.
guard ()
{
  printf '%s\n' "$1"                                                    \
    | sed                                                               \
        -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'   \
        -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'                        \
        -e 's/__*/_/g'
}

# quote_for_sed [STRING]
# ----------------------
# Return STRING (or stdin) quoted to be used as a sed pattern.
quote_for_sed ()
{
  case $# in
    0) cat;;
    1) printf '%s\n' "$1";;
  esac \
    | sed -e 's|[][\\.*]|\\&|g'
}

case "$1" in
  '')
    echo "$0: No files given.  Try '$0 --help' for more information." 1>&2
    exit 1
    ;;
  --basedir)
    basedir=$2
    shift 2
    ;;
  -h|--h*)
    cat <<\EOF
Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...

Wrapper for lex/yacc invocations, renaming files as desired.

  INPUT is the input file
  OUTPUT is one file PROG generates
  DESIRED is the file we actually want instead of OUTPUT
  PROGRAM is program to run
  ARGS are passed to PROG

Any number of OUTPUT,DESIRED pairs may be used.

Report bugs to <bug-autom...@gnu.org>.
EOF
    exit $?
    ;;
  -v|--v*)
    echo "ylwrap $scriptversion"
    exit $?
    ;;
esac


# The input.
input=$1
+ input=../examples/c/calc/calc.y
shift
+ shift
# We'll later need for a correct munging of "#line" directives.
input_sub_rx=`get_dirname "$input" | quote_for_sed`
get_dirname "$input" | quote_for_sed+ get_dirname ../examples/c/calc/calc.y
+ sed -e 's|\([\\/]\)[^\\/]*$|\1|'
+ quote_for_sed
+ sed -e 's|[][\\.*]|\\&|g'
+ printf '%s\n' ../examples/c/calc/calc.y
+ cat
+ input_sub_rx='\.\./examples/c/calc/'
case $input in
  [\\/]* | ?:[\\/]*)
    # Absolute path; do nothing.
    ;;
  *)
    # Relative path.  Make it absolute.
    input=`pwd`/$input
    ;;
esac
pwd+ pwd
+ input=/export/home/bruno/bison-3.3.90/build-64/../examples/c/calc/calc.y
input_rx=`get_dirname "$input" | quote_for_sed`

get_dirname "$input" | quote_for_sed+ get_dirname 
/export/home/bruno/bison-3.3.90/build-64/../examples/c/calc/calc.y
+ sed -e 's|\([\\/]\)[^\\/]*$|\1|'
+ quote_for_sed
+ sed -e 's|[][\\.*]|\\&|g'
+ printf '%s\n' 
/export/home/bruno/bison-3.3.90/build-64/../examples/c/calc/calc.y
+ cat
+ input_rx='/export/home/bruno/bison-3\.3\.90/build-64/\.\./examples/c/calc/'
# Since DOS filename conventions don't allow two dots,
# the DOS version of Bison writes out y_tab.c instead of y.tab.c
# and y_tab.h instead of y.tab.h. Test to see if this is the case.
y_tab_nodot=false
+ y_tab_nodot=false
if test -f y_tab.c || test -f y_tab.h; then
  y_tab_nodot=true
fi

+ test -f y_tab.c
+ test -f y_tab.h
# The parser itself, the first file, is the destination of the .y.c
# rule in the Makefile.
parser=$1

+ parser=y.tab.c
# A sed program to s/FROM/TO/g for all the FROM/TO so that, for
# instance, we rename #include "y.tab.h" into #include "parse.h"
# during the conversion from y.tab.c to parse.c.
sed_fix_filenames=

+ sed_fix_filenames=''
# Also rename header guards, as Bison 2.7 for instance uses its header
# guard in its implementation file.
sed_fix_header_guards=

+ sed_fix_header_guards=''
while test $# -ne 0; do
  if test x"$1" = x"--"; then
    shift
    break
  fi
  from=$1
  # Handle y_tab.c and y_tab.h output by DOS
  if $y_tab_nodot; then
    case $from in
      "y.tab.c") from=y_tab.c;;
      "y.tab.h") from=y_tab.h;;
    esac
  fi
  shift
  to=$1
  shift
  sed_fix_filenames="${sed_fix_filenames}s|"`quote_for_sed "$from"`"|$to|g;"
  sed_fix_header_guards="${sed_fix_header_guards}s|"`guard "$from"`"|"`guard 
"$to"`"|g;"
done

+ test 15 -ne 0
+ test xy.tab.c '=' x--
+ from=y.tab.c
+ false
+ shift
+ to=examples/c/calc/calc.c
+ shift
quote_for_sed "$from"+ quote_for_sed y.tab.c
+ sed -e 's|[][\\.*]|\\&|g'
+ printf '%s\n' y.tab.c
+ sed_fix_filenames='s|y\.tab\.c|examples/c/calc/calc.c|g;'
guard "$from"+ guard y.tab.c
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 
's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ printf '%s\n' y.tab.c
guard "$to"+ guard examples/c/calc/calc.c
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 
's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ printf '%s\n' examples/c/calc/calc.c
+ sed_fix_header_guards='s|Y_TAB_C|EXAMPLES_C_CALC_CALC_C|g;'
+ test 13 -ne 0
+ test xy.tab.h '=' x--
+ from=y.tab.h
+ false
+ shift
+ to=examples/c/calc/calc.h
+ shift
quote_for_sed "$from"+ quote_for_sed y.tab.h
+ sed -e 's|[][\\.*]|\\&|g'
+ printf '%s\n' y.tab.h
+ 
sed_fix_filenames='s|y\.tab\.c|examples/c/calc/calc.c|g;s|y\.tab\.h|examples/c/calc/calc.h|g;'
guard "$from"+ guard y.tab.h
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 
's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ printf '%s\n' y.tab.h
guard "$to"+ guard examples/c/calc/calc.h
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 
's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ printf '%s\n' examples/c/calc/calc.h
+ 
sed_fix_header_guards='s|Y_TAB_C|EXAMPLES_C_CALC_CALC_C|g;s|Y_TAB_H|EXAMPLES_C_CALC_CALC_H|g;'
+ test 11 -ne 0
+ test xy.output '=' x--
+ from=y.output
+ false
+ shift
+ to=examples/c/calc/calc.output
+ shift
quote_for_sed "$from"+ quote_for_sed y.output
+ sed -e 's|[][\\.*]|\\&|g'
+ printf '%s\n' y.output
+ 
sed_fix_filenames='s|y\.tab\.c|examples/c/calc/calc.c|g;s|y\.tab\.h|examples/c/calc/calc.h|g;s|y\.output|examples/c/calc/calc.output|g;'
guard "$from"+ guard y.output
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 
's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ printf '%s\n' y.output
guard "$to"+ guard examples/c/calc/calc.output
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 
's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ printf '%s\n' examples/c/calc/calc.output
+ 
sed_fix_header_guards='s|Y_TAB_C|EXAMPLES_C_CALC_CALC_C|g;s|Y_TAB_H|EXAMPLES_C_CALC_CALC_H|g;s|Y_OUTPUT|EXAMPLES_C_CALC_CALC_OUTPUT|g;'
+ test 9 -ne 0
+ test x-- '=' x--
+ shift
+ break
# The program to run.
prog=$1
+ prog=./tests/bison
shift
+ shift
# Make any relative path in $prog absolute.
case $prog in
  [\\/]* | ?:[\\/]*) ;;
  *[\\/]*) prog=`pwd`/$prog ;;
esac

pwd+ pwd
+ prog=/export/home/bruno/bison-3.3.90/build-64/./tests/bison
dirname=ylwrap$$
+ dirname=ylwrap28640
do_exit="cd '`pwd`' && rm -rf $dirname > /dev/null 2>&1;"' (exit $ret); exit 
$ret'
pwd+ pwd
+ do_exit=$'cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf 
ylwrap28640 > /dev/null 2>&1; (exit $ret); exit $ret'
trap "ret=129; $do_exit" 1
+ trap ret=$'129; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf 
ylwrap28640 > /dev/null 2>&1; (exit $ret); exit $ret' 1
trap "ret=130; $do_exit" 2
+ trap ret=$'130; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf 
ylwrap28640 > /dev/null 2>&1; (exit $ret); exit $ret' 2
trap "ret=141; $do_exit" 13
+ trap ret=$'141; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf 
ylwrap28640 > /dev/null 2>&1; (exit $ret); exit $ret' 13
trap "ret=143; $do_exit" 15
+ trap ret=$'143; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf 
ylwrap28640 > /dev/null 2>&1; (exit $ret); exit $ret' 15
mkdir $dirname || exit 1

+ mkdir ylwrap28640
cd $dirname

+ cd ylwrap28640
case $# in
  0) "$prog" "$input" ;;
  *) "$prog" "$@" "$input" ;;
esac
+ /export/home/bruno/bison-3.3.90/build-64/./tests/bison -o y.tab.c --defines 
-Werror -Wall '--report=all' --no-lines 
/export/home/bruno/bison-3.3.90/build-64/../examples/c/calc/calc.y
ret=$?

+ ret=0
if test $ret -eq 0; then
  for from in *
  do
    to=`printf '%s\n' "$from" | sed "$sed_fix_filenames"`
    if test -f "$from"; then
      # If $2 is an absolute path name, then just use that,
      # otherwise prepend '../'.
      case $to in
        [\\/]* | ?:[\\/]*) target=$to;;
        *) target=../$to;;
      esac

      # Do not overwrite unchanged header files to avoid useless
      # recompilations.  Always update the parser itself: it is the
      # destination of the .y.c rule in the Makefile.  Divert the
      # output of all other files to a temporary file so we can
      # compare them to existing versions.
      if test $from != $parser; then
        realtarget=$target
        target=tmp-`printf '%s\n' "$target" | sed 's|.*[\\/]||g'`
      fi

      # Munge "#line" or "#" directives.  Don't let the resulting
      # debug information point at an absolute srcdir.  Use the real
      # output file name, not yy.lex.c for instance.  Adjust the
      # include guards too.
      sed -e "/^#/!b"                           \
          -e "s|$input_rx|$input_sub_rx|"       \
          -e "$sed_fix_filenames"               \
          -e "$sed_fix_header_guards"           \
        "$from" >"$target" || ret=$?

      # Check whether files must be updated.
      if test "$from" != "$parser"; then
        if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then
          echo "$to is unchanged"
          rm -f "$target"
        else
          echo "updating $to"
          mv -f "$target" "$realtarget"
        fi
      fi
    else
      # A missing file is only an error for the parser.  This is a
      # blatant hack to let us support using "yacc -d".  If -d is not
      # specified, don't fail when the header file is "missing".
      if test "$from" = "$parser"; then
        ret=1
      fi
    fi
  done
fi

+ test 0 -eq 0
printf '%s\n' "$from" | sed "$sed_fix_filenames"+ printf '%s\n' y.output
+ sed 
's|y\.tab\.c|examples/c/calc/calc.c|g;s|y\.tab\.h|examples/c/calc/calc.h|g;s|y\.output|examples/c/calc/calc.output|g;'
+ to=examples/c/calc/calc.output
+ test -f y.output
+ target=../examples/c/calc/calc.output
+ test y.output '!=' y.tab.c
+ realtarget=../examples/c/calc/calc.output
printf '%s\n' "$target" | sed 's|.*[\/]||g'+ printf '%s\n' 
../examples/c/calc/calc.output
+ sed 's|.*[\/]||g'
+ target=tmp-calc.output
+ sed -e /^#/!b -e 
's|/export/home/bruno/bison-3\.3\.90/build-64/\.\./examples/c/calc/|\.\./examples/c/calc/|'
 -e 
's|y\.tab\.c|examples/c/calc/calc.c|g;s|y\.tab\.h|examples/c/calc/calc.h|g;s|y\.output|examples/c/calc/calc.output|g;'
 -e 
's|Y_TAB_C|EXAMPLES_C_CALC_CALC_C|g;s|Y_TAB_H|EXAMPLES_C_CALC_CALC_H|g;s|Y_OUTPUT|EXAMPLES_C_CALC_CALC_OUTPUT|g;'
 y.output
+ 1> tmp-calc.output
+ test y.output '!=' y.tab.c
+ test -f ../examples/c/calc/calc.output
+ echo 'updating examples/c/calc/calc.output'
updating examples/c/calc/calc.output
+ mv -f tmp-calc.output ../examples/c/calc/calc.output
printf '%s\n' "$from" | sed "$sed_fix_filenames"+ printf '%s\n' y.tab.c
+ sed 
's|y\.tab\.c|examples/c/calc/calc.c|g;s|y\.tab\.h|examples/c/calc/calc.h|g;s|y\.output|examples/c/calc/calc.output|g;'
+ to=examples/c/calc/calc.c
+ test -f y.tab.c
+ target=../examples/c/calc/calc.c
+ test y.tab.c '!=' y.tab.c
+ sed -e /^#/!b -e 
's|/export/home/bruno/bison-3\.3\.90/build-64/\.\./examples/c/calc/|\.\./examples/c/calc/|'
 -e 
's|y\.tab\.c|examples/c/calc/calc.c|g;s|y\.tab\.h|examples/c/calc/calc.h|g;s|y\.output|examples/c/calc/calc.output|g;'
 -e 
's|Y_TAB_C|EXAMPLES_C_CALC_CALC_C|g;s|Y_TAB_H|EXAMPLES_C_CALC_CALC_H|g;s|Y_OUTPUT|EXAMPLES_C_CALC_CALC_OUTPUT|g;'
 y.tab.c
+ 1> ../examples/c/calc/calc.c
+ test y.tab.c '!=' y.tab.c
printf '%s\n' "$from" | sed "$sed_fix_filenames"+ printf '%s\n' y.tab.h
+ sed 
's|y\.tab\.c|examples/c/calc/calc.c|g;s|y\.tab\.h|examples/c/calc/calc.h|g;s|y\.output|examples/c/calc/calc.output|g;'
+ to=examples/c/calc/calc.h
+ test -f y.tab.h
+ target=../examples/c/calc/calc.h
+ test y.tab.h '!=' y.tab.c
+ realtarget=../examples/c/calc/calc.h
printf '%s\n' "$target" | sed 's|.*[\/]||g'+ printf '%s\n' 
../examples/c/calc/calc.h
+ sed 's|.*[\/]||g'
+ target=tmp-calc.h
+ sed -e /^#/!b -e 
's|/export/home/bruno/bison-3\.3\.90/build-64/\.\./examples/c/calc/|\.\./examples/c/calc/|'
 -e 
's|y\.tab\.c|examples/c/calc/calc.c|g;s|y\.tab\.h|examples/c/calc/calc.h|g;s|y\.output|examples/c/calc/calc.output|g;'
 -e 
's|Y_TAB_C|EXAMPLES_C_CALC_CALC_C|g;s|Y_TAB_H|EXAMPLES_C_CALC_CALC_H|g;s|Y_OUTPUT|EXAMPLES_C_CALC_CALC_OUTPUT|g;'
 y.tab.h
+ 1> tmp-calc.h
+ test y.tab.h '!=' y.tab.c
+ test -f ../examples/c/calc/calc.h
+ echo 'updating examples/c/calc/calc.h'
updating examples/c/calc/calc.h
+ mv -f tmp-calc.h ../examples/c/calc/calc.h
# Remove the directory.
cd ..
+ cd ..
rm -rf $dirname

+ rm -rf ylwrap28640
exit $ret

+ exit 0
  CC       examples/c/calc/calc-calc.o
  CCLD     examples/c/calc/calc
  YACC     examples/c/lexcalc/parse.c
scriptversion=2018-03-07.03; # UTC

# Copyright (C) 1996-2018 Free Software Foundation, Inc.
#
# Written by Tom Tromey <tro...@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.

# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.

# This file is maintained in Automake, please report
# bugs to <bug-autom...@gnu.org> or send patches to
# <automake-patc...@gnu.org>.

+ scriptversion=2018-03-07.03
get_dirname ()
{
  case $1 in
    */*|*\\*) printf '%s\n' "$1" | sed -e 's|\([\\/]\)[^\\/]*$|\1|';;
    # Otherwise,  we want the empty string (not ".").
  esac
}

# guard FILE
# ----------
# The CPP macro used to guard inclusion of FILE.
guard ()
{
  printf '%s\n' "$1"                                                    \
    | sed                                                               \
        -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'   \
        -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'                        \
        -e 's/__*/_/g'
}

# quote_for_sed [STRING]
# ----------------------
# Return STRING (or stdin) quoted to be used as a sed pattern.
quote_for_sed ()
{
  case $# in
    0) cat;;
    1) printf '%s\n' "$1";;
  esac \
    | sed -e 's|[][\\.*]|\\&|g'
}

case "$1" in
  '')
    echo "$0: No files given.  Try '$0 --help' for more information." 1>&2
    exit 1
    ;;
  --basedir)
    basedir=$2
    shift 2
    ;;
  -h|--h*)
    cat <<\EOF
Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...

Wrapper for lex/yacc invocations, renaming files as desired.

  INPUT is the input file
  OUTPUT is one file PROG generates
  DESIRED is the file we actually want instead of OUTPUT
  PROGRAM is program to run
  ARGS are passed to PROG

Any number of OUTPUT,DESIRED pairs may be used.

Report bugs to <bug-autom...@gnu.org>.
EOF
    exit $?
    ;;
  -v|--v*)
    echo "ylwrap $scriptversion"
    exit $?
    ;;
esac


# The input.
input=$1
+ input=../examples/c/lexcalc/parse.y
shift
+ shift
# We'll later need for a correct munging of "#line" directives.
input_sub_rx=`get_dirname "$input" | quote_for_sed`
get_dirname "$input" | quote_for_sed+ get_dirname ../examples/c/lexcalc/parse.y
+ quote_for_sed
+ printf '%s\n' ../examples/c/lexcalc/parse.y
+ sed -e 's|\([\\/]\)[^\\/]*$|\1|'
+ cat
+ sed -e 's|[][\\.*]|\\&|g'
+ input_sub_rx='\.\./examples/c/lexcalc/'
case $input in
  [\\/]* | ?:[\\/]*)
    # Absolute path; do nothing.
    ;;
  *)
    # Relative path.  Make it absolute.
    input=`pwd`/$input
    ;;
esac
pwd+ pwd
+ input=/export/home/bruno/bison-3.3.90/build-64/../examples/c/lexcalc/parse.y
input_rx=`get_dirname "$input" | quote_for_sed`

get_dirname "$input" | quote_for_sed+ get_dirname 
/export/home/bruno/bison-3.3.90/build-64/../examples/c/lexcalc/parse.y
+ sed -e 's|\([\\/]\)[^\\/]*$|\1|'
+ quote_for_sed
+ printf '%s\n' 
/export/home/bruno/bison-3.3.90/build-64/../examples/c/lexcalc/parse.y
+ cat
+ sed -e 's|[][\\.*]|\\&|g'
+ input_rx='/export/home/bruno/bison-3\.3\.90/build-64/\.\./examples/c/lexcalc/'
# Since DOS filename conventions don't allow two dots,
# the DOS version of Bison writes out y_tab.c instead of y.tab.c
# and y_tab.h instead of y.tab.h. Test to see if this is the case.
y_tab_nodot=false
+ y_tab_nodot=false
if test -f y_tab.c || test -f y_tab.h; then
  y_tab_nodot=true
fi

+ test -f y_tab.c
+ test -f y_tab.h
# The parser itself, the first file, is the destination of the .y.c
# rule in the Makefile.
parser=$1

+ parser=y.tab.c
# A sed program to s/FROM/TO/g for all the FROM/TO so that, for
# instance, we rename #include "y.tab.h" into #include "parse.h"
# during the conversion from y.tab.c to parse.c.
sed_fix_filenames=

+ sed_fix_filenames=''
# Also rename header guards, as Bison 2.7 for instance uses its header
# guard in its implementation file.
sed_fix_header_guards=

+ sed_fix_header_guards=''
while test $# -ne 0; do
  if test x"$1" = x"--"; then
    shift
    break
  fi
  from=$1
  # Handle y_tab.c and y_tab.h output by DOS
  if $y_tab_nodot; then
    case $from in
      "y.tab.c") from=y_tab.c;;
      "y.tab.h") from=y_tab.h;;
    esac
  fi
  shift
  to=$1
  shift
  sed_fix_filenames="${sed_fix_filenames}s|"`quote_for_sed "$from"`"|$to|g;"
  sed_fix_header_guards="${sed_fix_header_guards}s|"`guard "$from"`"|"`guard 
"$to"`"|g;"
done

+ test 15 -ne 0
+ test xy.tab.c '=' x--
+ from=y.tab.c
+ false
+ shift
+ to=examples/c/lexcalc/parse.c
+ shift
quote_for_sed "$from"+ quote_for_sed y.tab.c
+ sed -e 's|[][\\.*]|\\&|g'
+ printf '%s\n' y.tab.c
+ sed_fix_filenames='s|y\.tab\.c|examples/c/lexcalc/parse.c|g;'
guard "$from"+ guard y.tab.c
+ printf '%s\n' y.tab.c
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 
's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
guard "$to"+ guard examples/c/lexcalc/parse.c
+ printf '%s\n' examples/c/lexcalc/parse.c
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 
's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ sed_fix_header_guards='s|Y_TAB_C|EXAMPLES_C_LEXCALC_PARSE_C|g;'
+ test 13 -ne 0
+ test xy.tab.h '=' x--
+ from=y.tab.h
+ false
+ shift
+ to=examples/c/lexcalc/parse.h
+ shift
quote_for_sed "$from"+ quote_for_sed y.tab.h
+ printf '%s\n' y.tab.h
+ sed -e 's|[][\\.*]|\\&|g'
+ 
sed_fix_filenames='s|y\.tab\.c|examples/c/lexcalc/parse.c|g;s|y\.tab\.h|examples/c/lexcalc/parse.h|g;'
guard "$from"+ guard y.tab.h
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 
's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ printf '%s\n' y.tab.h
guard "$to"+ guard examples/c/lexcalc/parse.h
+ printf '%s\n' examples/c/lexcalc/parse.h
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 
's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ 
sed_fix_header_guards='s|Y_TAB_C|EXAMPLES_C_LEXCALC_PARSE_C|g;s|Y_TAB_H|EXAMPLES_C_LEXCALC_PARSE_H|g;'
+ test 11 -ne 0
+ test xy.output '=' x--
+ from=y.output
+ false
+ shift
+ to=examples/c/lexcalc/parse.output
+ shift
quote_for_sed "$from"+ quote_for_sed y.output
+ printf '%s\n' y.output
+ sed -e 's|[][\\.*]|\\&|g'
+ 
sed_fix_filenames='s|y\.tab\.c|examples/c/lexcalc/parse.c|g;s|y\.tab\.h|examples/c/lexcalc/parse.h|g;s|y\.output|examples/c/lexcalc/parse.output|g;'
guard "$from"+ guard y.output
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 
's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ printf '%s\n' y.output
guard "$to"+ guard examples/c/lexcalc/parse.output
+ printf '%s\n' examples/c/lexcalc/parse.output
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 
's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ 
sed_fix_header_guards='s|Y_TAB_C|EXAMPLES_C_LEXCALC_PARSE_C|g;s|Y_TAB_H|EXAMPLES_C_LEXCALC_PARSE_H|g;s|Y_OUTPUT|EXAMPLES_C_LEXCALC_PARSE_OUTPUT|g;'
+ test 9 -ne 0
+ test x-- '=' x--
+ shift
+ break
# The program to run.
prog=$1
+ prog=./tests/bison
shift
+ shift
# Make any relative path in $prog absolute.
case $prog in
  [\\/]* | ?:[\\/]*) ;;
  *[\\/]*) prog=`pwd`/$prog ;;
esac

pwd+ pwd
+ prog=/export/home/bruno/bison-3.3.90/build-64/./tests/bison
dirname=ylwrap$$
+ dirname=ylwrap28705
do_exit="cd '`pwd`' && rm -rf $dirname > /dev/null 2>&1;"' (exit $ret); exit 
$ret'
pwd+ pwd
+ do_exit=$'cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf 
ylwrap28705 > /dev/null 2>&1; (exit $ret); exit $ret'
trap "ret=129; $do_exit" 1
+ trap ret=$'129; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf 
ylwrap28705 > /dev/null 2>&1; (exit $ret); exit $ret' 1
trap "ret=130; $do_exit" 2
+ trap ret=$'130; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf 
ylwrap28705 > /dev/null 2>&1; (exit $ret); exit $ret' 2
trap "ret=141; $do_exit" 13
+ trap ret=$'141; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf 
ylwrap28705 > /dev/null 2>&1; (exit $ret); exit $ret' 13
trap "ret=143; $do_exit" 15
+ trap ret=$'143; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf 
ylwrap28705 > /dev/null 2>&1; (exit $ret); exit $ret' 15
mkdir $dirname || exit 1

+ mkdir ylwrap28705
cd $dirname

+ cd ylwrap28705
case $# in
  0) "$prog" "$input" ;;
  *) "$prog" "$@" "$input" ;;
esac
+ /export/home/bruno/bison-3.3.90/build-64/./tests/bison -o y.tab.c --defines 
-Werror -Wall '--report=all' --no-lines 
/export/home/bruno/bison-3.3.90/build-64/../examples/c/lexcalc/parse.y
ret=$?

+ ret=0
if test $ret -eq 0; then
  for from in *
  do
    to=`printf '%s\n' "$from" | sed "$sed_fix_filenames"`
    if test -f "$from"; then
      # If $2 is an absolute path name, then just use that,
      # otherwise prepend '../'.
      case $to in
        [\\/]* | ?:[\\/]*) target=$to;;
        *) target=../$to;;
      esac

      # Do not overwrite unchanged header files to avoid useless
      # recompilations.  Always update the parser itself: it is the
      # destination of the .y.c rule in the Makefile.  Divert the
      # output of all other files to a temporary file so we can
      # compare them to existing versions.
      if test $from != $parser; then
        realtarget=$target
        target=tmp-`printf '%s\n' "$target" | sed 's|.*[\\/]||g'`
      fi

      # Munge "#line" or "#" directives.  Don't let the resulting
      # debug information point at an absolute srcdir.  Use the real
      # output file name, not yy.lex.c for instance.  Adjust the
      # include guards too.
      sed -e "/^#/!b"                           \
          -e "s|$input_rx|$input_sub_rx|"       \
          -e "$sed_fix_filenames"               \
          -e "$sed_fix_header_guards"           \
        "$from" >"$target" || ret=$?

      # Check whether files must be updated.
      if test "$from" != "$parser"; then
        if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then
          echo "$to is unchanged"
          rm -f "$target"
        else
          echo "updating $to"
          mv -f "$target" "$realtarget"
        fi
      fi
    else
      # A missing file is only an error for the parser.  This is a
      # blatant hack to let us support using "yacc -d".  If -d is not
      # specified, don't fail when the header file is "missing".
      if test "$from" = "$parser"; then
        ret=1
      fi
    fi
  done
fi

+ test 0 -eq 0
printf '%s\n' "$from" | sed "$sed_fix_filenames"+ printf '%s\n' y.output
+ sed 
's|y\.tab\.c|examples/c/lexcalc/parse.c|g;s|y\.tab\.h|examples/c/lexcalc/parse.h|g;s|y\.output|examples/c/lexcalc/parse.output|g;'
+ to=examples/c/lexcalc/parse.output
+ test -f y.output
+ target=../examples/c/lexcalc/parse.output
+ test y.output '!=' y.tab.c
+ realtarget=../examples/c/lexcalc/parse.output
printf '%s\n' "$target" | sed 's|.*[\/]||g'+ printf '%s\n' 
../examples/c/lexcalc/parse.output
+ sed 's|.*[\/]||g'
+ target=tmp-parse.output
+ sed -e /^#/!b -e 
's|/export/home/bruno/bison-3\.3\.90/build-64/\.\./examples/c/lexcalc/|\.\./examples/c/lexcalc/|'
 -e 
's|y\.tab\.c|examples/c/lexcalc/parse.c|g;s|y\.tab\.h|examples/c/lexcalc/parse.h|g;s|y\.output|examples/c/lexcalc/parse.output|g;'
 -e 
's|Y_TAB_C|EXAMPLES_C_LEXCALC_PARSE_C|g;s|Y_TAB_H|EXAMPLES_C_LEXCALC_PARSE_H|g;s|Y_OUTPUT|EXAMPLES_C_LEXCALC_PARSE_OUTPUT|g;'
 y.output
+ 1> tmp-parse.output
+ test y.output '!=' y.tab.c
+ test -f ../examples/c/lexcalc/parse.output
+ echo 'updating examples/c/lexcalc/parse.output'
updating examples/c/lexcalc/parse.output
+ mv -f tmp-parse.output ../examples/c/lexcalc/parse.output
printf '%s\n' "$from" | sed "$sed_fix_filenames"+ printf '%s\n' y.tab.c
+ sed 
's|y\.tab\.c|examples/c/lexcalc/parse.c|g;s|y\.tab\.h|examples/c/lexcalc/parse.h|g;s|y\.output|examples/c/lexcalc/parse.output|g;'
+ to=examples/c/lexcalc/parse.c
+ test -f y.tab.c
+ target=../examples/c/lexcalc/parse.c
+ test y.tab.c '!=' y.tab.c
+ sed -e /^#/!b -e 
's|/export/home/bruno/bison-3\.3\.90/build-64/\.\./examples/c/lexcalc/|\.\./examples/c/lexcalc/|'
 -e 
's|y\.tab\.c|examples/c/lexcalc/parse.c|g;s|y\.tab\.h|examples/c/lexcalc/parse.h|g;s|y\.output|examples/c/lexcalc/parse.output|g;'
 -e 
's|Y_TAB_C|EXAMPLES_C_LEXCALC_PARSE_C|g;s|Y_TAB_H|EXAMPLES_C_LEXCALC_PARSE_H|g;s|Y_OUTPUT|EXAMPLES_C_LEXCALC_PARSE_OUTPUT|g;'
 y.tab.c
+ 1> ../examples/c/lexcalc/parse.c
+ test y.tab.c '!=' y.tab.c
printf '%s\n' "$from" | sed "$sed_fix_filenames"+ printf '%s\n' y.tab.h
+ sed 
's|y\.tab\.c|examples/c/lexcalc/parse.c|g;s|y\.tab\.h|examples/c/lexcalc/parse.h|g;s|y\.output|examples/c/lexcalc/parse.output|g;'
+ to=examples/c/lexcalc/parse.h
+ test -f y.tab.h
+ target=../examples/c/lexcalc/parse.h
+ test y.tab.h '!=' y.tab.c
+ realtarget=../examples/c/lexcalc/parse.h
printf '%s\n' "$target" | sed 's|.*[\/]||g'+ printf '%s\n' 
../examples/c/lexcalc/parse.h
+ sed 's|.*[\/]||g'
+ target=tmp-parse.h
+ sed -e /^#/!b -e 
's|/export/home/bruno/bison-3\.3\.90/build-64/\.\./examples/c/lexcalc/|\.\./examples/c/lexcalc/|'
 -e 
's|y\.tab\.c|examples/c/lexcalc/parse.c|g;s|y\.tab\.h|examples/c/lexcalc/parse.h|g;s|y\.output|examples/c/lexcalc/parse.output|g;'
 -e 
's|Y_TAB_C|EXAMPLES_C_LEXCALC_PARSE_C|g;s|Y_TAB_H|EXAMPLES_C_LEXCALC_PARSE_H|g;s|Y_OUTPUT|EXAMPLES_C_LEXCALC_PARSE_OUTPUT|g;'
 y.tab.h
+ 1> tmp-parse.h
+ test y.tab.h '!=' y.tab.c
+ test -f ../examples/c/lexcalc/parse.h
+ echo 'updating examples/c/lexcalc/parse.h'
updating examples/c/lexcalc/parse.h
+ mv -f tmp-parse.h ../examples/c/lexcalc/parse.h
# Remove the directory.
cd ..
+ cd ..
rm -rf $dirname

+ rm -rf ylwrap28705
exit $ret

+ exit 0
  CC       examples/c/lexcalc/lexcalc-parse.o
  LEX      examples/c/lexcalc/scan.c
scriptversion=2018-03-07.03; # UTC

# Copyright (C) 1996-2018 Free Software Foundation, Inc.
#
# Written by Tom Tromey <tro...@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.

# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.

# This file is maintained in Automake, please report
# bugs to <bug-autom...@gnu.org> or send patches to
# <automake-patc...@gnu.org>.

+ scriptversion=2018-03-07.03
get_dirname ()
{
  case $1 in
    */*|*\\*) printf '%s\n' "$1" | sed -e 's|\([\\/]\)[^\\/]*$|\1|';;
    # Otherwise,  we want the empty string (not ".").
  esac
}

# guard FILE
# ----------
# The CPP macro used to guard inclusion of FILE.
guard ()
{
  printf '%s\n' "$1"                                                    \
    | sed                                                               \
        -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'   \
        -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'                        \
        -e 's/__*/_/g'
}

# quote_for_sed [STRING]
# ----------------------
# Return STRING (or stdin) quoted to be used as a sed pattern.
quote_for_sed ()
{
  case $# in
    0) cat;;
    1) printf '%s\n' "$1";;
  esac \
    | sed -e 's|[][\\.*]|\\&|g'
}

case "$1" in
  '')
    echo "$0: No files given.  Try '$0 --help' for more information." 1>&2
    exit 1
    ;;
  --basedir)
    basedir=$2
    shift 2
    ;;
  -h|--h*)
    cat <<\EOF
Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...

Wrapper for lex/yacc invocations, renaming files as desired.

  INPUT is the input file
  OUTPUT is one file PROG generates
  DESIRED is the file we actually want instead of OUTPUT
  PROGRAM is program to run
  ARGS are passed to PROG

Any number of OUTPUT,DESIRED pairs may be used.

Report bugs to <bug-autom...@gnu.org>.
EOF
    exit $?
    ;;
  -v|--v*)
    echo "ylwrap $scriptversion"
    exit $?
    ;;
esac


# The input.
input=$1
+ input=../examples/c/lexcalc/scan.l
shift
+ shift
# We'll later need for a correct munging of "#line" directives.
input_sub_rx=`get_dirname "$input" | quote_for_sed`
get_dirname "$input" | quote_for_sed+ get_dirname ../examples/c/lexcalc/scan.l
+ printf '%s\n' ../examples/c/lexcalc/scan.l
+ sed -e 's|\([\\/]\)[^\\/]*$|\1|'
+ quote_for_sed
+ cat
+ sed -e 's|[][\\.*]|\\&|g'
+ input_sub_rx='\.\./examples/c/lexcalc/'
case $input in
  [\\/]* | ?:[\\/]*)
    # Absolute path; do nothing.
    ;;
  *)
    # Relative path.  Make it absolute.
    input=`pwd`/$input
    ;;
esac
pwd+ pwd
+ input=/export/home/bruno/bison-3.3.90/build-64/../examples/c/lexcalc/scan.l
input_rx=`get_dirname "$input" | quote_for_sed`

get_dirname "$input" | quote_for_sed+ get_dirname 
/export/home/bruno/bison-3.3.90/build-64/../examples/c/lexcalc/scan.l
+ printf '%s\n' 
/export/home/bruno/bison-3.3.90/build-64/../examples/c/lexcalc/scan.l
+ quote_for_sed
+ sed -e 's|[][\\.*]|\\&|g'
+ sed -e 's|\([\\/]\)[^\\/]*$|\1|'
+ cat
+ input_rx='/export/home/bruno/bison-3\.3\.90/build-64/\.\./examples/c/lexcalc/'
# Since DOS filename conventions don't allow two dots,
# the DOS version of Bison writes out y_tab.c instead of y.tab.c
# and y_tab.h instead of y.tab.h. Test to see if this is the case.
y_tab_nodot=false
+ y_tab_nodot=false
if test -f y_tab.c || test -f y_tab.h; then
  y_tab_nodot=true
fi

+ test -f y_tab.c
+ test -f y_tab.h
# The parser itself, the first file, is the destination of the .y.c
# rule in the Makefile.
parser=$1

+ parser=lex.yy.c
# A sed program to s/FROM/TO/g for all the FROM/TO so that, for
# instance, we rename #include "y.tab.h" into #include "parse.h"
# during the conversion from y.tab.c to parse.c.
sed_fix_filenames=

+ sed_fix_filenames=''
# Also rename header guards, as Bison 2.7 for instance uses its header
# guard in its implementation file.
sed_fix_header_guards=

+ sed_fix_header_guards=''
while test $# -ne 0; do
  if test x"$1" = x"--"; then
    shift
    break
  fi
  from=$1
  # Handle y_tab.c and y_tab.h output by DOS
  if $y_tab_nodot; then
    case $from in
      "y.tab.c") from=y_tab.c;;
      "y.tab.h") from=y_tab.h;;
    esac
  fi
  shift
  to=$1
  shift
  sed_fix_filenames="${sed_fix_filenames}s|"`quote_for_sed "$from"`"|$to|g;"
  sed_fix_header_guards="${sed_fix_header_guards}s|"`guard "$from"`"|"`guard 
"$to"`"|g;"
done

+ test 4 -ne 0
+ test xlex.yy.c '=' x--
+ from=lex.yy.c
+ false
+ shift
+ to=examples/c/lexcalc/scan.c
+ shift
quote_for_sed "$from"+ quote_for_sed lex.yy.c
+ sed -e 's|[][\\.*]|\\&|g'
+ printf '%s\n' lex.yy.c
+ sed_fix_filenames='s|lex\.yy\.c|examples/c/lexcalc/scan.c|g;'
guard "$from"+ guard lex.yy.c
+ printf '%s\n' lex.yy.c
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 
's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
guard "$to"+ guard examples/c/lexcalc/scan.c
+ printf '%s\n' examples/c/lexcalc/scan.c
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 
's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ sed_fix_header_guards='s|LEX_YY_C|EXAMPLES_C_LEXCALC_SCAN_C|g;'
+ test 2 -ne 0
+ test x-- '=' x--
+ shift
+ break
# The program to run.
prog=$1
+ prog=:
shift
+ shift
# Make any relative path in $prog absolute.
case $prog in
  [\\/]* | ?:[\\/]*) ;;
  *[\\/]*) prog=`pwd`/$prog ;;
esac

dirname=ylwrap$$
+ dirname=ylwrap28762
do_exit="cd '`pwd`' && rm -rf $dirname > /dev/null 2>&1;"' (exit $ret); exit 
$ret'
pwd+ pwd
+ do_exit=$'cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf 
ylwrap28762 > /dev/null 2>&1; (exit $ret); exit $ret'
trap "ret=129; $do_exit" 1
+ trap ret=$'129; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf 
ylwrap28762 > /dev/null 2>&1; (exit $ret); exit $ret' 1
trap "ret=130; $do_exit" 2
+ trap ret=$'130; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf 
ylwrap28762 > /dev/null 2>&1; (exit $ret); exit $ret' 2
trap "ret=141; $do_exit" 13
+ trap ret=$'141; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf 
ylwrap28762 > /dev/null 2>&1; (exit $ret); exit $ret' 13
trap "ret=143; $do_exit" 15
+ trap ret=$'143; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf 
ylwrap28762 > /dev/null 2>&1; (exit $ret); exit $ret' 15
mkdir $dirname || exit 1

+ mkdir ylwrap28762
cd $dirname

+ cd ylwrap28762
case $# in
  0) "$prog" "$input" ;;
  *) "$prog" "$@" "$input" ;;
esac
+ : /export/home/bruno/bison-3.3.90/build-64/../examples/c/lexcalc/scan.l
ret=$?

+ ret=0
if test $ret -eq 0; then
  for from in *
  do
    to=`printf '%s\n' "$from" | sed "$sed_fix_filenames"`
    if test -f "$from"; then
      # If $2 is an absolute path name, then just use that,
      # otherwise prepend '../'.
      case $to in
        [\\/]* | ?:[\\/]*) target=$to;;
        *) target=../$to;;
      esac

      # Do not overwrite unchanged header files to avoid useless
      # recompilations.  Always update the parser itself: it is the
      # destination of the .y.c rule in the Makefile.  Divert the
      # output of all other files to a temporary file so we can
      # compare them to existing versions.
      if test $from != $parser; then
        realtarget=$target
        target=tmp-`printf '%s\n' "$target" | sed 's|.*[\\/]||g'`
      fi

      # Munge "#line" or "#" directives.  Don't let the resulting
      # debug information point at an absolute srcdir.  Use the real
      # output file name, not yy.lex.c for instance.  Adjust the
      # include guards too.
      sed -e "/^#/!b"                           \
          -e "s|$input_rx|$input_sub_rx|"       \
          -e "$sed_fix_filenames"               \
          -e "$sed_fix_header_guards"           \
        "$from" >"$target" || ret=$?

      # Check whether files must be updated.
      if test "$from" != "$parser"; then
        if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then
          echo "$to is unchanged"
          rm -f "$target"
        else
          echo "updating $to"
          mv -f "$target" "$realtarget"
        fi
      fi
    else
      # A missing file is only an error for the parser.  This is a
      # blatant hack to let us support using "yacc -d".  If -d is not
      # specified, don't fail when the header file is "missing".
      if test "$from" = "$parser"; then
        ret=1
      fi
    fi
  done
fi

+ test 0 -eq 0
printf '%s\n' "$from" | sed "$sed_fix_filenames"+ printf '%s\n' '*'
+ sed 's|lex\.yy\.c|examples/c/lexcalc/scan.c|g;'
+ to='*'
+ test -f '*'
+ test '*' '=' lex.yy.c
# Remove the directory.
cd ..
+ cd ..
rm -rf $dirname

+ rm -rf ylwrap28762
exit $ret

+ exit 0
  CC       examples/c/lexcalc/lexcalc-scan.o
gcc: error: ../examples/c/lexcalc/scan.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
*** Error code 1
The following command caused the error:
echo "  CC      " examples/c/lexcalc/lexcalc-scan.o;gcc -m64 -O2 -std=gnu11 
-DEXEEXT=\"\"   -I../examples/c/lexcalc -I./examples/c/lexcalc 
-I/export/home/bruno/prefix64/include -Wall -D_REENTRANT  -g -O2 -MT 
examples/c/lexcalc/lexcalc-scan.o -MD -MP -MF 
examples/c/lexcalc/.deps/lexcalc-scan.Tpo -c -o 
examples/c/lexcalc/lexcalc-scan.o `test -f 'examples/c/lexcalc/scan.c' || echo 
'../'`examples/c/lexcalc/scan.c
make: Fatal error: Command failed for target `examples/c/lexcalc/lexcalc-scan.o'
Current working directory /export/home/bruno/bison-3.3.90/build-64
*** Error code 1
make: Fatal error: Command failed for target `check-am'
Current working directory /export/home/bruno/bison-3.3.90/build-64
*** Error code 1
The following command caused the error:
fail=; \
if (target_option=k; case ${target_option-} in  ?) ;;  *) echo 
"am__make_running_with_option: internal error: invalid"  "target option 
'${target_option-}' specified" >&2;  exit 1;;  esac;  has_opt=no;  
sane_makeflags=$MAKEFLAGS;  if {  if test -z '1'; then  false;  elif test -n 
''; then  true;  elif test -n '' && test -n ''; then  true;  else  false;  fi;  
}; then  sane_makeflags=$MFLAGS;  else  case $MAKEFLAGS in  *\\[\ \      ]*)  
bs=\\;  sane_makeflags=`printf '%s\n' "$MAKEFLAGS"  | sed "s/$bs$bs[$bs $bs     
   ]*//g"`;;  esac;  fi;  skip_next=no;  strip_trailopt ()  {  flg=`printf 
'%s\n' "$flg" | sed "s/$1.*$//"`;  };  for flg in $sane_makeflags; do  test 
$skip_next = yes && { skip_next=no; continue; };  case $flg in  *=*|--*) 
continue;;  -*I) strip_trailopt 'I'; skip_next=yes;;  -*I?*) strip_trailopt 
'I';;  -*O) strip_trailopt 'O'; skip_next=yes;;  -*O?*) strip_trailopt 'O';;  
-*l) strip_trailopt 'l'; skip_next=yes;;  -*l?*) strip_trailopt 'l';;  -[dEDm]) 
skip_next=yes;;  -[JT]) skip_next=yes;;  esac;  case $flg in  *$target_option*) 
has_opt=yes; break;;  esac;  done;  test $has_opt = yes); then \
  failcom='fail=yes'; \
else \
  failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo check-recursive | sed s/-recursive//`; \
case "check-recursive" in \
  distclean-* | maintainer-clean-*) list='po runtime-po gnulib-po .' ;; \
  *) list='po runtime-po gnulib-po .' ;; \
esac; \
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `check-recursive'
Current working directory /export/home/bruno/bison-3.3.90/build-64
*** Error code 1
make: Fatal error: Command failed for target `check'

Reply via email to