Annotation of GNUtools/libg++/libio/stdio/configure.in, revision 1.1.1.1

1.1       root        1: # This file is a shell script fragment that supplies the information
                      2: # necessary for a configure script to process the program in
                      3: # this directory.  For more information, look at ../configure.
                      4: 
                      5: configdirs=
                      6: srctrigger=stdio.h
                      7: srcname="libio/stdio"
                      8: package_makefile_frag=../Make.pack
                      9: 
                     10: # per-host:
                     11: 
                     12: # per-target:
                     13: 
                     14: TO_TOPDIR=../../
                     15: ALL=nothing
                     16: MOSTLYCLEAN='*.o core stdio.list'
                     17: (. ${srcdir}/../config.shared) >${package_makefile_frag}
                     18: 
                     19: # post-target:
                     20: 
                     21: # Certain files that are used to build a C library (such as fprintf.o)
                     22: # are compled from the same sources as the ioXXX versions (such as ioprintf.c).
                     23: # These lines add the appropriate rules.
                     24: # NOTE: We assume a C compiler that where -o with -c works.
                     25: # But these files are not built by default anyway ...
                     26: 
                     27: # TODO: remove rename tmpfile tmpnam
                     28: 
                     29: stdio_renames="fclose fflush fgetpos fgets fopen fprintf fputs fread \
                     30:   fscanf fsetpos ftell fwrite gets perror printf puts \
                     31:   scanf setbuffer setvbuf sprintf sscanf ungetc vsprintf vsscanf"
                     32: stdio_objects=""
                     33: 
                     34: for file in $stdio_renames ; do
                     35:   cat >>Makefile <<EOF
                     36: $file.o: \$(srcdir)/../io$file.c
                     37:        \$(CC_FOR_STDIO) \$(CFLAGS) \$(CINCLUDES) -c \\
                     38:          \$(srcdir)/../io$file.c -D_IO_$file=$file -o $file.o
                     39: EOF
                     40:   stdio_objects="$stdio_objects $file.o"
                     41: done
                     42: sed -e "/STDIO_RENAMED_OBJECTS =/s/=.*/=${stdio_objects}/" <Makefile >tmp
                     43: mv -f tmp Makefile

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.