#! /bin/sh
#
# We need a configure script only when compiling as part of GNU C library.
# Here we have to generate one of the files we need while compiling.
#
# The only problem is that no users of the package might thing they have to
# run configure themself and find it irritating when nothing happens.
#
# So we try here to find out whether we are called from the glibc configure
# or by a user.  If the later is true show a gentle message.
#
saw_srcdir=no
srcdir=
saw_cache_file=no
# We use a simple heuristic which might fail: if we see the argument the
# glibc configure passes we assume it's glibc who calls us.
for opt in $*; do
  case $opt in
    --srcdir=*) saw_srcdir=yes
		srcdir=`echo "$opt" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;;
    --cache-file=*) saw_cache_file=yes ;;
    *) ;;
  esac
done

echo "Configure stage for glibc 2.0 add-on"

exit 0
