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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [unix/] [configure] - Blame information for rev 1774

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.2
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6
#
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
 
10
# Defaults:
11
ac_help=
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
14
ac_help="$ac_help
15
  --with-tclconfig           directory containing tcl configuration (tclConfig.sh)"
16
ac_help="$ac_help
17
  --with-tkconfig           directory containing tk configuration (tkConfig.sh)"
18
ac_help="$ac_help
19
  --with-tclinclude       directory where tcl headers are"
20
ac_help="$ac_help
21
  --with-tkinclude       directory where tk headers are"
22
 
23
# Initialize some variables set by options.
24
# The variables have the same names as the options, with
25
# dashes changed to underlines.
26
build=NONE
27
cache_file=./config.cache
28
exec_prefix=NONE
29
host=NONE
30
no_create=
31
nonopt=NONE
32
no_recursion=
33
prefix=NONE
34
program_prefix=NONE
35
program_suffix=NONE
36
program_transform_name=s,x,x,
37
silent=
38
site=
39
srcdir=
40
target=NONE
41
verbose=
42
x_includes=NONE
43
x_libraries=NONE
44
bindir='${exec_prefix}/bin'
45
sbindir='${exec_prefix}/sbin'
46
libexecdir='${exec_prefix}/libexec'
47
datadir='${prefix}/share'
48
sysconfdir='${prefix}/etc'
49
sharedstatedir='${prefix}/com'
50
localstatedir='${prefix}/var'
51
libdir='${exec_prefix}/lib'
52
includedir='${prefix}/include'
53
oldincludedir='/usr/include'
54
infodir='${prefix}/info'
55
mandir='${prefix}/man'
56
 
57
# Initialize some other variables.
58
subdirs=
59
MFLAGS= MAKEFLAGS=
60
SHELL=${CONFIG_SHELL-/bin/sh}
61
# Maximum number of lines to put in a shell here document.
62
ac_max_here_lines=12
63
 
64
ac_prev=
65
for ac_option
66
do
67
 
68
  # If the previous option needs an argument, assign it.
69
  if test -n "$ac_prev"; then
70
    eval "$ac_prev=\$ac_option"
71
    ac_prev=
72
    continue
73
  fi
74
 
75
  case "$ac_option" in
76
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77
  *) ac_optarg= ;;
78
  esac
79
 
80
  # Accept the important Cygnus configure options, so we can diagnose typos.
81
 
82
  case "$ac_option" in
83
 
84
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
85
    ac_prev=bindir ;;
86
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87
    bindir="$ac_optarg" ;;
88
 
89
  -build | --build | --buil | --bui | --bu)
90
    ac_prev=build ;;
91
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92
    build="$ac_optarg" ;;
93
 
94
  -cache-file | --cache-file | --cache-fil | --cache-fi \
95
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
96
    ac_prev=cache_file ;;
97
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
98
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
99
    cache_file="$ac_optarg" ;;
100
 
101
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
102
    ac_prev=datadir ;;
103
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
104
  | --da=*)
105
    datadir="$ac_optarg" ;;
106
 
107
  -disable-* | --disable-*)
108
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
109
    # Reject names that are not valid shell variable names.
110
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112
    fi
113
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114
    eval "enable_${ac_feature}=no" ;;
115
 
116
  -enable-* | --enable-*)
117
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
118
    # Reject names that are not valid shell variable names.
119
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121
    fi
122
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123
    case "$ac_option" in
124
      *=*) ;;
125
      *) ac_optarg=yes ;;
126
    esac
127
    eval "enable_${ac_feature}='$ac_optarg'" ;;
128
 
129
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
130
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
131
  | --exec | --exe | --ex)
132
    ac_prev=exec_prefix ;;
133
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
134
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
135
  | --exec=* | --exe=* | --ex=*)
136
    exec_prefix="$ac_optarg" ;;
137
 
138
  -gas | --gas | --ga | --g)
139
    # Obsolete; use --with-gas.
140
    with_gas=yes ;;
141
 
142
  -help | --help | --hel | --he)
143
    # Omit some internal or obsolete options to make the list less imposing.
144
    # This message is too long to be a string in the A/UX 3.1 sh.
145
    cat << EOF
146
Usage: configure [options] [host]
147
Options: [defaults in brackets after descriptions]
148
Configuration:
149
  --cache-file=FILE       cache test results in FILE
150
  --help                  print this message
151
  --no-create             do not create output files
