File: configure

package info (click to toggle)
glibc-pre2.1 2.0.93-980414-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 43,920 kB
  • ctags: 42,602
  • sloc: ansic: 325,848; asm: 23,534; makefile: 3,352; sh: 3,283; awk: 582; perl: 474; csh: 15; sed: 10
file content (35 lines) | stat: -rwxr-xr-x 1,118 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#! /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

if test $saw_srcdir = no || test $saw_cache_file = no; then
  echo "No need to run configure.  Simply use \`Makefile.non.gnu'."
else
  rm -f $srcdir/Banner
  echo "UFC-crypt, `sed -e 's/.*\(patchlevel [^,]*\).*/\1/p' -e d \
		    $srcdir/sysdeps/unix/patchlevel.h` by Michael Glad" \
	> $srcdir/Banner
fi

exit 0