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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [itcl/] [unix/] [configure] - Blame information for rev 1773

Go to most recent revision | 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.13
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_default_prefix=/usr/local
15
ac_help="$ac_help
16
  --with-tcl=DIR          use Tcl 8.0 binaries from DIR"
17
ac_help="$ac_help
18
  --with-cflags=FLAGS     set compiler flags to FLAGS"
19
ac_help="$ac_help
20
  --enable-shared         build libitcl as a shared library"
21
 
22
# Initialize some variables set by options.
23
# The variables have the same names as the options, with
24
# dashes changed to underlines.
25
build=NONE
26
cache_file=./config.cache
27
exec_prefix=NONE
28
host=NONE
29
no_create=
30
nonopt=NONE
31
no_recursion=
32
prefix=NONE
33
program_prefix=NONE
34
program_suffix=NONE
35
program_transform_name=s,x,x,
36
silent=
37
site=
38
srcdir=
39
target=NONE
40
verbose=
41
x_includes=NONE
42
x_libraries=NONE
43
bindir='${exec_prefix}/bin'
44
sbindir='${exec_prefix}/sbin'
45
libexecdir='${exec_prefix}/libexec'
46
datadir='${prefix}/share'
47
sysconfdir='${prefix}/etc'
48
sharedstatedir='${prefix}/com'
49
localstatedir='${prefix}/var'
50
libdir='${exec_prefix}/lib'
51
includedir='${prefix}/include'
52
oldincludedir='/usr/include'
53
infodir='${prefix}/info'
54
mandir='${prefix}/man'
55
 
56
# Initialize some other variables.
57
subdirs=
58
MFLAGS= MAKEFLAGS=
59
SHELL=${CONFIG_SHELL-/bin/sh}
60
# Maximum number of lines to put in a shell here document.
61
ac_max_here_lines=12
62
 
63
ac_prev=
64
for ac_option
65
do
66
 
67
  # If the previous option needs an argument, assign it.
68
  if test -n "$ac_prev"; then
69
    eval "$ac_prev=\$ac_option"
70
    ac_prev=
71
    continue
72
  fi
73
 
74
  case "$ac_option" in
75
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76
  *) ac_optarg= ;;
77
  esac
78
 
79
  # Accept the important Cygnus configure options, so we can diagnose typos.
80
 
81
  case "$ac_option" in
82
 
83
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
84
    ac_prev=bindir ;;
85
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86
    bindir="$ac_optarg" ;;
87
 
88
  -build | --build | --buil | --bui | --bu)
89
    ac_prev=build ;;
90
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
91
    build="$ac_optarg" ;;
92
 
93
  -cache-file | --cache-file | --cache-fil | --cache-fi \
94
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95
    ac_prev=cache_file ;;
96
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98
    cache_file="$ac_optarg" ;;
99
 
100
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101
    ac_prev=datadir ;;
102
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103
  | --da=*)
104
    datadir="$ac_optarg" ;;
105
 
106
  -disable-* | --disable-*)
107
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
108
    # Reject names that are not valid shell variable names.
109
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111
    fi
112
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
113
    eval "enable_${ac_feature}=no" ;;
114
 
115
  -enable-* | --enable-*)
116
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117
    # Reject names that are not valid shell variable names.
118
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120
    fi
121
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122
    case "$ac_option" in
123
      *=*) ;;
124
      *) ac_optarg=yes ;;
125
    esac
126
    eval "enable_${ac_feature}='$ac_optarg'" ;;
127
 
128
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
129
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
130
  | --exec | --exe | --ex)
131
    ac_prev=exec_prefix ;;
132
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
133
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
134
  | --exec=* | --exe=* | --ex=*)
135
    exec_prefix="$ac_optarg" ;;
136
 
137
  -gas | --gas | --ga | --g)
138
    # Obsolete; use --with-gas.
139
    with_gas=yes ;;
140
 
141
  -help | --help | --hel | --he)
142
    # Omit some internal or obsolete options to make the list less imposing.
143
    # This message is too long to be a string in the A/UX 3.1 sh.
144
    cat << EOF
145
Usage: configure [options] [host]
146
Options: [defaults in brackets after descriptions]
147
Configuration:
148
  --cache-file=FILE       cache test results in FILE
149
  --help                  print this message
150
  --no-create             do not create output files
