Commit 3ebd8b55 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add --enable-windows to configure commands when directed to do so by

emulab config returned by tmcd.
parent ba647906
#!/usr/bin/perl -w
#
# EMULAB-COPYRIGHT
# Copyright (c) 2004 University of Utah and the Flux Group.
# Copyright (c) 2004, 2005 University of Utah and the Flux Group.
# All rights reserved.
#
# XXX I hardwire IPs into generated /etc/rc.conf and /etc/rc.resolv.
......@@ -94,6 +94,9 @@ my ($bossname, $outer_bossip) = tmccbossinfo();
my $RPCCERT = "/usr/testbed/etc/outer_emulab.pem";
#my $RPCPORT = 7778;
# This gets turned on/off below
my $WINSUPPORT = 0;
#
# Find out our domain name, so that we can qualify the localhost entry
#
......@@ -196,6 +199,11 @@ sub doboot()
system("sysctl vfs.nfs.eacces_retry_enable=1 >/dev/null 2>&1");
system("sysctl vfs.nfs.eacces_retry_count=20 >/dev/null 2>&1");
# Turn on windows support.
if (exists($emulabconfig{"WINSUPPORT"}) && $emulabconfig{"WINSUPPORT"}) {
$WINSUPPORT = 1;
}
#
# Temp hack; make sure control iface in full duplex mode! pc2000 problem.
#
......@@ -399,7 +407,8 @@ sub SetupOpsNode()
mysystem("mkdir -p ${TBDIR}/testbed/obj/testbed");
mysystem("cd ${TBDIR}/testbed/obj/testbed; ".
" ../../src/testbed/configure ".
" --with-TBDEFS=../../src/testbed/defs-elabinelab");
" --with-TBDEFS=../../src/testbed/defs-elabinelab ".
($WINSUPPORT ? "--enable-windows" : ""));
#
# Create the ops node.
......@@ -646,7 +655,8 @@ sub SetupBossNode()
mysystem("mkdir -p ${TBDIR}/testbed/obj/testbed");
mysystem("cd ${TBDIR}/testbed/obj/testbed; ".
" ../../src/testbed/configure ".
" --with-TBDEFS=../../src/testbed/defs-elabinelab");
" --with-TBDEFS=../../src/testbed/defs-elabinelab ".
($WINSUPPORT ? "--enable-windows" : ""));
#
# Create the boss node. This will also install the software.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment