OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [start/] [insight/] [tix/] [unix/] [tk4.2/] [configure] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
#! /bin/sh
2
 
3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated automatically using autoconf version 2.12.2
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6
#
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
 
10
# Defaults:
11
ac_help=
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
14
ac_help="$ac_help
15
  --enable-gcc            allow use of gcc if available"
16
ac_help="$ac_help
17
  --with-tcl=DIR           use Tcl 7.6 source from DIR"
18
ac_help="$ac_help
19
  --with-tk=DIR           use Tk 4.2 source from DIR"
20
ac_help="$ac_help
21
  --enable-sam            build stand-alone modules"
22
ac_help="$ac_help
23
  --enable-shared         build libtix as a shared library"
24
 
25
# Initialize some variables set by options.
26
# The variables have the same names as the options, with
27
# dashes changed to underlines.
28
build=NONE
29
cache_file=./config.cache
30
exec_prefix=NONE
31
host=NONE
32
no_create=
33
nonopt=NONE
34
no_recursion=
35
prefix=NONE
36
program_prefix=NONE
37
program_suffix=NONE
38
program_transform_name=s,x,x,
39
silent=
40
site=
41
srcdir=
42
target=NONE
43
verbose=
44
x_includes=NONE
45
x_libraries=NONE
46
bindir='${exec_prefix}/bin'
47
sbindir='${exec_prefix}/sbin'
48
libexecdir='${exec_prefix}/libexec'
49
datadir='${prefix}/share'
50
sysconfdir='${prefix}/etc'
51
sharedstatedir='${prefix}/com'
52
localstatedir='${prefix}/var'
53
libdir='${exec_prefix}/lib'
54
includedir='${prefix}/include'
55
oldincludedir='/usr/include'
56
infodir='${prefix}/info'
57
mandir='${prefix}/man'
58
 
59
# Initialize some other variables.
60
subdirs=
61
MFLAGS= MAKEFLAGS=
62
SHELL=${CONFIG_SHELL-/bin/sh}
63
# Maximum number of lines to put in a shell here document.
64
ac_max_here_lines=12
65
 
66
ac_prev=
67
for ac_option
68
do
69
 
70
  # If the previous option needs an argument, assign it.
71
  if test -n "$ac_prev"; then
72
    eval "$ac_prev=\$ac_option"
73
    ac_prev=
74
    continue
75
  fi
76
 
77
  case "$ac_option" in
78
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79
  *) ac_optarg= ;;
80
  esac
81
 
82
  # Accept the important Cygnus configure options, so we can diagnose typos.
83
 
84
  case "$ac_option" in
85
 
86
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
87
    ac_prev=bindir ;;
88
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89
    bindir="$ac_optarg" ;;
90
 
91
  -build | --build | --buil | --bui | --bu)
92
    ac_prev=build ;;
93
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
94
    build="$ac_optarg" ;;
95
 
96
  -cache-file | --cache-file | --cache-fil | --cache-fi \
97
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
98
    ac_prev=cache_file ;;
99
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101
    cache_file="$ac_optarg" ;;
102
 
103
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
104
    ac_prev=datadir ;;
105
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
106
  | --da=*)
107
    datadir="$ac_optarg" ;;
108
 
109
  -disable-* | --disable-*)
110
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
111
    # Reject names that are not valid shell variable names.
112
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114
    fi
115
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116
    eval "enable_${ac_feature}=no" ;;
117
 
118
  -enable-* | --enable-*)
119
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120
    # Reject names that are not valid shell variable names.
121
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123
    fi
124
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125
    case "$ac_option" in
126
      *=*) ;;
127
      *) ac_optarg=yes ;;
128
    esac
129
    eval "enable_${ac_feature}='$ac_optarg'" ;;
130
 
131
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133
  | --exec | --exe | --ex)
134
    ac_prev=exec_prefix ;;
135
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137
  | --exec=* | --exe=* | --ex=*)
138
    exec_prefix="$ac_optarg" ;;
139
 
140
  -gas | --gas | --ga | --g)
141
    # Obsolete; use --with-gas.
142
    with_gas=yes ;;
143
 
144
  -help | --help | --hel | --he)
145
    # Omit some internal or obsolete options to make the list less imposing.
146
    # This message is too long to be a string in the A/UX 3.1 sh.
147
    cat << EOF
148
Usage: configure [options] [host]
149
Options: [defaults in brackets after descriptions]
150
Configuration:
151
  --cache-file=FILE       cache test results in FILE
152
  --help                  print this message
153
  --no-create             do not create output files
154
  --quiet, --silent       do not print \`checking...' messages
155
  --version               print the version of autoconf that created configure
156
Directory and file names:
157
  --prefix=PREFIX         install architecture-independent files in PREFIX
158
                          [$ac_default_prefix]
159
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
160
                          [same as prefix]
161
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
162
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
163
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
164
  --datadir=DIR           read-only architecture-independent data in DIR
165
                          [PREFIX/share]
166
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
167
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
168
                          [PREFIX/com]
169
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
170
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
171
  --includedir=DIR        C header files in DIR [PREFIX/include]
172
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
173
  --infodir=DIR           info documentation in DIR [PREFIX/info]
174
  --mandir=DIR            man documentation in DIR [PREFIX/man]
175
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
176
  --program-prefix=PREFIX prepend PREFIX to installed program names
177
  --program-suffix=SUFFIX append SUFFIX to installed program names
178
  --program-transform-name=PROGRAM
179
                          run sed PROGRAM on installed program names
180
EOF
181
    cat << EOF
182
Host type:
183
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
184
  --host=HOST             configure for HOST [guessed]
185
  --target=TARGET         configure for TARGET [TARGET=HOST]
186
Features and packages:
187
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
188
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
189
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
190
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
191
  --x-includes=DIR        X include files are in DIR
192
  --x-libraries=DIR       X library files are in DIR
193
EOF
194
    if test -n "$ac_help"; then
195
      echo "--enable and --with options recognized:$ac_help"
196
    fi
197
    exit 0 ;;
198
 
199
  -host | --host | --hos | --ho)
200
    ac_prev=host ;;
201
  -host=* | --host=* | --hos=* | --ho=*)
202
    host="$ac_optarg" ;;
203
 
204
  -includedir | --includedir | --includedi | --included | --include \
205
  | --includ | --inclu | --incl | --inc)
206
    ac_prev=includedir ;;
207
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208
  | --includ=* | --inclu=* | --incl=* | --inc=*)
209
    includedir="$ac_optarg" ;;
210
 
211
  -infodir | --infodir | --infodi | --infod | --info | --inf)
212
    ac_prev=infodir ;;
213
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214
    infodir="$ac_optarg" ;;
215
 
216
  -libdir | --libdir | --libdi | --libd)
217
    ac_prev=libdir ;;
218
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
219
    libdir="$ac_optarg" ;;
220
 
221
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222
  | --libexe | --libex | --libe)
223
    ac_prev=libexecdir ;;
224
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225
  | --libexe=* | --libex=* | --libe=*)
226
    libexecdir="$ac_optarg" ;;
227
 
228
  -localstatedir | --localstatedir | --localstatedi | --localstated \
229
  | --localstate | --localstat | --localsta | --localst \
230
  | --locals | --local | --loca | --loc | --lo)
231
    ac_prev=localstatedir ;;
232
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235
    localstatedir="$ac_optarg" ;;
236
 
237
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
238
    ac_prev=mandir ;;
239
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240
    mandir="$ac_optarg" ;;
241
 
242
  -nfp | --nfp | --nf)
243
    # Obsolete; use --without-fp.
244
    with_fp=no ;;
245
 
246
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
247
  | --no-cr | --no-c)
248
    no_create=yes ;;
249
 
250
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
252
    no_recursion=yes ;;
253
 
254
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256
  | --oldin | --oldi | --old | --ol | --o)
257
    ac_prev=oldincludedir ;;
258
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261
    oldincludedir="$ac_optarg" ;;
262
 
263
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
264
    ac_prev=prefix ;;
265
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266
    prefix="$ac_optarg" ;;
267
 
268
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
269
  | --program-pre | --program-pr | --program-p)
270
    ac_prev=program_prefix ;;
271
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
272
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273
    program_prefix="$ac_optarg" ;;
274
 
275
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
276
  | --program-suf | --program-su | --program-s)
277
    ac_prev=program_suffix ;;
278
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
279
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280
    program_suffix="$ac_optarg" ;;
281
 
282
  -program-transform-name | --program-transform-name \
283
  | --program-transform-nam | --program-transform-na \
284
  | --program-transform-n | --program-transform- \
285
  | --program-transform | --program-transfor \
286
  | --program-transfo | --program-transf \
287
  | --program-trans | --program-tran \
288
  | --progr-tra | --program-tr | --program-t)
289
    ac_prev=program_transform_name ;;
290
  -program-transform-name=* | --program-transform-name=* \
291
  | --program-transform-nam=* | --program-transform-na=* \
292
  | --program-transform-n=* | --program-transform-=* \
293
  | --program-transform=* | --program-transfor=* \
294
  | --program-transfo=* | --program-transf=* \
295
  | --program-trans=* | --program-tran=* \
296
  | --progr-tra=* | --program-tr=* | --program-t=*)
297
    program_transform_name="$ac_optarg" ;;
298
 
299
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300
  | -silent | --silent | --silen | --sile | --sil)
301
    silent=yes ;;
302
 
303
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
304
    ac_prev=sbindir ;;
305
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
306
  | --sbi=* | --sb=*)
307
    sbindir="$ac_optarg" ;;
308
 
309
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
310
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311
  | --sharedst | --shareds | --shared | --share | --shar \
312
  | --sha | --sh)
313
    ac_prev=sharedstatedir ;;
314
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
317
  | --sha=* | --sh=*)
318
    sharedstatedir="$ac_optarg" ;;
319
 
320
  -site | --site | --sit)
321
    ac_prev=site ;;
322
  -site=* | --site=* | --sit=*)
323
    site="$ac_optarg" ;;
324
 
325
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
326
    ac_prev=srcdir ;;
327
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
328
    srcdir="$ac_optarg" ;;
329
 
330
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
331
  | --syscon | --sysco | --sysc | --sys | --sy)
332
    ac_prev=sysconfdir ;;
333
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
334
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
335
    sysconfdir="$ac_optarg" ;;
336
 
337
  -target | --target | --targe | --targ | --tar | --ta | --t)
338
    ac_prev=target ;;
339
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340
    target="$ac_optarg" ;;
341
 
342
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
343
    verbose=yes ;;
344
 
345
  -version | --version | --versio | --versi | --vers)
346
    echo "configure generated by autoconf version 2.12.2"
347
    exit 0 ;;
348
 
349
  -with-* | --with-*)
350
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351
    # Reject names that are not valid shell variable names.
352
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354
    fi
355
    ac_package=`echo $ac_package| sed 's/-/_/g'`
356
    case "$ac_option" in
357
      *=*) ;;
358
      *) ac_optarg=yes ;;
359
    esac
360
    eval "with_${ac_package}='$ac_optarg'" ;;
361
 
362
  -without-* | --without-*)
363
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
364
    # Reject names that are not valid shell variable names.
365
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367
    fi
368
    ac_package=`echo $ac_package| sed 's/-/_/g'`
369
    eval "with_${ac_package}=no" ;;
370
 
371
  --x)
372
    # Obsolete; use --with-x.
373
    with_x=yes ;;
374
 
375
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
376
  | --x-incl | --x-inc | --x-in | --x-i)
377
    ac_prev=x_includes ;;
378
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
379
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
380
    x_includes="$ac_optarg" ;;
381
 
382
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
383
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
384
    ac_prev=x_libraries ;;
385
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
386
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
387
    x_libraries="$ac_optarg" ;;
388
 
389
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390
    ;;
391
 
392
  *)
393
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394
      echo "configure: warning: $ac_option: invalid host type" 1>&2
395
    fi
396
    if test "x$nonopt" != xNONE; then
397
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
398
    fi
399
    nonopt="$ac_option"
400
    ;;
401
 
402
  esac
403
done
404
 
405
if test -n "$ac_prev"; then
406
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
407
fi
408
 
409
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
410
 
411
# File descriptor usage:
412
# 0 standard input
413
# 1 file creation
414
# 2 errors and warnings
415
# 3 some systems may open it to /dev/tty
416
# 4 used on the Kubota Titan
417
# 6 checking for... messages and results
418
# 5 compiler messages saved in config.log
419
if test "$silent" = yes; then
420
  exec 6>/dev/null
421
else
422
  exec 6>&1
423
fi
424
exec 5>./config.log
425
 
426
echo "\
427
This file contains any messages produced by compilers while
428
running configure, to aid debugging if configure makes a mistake.
429
" 1>&5
430
 
431
# Strip out --no-create and --no-recursion so they do not pile up.
432
# Also quote any args containing shell metacharacters.
433
ac_configure_args=
434
for ac_arg
435
do
436
  case "$ac_arg" in
437
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
438
  | --no-cr | --no-c) ;;
439
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
440
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
441
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
443
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
444
  esac
445
done
446
 
447
# NLS nuisances.
448
# Only set these to C if already set.  These must not be set unconditionally
449
# because not all systems understand e.g. LANG=C (notably SCO).
450
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451
# Non-C LC_CTYPE values break the ctype check.
452
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
453
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
454
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
455
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
456
 
457
# confdefs.h avoids OS command line length limits that DEFS can exceed.
458
rm -rf conftest* confdefs.h
459
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
460
echo > confdefs.h
461
 
462
# A filename unique to this package, relative to the directory that
463
# configure is in, which we can look for to find out if srcdir is correct.
464
ac_unique_file=../../generic/tixInit.c
465
 
466
# Find the source files, if location was not specified.
467
if test -z "$srcdir"; then
468
  ac_srcdir_defaulted=yes
469
  # Try the directory containing this script, then its parent.
470
  ac_prog=$0
471
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
473
  srcdir=$ac_confdir
474
  if test ! -r $srcdir/$ac_unique_file; then
475
    srcdir=..
476
  fi
477
else
478
  ac_srcdir_defaulted=no
479
fi
480
if test ! -r $srcdir/$ac_unique_file; then
481
  if test "$ac_srcdir_defaulted" = yes; then
482
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
483
  else
484
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
485
  fi
486
fi
487
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488
 
489
# Prefer explicitly selected file to automatically selected ones.
490
if test -z "$CONFIG_SITE"; then
491
  if test "x$prefix" != xNONE; then
492
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
493
  else
494
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
495
  fi
496
fi
497
for ac_site_file in $CONFIG_SITE; do
498
  if test -r "$ac_site_file"; then
499
    echo "loading site script $ac_site_file"
500
    . "$ac_site_file"
501
  fi
502
done
503
 
504
if test -r "$cache_file"; then
505
  echo "loading cache $cache_file"
506
  . $cache_file
507
else
508
  echo "creating cache $cache_file"
509
  > $cache_file
510
fi
511
 
512
ac_ext=c
513
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514
ac_cpp='$CPP $CPPFLAGS'
515
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517
cross_compiling=$ac_cv_prog_cc_cross
518
 
519
ac_exeext=
520
ac_objext=o
521
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
522
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
524
    ac_n= ac_c='
525
' ac_t='        '
526
  else
527
    ac_n=-n ac_c= ac_t=
528
  fi
529
else
530
  ac_n= ac_c='\c' ac_t=
531
fi
532
 
533
 
534
 
535
#--------------------------------------------------------------------
536
#       Remove the ./config.cache file and rerun configure if
537
#       the cache file belong to a different architecture
538
#----------------------------------------------------------------------
539
# Extract the first word of "uname -a", so it can be a program name with args.
540
set dummy uname -a; ac_word=$2
541
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
542
echo "configure:543: checking for $ac_word" >&5
543
if eval "test \"`echo '$''{'ac_cv_prog_UNAME'+set}'`\" = set"; then
544
  echo $ac_n "(cached) $ac_c" 1>&6
545
else
546
  if test -n "$UNAME"; then
547
  ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
548
else
549
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
550
  for ac_dir in $PATH; do
551
    test -z "$ac_dir" && ac_dir=.
552
    if test -f $ac_dir/$ac_word; then
553
      ac_cv_prog_UNAME="uname -a"
554
      break
555
    fi
556
  done
557
  IFS="$ac_save_ifs"
558
  test -z "$ac_cv_prog_UNAME" && ac_cv_prog_UNAME=""""
559
fi
560
fi
561
UNAME="$ac_cv_prog_UNAME"
562
if test -n "$UNAME"; then
563
  echo "$ac_t""$UNAME" 1>&6
564
else
565
  echo "$ac_t""no" 1>&6
566
fi
567
 
568
if test "$UNAME" = ""; then
569
    # Extract the first word of "uname", so it can be a program name with args.
570
set dummy uname; ac_word=$2
571
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
572
echo "configure:573: checking for $ac_word" >&5
573
if eval "test \"`echo '$''{'ac_cv_prog_UNAME'+set}'`\" = set"; then
574
  echo $ac_n "(cached) $ac_c" 1>&6
575
else
576
  if test -n "$UNAME"; then
577
  ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
578
else
579
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
580
  for ac_dir in $PATH; do
581
    test -z "$ac_dir" && ac_dir=.
582
    if test -f $ac_dir/$ac_word; then
583
      ac_cv_prog_UNAME="uname"
584
      break
585
    fi
586
  done
587
  IFS="$ac_save_ifs"
588
  test -z "$ac_cv_prog_UNAME" && ac_cv_prog_UNAME=""""
589
fi
590
fi
591
UNAME="$ac_cv_prog_UNAME"
592
if test -n "$UNAME"; then
593
  echo "$ac_t""$UNAME" 1>&6
594
else
595
  echo "$ac_t""no" 1>&6
596
fi
597
 
598
fi
599
 
600
if test "$UNAME" != ""; then
601
    uname=`$UNAME`
602
    echo $ac_n "checking cached value of \$uname""... $ac_c" 1>&6
603
echo "configure:604: checking cached value of \$uname" >&5
604
    if eval "test \"`echo '$''{'ac_cv_prog_uname'+set}'`\" = set"; then
605
  echo $ac_n "(cached) $ac_c" 1>&6
606
else
607
  nocached=1 ac_cv_prog_uname=`$UNAME`
608
fi
609
 
610
    if test "$nocached" = "1"; then
611
        echo "$ac_t""no" 1>&6
612
    else
613
        echo "$ac_t""yes" 1>&6
614
    fi
615
 
616
    if test "$uname" != "$ac_cv_prog_uname"; then
617
        echo "Running on a different machine/architecture. Can't use cached values"
618
        echo "Removing config.cache and running configure again ..."
619
        rm -f config.cache
620
        CMDLINE="$0 $*"
621
        exec $CMDLINE
622
    fi
623
fi
624
 
625
#----------------------------------------------------------------------
626
# We don't want to use any relative path because we need to generate
627
# Makefile's in subdirectories
628
#----------------------------------------------------------------------
629
if test "$INSTALL" = "./install.sh"; then
630
    INSTALL=`pwd`/install.sh
631
fi
632
 
633
#--------------------------------------------------------------------
634
#       Version information about this TIX release.
635
#--------------------------------------------------------------------
636
 
637
TIX_VERSION=4.1
638
TIX_MAJOR_VERSION=4
639
TIX_MINOR_VERSION=1
640
 
641
BIN_VERSION=${TIX_VERSION}.7.6
642
 
643
 
644
VERSION=${BIN_VERSION}
645
 
646
#--------------------------------------------------------------------
647
#       See if user wants to use gcc to compile Tix. This option must
648
#       be used before any checking that uses the C compiler.
649
#--------------------------------------------------------------------
650
 
651
# Check whether --enable-gcc or --disable-gcc was given.
652
if test "${enable_gcc+set}" = set; then
653
  enableval="$enable_gcc"
654
  tix_ok=$enableval
655
else
656
  tix_ok=no
657
fi
658
 
659
if test "$tix_ok" = "yes"; then
660
    # Extract the first word of "gcc", so it can be a program name with args.
661
set dummy gcc; ac_word=$2
662
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
663
echo "configure:664: checking for $ac_word" >&5
664
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
665
  echo $ac_n "(cached) $ac_c" 1>&6
666
else
667
  if test -n "$CC"; then
668
  ac_cv_prog_CC="$CC" # Let the user override the test.
669
else
670
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
671
  for ac_dir in $PATH; do
672
    test -z "$ac_dir" && ac_dir=.
673
    if test -f $ac_dir/$ac_word; then
674
      ac_cv_prog_CC="gcc"
675
      break
676
    fi
677
  done
678
  IFS="$ac_save_ifs"
679
fi
680
fi
681
CC="$ac_cv_prog_CC"
682
if test -n "$CC"; then
683
  echo "$ac_t""$CC" 1>&6
684
else
685
  echo "$ac_t""no" 1>&6
686
fi
687
 
688
if test -z "$CC"; then
689
  # Extract the first word of "cc", so it can be a program name with args.
690
set dummy cc; ac_word=$2
691
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
692
echo "configure:693: checking for $ac_word" >&5
693
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
694
  echo $ac_n "(cached) $ac_c" 1>&6
695
else
696
  if test -n "$CC"; then
697
  ac_cv_prog_CC="$CC" # Let the user override the test.
698
else
699
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
700
  ac_prog_rejected=no
701
  for ac_dir in $PATH; do
702
    test -z "$ac_dir" && ac_dir=.
703
    if test -f $ac_dir/$ac_word; then
704
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
705
        ac_prog_rejected=yes
706
        continue
707
      fi
708
      ac_cv_prog_CC="cc"
709
      break
710
    fi
711
  done
712
  IFS="$ac_save_ifs"
713
if test $ac_prog_rejected = yes; then
714
  # We found a bogon in the path, so make sure we never use it.
715
  set dummy $ac_cv_prog_CC
716
  shift
717
  if test $# -gt 0; then
718
    # We chose a different compiler from the bogus one.
719
    # However, it has the same basename, so the bogon will be chosen
720
    # first if we set CC to just the basename; use the full file name.
721
    shift
722
    set dummy "$ac_dir/$ac_word" "$@"
723
    shift
724
    ac_cv_prog_CC="$@"
725
  fi
726
fi
727
fi
728
fi
729
CC="$ac_cv_prog_CC"
730
if test -n "$CC"; then
731
  echo "$ac_t""$CC" 1>&6
732
else
733
  echo "$ac_t""no" 1>&6
734
fi
735
 
736
  if test -z "$CC"; then
737
    case "`uname -s`" in
738
    *win32* | *WIN32*)
739
      # Extract the first word of "cl", so it can be a program name with args.
740
set dummy cl; ac_word=$2
741
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
742
echo "configure:743: checking for $ac_word" >&5
743
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
744
  echo $ac_n "(cached) $ac_c" 1>&6
745
else
746
  if test -n "$CC"; then
747
  ac_cv_prog_CC="$CC" # Let the user override the test.
748
else
749
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
750
  for ac_dir in $PATH; do
751
    test -z "$ac_dir" && ac_dir=.
752
    if test -f $ac_dir/$ac_word; then
753
      ac_cv_prog_CC="cl"
754
      break
755
    fi
756
  done
757
  IFS="$ac_save_ifs"
758
fi
759
fi
760
CC="$ac_cv_prog_CC"
761
if test -n "$CC"; then
762
  echo "$ac_t""$CC" 1>&6
763
else
764
  echo "$ac_t""no" 1>&6
765
fi
766
 ;;
767
    esac
768
  fi
769
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
770
fi
771
 
772
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
773
echo "configure:774: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
774
 
775
ac_ext=c
776
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
777
ac_cpp='$CPP $CPPFLAGS'
778
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
779
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
780
cross_compiling=$ac_cv_prog_cc_cross
781
 
782
cat > conftest.$ac_ext <
783
#line 784 "configure"
784
#include "confdefs.h"
785
main(){return(0);}
786
EOF
787
if { (eval echo configure:788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
788
  ac_cv_prog_cc_works=yes
789
  # If we can't run a trivial program, we are probably using a cross compiler.
790
  if (./conftest; exit) 2>/dev/null; then
791
    ac_cv_prog_cc_cross=no
792
  else
793
    ac_cv_prog_cc_cross=yes
794
  fi
795
else
796
  echo "configure: failed program was:" >&5
797
  cat conftest.$ac_ext >&5
798
  ac_cv_prog_cc_works=no
799
fi
800
rm -fr conftest*
801
 
802
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
803
if test $ac_cv_prog_cc_works = no; then
804
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
805
fi
806
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
807
echo "configure:808: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
808
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
809
cross_compiling=$ac_cv_prog_cc_cross
810
 
811
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
812
echo "configure:813: checking whether we are using GNU C" >&5
813
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
814
  echo $ac_n "(cached) $ac_c" 1>&6
815
else
816
  cat > conftest.c <
817
#ifdef __GNUC__
818
  yes;
819
#endif
820
EOF
821
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
822
  ac_cv_prog_gcc=yes
823
else
824
  ac_cv_prog_gcc=no
825
fi
826
fi
827
 
828
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
829
 
830
if test $ac_cv_prog_gcc = yes; then
831
  GCC=yes
832
else
833
  GCC=
834
fi
835
 
836
ac_test_CFLAGS="${CFLAGS+set}"
837
ac_save_CFLAGS="$CFLAGS"
838
CFLAGS=
839
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
840
echo "configure:841: checking whether ${CC-cc} accepts -g" >&5
841
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
842
  echo $ac_n "(cached) $ac_c" 1>&6
843
else
844
  echo 'void f(){}' > conftest.c
845
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
846
  ac_cv_prog_cc_g=yes
847
else
848
  ac_cv_prog_cc_g=no
849
fi
850
rm -f conftest*
851
 
852
fi
853
 
854
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
855
if test "$ac_test_CFLAGS" = set; then
856
  CFLAGS="$ac_save_CFLAGS"
857
elif test $ac_cv_prog_cc_g = yes; then
858
  if test "$GCC" = yes; then
859
    CFLAGS="-g -O2"
860
  else
861
    CFLAGS="-g"
862
  fi
863
else
864
  if test "$GCC" = yes; then
865
    CFLAGS="-O2"
866
  else
867
    CFLAGS=
868
  fi
869
fi
870
 
871
else
872
    CC=${CC-cc}
873
 
874
fi
875
 
876
ac_aux_dir=
877
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
878
  if test -f $ac_dir/install-sh; then
879
    ac_aux_dir=$ac_dir
880
    ac_install_sh="$ac_aux_dir/install-sh -c"
881
    break
882
  elif test -f $ac_dir/install.sh; then
883
    ac_aux_dir=$ac_dir
884
    ac_install_sh="$ac_aux_dir/install.sh -c"
885
    break
886
  fi
887
done
888
if test -z "$ac_aux_dir"; then
889
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
890
fi
891
ac_config_guess=$ac_aux_dir/config.guess
892
ac_config_sub=$ac_aux_dir/config.sub
893
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
894
 
895
# Find a good install program.  We prefer a C program (faster),
896
# so one script is as good as another.  But avoid the broken or
897
# incompatible versions:
898
# SysV /etc/install, /usr/sbin/install
899
# SunOS /usr/etc/install
900
# IRIX /sbin/install
901
# AIX /bin/install
902
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
903
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
904
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
905
# ./install, which can be erroneously created by make from ./install.sh.
906
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
907
echo "configure:908: checking for a BSD compatible install" >&5
908
if test -z "$INSTALL"; then
909
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
910
  echo $ac_n "(cached) $ac_c" 1>&6
911
else
912
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
913
  for ac_dir in $PATH; do
914
    # Account for people who put trailing slashes in PATH elements.
915
    case "$ac_dir/" in
916
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
917
    *)
918
      # OSF1 and SCO ODT 3.0 have their own names for install.
919
      # Don't use installbsd from OSF since it installs stuff as root
920
      # by default.
921
      for ac_prog in ginstall scoinst install; do
922
        if test -f $ac_dir/$ac_prog; then
923
          if test $ac_prog = install &&
924
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
925
            # AIX install.  It has an incompatible calling convention.
926
            :
927
          else
928
            ac_cv_path_install="$ac_dir/$ac_prog -c"
929
            break 2
930
          fi
931
        fi
932
      done
933
      ;;
934
    esac
935
  done
936
  IFS="$ac_save_IFS"
937
 
938
fi
939
  if test "${ac_cv_path_install+set}" = set; then
940
    INSTALL="$ac_cv_path_install"
941
  else
942
    # As a last resort, use the slow shell script.  We don't cache a
943
    # path for INSTALL within a source directory, because that will
944
    # break other packages using the cache if that directory is
945
    # removed, or if the path is relative.
946
    INSTALL="$ac_install_sh"
947
  fi
948
fi
949
echo "$ac_t""$INSTALL" 1>&6
950
 
951
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
952
# It thinks the first close brace ends the variable substitution.
953
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
954
 
955
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
956
 
957
# Extract the first word of "ranlib", so it can be a program name with args.
958
set dummy ranlib; ac_word=$2
959
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
960
echo "configure:961: checking for $ac_word" >&5
961
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
962
  echo $ac_n "(cached) $ac_c" 1>&6
963
else
964
  if test -n "$RANLIB"; then
965
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
966
else
967
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
968
  for ac_dir in $PATH; do
969
    test -z "$ac_dir" && ac_dir=.
970
    if test -f $ac_dir/$ac_word; then
971
      ac_cv_prog_RANLIB="ranlib"
972
      break
973
    fi
974
  done
975
  IFS="$ac_save_ifs"
976
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
977
fi
978
fi
979
RANLIB="$ac_cv_prog_RANLIB"
980
if test -n "$RANLIB"; then
981
  echo "$ac_t""$RANLIB" 1>&6
982
else
983
  echo "$ac_t""no" 1>&6
984
fi
985
 
986
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
987
echo "configure:988: checking how to run the C preprocessor" >&5
988
# On Suns, sometimes $CPP names a directory.
989
if test -n "$CPP" && test -d "$CPP"; then
990
  CPP=
991
fi
992
if test -z "$CPP"; then
993
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
994
  echo $ac_n "(cached) $ac_c" 1>&6
995
else
996
    # This must be in double quotes, not single quotes, because CPP may get
997
  # substituted into the Makefile and "${CC-cc}" will confuse make.
998
  CPP="${CC-cc} -E"
999
  # On the NeXT, cc -E runs the code through the compiler's parser,
1000
  # not just through cpp.
1001
  cat > conftest.$ac_ext <
1002
#line 1003 "configure"
1003
#include "confdefs.h"
1004
#include 
1005
Syntax Error
1006
EOF
1007
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1008
{ (eval echo configure:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1009
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1010
if test -z "$ac_err"; then
1011
  :
1012
else
1013
  echo "$ac_err" >&5
1014
  echo "configure: failed program was:" >&5
1015
  cat conftest.$ac_ext >&5
1016
  rm -rf conftest*
1017
  CPP="${CC-cc} -E -traditional-cpp"
1018
  cat > conftest.$ac_ext <
1019
#line 1020 "configure"
1020
#include "confdefs.h"
1021
#include 
1022
Syntax Error
1023
EOF
1024
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1025
{ (eval echo configure:1026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1026
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1027
if test -z "$ac_err"; then
1028
  :
1029
else
1030
  echo "$ac_err" >&5
1031
  echo "configure: failed program was:" >&5
1032
  cat conftest.$ac_ext >&5
1033
  rm -rf conftest*
1034
  CPP="${CC-cc} -nologo -E"
1035
  cat > conftest.$ac_ext <
1036
#line 1037 "configure"
1037
#include "confdefs.h"
1038
#include 
1039
Syntax Error
1040
EOF
1041
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1042
{ (eval echo configure:1043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1043
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1044
if test -z "$ac_err"; then
1045
  :
1046
else
1047
  echo "$ac_err" >&5
1048
  echo "configure: failed program was:" >&5
1049
  cat conftest.$ac_ext >&5
1050
  rm -rf conftest*
1051
  CPP=/lib/cpp
1052
fi
1053
rm -f conftest*
1054
fi
1055
rm -f conftest*
1056
fi
1057
rm -f conftest*
1058
  ac_cv_prog_CPP="$CPP"
1059
fi
1060
  CPP="$ac_cv_prog_CPP"
1061
else
1062
  ac_cv_prog_CPP="$CPP"
1063
fi
1064
echo "$ac_t""$CPP" 1>&6
1065
 
1066
for ac_hdr in unistd.h limits.h
1067
do
1068
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1069
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1070
echo "configure:1071: checking for $ac_hdr" >&5
1071
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1072
  echo $ac_n "(cached) $ac_c" 1>&6
1073
else
1074
  cat > conftest.$ac_ext <
1075
#line 1076 "configure"
1076
#include "confdefs.h"
1077
#include <$ac_hdr>
1078
EOF
1079
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1080
{ (eval echo configure:1081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1081
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1082
if test -z "$ac_err"; then
1083
  rm -rf conftest*
1084
  eval "ac_cv_header_$ac_safe=yes"
1085
else
1086
  echo "$ac_err" >&5
1087
  echo "configure: failed program was:" >&5
1088
  cat conftest.$ac_ext >&5
1089
  rm -rf conftest*
1090
  eval "ac_cv_header_$ac_safe=no"
1091
fi
1092
rm -f conftest*
1093
fi
1094
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1095
  echo "$ac_t""yes" 1>&6
1096
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1097
  cat >> confdefs.h <
1098
#define $ac_tr_hdr 1
1099
EOF
1100
 
1101
else
1102
  echo "$ac_t""no" 1>&6
1103
fi
1104
done
1105
 
1106
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1107
echo "configure:1108: checking whether ${MAKE-make} sets \${MAKE}" >&5
1108
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1109
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1110
  echo $ac_n "(cached) $ac_c" 1>&6
1111
else
1112
  cat > conftestmake <<\EOF
1113
all:
1114
        @echo 'ac_maketemp="${MAKE}"'
1115
EOF
1116
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1117
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1118
if test -n "$ac_maketemp"; then
1119
  eval ac_cv_prog_make_${ac_make}_set=yes
1120
else
1121
  eval ac_cv_prog_make_${ac_make}_set=no
1122
fi
1123
rm -f conftestmake
1124
fi
1125
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1126
  echo "$ac_t""yes" 1>&6
1127
  SET_MAKE=
1128
else
1129
  echo "$ac_t""no" 1>&6
1130
  SET_MAKE="MAKE=${MAKE-make}"
1131
fi
1132
 
1133
 
1134
#--------------------------------------------------------------------
1135
#       unsigned char is not supported by some non-ANSI compilers.
1136
#--------------------------------------------------------------------
1137
 
1138
echo $ac_n "checking unsigned char""... $ac_c" 1>&6
1139
echo "configure:1140: checking unsigned char" >&5
1140
cat > conftest.$ac_ext <
1141
#line 1142 "configure"
1142
#include "confdefs.h"
1143
#include 
1144
int main() {
1145
 
1146
     unsigned char c = 'c';
1147
 
1148
; return 0; }
1149
EOF
1150
if { (eval echo configure:1151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1151
  rm -rf conftest*
1152
  tcl_ok=supported
1153
else
1154
  echo "configure: failed program was:" >&5
1155
  cat conftest.$ac_ext >&5
1156
  rm -rf conftest*
1157
  tcl_ok=not supported
1158
fi
1159
rm -f conftest*
1160
 
1161
echo "$ac_t""$tcl_ok" 1>&6
1162
if test $tcl_ok = supported; then
1163
    cat >> confdefs.h <<\EOF
1164
#define UCHAR_SUPPORTED 1
1165
EOF
1166
 
1167
fi
1168
 
1169
#--------------------------------------------------------------------
1170
#       Check whether there is an strcasecmp function on this system.
1171
#       This is a bit tricky because under SCO it's in -lsocket and
1172
#       under Sequent Dynix it's in -linet.
1173
#--------------------------------------------------------------------
1174
 
1175
echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
1176
echo "configure:1177: checking for strcasecmp" >&5
1177
if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
1178
  echo $ac_n "(cached) $ac_c" 1>&6
1179
else
1180
  cat > conftest.$ac_ext <
1181
#line 1182 "configure"
1182
#include "confdefs.h"
1183
/* System header to define __stub macros and hopefully few prototypes,
1184
    which can conflict with char strcasecmp(); below.  */
1185
#include 
1186
/* Override any gcc2 internal prototype to avoid an error.  */
1187
/* We use char because int might match the return type of a gcc2
1188
    builtin and then its argument prototype would still apply.  */
1189
char strcasecmp();
1190
 
1191
int main() {
1192
 
1193
/* The GNU C library defines this for functions which it implements
1194
    to always fail with ENOSYS.  Some functions are actually named
1195
    something starting with __ and the normal name is an alias.  */
1196
#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
1197
choke me
1198
#else
1199
strcasecmp();
1200
#endif
1201
 
1202
; return 0; }
1203
EOF
1204
if { (eval echo configure:1205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1205
  rm -rf conftest*
1206
  eval "ac_cv_func_strcasecmp=yes"
1207
else
1208
  echo "configure: failed program was:" >&5
1209
  cat conftest.$ac_ext >&5
1210
  rm -rf conftest*
1211
  eval "ac_cv_func_strcasecmp=no"
1212
fi
1213
rm -f conftest*
1214
fi
1215
 
1216
if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
1217
  echo "$ac_t""yes" 1>&6
1218
  tcl_ok=1
1219
else
1220
  echo "$ac_t""no" 1>&6
1221
tcl_ok=0
1222
fi
1223
 
1224
if test "$tcl_ok" = 0; then
1225
    echo $ac_n "checking for strcasecmp in -lsocket""... $ac_c" 1>&6
1226
echo "configure:1227: checking for strcasecmp in -lsocket" >&5
1227
ac_lib_var=`echo socket'_'strcasecmp | sed 'y%./+-%__p_%'`
1228
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1229
  echo $ac_n "(cached) $ac_c" 1>&6
1230
else
1231
  ac_save_LIBS="$LIBS"
1232
LIBS="-lsocket  $LIBS"
1233
cat > conftest.$ac_ext <
1234
#line 1235 "configure"
1235
#include "confdefs.h"
1236
/* Override any gcc2 internal prototype to avoid an error.  */
1237
/* We use char because int might match the return type of a gcc2
1238
    builtin and then its argument prototype would still apply.  */
1239
char strcasecmp();
1240
 
1241
int main() {
1242
strcasecmp()
1243
; return 0; }
1244
EOF
1245
if { (eval echo configure:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1246
  rm -rf conftest*
1247
  eval "ac_cv_lib_$ac_lib_var=yes"
1248
else
1249
  echo "configure: failed program was:" >&5
1250
  cat conftest.$ac_ext >&5
1251
  rm -rf conftest*
1252
  eval "ac_cv_lib_$ac_lib_var=no"
1253
fi
1254
rm -f conftest*
1255
LIBS="$ac_save_LIBS"
1256
 
1257
fi
1258
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1259
  echo "$ac_t""yes" 1>&6
1260
  tcl_ok=1
1261
else
1262
  echo "$ac_t""no" 1>&6
1263
tcl_ok=0
1264
fi
1265
 
1266
fi
1267
if test "$tcl_ok" = 0; then
1268
    echo $ac_n "checking for strcasecmp in -linet""... $ac_c" 1>&6
1269
echo "configure:1270: checking for strcasecmp in -linet" >&5
1270
ac_lib_var=`echo inet'_'strcasecmp | sed 'y%./+-%__p_%'`
1271
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1272
  echo $ac_n "(cached) $ac_c" 1>&6
1273
else
1274
  ac_save_LIBS="$LIBS"
1275
LIBS="-linet  $LIBS"
1276
cat > conftest.$ac_ext <
1277
#line 1278 "configure"
1278
#include "confdefs.h"
1279
/* Override any gcc2 internal prototype to avoid an error.  */
1280
/* We use char because int might match the return type of a gcc2
1281
    builtin and then its argument prototype would still apply.  */
1282
char strcasecmp();
1283
 
1284
int main() {
1285
strcasecmp()
1286
; return 0; }
1287
EOF
1288
if { (eval echo configure:1289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1289
  rm -rf conftest*
1290
  eval "ac_cv_lib_$ac_lib_var=yes"
1291
else
1292
  echo "configure: failed program was:" >&5
1293
  cat conftest.$ac_ext >&5
1294
  rm -rf conftest*
1295
  eval "ac_cv_lib_$ac_lib_var=no"
1296
fi
1297
rm -f conftest*
1298
LIBS="$ac_save_LIBS"
1299
 
1300
fi
1301
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1302
  echo "$ac_t""yes" 1>&6
1303
  tcl_ok=1
1304
else
1305
  echo "$ac_t""no" 1>&6
1306
tcl_ok=0
1307
fi
1308
 
1309
fi
1310
if test "$tcl_ok" = 0; then
1311
    cat >> confdefs.h <<\EOF
1312
#define NO_STRCASECMP 1
1313
EOF
1314
 
1315
fi
1316
 
1317
#--------------------------------------------------------------------
1318
#       See if there was a command-line option for where Tcl is;  if
1319
#       not, assume that its top-level directory is a sibling of ours.
1320
#--------------------------------------------------------------------
1321
 
1322
# Check whether --with-tcl or --without-tcl was given.
1323
if test "${with_tcl+set}" = set; then
1324
  withval="$with_tcl"
1325
  val=$withval
1326
else
1327
  val=""
1328
fi
1329
 
1330
 
1331
echo $ac_n "checking Tcl source directory""... $ac_c" 1>&6
1332
echo "configure:1333: checking Tcl source directory" >&5
1333
 
1334
if test "$val" != ""; then
1335
    TCL_SRC_DIR=$val
1336
    if test ! -d $TCL_SRC_DIR; then
1337
        { echo "configure: error: Directory $TCL_SRC_DIR doesn't exist" 1>&2; exit 1; }
1338
        { echo "configure: error: Please install the source code of Tcl 7.6" 1>&2; exit 1; }
1339
        exit 1
1340
    fi
1341
else
1342
    # CYGNUS LOCAL: Just use tcl.
1343
    dirs="${srcdir}/../../../tcl7.6* ${srcdir}/../../../tcl"
1344
    TCL_SRC_DIR="no-no"
1345
    for i in $dirs; do
1346
        if test -d $i; then
1347
            TCL_SRC_DIR=`cd $i; pwd`
1348
        fi
1349
    done
1350
 
1351
    if test ! -d $TCL_SRC_DIR; then
1352
        { echo "configure: error: Cannot locate Tcl source directory in $dirs" 1>&2; exit 1; }
1353
        { echo "configure: error: Please install the source code of Tcl 7.6" 1>&2; exit 1; }
1354
        exit 1
1355
    fi
1356
fi
1357
echo "$ac_t""$TCL_SRC_DIR" 1>&6
1358
 
1359
# CYGNUS LOCAL: This used to get TCL_BIN_DIR from TCL_SRC_DIR, which
1360
# only works when srcdir == objdir
1361
TCL_BIN_DIR=../../../tcl/unix
1362
 
1363
#--------------------------------------------------------------------
1364
#       See if there was a command-line option for where Tk is;  if
1365
#       not, assume that its top-level directory is a sibling of ours.
1366
#--------------------------------------------------------------------
1367
 
1368
# Check whether --with-tk or --without-tk was given.
1369
if test "${with_tk+set}" = set; then
1370
  withval="$with_tk"
1371
  val=$withval
1372
else
1373
  val=""
1374
fi
1375
 
1376
 
1377
echo $ac_n "checking Tk source directory""... $ac_c" 1>&6
1378
echo "configure:1379: checking Tk source directory" >&5
1379
 
1380
if test "$val" != ""; then
1381
    TK_SRC_DIR=$val
1382
    if test ! -d $TK_SRC_DIR; then
1383
        { echo "configure: error: Directory $TK_SRC_DIR doesn't exist" 1>&2; exit 1; }
1384
        { echo "configure: error: Please install the source code of Tk 4.2" 1>&2; exit 1; }
1385
        exit 1
1386
    fi
1387
else
1388
    # CYGNUS LOCAL: Just use tk
1389
    dirs="${srcdir}/../../../tk4.2* ${srcdir}/../../../tk"
1390
    TK_SRC_DIR="no-no"
1391
    for i in $dirs; do
1392
        if test -d $i; then
1393
            TK_SRC_DIR=`cd $i; pwd`
1394
        fi
1395
    done
1396
 
1397
    if test ! -d $TK_SRC_DIR; then
1398
        { echo "configure: error: Cannot locate Tk source directory in $dirs" 1>&2; exit 1; }
1399
        { echo "configure: error: Please install the source code of Tk 4.2" 1>&2; exit 1; }
1400
        exit 1
1401
    fi
1402
fi
1403
echo "$ac_t""$TK_SRC_DIR" 1>&6
1404
 
1405
# CYGNUS LOCAL: This used to get TK_BIN_DIR from TK_SRC_DIR, which
1406
# only works when srcdir == objdir
1407
TK_BIN_DIR=../../../tk/unix
1408
 
1409
#--------------------------------------------------------------------
1410
#       Find out the top level source directory of the Tix package.
1411
#--------------------------------------------------------------------
1412
TIX_SRC_DIR=`cd ${srcdir}/../..; pwd`
1413
 
1414
#--------------------------------------------------------------------
1415
#       See if we should compile SAM
1416
#--------------------------------------------------------------------
1417
 
1418
# Check whether --enable-sam or --disable-sam was given.
1419
if test "${enable_sam+set}" = set; then
1420
  enableval="$enable_sam"
1421
  ok=$enableval
1422
else
1423
  ok=no
1424
fi
1425
 
1426
 
1427
if test "$ok" = "yes"; then
1428
    TIX_BUILD_SAM="yes"
1429
    TIX_SAM_TARGETS='$(SAM_TARGETS)'
1430
    TIX_SAM_INSTALL=_install_sam_
1431
else
1432
    TIX_BUILD_SAM="no"
1433
fi
1434
 
1435
IS_ITCL=0
1436
ITCL_BUILD_LIB_SPEC=""
1437
ITK_BUILD_LIB_SPEC=""
1438
TIX_EXE_FILE=tixwish
1439
TCL_SAMEXE_FILE=satclsh
1440
TK_SAMEXE_FILE=sawish
1441
TIX_SAMEXE_FILE=satixwish
1442
 
1443
#--------------------------------------------------------------------
1444
#       Read in configuration information generated by Tcl for shared
1445
#       libraries, and arrange for it to be substituted into our
1446
#       Makefile.
1447
#--------------------------------------------------------------------
1448
 
1449
file=$TCL_BIN_DIR/tclConfig.sh
1450
. $file
1451
CC=$TCL_CC
1452
SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
1453
SHLIB_LD=$TCL_SHLIB_LD
1454
SHLIB_LD_LIBS=$TCL_SHLIB_LD_LIBS
1455
SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
1456
SHLIB_VERSION=$TCL_SHLIB_VERSION
1457
 
1458
DL_LIBS=$TCL_DL_LIBS
1459
LD_FLAGS=$TCL_LD_FLAGS
1460
TIX_LD_SEARCH_FLAGS=$TCL_LD_SEARCH_FLAGS
1461
 
1462
#--------------------------------------------------------------------
1463
#       Read in configuration information generated by Tk and arrange
1464
#       for it to be substituted into our Makefile.
1465
#--------------------------------------------------------------------
1466
file=$TK_BIN_DIR/tkConfig.sh
1467
. $file
1468
 
1469
TIX_DEFS="$TK_DEFS $TCL_DEFS"
1470
 
1471
# Note:  in the following variable, it's important to use the absolute
1472
# path name of the Tcl directory rather than "..":  this is because
1473
# AIX remembers this path and will attempt to use it at run-time to look
1474
# up the Tcl library.
1475
 
1476
if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
1477
    TIX_BUILD_LIB_SPEC="-L`pwd` -ltix${VERSION}"
1478
    TIX_BUILD_SAM_SPEC="-L`pwd` -ltixsam${VERSION}"
1479
    TCL_BUILD_SAM_SPEC="-L`pwd` -ltclsam${TCL_VERSION}"
1480
    TK_BUILD_SAM_SPEC="-L`pwd` -ltksam${TK_VERSION}"
1481
    TIX_LIB_SPEC="-L${exec_prefix}/lib -ltix${VERSION}"
1482
else
1483
    TIX_BUILD_LIB_SPEC="-L`pwd` -ltix`echo ${VERSION} | tr -d .`"
1484
    TIX_BUILD_SAM_SPEC="-L`pwd` -ltixsam`echo ${VERSION} | tr -d .`"
1485
    TCL_BUILD_SAM_SPEC="-L`pwd` -ltclsam`echo ${TCL_VERSION} | tr -d .`"
1486
    TK_BUILD_SAM_SPEC="-L`pwd` -ltksam`echo ${TK_VERSION} | tr -d .`"
1487
    TIX_LIB_SPEC="-L${exec_prefix}/lib -ltix`echo ${VERSION} | tr -d .`"
1488
fi
1489
 
1490
#--------------------------------------------------------------------
1491
#       See if we should compile shared library.
1492
#--------------------------------------------------------------------
1493
 
1494
# Check whether --enable-shared or --disable-shared was given.
1495
if test "${enable_shared+set}" = set; then
1496
  enableval="$enable_shared"
1497
  ok=$enableval
1498
else
1499
  ok=no
1500
fi
1501
 
1502
 
1503
if test "$ok" = "yes" -a "${SHLIB_SUFFIX}" != ""; then
1504
    TIX_SHLIB_CFLAGS="${SHLIB_CFLAGS}"
1505
    RANLIB=":"
1506
 
1507
    # The main Tix library
1508
    #
1509
    eval "TIX_LIB_FILE=libtix${TCL_SHARED_LIB_SUFFIX}"
1510
    TIX_MAKE_LIB="\${SHLIB_LD} -o ${TIX_LIB_FILE} \${OBJS} ${SHLIB_LD_LIBS}"
1511
 
1512
    # The Tcl SAM library
1513
    #
1514
    VERSION=7.6
1515
    eval "TCL_SAM_FILE=libtclsam${TCL_SHARED_LIB_SUFFIX}"
1516
    TCL_MAKE_SAM="\${SHLIB_LD} -o ${TCL_SAM_FILE} \${TCL_SAM_OBJS} ${SHLIB_LD_LIBS}"
1517
 
1518
    # The Tk SAM library
1519
    #
1520
    VERSION=4.2
1521
    eval "TK_SAM_FILE=libtksam${TCL_SHARED_LIB_SUFFIX}"
1522
    TK_MAKE_SAM="\${SHLIB_LD} -o ${TK_SAM_FILE} \${TK_SAM_OBJS} ${SHLIB_LD_LIBS}"
1523
 
1524
    # The Tix SAM library
1525
    #
1526
    VERSION=${BIN_VERSION}
1527
    eval "TIX_SAM_FILE=libtixsam${TCL_SHARED_LIB_SUFFIX}"
1528
    TIX_MAKE_SAM="\${SHLIB_LD} -o ${TIX_SAM_FILE} \${TIX_SAM_OBJS} ${SHLIB_LD_LIBS}"
1529
 
1530
else
1531
    TIX_SHLIB_CFLAGS=""
1532
 
1533
    # The main Tix library
1534
    #
1535
    eval "TIX_LIB_FILE=libtix${TCL_UNSHARED_LIB_SUFFIX}"
1536
    TIX_MAKE_LIB="ar cr ${TIX_LIB_FILE} \${OBJS}"
1537
 
1538
    # The Tcl SAM library
1539
 
1540
    VERSION=7.6
1541
    eval "TCL_SAM_FILE=libtclsam${TCL_UNSHARED_LIB_SUFFIX}"
1542
    TCL_MAKE_SAM="ar cr ${TCL_SAM_FILE} \${TCL_SAM_OBJS}"
1543
 
1544
    # The Tk SAM library
1545
    #
1546
    VERSION=4.2
1547
    eval "TK_SAM_FILE=libtksam${TCL_UNSHARED_LIB_SUFFIX}"
1548
    TK_MAKE_SAM="ar cr ${TK_SAM_FILE} \${TK_SAM_OBJS}"
1549
 
1550
    # The Tix SAM library
1551
    #
1552
    VERSION=${BIN_VERSION}
1553
    eval "TIX_SAM_FILE=libtixsam${TCL_UNSHARED_LIB_SUFFIX}"
1554
    TIX_MAKE_SAM="ar cr ${TIX_SAM_FILE} \${TIX_SAM_OBJS}"
1555
fi
1556
 
1557
 
1558
#--------------------------------------------------------------------
1559
#       Check for the existence of the -lsocket and -lnsl libraries.
1560
#       The order here is important, so that they end up in the right
1561
#       order in the command line generated by make.  Here are some
1562
#       special considerations:
1563
#       1. Use "connect" and "accept" to check for -lsocket, and
1564
#          "gethostbyname" to check for -lnsl.
1565
#       2. Use each function name only once:  can't redo a check because
1566
#          autoconf caches the results of the last check and won't redo it.
1567
#       3. Use -lnsl and -lsocket only if they supply procedures that
1568
#          aren't already present in the normal libraries.  This is because
1569
#          IRIX 5.2 has libraries, but they aren't needed and they're
1570
#          bogus:  they goof up name resolution if used.
1571
#       4. On some SVR4 systems, can't use -lsocket without -lnsl too.
1572
#          To get around this problem, check for both libraries together
1573
#          if -lsocket doesn't work by itself.
1574
#--------------------------------------------------------------------
1575
 
1576
checked=0
1577
for i in $TK_LIBS; do
1578
    if test "$i" = "-lsocket"; then
1579
        checked=1
1580
    fi
1581
done
1582
 
1583
if test "$checked" = "0"; then
1584
    tcl_checkBoth=0
1585
    echo $ac_n "checking for connect""... $ac_c" 1>&6
1586
echo "configure:1587: checking for connect" >&5
1587
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1588
  echo $ac_n "(cached) $ac_c" 1>&6
1589
else
1590
  cat > conftest.$ac_ext <
1591
#line 1592 "configure"
1592
#include "confdefs.h"
1593
/* System header to define __stub macros and hopefully few prototypes,
1594
    which can conflict with char connect(); below.  */
1595
#include 
1596
/* Override any gcc2 internal prototype to avoid an error.  */
1597
/* We use char because int might match the return type of a gcc2
1598
    builtin and then its argument prototype would still apply.  */
1599
char connect();
1600
 
1601
int main() {
1602
 
1603
/* The GNU C library defines this for functions which it implements
1604
    to always fail with ENOSYS.  Some functions are actually named
1605
    something starting with __ and the normal name is an alias.  */
1606
#if defined (__stub_connect) || defined (__stub___connect)
1607
choke me
1608
#else
1609
connect();
1610
#endif
1611
 
1612
; return 0; }
1613
EOF
1614
if { (eval echo configure:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1615
  rm -rf conftest*
1616
  eval "ac_cv_func_connect=yes"
1617
else
1618
  echo "configure: failed program was:" >&5
1619
  cat conftest.$ac_ext >&5
1620
  rm -rf conftest*
1621
  eval "ac_cv_func_connect=no"
1622
fi
1623
rm -f conftest*
1624
fi
1625
 
1626
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1627
  echo "$ac_t""yes" 1>&6
1628
  tcl_checkSocket=0
1629
else
1630
  echo "$ac_t""no" 1>&6
1631
tcl_checkSocket=1
1632
fi
1633
 
1634
    if test "$tcl_checkSocket" = 1; then
1635
        echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1636
echo "configure:1637: checking for main in -lsocket" >&5
1637
ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1638
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1639
  echo $ac_n "(cached) $ac_c" 1>&6
1640
else
1641
  ac_save_LIBS="$LIBS"
1642
LIBS="-lsocket  $LIBS"
1643
cat > conftest.$ac_ext <
1644
#line 1645 "configure"
1645
#include "confdefs.h"
1646
 
1647
int main() {
1648
main()
1649
; return 0; }
1650
EOF
1651
if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1652
  rm -rf conftest*
1653
  eval "ac_cv_lib_$ac_lib_var=yes"
1654
else
1655
  echo "configure: failed program was:" >&5
1656
  cat conftest.$ac_ext >&5
1657
  rm -rf conftest*
1658
  eval "ac_cv_lib_$ac_lib_var=no"
1659
fi
1660
rm -f conftest*
1661
LIBS="$ac_save_LIBS"
1662
 
1663
fi
1664
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1665
  echo "$ac_t""yes" 1>&6
1666
  TK_LIBS="$TK_LIBS -lsocket"
1667
else
1668
  echo "$ac_t""no" 1>&6
1669
tcl_checkBoth=1
1670
fi
1671
 
1672
    fi
1673
    if test "$tcl_checkBoth" = 1; then
1674
        tk_oldLibs=$TK_LIBS
1675
        TK_LIBS="$TK_LIBS -lsocket -lnsl"
1676
        echo $ac_n "checking for accept""... $ac_c" 1>&6
1677
echo "configure:1678: checking for accept" >&5
1678
if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
1679
  echo $ac_n "(cached) $ac_c" 1>&6
1680
else
1681
  cat > conftest.$ac_ext <
1682
#line 1683 "configure"
1683
#include "confdefs.h"
1684
/* System header to define __stub macros and hopefully few prototypes,
1685
    which can conflict with char accept(); below.  */
1686
#include 
1687
/* Override any gcc2 internal prototype to avoid an error.  */
1688
/* We use char because int might match the return type of a gcc2
1689
    builtin and then its argument prototype would still apply.  */
1690
char accept();
1691
 
1692
int main() {
1693
 
1694
/* The GNU C library defines this for functions which it implements
1695
    to always fail with ENOSYS.  Some functions are actually named
1696
    something starting with __ and the normal name is an alias.  */
1697
#if defined (__stub_accept) || defined (__stub___accept)
1698
choke me
1699
#else
1700
accept();
1701
#endif
1702
 
1703
; return 0; }
1704
EOF
1705
if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1706
  rm -rf conftest*
1707
  eval "ac_cv_func_accept=yes"
1708
else
1709
  echo "configure: failed program was:" >&5
1710
  cat conftest.$ac_ext >&5
1711
  rm -rf conftest*
1712
  eval "ac_cv_func_accept=no"
1713
fi
1714
rm -f conftest*
1715
fi
1716
 
1717
if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
1718
  echo "$ac_t""yes" 1>&6
1719
  tcl_checkNsl=0
1720
else
1721
  echo "$ac_t""no" 1>&6
1722
TK_LIBS=$tk_oldLibs
1723
fi
1724
 
1725
    fi
1726
    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1727
echo "configure:1728: checking for gethostbyname" >&5
1728
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1729
  echo $ac_n "(cached) $ac_c" 1>&6
1730
else
1731
  cat > conftest.$ac_ext <
1732
#line 1733 "configure"
1733
#include "confdefs.h"
1734
/* System header to define __stub macros and hopefully few prototypes,
1735
    which can conflict with char gethostbyname(); below.  */
1736
#include 
1737
/* Override any gcc2 internal prototype to avoid an error.  */
1738
/* We use char because int might match the return type of a gcc2
1739
    builtin and then its argument prototype would still apply.  */
1740
char gethostbyname();
1741
 
1742
int main() {
1743
 
1744
/* The GNU C library defines this for functions which it implements
1745
    to always fail with ENOSYS.  Some functions are actually named
1746
    something starting with __ and the normal name is an alias.  */
1747
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1748
choke me
1749
#else
1750
gethostbyname();
1751
#endif
1752
 
1753
; return 0; }
1754
EOF
1755
if { (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1756
  rm -rf conftest*
1757
  eval "ac_cv_func_gethostbyname=yes"
1758
else
1759
  echo "configure: failed program was:" >&5
1760
  cat conftest.$ac_ext >&5
1761
  rm -rf conftest*
1762
  eval "ac_cv_func_gethostbyname=no"
1763
fi
1764
rm -f conftest*
1765
fi
1766
 
1767
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1768
  echo "$ac_t""yes" 1>&6
1769
  :
1770
else
1771
  echo "$ac_t""no" 1>&6
1772
echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1773
echo "configure:1774: checking for main in -lnsl" >&5
1774
ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1775
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1776
  echo $ac_n "(cached) $ac_c" 1>&6
1777
else
1778
  ac_save_LIBS="$LIBS"
1779
LIBS="-lnsl  $LIBS"
1780
cat > conftest.$ac_ext <
1781
#line 1782 "configure"
1782
#include "confdefs.h"
1783
 
1784
int main() {
1785
main()
1786
; return 0; }
1787
EOF
1788
if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1789
  rm -rf conftest*
1790
  eval "ac_cv_lib_$ac_lib_var=yes"
1791
else
1792
  echo "configure: failed program was:" >&5
1793
  cat conftest.$ac_ext >&5
1794
  rm -rf conftest*
1795
  eval "ac_cv_lib_$ac_lib_var=no"
1796
fi
1797
rm -f conftest*
1798
LIBS="$ac_save_LIBS"
1799
 
1800
fi
1801
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1802
  echo "$ac_t""yes" 1>&6
1803
  TK_LIBS="$TK_LIBS -lnsl"
1804
else
1805
  echo "$ac_t""no" 1>&6
1806
fi
1807
 
1808
fi
1809
 
1810
fi
1811
 
1812
#----------------------------------------------------------------------
1813
#       Substitution strings exported by TIX
1814
#----------------------------------------------------------------------
1815
 
1816
 
1817
 
1818
 
1819
 
1820
 
1821
 
1822
 
1823
 
1824
 
1825
 
1826
 
1827
 
1828
 
1829
 
1830
 
1831
 
1832
 
1833
 
1834
 
1835
 
1836
 
1837
 
1838
 
1839
 
1840
 
1841
 
1842
 
1843
 
1844
 
1845
 
1846
 
1847
 
1848
 
1849
 
1850
 
1851
 
1852
 
1853
 
1854
 
1855
 
1856
 
1857
 
1858
 
1859
 
1860
 
1861
 
1862
 
1863
 
1864
# The "binary version" of Tix (see docs/Pkg.txt)
1865
TIX_VERSION_PKG=${BIN_VERSION}
1866
 
1867
 
1868
TIXSAM_PKG_FILE="[file join [file dirname \$dir] ${TIX_SAM_FILE}]"
1869
if test "$TIX_BUILD_SAM" = "yes"; then
1870
    TIX_SAM_PACKAGE_IFNEEDED="package ifneeded Tixsam ${TIX_VERSION_PKG} [list load \"${TIXSAM_PKG_FILE}\" Tixsam]"
1871
fi
1872
 
1873
# The package file, usually a shared library
1874
TIX_PKG_FILE="[file join [file dirname \$dir] ${TIX_LIB_FILE}]"
1875
 
1876
 
1877
 
1878
trap '' 1 2 15
1879
cat > confcache <<\EOF
1880
# This file is a shell script that caches the results of configure
1881
# tests run on this system so they can be shared between configure
1882
# scripts and configure runs.  It is not useful on other systems.
1883
# If it contains results you don't want to keep, you may remove or edit it.
1884
#
1885
# By default, configure uses ./config.cache as the cache file,
1886
# creating it if it does not exist already.  You can give configure
1887
# the --cache-file=FILE option to use a different cache file; that is
1888
# what configure does when it calls configure scripts in
1889
# subdirectories, so they share the cache.
1890
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1891
# config.status only pays attention to the cache file if you give it the
1892
# --recheck option to rerun configure.
1893
#
1894
EOF
1895
# The following way of writing the cache mishandles newlines in values,
1896
# but we know of no workaround that is simple, portable, and efficient.
1897
# So, don't put newlines in cache variables' values.
1898
# Ultrix sh set writes to stderr and can't be redirected directly,
1899
# and sets the high bit in the cache file unless we assign to the vars.
1900
(set) 2>&1 |
1901
  case `(ac_space=' '; set) 2>&1 | grep ac_space` in
1902
  *ac_space=\ *)
1903
    # `set' does not quote correctly, so add quotes (double-quote substitution