151
  --quiet, --silent       do not print \`checking...' messages
152
  --version               print the version of autoconf that created configure
153
Directory and file names:
154
  --prefix=PREFIX         install architecture-independent files in PREFIX
155
                          [$ac_default_prefix]
156
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
157
                          [same as prefix]
158
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
159
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
160
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
161
  --datadir=DIR           read-only architecture-independent data in DIR
162
                          [PREFIX/share]
163
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
164
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
165
                          [PREFIX/com]
166
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
167
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
168
  --includedir=DIR        C header files in DIR [PREFIX/include]
169
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
170
  --infodir=DIR           info documentation in DIR [PREFIX/info]
171
  --mandir=DIR            man documentation in DIR [PREFIX/man]
172
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
173
  --program-prefix=PREFIX prepend PREFIX to installed program names
174
  --program-suffix=SUFFIX append SUFFIX to installed program names
175
  --program-transform-name=PROGRAM
176
                          run sed PROGRAM on installed program names
177
EOF
178
    cat << EOF
179
Host type:
180
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
181
  --host=HOST             configure for HOST [guessed]
182
  --target=TARGET         configure for TARGET [TARGET=HOST]
183
Features and packages:
184
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
185
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
186
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
187
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
188
  --x-includes=DIR        X include files are in DIR
189
  --x-libraries=DIR       X library files are in DIR
190
EOF
191
    if test -n "$ac_help"; then
192
      echo "--enable and --with options recognized:$ac_help"
193
    fi
194
    exit 0 ;;
195
 
196
  -host | --host | --hos | --ho)
197
    ac_prev=host ;;
198
  -host=* | --host=* | --hos=* | --ho=*)
199
    host="$ac_optarg" ;;
200
 
201
  -includedir | --includedir | --includedi | --included | --include \
202
  | --includ | --inclu | --incl | --inc)
203
    ac_prev=includedir ;;
204
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
205
  | --includ=* | --inclu=* | --incl=* | --inc=*)
206
    includedir="$ac_optarg" ;;
207
 
208
  -infodir | --infodir | --infodi | --infod | --info | --inf)
209
    ac_prev=infodir ;;
210
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
211
    infodir="$ac_optarg" ;;
212
 
213
  -libdir | --libdir | --libdi | --libd)
214
    ac_prev=libdir ;;
215
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
216
    libdir="$ac_optarg" ;;
217
 
218
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
219
  | --libexe | --libex | --libe)
220
    ac_prev=libexecdir ;;
221
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
222
  | --libexe=* | --libex=* | --libe=*)
223
    libexecdir="$ac_optarg" ;;
224
 
225
  -localstatedir | --localstatedir | --localstatedi | --localstated \
226
  | --localstate | --localstat | --localsta | --localst \
227
  | --locals | --local | --loca | --loc | --lo)
228
    ac_prev=localstatedir ;;
229
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
230
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
231
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
232
    localstatedir="$ac_optarg" ;;
233
 
234
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235
    ac_prev=mandir ;;
236
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
237
    mandir="$ac_optarg" ;;
238
 
239
  -nfp | --nfp | --nf)
240
    # Obsolete; use --without-fp.
241
    with_fp=no ;;
242
 
243
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244
  | --no-cr | --no-c)
245
    no_create=yes ;;
246
 
247
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
248
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
249
    no_recursion=yes ;;
250
 
251
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
252
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
253
  | --oldin | --oldi | --old | --ol | --o)
254
    ac_prev=oldincludedir ;;
255
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
256
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
257
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
258
    oldincludedir="$ac_optarg" ;;
259
 
260
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261
    ac_prev=prefix ;;
262
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
263
    prefix="$ac_optarg" ;;
264
 
265
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
266
  | --program-pre | --program-pr | --program-p)
267
    ac_prev=program_prefix ;;
268
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
269
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
270
    program_prefix="$ac_optarg" ;;
271
 
272
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
273
  | --program-suf | --program-su | --program-s)
274
    ac_prev=program_suffix ;;
275
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
276
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
277
    program_suffix="$ac_optarg" ;;
278
 
279
  -program-transform-name | --program-transform-name \
280
  | --program-transform-nam | --program-transform-na \
281
  | --program-transform-n | --program-transform- \
282
  | --program-transform | --program-transfor \
283
  | --program-transfo | --program-transf \
284
  | --program-trans | --program-tran \
285
  | --progr-tra | --program-tr | --program-t)
286
    ac_prev=program_transform_name ;;
287
  -program-transform-name=* | --program-transform-name=* \
288
  | --program-transform-nam=* | --program-transform-na=* \
289
  | --program-transform-n=* | --program-transform-=* \
290
  | --program-transform=* | --program-transfor=* \
291
  | --program-transfo=* | --program-transf=* \
292
  | --program-trans=* | --program-tran=* \
293
  | --progr-tra=* | --program-tr=* | --program-t=*)
294
    program_transform_name="$ac_optarg" ;;
295
 
296
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
297
  | -silent | --silent | --silen | --sile | --sil)
298
    silent=yes ;;
299
 
300
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301
    ac_prev=sbindir ;;
302
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303
  | --sbi=* | --sb=*)
304
    sbindir="$ac_optarg" ;;
305
 
306
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
307
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
308
  | --sharedst | --shareds | --shared | --share | --shar \
309
  | --sha | --sh)
310
    ac_prev=sharedstatedir ;;
311
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
312
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
313
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314
  | --sha=* | --sh=*)
315
    sharedstatedir="$ac_optarg" ;;
316
 
317
  -site | --site | --sit)
318
    ac_prev=site ;;
319
  -site=* | --site=* | --sit=*)
320
    site="$ac_optarg" ;;
321
 
322
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323
    ac_prev=srcdir ;;
324
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
325
    srcdir="$ac_optarg" ;;
326
 
327
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
328
  | --syscon | --sysco | --sysc | --sys | --sy)
329
    ac_prev=sysconfdir ;;
330
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
331
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
332
    sysconfdir="$ac_optarg" ;;
333
 
334
  -target | --target | --targe | --targ | --tar | --ta | --t)
335
    ac_prev=target ;;
336
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
337
    target="$ac_optarg" ;;
338
 
339
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
340
    verbose=yes ;;
341
 
342
  -version | --version | --versio | --versi | --vers)
343
    echo "configure generated by autoconf version 2.13"
344
    exit 0 ;;
345
 
346
  -with-* | --with-*)
347
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348
    # Reject names that are not valid shell variable names.
349
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351
    fi
352
    ac_package=`echo $ac_package| sed 's/-/_/g'`
353
    case "$ac_option" in
354
      *=*) ;;
355
      *) ac_optarg=yes ;;
356
    esac
357
    eval "with_${ac_package}='$ac_optarg'" ;;
358
 
359
  -without-* | --without-*)
360
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
361
    # Reject names that are not valid shell variable names.
362
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364
    fi
365
    ac_package=`echo $ac_package| sed 's/-/_/g'`
366
    eval "with_${ac_package}=no" ;;
367
 
368
  --x)
369
    # Obsolete; use --with-x.
370
    with_x=yes ;;
371
 
372
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
373
  | --x-incl | --x-inc | --x-in | --x-i)
374
    ac_prev=x_includes ;;
375
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
376
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
377
    x_includes="$ac_optarg" ;;
378
 
379
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
380
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
381
    ac_prev=x_libraries ;;
382
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
383
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
384
    x_libraries="$ac_optarg" ;;
385
 
386
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387
    ;;
388
 
389
  *)
390
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391
      echo "configure: warning: $ac_option: invalid host type" 1>&2
392
    fi
393
    if test "x$nonopt" != xNONE; then
394
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395
    fi
396
    nonopt="$ac_option"
397
    ;;
398
 
399
  esac
400
done
401
 
402
if test -n "$ac_prev"; then
403
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404
fi
405
 
406
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407
 
408
# File descriptor usage:
409
# 0 standard input
410
# 1 file creation
411
# 2 errors and warnings
412
# 3 some systems may open it to /dev/tty
413
# 4 used on the Kubota Titan
414
# 6 checking for... messages and results
415
# 5 compiler messages saved in config.log
416
if test "$silent" = yes; then
417
  exec 6>/dev/null
418
else
419
  exec 6>&1
420
fi
421
exec 5>./config.log
422
 
423
echo "\
424
This file contains any messages produced by compilers while
425
running configure, to aid debugging if configure makes a mistake.
426
" 1>&5
427
 
428
# Strip out --no-create and --no-recursion so they do not pile up.
429
# Also quote any args containing shell metacharacters.
430
ac_configure_args=
431
for ac_arg
432
do
433
  case "$ac_arg" in
434
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
435
  | --no-cr | --no-c) ;;
436
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
437
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
438
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
440
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
441
  esac
442
done
443
 
444
# NLS nuisances.
445
# Only set these to C if already set.  These must not be set unconditionally
446
# because not all systems understand e.g. LANG=C (notably SCO).
447
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
448
# Non-C LC_CTYPE values break the ctype check.
449
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
450
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
451
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
452
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
453
 
454
# confdefs.h avoids OS command line length limits that DEFS can exceed.
455
rm -rf conftest* confdefs.h
456
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
457
echo > confdefs.h
458
 
459
# A filename unique to this package, relative to the directory that
460
# configure is in, which we can look for to find out if srcdir is correct.
461
ac_unique_file=../generic/itcl.h
462
 
463
# Find the source files, if location was not specified.
464
if test -z "$srcdir"; then
465
  ac_srcdir_defaulted=yes
466
  # Try the directory containing this script, then its parent.
467
  ac_prog=$0
468
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
469
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470
  srcdir=$ac_confdir
471
  if test ! -r $srcdir/$ac_unique_file; then
472
    srcdir=..
473
  fi
474
else
475
  ac_srcdir_defaulted=no
476
fi
477
if test ! -r $srcdir/$ac_unique_file; then
478
  if test "$ac_srcdir_defaulted" = yes; then
479
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480
  else
481
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482
  fi
483
fi
484
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485
 
486
# Prefer explicitly selected file to automatically selected ones.
487
if test -z "$CONFIG_SITE"; then
488
  if test "x$prefix" != xNONE; then
489
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
490
  else
491
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
492
  fi
493
fi
494
for ac_site_file in $CONFIG_SITE; do
495
  if test -r "$ac_site_file"; then
496
    echo "loading site script $ac_site_file"
497
    . "$ac_site_file"
498
  fi
499
done
500
 
501
if test -r "$cache_file"; then
502
  echo "loading cache $cache_file"
503
  . $cache_file
504
else
505
  echo "creating cache $cache_file"
506
  > $cache_file
507
fi
508
 
509
ac_ext=c
510
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
511
ac_cpp='$CPP $CPPFLAGS'
512
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
513
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
514
cross_compiling=$ac_cv_prog_cc_cross
515
 
516
ac_exeext=
517
ac_objext=o
518
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
519
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
520
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
521
    ac_n= ac_c='
522
' ac_t='        '
523
  else
524
    ac_n=-n ac_c= ac_t=
525
  fi
526
else
527
  ac_n= ac_c='\c' ac_t=
528
fi
529
 
530
 
531
# RCS: $Id: configure,v 1.1.1.1 2002-01-16 10:24:47 markom Exp $
532
 
533
ITCL_VERSION=3.0
534
ITCL_MAJOR_VERSION=3
535
ITCL_MINOR_VERSION=0
536
ITCL_RELEASE_LEVEL=0
537
VERSION=${ITCL_VERSION}
538
 
539
ac_aux_dir=
540
for ac_dir in ../../config $srcdir/../../config; do
541
  if test -f $ac_dir/install-sh; then
542
    ac_aux_dir=$ac_dir
543
    ac_install_sh="$ac_aux_dir/install-sh -c"
544
    break
545
  elif test -f $ac_dir/install.sh; then
546
    ac_aux_dir=$ac_dir
547
    ac_install_sh="$ac_aux_dir/install.sh -c"
548
    break
549
  fi
550
done
551
if test -z "$ac_aux_dir"; then
552
  { echo "configure: error: can not find install-sh or install.sh in ../../config $srcdir/../../config" 1>&2; exit 1; }
553
fi
554
ac_config_guess=$ac_aux_dir/config.guess
555
ac_config_sub=$ac_aux_dir/config.sub
556
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
557
 
558
 
559
 
560
# -----------------------------------------------------------------------
561
#   Set up a new default --prefix.  If a previous installation of
562
#   [incr Tcl] can be found searching $PATH use that directory.
563
# -----------------------------------------------------------------------
564
 
565
 
566
if test "x$prefix" = xNONE; then
567
echo $ac_n "checking for prefix by $ac_c" 1>&6
568
# Extract the first word of "tclsh", so it can be a program name with args.
569
set dummy tclsh; ac_word=$2
570
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
571
echo "configure:572: checking for $ac_word" >&5
572
if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
573
  echo $ac_n "(cached) $ac_c" 1>&6
574
else
575
  case "$TCLSH" in
576
  /*)
577
  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
578
  ;;
579
  ?:/*)
580
  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
581
  ;;
582
  *)
583
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
584
  ac_dummy="$PATH"
585
  for ac_dir in $ac_dummy; do
586
    test -z "$ac_dir" && ac_dir=.
587
    if test -f $ac_dir/$ac_word; then
588
      ac_cv_path_TCLSH="$ac_dir/$ac_word"
589
      break
590
    fi
591
  done
592
  IFS="$ac_save_ifs"
593
  ;;
594
esac
595
fi
596
TCLSH="$ac_cv_path_TCLSH"
597
if test -n "$TCLSH"; then
598
  echo "$ac_t""$TCLSH" 1>&6
599
else
600
  echo "$ac_t""no" 1>&6
601
fi
602
 
603
  if test -n "$ac_cv_path_TCLSH"; then
604
    prefix=`echo $ac_cv_path_TCLSH|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
605
  fi
606
fi
607
 
608
 
609
if test "${prefix}" = "NONE"; then
610
    prefix=/usr/local
611
fi
612
if test "${exec_prefix}" = "NONE"; then
613
    exec_prefix=$prefix
614
fi
615
 
616
# Find a good install program.  We prefer a C program (faster),
617
# so one script is as good as another.  But avoid the broken or
618
# incompatible versions:
619
# SysV /etc/install, /usr/sbin/install
620
# SunOS /usr/etc/install
621
# IRIX /sbin/install
622
# AIX /bin/install
623
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
624
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
625
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
626
# ./install, which can be erroneously created by make from ./install.sh.
627
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
628
echo "configure:629: checking for a BSD compatible install" >&5
629
if test -z "$INSTALL"; then
630
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
631
  echo $ac_n "(cached) $ac_c" 1>&6
632
else
633
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
634
  for ac_dir in $PATH; do
635
    # Account for people who put trailing slashes in PATH elements.
636
    case "$ac_dir/" in
637
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
638
    *)
639
      # OSF1 and SCO ODT 3.0 have their own names for install.
640
      # Don't use installbsd from OSF since it installs stuff as root
641
      # by default.
642
      for ac_prog in ginstall scoinst install; do
643
        if test -f $ac_dir/$ac_prog; then
644
          if test $ac_prog = install &&
645
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
646
            # AIX install.  It has an incompatible calling convention.
647
            :
648
          else
649
            ac_cv_path_install="$ac_dir/$ac_prog -c"
650
            break 2
651
          fi
652
        fi
653
      done
654
      ;;
655
    esac
656
  done
657
  IFS="$ac_save_IFS"
658
 
659
fi
660
  if test "${ac_cv_path_install+set}" = set; then
661
    INSTALL="$ac_cv_path_install"
662
  else
663
    # As a last resort, use the slow shell script.  We don't cache a
664
    # path for INSTALL within a source directory, because that will
665
    # break other packages using the cache if that directory is
666
    # removed, or if the path is relative.
667
    INSTALL="$ac_install_sh"
668
  fi
669
fi
670
echo "$ac_t""$INSTALL" 1>&6
671
 
672
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
673
# It thinks the first close brace ends the variable substitution.
674
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
675
 
676
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
677
 
678
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
679
 
680
# Extract the first word of "ranlib", so it can be a program name with args.
681
set dummy ranlib; ac_word=$2
682
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683
echo "configure:684: checking for $ac_word" >&5
684
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
685
  echo $ac_n "(cached) $ac_c" 1>&6
686
else
687
  if test -n "$RANLIB"; then
688
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
689
else
690
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
691
  ac_dummy="$PATH"
692
  for ac_dir in $ac_dummy; do
693
    test -z "$ac_dir" && ac_dir=.
694
    if test -f $ac_dir/$ac_word; then
695
      ac_cv_prog_RANLIB="ranlib"
696
      break
697
    fi
698
  done
699
  IFS="$ac_save_ifs"
700
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
701
fi
702
fi
703
RANLIB="$ac_cv_prog_RANLIB"
704
if test -n "$RANLIB"; then
705
  echo "$ac_t""$RANLIB" 1>&6
706
else
707
  echo "$ac_t""no" 1>&6
708
fi
709
 
710
 
711
# -----------------------------------------------------------------------
712
BUILD_DIR=`pwd`
713
ITCL_SRC_DIR=`cd $srcdir/..; pwd`
714
cd ${BUILD_DIR}
715
 
716
    # Extract the first word of "gcc", so it can be a program name with args.
717
set dummy gcc; ac_word=$2
718
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
719
echo "configure:720: checking for $ac_word" >&5
720
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
721
  echo $ac_n "(cached) $ac_c" 1>&6
722
else
723
  if test -n "$CC"; then
724
  ac_cv_prog_CC="$CC" # Let the user override the test.
725
else
726
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
727
  ac_dummy="$PATH"
728
  for ac_dir in $ac_dummy; do
729
    test -z "$ac_dir" && ac_dir=.
730
    if test -f $ac_dir/$ac_word; then
731
      ac_cv_prog_CC="gcc"
732
      break
733
    fi
734
  done
735
  IFS="$ac_save_ifs"
736
fi
737
fi
738
CC="$ac_cv_prog_CC"
739
if test -n "$CC"; then
740
  echo "$ac_t""$CC" 1>&6
741
else
742
  echo "$ac_t""no" 1>&6
743
fi
744
 
745
if test -z "$CC"; then
746
  # Extract the first word of "cc", so it can be a program name with args.
747
set dummy cc; ac_word=$2
748
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
749
echo "configure:750: checking for $ac_word" >&5
750
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
751
  echo $ac_n "(cached) $ac_c" 1>&6
752
else
753
  if test -n "$CC"; then
754
  ac_cv_prog_CC="$CC" # Let the user override the test.
755
else
756
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
757
  ac_prog_rejected=no
758
  ac_dummy="$PATH"
759
  for ac_dir in $ac_dummy; do
760
    test -z "$ac_dir" && ac_dir=.
761
    if test -f $ac_dir/$ac_word; then
762
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
763
        ac_prog_rejected=yes
764
        continue
765
      fi
766
      ac_cv_prog_CC="cc"
767
      break
768
    fi
769
  done
770
  IFS="$ac_save_ifs"
771
if test $ac_prog_rejected = yes; then
772
  # We found a bogon in the path, so make sure we never use it.
773
  set dummy $ac_cv_prog_CC
774
  shift
775
  if test $# -gt 0; then
776
    # We chose a different compiler from the bogus one.
777
    # However, it has the same basename, so the bogon will be chosen
778
    # first if we set CC to just the basename; use the full file name.
779
    shift
780
    set dummy "$ac_dir/$ac_word" "$@"
781
    shift
782
    ac_cv_prog_CC="$@"
783
  fi
784
fi
785
fi
786
fi
787
CC="$ac_cv_prog_CC"
788
if test -n "$CC"; then
789
  echo "$ac_t""$CC" 1>&6
790
else
791
  echo "$ac_t""no" 1>&6
792
fi
793
 
794
  if test -z "$CC"; then
795
    case "`uname -s`" in
796
    *win32* | *WIN32*)
797
      # Extract the first word of "cl", so it can be a program name with args.
798
set dummy cl; ac_word=$2
799
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
800
echo "configure:801: checking for $ac_word" >&5
801
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
802
  echo $ac_n "(cached) $ac_c" 1>&6
803
else
804
  if test -n "$CC"; then
805
  ac_cv_prog_CC="$CC" # Let the user override the test.
806
else
807
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
808
  ac_dummy="$PATH"
809
  for ac_dir in $ac_dummy; do
810
    test -z "$ac_dir" && ac_dir=.
811
    if test -f $ac_dir/$ac_word; then
812
      ac_cv_prog_CC="cl"
813
      break
814
    fi
815
  done
816
  IFS="$ac_save_ifs"
817
fi
818
fi
819
CC="$ac_cv_prog_CC"
820
if test -n "$CC"; then
821
  echo "$ac_t""$CC" 1>&6
822
else
823
  echo "$ac_t""no" 1>&6
824
fi
825
 ;;
826
    esac
827
  fi
828
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
829
fi
830
 
831
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
832
echo "configure:833: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
833
 
834
ac_ext=c
835
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
836
ac_cpp='$CPP $CPPFLAGS'
837
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
838
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
839
cross_compiling=$ac_cv_prog_cc_cross
840
 
841
cat > conftest.$ac_ext << EOF
842
 
843
#line 844 "configure"
844
#include "confdefs.h"
845
 
846
main(){return(0);}
847
EOF
848
if { (eval echo configure:849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
849
  ac_cv_prog_cc_works=yes
850
  # If we can't run a trivial program, we are probably using a cross compiler.
851
  if (./conftest; exit) 2>/dev/null; then
852
    ac_cv_prog_cc_cross=no
853
  else
854
    ac_cv_prog_cc_cross=yes
855
  fi
856
else
857
  echo "configure: failed program was:" >&5
858
  cat conftest.$ac_ext >&5
859
  ac_cv_prog_cc_works=no
860
fi
861
rm -fr conftest*
862
ac_ext=c
863
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
864
ac_cpp='$CPP $CPPFLAGS'
865
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
866
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
867
cross_compiling=$ac_cv_prog_cc_cross
868
 
869
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
870
if test $ac_cv_prog_cc_works = no; then
871
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
872
fi
873
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
874
echo "configure:875: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
875
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
876
cross_compiling=$ac_cv_prog_cc_cross
877
 
878
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
879
echo "configure:880: checking whether we are using GNU C" >&5
880
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
881
  echo $ac_n "(cached) $ac_c" 1>&6
882
else
883
  cat > conftest.c <
884
#ifdef __GNUC__
885
  yes;
886
#endif
887
EOF
888
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
889
  ac_cv_prog_gcc=yes
890
else
891
  ac_cv_prog_gcc=no
892
fi
893
fi
894
 
895
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
896
 
897
if test $ac_cv_prog_gcc = yes; then
898
  GCC=yes
899
else
900
  GCC=
901
fi
902
 
903
ac_test_CFLAGS="${CFLAGS+set}"
904
ac_save_CFLAGS="$CFLAGS"
905
CFLAGS=
906
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
907
echo "configure:908: checking whether ${CC-cc} accepts -g" >&5
908
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
909
  echo $ac_n "(cached) $ac_c" 1>&6
910
else
911
  echo 'void f(){}' > conftest.c
912
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
913
  ac_cv_prog_cc_g=yes
914
else
915
  ac_cv_prog_cc_g=no
916
fi
917
rm -f conftest*
918
 
919
fi
920
 
921
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
922
if test "$ac_test_CFLAGS" = set; then
923
  CFLAGS="$ac_save_CFLAGS"
924
elif test $ac_cv_prog_cc_g = yes; then
925
  if test "$GCC" = yes; then
926
    CFLAGS="-g -O2"
927
  else
928
    CFLAGS="-g"
929
  fi
930
else
931
  if test "$GCC" = yes; then
932
    CFLAGS="-O2"
933
  else
934
    CFLAGS=
935
  fi
936
fi
937
 
938
 
939
#--------------------------------------------------------------------
940
#   See if there was a command-line option for where Tcl is;  if
941
#   not, assume that its top-level directory is a sibling of ours.
942
# CYGNUS LOCAL - Actually, tcl is one level higher - a sibling of the
943
# itcl directory that contains itcl proper, itk & iwidgets.
944
#--------------------------------------------------------------------
945
 
946
# Check whether --with-tcl or --without-tcl was given.
947
if test "${with_tcl+set}" = set; then
948
  withval="$with_tcl"
949
  itcl_search=$withval
950
else
951
  itcl_search=`cd ../../..; ls -d \`pwd\`/tcl*/unix`
952
fi
953
 
954
 
955
TCL_LIB_DIR=""
956
for dir in $itcl_search $exec_prefix/lib ; do
957
    if test -r $dir/tclConfig.sh; then
958
        TCL_LIB_DIR=$dir
959
        break
960
    fi
961
done
962
 
963
if test -z "$TCL_LIB_DIR"; then
964
    { echo "configure: error: Can't find Tcl libraries.  Use --with-tcl to specify the directory containing tclConfig.sh on your system." 1>&2; exit 1; }
965
fi
966
 
967
#--------------------------------------------------------------------
968
#   Read in configuration information generated by Tcl for shared
969
#   libraries, and arrange for it to be substituted into our
970
#   Makefile.
971
#--------------------------------------------------------------------
972
 
973
file=$TCL_LIB_DIR/tclConfig.sh
974
. $file
975
CFLAGS=$TCL_CFLAGS
976
SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
977
SHLIB_LD=$TCL_SHLIB_LD
978
SHLIB_LD_LIBS=$TCL_SHLIB_LD_LIBS
979
SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
980
DL_LIBS=$TCL_DL_LIBS
981
LD_FLAGS=$TCL_LD_FLAGS
982
LD_SEARCH_FLAGS=$TCL_LD_SEARCH_FLAGS
983
 
984
#--------------------------------------------------------------------
985
#   Make sure that we can find the Tcl sources, so we can include
986
#   the "tclInt.h" file.
987
#--------------------------------------------------------------------
988
 
989
if test ! -d "$TCL_SRC_DIR"; then
990
    { echo "configure: error: Can't find Tcl source directory "$TCL_SRC_DIR".  Itcl can't be built without this directory." 1>&2; exit 1; }
991
fi
992
 
993
#--------------------------------------------------------------------
994
#   If this is gcc, add some extra compile flags.
995
#--------------------------------------------------------------------
996
 
997
echo $ac_n "checking whether C compiler is gcc""... $ac_c" 1>&6
998
echo "configure:999: checking whether C compiler is gcc" >&5
999
if eval "test \"`echo '$''{'itcl_cv_prog_gcc'+set}'`\" = set"; then
1000
  echo $ac_n "(cached) $ac_c" 1>&6
1001
else
1002
 
1003
    echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1004
echo "configure:1005: checking how to run the C preprocessor" >&5
1005
# On Suns, sometimes $CPP names a directory.
1006
if test -n "$CPP" && test -d "$CPP"; then
1007
  CPP=
1008
fi
1009
if test -z "$CPP"; then
1010
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1011
  echo $ac_n "(cached) $ac_c" 1>&6
1012
else
1013
    # This must be in double quotes, not single quotes, because CPP may get
1014
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1015
  CPP="${CC-cc} -E"
1016
  # On the NeXT, cc -E runs the code through the compiler's parser,
1017
  # not just through 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} -E -traditional-cpp"
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="${CC-cc} -nologo -E"
1052
  cat > conftest.$ac_ext <
1053
#line 1054 "configure"
1054
#include "confdefs.h"
1055
#include 
1056
Syntax Error
1057
EOF
1058
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1059
{ (eval echo configure:1060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1060
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1061
if test -z "$ac_err"; then
1062
  :
1063
else
1064
  echo "$ac_err" >&5
1065
  echo "configure: failed program was:" >&5
1066
  cat conftest.$ac_ext >&5
1067
  rm -rf conftest*
1068
  CPP=/lib/cpp
1069
fi
1070
rm -f conftest*
1071
fi
1072
rm -f conftest*
1073
fi
1074
rm -f conftest*
1075
  ac_cv_prog_CPP="$CPP"
1076
fi
1077
  CPP="$ac_cv_prog_CPP"
1078
else
1079
  ac_cv_prog_CPP="$CPP"
1080
fi
1081
echo "$ac_t""$CPP" 1>&6
1082
 
1083
cat > conftest.$ac_ext <
1084
#line 1085 "configure"
1085
#include "confdefs.h"
1086
 
1087
#ifdef __GNUC__
1088
_cc_is_gcc_
1089
#endif
1090
 
1091
EOF
1092
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1093
  egrep "_cc_is_gcc_" >/dev/null 2>&1; then
1094
  rm -rf conftest*
1095
  itcl_cv_prog_gcc=yes
1096
else
1097
  rm -rf conftest*
1098
  itcl_cv_prog_gcc=no
1099
fi
1100
rm -f conftest*
1101
 
1102
fi
1103
 
1104
echo "$ac_t""$itcl_cv_prog_gcc" 1>&6
1105
 
1106
# CYGNUS LOCAL - CFLAGS for gcc should include -g -O2
1107
if test -z "$CFLAGS" ; then
1108
if test "$itcl_cv_prog_gcc" = "yes" ; then
1109
   CFLAGS="-g -O2"
1110
else
1111
   CFLAGS="-O"
1112
fi
1113
fi
1114
# CYGNUS LOCAL - use -fwritable-strings with gcc, needed for Tcl8.1
1115
if test "$itcl_cv_prog_gcc" = "yes" ; then
1116
    CFLAGS="$CFLAGS -fwritable-strings -Wshadow -Wtraditional -Wall"
1117
fi
1118
 
1119
echo $ac_n "checking default compiler flags""... $ac_c" 1>&6
1120
echo "configure:1121: checking default compiler flags" >&5
1121
# Check whether --with-cflags or --without-cflags was given.
1122
if test "${with_cflags+set}" = set; then
1123
  withval="$with_cflags"
1124
  CFLAGS="$with_cflags"
1125
fi
1126
 
1127
 
1128
echo "$ac_t""$CFLAGS" 1>&6
1129
 
1130
if test "$TCL_CC" != "$CC" ; then
1131
    echo ""
1132
    echo "WARNING:  Compiler is $CC but Tcl was compiled with $TCL_CC"
1133
    echo ""
1134
fi
1135
 
1136
#--------------------------------------------------------------------
1137
#   The statements below define a collection of symbols related to
1138
#   building libitcl as a shared library instead of a static library.
1139
#--------------------------------------------------------------------
1140
 
1141
# Check whether --enable-shared or --disable-shared was given.
1142
if test "${enable_shared+set}" = set; then
1143
  enableval="$enable_shared"
1144
  ok=$enableval
1145
else
1146
  ok=no
1147
fi
1148
 
1149
if test "$ok" = "yes"; then
1150
    if test ${TCL_SHARED_BUILD} = 0; then
1151
        { echo "configure: error: Tcl was not built with --enable-shared" 1>&2; exit 1; }
1152
    fi
1153
    SHLIB_CFLAGS="${SHLIB_CFLAGS}"
1154
    eval "ITCL_LIB_FILE=libitcl${VERSION}${SHLIB_SUFFIX}"
1155
    ITCL_PKG_FILE="[file join [file dirname \$dir] ${ITCL_LIB_FILE}]"
1156
    MAKE_LIB="\$(SHLIB_LD) -o ${ITCL_LIB_FILE} \$(OBJS) ${SHLIB_LD_LIBS} "
1157
    RANLIB=":"
1158
else
1159
    SHLIB_CFLAGS=""
1160
    # CYGNUS LOCAL - Strip dots from library name for SunOS4, etc...
1161
    if test ${TCL_LIB_VERSIONS_OK} = "nodots"; then
1162
        ITCL_LIB_FILE="libitcl`echo ${VERSION} | tr -d .`.a"
1163
    else
1164
        eval "ITCL_LIB_FILE=libitcl${VERSION}.a"
1165
    fi
1166
    ITCL_PKG_FILE=""
1167
    MAKE_LIB="ar cr ${ITCL_LIB_FILE} \${OBJS}"
1168
fi
1169
 
1170
ITCL_SH="`pwd`/itclsh"
1171
 
1172
# Note:  in the following variable, it's important to use the absolute
1173
# path name of the Tcl directory rather than "..":  this is because
1174
# AIX remembers this path and will attempt to use it at run-time to look
1175
# up the Tcl library.
1176
 
1177
if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
1178
    ITCL_BUILD_LIB_SPEC="-L`pwd` -litcl${VERSION}"
1179
    ITCL_LIB_SPEC="-L${exec_prefix}/lib -litcl${VERSION}"
1180
else
1181
    ITCL_BUILD_LIB_SPEC="-L`pwd` -litcl`echo ${VERSION} | tr -d .`"
1182
    ITCL_LIB_SPEC="-L${exec_prefix}/lib -litcl`echo ${VERSION} | tr -d .`"
1183
fi
1184
 
1185
ITCL_LIB_FULL_PATH="`pwd`/${ITCL_LIB_FILE}"
1186
 
1187
 
1188
 
1189
 
1190
 
1191
 
1192
 
1193
 
1194
 
1195
 
1196
 
1197
 
1198
 
1199
 
1200
 
1201
 
1202
 
1203
 
1204
 
1205
 
1206
 
1207
 
1208
 
1209
 
1210
 
1211
 
1212
 
1213
 
1214
 
1215
 
1216
 
1217
 
1218
 
1219
 
1220
 
1221
 
1222
 
1223
 
1224
 
1225
trap '' 1 2 15
1226
cat > confcache <<\EOF
1227
# This file is a shell script that caches the results of configure
1228
# tests run on this system so they can be shared between configure
1229
# scripts and configure runs.  It is not useful on other systems.
1230
# If it contains results you don't want to keep, you may remove or edit it.
1231
#
1232
# By default, configure uses ./config.cache as the cache file,
1233
# creating it if it does not exist already.  You can give configure
1234
# the --cache-file=FILE option to use a different cache file; that is
1235
# what configure does when it calls configure scripts in
1236
# subdirectories, so they share the cache.
1237
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1238
# config.status only pays attention to the cache file if you give it the
1239
# --recheck option to rerun configure.
1240
#
1241
EOF
1242
# The following way of writing the cache mishandles newlines in values,
1243
# but we know of no workaround that is simple, portable, and efficient.
1244
# So, don't put newlines in cache variables' values.
1245
# Ultrix sh set writes to stderr and can't be redirected directly,
1246
# and sets the high bit in the cache file unless we assign to the vars.
1247
(set) 2>&1 |
1248
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1249
  *ac_space=\ *)
1250
    # `set' does not quote correctly, so add quotes (double-quote substitution
1251
    # turns \\\\ into \\, and sed turns \\ into \).
1252
    sed -n \
1253
      -e "s/'/'\\\\''/g" \
1254
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1255
    ;;
1256
  *)
1257
    # `set' quotes correctly as required by POSIX, so do not add quotes.
1258
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1259
    ;;
1260
  esac >> confcache
1261
if cmp -s $cache_file confcache; then
1262
  :
1263
else
1264
  if test -w $cache_file; then
1265
    echo "updating cache $cache_file"
1266
    cat confcache > $cache_file
1267
  else
1268
    echo "not updating unwritable cache $cache_file"
1269
  fi
1270
fi
1271
rm -f confcache
1272
 
1273
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1274
 
1275
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1276
# Let make expand exec_prefix.
1277
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1278
 
1279
# Any assignment to VPATH causes Sun make to only execute
1280
# the first set of double-colon rules, so remove it if not needed.
1281
# If there is a colon in the path, we need to keep it.
1282
if test "x$srcdir" = x.; then
1283
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1284
fi
1285
 
1286
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1287
 
1288
# Transform confdefs.h into DEFS.
1289
# Protect against shell expansion while executing Makefile rules.
1290
# Protect against Makefile macro expansion.
1291
cat > conftest.defs <<\EOF
1292
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1293
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1294
s%\[%\\&%g
1295
s%\]%\\&%g
1296
s%\$%$$%g
1297
EOF
1298
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1299
rm -f conftest.defs
1300
 
1301
 
1302
# Without the "./", some shells look in PATH for config.status.
1303
: ${CONFIG_STATUS=./config.status}
1304
 
1305
echo creating $CONFIG_STATUS
1306
rm -f $CONFIG_STATUS
1307
cat > $CONFIG_STATUS <
1308
#! /bin/sh
1309
# Generated automatically by configure.
1310
# Run this file to recreate the current configuration.
1311
# This directory was configured as follows,
1312
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1313
#
1314
# $0 $ac_configure_args
1315
#
1316
# Compiler output produced by configure, useful for debugging
1317
# configure, is in ./config.log if it exists.
1318
 
1319
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1320
for ac_option
1321
do
1322
  case "\$ac_option" in
1323
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1324
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1325
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1326
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1327
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1328
    exit 0 ;;
1329
  -help | --help | --hel | --he | --h)
1330
    echo "\$ac_cs_usage"; exit 0 ;;
1331
  *) echo "\$ac_cs_usage"; exit 1 ;;
1332
  esac
1333
done
1334
 
1335
ac_given_srcdir=$srcdir
1336
ac_given_INSTALL="$INSTALL"
1337
 
1338
trap 'rm -fr `echo "Makefile pkgIndex.tcl ../itclConfig.sh" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1339
EOF
1340
cat >> $CONFIG_STATUS <
1341
 
1342
# Protect against being on the right side of a sed subst in config.status.
1343
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1344
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1345
$ac_vpsub
1346
$extrasub
1347
s%@SHELL@%$SHELL%g
1348
s%@CFLAGS@%$CFLAGS%g
1349
s%@CPPFLAGS@%$CPPFLAGS%g
1350
s%@CXXFLAGS@%$CXXFLAGS%g
1351
s%@FFLAGS@%$FFLAGS%g
1352
s%@DEFS@%$DEFS%g
1353
s%@LDFLAGS@%$LDFLAGS%g
1354
s%@LIBS@%$LIBS%g
1355
s%@exec_prefix@%$exec_prefix%g
1356
s%@prefix@%$prefix%g
1357
s%@program_transform_name@%$program_transform_name%g
1358
s%@bindir@%$bindir%g
1359
s%@sbindir@%$sbindir%g
1360
s%@libexecdir@%$libexecdir%g
1361
s%@datadir@%$datadir%g
1362
s%@sysconfdir@%$sysconfdir%g
1363
s%@sharedstatedir@%$sharedstatedir%g
1364
s%@localstatedir@%$localstatedir%g
1365
s%@libdir@%$libdir%g
1366
s%@includedir@%$includedir%g
1367
s%@oldincludedir@%$oldincludedir%g
1368
s%@infodir@%$infodir%g
1369
s%@mandir@%$mandir%g
1370
s%@TCLSH@%$TCLSH%g
1371
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1372
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1373
s%@INSTALL_DATA@%$INSTALL_DATA%g
1374
s%@RANLIB@%$RANLIB%g
1375
s%@CC@%$CC%g
1376
s%@CPP@%$CPP%g
1377
s%@DL_LIBS@%$DL_LIBS%g
1378
s%@LD_FLAGS@%$LD_FLAGS%g
1379
s%@MAKE_LIB@%$MAKE_LIB%g
1380
s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
1381
s%@SHLIB_LD@%$SHLIB_LD%g
1382
s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
1383
s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
1384
s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
1385
s%@TCL_VERSION@%$TCL_VERSION%g
1386
s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
1387
s%@TCL_LIB_DIR@%$TCL_LIB_DIR%g
1388
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
1389
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
1390
s%@TCL_LIB_FLAG@%$TCL_LIB_FLAG%g
1391
s%@TCL_DBGX@%$TCL_DBGX%g
1392
s%@TCL_DEFS@%$TCL_DEFS%g
1393
s%@TCL_LIBS@%$TCL_LIBS%g
1394
s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
1395
s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
1396
s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
1397
s%@TCL_CFLAGS@%$TCL_CFLAGS%g
1398
s%@TCL_LIB_FULL_PATH@%$TCL_LIB_FULL_PATH%g
1399
s%@ITCL_VERSION@%$ITCL_VERSION%g
1400
s%@ITCL_MAJOR_VERSION@%$ITCL_MAJOR_VERSION%g
1401
s%@ITCL_MINOR_VERSION@%$ITCL_MINOR_VERSION%g
1402
s%@ITCL_RELEASE_LEVEL@%$ITCL_RELEASE_LEVEL%g
1403
s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
1404
s%@ITCL_LIB_FILE@%$ITCL_LIB_FILE%g
1405
s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
1406
s%@ITCL_PKG_FILE@%$ITCL_PKG_FILE%g
1407
s%@ITCL_SRC_DIR@%$ITCL_SRC_DIR%g
1408
s%@ITCL_SH@%$ITCL_SH%g
1409
s%@ITCL_LIB_FULL_PATH@%$ITCL_LIB_FULL_PATH%g
1410
 
1411
CEOF
1412
EOF
1413
 
1414
cat >> $CONFIG_STATUS <<\EOF
1415
 
1416
# Split the substitutions into bite-sized pieces for seds with
1417
# small command number limits, like on Digital OSF/1 and HP-UX.
1418
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1419
ac_file=1 # Number of current file.
1420
ac_beg=1 # First line for current file.
1421
ac_end=$ac_max_sed_cmds # Line after last line for current file.
1422
ac_more_lines=:
1423
ac_sed_cmds=""
1424
while $ac_more_lines; do
1425
  if test $ac_beg -gt 1; then
1426
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1427
  else
1428
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1429
  fi
1430
  if test ! -s conftest.s$ac_file; then
1431
    ac_more_lines=false
1432
    rm -f conftest.s$ac_file
1433
  else
1434
    if test -z "$ac_sed_cmds"; then
1435
      ac_sed_cmds="sed -f conftest.s$ac_file"
1436
    else
1437
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1438
    fi
1439
    ac_file=`expr $ac_file + 1`
1440
    ac_beg=$ac_end
1441
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1442
  fi
1443
done
1444
if test -z "$ac_sed_cmds"; then
1445
  ac_sed_cmds=cat
1446
fi
1447
EOF
1448
 
1449
cat >> $CONFIG_STATUS <
1450
 
1451
CONFIG_FILES=\${CONFIG_FILES-"Makefile pkgIndex.tcl ../itclConfig.sh"}
1452
EOF
1453
cat >> $CONFIG_STATUS <<\EOF
1454
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1455
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1456
  case "$ac_file" in
1457
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1458
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1459
  *) ac_file_in="${ac_file}.in" ;;
1460
  esac
1461
 
1462
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1463
 
1464
  # Remove last slash and all that follows it.  Not all systems have dirname.
1465
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1466
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1467
    # The file is in a subdirectory.
1468
    test ! -d "$ac_dir" && mkdir "$ac_dir"
1469
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1470
    # A "../" for each directory in $ac_dir_suffix.
1471
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1472
  else
1473
    ac_dir_suffix= ac_dots=
1474
  fi
1475
 
1476
  case "$ac_given_srcdir" in
1477
  .)  srcdir=.
1478
      if test -z "$ac_dots"; then top_srcdir=.
1479
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1480
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1481
  *) # Relative path.
1482
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1483
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1484
  esac
1485
 
1486
  case "$ac_given_INSTALL" in
1487
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1488
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1489
  esac
1490
 
1491
  echo creating "$ac_file"
1492
  rm -f "$ac_file"
1493
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1494
  case "$ac_file" in
1495
  *Makefile*) ac_comsub="1i\\
1496
# $configure_input" ;;
1497
  *) ac_comsub= ;;
1498
  esac
1499
 
1500
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1501
  sed -e "$ac_comsub
1502
s%@configure_input@%$configure_input%g
1503
s%@srcdir@%$srcdir%g
1504
s%@top_srcdir@%$top_srcdir%g
1505
s%@INSTALL@%$INSTALL%g
1506
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1507
fi; done
1508
rm -f conftest.s*
1509
 
1510
EOF
1511
cat >> $CONFIG_STATUS <
1512
 
1513
EOF
1514
cat >> $CONFIG_STATUS <<\EOF
1515
 
1516
exit 0
1517
EOF
1518
chmod +x $CONFIG_STATUS
1519
rm -fr confdefs* $ac_clean_files
1520
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1521
 

powered by: WebSVN 2.1.0

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