configure 55.5 KB
Newer Older
1
#! /bin/sh
Robert Ricci's avatar
Robert Ricci committed
2

3
# Guess values for system-dependent variables and create Makefiles.
Robert Ricci's avatar
Robert Ricci committed
4
# Generated automatically using autoconf version 2.13 
5
# Copyright (C) 1992, 93, 94, 95, 96, 03 Free Software Foundation, Inc.
6
7
8
9
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

Robert Ricci's avatar
Robert Ricci committed
10
11
# Defaults:
ac_help=
12
ac_default_prefix=/usr/local
Robert Ricci's avatar
Robert Ricci committed
13
# Any additions from configure.in:
14
ac_default_prefix=/usr/testbed
Robert Ricci's avatar
Robert Ricci committed
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ac_help="$ac_help
  --with-TBDEFS=name	Specify definitions file (defs-default default)"
ac_help="$ac_help
  --with-LEDA		Specify LEDA path (/usr/testbed default)"
ac_help="$ac_help
  --with-assignbinary	Specify assign binary (overrides LEDA, default on)"
ac_help="$ac_help
  --with-ssh-args	Specify ssh arguments when running from testbed scripts "
ac_help="$ac_help
  --with-rcdir		Specify path to install rc.d scripts (/usr/local/etc/rc.d default)"
ac_help="$ac_help
  --with-apache-config	Specify path to install apache config files (/usr/local/etc/apache default)"
ac_help="$ac_help
  --enable-debug        Build with debug flags (-g -DDEBUG)
  --disable-debug       Build with optimization flags (-O2 -DNDEBUG -UDEBUG)"
ac_help="$ac_help
  --disable-events      Disable events (requires Elvin libraries)"
ac_help="$ac_help
  --enable-windows      Enable Windows XP support (requires third-party software)"
ac_help="$ac_help
  --enable-testmode     Enable test mode
  --disable-testmode    Disable test mode"
37
38
39
40

# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
Robert Ricci's avatar
Robert Ricci committed
41
42
build=NONE
cache_file=./config.cache
43
exec_prefix=NONE
Robert Ricci's avatar
Robert Ricci committed
44
host=NONE
45
no_create=
Robert Ricci's avatar
Robert Ricci committed
46
nonopt=NONE
47
48
49
50
51
52
53
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
Robert Ricci's avatar
Robert Ricci committed
54
sitefile=
55
srcdir=
Robert Ricci's avatar
Robert Ricci committed
56
target=NONE
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
verbose=
x_includes=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'

Robert Ricci's avatar
Robert Ricci committed
73
74
75
76
77
78
79
# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12

80
81
82
ac_prev=
for ac_option
do
Robert Ricci's avatar
Robert Ricci committed
83

84
85
86
87
88
89
90
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval "$ac_prev=\$ac_option"
    ac_prev=
    continue
  fi

Robert Ricci's avatar
Robert Ricci committed
91
92
93
94
  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac
95
96
97

  # Accept the important Cygnus configure options, so we can diagnose typos.

Robert Ricci's avatar
Robert Ricci committed
98
  case "$ac_option" in
99
100
101
102

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Robert Ricci's avatar
Robert Ricci committed
103
    bindir="$ac_optarg" ;;
104
105

  -build | --build | --buil | --bui | --bu)
Robert Ricci's avatar
Robert Ricci committed
106
    ac_prev=build ;;
107
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Robert Ricci's avatar
Robert Ricci committed
108
    build="$ac_optarg" ;;
109
110
111
112
113
114

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Robert Ricci's avatar
Robert Ricci committed
115
    cache_file="$ac_optarg" ;;
116
117
118
119
120

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
Robert Ricci's avatar
Robert Ricci committed
121
    datadir="$ac_optarg" ;;
122
123

  -disable-* | --disable-*)
Robert Ricci's avatar
Robert Ricci committed
124
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125
    # Reject names that are not valid shell variable names.
Robert Ricci's avatar
Robert Ricci committed
126
127
128
129
130
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    eval "enable_${ac_feature}=no" ;;
131
132

  -enable-* | --enable-*)
Robert Ricci's avatar
Robert Ricci committed
133
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134
    # Reject names that are not valid shell variable names.
Robert Ricci's avatar
Robert Ricci committed
135
136
137
138
139
140
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
141
142
      *) ac_optarg=yes ;;
    esac
