File: configure

package info (click to toggle)
swi-prolog-packages 5.0.1-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 50,688 kB
  • ctags: 25,904
  • sloc: ansic: 195,096; perl: 91,425; cpp: 7,660; sh: 3,046; makefile: 2,750; yacc: 843; awk: 14; sed: 12
file content (24 lines) | stat: -rwxr-xr-x 593 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
#!/bin/sh
#
# The real work is done in the `src' directory.  This is just here to
# allow for the standard ./configure && make && make install sequence
# from the topdirectory
#
# If you want to build for multiple architectures, do:
# 
#	% mkdir myarch
#	% cd myarch
#	% ../src/configure [options]
#	% make
#	% make install

if [ -z "$BUILDARCH" ]; then
  BUILDARCH=src;
else
  if [ ! -d "$BUILDARCH" ]; then mkdir "$BUILDARCH"; fi
fi
if [ -z "$MAKE" ]; then MAKE=make; fi

sed -e "s/@BUILDARCH@/$BUILDARCH/" -e "s/@MAKE@/$MAKE/" Makefile.in > Makefile

cd $BUILDARCH && ../src/configure "$@"