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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [expect/] [Dbgconfigure] - Blame information for rev 1781

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_help="$ac_help
15
  --with-tclconfig           directory containing tcl configuration (tclConfig.sh)"
16
ac_help="$ac_help
17
  --with-tclinclude       directory where tcl private headers are"
18
ac_help="$ac_help
19
  --disable-load     disallow dynamic loading"
20
ac_help="$ac_help
21
  --enable-gcc        allow use of gcc if available"
22
ac_help="$ac_help
23
  --enable-shared     build libtcldbg 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.13"
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=Dbg.h
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
DBG_MAJOR_VERSION=1
536
DBG_MINOR_VERSION=7
537
DBG_MICRO_VERSION=0
538
DBG_VERSION=$DBG_MAJOR_VERSION.$DBG_MINOR_VERSION
539
DBG_VERSION_FULL=$DBG_VERSION.$DBG_MICRO_VERSION
540
# Tcl's handling of shared_lib_suffix requires this symbol exist
541
VERSION=$DBG_MAJOR_VERSION.$DBG_MINOR_VERSION
542
 
543
 
544
 
545
 
546
#
547
# Ok, lets find the tcl configuration
548
# First, look for one uninstalled.
549
# the alternative search directory is invoked by --with-tclconfig
550
#
551
 
552
if test x"${no_tcl}" = x ; then
553
  # we reset no_tcl in case something fails here
554
  no_tcl=true
555
  # Check whether --with-tclconfig or --without-tclconfig was given.
556
if test "${with_tclconfig+set}" = set; then
557
  withval="$with_tclconfig"
558
  with_tclconfig=${withval}
559
fi
560
 
561
  echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
562
echo "configure:563: checking for Tcl configuration" >&5
563
  if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
564
  echo $ac_n "(cached) $ac_c" 1>&6
565
else
566
 
567
 
568
  # First check to see if --with-tclconfig was specified.
569
  if test x"${with_tclconfig}" != x ; then
570
    if test -f "${with_tclconfig}/tclConfig.sh" ; then
571
      ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
572
    else
573
      { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
574
    fi
575
  fi
576
 
577
  # then check for a private Tcl installation
578
 
579
  if test x"${ac_cv_c_tclconfig}" = x ; then
580
    for i in \
581
                ../tcl \
582
                `ls -dr ../tcl[7-9].[0-9] 2>/dev/null` \
583
                ../../tcl \
584
                `ls -dr ../../tcl[7-9].[0-9] 2>/dev/null` \
585
                ../../../tcl \
586
                `ls -dr ../../../tcl[7-9].[0-9] 2>/dev/null` ; do
587
      if test -f "$i/unix/tclConfig.sh" ; then
588
        ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
589
        break
590
      fi
591
    done
592
  fi
593
 
594
  # check in a few common install locations
595
  if test x"${ac_cv_c_tclconfig}" = x ; then
596
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
597
      if test -f "$i/tclConfig.sh" ; then
598
        ac_cv_c_tclconfig=`(cd $i; pwd)`
599
        break
600
      fi
601
    done
602
  fi
603
  # check in a few other private locations
604
 
605
  if test x"${ac_cv_c_tclconfig}" = x ; then
606
    for i in \
607
                ${srcdir}/../tcl \
608
                `ls -dr ${srcdir}/../tcl[7-9].[0-9] 2>/dev/null` ; do
609
      if test -f "$i/unix/tclConfig.sh" ; then
610
        ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
611
        break
612
      fi
613
    done
614
  fi
615
 
616
 
617
fi
618
 
619
  if test x"${ac_cv_c_tclconfig}" = x ; then
620
    TCLCONFIG="# no Tcl configs found"
621
    echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
622
  else
623
    no_tcl=
624
    TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
625
    echo "$ac_t""found $TCLCONFIG" 1>&6
626
  fi
627
fi
628
 
629
 
630
    . $TCLCONFIG
631
 
632
 
633
 
634
 
635
 
636
 
637
 
638
 
639
# Tcl defines TCL_SHLIB_SUFFIX but TCL_SHARED_LIB_SUFFIX then looks for it
640
# as just SHLIB_SUFFIX.  How bizarre.
641
    SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
642
 
643
 
644
 
645
 
646
 
647
 
648
 
649
 
650
 
651
 
652
 
653
 
654
CC=$TCL_CC
655
# Extract the first word of "gcc", so it can be a program name with args.
656
set dummy gcc; ac_word=$2
657
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658
echo "configure:659: checking for $ac_word" >&5
659
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
660
  echo $ac_n "(cached) $ac_c" 1>&6
661
else
662
  if test -n "$CC"; then
663
  ac_cv_prog_CC="$CC" # Let the user override the test.
664
else
665
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
666
  ac_dummy="$PATH"
667
  for ac_dir in $ac_dummy; do
668
    test -z "$ac_dir" && ac_dir=.
669
    if test -f $ac_dir/$ac_word; then
670
      ac_cv_prog_CC="gcc"
671
      break
672
    fi
673
  done
674
  IFS="$ac_save_ifs"
675
fi
676
fi
677
CC="$ac_cv_prog_CC"
678
if test -n "$CC"; then
679
  echo "$ac_t""$CC" 1>&6
680
else
681
  echo "$ac_t""no" 1>&6
682
fi
683
 
684
if test -z "$CC"; then
685
  # Extract the first word of "cc", so it can be a program name with args.
686
set dummy cc; ac_word=$2
687
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
688
echo "configure:689: checking for $ac_word" >&5
689
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
690
  echo $ac_n "(cached) $ac_c" 1>&6
691
else
692
  if test -n "$CC"; then
693
  ac_cv_prog_CC="$CC" # Let the user override the test.
694
else
695
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
696
  ac_prog_rejected=no
697
  ac_dummy="$PATH"
698
  for ac_dir in $ac_dummy; do
699
    test -z "$ac_dir" && ac_dir=.
700
    if test -f $ac_dir/$ac_word; then
701
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
702
        ac_prog_rejected=yes
703
        continue
704
      fi
705
      ac_cv_prog_CC="cc"
706
      break
707
    fi
708
  done
709
  IFS="$ac_save_ifs"
710
if test $ac_prog_rejected = yes; then
711
  # We found a bogon in the path, so make sure we never use it.
712
  set dummy $ac_cv_prog_CC
713
  shift
714
  if test $# -gt 0; then
715
    # We chose a different compiler from the bogus one.
716
    # However, it has the same basename, so the bogon will be chosen
717
    # first if we set CC to just the basename; use the full file name.
718
    shift
719
    set dummy "$ac_dir/$ac_word" "$@"
720
    shift
721
    ac_cv_prog_CC="$@"
722
  fi
723
fi
724
fi
725
fi
726
CC="$ac_cv_prog_CC"
727
if test -n "$CC"; then
728
  echo "$ac_t""$CC" 1>&6
729
else
730
  echo "$ac_t""no" 1>&6
731
fi
732
 
733
  if test -z "$CC"; then
734
    case "`uname -s`" in
735
    *win32* | *WIN32*)
736
      # Extract the first word of "cl", so it can be a program name with args.
737
set dummy cl; ac_word=$2
738
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
739
echo "configure:740: checking for $ac_word" >&5
740
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
741
  echo $ac_n "(cached) $ac_c" 1>&6
742
else
743
  if test -n "$CC"; then
744
  ac_cv_prog_CC="$CC" # Let the user override the test.
745
else
746
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
747
  ac_dummy="$PATH"
748
  for ac_dir in $ac_dummy; do
749
    test -z "$ac_dir" && ac_dir=.
750
    if test -f $ac_dir/$ac_word; then
751
      ac_cv_prog_CC="cl"
752
      break
753
    fi
754
  done
755
  IFS="$ac_save_ifs"
756
fi
757
fi
758
CC="$ac_cv_prog_CC"
759
if test -n "$CC"; then
760
  echo "$ac_t""$CC" 1>&6
761
else
762
  echo "$ac_t""no" 1>&6
763
fi
764
 ;;
765
    esac
766
  fi
767
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
768
fi
769
 
770
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
771
echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
772
 
773
ac_ext=c
774
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
775
ac_cpp='$CPP $CPPFLAGS'
776
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
777
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
778
cross_compiling=$ac_cv_prog_cc_cross
779
 
780
cat > conftest.$ac_ext << EOF
781
 
782
#line 783 "configure"
783
#include "confdefs.h"
784
 
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
ac_ext=c
802
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
803
ac_cpp='$CPP $CPPFLAGS'
804
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
805
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
806
cross_compiling=$ac_cv_prog_cc_cross
807
 
808
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
809
if test $ac_cv_prog_cc_works = no; then
810
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
811
fi
812
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
813
echo "configure:814: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
814
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
815
cross_compiling=$ac_cv_prog_cc_cross
816
 
817
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
818
echo "configure:819: checking whether we are using GNU C" >&5
819
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
820
  echo $ac_n "(cached) $ac_c" 1>&6
821
else
822
  cat > conftest.c <
823
#ifdef __GNUC__
824
  yes;
825
#endif
826
EOF
827
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
828
  ac_cv_prog_gcc=yes
829
else
830
  ac_cv_prog_gcc=no
831
fi
832
fi
833
 
834
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
835
 
836
if test $ac_cv_prog_gcc = yes; then
837
  GCC=yes
838
else
839
  GCC=
840
fi
841
 
842
ac_test_CFLAGS="${CFLAGS+set}"
843
ac_save_CFLAGS="$CFLAGS"
844
CFLAGS=
845
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
846
echo "configure:847: checking whether ${CC-cc} accepts -g" >&5
847
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
848
  echo $ac_n "(cached) $ac_c" 1>&6
849
else
850
  echo 'void f(){}' > conftest.c
851
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
852
  ac_cv_prog_cc_g=yes
853
else
854
  ac_cv_prog_cc_g=no
855
fi
856
rm -f conftest*
857
 
858
fi
859
 
860
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
861
if test "$ac_test_CFLAGS" = set; then
862
  CFLAGS="$ac_save_CFLAGS"
863
elif test $ac_cv_prog_cc_g = yes; then
864
  if test "$GCC" = yes; then
865
    CFLAGS="-g -O2"
866
  else
867
    CFLAGS="-g"
868
  fi
869
else
870
  if test "$GCC" = yes; then
871
    CFLAGS="-O2"
872
  else
873
    CFLAGS=
874
  fi
875
fi
876
 
877
# If we cannot compile and link a trivial program, we can't expect anything to work
878
echo $ac_n "checking whether the compiler ($CC) actually works""... $ac_c" 1>&6
879
echo "configure:880: checking whether the compiler ($CC) actually works" >&5
880
cat > conftest.$ac_ext <
881
#line 882 "configure"
882
#include "confdefs.h"
883
 
884
int main() {
885
/* don't need anything here */
886
; return 0; }
887
EOF
888
if { (eval echo configure:889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
889
  rm -rf conftest*
890
  c_compiles=yes
891
else
892
  echo "configure: failed program was:" >&5
893
  cat conftest.$ac_ext >&5
894
  rm -rf conftest*
895
  c_compiles=no
896
fi
897
rm -f conftest*
898
 
899
cat > conftest.$ac_ext <
900
#line 901 "configure"
901
#include "confdefs.h"
902
 
903
int main() {
904
/* don't need anything here */
905
; return 0; }
906
EOF
907
if { (eval echo configure:908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
908
  rm -rf conftest*
909
  c_links=yes
910
else
911
  echo "configure: failed program was:" >&5
912
  cat conftest.$ac_ext >&5
913
  rm -rf conftest*
914
  c_links=no
915
fi
916
rm -f conftest*
917
 
918
if test x"${c_compiles}" = x"no" ; then
919
  { echo "configure: error: the native compiler is broken and won't compile." 1>&2; exit 1; }
920
fi
921
 
922
if test x"${c_links}" = x"no" ; then
923
  { echo "configure: error: the native compiler is broken and won't link." 1>&2; exit 1; }
924
fi
925
echo "$ac_t""yes" 1>&6
926
 
927
 
928
# this'll use a BSD compatible install or our included install-sh
929
ac_aux_dir=
930
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
931
  if test -f $ac_dir/install-sh; then
932
    ac_aux_dir=$ac_dir
933
    ac_install_sh="$ac_aux_dir/install-sh -c"
934
    break
935
  elif test -f $ac_dir/install.sh; then
936
    ac_aux_dir=$ac_dir
937
    ac_install_sh="$ac_aux_dir/install.sh -c"
938
    break
939
  fi
940
done
941
if test -z "$ac_aux_dir"; then
942
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
943
fi
944
ac_config_guess=$ac_aux_dir/config.guess
945
ac_config_sub=$ac_aux_dir/config.sub
946
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
947
 
948
# Find a good install program.  We prefer a C program (faster),
949
# so one script is as good as another.  But avoid the broken or
950
# incompatible versions:
951
# SysV /etc/install, /usr/sbin/install
952
# SunOS /usr/etc/install
953
# IRIX /sbin/install
954
# AIX /bin/install
955
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
956
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
957
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
958
# ./install, which can be erroneously created by make from ./install.sh.
959
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
960
echo "configure:961: checking for a BSD compatible install" >&5
961
if test -z "$INSTALL"; then
962
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
963
  echo $ac_n "(cached) $ac_c" 1>&6
964
else
965
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
966
  for ac_dir in $PATH; do
967
    # Account for people who put trailing slashes in PATH elements.
968
    case "$ac_dir/" in
969
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
970
    *)
971
      # OSF1 and SCO ODT 3.0 have their own names for install.
972
      # Don't use installbsd from OSF since it installs stuff as root
973
      # by default.
974
      for ac_prog in ginstall scoinst install; do
975
        if test -f $ac_dir/$ac_prog; then
976
          if test $ac_prog = install &&
977
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
978
            # AIX install.  It has an incompatible calling convention.
979
            :
980
          else
981
            ac_cv_path_install="$ac_dir/$ac_prog -c"
982
            break 2
983
          fi
984
        fi
985
      done
986
      ;;
987
    esac
988
  done
989
  IFS="$ac_save_IFS"
990
 
991
fi
992
  if test "${ac_cv_path_install+set}" = set; then
993
    INSTALL="$ac_cv_path_install"
994
  else
995
    # As a last resort, use the slow shell script.  We don't cache a
996
    # path for INSTALL within a source directory, because that will
997
    # break other packages using the cache if that directory is
998
    # removed, or if the path is relative.
999
    INSTALL="$ac_install_sh"
1000
  fi
1001
fi
1002
echo "$ac_t""$INSTALL" 1>&6
1003
 
1004
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1005
# It thinks the first close brace ends the variable substitution.
1006
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1007
 
1008
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1009
 
1010
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1011
 
1012
 
1013
# Tcl sets TCL_RANLIB appropriately for shared library if --enable-shared
1014
# Extract the first word of "ranlib", so it can be a program name with args.
1015
set dummy ranlib; ac_word=$2
1016
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1017
echo "configure:1018: checking for $ac_word" >&5
1018
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1019
  echo $ac_n "(cached) $ac_c" 1>&6
1020
else
1021
  if test -n "$RANLIB"; then
1022
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1023
else
1024
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1025
  ac_dummy="$PATH"
1026
  for ac_dir in $ac_dummy; do
1027
    test -z "$ac_dir" && ac_dir=.
1028
    if test -f $ac_dir/$ac_word; then
1029
      ac_cv_prog_RANLIB="ranlib"
1030
      break
1031
    fi
1032
  done
1033
  IFS="$ac_save_ifs"
1034
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1035
fi
1036
fi
1037
RANLIB="$ac_cv_prog_RANLIB"
1038
if test -n "$RANLIB"; then
1039
  echo "$ac_t""$RANLIB" 1>&6
1040
else
1041
  echo "$ac_t""no" 1>&6
1042
fi
1043
 
1044
UNSHARED_RANLIB=$RANLIB
1045
 
1046
# This is for LynxOS, which needs a flag to force true POSIX when
1047
# building. It's weirder than that, cause the flag varies depending
1048
# how old the compiler is. So...
1049
# -X is for the old "cc" and "gcc" (based on 1.42)
1050
# -mposix is for the new gcc (at least 2.5.8)
1051
# This modifies the value of $CC to have the POSIX flag added
1052
# so it'll configure correctly
1053
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1054
echo "configure:1055: checking how to run the C preprocessor" >&5
1055
# On Suns, sometimes $CPP names a directory.
1056
if test -n "$CPP" && test -d "$CPP"; then
1057
  CPP=
1058
fi
1059
if test -z "$CPP"; then
1060
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1061
  echo $ac_n "(cached) $ac_c" 1>&6
1062
else
1063
    # This must be in double quotes, not single quotes, because CPP may get
1064
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1065
  CPP="${CC-cc} -E"
1066
  # On the NeXT, cc -E runs the code through the compiler's parser,
1067
  # not just through cpp.
1068
  cat > conftest.$ac_ext <
1069
#line 1070 "configure"
1070
#include "confdefs.h"
1071
#include 
1072
Syntax Error
1073
EOF
1074
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1075
{ (eval echo configure:1076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1076
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1077
if test -z "$ac_err"; then
1078
  :
1079
else
1080
  echo "$ac_err" >&5
1081
  echo "configure: failed program was:" >&5
1082
  cat conftest.$ac_ext >&5
1083
  rm -rf conftest*
1084
  CPP="${CC-cc} -E -traditional-cpp"
1085
  cat > conftest.$ac_ext <
1086
#line 1087 "configure"
1087
#include "confdefs.h"
1088
#include 
1089
Syntax Error
1090
EOF
1091
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1092
{ (eval echo configure:1093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1093
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1094
if test -z "$ac_err"; then
1095
  :
1096
else
1097
  echo "$ac_err" >&5
1098
  echo "configure: failed program was:" >&5
1099
  cat conftest.$ac_ext >&5
1100
  rm -rf conftest*
1101
  CPP="${CC-cc} -nologo -E"
1102
  cat > conftest.$ac_ext <
1103
#line 1104 "configure"
1104
#include "confdefs.h"
1105
#include 
1106
Syntax Error
1107
EOF
1108
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1109
{ (eval echo configure:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1110
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1111
if test -z "$ac_err"; then
1112
  :
1113
else
1114
  echo "$ac_err" >&5
1115
  echo "configure: failed program was:" >&5
1116
  cat conftest.$ac_ext >&5
1117
  rm -rf conftest*
1118
  CPP=/lib/cpp
1119
fi
1120
rm -f conftest*
1121
fi
1122
rm -f conftest*
1123
fi
1124
rm -f conftest*
1125
  ac_cv_prog_CPP="$CPP"
1126
fi
1127
  CPP="$ac_cv_prog_CPP"
1128
else
1129
  ac_cv_prog_CPP="$CPP"
1130
fi
1131
echo "$ac_t""$CPP" 1>&6
1132
 
1133
 
1134
echo $ac_n "checking if running LynxOS""... $ac_c" 1>&6
1135
echo "configure:1136: checking if running LynxOS" >&5
1136
if eval "test \"`echo '$''{'ac_cv_os_lynx'+set}'`\" = set"; then
1137
  echo $ac_n "(cached) $ac_c" 1>&6
1138
else
1139
  cat > conftest.$ac_ext <
1140
#line 1141 "configure"
1141
#include "confdefs.h"
1142
/*
1143
 * The old Lynx "cc" only defines "Lynx", but the newer one uses "__Lynx__"
1144
 */
1145
#if defined(__Lynx__) || defined(Lynx)
1146
yes
1147
#endif
1148
 
1149
EOF
1150
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1151
  egrep "yes" >/dev/null 2>&1; then
1152
  rm -rf conftest*
1153
  ac_cv_os_lynx=yes
1154
else
1155
  rm -rf conftest*
1156
  ac_cv_os_lynx=no
1157
fi
1158
rm -f conftest*
1159
 
1160
fi
1161
 
1162
#
1163
if test "$ac_cv_os_lynx" = "yes" ; then
1164
  echo "$ac_t""yes" 1>&6
1165
  cat >> confdefs.h <<\EOF
1166
#define LYNX 1
1167
EOF
1168
 
1169
  echo $ac_n "checking whether -mposix or -X is available""... $ac_c" 1>&6
1170
echo "configure:1171: checking whether -mposix or -X is available" >&5
1171
  if eval "test \"`echo '$''{'ac_cv_c_posix_flag'+set}'`\" = set"; then
1172
  echo $ac_n "(cached) $ac_c" 1>&6
1173
else
1174
  cat > conftest.$ac_ext <
1175
#line 1176 "configure"
1176
#include "confdefs.h"
1177
 
1178
int main() {
1179
 
1180
  /*
1181
   * This flag varies depending on how old the compiler is.
1182
   * -X is for the old "cc" and "gcc" (based on 1.42).
1183
   * -mposix is for the new gcc (at least 2.5.8).
1184
   */
1185
  #if defined(__GNUC__) && __GNUC__ >= 2
1186
  choke me
1187
  #endif
1188
 
1189
; return 0; }
1190
EOF
1191
if { (eval echo configure:1192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1192
  rm -rf conftest*
1193
  ac_cv_c_posix_flag=" -mposix"
1194
else
1195
  echo "configure: failed program was:" >&5
1196
  cat conftest.$ac_ext >&5
1197
  rm -rf conftest*
1198
  ac_cv_c_posix_flag=" -X"
1199
fi
1200
rm -f conftest*
1201
fi
1202
 
1203
  CC="$CC $ac_cv_c_posix_flag"
1204
  echo "$ac_t""$ac_cv_c_posix_flag" 1>&6
1205
  else
1206
  echo "$ac_t""no" 1>&6
1207
fi
1208
 
1209
 
1210
# we really only need the header files
1211
 
1212
#
1213
# Ok, lets find the tcl source trees so we can use the headers
1214
# Warning: transition of version 9 to 10 will break this algorithm
1215
# because 10 sorts before 9. We also look for just tcl. We have to
1216
# be careful that we don't match stuff like tclX by accident.
1217
# the alternative search directory is involked by --with-tclinclude
1218
#
1219
no_tcl=true
1220
echo $ac_n "checking for Tcl private headers""... $ac_c" 1>&6
1221
echo "configure:1222: checking for Tcl private headers" >&5
1222
# Check whether --with-tclinclude or --without-tclinclude was given.
1223
if test "${with_tclinclude+set}" = set; then
1224
  withval="$with_tclinclude"
1225
  with_tclinclude=${withval}
1226
fi
1227
 
1228
if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
1229
  echo $ac_n "(cached) $ac_c" 1>&6
1230
else
1231
 
1232
# first check to see if --with-tclinclude was specified
1233
if test x"${with_tclinclude}" != x ; then
1234
  if test -f ${with_tclinclude}/tclInt.h ; then
1235
    ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
1236
  elif test -f ${with_tclinclude}/generic/tclInt.h ; then
1237
    ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
1238
  else
1239
    { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
1240
  fi
1241
fi
1242
 
1243
# next check if it came with Tcl configuration file
1244
if test x"${ac_cv_c_tclconfig}" != x ; then
1245
  if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
1246
    ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/../generic; pwd)`
1247
  fi
1248
fi
1249
 
1250
# next check in private source directory
1251
#
1252
# since ls returns lowest version numbers first, reverse its output
1253
 
1254
if test x"${ac_cv_c_tclh}" = x ; then
1255
  for i in \
1256
                ${srcdir}/../tcl \
1257
                `ls -dr ${srcdir}/../tcl[7-9].[0-9] 2>/dev/null` \
1258
                ${srcdir}/../../tcl \
1259
                `ls -dr ${srcdir}/../../tcl[7-9].[0-9] 2>/dev/null` \
1260
                ${srcdir}/../../../tcl \
1261
                `ls -dr ${srcdir}/../../../tcl[7-9].[0-9] 2>/dev/null ` ; do
1262
    if test -f $i/generic/tclInt.h ; then
1263
      ac_cv_c_tclh=`(cd $i/generic; pwd)`
1264
      break
1265
    fi
1266
  done
1267
fi
1268
 
1269
# finally check in a few common install locations
1270
#
1271
# since ls returns lowest version numbers first, reverse its output
1272
 
1273
if test x"${ac_cv_c_tclh}" = x ; then
1274
  for i in \
1275
                `ls -dr /usr/local/src/tcl[7-9].[0-9] 2>/dev/null` \
1276
                `ls -dr /usr/local/lib/tcl[7-9].[0-9] 2>/dev/null` \
1277
                /usr/local/src/tcl \
1278
                /usr/local/lib/tcl \
1279
                ${prefix}/include ; do
1280
    if test -f $i/generic/tclInt.h ; then
1281
      ac_cv_c_tclh=`(cd $i/generic; pwd)`
1282
      break
1283
    fi
1284
  done
1285
fi
1286
 
1287
# see if one is installed
1288
if test x"${ac_cv_c_tclh}" = x ; then
1289
   ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
1290
echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
1291
echo "configure:1292: checking for tclInt.h" >&5
1292
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1293
  echo $ac_n "(cached) $ac_c" 1>&6
1294
else
1295
  cat > conftest.$ac_ext <
1296
#line 1297 "configure"
1297
#include "confdefs.h"
1298
#include 
1299
EOF
1300
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1301
{ (eval echo configure:1302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1302
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1303
if test -z "$ac_err"; then
1304
  rm -rf conftest*
1305
  eval "ac_cv_header_$ac_safe=yes"
1306
else
1307
  echo "$ac_err" >&5
1308
  echo "configure: failed program was:" >&5
1309
  cat conftest.$ac_ext >&5
1310
  rm -rf conftest*
1311
  eval "ac_cv_header_$ac_safe=no"
1312
fi
1313
rm -f conftest*
1314
fi
1315
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1316
  echo "$ac_t""yes" 1>&6
1317
  ac_cv_c_tclh=installed
1318
else
1319
  echo "$ac_t""no" 1>&6
1320
ac_cv_c_tclh=""
1321
fi
1322
 
1323
fi
1324
 
1325
fi
1326
 
1327
if test x"${ac_cv_c_tclh}" = x ; then
1328
  TCLHDIR="# no Tcl private headers found"
1329
  TCLHDIRDASHI="# no Tcl private headers found"
1330
  { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
1331
fi
1332
if test x"${ac_cv_c_tclh}" != x ; then
1333
  no_tcl=""
1334
  if test x"${ac_cv_c_tclh}" = x"installed" ; then
1335
    echo "$ac_t""is installed" 1>&6
1336
    TCLHDIR=""
1337
    TCLHDIRDASHI=""
1338
    TCL_LIBRARY=""
1339
  else
1340
    echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
1341
    # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
1342
    TCLHDIR="${ac_cv_c_tclh}"
1343
    TCLHDIRDASHI="-I${ac_cv_c_tclh}"
1344
    TCL_LIBRARY=`echo $TCLHDIR | sed -e 's/generic//'`library
1345
  fi
1346
fi
1347
 
1348
 
1349
 
1350
 
1351
 
1352
if test x"$no_tcl" = x"true" ; then
1353
    echo "      ERROR: Can't find Tcl directory"
1354
    echo "      See README for information on how to obtain Tcl."
1355
    echo "      If Tcl is installed, see INSTALL on how to tell"
1356
    echo "      configure where Tcl is installed."
1357
    exit 1
1358
fi
1359
 
1360
# Use -g on all systems but Linux where it upsets the dynamic X libraries.
1361
echo $ac_n "checking if we are running Linux""... $ac_c" 1>&6
1362
echo "configure:1363: checking if we are running Linux" >&5
1363
if test "x`(uname) 2>/dev/null`" = xLinux; then
1364
  echo "$ac_t""yes" 1>&6
1365
  linux=1
1366
  DBG_CFLAGS=
1367
else
1368
  echo "$ac_t""no" 1>&6
1369
  linux=0
1370
  DBG_CFLAGS=-g
1371
fi
1372
 
1373
#
1374
# Look for functions that may be missing
1375
#
1376
echo $ac_n "checking for strchr""... $ac_c" 1>&6
1377
echo "configure:1378: checking for strchr" >&5
1378
if eval "test \"`echo '$''{'ac_cv_func_strchr'+set}'`\" = set"; then
1379
  echo $ac_n "(cached) $ac_c" 1>&6
1380
else
1381
  cat > conftest.$ac_ext <
1382
#line 1383 "configure"
1383
#include "confdefs.h"
1384
/* System header to define __stub macros and hopefully few prototypes,
1385
    which can conflict with char strchr(); below.  */
1386
#include 
1387
/* Override any gcc2 internal prototype to avoid an error.  */
1388
/* We use char because int might match the return type of a gcc2
1389
    builtin and then its argument prototype would still apply.  */
1390
char strchr();
1391
 
1392
int main() {
1393
 
1394
/* The GNU C library defines this for functions which it implements
1395
    to always fail with ENOSYS.  Some functions are actually named
1396
    something starting with __ and the normal name is an alias.  */
1397
#if defined (__stub_strchr) || defined (__stub___strchr)
1398
choke me
1399
#else
1400
strchr();
1401
#endif
1402
 
1403
; return 0; }
1404
EOF
1405
if { (eval echo configure:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1406
  rm -rf conftest*
1407
  eval "ac_cv_func_strchr=yes"
1408
else
1409
  echo "configure: failed program was:" >&5
1410
  cat conftest.$ac_ext >&5
1411
  rm -rf conftest*
1412
  eval "ac_cv_func_strchr=no"
1413
fi
1414
rm -f conftest*
1415
fi
1416
 
1417
if eval "test \"`echo '$ac_cv_func_'strchr`\" = yes"; then
1418
  echo "$ac_t""yes" 1>&6
1419
  cat >> confdefs.h <<\EOF
1420
#define HAVE_STRCHR 1
1421
EOF
1422
 
1423
else
1424
  echo "$ac_t""no" 1>&6
1425
fi
1426
 
1427
 
1428
#
1429
# Look for various header files
1430
#
1431
ac_safe=`echo "stdlib.h" | sed 'y%./+-%__p_%'`
1432
echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
1433
echo "configure:1434: checking for stdlib.h" >&5
1434
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1435
  echo $ac_n "(cached) $ac_c" 1>&6
1436
else
1437
  cat > conftest.$ac_ext <
1438
#line 1439 "configure"
1439
#include "confdefs.h"
1440
#include 
1441
EOF
1442
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1443
{ (eval echo configure:1444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1444
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1445
if test -z "$ac_err"; then
1446
  rm -rf conftest*
1447
  eval "ac_cv_header_$ac_safe=yes"
1448
else
1449
  echo "$ac_err" >&5
1450
  echo "configure: failed program was:" >&5
1451
  cat conftest.$ac_ext >&5
1452
  rm -rf conftest*
1453
  eval "ac_cv_header_$ac_safe=no"
1454
fi
1455
rm -f conftest*
1456
fi
1457
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1458
  echo "$ac_t""yes" 1>&6
1459
  :
1460
else
1461
  echo "$ac_t""no" 1>&6
1462
cat >> confdefs.h <<\EOF
1463
#define NO_STDLIB_H 1
1464
EOF
1465
 
1466
fi
1467
 
1468
 
1469
# consume these flags so that user can invoke tcl-debug's configure with
1470
# the same command as Tcl's configure
1471
# Check whether --enable-load or --disable-load was given.
1472
if test "${enable_load+set}" = set; then
1473
  enableval="$enable_load"
1474
  disable_dl=yes
1475
else
1476
  disable_dl=no
1477
fi
1478
 
1479
 
1480
# Check whether --enable-gcc or --disable-gcc was given.
1481
if test "${enable_gcc+set}" = set; then
1482
  enableval="$enable_gcc"
1483
  enable_gcc=yes
1484
else
1485
  enable_gcc=no
1486
fi
1487
 
1488
 
1489
DBG_UNSHARED_LIB_FILE=libtcldbg.a
1490
 
1491
echo $ac_n "checking type of library to build""... $ac_c" 1>&6
1492
echo "configure:1493: checking type of library to build" >&5
1493
# Check whether --enable-shared or --disable-shared was given.
1494
if test "${enable_shared+set}" = set; then
1495
  enableval="$enable_shared"
1496
  enable_shared=yes
1497
else
1498
  enable_shared=no
1499
fi
1500
 
1501
if test "$enable_shared" = "yes" -a "x${TCL_SHLIB_SUFFIX}" != "x" ; then
1502
  DBG_SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
1503
#  DBG_SHARED_LIB_FILE=libtcldbg$DBG_VERSION$TCL_SHLIB_SUFFIX
1504
  eval "DBG_SHARED_LIB_FILE=libdbg${TCL_SHARED_LIB_SUFFIX}"
1505
  DBG_LIB_FILE=$DBG_SHARED_LIB_FILE
1506
  DBG_LIB_FILES="$DBG_SHARED_LIB_FILE $DBG_UNSHARED_LIB_FILE"
1507
  echo "$ac_t""both shared and unshared" 1>&6
1508
else
1509
  DBG_SHLIB_CFLAGS=
1510
  DBG_SHARED_LIB_FILE="reconfigure_Tcl_for_shared_library"
1511
  DBG_LIB_FILE=$DBG_UNSHARED_LIB_FILE
1512
  DBG_LIB_FILES="$DBG_UNSHARED_LIB_FILE"
1513
  echo "$ac_t""unshared" 1>&6
1514
fi
1515
 
1516
#
1517
# Set up makefile substitutions
1518
#
1519
 
1520
 
1521
 
1522
 
1523
 
1524
 
1525
 
1526
 
1527
 
1528
 
1529
 
1530
 
1531
 
1532
trap '' 1 2 15
1533
cat > confcache <<\EOF
1534
# This file is a shell script that caches the results of configure
1535
# tests run on this system so they can be shared between configure
1536
# scripts and configure runs.  It is not useful on other systems.
1537
# If it contains results you don't want to keep, you may remove or edit it.
1538
#
1539
# By default, configure uses ./config.cache as the cache file,
1540
# creating it if it does not exist already.  You can give configure
1541
# the --cache-file=FILE option to use a different cache file; that is
1542
# what configure does when it calls configure scripts in
1543
# subdirectories, so they share the cache.
1544
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1545
# config.status only pays attention to the cache file if you give it the
1546
# --recheck option to rerun configure.
1547
#
1548
EOF
1549
# The following way of writing the cache mishandles newlines in values,
1550
# but we know of no workaround that is simple, portable, and efficient.
1551
# So, don't put newlines in cache variables' values.
1552
# Ultrix sh set writes to stderr and can't be redirected directly,
1553
# and sets the high bit in the cache file unless we assign to the vars.
1554
(set) 2>&1 |
1555
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1556
  *ac_space=\ *)
1557
    # `set' does not quote correctly, so add quotes (double-quote substitution
1558
    # turns \\\\ into \\, and sed turns \\ into \).
1559
    sed -n \
1560
      -e "s/'/'\\\\''/g" \
1561
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1562
    ;;
1563
  *)
1564
    # `set' quotes correctly as required by POSIX, so do not add quotes.
1565
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1566
    ;;
1567
  esac >> confcache
1568
if cmp -s $cache_file confcache; then
1569
  :
1570
else
1571
  if test -w $cache_file; then
1572
    echo "updating cache $cache_file"
1573
    cat confcache > $cache_file
1574
  else
1575
    echo "not updating unwritable cache $cache_file"
1576
  fi
1577
fi
1578
rm -f confcache
1579
 
1580
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1581
 
1582
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1583
# Let make expand exec_prefix.
1584
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1585
 
1586
# Any assignment to VPATH causes Sun make to only execute
1587
# the first set of double-colon rules, so remove it if not needed.
1588
# If there is a colon in the path, we need to keep it.
1589
if test "x$srcdir" = x.; then
1590
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1591
fi
1592
 
1593
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1594
 
1595
DEFS=-DHAVE_CONFIG_H
1596
 
1597
# Without the "./", some shells look in PATH for config.status.
1598
: ${CONFIG_STATUS=./config.status}
1599
 
1600
echo creating $CONFIG_STATUS
1601
rm -f $CONFIG_STATUS
1602
cat > $CONFIG_STATUS <
1603
#! /bin/sh
1604
# Generated automatically by configure.
1605
# Run this file to recreate the current configuration.
1606
# This directory was configured as follows,
1607
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1608
#
1609
# $0 $ac_configure_args
1610
#
1611
# Compiler output produced by configure, useful for debugging
1612
# configure, is in ./config.log if it exists.
1613
 
1614
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1615
for ac_option
1616
do
1617
  case "\$ac_option" in
1618
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1619
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1620
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1621
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1622
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1623
    exit 0 ;;
1624
  -help | --help | --hel | --he | --h)
1625
    echo "\$ac_cs_usage"; exit 0 ;;
1626
  *) echo "\$ac_cs_usage"; exit 1 ;;
1627
  esac
1628
done
1629
 
1630
ac_given_srcdir=$srcdir
1631
ac_given_INSTALL="$INSTALL"
1632
 
1633
trap 'rm -fr `echo "Makefile Dbg_cf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1634
EOF
1635
cat >> $CONFIG_STATUS <
1636
 
1637
# Protect against being on the right side of a sed subst in config.status.
1638
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1639
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1640
$ac_vpsub
1641
$extrasub
1642
s%@SHELL@%$SHELL%g
1643
s%@CFLAGS@%$CFLAGS%g
1644
s%@CPPFLAGS@%$CPPFLAGS%g
1645
s%@CXXFLAGS@%$CXXFLAGS%g
1646
s%@FFLAGS@%$FFLAGS%g
1647
s%@DEFS@%$DEFS%g
1648
s%@LDFLAGS@%$LDFLAGS%g
1649
s%@LIBS@%$LIBS%g
1650
s%@exec_prefix@%$exec_prefix%g
1651
s%@prefix@%$prefix%g
1652
s%@program_transform_name@%$program_transform_name%g
1653
s%@bindir@%$bindir%g
1654
s%@sbindir@%$sbindir%g
1655
s%@libexecdir@%$libexecdir%g
1656
s%@datadir@%$datadir%g
1657
s%@sysconfdir@%$sysconfdir%g
1658
s%@sharedstatedir@%$sharedstatedir%g
1659
s%@localstatedir@%$localstatedir%g
1660
s%@libdir@%$libdir%g
1661
s%@includedir@%$includedir%g
1662
s%@oldincludedir@%$oldincludedir%g
1663
s%@infodir@%$infodir%g
1664
s%@mandir@%$mandir%g
1665
s%@TCL_DEFS@%$TCL_DEFS%g
1666
s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
1667
s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
1668
s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
1669
s%@TCL_RANLIB@%$TCL_RANLIB%g
1670
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
1671
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
1672
s%@TCL_SHARED_LIB_SUFFIX@%$TCL_SHARED_LIB_SUFFIX%g
1673
s%@CC@%$CC%g
1674
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1675
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1676
s%@INSTALL_DATA@%$INSTALL_DATA%g
1677
s%@RANLIB@%$RANLIB%g
1678
s%@CPP@%$CPP%g
1679
s%@TCLHDIR@%$TCLHDIR%g
1680
s%@TCLHDIRDASHI@%$TCLHDIRDASHI%g
1681
s%@TCL_LIBRARY@%$TCL_LIBRARY%g
1682
s%@DBG_MAJOR_VERSION@%$DBG_MAJOR_VERSION%g
1683
s%@DBG_MINOR_VERSION@%$DBG_MINOR_VERSION%g
1684
s%@DBG_MICRO_VERSION@%$DBG_MICRO_VERSION%g
1685
s%@DBG_VERSION_FULL@%$DBG_VERSION_FULL%g
1686
s%@DBG_VERSION@%$DBG_VERSION%g
1687
s%@DBG_SHARED_LIB_FILE@%$DBG_SHARED_LIB_FILE%g
1688
s%@DBG_UNSHARED_LIB_FILE@%$DBG_UNSHARED_LIB_FILE%g
1689
s%@DBG_SHLIB_CFLAGS@%$DBG_SHLIB_CFLAGS%g
1690
s%@DBG_LIB_FILE@%$DBG_LIB_FILE%g
1691
s%@DBG_LIB_FILES@%$DBG_LIB_FILES%g
1692
s%@DBG_CFLAGS@%$DBG_CFLAGS%g
1693
s%@UNSHARED_RANLIB@%$UNSHARED_RANLIB%g
1694
 
1695
CEOF
1696
EOF
1697
 
1698
cat >> $CONFIG_STATUS <<\EOF
1699
 
1700
# Split the substitutions into bite-sized pieces for seds with
1701
# small command number limits, like on Digital OSF/1 and HP-UX.
1702
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1703
ac_file=1 # Number of current file.
1704
ac_beg=1 # First line for current file.
1705
ac_end=$ac_max_sed_cmds # Line after last line for current file.
1706
ac_more_lines=:
1707
ac_sed_cmds=""
1708
while $ac_more_lines; do
1709
  if test $ac_beg -gt 1; then
1710
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1711
  else
1712
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1713
  fi
1714
  if test ! -s conftest.s$ac_file; then
1715
    ac_more_lines=false
1716
    rm -f conftest.s$ac_file
1717
  else
1718
    if test -z "$ac_sed_cmds"; then
1719
      ac_sed_cmds="sed -f conftest.s$ac_file"
1720
    else
1721
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1722
    fi
1723
    ac_file=`expr $ac_file + 1`
1724
    ac_beg=$ac_end
1725
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1726
  fi
1727
done
1728
if test -z "$ac_sed_cmds"; then
1729
  ac_sed_cmds=cat
1730
fi
1731
EOF
1732
 
1733
cat >> $CONFIG_STATUS <
1734
 
1735
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1736
EOF
1737
cat >> $CONFIG_STATUS <<\EOF
1738
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1739
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1740
  case "$ac_file" in
1741
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1742
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1743
  *) ac_file_in="${ac_file}.in" ;;
1744
  esac
1745
 
1746
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1747
 
1748
  # Remove last slash and all that follows it.  Not all systems have dirname.
1749
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1750
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1751
    # The file is in a subdirectory.
1752
    test ! -d "$ac_dir" && mkdir "$ac_dir"
1753
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1754
    # A "../" for each directory in $ac_dir_suffix.
1755
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1756
  else
1757
    ac_dir_suffix= ac_dots=
1758
  fi
1759
 
1760
  case "$ac_given_srcdir" in
1761
  .)  srcdir=.
1762
      if test -z "$ac_dots"; then top_srcdir=.
1763
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1764
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1765
  *) # Relative path.
1766
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1767
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1768
  esac
1769
 
1770
  case "$ac_given_INSTALL" in
1771
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1772
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1773
  esac
1774
 
1775
  echo creating "$ac_file"
1776
  rm -f "$ac_file"
1777
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1778
  case "$ac_file" in
1779
  *Makefile*) ac_comsub="1i\\
1780
# $configure_input" ;;
1781
  *) ac_comsub= ;;
1782
  esac
1783
 
1784
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1785
  sed -e "$ac_comsub
1786
s%@configure_input@%$configure_input%g
1787
s%@srcdir@%$srcdir%g
1788
s%@top_srcdir@%$top_srcdir%g
1789
s%@INSTALL@%$INSTALL%g
1790
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1791
fi; done
1792
rm -f conftest.s*
1793
 
1794
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1795
# NAME is the cpp macro being defined and VALUE is the value it is being given.
1796
#
1797
# ac_d sets the value in "#define NAME VALUE" lines.
1798
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1799
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1800
ac_dC='\3'
1801
ac_dD='%g'
1802
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1803
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1804
ac_uB='\([      ]\)%\1#\2define\3'
1805
ac_uC=' '
1806
ac_uD='\4%g'
1807
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1808
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1809
ac_eB='$%\1#\2define\3'
1810
ac_eC=' '
1811
ac_eD='%g'
1812
 
1813
if test "${CONFIG_HEADERS+set}" != set; then
1814
EOF
1815
cat >> $CONFIG_STATUS <
1816
  CONFIG_HEADERS="Dbg_cf.h"
1817
EOF
1818
cat >> $CONFIG_STATUS <<\EOF
1819
fi
1820
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1821
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1822
  case "$ac_file" in
1823
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1824
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1825
  *) ac_file_in="${ac_file}.in" ;;
1826
  esac
1827
 
1828
  echo creating $ac_file
1829
 
1830
  rm -f conftest.frag conftest.in conftest.out
1831
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1832
  cat $ac_file_inputs > conftest.in
1833
 
1834
EOF
1835
 
1836
# Transform confdefs.h into a sed script conftest.vals that substitutes
1837
# the proper values into config.h.in to produce config.h.  And first:
1838
# Protect against being on the right side of a sed subst in config.status.
1839
# Protect against being in an unquoted here document in config.status.
1840
rm -f conftest.vals
1841
cat > conftest.hdr <<\EOF
1842
s/[\\&%]/\\&/g
1843
s%[\\$`]%\\&%g
1844
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1845
s%ac_d%ac_u%gp
1846
s%ac_u%ac_e%gp
1847
EOF
1848
sed -n -f conftest.hdr confdefs.h > conftest.vals
1849
rm -f conftest.hdr
1850
 
1851
# This sed command replaces #undef with comments.  This is necessary, for
1852
# example, in the case of _POSIX_SOURCE, which is predefined and required
1853
# on some systems where configure will not decide to define it.
1854
cat >> conftest.vals <<\EOF
1855
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1856
EOF
1857
 
1858
# Break up conftest.vals because some shells have a limit on
1859
# the size of here documents, and old seds have small limits too.
1860
 
1861
rm -f conftest.tail
1862
while :
1863
do
1864
  ac_lines=`grep -c . conftest.vals`
1865
  # grep -c gives empty output for an empty file on some AIX systems.
1866
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1867
  # Write a limited-size here document to conftest.frag.
1868
  echo '  cat > conftest.frag <> $CONFIG_STATUS
1869
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1870
  echo 'CEOF
1871
  sed -f conftest.frag conftest.in > conftest.out
1872
  rm -f conftest.in
1873
  mv conftest.out conftest.in
1874
' >> $CONFIG_STATUS
1875
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1876
  rm -f conftest.vals
1877
  mv conftest.tail conftest.vals
1878
done
1879
rm -f conftest.vals
1880
 
1881
cat >> $CONFIG_STATUS <<\EOF
1882
  rm -f conftest.frag conftest.h
1883
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
1884
  cat conftest.in >> conftest.h
1885
  rm -f conftest.in
1886
  if cmp -s $ac_file conftest.h 2>/dev/null; then
1887
    echo "$ac_file is unchanged"
1888
    rm -f conftest.h
1889
  else
1890
    # Remove last slash and all that follows it.  Not all systems have dirname.
1891
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1892
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1893
      # The file is in a subdirectory.
1894
      test ! -d "$ac_dir" && mkdir "$ac_dir"
1895
    fi
1896
    rm -f $ac_file
1897
    mv conftest.h $ac_file
1898
  fi
1899
fi; done
1900
 
1901
EOF
1902
cat >> $CONFIG_STATUS <
1903
 
1904
EOF
1905
cat >> $CONFIG_STATUS <<\EOF
1906
 
1907
exit 0
1908
EOF
1909
chmod +x $CONFIG_STATUS
1910
rm -fr confdefs* $ac_clean_files
1911
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1912
 
1913
 

powered by: WebSVN 2.1.0

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