Robert Ricci's avatar
Robert Ricci committed
143
    eval "enable_${ac_feature}='$ac_optarg'" ;;
144
145
146
147
148
149
150
151

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
Robert Ricci's avatar
Robert Ricci committed
152
    exec_prefix="$ac_optarg" ;;
153
154
155
156
157

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

Robert Ricci's avatar
Robert Ricci committed
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
  -help | --help | --hel | --he)
    # Omit some internal or obsolete options to make the list less imposing.
    # This message is too long to be a string in the A/UX 3.1 sh.
    cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print \`checking...' messages
  --site-file=FILE        use FILE as the site file
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                          [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
EOF
    cat << EOF
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
EOF
    if test -n "$ac_help"; then
      echo "--enable and --with options recognized:$ac_help"
    fi
    exit 0 ;;
213
214

  -host | --host | --hos | --ho)
Robert Ricci's avatar
Robert Ricci committed
215
    ac_prev=host ;;
216
  -host=* | --host=* | --hos=* | --ho=*)
Robert Ricci's avatar
Robert Ricci committed
217
    host="$ac_optarg" ;;
218
219
220
221
222
223

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
Robert Ricci's avatar
Robert Ricci committed
224
    includedir="$ac_optarg" ;;
225
226
227
228

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Robert Ricci's avatar
Robert Ricci committed
229
    infodir="$ac_optarg" ;;
230
231
232
233

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
Robert Ricci's avatar
Robert Ricci committed
234
    libdir="$ac_optarg" ;;
235
236
237
238
239
240

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
Robert Ricci's avatar
Robert Ricci committed
241
    libexecdir="$ac_optarg" ;;
242
243
244
245
246
247
248
249

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Robert Ricci's avatar
Robert Ricci committed
250
    localstatedir="$ac_optarg" ;;
251
252
253
254

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Robert Ricci's avatar
Robert Ricci committed
255
    mandir="$ac_optarg" ;;
256
257
258
259
260
261

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Robert Ricci's avatar
Robert Ricci committed
262
  | --no-cr | --no-c)
263
264
265
266
267
268
269
270
271
272
273
274
275
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Robert Ricci's avatar
Robert Ricci committed
276
    oldincludedir="$ac_optarg" ;;
277
278
279
280

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Robert Ricci's avatar
Robert Ricci committed
281
    prefix="$ac_optarg" ;;
282
283
284
285
286
287

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Robert Ricci's avatar
Robert Ricci committed
288
    program_prefix="$ac_optarg" ;;
289
290
291
292
293
294

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Robert Ricci's avatar
Robert Ricci committed
295
    program_suffix="$ac_optarg" ;;
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
Robert Ricci's avatar
Robert Ricci committed
312
    program_transform_name="$ac_optarg" ;;
313
314
315
316
317
318
319
320
321

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
Robert Ricci's avatar
Robert Ricci committed
322
    sbindir="$ac_optarg" ;;
323
324
325
326
327
328
329
330
331
332

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
Robert Ricci's avatar
Robert Ricci committed
333
    sharedstatedir="$ac_optarg" ;;
334
335
336
337

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
Robert Ricci's avatar
Robert Ricci committed
338
339
340
341
342
343
    site="$ac_optarg" ;;

  -site-file | --site-file | --site-fil | --site-fi | --site-f)
    ac_prev=sitefile ;;
  -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
    sitefile="$ac_optarg" ;;
344

345
346
347
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Robert Ricci's avatar
Robert Ricci committed
348
    srcdir="$ac_optarg" ;;
349
350
351
352
353
354

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Robert Ricci's avatar
Robert Ricci committed
355
    sysconfdir="$ac_optarg" ;;
356
357

  -target | --target | --targe | --targ | --tar | --ta | --t)
Robert Ricci's avatar
Robert Ricci committed
358
    ac_prev=target ;;
359
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Robert Ricci's avatar
Robert Ricci committed
360
    target="$ac_optarg" ;;
361
362
363
364

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

Robert Ricci's avatar
Robert Ricci committed
365
366
367
  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.13"
    exit 0 ;;
368
369

  -with-* | --with-*)
Robert Ricci's avatar
Robert Ricci committed
370
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371
    # Reject names that are not valid shell variable names.
Robert Ricci's avatar
Robert Ricci committed
372
373
374
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
375
    ac_package=`echo $ac_package| sed 's/-/_/g'`
Robert Ricci's avatar
Robert Ricci committed
376
377
    case "$ac_option" in
      *=*) ;;
378
379
      *) ac_optarg=yes ;;
    esac
Robert Ricci's avatar
Robert Ricci committed
380
    eval "with_${ac_package}='$ac_optarg'" ;;
381
382

  -without-* | --without-*)
Robert Ricci's avatar
Robert Ricci committed
383
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
384
    # Reject names that are not valid shell variable names.
Robert Ricci's avatar
Robert Ricci committed
385
386
387
388
389
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    eval "with_${ac_package}=no" ;;
390
391
392
393
394
395
396
397
398
399

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Robert Ricci's avatar
Robert Ricci committed
400
    x_includes="$ac_optarg" ;;
401
402
403
404
405
406

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Robert Ricci's avatar
Robert Ricci committed
407
    x_libraries="$ac_optarg" ;;
408

Robert Ricci's avatar
Robert Ricci committed
409
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410
411
412
    ;;

  *)
Robert Ricci's avatar
Robert Ricci committed
413
414
415
416
417
418
419
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
      echo "configure: warning: $ac_option: invalid host type" 1>&2
    fi
    if test "x$nonopt" != xNONE; then
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    fi
    nonopt="$ac_option"
420
421
422
423
424
425
    ;;

  esac
done

if test -n "$ac_prev"; then
Robert Ricci's avatar
Robert Ricci committed
426
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427
428
fi

Robert Ricci's avatar
Robert Ricci committed
429
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430

Robert Ricci's avatar
Robert Ricci committed
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
  exec 6>/dev/null
else
  exec 6>&1
fi
exec 5>./config.log

echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5

# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
ac_configure_args=
for ac_arg
455
do
Robert Ricci's avatar
Robert Ricci committed
456
457
458
459
460
461
462
463
  case "$ac_arg" in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
464
465
466
  esac
done

Robert Ricci's avatar
Robert Ricci committed
467
468
469
470
471
472
473
474
475
# NLS nuisances.
# Only set these to C if already set.  These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
Robert Ricci's avatar
Robert Ricci committed
476

Robert Ricci's avatar
Robert Ricci committed
477
478
479
480
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h
481

Robert Ricci's avatar
Robert Ricci committed
482
483
484
# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
ac_unique_file=Makeconf.in
485
486
487
488
489

# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then its parent.
Robert Ricci's avatar
Robert Ricci committed
490
491
492
  ac_prog=$0
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
493
494
495
496
497
498
499
500
501
  srcdir=$ac_confdir
  if test ! -r $srcdir/$ac_unique_file; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
  if test "$ac_srcdir_defaulted" = yes; then
Robert Ricci's avatar
Robert Ricci committed
502
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503
  else
Robert Ricci's avatar
Robert Ricci committed
504
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505
506
  fi
fi
Robert Ricci's avatar
Robert Ricci committed
507
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
Robert Ricci's avatar
Robert Ricci committed
508

Robert Ricci's avatar
Robert Ricci committed
509
510
511
512
513
# Prefer explicitly selected file to automatically selected ones.
if test -z "$sitefile"; then
  if test -z "$CONFIG_SITE"; then
    if test "x$prefix" != xNONE; then
      CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
Robert Ricci's avatar
Robert Ricci committed
514
    else
Robert Ricci's avatar
Robert Ricci committed
515
      CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516
    fi
517
  fi
Robert Ricci's avatar
Robert Ricci committed
518
519
else
  CONFIG_SITE="$sitefile"
520
521
522
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
Robert Ricci's avatar
Robert Ricci committed
523
    echo "loading site script $ac_site_file"
524
525
526
527
528
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
Robert Ricci's avatar
Robert Ricci committed
529
530
  echo "loading cache $cache_file"
  . $cache_file
531
else
Robert Ricci's avatar
Robert Ricci committed
532
533
  echo "creating cache $cache_file"
  > $cache_file
534
535
fi

Robert Ricci's avatar
Robert Ricci committed
536
ac_ext=c
Robert Ricci's avatar
Robert Ricci committed
537
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Robert Ricci's avatar
Robert Ricci committed
538
ac_cpp='$CPP $CPPFLAGS'
Robert Ricci's avatar
Robert Ricci committed
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

ac_exeext=
ac_objext=o
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    ac_n= ac_c='
' ac_t='	'
  else
    ac_n=-n ac_c= ac_t=
  fi
else
  ac_n= ac_c='\c' ac_t=
fi
Robert Ricci's avatar
Robert Ricci committed
556

557
558
559
560
561
562
563
564
565
566
567
568
569
570

ac_aux_dir=
for ac_dir in ${srcdir}/autoconf $srcdir/${srcdir}/autoconf; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
Robert Ricci's avatar
Robert Ricci committed
571
  { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/autoconf $srcdir/${srcdir}/autoconf" 1>&2; exit 1; }
572
fi
Robert Ricci's avatar
Robert Ricci committed
573
574
575
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
576
577


578

579

Robert Ricci's avatar
Robert Ricci committed
580

Robert Ricci's avatar
Robert Ricci committed
581
582
583
# Make sure we can run config.sub.
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
584
fi
Robert Ricci's avatar
Robert Ricci committed
585
586

echo $ac_n "checking host system type""... $ac_c" 1>&6
587
echo "configure:588: checking host system type" >&5
Robert Ricci's avatar
Robert Ricci committed
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607

host_alias=$host
case "$host_alias" in
NONE)
  case $nonopt in
  NONE)
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    fi ;;
  *) host_alias=$nonopt ;;
  esac ;;
esac

host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6

echo $ac_n "checking build system type""... $ac_c" 1>&6
608
echo "configure:609: checking build system type" >&5
Robert Ricci's avatar
Robert Ricci committed
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626

build_alias=$build
case "$build_alias" in
NONE)
  case $nonopt in
  NONE) build_alias=$host_alias ;;
  *) build_alias=$nonopt ;;
  esac ;;
esac

build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$build" 1>&6

if test $host != $build; then
  ac_tool_prefix=${host_alias}-
627
else
Robert Ricci's avatar
Robert Ricci committed
628
  ac_tool_prefix=
629
630
fi

Robert Ricci's avatar
Robert Ricci committed
631
632
633
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
634
echo "configure:635: checking for $ac_word" >&5
Robert Ricci's avatar
Robert Ricci committed
635
636
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Robert Ricci's avatar
Robert Ricci committed
637
else
Robert Ricci's avatar
Robert Ricci committed
638
639
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
Robert Ricci's avatar
Robert Ricci committed
640
else
Robert Ricci's avatar
Robert Ricci committed
641
642
643
644
645
646
647
648
649
650
651
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="${ac_tool_prefix}gcc"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
Robert Ricci's avatar
Robert Ricci committed
652
653
fi
fi
Robert Ricci's avatar
Robert Ricci committed
654
655
656
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
Robert Ricci's avatar
Robert Ricci committed
657
else
Robert Ricci's avatar
Robert Ricci committed
658
  echo "$ac_t""no" 1>&6
Robert Ricci's avatar
Robert Ricci committed
659
fi
660
661


Robert Ricci's avatar
Robert Ricci committed
662
663

# Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
664
set dummy ${ac_tool_prefix}g++; ac_word=$2
Robert Ricci's avatar
Robert Ricci committed
665
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
666
echo "configure:667: checking for $ac_word" >&5
Robert Ricci's avatar
Robert Ricci committed
667
668
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
669
670
671
672
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
Robert Ricci's avatar
Robert Ricci committed
673
674
675
676
677
678
679
680
681
682
683
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CXX="${ac_tool_prefix}g++"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_CXX" && ac_cv_prog_CXX="g++"
684
685
fi
fi
Robert Ricci's avatar
Robert Ricci committed
686
CXX="$ac_cv_prog_CXX"
687
if test -n "$CXX"; then
Robert Ricci's avatar
Robert Ricci committed
688
  echo "$ac_t""$CXX" 1>&6
689
else
Robert Ricci's avatar
Robert Ricci committed
690
  echo "$ac_t""no" 1>&6
691
692
693
fi


Robert Ricci's avatar
Robert Ricci committed
694

Robert Ricci's avatar
Robert Ricci committed
695
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
696
set dummy ${ac_tool_prefix}ar; ac_word=$2
Robert Ricci's avatar
Robert Ricci committed
697
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
698
echo "configure:699: checking for $ac_word" >&5
Robert Ricci's avatar
Robert Ricci committed
699
700
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
701
702
703
704
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
Robert Ricci's avatar
Robert Ricci committed
705
706
707
708
709
710
711
712
713
714
715
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_AR="${ac_tool_prefix}ar"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
716
717
fi
fi
Robert Ricci's avatar
Robert Ricci committed
718
AR="$ac_cv_prog_AR"
719
if test -n "$AR"; then
Robert Ricci's avatar
Robert Ricci committed
720
  echo "$ac_t""$AR" 1>&6
Robert Ricci's avatar
Robert Ricci committed
721
else
Robert Ricci's avatar
Robert Ricci committed
722
  echo "$ac_t""no" 1>&6
Robert Ricci's avatar
Robert Ricci committed
723
fi
724
725


Robert Ricci's avatar
Robert Ricci committed
726
727

# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
728
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Robert Ricci's avatar
Robert Ricci committed
729
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730
echo "configure:731: checking for $ac_word" >&5
Robert Ricci's avatar
Robert Ricci committed
731
732
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
733
734
735
736
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
Robert Ricci's avatar
Robert Ricci committed
737
738
739
740
741
742
743
744
745
746
747
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib"
748
749
fi
fi
Robert Ricci's avatar
Robert Ricci committed
750
RANLIB="$ac_cv_prog_RANLIB"
751
if test -n "$RANLIB"; then
Robert Ricci's avatar
Robert Ricci committed
752
  echo "$ac_t""$RANLIB" 1>&6
753
else
Robert Ricci's avatar
Robert Ricci committed
754
  echo "$ac_t""no" 1>&6
755
756
757
758
fi



Robert Ricci's avatar
Robert Ricci committed
759
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
760
set dummy ${ac_tool_prefix}strip; ac_word=$2
Robert Ricci's avatar
Robert Ricci committed
761
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
762
echo "configure:763: checking for $ac_word" >&5
Robert Ricci's avatar
Robert Ricci committed
763
764
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
765
766
767
768
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
Robert Ricci's avatar
Robert Ricci committed
769
770
771
772
773
774
775
776
777
778
779
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="strip"
780
781
fi
fi
Robert Ricci's avatar
Robert Ricci committed
782
STRIP="$ac_cv_prog_STRIP"
783
if test -n "$STRIP"; then
Robert Ricci's avatar
Robert Ricci committed
784
  echo "$ac_t""$STRIP" 1>&6
785
else
Robert Ricci's avatar
Robert Ricci committed
786
  echo "$ac_t""no" 1>&6
787
788
789
790
fi



Robert Ricci's avatar
Robert Ricci committed
791
# Extract the first word of "${ac_tool_prefix}ssh", so it can be a program name with args.
Robert Ricci's avatar
Robert Ricci committed
792
set dummy ${ac_tool_prefix}ssh; ac_word=$2
Robert Ricci's avatar
Robert Ricci committed
793
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
794
echo "configure:795: checking for $ac_word" >&5
Robert Ricci's avatar
Robert Ricci committed
795
796
if eval "test \"`echo '$''{'ac_cv_prog_SSH'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Robert Ricci's avatar
Robert Ricci committed
797
798
799
800
else
  if test -n "$SSH"; then
  ac_cv_prog_SSH="$SSH" # Let the user override the test.