1904
    # turns \\\\ into \\, and sed turns \\ into \).
1905
    sed -n \
1906
      -e "s/'/'\\\\''/g" \
1907
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1908
    ;;
1909
  *)
1910
    # `set' quotes correctly as required by POSIX, so do not add quotes.
1911
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1912
    ;;
1913
  esac >> confcache
1914
if cmp -s $cache_file confcache; then
1915
  :
1916
else
1917
  if test -w $cache_file; then
1918
    echo "updating cache $cache_file"
1919
    cat confcache > $cache_file
1920
  else
1921
    echo "not updating unwritable cache $cache_file"
1922
  fi
1923
fi
1924
rm -f confcache
1925
 
1926
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1927
 
1928
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1929
# Let make expand exec_prefix.
1930
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1931
 
1932
# Any assignment to VPATH causes Sun make to only execute
1933
# the first set of double-colon rules, so remove it if not needed.
1934
# If there is a colon in the path, we need to keep it.
1935
if test "x$srcdir" = x.; then
1936
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1937
fi
1938
 
1939
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1940
 
1941
# Transform confdefs.h into DEFS.
1942
# Protect against shell expansion while executing Makefile rules.
1943
# Protect against Makefile macro expansion.
1944
cat > conftest.defs <<\EOF
1945
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1946
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1947
s%\[%\\&%g
1948
s%\]%\\&%g
1949
s%\$%$$%g
1950
EOF
1951
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1952
rm -f conftest.defs
1953
 
1954
 
1955
# Without the "./", some shells look in PATH for config.status.
1956
: ${CONFIG_STATUS=./config.status}
1957
 
1958
echo creating $CONFIG_STATUS
1959
rm -f $CONFIG_STATUS
1960
cat > $CONFIG_STATUS <
1961
#! /bin/sh
1962
# Generated automatically by configure.
1963
# Run this file to recreate the current configuration.
1964
# This directory was configured as follows,
1965
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1966
#
1967
# $0 $ac_configure_args
1968
#
1969
# Compiler output produced by configure, useful for debugging
1970
# configure, is in ./config.log if it exists.
1971
 
1972
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1973
for ac_option
1974
do
1975
  case "\$ac_option" in
1976
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1977
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1978
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1979
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1980
    echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
1981
    exit 0 ;;
1982
  -help | --help | --hel | --he | --h)
1983
    echo "\$ac_cs_usage"; exit 0 ;;
1984
  *) echo "\$ac_cs_usage"; exit 1 ;;
1985
  esac
1986
done
1987
 
1988
ac_given_srcdir=$srcdir
1989
ac_given_INSTALL="$INSTALL"
1990
 
1991
trap 'rm -fr `echo "Makefile pkgIndex.tcl" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1992
EOF
1993
cat >> $CONFIG_STATUS <
1994
 