152
  --quiet, --silent       do not print \`checking...' messages
153
  --version               print the version of autoconf that created configure
154
Directory and file names:
155
  --prefix=PREFIX         install architecture-independent files in PREFIX
156
                          [$ac_default_prefix]
157
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
158
                          [same as prefix]
159
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
160
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
161
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
162
  --datadir=DIR           read-only architecture-independent data in DIR
163
                          [PREFIX/share]
164
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
165
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
166
                          [PREFIX/com]
167
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
168
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
169
  --includedir=DIR        C header files in DIR [PREFIX/include]
170
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
171
  --infodir=DIR           info documentation in DIR [PREFIX/info]
172
  --mandir=DIR            man documentation in DIR [PREFIX/man]
173
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
174
  --program-prefix=PREFIX prepend PREFIX to installed program names
175
  --program-suffix=SUFFIX append SUFFIX to installed program names
176
  --program-transform-name=PROGRAM
177
                          run sed PROGRAM on installed program names
178
EOF
179
    cat << EOF
180
Host type:
181
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
182
  --host=HOST             configure for HOST [guessed]
183
  --target=TARGET         configure for TARGET [TARGET=HOST]
184
Features and packages:
185
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
186
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
187
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
188
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
189
  --x-includes=DIR        X include files are in DIR
190
  --x-libraries=DIR       X library files are in DIR
191
EOF
192
    if test -n "$ac_help"; then
193
      echo "--enable and --with options recognized:$ac_help"
194
    fi
195
    exit 0 ;;
196
 
197
  -host | --host | --hos | --ho)
198
    ac_prev=host ;;
199
  -host=* | --host=* | --hos=* | --ho=*)
200
    host="$ac_optarg" ;;
201
 
202
  -includedir | --includedir | --includedi | --included | --include \
203
  | --includ | --inclu | --incl | --inc)
204
    ac_prev=includedir ;;
205
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206
  | --includ=* | --inclu=* | --incl=* | --inc=*)
207
    includedir="$ac_optarg" ;;
208
 
209
  -infodir | --infodir | --infodi | --infod | --info | --inf)
210
    ac_prev=infodir ;;
211
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212
    infodir="$ac_optarg" ;;
213
 
214
  -libdir | --libdir | --libdi | --libd)
215
    ac_prev=libdir ;;
216
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
217
    libdir="$ac_optarg" ;;
218
 
219
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220
  | --libexe | --libex | --libe)
221
    ac_prev=libexecdir ;;
222
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223
  | --libexe=* | --libex=* | --libe=*)
224
    libexecdir="$ac_optarg" ;;
225
 
226
  -localstatedir | --localstatedir | --localstatedi | --localstated \
227
  | --localstate | --localstat | --localsta | --localst \
228
  | --locals | --local | --loca | --loc | --lo)
229
    ac_prev=localstatedir ;;
230
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233
    localstatedir="$ac_optarg" ;;
234
 
235
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236
    ac_prev=mandir ;;
237
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238
    mandir="$ac_optarg" ;;
239
 
240
  -nfp | --nfp | --nf)
241
    # Obsolete; use --without-fp.
242
    with_fp=no ;;
243
 
244
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245
  | --no-cr | --no-c)
246
    no_create=yes ;;
247
 
248
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
249
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250
    no_recursion=yes ;;
251
 
252
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254
  | --oldin | --oldi | --old | --ol | --o)
255
    ac_prev=oldincludedir ;;
256
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259
    oldincludedir="$ac_optarg" ;;
260
 
261
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262
    ac_prev=prefix ;;
263
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264
    prefix="$ac_optarg" ;;
265
 
266
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
267
  | --program-pre | --program-pr | --program-p)
268
    ac_prev=program_prefix ;;
269
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
270
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271
    program_prefix="$ac_optarg" ;;
272
 
273
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
274
  | --program-suf | --program-su | --program-s)
275
    ac_prev=program_suffix ;;
276
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
277
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278
    program_suffix="$ac_optarg" ;;
279
 
280
  -program-transform-name | --program-transform-name \
281
  | --program-transform-nam | --program-transform-na \
282
  | --program-transform-n | --program-transform- \
283
  | --program-transform | --program-transfor \
284
  | --program-transfo | --program-transf \
285
  | --program-trans | --program-tran \
286
  | --progr-tra | --program-tr | --program-t)
287
    ac_prev=program_transform_name ;;
288
  -program-transform-name=* | --program-transform-name=* \
289
  | --program-transform-nam=* | --program-transform-na=* \
290
  | --program-transform-n=* | --program-transform-=* \
291
  | --program-transform=* | --program-transfor=* \
292
  | --program-transfo=* | --program-transf=* \
293
  | --program-trans=* | --program-tran=* \
294
  | --progr-tra=* | --program-tr=* | --program-t=*)
295
    program_transform_name="$ac_optarg" ;;
296
 
297
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298
  | -silent | --silent | --silen | --sile | --sil)
299
    silent=yes ;;
300
 
301
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
302
    ac_prev=sbindir ;;
303
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304
  | --sbi=* | --sb=*)
305
    sbindir="$ac_optarg" ;;
306
 
307
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
308
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309
  | --sharedst | --shareds | --shared | --share | --shar \
310
  | --sha | --sh)
311
    ac_prev=sharedstatedir ;;
312
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315
  | --sha=* | --sh=*)
316
    sharedstatedir="$ac_optarg" ;;
317
 
318
  -site | --site | --sit)
319
    ac_prev=site ;;
320
  -site=* | --site=* | --sit=*)
321
    site="$ac_optarg" ;;
322
 
323
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
324
    ac_prev=srcdir ;;
325
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
326
    srcdir="$ac_optarg" ;;
327
 
328
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
329
  | --syscon | --sysco | --sysc | --sys | --sy)
330
    ac_prev=sysconfdir ;;
331
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
332
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
333
    sysconfdir="$ac_optarg" ;;
334
 
335
  -target | --target | --targe | --targ | --tar | --ta | --t)
336
    ac_prev=target ;;
337
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
338
    target="$ac_optarg" ;;
339
 
340
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
341
    verbose=yes ;;
342
 
343
  -version | --version | --versio | --versi | --vers)
344
    echo "configure generated by autoconf version 2.12.2"
345
    exit 0 ;;
346
 
347
  -with-* | --with-*)
348
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
349
    # Reject names that are not valid shell variable names.
350
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352
    fi
353
    ac_package=`echo $ac_package| sed 's/-/_/g'`
354
    case "$ac_option" in
355
      *=*) ;;
356
      *) ac_optarg=yes ;;
357
    esac
358
    eval "with_${ac_package}='$ac_optarg'" ;;
359
 
360
  -without-* | --without-*)
361
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
362
    # Reject names that are not valid shell variable names.
363
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365
    fi
366
    ac_package=`echo $ac_package| sed 's/-/_/g'`
367
    eval "with_${ac_package}=no" ;;
368
 
369
  --x)
370
    # Obsolete; use --with-x.
371
    with_x=yes ;;
372
 
373
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
374
  | --x-incl | --x-inc | --x-in | --x-i)
375
    ac_prev=x_includes ;;
376
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
377
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
378
    x_includes="$ac_optarg" ;;
379
 
380
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
381
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
382
    ac_prev=x_libraries ;;
383
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
384
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
385
    x_libraries="$ac_optarg" ;;
386
 
387
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
388
    ;;
389
 
390
  *)
391
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392
      echo "configure: warning: $ac_option: invalid host type" 1>&2
393
    fi
394
    if test "x$nonopt" != xNONE; then
395
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
396
    fi
397
    nonopt="$ac_option"
398
    ;;
399
 
400
  esac
401
done
402
 
403
if test -n "$ac_prev"; then
404
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405
fi
406
 
407
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408
 
409
# File descriptor usage:
410
# 0 standard input
411
# 1 file creation
412
# 2 errors and warnings
413
# 3 some systems may open it to /dev/tty
414
# 4 used on the Kubota Titan
415
# 6 checking for... messages and results
416
# 5 compiler messages saved in config.log
417
if test "$silent" = yes; then
418
  exec 6>/dev/null
419
else
420
  exec 6>&1
421
fi
422
exec 5>./config.log
423
 
424
echo "\
425
This file contains any messages produced by compilers while
426
running configure, to aid debugging if configure makes a mistake.
427
" 1>&5
428
 
429
# Strip out --no-create and --no-recursion so they do not pile up.
430
# Also quote any args containing shell metacharacters.
431
ac_configure_args=
432
for ac_arg
433
do
434
  case "$ac_arg" in
435
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
436
  | --no-cr | --no-c) ;;
437
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
438
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
439
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
441
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442
  esac
443
done
444
 
445
# NLS nuisances.
446
# Only set these to C if already set.  These must not be set unconditionally
447
# because not all systems understand e.g. LANG=C (notably SCO).
448
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
449
# Non-C LC_CTYPE values break the ctype check.
450
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
451
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
452
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
453
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
454
 
455
# confdefs.h avoids OS command line length limits that DEFS can exceed.
456
rm -rf conftest* confdefs.h
457
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
458
echo > confdefs.h
459
 
460
# A filename unique to this package, relative to the directory that
461
# configure is in, which we can look for to find out if srcdir is correct.
462
ac_unique_file=../generic/tixInit.c
463
 
464
# Find the source files, if location was not specified.
465
if test -z "$srcdir"; then
466
  ac_srcdir_defaulted=yes
467
  # Try the directory containing this script, then its parent.
468
  ac_prog=$0
469
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
470
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
471
  srcdir=$ac_confdir
472
  if test ! -r $srcdir/$ac_unique_file; then
473
    srcdir=..
474
  fi
475
else
476
  ac_srcdir_defaulted=no
477
fi
478
if test ! -r $srcdir/$ac_unique_file; then
479
  if test "$ac_srcdir_defaulted" = yes; then
480
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481
  else
482
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483
  fi
484
fi
485
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
486
 
487
# Prefer explicitly selected file to automatically selected ones.
488
if test -z "$CONFIG_SITE"; then
489
  if test "x$prefix" != xNONE; then
490
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
491
  else
492
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493
  fi
494
fi
495
for ac_site_file in $CONFIG_SITE; do
496
  if test -r "$ac_site_file"; then
497
    echo "loading site script $ac_site_file"
498
    . "$ac_site_file"
499
  fi
500
done
501
 
502
if test -r "$cache_file"; then
503
  echo "loading cache $cache_file"
504
  . $cache_file
505
else
506
  echo "creating cache $cache_file"
507
  > $cache_file
508
fi
509
 
510
ac_ext=c
511
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512
ac_cpp='$CPP $CPPFLAGS'
513
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515
cross_compiling=$ac_cv_prog_cc_cross
516
 
517
ac_exeext=
518
ac_objext=o
519
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
520
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
521
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
522
    ac_n= ac_c='
523
' ac_t='        '
524
  else
525
    ac_n=-n ac_c= ac_t=
526
  fi
527
else
528
  ac_n= ac_c='\c' ac_t=
529
fi
530
 
531
 
532
 
533
ac_aux_dir=
534
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
535
  if test -f $ac_dir/install-sh; then
536
    ac_aux_dir=$ac_dir
537
    ac_install_sh="$ac_aux_dir/install-sh -c"
538
    break
539
  elif test -f $ac_dir/install.sh; then
540
    ac_aux_dir=$ac_dir
541
    ac_install_sh="$ac_aux_dir/install.sh -c"
542
    break
543
  fi
544
done
545
if test -z "$ac_aux_dir"; then
546
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
547
fi
548
ac_config_guess=$ac_aux_dir/config.guess
549
ac_config_sub=$ac_aux_dir/config.sub
550
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
551
 
552
# Find a good install program.  We prefer a C program (faster),
553
# so one script is as good as another.  But avoid the broken or
554
# incompatible versions:
555
# SysV /etc/install, /usr/sbin/install
556
# SunOS /usr/etc/install
557
# IRIX /sbin/install
558
# AIX /bin/install
559
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
560
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
561
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
562
# ./install, which can be erroneously created by make from ./install.sh.
563
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
564
echo "configure:565: checking for a BSD compatible install" >&5
565
if test -z "$INSTALL"; then
566
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
567
  echo $ac_n "(cached) $ac_c" 1>&6
568
else
569
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
570
  for ac_dir in $PATH; do
571
    # Account for people who put trailing slashes in PATH elements.
572
    case "$ac_dir/" in
573
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
574
    *)
575
      # OSF1 and SCO ODT 3.0 have their own names for install.
576
      # Don't use installbsd from OSF since it installs stuff as root
577
      # by default.
578
      for ac_prog in ginstall scoinst install; do
579
        if test -f $ac_dir/$ac_prog; then
580
          if test $ac_prog = install &&
581
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
582
            # AIX install.  It has an incompatible calling convention.
583
            :
584
          else
585
            ac_cv_path_install="$ac_dir/$ac_prog -c"
586
            break 2
587
          fi
588
        fi
589
      done
590
      ;;
591
    esac
592
  done
593
  IFS="$ac_save_IFS"
594
 
595
fi
596
  if test "${ac_cv_path_install+set}" = set; then
597
    INSTALL="$ac_cv_path_install"
598
  else
599
    # As a last resort, use the slow shell script.  We don't cache a
600
    # path for INSTALL within a source directory, because that will
601
    # break other packages using the cache if that directory is
602
    # removed, or if the path is relative.
603
    INSTALL="$ac_install_sh"
604
  fi
605
fi
606
echo "$ac_t""$INSTALL" 1>&6
607
 
608
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
609
# It thinks the first close brace ends the variable substitution.
610
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
611
 
612
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
613
 
614
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
615
echo "configure:616: checking whether ${MAKE-make} sets \${MAKE}" >&5
616
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
617
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
618
  echo $ac_n "(cached) $ac_c" 1>&6
619
else
620
  cat > conftestmake <<\EOF
621
all:
622
        @echo 'ac_maketemp="${MAKE}"'
623
EOF
624
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
625
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
626
if test -n "$ac_maketemp"; then
627
  eval ac_cv_prog_make_${ac_make}_set=yes
628
else
629
  eval ac_cv_prog_make_${ac_make}_set=no
630
fi
631
rm -f conftestmake
632
fi
633
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
634
  echo "$ac_t""yes" 1>&6
635
  SET_MAKE=
636
else
637
  echo "$ac_t""no" 1>&6
638
  SET_MAKE="MAKE=${MAKE-make}"
639
fi
640
 
641
 
642
#----------------------------------------------------------------------
643
# We don't want to use any relative path because we need to generate
644
# Makefile's in subdirectories
645
#----------------------------------------------------------------------
646
if test "$INSTALL" = "./install.sh"; then
647
    INSTALL=`pwd`/install.sh
648
fi
649
SRC_DIR=`cd ${srcdir}/..; pwd`
650
 
651
 
652
# Check for Tcl and Tk.
653
 
654
dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
655
if test x"${no_tcl}" = x ; then
656
      no_tcl=true
657
    # Check whether --with-tclconfig or --without-tclconfig was given.
658
if test "${with_tclconfig+set}" = set; then
659
  withval="$with_tclconfig"
660
  with_tclconfig=${withval}
661
fi
662
 
663
    echo $ac_n "checking for Tcl configuration script""... $ac_c" 1>&6
664
echo "configure:665: checking for Tcl configuration script" >&5
665
    if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
666
  echo $ac_n "(cached) $ac_c" 1>&6
667
else
668
 
669
 
670
        if test x"${with_tclconfig}" != x ; then
671
        if test -f "${with_tclconfig}/tclConfig.sh" ; then
672
            ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
673
        else
674
            { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
675
        fi
676
    fi
677
 
678
        if test x"${ac_cv_c_tclconfig}" = x ; then
679
        for i in $dirlist; do
680
            if test -f $srcdir/$i/unix/tclConfig.sh ; then
681
                ac_cv_c_tclconfig=`(cd $srcdir/$i/unix; pwd)`
682
                break
683
            fi
684
        done
685
    fi
686
        if test x"${ac_cv_c_tclconfig}" = x ; then
687
                for i in $dirlist; do
688
            if test -n "`ls -dr $i/tcl* 2>/dev/null`" ; then
689
                tclconfpath=$i
690
                break
691
            fi
692
        done
693
 
694
                        for i in `ls -dr $tclconfpath/tcl* 2>/dev/null ` ; do
695
            if test -f $i/unix/tclConfig.sh ; then
696
                ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
697
                break
698
            fi
699
        done
700
    fi
701
 
702
            if test x"${ac_cv_c_tclconfig}" = x ; then
703
                ccpath=`which ${CC}  | sed -e 's:/bin/.*::'`/lib
704
        if test -f $ccpath/tclConfig.sh; then
705
            ac_cv_c_tclconfig=$ccpath
706
        fi
707
    fi
708
 
709
fi
710
 
711
    if test x"${ac_cv_c_tclconfig}" = x ; then
712
        TCLCONFIG=""
713
        echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
714
    else
715
        no_tcl=""
716
        TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
717
        echo "$ac_t""${TCLCONFIG}" 1>&6
718
     fi
719
fi
720
 
721
 
722
 
723
    . $TCLCONFIG
724
 
725
 
726
 
727
 
728
 
729
 
730
 
731
 
732
 
733
 
734
 
735
 
736
 
737
 
738
 
739
 
740
 
741
dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
742
if test x"${no_tk}" = x ; then
743
      no_tk=true
744
    # Check whether --with-tkconfig or --without-tkconfig was given.
745
if test "${with_tkconfig+set}" = set; then
746
  withval="$with_tkconfig"
747
  with_tkconfig=${withval}
748
fi
749
 
750
    echo $ac_n "checking for Tk configuration script""... $ac_c" 1>&6
751
echo "configure:752: checking for Tk configuration script" >&5
752
    if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
753
  echo $ac_n "(cached) $ac_c" 1>&6
754
else
755
 
756
 
757
        if test x"${with_tkconfig}" != x ; then
758
        if test -f "${with_tkconfig}/tkConfig.sh" ; then
759
            ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
760
        else
761
            { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
762
        fi
763
    fi
764
 
765
        if test x"${ac_cv_c_tkconfig}" = x ; then
766
        for i in $dirlist; do
767
            if test -f $srcdir/$i/unix/tkConfig.sh ; then
768
                ac_cv_c_tkconfig=`(cd $srcdir/$i/unix; pwd)`
769
                break
770
            fi
771
        done
772
    fi
773
        if test x"${ac_cv_c_tkconfig}" = x ; then
774
                for i in $dirlist; do
775
            if test -n "`ls -dr $i/tk* 2>/dev/null`" ; then
776
                tkconfpath=$i
777
                break
778
            fi
779
        done
780
 
781
                        for i in `ls -dr $tkconfpath/tk* 2>/dev/null ` ; do
782
            if test -f $i/unix/tkConfig.sh ; then
783
                ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
784
                break
785
            fi
786
        done
787
    fi
788
 
789
            if test x"${ac_cv_c_tkconfig}" = x ; then
790
                ccpath=`which ${CC}  | sed -e 's:/bin/.*::'`/lib
791
        if test -f $ccpath/tkConfig.sh; then
792
            ac_cv_c_tkconfig=$ccpath
793
        fi
794
    fi
795
 
796
fi
797
 
798
    if test x"${ac_cv_c_tkconfig}" = x ; then
799
        TKCONFIG=""
800
        echo "configure: warning: Can't find Tk configuration definitions" 1>&2
801
    else
802
        no_tk=""
803
        TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
804
        echo "$ac_t""${TKCONFIG}" 1>&6
805
     fi
806
fi
807
 
808
 
809
 
810
    if test -f "$TKCONFIG" ; then
811
      . $TKCONFIG
812
    fi
813
 
814
 
815
 
816
 
817
 
818
 
819
 
820
 
821
 
822
 
823
 
824
 
825
 
826
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
827
echo "configure:828: checking how to run the C preprocessor" >&5
828
# On Suns, sometimes $CPP names a directory.
829
if test -n "$CPP" && test -d "$CPP"; then
830
  CPP=
831
fi
832
if test -z "$CPP"; then
833
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
834
  echo $ac_n "(cached) $ac_c" 1>&6
835
else
836
    # This must be in double quotes, not single quotes, because CPP may get
837
  # substituted into the Makefile and "${CC-cc}" will confuse make.
838
  CPP="${CC-cc} -E"
839
  # On the NeXT, cc -E runs the code through the compiler's parser,
840
  # not just through cpp.
841
  cat > conftest.$ac_ext <
842
#line 843 "configure"
843
#include "confdefs.h"
844
#include 
845
Syntax Error
846
EOF
847
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
848
{ (eval echo configure:849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
849
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
850
if test -z "$ac_err"; then
851
  :
852
else
853
  echo "$ac_err" >&5
854
  echo "configure: failed program was:" >&5
855
  cat conftest.$ac_ext >&5
856
  rm -rf conftest*
857
  CPP="${CC-cc} -E -traditional-cpp"
858
  cat > conftest.$ac_ext <
859
#line 860 "configure"
860
#include "confdefs.h"
861
#include 
862
Syntax Error
863
EOF
864
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
865
{ (eval echo configure:866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
866
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
867
if test -z "$ac_err"; then
868
  :
869
else
870
  echo "$ac_err" >&5
871
  echo "configure: failed program was:" >&5
872
  cat conftest.$ac_ext >&5
873
  rm -rf conftest*
874
  CPP="${CC-cc} -nologo -E"
875
  cat > conftest.$ac_ext <
876
#line 877 "configure"
877
#include "confdefs.h"
878
#include 
879
Syntax Error
880
EOF
881
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
882
{ (eval echo configure:883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
883
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
884
if test -z "$ac_err"; then
885
  :
886
else
887
  echo "$ac_err" >&5
888
  echo "configure: failed program was:" >&5
889
  cat conftest.$ac_ext >&5
890
  rm -rf conftest*
891
  CPP=/lib/cpp
892
fi
893
rm -f conftest*
894
fi
895
rm -f conftest*
896
fi
897
rm -f conftest*
898
  ac_cv_prog_CPP="$CPP"
899
fi
900
  CPP="$ac_cv_prog_CPP"
901
else
902
  ac_cv_prog_CPP="$CPP"
903
fi
904
echo "$ac_t""$CPP" 1>&6
905
 
906
 
907
dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
908
no_tcl=true
909
echo $ac_n "checking for Tcl headers in the source tree""... $ac_c" 1>&6
910
echo "configure:911: checking for Tcl headers in the source tree" >&5
911
# Check whether --with-tclinclude or --without-tclinclude was given.
912
if test "${with_tclinclude+set}" = set; then
913
  withval="$with_tclinclude"
914
  with_tclinclude=${withval}
915
fi
916
 
917
if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
918
  echo $ac_n "(cached) $ac_c" 1>&6
919
else
920
 
921
if test x"${with_tclinclude}" != x ; then
922
  if test -f ${with_tclinclude}/tcl.h ; then
923
    ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
924
  elif test -f ${with_tclinclude}/generic/tcl.h ; then
925
    ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
926
  else
927
    { echo "configure: error: ${with_tclinclude} directory doesn't contain headers" 1>&2; exit 1; }
928
  fi
929
fi
930
 
931
if test x"${ac_cv_c_tclconfig}" != x ; then
932
  for i in $dirlist; do
933
    if test -f $ac_cv_c_tclconfig/$i/generic/tcl.h ; then
934
      ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/$i/generic; pwd)`