else
Robert Ricci's avatar
Robert Ricci committed
801
802
803
804
805
806
807
808
809
810
811
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_SSH="${ac_tool_prefix}ssh"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_SSH" && ac_cv_prog_SSH="ssh"
Robert Ricci's avatar
Robert Ricci committed
812
813
fi
fi
Robert Ricci's avatar
Robert Ricci committed
814
SSH="$ac_cv_prog_SSH"
Robert Ricci's avatar
Robert Ricci committed
815
if test -n "$SSH"; then
Robert Ricci's avatar
Robert Ricci committed
816
  echo "$ac_t""$SSH" 1>&6
Robert Ricci's avatar
Robert Ricci committed
817
else
Robert Ricci's avatar
Robert Ricci committed
818
  echo "$ac_t""no" 1>&6
Robert Ricci's avatar
Robert Ricci committed
819
820
821
822
fi



823

824
825


826
#
827
# These get defined in the definitions file (--with-TBDEFS).
828
829
# NB: See AC_DEFINE_UNQUOTED() calls below, if you want a variable
# to appear in config.h.
Robert Ricci's avatar
Robert Ricci committed
830
# 
831
832
833
834
835





Leigh B. Stoller's avatar
Leigh B. Stoller committed
836
837


838
839
840



841

842

843
844
845
846
847
848
849
850
851
852