1995
# Protect against being on the right side of a sed subst in config.status.
1996
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1997
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1998
$ac_vpsub
1999
$extrasub
2000
s%@SHELL@%$SHELL%g
2001
s%@CFLAGS@%$CFLAGS%g
2002
s%@CPPFLAGS@%$CPPFLAGS%g
2003
s%@CXXFLAGS@%$CXXFLAGS%g
2004
s%@DEFS@%$DEFS%g
2005
s%@LDFLAGS@%$LDFLAGS%g
2006
s%@LIBS@%$LIBS%g
2007
s%@exec_prefix@%$exec_prefix%g
2008
s%@prefix@%$prefix%g
2009
s%@program_transform_name@%$program_transform_name%g
2010
s%@bindir@%$bindir%g
2011
s%@sbindir@%$sbindir%g
2012
s%@libexecdir@%$libexecdir%g
2013
s%@datadir@%$datadir%g
2014
s%@sysconfdir@%$sysconfdir%g
2015
s%@sharedstatedir@%$sharedstatedir%g
2016
s%@localstatedir@%$localstatedir%g
2017
s%@libdir@%$libdir%g
2018
s%@includedir@%$includedir%g
2019
s%@oldincludedir@%$oldincludedir%g
2020
s%@infodir@%$infodir%g
2021
s%@mandir@%$mandir%g
2022
s%@UNAME@%$UNAME%g
2023
s%@CC@%$CC%g
2024
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2025
s%@INSTALL_DATA@%$INSTALL_DATA%g
2026
s%@RANLIB@%$RANLIB%g
2027
s%@CPP@%$CPP%g
2028
s%@SET_MAKE@%$SET_MAKE%g
2029
s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
2030
s%@SHLIB_LD@%$SHLIB_LD%g
2031
s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
2032
s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
2033
s%@SHLIB_VERSION@%$SHLIB_VERSION%g
2034
s%@DL_LIBS@%$DL_LIBS%g
2035
s%@LD_FLAGS@%$LD_FLAGS%g
2036
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
2037
s%@TCL_LIBS@%$TCL_LIBS%g
2038
s%@TCL_VERSION@%$TCL_VERSION%g
2039
s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
2040
s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g
2041
s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
2042
s%@TK_LIBS@%$TK_LIBS%g
2043
s%@TK_VERSION@%$TK_VERSION%g
2044
s%@TK_SRC_DIR@%$TK_SRC_DIR%g
2045
s%@TK_BIN_DIR@%$TK_BIN_DIR%g
2046
s%@TK_XINCLUDES@%$TK_XINCLUDES%g
2047
s%@TIX_LD_SEARCH_FLAGS@%$TIX_LD_SEARCH_FLAGS%g
2048
s%@TIX_MAJOR_VERSION@%$TIX_MAJOR_VERSION%g
2049
s%@TIX_MINOR_VERSION@%$TIX_MINOR_VERSION%g
2050
s%@TIX_VERSION@%$TIX_VERSION%g
2051
s%@TIX_SRC_DIR@%$TIX_SRC_DIR%g
2052
s%@TIX_SHLIB_CFLAGS@%$TIX_SHLIB_CFLAGS%g
2053
s%@TIX_MAKE_LIB@%$TIX_MAKE_LIB%g
2054
s%@TIX_LIB_FILE@%$TIX_LIB_FILE%g
2055
s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
2056
s%@TIX_LIB_SPEC@%$TIX_LIB_SPEC%g
2057
s%@TIX_EXE_FILE@%$TIX_EXE_FILE%g
2058
s%@TIX_SAM_TARGETS@%$TIX_SAM_TARGETS%g
2059
s%@TIX_SAM_INSTALL@%$TIX_SAM_INSTALL%g
2060
s%@TCL_SAM_FILE@%$TCL_SAM_FILE%g
2061
s%@TCL_MAKE_SAM@%$TCL_MAKE_SAM%g
2062
s%@TK_SAM_FILE@%$TK_SAM_FILE%g
2063
s%@TK_MAKE_SAM@%$TK_MAKE_SAM%g
2064
s%@TIX_SAM_FILE@%$TIX_SAM_FILE%g
2065
s%@TIX_MAKE_SAM@%$TIX_MAKE_SAM%g
2066
s%@TIX_DEFS@%$TIX_DEFS%g
2067
s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
2068
s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
2069
s%@TCL_SAMEXE_FILE@%$TCL_SAMEXE_FILE%g
2070
s%@TK_SAMEXE_FILE@%$TK_SAMEXE_FILE%g
2071
s%@TIX_SAMEXE_FILE@%$TIX_SAMEXE_FILE%g
2072
s%@TCL_BUILD_SAM_SPEC@%$TCL_BUILD_SAM_SPEC%g
2073
s%@TK_BUILD_SAM_SPEC@%$TK_BUILD_SAM_SPEC%g
2074
s%@TIX_BUILD_SAM_SPEC@%$TIX_BUILD_SAM_SPEC%g
2075
s%@TIX_VERSION_PKG@%$TIX_VERSION_PKG%g
2076
s%@TIX_PKG_FILE@%$TIX_PKG_FILE%g
2077
s%@TIX_SAM_PACKAGE_IFNEEDED@%$TIX_SAM_PACKAGE_IFNEEDED%g
2078
 