935
      break
936
    fi
937
  done
938
fi
939
 
940
if test x"${ac_cv_c_tclh}" = x ; then
941
        for i in $dirlist; do
942
        if test -n "`ls -dr $srcdir/$i/tcl* 2>/dev/null`" ; then
943
            tclpath=$srcdir/$i
944
            break
945
        fi
946
    done
947
 
948
            for i in `ls -dr $tclpath/tcl* 2>/dev/null ` ; do
949
        if test -f $i/generic/tcl.h ; then
950
          ac_cv_c_tclh=`(cd $i/generic; pwd)`
951
          break
952
        fi
953
    done
954
fi
955
 
956
if test x"${ac_cv_c_tclh}" = x ; then
957
        ccpath=`which ${CC}  | sed -e 's:/bin/.*::'`/include
958
    if test -f $ccpath/tcl.h; then
959
        ac_cv_c_tclh=$ccpath
960
    fi
961
fi
962
 
963
if test x"${ac_cv_c_tclh}" = x ; then
964
   echo "$ac_t""none" 1>&6
965
   ac_safe=`echo "tcl.h" | sed 'y%./+-%__p_%'`
966
echo $ac_n "checking for tcl.h""... $ac_c" 1>&6
967
echo "configure:968: checking for tcl.h" >&5
968
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
969
  echo $ac_n "(cached) $ac_c" 1>&6