853
854


855
856


857

858

859

860

861

862
863


864

865

866
867
868
869
870
871
872
873
874
875
876
877
878
879
880


#
# Offer both versions of the email addresses that have the @ escaped
# for perl (the default), and that don't
#









881

882

883
884
885



886

887

888

889

890
891


892

893
894
#
# Defaults for for above variables.
Robert Ricci's avatar
Robert Ricci committed
895
# 
896
TBADMINGROUP="flux"
897
898
899
CLIENT_ETCDIR="/etc/emulab"
CLIENT_BINDIR="/usr/local/etc/emulab"
CLIENT_VARDIR="/var/emulab"
900
901
TBSECURECOOKIES=1
TBMAINSITE=0
902
JAILIPBASE=172.17.0.0
903
JAILIPMASK=255.240.0.0
904
IPBASE=10
905
SFSSUPPORT=1
906

907
908
909
#
# Okay, I know this is improper usage of --with. Too bad.
#
910
911
912
# Check whether --with-TBDEFS or --without-TBDEFS was given.
if test "${with_TBDEFS+set}" = set; then
  withval="$with_TBDEFS"
Robert Ricci's avatar
Robert Ricci committed
913
  
914
    if test "$withval" = "yes"; then
Robert Ricci's avatar
Robert Ricci committed
915
	{ echo "configure: error: Invalid TBDEFS - Must specify the value" 1>&2; exit 1; }
