File: configure.in

package info (click to toggle)
binutils-m68k-linux 2.8.1.0.15-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 27,220 kB
  • ctags: 37,508
  • sloc: ansic: 334,116; asm: 19,698; exp: 8,825; makefile: 6,278; yacc: 4,565; sh: 3,654; lisp: 2,728; lex: 1,362; sed: 541; cpp: 188; awk: 24
file content (66 lines) | stat: -rw-r--r-- 1,844 bytes parent folder | download | duplicates (17)
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
# This file is a shell script fragment that supplies the information
# necessary for a configure script to process the program in
# this directory.  For more information, look at ../configure.

configdirs=
srctrigger=getopt1.c
srcname="-liberty library"

# per-host:

files="alloca-norm.h"
links="alloca-conf.h"

. ${srcdir}/config.table
host_makefile_frag=${frag}

# per-target:

# post-target:

# If this is the target libiberty, check at compile time whether we are using
# newlib.  If we are, we already know the files we need, since the linker
# will fail when run on some of the newlib targets.
if [ -n "${with_target_subdir}" ] ; then
  cat > Makefile.tem <<'!EOF!'
CONFIG_H = xconfig.h
NEEDED_LIST = xneeded-list

xconfig.h: Makefile
	if [ -f ../newlib/Makefile ]; then \
	  echo "#define NEED_sys_nerr 1" >xconfig.h; \
	  echo "#define NEED_sys_errlist 1" >>xconfig.h; \
	  echo "#define NEED_sys_siglist 1" >>xconfig.h; \
	  echo "#define NEED_strsignal 1" >>xconfig.h; \
	  echo "#define NEED_psignal 1" >>xconfig.h; \
	else \
	  $(MAKE) $(FLAGS_TO_PASS) lconfig.h; \
	  cp lconfig.h xconfig.h; \
	fi

xneeded-list: Makefile
	if [ -f ../newlib/Makefile ]; then \
	  echo insque.o random.o strdup.o alloca.o vasprintf.o >xneeded-list; \
	else \
	  $(MAKE) $(FLAGS_TO_PASS) lneeded-list; \
	  cp lneeded-list xneeded-list; \
	fi
!EOF!
sed -e "/^####/  r Makefile.tem" \
  -e '/INSTALL_DEST =/s/libdir/tooldir/' ${Makefile} > Makefile.tem3
mv Makefile.tem3 ${Makefile}
rm -f Makefile.tem
fi

# We need multilib support, but only if configuring for the target.
if [ -n "${with_target_subdir}" ] ; then
  if [ "${srcdir}" = "." ] ; then
    if [ "${with_target_subdir}" != "." ] ; then
      . ${with_multisrctop}../../config-ml.in
    else
      . ${with_multisrctop}../config-ml.in
    fi
  else
    . ${srcdir}/../config-ml.in
  fi
fi