forked from RudolfWeeber/espresso-virtual-sites
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure
More file actions
executable file
·35 lines (33 loc) · 848 Bytes
/
Copy pathconfigure
File metadata and controls
executable file
·35 lines (33 loc) · 848 Bytes
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
subconfigure=configure-ac
echo -n "Testing whether we are in the source directory..."
# Test if we are in the srcdir
if test -f configure-ac; then
# if we are, switch to the object dir and rerun configure
echo "yes"
objdir="obj-`config/config.guess`"
echo "Switching to $objdir..."
# create an objdir if necessary
test -d "$objdir" || mkdir $objdir
# restart configure in the objdir
cd $objdir
echo "Running configure-ac..."
case $# in
0) /bin/sh ../configure-ac --enable-chooser;;
*) /bin/sh ../configure-ac --enable-chooser "$@";;
esac
ec=$?
cd ..
exit $ec
else
# otherwise, start subconfigure from the same directory
# this was called from
echo "no"
echo "Running $0-ac..."
case $# in
0) /bin/sh $0-ac;;
*) /bin/sh $0-ac "$@";;
esac
echo $cmd
$cmd
fi