916
    fi
917
    TBDEFS="$withval"
918
919

else
Robert Ricci's avatar
Robert Ricci committed
920
  
Robert Ricci's avatar
Robert Ricci committed
921
    TBDEFS="$srcdir/defs-default"
922

Robert Ricci's avatar
Robert Ricci committed
923
924
fi

925

926
927
928
929
930
if test -f $TBDEFS; then
    #
    # Remove the comments and newlines.  Really, that's what it does.
    #
    eval `cat $TBDEFS | sed -n -e '{s/#.*$//;H;}; ${g;s/\n/ /g;s/  */ /g;p;}'`
931
else
Robert Ricci's avatar
Robert Ricci committed
932
	{ echo "configure: error: Definitions file $TBDEFS was not found." 1>&2; exit 1; }
933
934
fi

935
936
937
938
939
940
#
# These must come after the "eval" above, since the variables are not
# defined until the defs file is taken in.
#
# Be sure to add to config.h.in!
#
Robert Ricci's avatar
Robert Ricci committed
941
cat >> confdefs.h <<EOF
942
#define TBDBNAME "$TBDBNAME"
Robert Ricci's avatar
Robert Ricci committed
943
EOF
944

Robert Ricci's avatar
Robert Ricci committed
945
cat >> confdefs.h <<EOF
946
#define TBADMINGROUP "$TBADMINGROUP"
Robert Ricci's avatar
Robert Ricci committed
947
EOF
948

