# See README-fixinc for more information.
-# Directory where gcc sources (and sometimes special include files) live.
-# fixincludes doesn't use this, but fixinc.svr4 does, and I want to make
-# sure somebody doesn't try to use arg3 for something incompatible. -- gumby
-SRCDIR=${3-${SRCDIR-.}}
-
# Directory containing the original header files.
# (This was named INCLUDES, but that conflicts with a name in Makefile.in.)
INPUT=${2-${INPUT-/usr/include}}
;;
esac
-# Make SRCDIR absolute only if needed to avoid problems with the amd.
-cd $ORIGDIR
-case $SRCDIR in
-/*)
- ;;
-*)
- cd $SRCDIR; SRCDIR=`${PWDCMD}`
- ;;
-esac
-
# Fail if no arg to specify a directory for the output.
if [ x$1 = x ]
then echo fixincludes: no output directory specified
fi
done
-# These two files on SunOS 4 are included by other files
-# in the same directory, using "...". So we must make sure they exist
-# in the same directory as the other fixed files.
-if [ -r ${INPUT}/multimedia/audio_errno.h ]
-then
- ln -s ${INPUT}/multimedia/audio_errno.h ${LIB}/multimedia 2>/dev/null
-fi
-if [ -r ${INPUT}/multimedia/audio_hdr.h ]
-then
- ln -s ${INPUT}/multimedia/audio_hdr.h ${LIB}/multimedia 2>/dev/null
-fi
-
# Determine if we're on Interactive Unix 2.2 or later, in which case we
# need to fix some additional files. This is the same test for ISC that
# Autoconf uses.