4 IAM
=`hostname || uname -n`
5 MYNAME
=`IFS=. ; set $IAM ; echo $1`
13 KEY
=`sed -e q < .buildkey-$MYNAME`
17 echo "Wrong directory for build on host $IAM"
18 echo "This is <`pwd`>"
33 # scripts/cvo.sh invokes config.guess, and we want it to use the copy
34 # in the top directory (alongside build) if there's not another
35 # config.guess earlier on the path, so we invoke it using env to append
38 CVO
=`env PATH="$PATH:." scripts/cvo.sh @cvo@`
40 *-*-*-*) "echo scripts/cvo.sh returned <$CVO>, which makes no sense to me."
44 *) echo "scripts/cvo.sh returned <$CVO>, which makes no sense to me."
52 CONFIG_ARGS
="$CONFIG_ARGS --enable-local-libopts"
55 CONFIG_ARGS
="$CONFIG_ARGS --with-libregex=/usr/local"
66 case "$CONFIG_ARGS" in
67 *--with-crypto=autokey
*)
75 case "$CONFIG_ARGS" in
76 *--disable-all-clocks*)
77 KEYSUF
="$KEYSUF-no-refclocks"
81 case "$CONFIG_ARGS" in
82 *--disable-debugging*)
83 KEYSUF
="$KEYSUF-nodebug"
95 BDIR
="$BASEDIR$KEYSUF$CCSUF"
97 [ -d "$BDIR" ] || mkdir
$BDIR
98 [ -f "$BDIR/.buildcvo" ] ||
echo $CVO > $BDIR/.buildcvo
99 [ -f "$BDIR/.buildhost" ] ||
echo $IAM > $BDIR/.buildhost
105 # Make sure we have a nice that works.
106 # To disable use of nice make a dummy nice script such
107 # as the heredoc a few lines below and set BNICE to its
111 nice true
&& NICEB
=nice
113 NICEB
=.
/.nicebuild-
$MYNAME-$SIG
114 cat > .nicebuild-
$MYNAME-$SIG <<-HEREDOC
119 chmod +x .nicebuild-
$MYNAME-$SIG
124 [ -f config.status
] ||
$NICEB -7 ..
/configure \
125 --cache-file=..
/config.cache-
$IAM \
128 $NICEB -5 .
/config.status
131 '') $NICEB -14 make && $NICEB -10 make check
133 *) $NICEB -14 $MAKE && $NICEB -10 $MAKE check
139 # clean up if we made a dummy nice script
140 [ -f .nicebuild-
$MYNAME-$SIG ] && rm .nicebuild-
$MYNAME-$SIG