Robert Ricci's avatar
Robert Ricci committed
949
cat >> confdefs.h <<EOF
950
#define IPBASE "$IPBASE"
Robert Ricci's avatar
Robert Ricci committed
951
EOF
952

953
954
955
956
957
958
959
960
cat >> confdefs.h <<EOF
#define JAILIPBASE "$JAILIPBASE"
EOF

cat >> confdefs.h <<EOF
#define JAILIPMASK "$JAILIPMASK"
EOF

Robert Ricci's avatar
Robert Ricci committed
961
cat >> confdefs.h <<EOF
962
#define BOSSNODE "$BOSSNODE"
Robert Ricci's avatar
Robert Ricci committed
963
EOF
964

Robert Ricci's avatar
Robert Ricci committed
965
cat >> confdefs.h <<EOF
966
#define USERNODE "$USERNODE"
Robert Ricci's avatar
Robert Ricci committed
967
EOF
968

Robert Ricci's avatar
Robert Ricci committed
969
cat >> confdefs.h <<EOF
970
#define FSNODE "$FSNODE"
Robert Ricci's avatar
Robert Ricci committed
971
EOF
972

Robert Ricci's avatar
Robert Ricci committed
973
cat >> confdefs.h <<EOF
974
#define OURDOMAIN "$OURDOMAIN"
Robert Ricci's avatar
Robert Ricci committed
975
EOF
976

