File: defs

package info (click to toggle)
libtool 1.5.22-4
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 13,252 kB
  • ctags: 645
  • sloc: sh: 11,093; ansic: 4,354; makefile: 816; cpp: 91; fortran: 19
file content (67 lines) | stat: -rw-r--r-- 1,560 bytes parent folder | download | duplicates (3)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# -*- sh -*-
# Defines for Libtool testing environment.
# Gord Matzigkeit <gord@gnu.ai.mit.edu>, 1996

# See if we are running on zsh, and set the options which allow our
# commands through without removal of \ escapes.
if test -n "${ZSH_VERSION+set}" ; then
  setopt NO_GLOB_SUBST
fi

# Check that srcdir is set to an absolute path.
case "$srcdir" in
/* | [A-Za-z]:\\*) ;;
*) srcdir=`cd $srcdir && pwd` ;;
esac

progname=`echo "$0" | sed 's%^.*/%%'`

libtool="../libtool"
make="${MAKE-make}"
SHELL="${CONFIG_SHELL-/bin/sh}"
: ${SED=sed}

if echo a | (grep -E '(a|b)') >/dev/null 2>&1; then
  EGREP='grep -E'
else
  EGREP='egrep'
fi
if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1; then
  FGREP='grep -F'
else
  FGREP='fgrep'
fi

prefix="./_inst"
if test "$need_prefix" = yes; then
  # An absolute path to a test installation directory.
  test -d $prefix || mkdir $prefix
  prefix=`cd $prefix && pwd`
else
  test -d $prefix && rm -rf $prefix
  prefix=NONE
fi

# Extract CC from the libtool configuration
eval `$libtool --config | grep '^CC='`

# Extract host from the libtool configuration
eval `$libtool --config | grep '^host='`

# Extract build from the libtool configuration
eval `$libtool --config | grep '^build='`

# Disable usage of config.site for autoconf, unless DJGPP is present.
# The DJGPP port of autoconf requires config.site, to work correctly.
if test -z "$DJGPP"; then
    CONFIG_SITE=/nonexistent
fi

# See how redirections should work.
case "$VERBOSE" in
NO | no | 0 | "")
  exec > /dev/null 2>&1
  ;;
esac

echo "=== Running $progname"