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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [expect/] [testsuite/] [configure] - Blame information for rev 1778

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

powered by: WebSVN 2.1.0

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