Robert Ricci's avatar
Robert Ricci committed
977
cat >> confdefs.h <<EOF
978
#define FSDIR_PROJ "$FSDIR_PROJ"
Robert Ricci's avatar
Robert Ricci committed
979
EOF
980

Robert Ricci's avatar
Robert Ricci committed
981
cat >> confdefs.h <<EOF
982
#define FSDIR_GROUPS "$FSDIR_GROUPS"
Robert Ricci's avatar
Robert Ricci committed
983
EOF
984

Robert Ricci's avatar
Robert Ricci committed
985
cat >> confdefs.h <<EOF
986
#define FSDIR_USERS "$FSDIR_USERS"
Robert Ricci's avatar
Robert Ricci committed
987
EOF
988

989
if test -n "$FSDIR_SHARE"; then
Robert Ricci's avatar
Robert Ricci committed
990
    cat >> confdefs.h <<EOF
991
#define FSDIR_SHARE "$FSDIR_SHARE"
Robert Ricci's avatar
Robert Ricci committed
992
EOF
993
994

fi
995

996
#
997
998
# The email addresses need to be be munged for perl scripts. But,
# php needs them un-escaped
999
#
1000
TBOPSEMAIL_NOSLASH="$TBOPSEMAIL"
1001
TBOPSEMAIL="`echo $TBOPSEMAIL | sed -e 's/@/\\\@/'`"
1002
TBLOGSEMAIL_NOSLASH="$TBLOGSEMAIL"
1003
TBLOGSEMAIL="`echo $TBLOGSEMAIL | sed -e 's/@/\\\@/'`"
1004
TBAUDITEMAIL_NOSLASH="$TBAUDITEMAIL"
1005
TBAUDITEMAIL="`echo $TBAUDITEMAIL | sed -e 's/@/\\\@/'`"
1006
1007
1008
1009
TBWWWEMAIL_NOSLASH="$TBWWWEMAIL"
TBWWWEMAIL="`echo $TBWWWEMAIL | sed -e 's/@/\\\@/'`"
TBAPPROVALEMAIL_NOSLASH="$TBAPPROVALEMAIL"
TBAPPROVALEMAIL="`echo $TBAPPROVALEMAIL | sed -e 's/@/\\\@/'`"
1010
1011
1012
1013
TBSTATEDEMAIL_NOSLASH="$TBSTATEDEMAIL_NOSLASH"
TBSTATEDEMAIL="`echo $TBSTATEDEMAIL | sed -e 's/@/\\\@/'`"
TBTESTSUITEEMAIL_NOSLASH="$TBTESTSUITEEMAIL_NOSLASH"
TBTESTSUITEEMAIL="`echo $TBTESTSUITEEMAIL | sed -e 's/@/\\\@/'`"
1014

1015
if test -n "$TBAUTOMAILEMAIL"; then
1016
    TBAUTOMAILEMAIL_NOSLASH="$TBAUTOMAILEMAIL"
1017
1018
1019
1020
1021
    TBAUTOMAILEMAIL="`echo $TBAUTOMAILEMAIL | sed -e 's/@/\\\@/'`"
else
    TBAUTOMAILEMAIL_NOSLASH="$TBLOGSEMAIL_NOSLASH"
    TBAUTOMAILEMAIL="$TBLOGSEMAIL"
fi
1022
if test -n "$TBACTIVEARCHIVE"; then
1023
    TBACTIVEARCHIVE_NOSLASH="$TBACTIVEARCHIVE"
1024
1025
    TBACTIVEARCHIVE="`echo $TBACTIVEARCHIVE | sed -e 's/@/\\\@/'`"
else
1026
    TBACTIVEARCHIVE_NOSLASH="$TBOPSEMAIL_NOSLASH"
1027
1028
1029
    TBACTIVEARCHIVE="$TBOPSEMAIL"
fi
if test -n "$TBUSERSARCHIVE"; then
1030
    TBUSERSARCHIVE_NOSLASH="$TBUSERSARCHIVE"
1031
1032
    TBUSERSARCHIVE="`echo $TBUSERSARCHIVE | sed -e 's/@/\\\@/'`"
else
1033
    TBUSERSARCHIVE_NOSLASH="$TBOPSEMAIL_NOSLASH"
1034
1035
1036
    TBUSERSARCHIVE="$TBOPSEMAIL"
fi

1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
if test -z "$TBAUTHDOMAIN"; then
    TBAUTHDOMAIN=".$OURDOMAIN"
fi
if test -z "$TBAUTHTIMEOUT"; then
    TBAUTHTIMEOUT="21600"
fi
if test -z "$WWW"; then
    WWW="$WWWHOST"
fi
if test -z "$TBBASE"; then
    TBBASE="https://$WWW"
fi
if test -z "$TBDOCBASE"; then
    TBDOCBASE="http://$WWW"
fi
if test -z "$TBWWW"; then
    TBWWW="<$TBBASE/>"
fi
if test -z "$THISHOMEBASE"; then
    THISHOMEBASE="Emulab.Net"
fi

1059
1060
1061
#
# LEDA library path
#
1062
1063
1064
# Check whether --with-LEDA or --without-LEDA was given.
if test "${with_LEDA+set}" = set; then
  withval="$with_LEDA"
Robert Ricci's avatar
Robert Ricci committed
1065
  
1066
1067
1068
1069
1070
1071
1072
    if test "$withval" = "yes"; then
        LEDA="$ac_default_prefix/LEDA/LEDA-4.0"
    else
        LEDA="$withval"
    fi

else
Robert Ricci's avatar
Robert Ricci committed
1073
  
1074
1075
1076
1077
1078
    if test -d "$ac_default_prefix/LEDA/LEDA-4.0"; then
        LEDA="$ac_default_prefix/LEDA/LEDA-4.0"
    else
        LEDA=""
    fi
1079

Robert Ricci's avatar
Robert Ricci committed
1080
1081
fi

1082
1083


1084
1085
1086
#
# Override LEDA with assign binary.
#
1087
1088
1089
# Check whether --with-assignbinary or --without-assignbinary was given.
if test "${with_assignbinary+set}" = set; then
  withval="$with_assignbinary"
Robert Ricci's avatar
Robert Ricci committed
1090
  
1091
1092
1093
1094
1095
1096
1097
1098
1099
    if test "$withval" = "yes"; then
        ASSIGN="assign.bin"
        LEDA=""
    else
        ASSIGN="$withval"
        LEDA=""
    fi

else
Robert Ricci's avatar
Robert Ricci committed
1100
  
1101
1102
1103
1104
1105
    if test "$LEDA" = ""; then
        ASSIGN="assign.bin"
    else
        ASSIGN=""
    fi
1106

Robert Ricci's avatar
Robert Ricci committed
1107
1108
fi

1109
1110


Robert Ricci's avatar
Robert Ricci committed
1111
1112
1113
1114
1115
1116
#
# Arguments to ssh to disable strict host key checking, etc
#
# Check whether --with-SSH_ARGS or --without-SSH_ARGS was given.
if test "${with_SSH_ARGS+set}" = set; then
  withval="$with_SSH_ARGS"
Robert Ricci's avatar
Robert Ricci committed
1117
  
Robert Ricci's avatar
Robert Ricci committed
1118
1119
1120
    SSH_ARGS="$withval"

else
Robert Ricci's avatar
Robert Ricci committed
1121
  
Robert Ricci's avatar
Robert Ricci committed
1122
    SSH_ARGS="-q -o \"BatchMode yes\" -o \"StrictHostKeyChecking no\""
1123
    SSH_ARGS="$SSH_ARGS -o \"Protocol 1\""
Robert Ricci's avatar
Robert Ricci committed
1124

Robert Ricci's avatar
Robert Ricci committed
1125
1126
fi

Robert Ricci's avatar
Robert Ricci committed
1127
1128


1129
1130
1131
1132
1133
1134
#
# Path to install rc.d scripts in
#
# Check whether --with-rcdir or --without-rcdir was given.
if test "${with_rcdir+set}" = set; then
  withval="$with_rcdir"
Robert Ricci's avatar
Robert Ricci committed
1135
  
1136