2079
CEOF
2080
EOF
2081
 
2082
cat >> $CONFIG_STATUS <<\EOF
2083
 
2084
# Split the substitutions into bite-sized pieces for seds with
2085
# small command number limits, like on Digital OSF/1 and HP-UX.
2086
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2087
ac_file=1 # Number of current file.
2088
ac_beg=1 # First line for current file.
2089
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2090
ac_more_lines=:
2091
ac_sed_cmds=""
2092
while $ac_more_lines; do
2093
  if test $ac_beg -gt 1; then
2094
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2095
  else
2096
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2097
  fi
2098
  if test ! -s conftest.s$ac_file; then
2099
    ac_more_lines=false
2100
    rm -f conftest.s$ac_file
2101
  else
2102
    if test -z "$ac_sed_cmds"; then
2103
      ac_sed_cmds="sed -f conftest.s$ac_file"
2104
    else
2105
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2106
    fi
2107
    ac_file=`expr $ac_file + 1`
2108
    ac_beg=$ac_end
2109
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2110
  fi
2111
done
2112
if test -z "$ac_sed_cmds"; then
2113
  ac_sed_cmds=cat
2114
fi
2115
EOF
2116
 
2117
cat >> $CONFIG_STATUS <
2118
 
2119
CONFIG_FILES=\${CONFIG_FILES-"Makefile pkgIndex.tcl"}
2120
EOF
2121
cat >> $CONFIG_STATUS <<\EOF
2122
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2123
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2124
  case "$ac_file" in