970
else
971
  cat > conftest.$ac_ext <
972
#line 973 "configure"
973
#include "confdefs.h"
974
#include 
975
EOF
976
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
977
{ (eval echo configure:978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
978
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
979
if test -z "$ac_err"; then
980
  rm -rf conftest*
981
  eval "ac_cv_header_$ac_safe=yes"
982
else
983
  echo "$ac_err" >&5
984
  echo "configure: failed program was:" >&5
985
  cat conftest.$ac_ext >&5
986
  rm -rf conftest*
987
  eval "ac_cv_header_$ac_safe=no"
988
fi
989
rm -f conftest*
990
fi
991
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
992
  echo "$ac_t""yes" 1>&6
993
  ac_cv_c_tclh=installed
994
else
995
  echo "$ac_t""no" 1>&6
996
ac_cv_c_tclh=""
997
fi
998
 
999
else
1000
   echo "$ac_t""${ac_cv_c_tclh}" 1>&6
1001
fi
1002
 
1003
fi
1004
 
1005
  TCLHDIR=""
1006
if test x"${ac_cv_c_tclh}" = x ; then
1007
    { echo "configure: error: Can't find any Tcl headers" 1>&2; exit 1; }
1008
fi
1009
if test x"${ac_cv_c_tclh}" != x ; then
1010
    no_tcl=""
1011
    if test x"${ac_cv_c_tclh}" != x"installed" ; then
1012
        if test x"${CC}" = xcl ; then
1013
            tmp="`cygpath --windows ${ac_cv_c_tclh}`"
1014
            ac_cv_c_tclh="`echo $tmp | sed -e s#\\\\\\\\#/#g`"
1015
        fi
1016
        echo "$ac_t""${ac_cv_c_tclh}" 1>&6
1017
        TCLHDIR="-I${ac_cv_c_tclh}"
1018
    fi
1019
fi
1020
 
1021
 
1022
 
1023
# FIXME: consider only doing this if --with-x given.
1024
 
1025
#
1026
# Ok, lets find the tk source trees so we can use the headers
1027
# If the directory (presumably symlink) named "tk" exists, use that one
1028
# in preference to any others.  Same logic is used when choosing library
1029
# and again with Tcl. The search order is the best place to look first, then in
1030
# decreasing significance. The loop breaks if the trigger file is found.
1031
# Note the gross little conversion here of srcdir by cd'ing to the found
1032
# directory. This converts the path from a relative to an absolute, so
1033
# recursive cache variables for the path will work right. We check all
1034
# the possible paths in one loop rather than many seperate loops to speed
1035
# things up.
1036
# the alternative search directory is involked by --with-tkinclude
1037
#
1038
dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
1039
no_tk=true
1040
echo $ac_n "checking for Tk headers in the source tree""... $ac_c" 1>&6
1041
echo "configure:1042: checking for Tk headers in the source tree" >&5
1042
# Check whether --with-tkinclude or --without-tkinclude was given.
1043
if test "${with_tkinclude+set}" = set; then
1044
  withval="$with_tkinclude"
1045
  with_tkinclude=${withval}
1046
fi
1047
 
1048
if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
1049
  echo $ac_n "(cached) $ac_c" 1>&6
1050
else
1051
 
1052
if test x"${with_tkinclude}" != x ; then
1053
  if test -f ${with_tkinclude}/tk.h ; then
1054
    ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
1055
  elif test -f ${with_tkinclude}/generic/tk.h ; then
1056
    ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
1057
  else
1058
    { echo "configure: error: ${with_tkinclude} directory doesn't contain headers" 1>&2; exit 1; }
1059
  fi
1060
fi
1061
 
1062
if test x"${ac_cv_c_tkconfig}" != x ; then
1063
  for i in $dirlist; do
1064
    if test -f $ac_cv_c_tkconfig/$i/generic/tk.h ; then
1065
      ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/$i/generic; pwd)`
1066
      break
1067
    fi
1068
  done
1069
fi
1070
 
1071
if test x"${ac_cv_c_tkh}" = x ; then
1072
        for i in $dirlist; do
1073
        if test -n "`ls -dr $srcdir/$i/tk* 2>/dev/null`" ; then
1074
            tkpath=$srcdir/$i
1075
            break
1076
        fi
1077
    done
1078
 
1079
            for i in `ls -dr $tkpath/tk* 2>/dev/null ` ; do
1080
        if test -f $i/generic/tk.h ; then
1081
          ac_cv_c_tkh=`(cd $i/generic; pwd)`
1082
          break
1083
        fi
1084
    done
1085
fi
1086
 
1087
if test x"${ac_cv_c_tkh}" = x ; then
1088
    echo "$ac_t""none" 1>&6
1089
            ccpath=`which ${CC}  | sed -e 's:/bin/.*::'`/include
1090
    if test -f $ccpath/tk.h; then
1091
        ac_cv_c_tkh=$ccpath
1092
    fi
1093
else
1094
   echo "$ac_t""${ac_cv_c_tkh}" 1>&6
1095
fi
1096
 
1097
fi
1098
 
1099
  TKHDIR=""
1100
if test x"${ac_cv_c_tkh}" = x ; then
1101
    { echo "configure: error: Can't find any Tk headers" 1>&2; exit 1; }
1102
fi
1103
if test x"${ac_cv_c_tkh}" != x ; then
1104
    no_tk=""
1105
    if test x"${ac_cv_c_tkh}" != x"installed" ; then
1106
        if test x"${CC}" = xcl ; then
1107
            tmp="`cygpath --windows ${ac_cv_c_tkh}`"
1108
            ac_cv_c_tkh="`echo $tmp | sed -e s#\\\\\\\\#/#g`"
1109
        fi
1110
        echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
1111
        TKHDIR="-I${ac_cv_c_tkh}"
1112
    fi
1113
fi
1114
 
1115
 
1116
 
1117
 
1118
SUBDIR=tk${TK_VERSION}
1119
 
1120
subdirs="${SUBDIR}"
1121
 
1122
 
1123
TIX_VERSION=4.1
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 | grep ac_space` 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.2"
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
ac_given_INSTALL="$INSTALL"
1237
 
1238
trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1239
EOF
1240
cat >> $CONFIG_STATUS <
1241
 
1242
# Protect against being on the right side of a sed subst in config.status.
1243
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1244
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1245
$ac_vpsub
1246
$extrasub
1247
s%@SHELL@%$SHELL%g
1248
s%@CFLAGS@%$CFLAGS%g
1249
s%@CPPFLAGS@%$CPPFLAGS%g
1250
s%@CXXFLAGS@%$CXXFLAGS%g
1251
s%@DEFS@%$DEFS%g
1252
s%@LDFLAGS@%$LDFLAGS%g
1253
s%@LIBS@%$LIBS%g
1254
s%@exec_prefix@%$exec_prefix%g
1255
s%@prefix@%$prefix%g
1256
s%@program_transform_name@%$program_transform_name%g
1257
s%@bindir@%$bindir%g
1258
s%@sbindir@%$sbindir%g
1259
s%@libexecdir@%$libexecdir%g
1260
s%@datadir@%$datadir%g
1261
s%@sysconfdir@%$sysconfdir%g
1262
s%@sharedstatedir@%$sharedstatedir%g
1263
s%@localstatedir@%$localstatedir%g
1264
s%@libdir@%$libdir%g
1265
s%@includedir@%$includedir%g
1266
s%@oldincludedir@%$oldincludedir%g
1267
s%@infodir@%$infodir%g
1268
s%@mandir@%$mandir%g
1269
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1270
s%@INSTALL_DATA@%$INSTALL_DATA%g
1271
s%@SET_MAKE@%$SET_MAKE%g
1272
s%@SRC_DIR@%$SRC_DIR%g
1273
s%@TCLCONFIG@%$TCLCONFIG%g
1274
s%@TCL_DEFS@%$TCL_DEFS%g
1275
s%@TCL_LIBS@%$TCL_LIBS%g
1276
s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
1277
s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
1278
s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
1279
s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
1280
s%@TCL_RANLIB@%$TCL_RANLIB%g
1281
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
1282
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
1283
s%@TKCONFIG@%$TKCONFIG%g
1284
s%@TK_VERSION@%$TK_VERSION%g
1285
s%@TK_DEFS@%$TK_DEFS%g
1286
s%@TK_LIBS@%$TK_LIBS%g
1287
s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
1288
s%@TK_XINCLUDES@%$TK_XINCLUDES%g
1289
s%@TK_XLIBSW@%$TK_XLIBSW%g
1290
s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
1291
s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
1292
s%@CPP@%$CPP%g
1293
s%@TCLHDIR@%$TCLHDIR%g
1294
s%@TKHDIR@%$TKHDIR%g
1295
s%@SUBDIR@%$SUBDIR%g
1296
s%@subdirs@%$subdirs%g
1297
s%@TIX_VERSION@%$TIX_VERSION%g
1298
 
1299
CEOF
1300
EOF
1301
 
1302
cat >> $CONFIG_STATUS <<\EOF
1303
 
1304
# Split the substitutions into bite-sized pieces for seds with
1305
# small command number limits, like on Digital OSF/1 and HP-UX.
1306
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1307
ac_file=1 # Number of current file.
1308
ac_beg=1 # First line for current file.
1309
ac_end=$ac_max_sed_cmds # Line after last line for current file.
1310
ac_more_lines=:
1311
ac_sed_cmds=""
1312
while $ac_more_lines; do
1313
  if test $ac_beg -gt 1; then
1314
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1315
  else
1316
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1317
  fi
1318
  if test ! -s conftest.s$ac_file; then
1319
    ac_more_lines=false
1320
    rm -f conftest.s$ac_file
1321
  else
1322
    if test -z "$ac_sed_cmds"; then
1323
      ac_sed_cmds="sed -f conftest.s$ac_file"
1324
    else
1325
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1326
    fi
1327
    ac_file=`expr $ac_file + 1`
1328
    ac_beg=$ac_end
1329
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1330
  fi
1331
done
1332
if test -z "$ac_sed_cmds"; then
1333
  ac_sed_cmds=cat
1334
fi
1335
EOF
1336
 
1337
cat >> $CONFIG_STATUS <
1338
 
1339
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1340
EOF
1341
cat >> $CONFIG_STATUS <<\EOF
1342
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1343
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1344
  case "$ac_file" in
1345
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1346
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1347
  *) ac_file_in="${ac_file}.in" ;;
1348
  esac
1349
 
1350
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1351
 
1352
  # Remove last slash and all that follows it.  Not all systems have dirname.
1353
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1354
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1355
    # The file is in a subdirectory.
1356
    test ! -d "$ac_dir" && mkdir "$ac_dir"
1357
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1358
    # A "../" for each directory in $ac_dir_suffix.
1359
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1360
  else
1361
    ac_dir_suffix= ac_dots=
1362
  fi
1363
 
1364
  case "$ac_given_srcdir" in
1365
  .)  srcdir=.
1366
      if test -z "$ac_dots"; then top_srcdir=.
1367
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1368
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1369
  *) # Relative path.
1370
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1371
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1372
  esac
1373
 
1374
  case "$ac_given_INSTALL" in
1375
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1376
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1377
  esac
1378
 
1379
  echo creating "$ac_file"
1380
  rm -f "$ac_file"
1381
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1382
  case "$ac_file" in
1383
  *Makefile*) ac_comsub="1i\\
1384
# $configure_input" ;;
1385
  *) ac_comsub= ;;
1386
  esac
1387
 
1388
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1389
  sed -e "$ac_comsub
1390
s%@configure_input@%$configure_input%g
1391
s%@srcdir@%$srcdir%g
1392
s%@top_srcdir@%$top_srcdir%g
1393
s%@INSTALL@%$INSTALL%g
1394
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1395
fi; done
1396
rm -f conftest.s*
1397
 
1398
EOF
1399
cat >> $CONFIG_STATUS <
1400
 
1401
EOF
1402
cat >> $CONFIG_STATUS <<\EOF
1403
 
1404
exit 0
1405
EOF
1406
chmod +x $CONFIG_STATUS
1407
rm -fr confdefs* $ac_clean_files
1408
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1409
 
1410
if test "$no_recursion" != yes; then
1411
 
1412
  # Remove --cache-file and --srcdir arguments so they do not pile up.
1413
  ac_sub_configure_args=
1414
  ac_prev=
1415
  for ac_arg in $ac_configure_args; do
1416
    if test -n "$ac_prev"; then
1417
      ac_prev=
1418
      continue
1419
    fi
1420
    case "$ac_arg" in
1421
    -cache-file | --cache-file | --cache-fil | --cache-fi \
1422
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1423
      ac_prev=cache_file ;;
1424
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1425
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1426
      ;;
1427
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1428
      ac_prev=srcdir ;;
1429
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1430
      ;;
1431
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1432
    esac
1433
  done
1434
 
1435
  for ac_config_dir in ${SUBDIR}; do
1436
 
1437
    # Do not complain, so a configure script can configure whichever
1438
    # parts of a large source tree are present.
1439
    if test ! -d $srcdir/$ac_config_dir; then
1440
      continue
1441
    fi
1442
 
1443
    echo configuring in $ac_config_dir
1444
 
1445
    case "$srcdir" in
1446
    .) ;;
1447
    *)
1448
      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1449
      else
1450
        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1451
      fi
1452
      ;;
1453
    esac
1454
 
1455
    ac_popdir=`pwd`
1456
    cd $ac_config_dir
1457
 
1458
      # A "../" for each directory in /$ac_config_dir.
1459
      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1460
 
1461
    case "$srcdir" in
1462
    .) # No --srcdir option.  We are building in place.
1463
      ac_sub_srcdir=$srcdir ;;
1464
    /*) # Absolute path.
1465
      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1466
    *) # Relative path.
1467
      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1468
    esac
1469
 
1470
    # Check for guested configure; otherwise get Cygnus style configure.
1471
    if test -f $ac_sub_srcdir/configure; then
1472
      ac_sub_configure=$ac_sub_srcdir/configure
1473
    elif test -f $ac_sub_srcdir/configure.in; then
1474
      ac_sub_configure=$ac_configure
1475
    else
1476
      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1477
      ac_sub_configure=
1478
    fi
1479
 
1480
    # The recursion is here.
1481
    if test -n "$ac_sub_configure"; then
1482
 
1483
      # Make the cache file name correct relative to the subdirectory.
1484
      case "$cache_file" in
1485
      /*) ac_sub_cache_file=$cache_file ;;
1486
      *) # Relative path.
1487
        ac_sub_cache_file="$ac_dots$cache_file" ;;
1488
      esac
1489
  case "$ac_given_INSTALL" in
1490
        [/$]*) INSTALL="$ac_given_INSTALL" ;;
1491
        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1492
        esac
1493
 
1494
      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1495
      # The eval makes quoting arguments work.
1496
      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1497
      then :
1498
      else
1499
        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1500
      fi
1501
    fi
1502
 
1503
    cd $ac_popdir
1504
  done
1505
fi
1506
 

powered by: WebSVN 2.1.0

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