2125
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2126
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2127
  *) ac_file_in="${ac_file}.in" ;;
2128
  esac
2129
 
2130
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2131
 
2132
  # Remove last slash and all that follows it.  Not all systems have dirname.
2133
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2134
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2135
    # The file is in a subdirectory.
2136
    test ! -d "$ac_dir" && mkdir "$ac_dir"
2137
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2138
    # A "../" for each directory in $ac_dir_suffix.
2139
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2140
  else
2141
    ac_dir_suffix= ac_dots=
2142
  fi
2143
 
2144
  case "$ac_given_srcdir" in
2145
  .)  srcdir=.
2146
      if test -z "$ac_dots"; then top_srcdir=.
2147
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2148
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2149
  *) # Relative path.
2150
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2151
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2152
  esac
2153
 
2154
  case "$ac_given_INSTALL" in
2155
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2156
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2157
  esac
2158
 
2159
  echo creating "$ac_file"
2160
  rm -f "$ac_file"
2161
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2162
  case "$ac_file" in
2163
  *Makefile*) ac_comsub="1i\\
2164
# $configure_input" ;;
2165
  *) ac_comsub= ;;
2166
  esac
2167
 
2168
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2169
  sed -e "$ac_comsub
2170
s%@configure_input@%$configure_input%g
2171
s%@srcdir@%$srcdir%g
2172
s%@top_srcdir@%$top_srcdir%g
2173
s%@INSTALL@%$INSTALL%g
2174
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2175
fi; done
2176
rm -f conftest.s*
2177
 
2178
EOF
2179
cat >> $CONFIG_STATUS <
2180
 
2181
EOF
2182
cat >> $CONFIG_STATUS <<\EOF
2183
 
2184
exit 0
2185
EOF
2186
chmod +x $CONFIG_STATUS
2187
rm -fr confdefs* $ac_clean_files
2188
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2189
 
2190
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.