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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tk/] [unix/] [configure] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
#! /bin/sh
2
 
3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated automatically using autoconf version 2.13
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6
#
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
 
10
# Defaults:
11
ac_help=
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
14
ac_help="$ac_help
15
  --enable-gcc            allow use of gcc if available"
16
ac_help="$ac_help
17
  --with-tcl=DIR          use Tcl 8.0 binaries from DIR"
18
ac_help="$ac_help
19
  --with-x                use the X Window System"
20
ac_help="$ac_help
21
  --enable-shared         build libtk as a shared library"
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
sitefile=
40
srcdir=
41
target=NONE
42
verbose=
43
x_includes=NONE
44
x_libraries=NONE
45
bindir='${exec_prefix}/bin'
46
sbindir='${exec_prefix}/sbin'
47
libexecdir='${exec_prefix}/libexec'
48
datadir='${prefix}/share'
49
sysconfdir='${prefix}/etc'
50
sharedstatedir='${prefix}/com'
51
localstatedir='${prefix}/var'
52
libdir='${exec_prefix}/lib'
53
includedir='${prefix}/include'
54
oldincludedir='/usr/include'
55
infodir='${prefix}/info'
56
mandir='${prefix}/man'
57
 
58
# Initialize some other variables.
59
subdirs=
60
MFLAGS= MAKEFLAGS=
61
SHELL=${CONFIG_SHELL-/bin/sh}
62
# Maximum number of lines to put in a shell here document.
63
ac_max_here_lines=12
64
 
65
ac_prev=
66
for ac_option
67
do
68
 
69
  # If the previous option needs an argument, assign it.
70
  if test -n "$ac_prev"; then
71
    eval "$ac_prev=\$ac_option"
72
    ac_prev=
73
    continue
74
  fi
75
 
76
  case "$ac_option" in
77
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78
  *) ac_optarg= ;;
79
  esac
80
 
81
  # Accept the important Cygnus configure options, so we can diagnose typos.
82
 
83
  case "$ac_option" in
84
 
85
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
86
    ac_prev=bindir ;;
87
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88
    bindir="$ac_optarg" ;;
89
 
90
  -build | --build | --buil | --bui | --bu)
91
    ac_prev=build ;;
92
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
93
    build="$ac_optarg" ;;
94
 
95
  -cache-file | --cache-file | --cache-fil | --cache-fi \
96
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
97
    ac_prev=cache_file ;;
98
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
99
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
100
    cache_file="$ac_optarg" ;;
101
 
102
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
103
    ac_prev=datadir ;;
104
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
105
  | --da=*)
106
    datadir="$ac_optarg" ;;
107
 
108
  -disable-* | --disable-*)
109
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
110
    # Reject names that are not valid shell variable names.
111
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
112
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113
    fi
114
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115
    eval "enable_${ac_feature}=no" ;;
116
 
117
  -enable-* | --enable-*)
118
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
119
    # Reject names that are not valid shell variable names.
120
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
121
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122
    fi
123
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124
    case "$ac_option" in
125
      *=*) ;;
126
      *) ac_optarg=yes ;;
127
    esac
128
    eval "enable_${ac_feature}='$ac_optarg'" ;;
129
 
130
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
131
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
132
  | --exec | --exe | --ex)
133
    ac_prev=exec_prefix ;;
134
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
135
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
136
  | --exec=* | --exe=* | --ex=*)
137
    exec_prefix="$ac_optarg" ;;
138
 
139
  -gas | --gas | --ga | --g)
140
    # Obsolete; use --with-gas.
141
    with_gas=yes ;;
142
 
143
  -help | --help | --hel | --he)
144
    # Omit some internal or obsolete options to make the list less imposing.
145
    # This message is too long to be a string in the A/UX 3.1 sh.
146
    cat << EOF
147
Usage: configure [options] [host]
148
Options: [defaults in brackets after descriptions]
149
Configuration:
150
  --cache-file=FILE       cache test results in FILE
151
  --help                  print this message
152
  --no-create             do not create output files
153
  --quiet, --silent       do not print \`checking...' messages
154
  --site-file=FILE        use FILE as the site file
155
  --version               print the version of autoconf that created configure
156
Directory and file names:
157
  --prefix=PREFIX         install architecture-independent files in PREFIX
158
                          [$ac_default_prefix]
159
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
160
                          [same as prefix]
161
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
162
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
163
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
164
  --datadir=DIR           read-only architecture-independent data in DIR
165
                          [PREFIX/share]
166
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
167
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
168
                          [PREFIX/com]
169
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
170
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
171
  --includedir=DIR        C header files in DIR [PREFIX/include]
172
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
173
  --infodir=DIR           info documentation in DIR [PREFIX/info]
174
  --mandir=DIR            man documentation in DIR [PREFIX/man]
175
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
176
  --program-prefix=PREFIX prepend PREFIX to installed program names
177
  --program-suffix=SUFFIX append SUFFIX to installed program names
178
  --program-transform-name=PROGRAM
179
                          run sed PROGRAM on installed program names
180
EOF
181
    cat << EOF
182
Host type:
183
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
184
  --host=HOST             configure for HOST [guessed]
185
  --target=TARGET         configure for TARGET [TARGET=HOST]
186
Features and packages:
187
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
188
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
189
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
190
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
191
  --x-includes=DIR        X include files are in DIR
192
  --x-libraries=DIR       X library files are in DIR
193
EOF
194
    if test -n "$ac_help"; then
195
      echo "--enable and --with options recognized:$ac_help"
196
    fi
197
    exit 0 ;;
198
 
199
  -host | --host | --hos | --ho)
200
    ac_prev=host ;;
201
  -host=* | --host=* | --hos=* | --ho=*)
202
    host="$ac_optarg" ;;
203
 
204
  -includedir | --includedir | --includedi | --included | --include \
205
  | --includ | --inclu | --incl | --inc)
206
    ac_prev=includedir ;;
207
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208
  | --includ=* | --inclu=* | --incl=* | --inc=*)
209
    includedir="$ac_optarg" ;;
210
 
211
  -infodir | --infodir | --infodi | --infod | --info | --inf)
212
    ac_prev=infodir ;;
213
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214
    infodir="$ac_optarg" ;;
215
 
216
  -libdir | --libdir | --libdi | --libd)
217
    ac_prev=libdir ;;
218
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
219
    libdir="$ac_optarg" ;;
220
 
221
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222
  | --libexe | --libex | --libe)
223
    ac_prev=libexecdir ;;
224
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225
  | --libexe=* | --libex=* | --libe=*)
226
    libexecdir="$ac_optarg" ;;
227
 
228
  -localstatedir | --localstatedir | --localstatedi | --localstated \
229
  | --localstate | --localstat | --localsta | --localst \
230
  | --locals | --local | --loca | --loc | --lo)
231
    ac_prev=localstatedir ;;
232
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235
    localstatedir="$ac_optarg" ;;
236
 
237
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
238
    ac_prev=mandir ;;
239
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240
    mandir="$ac_optarg" ;;
241
 
242
  -nfp | --nfp | --nf)
243
    # Obsolete; use --without-fp.
244
    with_fp=no ;;
245
 
246
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
247
  | --no-cr | --no-c)
248
    no_create=yes ;;
249
 
250
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
252
    no_recursion=yes ;;
253
 
254
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256
  | --oldin | --oldi | --old | --ol | --o)
257
    ac_prev=oldincludedir ;;
258
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261
    oldincludedir="$ac_optarg" ;;
262
 
263
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
264
    ac_prev=prefix ;;
265
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266
    prefix="$ac_optarg" ;;
267
 
268
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
269
  | --program-pre | --program-pr | --program-p)
270
    ac_prev=program_prefix ;;
271
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
272
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273
    program_prefix="$ac_optarg" ;;
274
 
275
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
276
  | --program-suf | --program-su | --program-s)
277
    ac_prev=program_suffix ;;
278
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
279
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280
    program_suffix="$ac_optarg" ;;
281
 
282
  -program-transform-name | --program-transform-name \
283
  | --program-transform-nam | --program-transform-na \
284
  | --program-transform-n | --program-transform- \
285
  | --program-transform | --program-transfor \
286
  | --program-transfo | --program-transf \
287
  | --program-trans | --program-tran \
288
  | --progr-tra | --program-tr | --program-t)
289
    ac_prev=program_transform_name ;;
290
  -program-transform-name=* | --program-transform-name=* \
291
  | --program-transform-nam=* | --program-transform-na=* \
292
  | --program-transform-n=* | --program-transform-=* \
293
  | --program-transform=* | --program-transfor=* \
294
  | --program-transfo=* | --program-transf=* \
295
  | --program-trans=* | --program-tran=* \
296
  | --progr-tra=* | --program-tr=* | --program-t=*)
297
    program_transform_name="$ac_optarg" ;;
298
 
299
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300
  | -silent | --silent | --silen | --sile | --sil)
301
    silent=yes ;;
302
 
303
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
304
    ac_prev=sbindir ;;
305
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
306
  | --sbi=* | --sb=*)
307
    sbindir="$ac_optarg" ;;
308
 
309
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
310
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311
  | --sharedst | --shareds | --shared | --share | --shar \
312
  | --sha | --sh)
313
    ac_prev=sharedstatedir ;;
314
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
317
  | --sha=* | --sh=*)
318
    sharedstatedir="$ac_optarg" ;;
319
 
320
  -site | --site | --sit)
321
    ac_prev=site ;;
322
  -site=* | --site=* | --sit=*)
323
    site="$ac_optarg" ;;
324
 
325
  -site-file | --site-file | --site-fil | --site-fi | --site-f)
326
    ac_prev=sitefile ;;
327
  -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
328
    sitefile="$ac_optarg" ;;
329
 
330
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331
    ac_prev=srcdir ;;
332
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333
    srcdir="$ac_optarg" ;;
334
 
335
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336
  | --syscon | --sysco | --sysc | --sys | --sy)
337
    ac_prev=sysconfdir ;;
338
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340
    sysconfdir="$ac_optarg" ;;
341
 
342
  -target | --target | --targe | --targ | --tar | --ta | --t)
343
    ac_prev=target ;;
344
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345
    target="$ac_optarg" ;;
346
 
347
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
348
    verbose=yes ;;
349
 
350
  -version | --version | --versio | --versi | --vers)
351
    echo "configure generated by autoconf version 2.13"
352
    exit 0 ;;
353
 
354
  -with-* | --with-*)
355
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356
    # Reject names that are not valid shell variable names.
357
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359
    fi
360
    ac_package=`echo $ac_package| sed 's/-/_/g'`
361
    case "$ac_option" in
362
      *=*) ;;
363
      *) ac_optarg=yes ;;
364
    esac
365
    eval "with_${ac_package}='$ac_optarg'" ;;
366
 
367
  -without-* | --without-*)
368
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369
    # Reject names that are not valid shell variable names.
370
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372
    fi
373
    ac_package=`echo $ac_package| sed 's/-/_/g'`
374
    eval "with_${ac_package}=no" ;;
375
 
376
  --x)
377
    # Obsolete; use --with-x.
378
    with_x=yes ;;
379
 
380
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381
  | --x-incl | --x-inc | --x-in | --x-i)
382
    ac_prev=x_includes ;;
383
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385
    x_includes="$ac_optarg" ;;
386
 
387
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
388
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389
    ac_prev=x_libraries ;;
390
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392
    x_libraries="$ac_optarg" ;;
393
 
394
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395
    ;;
396
 
397
  *)
398
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399
      echo "configure: warning: $ac_option: invalid host type" 1>&2
400
    fi
401
    if test "x$nonopt" != xNONE; then
402
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403
    fi
404
    nonopt="$ac_option"
405
    ;;
406
 
407
  esac
408
done
409
 
410
if test -n "$ac_prev"; then
411
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412
fi
413
 
414
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415
 
416
# File descriptor usage:
417
# 0 standard input
418
# 1 file creation
419
# 2 errors and warnings
420
# 3 some systems may open it to /dev/tty
421
# 4 used on the Kubota Titan
422
# 6 checking for... messages and results
423
# 5 compiler messages saved in config.log
424
if test "$silent" = yes; then
425
  exec 6>/dev/null
426
else
427
  exec 6>&1
428
fi
429
exec 5>./config.log
430
 
431
echo "\
432
This file contains any messages produced by compilers while
433
running configure, to aid debugging if configure makes a mistake.
434
" 1>&5
435
 
436
# Strip out --no-create and --no-recursion so they do not pile up.
437
# Also quote any args containing shell metacharacters.
438
ac_configure_args=
439
for ac_arg
440
do
441
  case "$ac_arg" in
442
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443
  | --no-cr | --no-c) ;;
444
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
449
  esac
450
done
451
 
452
# NLS nuisances.
453
# Only set these to C if already set.  These must not be set unconditionally
454
# because not all systems understand e.g. LANG=C (notably SCO).
455
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456
# Non-C LC_CTYPE values break the ctype check.
457
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
458
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
461
 
462
# confdefs.h avoids OS command line length limits that DEFS can exceed.
463
rm -rf conftest* confdefs.h
464
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
465
echo > confdefs.h
466
 
467
# A filename unique to this package, relative to the directory that
468
# configure is in, which we can look for to find out if srcdir is correct.
469
ac_unique_file=../generic/tk.h
470
 
471
# Find the source files, if location was not specified.
472
if test -z "$srcdir"; then
473
  ac_srcdir_defaulted=yes
474
  # Try the directory containing this script, then its parent.
475
  ac_prog=$0
476
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478
  srcdir=$ac_confdir
479
  if test ! -r $srcdir/$ac_unique_file; then
480
    srcdir=..
481
  fi
482
else
483
  ac_srcdir_defaulted=no
484
fi
485
if test ! -r $srcdir/$ac_unique_file; then
486
  if test "$ac_srcdir_defaulted" = yes; then
487
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488
  else
489
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490
  fi
491
fi
492
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493
 
494
# Prefer explicitly selected file to automatically selected ones.
495
if test -z "$sitefile"; then
496
  if test -z "$CONFIG_SITE"; then
497
    if test "x$prefix" != xNONE; then
498
      CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
499
    else
500
      CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
501
    fi
502
  fi
503
else
504
  CONFIG_SITE="$sitefile"
505
fi
506
for ac_site_file in $CONFIG_SITE; do
507
  if test -r "$ac_site_file"; then
508
    echo "loading site script $ac_site_file"
509
    . "$ac_site_file"
510
  fi
511
done
512
 
513
if test -r "$cache_file"; then
514
  echo "loading cache $cache_file"
515
  . $cache_file
516
else
517
  echo "creating cache $cache_file"
518
  > $cache_file
519
fi
520
 
521
ac_ext=c
522
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523
ac_cpp='$CPP $CPPFLAGS'
524
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526
cross_compiling=$ac_cv_prog_cc_cross
527
 
528
ac_exeext=
529
ac_objext=o
530
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
531
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
533
    ac_n= ac_c='
534
' ac_t='        '
535
  else
536
    ac_n=-n ac_c= ac_t=
537
  fi
538
else
539
  ac_n= ac_c='\c' ac_t=
540
fi
541
 
542
 
543
# SCCS: @(#) configure.in 1.90 97/11/20 12:45:45
544
 
545
# CYGNUS LOCAL tromey - find config.guess/config.sub in our tree
546
ac_aux_dir=
547
for ac_dir in $srcdir/../.. $srcdir/$srcdir/../..; do
548
  if test -f $ac_dir/install-sh; then
549
    ac_aux_dir=$ac_dir
550
    ac_install_sh="$ac_aux_dir/install-sh -c"
551
    break
552
  elif test -f $ac_dir/install.sh; then
553
    ac_aux_dir=$ac_dir
554
    ac_install_sh="$ac_aux_dir/install.sh -c"
555
    break
556
  fi
557
done
558
if test -z "$ac_aux_dir"; then
559
  { echo "configure: error: can not find install-sh or install.sh in $srcdir/../.. $srcdir/$srcdir/../.." 1>&2; exit 1; }
560
fi
561
ac_config_guess=$ac_aux_dir/config.guess
562
ac_config_sub=$ac_aux_dir/config.sub
563
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
564
 
565
 
566
# Do some error checking and defaulting for the host and target type.
567
# The inputs are:
568
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
569
#
570
# The rules are:
571
# 1. You are not allowed to specify --host, --target, and nonopt at the
572
#    same time.
573
# 2. Host defaults to nonopt.
574
# 3. If nonopt is not specified, then host defaults to the current host,
575
#    as determined by config.guess.
576
# 4. Target and build default to nonopt.
577
# 5. If nonopt is not specified, then target and build default to host.
578
 
579
# The aliases save the names the user supplied, while $host etc.
580
# will get canonicalized.
581
case $host---$target---$nonopt in
582
NONE---*---* | *---NONE---* | *---*---NONE) ;;
583
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
584
esac
585
 
586
 
587
# Make sure we can run config.sub.
588
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
589
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
590
fi
591
 
592
echo $ac_n "checking host system type""... $ac_c" 1>&6
593
echo "configure:594: checking host system type" >&5
594
 
595
host_alias=$host
596
case "$host_alias" in
597
NONE)
598
  case $nonopt in
599
  NONE)
600
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
601
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
602
    fi ;;
603
  *) host_alias=$nonopt ;;
604
  esac ;;
605
esac
606
 
607
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
608
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
609
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
610
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
611
echo "$ac_t""$host" 1>&6
612
 
613
echo $ac_n "checking target system type""... $ac_c" 1>&6
614
echo "configure:615: checking target system type" >&5
615
 
616
target_alias=$target
617
case "$target_alias" in
618
NONE)
619
  case $nonopt in
620
  NONE) target_alias=$host_alias ;;
621
  *) target_alias=$nonopt ;;
622
  esac ;;
623
esac
624
 
625
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
626
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
627
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
628
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
629
echo "$ac_t""$target" 1>&6
630
 
631
echo $ac_n "checking build system type""... $ac_c" 1>&6
632
echo "configure:633: checking build system type" >&5
633
 
634
build_alias=$build
635
case "$build_alias" in
636
NONE)
637
  case $nonopt in
638
  NONE) build_alias=$host_alias ;;
639
  *) build_alias=$nonopt ;;
640
  esac ;;
641
esac
642
 
643
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
644
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
645
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
646
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
647
echo "$ac_t""$build" 1>&6
648
 
649
test "$host_alias" != "$target_alias" &&
650
  test "$program_prefix$program_suffix$program_transform_name" = \
651
    NONENONEs,x,x, &&
652
  program_prefix=${target_alias}-
653
 
654
# Extract the first word of "gcc", so it can be a program name with args.
655
set dummy gcc; ac_word=$2
656
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
657
echo "configure:658: checking for $ac_word" >&5
658
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
659
  echo $ac_n "(cached) $ac_c" 1>&6
660
else
661
  if test -n "$CC"; then
662
  ac_cv_prog_CC="$CC" # Let the user override the test.
663
else
664
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
665
  ac_dummy="$PATH"
666
  for ac_dir in $ac_dummy; do
667
    test -z "$ac_dir" && ac_dir=.
668
    if test -f $ac_dir/$ac_word; then
669
      ac_cv_prog_CC="gcc"
670
      break
671
    fi
672
  done
673
  IFS="$ac_save_ifs"
674
fi
675
fi
676
CC="$ac_cv_prog_CC"
677
if test -n "$CC"; then
678
  echo "$ac_t""$CC" 1>&6
679
else
680
  echo "$ac_t""no" 1>&6
681
fi
682
 
683
if test -z "$CC"; then
684
  # Extract the first word of "cc", so it can be a program name with args.
685
set dummy cc; ac_word=$2
686
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
687
echo "configure:688: checking for $ac_word" >&5
688
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
689
  echo $ac_n "(cached) $ac_c" 1>&6
690
else
691
  if test -n "$CC"; then
692
  ac_cv_prog_CC="$CC" # Let the user override the test.
693
else
694
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
695
  ac_prog_rejected=no
696
  ac_dummy="$PATH"
697
  for ac_dir in $ac_dummy; do
698
    test -z "$ac_dir" && ac_dir=.
699
    if test -f $ac_dir/$ac_word; then
700
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
701
        ac_prog_rejected=yes
702
        continue
703
      fi
704
      ac_cv_prog_CC="cc"
705
      break
706
    fi
707
  done
708
  IFS="$ac_save_ifs"
709
if test $ac_prog_rejected = yes; then
710
  # We found a bogon in the path, so make sure we never use it.
711
  set dummy $ac_cv_prog_CC
712
  shift
713
  if test $# -gt 0; then
714
    # We chose a different compiler from the bogus one.
715
    # However, it has the same basename, so the bogon will be chosen
716
    # first if we set CC to just the basename; use the full file name.
717
    shift
718
    set dummy "$ac_dir/$ac_word" "$@"
719
    shift
720
    ac_cv_prog_CC="$@"
721
  fi
722
fi
723
fi
724
fi
725
CC="$ac_cv_prog_CC"
726
if test -n "$CC"; then
727
  echo "$ac_t""$CC" 1>&6
728
else
729
  echo "$ac_t""no" 1>&6
730
fi
731
 
732
  if test -z "$CC"; then
733
    case "`uname -s`" in
734
    *win32* | *WIN32*)
735
      # Extract the first word of "cl", so it can be a program name with args.
736
set dummy cl; ac_word=$2
737
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
738
echo "configure:739: checking for $ac_word" >&5
739
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
740
  echo $ac_n "(cached) $ac_c" 1>&6
741
else
742
  if test -n "$CC"; then
743
  ac_cv_prog_CC="$CC" # Let the user override the test.
744
else
745
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
746
  ac_dummy="$PATH"
747
  for ac_dir in $ac_dummy; do
748
    test -z "$ac_dir" && ac_dir=.
749
    if test -f $ac_dir/$ac_word; then
750
      ac_cv_prog_CC="cl"
751
      break
752
    fi
753
  done
754
  IFS="$ac_save_ifs"
755
fi
756
fi
757
CC="$ac_cv_prog_CC"
758
if test -n "$CC"; then
759
  echo "$ac_t""$CC" 1>&6
760
else
761
  echo "$ac_t""no" 1>&6
762
fi
763
 ;;
764
    esac
765
  fi
766
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
767
fi
768
 
769
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
770
echo "configure:771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
771
 
772
ac_ext=c
773
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
774
ac_cpp='$CPP $CPPFLAGS'
775
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
776
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
777
cross_compiling=$ac_cv_prog_cc_cross
778
 
779
cat > conftest.$ac_ext << EOF
780
 
781
#line 782 "configure"
782
#include "confdefs.h"
783
 
784
main(){return(0);}
785
EOF
786
if { (eval echo configure:787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
787
  ac_cv_prog_cc_works=yes
788
  # If we can't run a trivial program, we are probably using a cross compiler.
789
  if (./conftest; exit) 2>/dev/null; then
790
    ac_cv_prog_cc_cross=no
791
  else
792
    ac_cv_prog_cc_cross=yes
793
  fi
794
else
795
  echo "configure: failed program was:" >&5
796
  cat conftest.$ac_ext >&5
797
  ac_cv_prog_cc_works=no
798
fi
799
rm -fr conftest*
800
ac_ext=c
801
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
802
ac_cpp='$CPP $CPPFLAGS'
803
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
804
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
805
cross_compiling=$ac_cv_prog_cc_cross
806
 
807
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
808
if test $ac_cv_prog_cc_works = no; then
809
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
810
fi
811
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
812
echo "configure:813: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
813
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
814
cross_compiling=$ac_cv_prog_cc_cross
815
 
816
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
817
echo "configure:818: checking whether we are using GNU C" >&5
818
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
819
  echo $ac_n "(cached) $ac_c" 1>&6
820
else
821
  cat > conftest.c <
822
#ifdef __GNUC__
823
  yes;
824
#endif
825
EOF
826
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
827
  ac_cv_prog_gcc=yes
828
else
829
  ac_cv_prog_gcc=no
830
fi
831
fi
832
 
833
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
834
 
835
if test $ac_cv_prog_gcc = yes; then
836
  GCC=yes
837
else
838
  GCC=
839
fi
840
 
841
ac_test_CFLAGS="${CFLAGS+set}"
842
ac_save_CFLAGS="$CFLAGS"
843
CFLAGS=
844
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
845
echo "configure:846: checking whether ${CC-cc} accepts -g" >&5
846
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
847
  echo $ac_n "(cached) $ac_c" 1>&6
848
else
849
  echo 'void f(){}' > conftest.c
850
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
851
  ac_cv_prog_cc_g=yes
852
else
853
  ac_cv_prog_cc_g=no
854
fi
855
rm -f conftest*
856
 
857
fi
858
 
859
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
860
if test "$ac_test_CFLAGS" = set; then
861
  CFLAGS="$ac_save_CFLAGS"
862
elif test $ac_cv_prog_cc_g = yes; then
863
  if test "$GCC" = yes; then
864
    CFLAGS="-g -O2"
865
  else
866
    CFLAGS="-g"
867
  fi
868
else
869
  if test "$GCC" = yes; then
870
    CFLAGS="-O2"
871
  else
872
    CFLAGS=
873
  fi
874
fi
875
 
876
# Find a good install program.  We prefer a C program (faster),
877
# so one script is as good as another.  But avoid the broken or
878
# incompatible versions:
879
# SysV /etc/install, /usr/sbin/install
880
# SunOS /usr/etc/install
881
# IRIX /sbin/install
882
# AIX /bin/install
883
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
884
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
885
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
886
# ./install, which can be erroneously created by make from ./install.sh.
887
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
888
echo "configure:889: checking for a BSD compatible install" >&5
889
if test -z "$INSTALL"; then
890
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
891
  echo $ac_n "(cached) $ac_c" 1>&6
892
else
893
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
894
  for ac_dir in $PATH; do
895
    # Account for people who put trailing slashes in PATH elements.
896
    case "$ac_dir/" in
897
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
898
    *)
899
      # OSF1 and SCO ODT 3.0 have their own names for install.
900
      # Don't use installbsd from OSF since it installs stuff as root
901
      # by default.
902
      for ac_prog in ginstall scoinst install; do
903
        if test -f $ac_dir/$ac_prog; then
904
          if test $ac_prog = install &&
905
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
906
            # AIX install.  It has an incompatible calling convention.
907
            :
908
          else
909
            ac_cv_path_install="$ac_dir/$ac_prog -c"
910
            break 2
911
          fi
912
        fi
913
      done
914
      ;;
915
    esac
916
  done
917
  IFS="$ac_save_IFS"
918
 
919
fi
920
  if test "${ac_cv_path_install+set}" = set; then
921
    INSTALL="$ac_cv_path_install"
922
  else
923
    # As a last resort, use the slow shell script.  We don't cache a
924
    # path for INSTALL within a source directory, because that will
925
    # break other packages using the cache if that directory is
926
    # removed, or if the path is relative.
927
    INSTALL="$ac_install_sh"
928
  fi
929
fi
930
echo "$ac_t""$INSTALL" 1>&6
931
 
932
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
933
# It thinks the first close brace ends the variable substitution.
934
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
935
 
936
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
937
 
938
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
939
 
940
# END CYGNUS LOCAL
941
 
942
TK_VERSION=8.0
943
TK_MAJOR_VERSION=8
944
TK_MINOR_VERSION=0
945
TK_PATCH_LEVEL=".4"
946
VERSION=${TK_VERSION}
947
 
948
if test "${prefix}" = "NONE"; then
949
    prefix=/usr/local
950
fi
951
if test "${exec_prefix}" = "NONE"; then
952
    exec_prefix=$prefix
953
fi
954
TK_SRC_DIR=`cd $srcdir/..; pwd`
955
 
956
# Extract the first word of "ranlib", so it can be a program name with args.
957
set dummy ranlib; ac_word=$2
958
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
959
echo "configure:960: checking for $ac_word" >&5
960
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
961
  echo $ac_n "(cached) $ac_c" 1>&6
962
else
963
  if test -n "$RANLIB"; then
964
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
965
else
966
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
967
  ac_dummy="$PATH"
968
  for ac_dir in $ac_dummy; do
969
    test -z "$ac_dir" && ac_dir=.
970
    if test -f $ac_dir/$ac_word; then
971
      ac_cv_prog_RANLIB="ranlib"
972
      break
973
    fi
974
  done
975
  IFS="$ac_save_ifs"
976
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
977
fi
978
fi
979
RANLIB="$ac_cv_prog_RANLIB"
980
if test -n "$RANLIB"; then
981
  echo "$ac_t""$RANLIB" 1>&6
982
else
983
  echo "$ac_t""no" 1>&6
984
fi
985
 
986
# Check whether --enable-gcc or --disable-gcc was given.
987
if test "${enable_gcc+set}" = set; then
988
  enableval="$enable_gcc"
989
  tk_ok=$enableval
990
else
991
  tkl_ok=no
992
fi
993
 
994
if test "$tk_ok" = "yes"; then
995
    # Extract the first word of "gcc", so it can be a program name with args.
996
set dummy gcc; ac_word=$2
997
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
998
echo "configure:999: checking for $ac_word" >&5
999
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1000
  echo $ac_n "(cached) $ac_c" 1>&6
1001
else
1002
  if test -n "$CC"; then
1003
  ac_cv_prog_CC="$CC" # Let the user override the test.
1004
else
1005
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1006
  ac_dummy="$PATH"
1007
  for ac_dir in $ac_dummy; do
1008
    test -z "$ac_dir" && ac_dir=.
1009
    if test -f $ac_dir/$ac_word; then
1010
      ac_cv_prog_CC="gcc"
1011
      break
1012
    fi
1013
  done
1014
  IFS="$ac_save_ifs"
1015
fi
1016
fi
1017
CC="$ac_cv_prog_CC"
1018
if test -n "$CC"; then
1019
  echo "$ac_t""$CC" 1>&6
1020
else
1021
  echo "$ac_t""no" 1>&6
1022
fi
1023
 
1024
if test -z "$CC"; then
1025
  # Extract the first word of "cc", so it can be a program name with args.
1026
set dummy cc; ac_word=$2
1027
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1028
echo "configure:1029: checking for $ac_word" >&5
1029
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1030
  echo $ac_n "(cached) $ac_c" 1>&6
1031
else
1032
  if test -n "$CC"; then
1033
  ac_cv_prog_CC="$CC" # Let the user override the test.
1034
else
1035
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1036
  ac_prog_rejected=no
1037
  ac_dummy="$PATH"
1038
  for ac_dir in $ac_dummy; do
1039
    test -z "$ac_dir" && ac_dir=.
1040
    if test -f $ac_dir/$ac_word; then
1041
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1042
        ac_prog_rejected=yes
1043
        continue
1044
      fi
1045
      ac_cv_prog_CC="cc"
1046
      break
1047
    fi
1048
  done
1049
  IFS="$ac_save_ifs"
1050
if test $ac_prog_rejected = yes; then
1051
  # We found a bogon in the path, so make sure we never use it.
1052
  set dummy $ac_cv_prog_CC
1053
  shift
1054
  if test $# -gt 0; then
1055
    # We chose a different compiler from the bogus one.
1056
    # However, it has the same basename, so the bogon will be chosen
1057
    # first if we set CC to just the basename; use the full file name.
1058
    shift
1059
    set dummy "$ac_dir/$ac_word" "$@"
1060
    shift
1061
    ac_cv_prog_CC="$@"
1062
  fi
1063
fi
1064
fi
1065
fi
1066
CC="$ac_cv_prog_CC"
1067
if test -n "$CC"; then
1068
  echo "$ac_t""$CC" 1>&6
1069
else
1070
  echo "$ac_t""no" 1>&6
1071
fi
1072
 
1073
  if test -z "$CC"; then
1074
    case "`uname -s`" in
1075
    *win32* | *WIN32*)
1076
      # Extract the first word of "cl", so it can be a program name with args.
1077
set dummy cl; ac_word=$2
1078
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1079
echo "configure:1080: checking for $ac_word" >&5
1080
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1081
  echo $ac_n "(cached) $ac_c" 1>&6
1082
else
1083
  if test -n "$CC"; then
1084
  ac_cv_prog_CC="$CC" # Let the user override the test.
1085
else
1086
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1087
  ac_dummy="$PATH"
1088
  for ac_dir in $ac_dummy; do
1089
    test -z "$ac_dir" && ac_dir=.
1090
    if test -f $ac_dir/$ac_word; then
1091
      ac_cv_prog_CC="cl"
1092
      break
1093
    fi
1094
  done
1095
  IFS="$ac_save_ifs"
1096
fi
1097
fi
1098
CC="$ac_cv_prog_CC"
1099
if test -n "$CC"; then
1100
  echo "$ac_t""$CC" 1>&6
1101
else
1102
  echo "$ac_t""no" 1>&6
1103
fi
1104
 ;;
1105
    esac
1106
  fi
1107
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1108
fi
1109
 
1110
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1111
echo "configure:1112: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1112
 
1113
ac_ext=c
1114
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1115
ac_cpp='$CPP $CPPFLAGS'
1116
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1117
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1118
cross_compiling=$ac_cv_prog_cc_cross
1119
 
1120
cat > conftest.$ac_ext << EOF
1121
 
1122
#line 1123 "configure"
1123
#include "confdefs.h"
1124
 
1125
main(){return(0);}
1126
EOF
1127
if { (eval echo configure:1128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1128
  ac_cv_prog_cc_works=yes
1129
  # If we can't run a trivial program, we are probably using a cross compiler.
1130
  if (./conftest; exit) 2>/dev/null; then
1131
    ac_cv_prog_cc_cross=no
1132
  else
1133
    ac_cv_prog_cc_cross=yes
1134
  fi
1135
else
1136
  echo "configure: failed program was:" >&5
1137
  cat conftest.$ac_ext >&5
1138
  ac_cv_prog_cc_works=no
1139
fi
1140
rm -fr conftest*
1141
ac_ext=c
1142
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1143
ac_cpp='$CPP $CPPFLAGS'
1144
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1145
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1146
cross_compiling=$ac_cv_prog_cc_cross
1147
 
1148
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1149
if test $ac_cv_prog_cc_works = no; then
1150
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1151
fi
1152
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1153
echo "configure:1154: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1154
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1155
cross_compiling=$ac_cv_prog_cc_cross
1156
 
1157
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1158
echo "configure:1159: checking whether we are using GNU C" >&5
1159
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1160
  echo $ac_n "(cached) $ac_c" 1>&6
1161
else
1162
  cat > conftest.c <
1163
#ifdef __GNUC__
1164
  yes;
1165
#endif
1166
EOF
1167
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1168
  ac_cv_prog_gcc=yes
1169
else
1170
  ac_cv_prog_gcc=no
1171
fi
1172
fi
1173
 
1174
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1175
 
1176
if test $ac_cv_prog_gcc = yes; then
1177
  GCC=yes
1178
else
1179
  GCC=
1180
fi
1181
 
1182
ac_test_CFLAGS="${CFLAGS+set}"
1183
ac_save_CFLAGS="$CFLAGS"
1184
CFLAGS=
1185
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1186
echo "configure:1187: checking whether ${CC-cc} accepts -g" >&5
1187
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1188
  echo $ac_n "(cached) $ac_c" 1>&6
1189
else
1190
  echo 'void f(){}' > conftest.c
1191
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1192
  ac_cv_prog_cc_g=yes
1193
else
1194
  ac_cv_prog_cc_g=no
1195
fi
1196
rm -f conftest*
1197
 
1198
fi
1199
 
1200
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1201
if test "$ac_test_CFLAGS" = set; then
1202
  CFLAGS="$ac_save_CFLAGS"
1203
elif test $ac_cv_prog_cc_g = yes; then
1204
  if test "$GCC" = yes; then
1205
    CFLAGS="-g -O2"
1206
  else
1207
    CFLAGS="-g"
1208
  fi
1209
else
1210
  if test "$GCC" = yes; then
1211
    CFLAGS="-O2"
1212
  else
1213
    CFLAGS=
1214
  fi
1215
fi
1216
 
1217
else
1218
    CC=${CC-cc}
1219
 
1220
fi
1221
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1222
echo "configure:1223: checking how to run the C preprocessor" >&5
1223
# On Suns, sometimes $CPP names a directory.
1224
if test -n "$CPP" && test -d "$CPP"; then
1225
  CPP=
1226
fi
1227
if test -z "$CPP"; then
1228
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1229
  echo $ac_n "(cached) $ac_c" 1>&6
1230
else
1231
    # This must be in double quotes, not single quotes, because CPP may get
1232
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1233
  CPP="${CC-cc} -E"
1234
  # On the NeXT, cc -E runs the code through the compiler's parser,
1235
  # not just through cpp.
1236
  cat > conftest.$ac_ext <
1237
#line 1238 "configure"
1238
#include "confdefs.h"
1239
#include 
1240
Syntax Error
1241
EOF
1242
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1243
{ (eval echo configure:1244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1244
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1245
if test -z "$ac_err"; then
1246
  :
1247
else
1248
  echo "$ac_err" >&5
1249
  echo "configure: failed program was:" >&5
1250
  cat conftest.$ac_ext >&5
1251
  rm -rf conftest*
1252
  CPP="${CC-cc} -E -traditional-cpp"
1253
  cat > conftest.$ac_ext <
1254
#line 1255 "configure"
1255
#include "confdefs.h"
1256
#include 
1257
Syntax Error
1258
EOF
1259
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1260
{ (eval echo configure:1261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1261
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1262
if test -z "$ac_err"; then
1263
  :
1264
else
1265
  echo "$ac_err" >&5
1266
  echo "configure: failed program was:" >&5
1267
  cat conftest.$ac_ext >&5
1268
  rm -rf conftest*
1269
  CPP="${CC-cc} -nologo -E"
1270
  cat > conftest.$ac_ext <
1271
#line 1272 "configure"
1272
#include "confdefs.h"
1273
#include 
1274
Syntax Error
1275
EOF
1276
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1277
{ (eval echo configure:1278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1278
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1279
if test -z "$ac_err"; then
1280
  :
1281
else
1282
  echo "$ac_err" >&5
1283
  echo "configure: failed program was:" >&5
1284
  cat conftest.$ac_ext >&5
1285
  rm -rf conftest*
1286
  CPP=/lib/cpp
1287
fi
1288
rm -f conftest*
1289
fi
1290
rm -f conftest*
1291
fi
1292
rm -f conftest*
1293
  ac_cv_prog_CPP="$CPP"
1294
fi
1295
  CPP="$ac_cv_prog_CPP"
1296
else
1297
  ac_cv_prog_CPP="$CPP"
1298
fi
1299
echo "$ac_t""$CPP" 1>&6
1300
 
1301
for ac_hdr in unistd.h limits.h
1302
do
1303
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1304
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1305
echo "configure:1306: checking for $ac_hdr" >&5
1306
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1307
  echo $ac_n "(cached) $ac_c" 1>&6
1308
else
1309
  cat > conftest.$ac_ext <
1310
#line 1311 "configure"
1311
#include "confdefs.h"
1312
#include <$ac_hdr>
1313
EOF
1314
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1315
{ (eval echo configure:1316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1316
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1317
if test -z "$ac_err"; then
1318
  rm -rf conftest*
1319
  eval "ac_cv_header_$ac_safe=yes"
1320
else
1321
  echo "$ac_err" >&5
1322
  echo "configure: failed program was:" >&5
1323
  cat conftest.$ac_ext >&5
1324
  rm -rf conftest*
1325
  eval "ac_cv_header_$ac_safe=no"
1326
fi
1327
rm -f conftest*
1328
fi
1329
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1330
  echo "$ac_t""yes" 1>&6
1331
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1332
  cat >> confdefs.h <
1333
#define $ac_tr_hdr 1
1334
EOF
1335
 
1336
else
1337
  echo "$ac_t""no" 1>&6
1338
fi
1339
done
1340
 
1341
 
1342
# set the warning flags depending on whether or not we are using gcc
1343
if test "${GCC}" = "yes" ; then
1344
    # leave -Wimplicit-int out, the X libs generate so many of these warnings
1345
    # that they obscure everything else.
1346
 
1347
    CFLAGS_WARNING="-Wall -Wconversion -Wno-implicit-int"
1348
else
1349
    CFLAGS_WARNING=""
1350
fi
1351
 
1352
#--------------------------------------------------------------------
1353
#       See if there was a command-line option for where Tcl is;  if
1354
#       not, assume that its top-level directory is a sibling of ours.
1355
#--------------------------------------------------------------------
1356
 
1357
# Check whether --with-tcl or --without-tcl was given.
1358
if test "${with_tcl+set}" = set; then
1359
  withval="$with_tcl"
1360
  TCL_BIN_DIR=$withval
1361
else
1362
  TCL_BIN_DIR=`cd ../../tcl/unix; pwd`
1363
fi
1364
 
1365
if test -z "$TCL_BIN_DIR"; then
1366
    { echo "configure: error: couldn't find Tcl build directory in ../../tcl/unix" 1>&2; exit 1; }
1367
fi
1368
if test ! -d $TCL_BIN_DIR; then
1369
    { echo "configure: error: Tcl directory $TCL_BIN_DIR doesn't exist" 1>&2; exit 1; }
1370
fi
1371
if test ! -f $TCL_BIN_DIR/Makefile; then
1372
    { echo "configure: error: There's no Makefile in $TCL_BIN_DIR;  perhaps you didn't specify the Tcl *build* directory (not the toplevel Tcl directory) or you forgot to configure Tcl?" 1>&2; exit 1; }
1373
fi
1374
 
1375
#--------------------------------------------------------------------
1376
#       Read in configuration information generated by Tcl for shared
1377
#       libraries, and arrange for it to be substituted into our
1378
#       Makefile.
1379
#--------------------------------------------------------------------
1380
 
1381
file=$TCL_BIN_DIR/tclConfig.sh
1382
. $file
1383
SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
1384
SHLIB_LD=$TCL_SHLIB_LD
1385
SHLIB_LD_LIBS=$TCL_SHLIB_LD_LIBS
1386
SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
1387
SHLIB_VERSION=$TCL_SHLIB_VERSION
1388
DL_LIBS=$TCL_DL_LIBS
1389
LD_FLAGS=$TCL_LD_FLAGS
1390
 
1391
LIB_RUNTIME_DIR='${LIB_RUNTIME_DIR}'
1392
 
1393
# If Tcl and Tk are installed in different places, adjust the library
1394
# search path to reflect this.
1395
 
1396
if test "$TCL_EXEC_PREFIX" != "$exec_prefix"; then
1397
    LIB_RUNTIME_DIR="${LIB_RUNTIME_DIR}:${TCL_EXEC_PREFIX}"
1398
fi
1399
 
1400
#--------------------------------------------------------------------
1401
#       Supply a substitute for stdlib.h if it doesn't define strtol,
1402
#       strtoul, or strtod (which it doesn't in some versions of SunOS).
1403
#--------------------------------------------------------------------
1404
 
1405
echo $ac_n "checking stdlib.h""... $ac_c" 1>&6
1406
echo "configure:1407: checking stdlib.h" >&5
1407
cat > conftest.$ac_ext <
1408
#line 1409 "configure"
1409
#include "confdefs.h"
1410
#include 
1411
EOF
1412
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1413
  egrep "strtol" >/dev/null 2>&1; then
1414
  rm -rf conftest*
1415
  tk_ok=yes
1416
else
1417
  rm -rf conftest*
1418
  tk_ok=no
1419
fi
1420
rm -f conftest*
1421
 
1422
cat > conftest.$ac_ext <
1423
#line 1424 "configure"
1424
#include "confdefs.h"
1425
#include 
1426
EOF
1427
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1428
  egrep "strtoul" >/dev/null 2>&1; then
1429
  :
1430
else
1431
  rm -rf conftest*
1432
  tk_ok=no
1433
fi
1434
rm -f conftest*
1435
 
1436
cat > conftest.$ac_ext <
1437
#line 1438 "configure"
1438
#include "confdefs.h"
1439
#include 
1440
EOF
1441
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1442
  egrep "strtod" >/dev/null 2>&1; then
1443
  :
1444
else
1445
  rm -rf conftest*
1446
  tk_ok=no
1447
fi
1448
rm -f conftest*
1449
 
1450
if test $tk_ok = no; then
1451
    cat >> confdefs.h <<\EOF
1452
#define NO_STDLIB_H 1
1453
EOF
1454
 
1455
fi
1456
echo "$ac_t""$tk_ok" 1>&6
1457
 
1458
#--------------------------------------------------------------------
1459
#       Include sys/select.h if it exists and if it supplies things
1460
#       that appear to be useful and aren't already in sys/types.h.
1461
#       This appears to be true only on the RS/6000 under AIX.  Some
1462
#       systems like OSF/1 have a sys/select.h that's of no use, and
1463
#       other systems like SCO UNIX have a sys/select.h that's
1464
#       pernicious.  If "fd_set" isn't defined anywhere then set a
1465
#       special flag.
1466
#--------------------------------------------------------------------
1467
 
1468
echo $ac_n "checking fd_set and sys/select""... $ac_c" 1>&6
1469
echo "configure:1470: checking fd_set and sys/select" >&5
1470
cat > conftest.$ac_ext <
1471
#line 1472 "configure"
1472
#include "confdefs.h"
1473
#include 
1474
int main() {
1475
fd_set readMask, writeMask;
1476
; return 0; }
1477
EOF
1478
if { (eval echo configure:1479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1479
  rm -rf conftest*
1480
  tk_ok=yes
1481
else
1482
  echo "configure: failed program was:" >&5
1483
  cat conftest.$ac_ext >&5
1484
  rm -rf conftest*
1485
  tk_ok=no
1486
fi
1487
rm -f conftest*
1488
if test $tk_ok = no; then
1489
    cat > conftest.$ac_ext <
1490
#line 1491 "configure"
1491
#include "confdefs.h"
1492
#include 
1493
EOF
1494
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1495
  egrep "fd_mask" >/dev/null 2>&1; then
1496
  rm -rf conftest*
1497
  tk_ok=yes
1498
fi
1499
rm -f conftest*
1500
 
1501
    if test $tk_ok = yes; then
1502
        cat >> confdefs.h <<\EOF
1503
#define HAVE_SYS_SELECT_H 1
1504
EOF
1505
 
1506
    fi
1507
fi
1508
echo "$ac_t""$tk_ok" 1>&6
1509
if test $tk_ok = no; then
1510
    cat >> confdefs.h <<\EOF
1511
#define NO_FD_SET 1
1512
EOF
1513
 
1514
fi
1515
 
1516
#--------------------------------------------------------------------
1517
#       Check for various typedefs and provide substitutes if
1518
#       they don't exist.
1519
#--------------------------------------------------------------------
1520
 
1521
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1522
echo "configure:1523: checking for ANSI C header files" >&5
1523
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1524
  echo $ac_n "(cached) $ac_c" 1>&6
1525
else
1526
  cat > conftest.$ac_ext <
1527
#line 1528 "configure"
1528
#include "confdefs.h"
1529
#include 
1530
#include 
1531
#include 
1532
#include 
1533
EOF
1534
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1535
{ (eval echo configure:1536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1536
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1537
if test -z "$ac_err"; then
1538
  rm -rf conftest*
1539
  ac_cv_header_stdc=yes
1540
else
1541
  echo "$ac_err" >&5
1542
  echo "configure: failed program was:" >&5
1543
  cat conftest.$ac_ext >&5
1544
  rm -rf conftest*
1545
  ac_cv_header_stdc=no
1546
fi
1547
rm -f conftest*
1548
 
1549
if test $ac_cv_header_stdc = yes; then
1550
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1551
cat > conftest.$ac_ext <
1552
#line 1553 "configure"
1553
#include "confdefs.h"
1554
#include 
1555
EOF
1556
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1557
  egrep "memchr" >/dev/null 2>&1; then
1558
  :
1559
else
1560
  rm -rf conftest*
1561
  ac_cv_header_stdc=no
1562
fi
1563
rm -f conftest*
1564
 
1565
fi
1566
 
1567
if test $ac_cv_header_stdc = yes; then
1568
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1569
cat > conftest.$ac_ext <
1570
#line 1571 "configure"
1571
#include "confdefs.h"
1572
#include 
1573
EOF
1574
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1575
  egrep "free" >/dev/null 2>&1; then
1576
  :
1577
else
1578
  rm -rf conftest*
1579
  ac_cv_header_stdc=no
1580
fi
1581
rm -f conftest*
1582
 
1583
fi
1584
 
1585
if test $ac_cv_header_stdc = yes; then
1586
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1587
if test "$cross_compiling" = yes; then
1588
  :
1589
else
1590
  cat > conftest.$ac_ext <
1591
#line 1592 "configure"
1592
#include "confdefs.h"
1593
#include 
1594
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1595
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1596
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1597
int main () { int i; for (i = 0; i < 256; i++)
1598
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1599
exit (0); }
1600
 
1601
EOF
1602
if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1603
then
1604
  :
1605
else
1606
  echo "configure: failed program was:" >&5
1607
  cat conftest.$ac_ext >&5
1608
  rm -fr conftest*
1609
  ac_cv_header_stdc=no
1610
fi
1611
rm -fr conftest*
1612
fi
1613
 
1614
fi
1615
fi
1616
 
1617
echo "$ac_t""$ac_cv_header_stdc" 1>&6
1618
if test $ac_cv_header_stdc = yes; then
1619
  cat >> confdefs.h <<\EOF
1620
#define STDC_HEADERS 1
1621
EOF
1622
 
1623
fi
1624
 
1625
echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1626
echo "configure:1627: checking for mode_t" >&5
1627
if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1628
  echo $ac_n "(cached) $ac_c" 1>&6
1629
else
1630
  cat > conftest.$ac_ext <
1631
#line 1632 "configure"
1632
#include "confdefs.h"
1633
#include 
1634
#if STDC_HEADERS
1635
#include 
1636
#include 
1637
#endif
1638
EOF
1639
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1640
  egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1641
  rm -rf conftest*
1642
  ac_cv_type_mode_t=yes
1643
else
1644
  rm -rf conftest*
1645
  ac_cv_type_mode_t=no
1646
fi
1647
rm -f conftest*
1648
 
1649
fi
1650
echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1651
if test $ac_cv_type_mode_t = no; then
1652
  cat >> confdefs.h <<\EOF
1653
#define mode_t int
1654
EOF
1655
 
1656
fi
1657
 
1658
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1659
echo "configure:1660: checking for pid_t" >&5
1660
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1661
  echo $ac_n "(cached) $ac_c" 1>&6
1662
else
1663
  cat > conftest.$ac_ext <
1664
#line 1665 "configure"
1665
#include "confdefs.h"
1666
#include 
1667
#if STDC_HEADERS
1668
#include 
1669
#include 
1670
#endif
1671
EOF
1672
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1673
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1674
  rm -rf conftest*
1675
  ac_cv_type_pid_t=yes
1676
else
1677
  rm -rf conftest*
1678
  ac_cv_type_pid_t=no
1679
fi
1680
rm -f conftest*
1681
 
1682
fi
1683
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1684
if test $ac_cv_type_pid_t = no; then
1685
  cat >> confdefs.h <<\EOF
1686
#define pid_t int
1687
EOF
1688
 
1689
fi
1690
 
1691
echo $ac_n "checking for size_t""... $ac_c" 1>&6
1692
echo "configure:1693: checking for size_t" >&5
1693
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1694
  echo $ac_n "(cached) $ac_c" 1>&6
1695
else
1696
  cat > conftest.$ac_ext <
1697
#line 1698 "configure"
1698
#include "confdefs.h"
1699
#include 
1700
#if STDC_HEADERS
1701
#include 
1702
#include 
1703
#endif
1704
EOF
1705
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1706
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1707
  rm -rf conftest*
1708
  ac_cv_type_size_t=yes
1709
else
1710
  rm -rf conftest*
1711
  ac_cv_type_size_t=no
1712
fi
1713
rm -f conftest*
1714
 
1715
fi
1716
echo "$ac_t""$ac_cv_type_size_t" 1>&6
1717
if test $ac_cv_type_size_t = no; then
1718
  cat >> confdefs.h <<\EOF
1719
#define size_t unsigned
1720
EOF
1721
 
1722
fi
1723
 
1724
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1725
echo "configure:1726: checking for uid_t in sys/types.h" >&5
1726
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1727
  echo $ac_n "(cached) $ac_c" 1>&6
1728
else
1729
  cat > conftest.$ac_ext <
1730
#line 1731 "configure"
1731
#include "confdefs.h"
1732
#include 
1733
EOF
1734
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1735
  egrep "uid_t" >/dev/null 2>&1; then
1736
  rm -rf conftest*
1737
  ac_cv_type_uid_t=yes
1738
else
1739
  rm -rf conftest*
1740
  ac_cv_type_uid_t=no
1741
fi
1742
rm -f conftest*
1743
 
1744
fi
1745
 
1746
echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1747
if test $ac_cv_type_uid_t = no; then
1748
  cat >> confdefs.h <<\EOF
1749
#define uid_t int
1750
EOF
1751
 
1752
  cat >> confdefs.h <<\EOF
1753
#define gid_t int
1754
EOF
1755
 
1756
fi
1757
 
1758
 
1759
#------------------------------------------------------------------------------
1760
#       Find out about time handling differences.
1761
#------------------------------------------------------------------------------
1762
 
1763
for ac_hdr in sys/time.h
1764
do
1765
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1766
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1767
echo "configure:1768: checking for $ac_hdr" >&5
1768
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1769
  echo $ac_n "(cached) $ac_c" 1>&6
1770
else
1771
  cat > conftest.$ac_ext <
1772
#line 1773 "configure"
1773
#include "confdefs.h"
1774
#include <$ac_hdr>
1775
EOF
1776
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1777
{ (eval echo configure:1778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1778
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1779
if test -z "$ac_err"; then
1780
  rm -rf conftest*
1781
  eval "ac_cv_header_$ac_safe=yes"
1782
else
1783
  echo "$ac_err" >&5
1784
  echo "configure: failed program was:" >&5
1785
  cat conftest.$ac_ext >&5
1786
  rm -rf conftest*
1787
  eval "ac_cv_header_$ac_safe=no"
1788
fi
1789
rm -f conftest*
1790
fi
1791
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1792
  echo "$ac_t""yes" 1>&6
1793
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1794
  cat >> confdefs.h <
1795
#define $ac_tr_hdr 1
1796
EOF
1797
 
1798
else
1799
  echo "$ac_t""no" 1>&6
1800
fi
1801
done
1802
 
1803
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1804
echo "configure:1805: checking whether time.h and sys/time.h may both be included" >&5
1805
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1806
  echo $ac_n "(cached) $ac_c" 1>&6
1807
else
1808
  cat > conftest.$ac_ext <
1809
#line 1810 "configure"
1810
#include "confdefs.h"
1811
#include 
1812
#include 
1813
#include 
1814
int main() {
1815
struct tm *tp;
1816
; return 0; }
1817
EOF
1818
if { (eval echo configure:1819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1819
  rm -rf conftest*
1820
  ac_cv_header_time=yes
1821
else
1822
  echo "configure: failed program was:" >&5
1823
  cat conftest.$ac_ext >&5
1824
  rm -rf conftest*
1825
  ac_cv_header_time=no
1826
fi
1827
rm -f conftest*
1828
fi
1829
 
1830
echo "$ac_t""$ac_cv_header_time" 1>&6
1831
if test $ac_cv_header_time = yes; then
1832
  cat >> confdefs.h <<\EOF
1833
#define TIME_WITH_SYS_TIME 1
1834
EOF
1835
 
1836
fi
1837
 
1838
 
1839
#--------------------------------------------------------------------
1840
#       Locate the X11 header files and the X11 library archive.  Try
1841
#       the ac_path_x macro first, but if it doesn't find the X stuff
1842
#       (e.g. because there's no xmkmf program) then check through
1843
#       a list of possible directories.  Under some conditions the
1844
#       autoconf macro will return an include directory that contains
1845
#       no include files, so double-check its result just to be safe.
1846
#--------------------------------------------------------------------
1847
 
1848
# If we find X, set shell vars x_includes and x_libraries to the
1849
# paths, otherwise set no_x=yes.
1850
# Uses ac_ vars as temps to allow command line to override cache and checks.
1851
# --without-x overrides everything else, but does not touch the cache.
1852
echo $ac_n "checking for X""... $ac_c" 1>&6
1853
echo "configure:1854: checking for X" >&5
1854
 
1855
# Check whether --with-x or --without-x was given.
1856
if test "${with_x+set}" = set; then
1857
  withval="$with_x"
1858
  :
1859
fi
1860
 
1861
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1862
if test "x$with_x" = xno; then
1863
  # The user explicitly disabled X.
1864
  have_x=disabled
1865
else
1866
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1867
    # Both variables are already set.
1868
    have_x=yes
1869
  else
1870
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1871
  echo $ac_n "(cached) $ac_c" 1>&6
1872
else
1873
  # One or both of the vars are not set, and there is no cached value.
1874
ac_x_includes=NO ac_x_libraries=NO
1875
rm -fr conftestdir
1876
if mkdir conftestdir; then
1877
  cd conftestdir
1878
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1879
  cat > Imakefile <<'EOF'
1880
acfindx:
1881
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1882
EOF
1883
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1884
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1885
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1886
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1887
    for ac_extension in a so sl; do
1888
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1889
        test -f $ac_im_libdir/libX11.$ac_extension; then
1890
        ac_im_usrlibdir=$ac_im_libdir; break
1891
      fi
1892
    done
1893
    # Screen out bogus values from the imake configuration.  They are
1894
    # bogus both because they are the default anyway, and because
1895
    # using them would break gcc on systems where it needs fixed includes.
1896
    case "$ac_im_incroot" in
1897
        /usr/include) ;;
1898
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1899
    esac
1900
    case "$ac_im_usrlibdir" in
1901
        /usr/lib | /lib) ;;
1902
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1903
    esac
1904
  fi
1905
  cd ..
1906
  rm -fr conftestdir
1907
fi
1908
 
1909
if test "$ac_x_includes" = NO; then
1910
  # Guess where to find include files, by looking for this one X11 .h file.
1911
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1912
 
1913
  # First, try using that file with no special directory specified.
1914
cat > conftest.$ac_ext <
1915
#line 1916 "configure"
1916
#include "confdefs.h"
1917
#include <$x_direct_test_include>
1918
EOF
1919
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1920
{ (eval echo configure:1921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1921
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1922
if test -z "$ac_err"; then
1923
  rm -rf conftest*
1924
  # We can compile using X headers with no special include directory.
1925
ac_x_includes=
1926
else
1927
  echo "$ac_err" >&5
1928
  echo "configure: failed program was:" >&5
1929
  cat conftest.$ac_ext >&5
1930
  rm -rf conftest*
1931
  # Look for the header file in a standard set of common directories.
1932
# Check X11 before X11Rn because it is often a symlink to the current release.
1933
  for ac_dir in               \
1934
    /usr/X11/include          \
1935
    /usr/X11R6/include        \
1936
    /usr/X11R5/include        \
1937
    /usr/X11R4/include        \
1938
                              \
1939
    /usr/include/X11          \
1940
    /usr/include/X11R6        \
1941
    /usr/include/X11R5        \
1942
    /usr/include/X11R4        \
1943
                              \
1944
    /usr/local/X11/include    \
1945
    /usr/local/X11R6/include  \
1946
    /usr/local/X11R5/include  \
1947
    /usr/local/X11R4/include  \
1948
                              \
1949
    /usr/local/include/X11    \
1950
    /usr/local/include/X11R6  \
1951
    /usr/local/include/X11R5  \
1952
    /usr/local/include/X11R4  \
1953
                              \
1954
    /usr/X386/include         \
1955
    /usr/x386/include         \
1956
    /usr/XFree86/include/X11  \
1957
                              \
1958
    /usr/include              \
1959
    /usr/local/include        \
1960
    /usr/unsupported/include  \
1961
    /usr/athena/include       \
1962
    /usr/local/x11r5/include  \
1963
    /usr/lpp/Xamples/include  \
1964
                              \
1965
    /usr/openwin/include      \
1966
    /usr/openwin/share/include \
1967
    ; \
1968
  do
1969
    if test -r "$ac_dir/$x_direct_test_include"; then
1970
      ac_x_includes=$ac_dir
1971
      break
1972
    fi
1973
  done
1974
fi
1975
rm -f conftest*
1976
fi # $ac_x_includes = NO
1977
 
1978
if test "$ac_x_libraries" = NO; then
1979
  # Check for the libraries.
1980
 
1981
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
1982
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1983
 
1984
  # See if we find them without any special options.
1985
  # Don't add to $LIBS permanently.
1986
  ac_save_LIBS="$LIBS"
1987
  LIBS="-l$x_direct_test_library $LIBS"
1988
cat > conftest.$ac_ext <
1989
#line 1990 "configure"
1990
#include "confdefs.h"
1991
 
1992
int main() {
1993
${x_direct_test_function}()
1994
; return 0; }
1995
EOF
1996
if { (eval echo configure:1997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1997
  rm -rf conftest*
1998
  LIBS="$ac_save_LIBS"
1999
# We can link X programs with no special library path.
2000
ac_x_libraries=
2001
else
2002
  echo "configure: failed program was:" >&5
2003
  cat conftest.$ac_ext >&5
2004
  rm -rf conftest*
2005
  LIBS="$ac_save_LIBS"
2006
# First see if replacing the include by lib works.
2007
# Check X11 before X11Rn because it is often a symlink to the current release.
2008
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2009
    /usr/X11/lib          \
2010
    /usr/X11R6/lib        \
2011
    /usr/X11R5/lib        \
2012
    /usr/X11R4/lib        \
2013
                          \
2014
    /usr/lib/X11          \
2015
    /usr/lib/X11R6        \
2016
    /usr/lib/X11R5        \
2017
    /usr/lib/X11R4        \
2018
                          \
2019
    /usr/local/X11/lib    \
2020
    /usr/local/X11R6/lib  \
2021
    /usr/local/X11R5/lib  \
2022
    /usr/local/X11R4/lib  \
2023
                          \
2024
    /usr/local/lib/X11    \
2025
    /usr/local/lib/X11R6  \
2026
    /usr/local/lib/X11R5  \
2027
    /usr/local/lib/X11R4  \
2028
                          \
2029
    /usr/X386/lib         \
2030
    /usr/x386/lib         \
2031
    /usr/XFree86/lib/X11  \
2032
                          \
2033
    /usr/lib              \
2034
    /usr/local/lib        \
2035
    /usr/unsupported/lib  \
2036
    /usr/athena/lib       \
2037
    /usr/local/x11r5/lib  \
2038
    /usr/lpp/Xamples/lib  \
2039
    /lib/usr/lib/X11      \
2040
                          \
2041
    /usr/openwin/lib      \
2042
    /usr/openwin/share/lib \
2043
    ; \
2044
do
2045
  for ac_extension in a so sl; do
2046
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2047
      ac_x_libraries=$ac_dir
2048
      break 2
2049
    fi
2050
  done
2051
done
2052
fi
2053
rm -f conftest*
2054
fi # $ac_x_libraries = NO
2055
 
2056
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2057
  # Didn't find X anywhere.  Cache the known absence of X.
2058
  ac_cv_have_x="have_x=no"
2059
else
2060
  # Record where we found X for the cache.
2061
  ac_cv_have_x="have_x=yes \
2062
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2063
fi
2064
fi
2065
  fi
2066
  eval "$ac_cv_have_x"
2067
fi # $with_x != no
2068
 
2069
if test "$have_x" != yes; then
2070
  echo "$ac_t""$have_x" 1>&6
2071
  no_x=yes
2072
else
2073
  # If each of the values was on the command line, it overrides each guess.
2074
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2075
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2076
  # Update the cache value to reflect the command line values.
2077
  ac_cv_have_x="have_x=yes \
2078
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2079
  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2080
fi
2081
 
2082
not_really_there=""
2083
if test "$no_x" = ""; then
2084
    if test "$x_includes" = ""; then
2085
        cat > conftest.$ac_ext <
2086
#line 2087 "configure"
2087
#include "confdefs.h"
2088
#include 
2089
EOF
2090
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2091
{ (eval echo configure:2092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2092
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2093
if test -z "$ac_err"; then
2094
  :
2095
else
2096
  echo "$ac_err" >&5
2097
  echo "configure: failed program was:" >&5
2098
  cat conftest.$ac_ext >&5
2099
  rm -rf conftest*
2100
  not_really_there="yes"
2101
fi
2102
rm -f conftest*
2103
    else
2104
        if test ! -r $x_includes/X11/Intrinsic.h; then
2105
            not_really_there="yes"
2106
        fi
2107
    fi
2108
fi
2109
if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then
2110
    echo $ac_n "checking for X11 header files""... $ac_c" 1>&6
2111
echo "configure:2112: checking for X11 header files" >&5
2112
    XINCLUDES="# no special path needed"
2113
    cat > conftest.$ac_ext <
2114
#line 2115 "configure"
2115
#include "confdefs.h"
2116
#include 
2117
EOF
2118
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2119
{ (eval echo configure:2120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2120
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2121
if test -z "$ac_err"; then
2122
  :
2123
else
2124
  echo "$ac_err" >&5
2125
  echo "configure: failed program was:" >&5
2126
  cat conftest.$ac_ext >&5
2127
  rm -rf conftest*
2128
  XINCLUDES="nope"
2129
fi
2130
rm -f conftest*
2131
    if test "$XINCLUDES" = nope; then
2132
        dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/X11R6/include /usr/X11R5/include /usr/include/X11R5 /usr/include/X11R4 /usr/openwin/include /usr/X11/include /usr/sww/include"
2133
        for i in $dirs ; do
2134
            if test -r $i/X11/Intrinsic.h; then
2135
                echo "$ac_t""$i" 1>&6
2136
                XINCLUDES=" -I$i"
2137
                break
2138
            fi
2139
        done
2140
    fi
2141
else
2142
    if test "$x_includes" != ""; then
2143
        XINCLUDES=-I$x_includes
2144
    else
2145
        XINCLUDES="# no special path needed"
2146
    fi
2147
fi
2148
if test "$XINCLUDES" = nope; then
2149
    echo "$ac_t""couldn't find any!" 1>&6
2150
    XINCLUDES="# no include files found"
2151
fi
2152
 
2153
if test "$no_x" = yes; then
2154
    echo $ac_n "checking for X11 libraries""... $ac_c" 1>&6
2155
echo "configure:2156: checking for X11 libraries" >&5
2156
    XLIBSW=nope
2157
    dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/X11R6/lib /usr/X11R5/lib /usr/lib/X11R5 /usr/lib/X11R4 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib"
2158
    for i in $dirs ; do
2159
        if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl; then
2160
            echo "$ac_t""$i" 1>&6
2161
            XLIBSW="-L$i -lX11"
2162
            x_libraries="$i"
2163
            break
2164
        fi
2165
    done
2166
else
2167
    if test "$x_libraries" = ""; then
2168
        XLIBSW=-lX11
2169
    else
2170
        XLIBSW="-L$x_libraries -lX11"
2171
    fi
2172
fi
2173
if test "$XLIBSW" = nope ; then
2174
    echo $ac_n "checking for XCreateWindow in -lXwindow""... $ac_c" 1>&6
2175
echo "configure:2176: checking for XCreateWindow in -lXwindow" >&5
2176
ac_lib_var=`echo Xwindow'_'XCreateWindow | sed 'y%./+-%__p_%'`
2177
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2178
  echo $ac_n "(cached) $ac_c" 1>&6
2179
else
2180
  ac_save_LIBS="$LIBS"
2181
LIBS="-lXwindow  $LIBS"
2182
cat > conftest.$ac_ext <
2183
#line 2184 "configure"
2184
#include "confdefs.h"
2185
/* Override any gcc2 internal prototype to avoid an error.  */
2186
/* We use char because int might match the return type of a gcc2
2187
    builtin and then its argument prototype would still apply.  */
2188
char XCreateWindow();
2189
 
2190
int main() {
2191
XCreateWindow()
2192
; return 0; }
2193
EOF
2194
if { (eval echo configure:2195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2195
  rm -rf conftest*
2196
  eval "ac_cv_lib_$ac_lib_var=yes"
2197
else
2198
  echo "configure: failed program was:" >&5
2199
  cat conftest.$ac_ext >&5
2200
  rm -rf conftest*
2201
  eval "ac_cv_lib_$ac_lib_var=no"
2202
fi
2203
rm -f conftest*
2204
LIBS="$ac_save_LIBS"
2205
 
2206
fi
2207
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2208
  echo "$ac_t""yes" 1>&6
2209
  XLIBSW=-lXwindow
2210
else
2211
  echo "$ac_t""no" 1>&6
2212
fi
2213
 
2214
fi
2215
if test "$XLIBSW" = nope ; then
2216
    echo "$ac_t""couldn't find any!  Using -lX11." 1>&6
2217
    XLIBSW=-lX11
2218
fi
2219
 
2220
#--------------------------------------------------------------------
2221
#       Various manipulations on the search path used at runtime to
2222
#       find shared libraries:
2223
#       1. If the X library binaries are in a non-standard directory,
2224
#          add the X library location into that search path.
2225
#       2. On systems such as AIX and Ultrix that use "-L" as the
2226
#          search path option, colons cannot be used to separate
2227
#          directories from each other. Change colons to " -L".
2228
#       3. Create two sets of search flags, one for use in cc lines
2229
#          and the other for when the linker is invoked directly.  In
2230
#          the second case, '-Wl,' must be stripped off and commas must
2231
#          be replaced by spaces.
2232
#--------------------------------------------------------------------
2233
 
2234
if test "x${x_libraries}" != "x"; then
2235
    LIB_RUNTIME_DIR="${LIB_RUNTIME_DIR}:${x_libraries}"
2236
fi
2237
if test "${TCL_LD_SEARCH_FLAGS}" = '-L${LIB_RUNTIME_DIR}'; then
2238
    LIB_RUNTIME_DIR=`echo ${LIB_RUNTIME_DIR} |sed -e 's/:/ -L/g'`
2239
fi
2240
 
2241
# The statement below is very tricky!  It actually *evaluates* the
2242
# string in TCL_LD_SEARCH_FLAGS, which causes a substitution of the
2243
# variable LIB_RUNTIME_DIR.
2244
 
2245
eval "TK_CC_SEARCH_FLAGS=\"$TCL_LD_SEARCH_FLAGS\""
2246
TK_LD_SEARCH_FLAGS=`echo ${TK_CC_SEARCH_FLAGS} |sed -e "s|-Wl,||g" -e "s|,| |g"`
2247
 
2248
# CYGNUS LOCAL: Don't hack TK_LD_SEARCH_FLAGS if SHLIB_LD is gcc.
2249
case "${SHLIB_LD}" in
2250
  *gcc*) TK_LD_SEARCH_FLAGS="${TK_CC_SEARCH_FLAGS}" ;;
2251
esac
2252
 
2253
#
2254
# CYGNUS LOCAL:  statically link on Solaris, HPUX & SunOS so that
2255
#                we don't have problems with people not having libraries
2256
#                installed or not having LD_LIBRARY_PATH set.
2257
#
2258
 
2259
    case "$host" in
2260
#
2261
# gdb linked statically w/ Solaris iff GCC and GNU ld are used,
2262
# otherwise dynamic
2263
#
2264
        *-*-solaris2*)
2265
            sol_xlibsw=
2266
            if test "x$GCC" = "xyes" ; then
2267
               # This is probably the simplest way to test for GNU ld.
2268
               # It only works with relatively recent versions of GNU
2269
               # ld.
2270
               gld_text=`$CC -Wl,--version 2>&1 | sed 1q`
2271
               case "$gld_text" in
2272
                GNU* | *BFD*)
2273
                    # sol2.* has libX*.so files in /usr/lib,
2274
                    # but not libX*.a files, so we need to force a
2275
                    # -L/usr/openwin/lib option, sometimes.
2276
                    # FIXME: this won't work right if someone has
2277
                    # their own X libraries in say /usr/local/lib.
2278
                    case "$XLIBSW" in
2279
                    *-L*) ;;
2280
                    *) if test ! -f /usr/lib/libXt.a; then
2281
                            XLIBSW="-L/usr/openwin/lib $XLIBSW"
2282
                        fi
2283
                        ;;
2284
                    esac
2285
 
2286
                   # Why do we link against libX11 twice?  Because the
2287
                   # Openwin X11 and Xext libraries are seriously broken.
2288
                   sol_xlibsw="-Wl,-Bstatic $XLIBSW -lXext -lX11 -Wl,-Bdynamic"
2289
                   ;;
2290
               esac
2291
            fi
2292
            if test -z "$sol_xlibsw"; then
2293
              if test "x$x_libraries" != "x"; then
2294
                XLIBSW="$XLIBSW -R$x_libraries"
2295
              fi
2296
            else
2297
               XLIBSW=$sol_xlibsw
2298
               suppress_enable_shared=yes
2299
            fi
2300
            ;;
2301
#
2302
# gdb linked statically w/ SunOS or HPUX, but not hpux11 wide
2303
#
2304
        hppa*64*-hp-hpux*)
2305
            ;;
2306
 
2307
        m68k-hp-hpux*|hppa*-hp-hpux*|sparc-sun-sunos*)
2308
            if test "x$x_libraries" != "x" ;
2309
            then
2310
               XLIBSW="$x_libraries/libX11.a"
2311
            else
2312
               XLIBSW="/usr/lib/libX11.a"
2313
            fi
2314
            suppress_enable_shared=yes
2315
            ;;
2316
#
2317
# default is to link dynamically
2318
#
2319
        *)
2320
           ;;
2321
    esac
2322
#
2323
# END CYGNUS LOCAL
2324
 
2325
#--------------------------------------------------------------------
2326
#       Check for the existence of various libraries.  The order here
2327
#       is important, so that then end up in the right order in the
2328
#       command line generated by make.  The -lsocket and -lnsl libraries
2329
#       require a couple of special tricks:
2330
#       1. Use "connect" and "accept" to check for -lsocket, and
2331
#          "gethostbyname" to check for -lnsl.
2332
#       2. Use each function name only once:  can't redo a check because
2333
#          autoconf caches the results of the last check and won't redo it.
2334
#       3. Use -lnsl and -lsocket only if they supply procedures that
2335
#          aren't already present in the normal libraries.  This is because
2336
#          IRIX 5.2 has libraries, but they aren't needed and they're
2337
#          bogus:  they goof up name resolution if used.
2338
#       4. On some SVR4 systems, can't use -lsocket without -lnsl too.
2339
#          To get around this problem, check for both libraries together
2340
#          if -lsocket doesn't work by itself.
2341
#--------------------------------------------------------------------
2342
 
2343
echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
2344
echo "configure:2345: checking for main in -lXbsd" >&5
2345
ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
2346
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2347
  echo $ac_n "(cached) $ac_c" 1>&6
2348
else
2349
  ac_save_LIBS="$LIBS"
2350
LIBS="-lXbsd  $LIBS"
2351
cat > conftest.$ac_ext <
2352
#line 2353 "configure"
2353
#include "confdefs.h"
2354
 
2355
int main() {
2356
main()
2357
; return 0; }
2358
EOF
2359
if { (eval echo configure:2360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2360
  rm -rf conftest*
2361
  eval "ac_cv_lib_$ac_lib_var=yes"
2362
else
2363
  echo "configure: failed program was:" >&5
2364
  cat conftest.$ac_ext >&5
2365
  rm -rf conftest*
2366
  eval "ac_cv_lib_$ac_lib_var=no"
2367
fi
2368
rm -f conftest*
2369
LIBS="$ac_save_LIBS"
2370
 
2371
fi
2372
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2373
  echo "$ac_t""yes" 1>&6
2374
  LIBS="$LIBS -lXbsd"
2375
else
2376
  echo "$ac_t""no" 1>&6
2377
fi
2378
 
2379
 
2380
# CYGNUS LOCAL: Store any socket library(ies) in the cache, and don't
2381
# mess up the cache values of the functions we check for.
2382
echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
2383
echo "configure:2384: checking for socket libraries" >&5
2384
if eval "test \"`echo '$''{'tcl_cv_lib_sockets'+set}'`\" = set"; then
2385
  echo $ac_n "(cached) $ac_c" 1>&6
2386
else
2387
  tcl_cv_lib_sockets=
2388
  tk_checkBoth=0
2389
  unset ac_cv_func_connect
2390
  echo $ac_n "checking for connect""... $ac_c" 1>&6
2391
echo "configure:2392: checking for connect" >&5
2392
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2393
  echo $ac_n "(cached) $ac_c" 1>&6
2394
else
2395
  cat > conftest.$ac_ext <
2396
#line 2397 "configure"
2397
#include "confdefs.h"
2398
/* System header to define __stub macros and hopefully few prototypes,
2399
    which can conflict with char connect(); below.  */
2400
#include 
2401
/* Override any gcc2 internal prototype to avoid an error.  */
2402
/* We use char because int might match the return type of a gcc2
2403
    builtin and then its argument prototype would still apply.  */
2404
char connect();
2405
 
2406
int main() {
2407
 
2408
/* The GNU C library defines this for functions which it implements
2409
    to always fail with ENOSYS.  Some functions are actually named
2410
    something starting with __ and the normal name is an alias.  */
2411
#if defined (__stub_connect) || defined (__stub___connect)
2412
choke me
2413
#else
2414
connect();
2415
#endif
2416
 
2417
; return 0; }
2418
EOF
2419
if { (eval echo configure:2420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2420
  rm -rf conftest*
2421
  eval "ac_cv_func_connect=yes"
2422
else
2423
  echo "configure: failed program was:" >&5
2424
  cat conftest.$ac_ext >&5
2425
  rm -rf conftest*
2426
  eval "ac_cv_func_connect=no"
2427
fi
2428
rm -f conftest*
2429
fi
2430
 
2431
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2432
  echo "$ac_t""yes" 1>&6
2433
  tk_checkSocket=0
2434
else
2435
  echo "$ac_t""no" 1>&6
2436
tk_checkSocket=1
2437
fi
2438
 
2439
  if test "$tk_checkSocket" = 1; then
2440
      unset ac_cv_func_connect
2441
      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2442
echo "configure:2443: checking for main in -lsocket" >&5
2443
ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2444
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2445
  echo $ac_n "(cached) $ac_c" 1>&6
2446
else
2447
  ac_save_LIBS="$LIBS"
2448
LIBS="-lsocket  $LIBS"
2449
cat > conftest.$ac_ext <
2450
#line 2451 "configure"
2451
#include "confdefs.h"
2452
 
2453
int main() {
2454
main()
2455
; return 0; }
2456
EOF
2457
if { (eval echo configure:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2458
  rm -rf conftest*
2459
  eval "ac_cv_lib_$ac_lib_var=yes"
2460
else
2461
  echo "configure: failed program was:" >&5
2462
  cat conftest.$ac_ext >&5
2463
  rm -rf conftest*
2464
  eval "ac_cv_lib_$ac_lib_var=no"
2465
fi
2466
rm -f conftest*
2467
LIBS="$ac_save_LIBS"
2468
 
2469
fi
2470
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2471
  echo "$ac_t""yes" 1>&6
2472
  tcl_cv_lib_sockets="-lsocket"
2473
else
2474
  echo "$ac_t""no" 1>&6
2475
tk_checkBoth=1
2476
fi
2477
 
2478
  fi
2479
  if test "$tk_checkBoth" = 1; then
2480
      tk_oldLibs=$LIBS
2481
      LIBS="$LIBS -lsocket -lnsl"
2482
      unset ac_cv_func_accept
2483
      echo $ac_n "checking for accept""... $ac_c" 1>&6
2484
echo "configure:2485: checking for accept" >&5
2485
if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
2486
  echo $ac_n "(cached) $ac_c" 1>&6
2487
else
2488
  cat > conftest.$ac_ext <
2489
#line 2490 "configure"
2490
#include "confdefs.h"
2491
/* System header to define __stub macros and hopefully few prototypes,
2492
    which can conflict with char accept(); below.  */
2493
#include 
2494
/* Override any gcc2 internal prototype to avoid an error.  */
2495
/* We use char because int might match the return type of a gcc2
2496
    builtin and then its argument prototype would still apply.  */
2497
char accept();
2498
 
2499
int main() {
2500
 
2501
/* The GNU C library defines this for functions which it implements
2502
    to always fail with ENOSYS.  Some functions are actually named
2503
    something starting with __ and the normal name is an alias.  */
2504
#if defined (__stub_accept) || defined (__stub___accept)
2505
choke me
2506
#else
2507
accept();
2508
#endif
2509
 
2510
; return 0; }
2511
EOF
2512
if { (eval echo configure:2513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2513
  rm -rf conftest*
2514
  eval "ac_cv_func_accept=yes"
2515
else
2516
  echo "configure: failed program was:" >&5
2517
  cat conftest.$ac_ext >&5
2518
  rm -rf conftest*
2519
  eval "ac_cv_func_accept=no"
2520
fi
2521
rm -f conftest*
2522
fi
2523
 
2524
if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
2525
  echo "$ac_t""yes" 1>&6
2526
  tcl_checkNsl=0
2527
                     tcl_cv_lib_sockets="-lsocket -lnsl"
2528
else
2529
  echo "$ac_t""no" 1>&6
2530
fi
2531
 
2532
      unset ac_cv_func_accept
2533
      LIBS=$tk_oldLibs
2534
  fi
2535
  unset ac_cv_func_gethostbyname
2536
  tk_oldLibs=$LIBS
2537
  LIBS="$LIBS $tk_cv_lib_sockets"
2538
  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2539
echo "configure:2540: checking for gethostbyname" >&5
2540
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2541
  echo $ac_n "(cached) $ac_c" 1>&6
2542
else
2543
  cat > conftest.$ac_ext <
2544
#line 2545 "configure"
2545
#include "confdefs.h"
2546
/* System header to define __stub macros and hopefully few prototypes,
2547
    which can conflict with char gethostbyname(); below.  */
2548
#include 
2549
/* Override any gcc2 internal prototype to avoid an error.  */
2550
/* We use char because int might match the return type of a gcc2
2551
    builtin and then its argument prototype would still apply.  */
2552
char gethostbyname();
2553
 
2554
int main() {
2555
 
2556
/* The GNU C library defines this for functions which it implements
2557
    to always fail with ENOSYS.  Some functions are actually named
2558
    something starting with __ and the normal name is an alias.  */
2559
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2560
choke me
2561
#else
2562
gethostbyname();
2563
#endif
2564
 
2565
; return 0; }
2566
EOF
2567
if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2568
  rm -rf conftest*
2569
  eval "ac_cv_func_gethostbyname=yes"
2570
else
2571
  echo "configure: failed program was:" >&5
2572
  cat conftest.$ac_ext >&5
2573
  rm -rf conftest*
2574
  eval "ac_cv_func_gethostbyname=no"
2575
fi
2576
rm -f conftest*
2577
fi
2578
 
2579
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2580
  echo "$ac_t""yes" 1>&6
2581
  :
2582
else
2583
  echo "$ac_t""no" 1>&6
2584
echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2585
echo "configure:2586: checking for main in -lnsl" >&5
2586
ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2587
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2588
  echo $ac_n "(cached) $ac_c" 1>&6
2589
else
2590
  ac_save_LIBS="$LIBS"
2591
LIBS="-lnsl  $LIBS"
2592
cat > conftest.$ac_ext <
2593
#line 2594 "configure"
2594
#include "confdefs.h"
2595
 
2596
int main() {
2597
main()
2598
; return 0; }
2599
EOF
2600
if { (eval echo configure:2601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2601
  rm -rf conftest*
2602
  eval "ac_cv_lib_$ac_lib_var=yes"
2603
else
2604
  echo "configure: failed program was:" >&5
2605
  cat conftest.$ac_ext >&5
2606
  rm -rf conftest*
2607
  eval "ac_cv_lib_$ac_lib_var=no"
2608
fi
2609
rm -f conftest*
2610
LIBS="$ac_save_LIBS"
2611
 
2612
fi
2613
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2614
  echo "$ac_t""yes" 1>&6
2615
  tcl_cv_lib_sockets="$tcl_cv_lib_sockets -lnsl"
2616
else
2617
  echo "$ac_t""no" 1>&6
2618
fi
2619
 
2620
fi
2621
 
2622
  unset ac_cv_func_gethostbyname
2623
  LIBS=$tcl_oldLIBS
2624
 
2625
fi
2626
 
2627
echo "$ac_t""$tcl_cv_lib_sockets" 1>&6
2628
test -z "$tcl_cv_lib_sockets" || LIBS="$LIBS $tcl_cv_lib_sockets"
2629
 
2630
#--------------------------------------------------------------------
2631
# One more check related to the X libraries.  The standard releases
2632
# of Ultrix don't support the "xauth" mechanism, so send won't work
2633
# unless TK_NO_SECURITY is defined.  However, there are usually copies
2634
# of the MIT X server available as well, which do support xauth.
2635
# Check for the MIT stuff and use it if it exists.
2636
#
2637
# Note: can't use ac_check_lib macro (at least, not in Autoconf 2.1)
2638
# because it can't deal with the "-" in the library name.
2639
#--------------------------------------------------------------------
2640
 
2641
if test -d /usr/include/mit ; then
2642
    echo $ac_n "checking MIT X libraries""... $ac_c" 1>&6
2643
echo "configure:2644: checking MIT X libraries" >&5
2644
    tk_oldCFlags=$CFLAGS
2645
    CFLAGS="$CFLAGS -I/usr/include/mit"
2646
    tk_oldLibs=$LIBS
2647
    LIBS="$LIBS -lX11-mit"
2648
    cat > conftest.$ac_ext <
2649
#line 2650 "configure"
2650
#include "confdefs.h"
2651
 
2652
        #include 
2653
 
2654
int main() {
2655
 
2656
        XOpenDisplay(0);
2657
 
2658
; return 0; }
2659
EOF
2660
if { (eval echo configure:2661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2661
  rm -rf conftest*
2662
 
2663
        echo "$ac_t""yes" 1>&6
2664
        XLIBSW="-lX11-mit"
2665
        XINCLUDES="-I/usr/include/mit"
2666
 
2667
else
2668
  echo "configure: failed program was:" >&5
2669
  cat conftest.$ac_ext >&5
2670
  rm -rf conftest*
2671
  echo "$ac_t""no" 1>&6
2672
fi
2673
rm -f conftest*
2674
    CFLAGS=$tk_oldCFlags
2675
    LIBS=$tk_oldLibs
2676
fi
2677
 
2678
#--------------------------------------------------------------------
2679
#       On a few very rare systems, all of the libm.a stuff is
2680
#       already in libc.a.  Set compiler flags accordingly.
2681
#       Also, Linux requires the "ieee" library for math to
2682
#       work right (and it must appear before "-lm").
2683
#--------------------------------------------------------------------
2684
 
2685
MATH_LIBS=""
2686
echo $ac_n "checking for sin""... $ac_c" 1>&6
2687
echo "configure:2688: checking for sin" >&5
2688
if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then
2689
  echo $ac_n "(cached) $ac_c" 1>&6
2690
else
2691
  cat > conftest.$ac_ext <
2692
#line 2693 "configure"
2693
#include "confdefs.h"
2694
/* System header to define __stub macros and hopefully few prototypes,
2695
    which can conflict with char sin(); below.  */
2696
#include 
2697
/* Override any gcc2 internal prototype to avoid an error.  */
2698
/* We use char because int might match the return type of a gcc2
2699
    builtin and then its argument prototype would still apply.  */
2700
char sin();
2701
 
2702
int main() {
2703
 
2704
/* The GNU C library defines this for functions which it implements
2705
    to always fail with ENOSYS.  Some functions are actually named
2706
    something starting with __ and the normal name is an alias.  */
2707
#if defined (__stub_sin) || defined (__stub___sin)
2708
choke me
2709
#else
2710
sin();
2711
#endif
2712
 
2713
; return 0; }
2714
EOF
2715
if { (eval echo configure:2716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2716
  rm -rf conftest*
2717
  eval "ac_cv_func_sin=yes"
2718
else
2719
  echo "configure: failed program was:" >&5
2720
  cat conftest.$ac_ext >&5
2721
  rm -rf conftest*
2722
  eval "ac_cv_func_sin=no"
2723
fi
2724
rm -f conftest*
2725
fi
2726
 
2727
if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
2728
  echo "$ac_t""yes" 1>&6
2729
  :
2730
else
2731
  echo "$ac_t""no" 1>&6
2732
MATH_LIBS="-lm"
2733
fi
2734
 
2735
echo $ac_n "checking for main in -lieee""... $ac_c" 1>&6
2736
echo "configure:2737: checking for main in -lieee" >&5
2737
ac_lib_var=`echo ieee'_'main | sed 'y%./+-%__p_%'`
2738
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2739
  echo $ac_n "(cached) $ac_c" 1>&6
2740
else
2741
  ac_save_LIBS="$LIBS"
2742
LIBS="-lieee  $LIBS"
2743
cat > conftest.$ac_ext <
2744
#line 2745 "configure"
2745
#include "confdefs.h"
2746
 
2747
int main() {
2748
main()
2749
; return 0; }
2750
EOF
2751
if { (eval echo configure:2752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2752
  rm -rf conftest*
2753
  eval "ac_cv_lib_$ac_lib_var=yes"
2754
else
2755
  echo "configure: failed program was:" >&5
2756
  cat conftest.$ac_ext >&5
2757
  rm -rf conftest*
2758
  eval "ac_cv_lib_$ac_lib_var=no"
2759
fi
2760
rm -f conftest*
2761
LIBS="$ac_save_LIBS"
2762
 
2763
fi
2764
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2765
  echo "$ac_t""yes" 1>&6
2766
  MATH_LIBS="-lieee $MATH_LIBS"
2767
else
2768
  echo "$ac_t""no" 1>&6
2769
fi
2770
 
2771
 
2772
#--------------------------------------------------------------------
2773
#       Figure out whether "char" is unsigned.  If so, set a
2774
#       #define for __CHAR_UNSIGNED__.
2775
#--------------------------------------------------------------------
2776
 
2777
echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2778
echo "configure:2779: checking whether char is unsigned" >&5
2779
if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2780
  echo $ac_n "(cached) $ac_c" 1>&6
2781
else
2782
  if test "$GCC" = yes; then
2783
  # GCC predefines this symbol on systems where it applies.
2784
cat > conftest.$ac_ext <
2785
#line 2786 "configure"
2786
#include "confdefs.h"
2787
#ifdef __CHAR_UNSIGNED__
2788
  yes
2789
#endif
2790
 
2791
EOF
2792
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2793
  egrep "yes" >/dev/null 2>&1; then
2794
  rm -rf conftest*
2795
  ac_cv_c_char_unsigned=yes
2796
else
2797
  rm -rf conftest*
2798
  ac_cv_c_char_unsigned=no
2799
fi
2800
rm -f conftest*
2801
 
2802
else
2803
if test "$cross_compiling" = yes; then
2804
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2805
else
2806
  cat > conftest.$ac_ext <
2807
#line 2808 "configure"
2808
#include "confdefs.h"
2809
/* volatile prevents gcc2 from optimizing the test away on sparcs.  */
2810
#if !defined(__STDC__) || __STDC__ != 1
2811
#define volatile
2812
#endif
2813
main() {
2814
  volatile char c = 255; exit(c < 0);
2815
}
2816
EOF
2817
if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2818
then
2819
  ac_cv_c_char_unsigned=yes
2820
else
2821
  echo "configure: failed program was:" >&5
2822
  cat conftest.$ac_ext >&5
2823
  rm -fr conftest*
2824
  ac_cv_c_char_unsigned=no
2825
fi
2826
rm -fr conftest*
2827
fi
2828
 
2829
fi
2830
fi
2831
 
2832
echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2833
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2834
  cat >> confdefs.h <<\EOF
2835
#define __CHAR_UNSIGNED__ 1
2836
EOF
2837
 
2838
fi
2839
 
2840
 
2841
#--------------------------------------------------------------------
2842
#       Under Solaris 2.4, strtod returns the wrong value for the
2843
#       terminating character under some conditions.  Check for this
2844
#       and if the problem exists use a substitute procedure
2845
#       "fixstrtod" (provided by Tcl) that corrects the error.
2846
#--------------------------------------------------------------------
2847
 
2848
echo $ac_n "checking for strtod""... $ac_c" 1>&6
2849
echo "configure:2850: checking for strtod" >&5
2850
if eval "test \"`echo '$''{'ac_cv_func_strtod'+set}'`\" = set"; then
2851
  echo $ac_n "(cached) $ac_c" 1>&6
2852
else
2853
  cat > conftest.$ac_ext <
2854
#line 2855 "configure"
2855
#include "confdefs.h"
2856
/* System header to define __stub macros and hopefully few prototypes,
2857
    which can conflict with char strtod(); below.  */
2858
#include 
2859
/* Override any gcc2 internal prototype to avoid an error.  */
2860
/* We use char because int might match the return type of a gcc2
2861
    builtin and then its argument prototype would still apply.  */
2862
char strtod();
2863
 
2864
int main() {
2865
 
2866
/* The GNU C library defines this for functions which it implements
2867
    to always fail with ENOSYS.  Some functions are actually named
2868
    something starting with __ and the normal name is an alias.  */
2869
#if defined (__stub_strtod) || defined (__stub___strtod)
2870
choke me
2871
#else
2872
strtod();
2873
#endif
2874
 
2875
; return 0; }
2876
EOF
2877
if { (eval echo configure:2878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2878
  rm -rf conftest*
2879
  eval "ac_cv_func_strtod=yes"
2880
else
2881
  echo "configure: failed program was:" >&5
2882
  cat conftest.$ac_ext >&5
2883
  rm -rf conftest*
2884
  eval "ac_cv_func_strtod=no"
2885
fi
2886
rm -f conftest*
2887
fi
2888
 
2889
if eval "test \"`echo '$ac_cv_func_'strtod`\" = yes"; then
2890
  echo "$ac_t""yes" 1>&6
2891
  tk_strtod=1
2892
else
2893
  echo "$ac_t""no" 1>&6
2894
tk_strtod=0
2895
fi
2896
 
2897
if test "$tk_strtod" = 1; then
2898
    echo $ac_n "checking for Solaris 2.4 strtod bug""... $ac_c" 1>&6
2899
echo "configure:2900: checking for Solaris 2.4 strtod bug" >&5
2900
    if test "$cross_compiling" = yes; then
2901
  tk_ok=0
2902
else
2903
  cat > conftest.$ac_ext <
2904
#line 2905 "configure"
2905
#include "confdefs.h"
2906
 
2907
        extern double strtod();
2908
        int main()
2909
        {
2910
            char *string = "NaN";
2911
            char *term;
2912
            strtod(string, &term);
2913
            if ((term != string) && (term[-1] == 0)) {
2914
                exit(1);
2915
            }
2916
            exit(0);
2917
        }
2918
EOF
2919
if { (eval echo configure:2920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2920
then
2921
  tk_ok=1
2922
else
2923
  echo "configure: failed program was:" >&5
2924
  cat conftest.$ac_ext >&5
2925
  rm -fr conftest*
2926
  tk_ok=0
2927
fi
2928
rm -fr conftest*
2929
fi
2930
 
2931
    if test "$tk_ok" = 1; then
2932
        echo "$ac_t""ok" 1>&6
2933
    else
2934
        echo "$ac_t""buggy" 1>&6
2935
        cat >> confdefs.h <<\EOF
2936
#define strtod fixstrtod
2937
EOF
2938
 
2939
    fi
2940
fi
2941
 
2942
#--------------------------------------------------------------------
2943
#       The statements below define a collection of symbols related to
2944
#       building libtk as a shared library instead of a static library.
2945
#--------------------------------------------------------------------
2946
 
2947
# Check whether --enable-shared or --disable-shared was given.
2948
if test "${enable_shared+set}" = set; then
2949
  enableval="$enable_shared"
2950
  ok=$enableval
2951
else
2952
  ok=no
2953
fi
2954
 
2955
 
2956
# CYGNUS LOCAL: on machines where static linking of libX11 is important,
2957
# it is also important to build a static libtk.
2958
if test -n "$suppress_enable_shared"; then
2959
   ok=no
2960
fi
2961
# END CYGNUS LOCAL
2962
 
2963
TK_SHARED_LIB_FILE=
2964
TK_UNSHARED_LIB_FILE=
2965
if test "$ok" = "yes" -a "${SHLIB_SUFFIX}" != ""; then
2966
    TK_SHARED_BUILD=1
2967
    TK_SHLIB_CFLAGS="${SHLIB_CFLAGS}"
2968
    eval "TK_LIB_FILE=libtk${TCL_SHARED_LIB_SUFFIX}"
2969
    TK_SHARED_LIB_FILE="$TK_LIB_FILE"
2970
    MAKE_LIB="\${SHLIB_LD} -o ${TK_LIB_FILE} \${OBJS} \$(TK_LD_SEARCH_FLAGS) ${SHLIB_LD_LIBS}"
2971
    RANLIB=":"
2972
else
2973
    TK_SHARED_BUILD=0
2974
    TK_SHLIB_CFLAGS=""
2975
    eval "TK_LIB_FILE=libtk${TCL_UNSHARED_LIB_SUFFIX}"
2976
    TK_UNSHARED_LIB_FILE="$TK_LIB_FILE"
2977
    MAKE_LIB="ar cr ${TK_LIB_FILE} \${OBJS}"
2978
fi
2979
 
2980
TK_BUILD_INCLUDES="-I`cd $srcdir/../generic; pwd`"
2981
 
2982
# Note:  in the following variable, it's important to use the absolute
2983
# path name of the Tcl directory rather than "..":  this is because
2984
# AIX remembers this path and will attempt to use it at run-time to look
2985
# up the Tcl library.
2986
 
2987
if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
2988
    TK_BUILD_LIB_SPEC="-L`pwd` -ltk${VERSION}"
2989
    TK_LIB_FLAG="-ltk${VERSION}\${TK_DBGX}"
2990
else
2991
    TK_BUILD_LIB_SPEC="-L`pwd` -ltk`echo ${VERSION} | tr -d .`"
2992
    TK_LIB_FLAG="-ltk`echo ${VERSION} | tr -d .`\${TK_DBGX}"
2993
fi
2994
 
2995
TK_LIB_FULL_PATH="`pwd`/${TK_LIB_FILE}"
2996
 
2997
 
2998
 
2999
 
3000
 
3001
 
3002
 
3003
 
3004
 
3005
 
3006
 
3007
 
3008
 
3009
 
3010
 
3011
 
3012
 
3013
 
3014
 
3015
 
3016
 
3017
 
3018
 
3019
 
3020
 
3021
 
3022
 
3023
 
3024
 
3025
 
3026
 
3027
# CYGNUS LOCAL
3028
# Need more variables to keep shared/static linking separate.
3029
 
3030
 
3031
 
3032
 
3033
# END CYGNUS LOCAL
3034
 
3035
trap '' 1 2 15
3036
cat > confcache <<\EOF
3037
# This file is a shell script that caches the results of configure
3038
# tests run on this system so they can be shared between configure
3039
# scripts and configure runs.  It is not useful on other systems.
3040
# If it contains results you don't want to keep, you may remove or edit it.
3041
#
3042
# By default, configure uses ./config.cache as the cache file,
3043
# creating it if it does not exist already.  You can give configure
3044
# the --cache-file=FILE option to use a different cache file; that is
3045
# what configure does when it calls configure scripts in
3046
# subdirectories, so they share the cache.
3047
# Giving --cache-file=/dev/null disables caching, for debugging configure.
3048
# config.status only pays attention to the cache file if you give it the
3049
# --recheck option to rerun configure.
3050
#
3051
EOF
3052
# The following way of writing the cache mishandles newlines in values,
3053
# but we know of no workaround that is simple, portable, and efficient.
3054
# So, don't put newlines in cache variables' values.
3055
# Ultrix sh set writes to stderr and can't be redirected directly,
3056
# and sets the high bit in the cache file unless we assign to the vars.
3057
(set) 2>&1 |
3058
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
3059
  *ac_space=\ *)
3060
    # `set' does not quote correctly, so add quotes (double-quote substitution
3061
    # turns \\\\ into \\, and sed turns \\ into \).
3062
    sed -n \
3063
      -e "s/'/'\\\\''/g" \
3064
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3065
    ;;
3066
  *)
3067
    # `set' quotes correctly as required by POSIX, so do not add quotes.
3068
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3069
    ;;
3070
  esac >> confcache
3071
if cmp -s $cache_file confcache; then
3072
  :
3073
else
3074
  if test -w $cache_file; then
3075
    echo "updating cache $cache_file"
3076
    cat confcache > $cache_file
3077
  else
3078
    echo "not updating unwritable cache $cache_file"
3079
  fi
3080
fi
3081
rm -f confcache
3082
 
3083
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3084
 
3085
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3086
# Let make expand exec_prefix.
3087
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3088
 
3089
# Any assignment to VPATH causes Sun make to only execute
3090
# the first set of double-colon rules, so remove it if not needed.
3091
# If there is a colon in the path, we need to keep it.
3092
if test "x$srcdir" = x.; then
3093
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3094
fi
3095
 
3096
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3097
 
3098
# Transform confdefs.h into DEFS.
3099
# Protect against shell expansion while executing Makefile rules.
3100
# Protect against Makefile macro expansion.
3101
cat > conftest.defs <<\EOF
3102
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3103
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
3104
s%\[%\\&%g
3105
s%\]%\\&%g
3106
s%\$%$$%g
3107
EOF
3108
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3109
rm -f conftest.defs
3110
 
3111
 
3112
# Without the "./", some shells look in PATH for config.status.
3113
: ${CONFIG_STATUS=./config.status}
3114
 
3115
echo creating $CONFIG_STATUS
3116
rm -f $CONFIG_STATUS
3117
cat > $CONFIG_STATUS <
3118
#! /bin/sh
3119
# Generated automatically by configure.
3120
# Run this file to recreate the current configuration.
3121
# This directory was configured as follows,
3122
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3123
#
3124
# $0 $ac_configure_args
3125
#
3126
# Compiler output produced by configure, useful for debugging
3127
# configure, is in ./config.log if it exists.
3128
 
3129
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3130
for ac_option
3131
do
3132
  case "\$ac_option" in
3133
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3134
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3135
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3136
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3137
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
3138
    exit 0 ;;
3139
  -help | --help | --hel | --he | --h)
3140
    echo "\$ac_cs_usage"; exit 0 ;;
3141
  *) echo "\$ac_cs_usage"; exit 1 ;;
3142
  esac
3143
done
3144
 
3145
ac_given_srcdir=$srcdir
3146
ac_given_INSTALL="$INSTALL"
3147
 
3148
trap 'rm -fr `echo "Makefile tkConfig.sh" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3149
EOF
3150
cat >> $CONFIG_STATUS <
3151
 
3152
# Protect against being on the right side of a sed subst in config.status.
3153
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3154
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3155
$ac_vpsub
3156
$extrasub
3157
s%@SHELL@%$SHELL%g
3158
s%@CFLAGS@%$CFLAGS%g
3159
s%@CPPFLAGS@%$CPPFLAGS%g
3160
s%@CXXFLAGS@%$CXXFLAGS%g
3161
s%@FFLAGS@%$FFLAGS%g
3162
s%@DEFS@%$DEFS%g
3163
s%@LDFLAGS@%$LDFLAGS%g
3164
s%@LIBS@%$LIBS%g
3165
s%@exec_prefix@%$exec_prefix%g
3166
s%@prefix@%$prefix%g
3167
s%@program_transform_name@%$program_transform_name%g
3168
s%@bindir@%$bindir%g
3169
s%@sbindir@%$sbindir%g
3170
s%@libexecdir@%$libexecdir%g
3171
s%@datadir@%$datadir%g
3172
s%@sysconfdir@%$sysconfdir%g
3173
s%@sharedstatedir@%$sharedstatedir%g
3174
s%@localstatedir@%$localstatedir%g
3175
s%@libdir@%$libdir%g
3176
s%@includedir@%$includedir%g
3177
s%@oldincludedir@%$oldincludedir%g
3178
s%@infodir@%$infodir%g
3179
s%@mandir@%$mandir%g
3180
s%@host@%$host%g
3181
s%@host_alias@%$host_alias%g
3182
s%@host_cpu@%$host_cpu%g
3183
s%@host_vendor@%$host_vendor%g
3184
s%@host_os@%$host_os%g
3185
s%@target@%$target%g
3186
s%@target_alias@%$target_alias%g
3187
s%@target_cpu@%$target_cpu%g
3188
s%@target_vendor@%$target_vendor%g
3189
s%@target_os@%$target_os%g
3190
s%@build@%$build%g
3191
s%@build_alias@%$build_alias%g
3192
s%@build_cpu@%$build_cpu%g
3193
s%@build_vendor@%$build_vendor%g
3194
s%@build_os@%$build_os%g
3195
s%@CC@%$CC%g
3196
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3197
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3198
s%@INSTALL_DATA@%$INSTALL_DATA%g
3199
s%@RANLIB@%$RANLIB%g
3200
s%@CPP@%$CPP%g
3201
s%@DL_LIBS@%$DL_LIBS%g
3202
s%@LD_FLAGS@%$LD_FLAGS%g
3203
s%@MATH_LIBS@%$MATH_LIBS%g
3204
s%@MAKE_LIB@%$MAKE_LIB%g
3205
s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
3206
s%@SHLIB_LD@%$SHLIB_LD%g
3207
s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
3208
s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
3209
s%@SHLIB_VERSION@%$SHLIB_VERSION%g
3210
s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g
3211
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
3212
s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
3213
s%@TCL_VERSION@%$TCL_VERSION%g
3214
s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
3215
s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
3216
s%@TK_CC_SEARCH_FLAGS@%$TK_CC_SEARCH_FLAGS%g
3217
s%@TK_LD_SEARCH_FLAGS@%$TK_LD_SEARCH_FLAGS%g
3218
s%@TK_LIB_FULL_PATH@%$TK_LIB_FULL_PATH%g
3219
s%@TK_LIB_FILE@%$TK_LIB_FILE%g
3220
s%@TK_LIB_FLAG@%$TK_LIB_FLAG%g
3221
s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
3222
s%@TK_MAJOR_VERSION@%$TK_MAJOR_VERSION%g
3223
s%@TK_MINOR_VERSION@%$TK_MINOR_VERSION%g
3224
s%@TK_PATCH_LEVEL@%$TK_PATCH_LEVEL%g
3225
s%@TK_SHLIB_CFLAGS@%$TK_SHLIB_CFLAGS%g
3226
s%@TK_SRC_DIR@%$TK_SRC_DIR%g
3227
s%@TK_VERSION@%$TK_VERSION%g
3228
s%@XINCLUDES@%$XINCLUDES%g
3229
s%@XLIBSW@%$XLIBSW%g
3230
s%@TK_SHARED_BUILD@%$TK_SHARED_BUILD%g
3231
s%@TCL_SHARED_LIB_SUFFIX@%$TCL_SHARED_LIB_SUFFIX%g
3232
s%@TCL_UNSHARED_LIB_SUFFIX@%$TCL_UNSHARED_LIB_SUFFIX%g
3233
s%@TK_SHARED_LIB_FILE@%$TK_SHARED_LIB_FILE%g
3234
s%@TK_UNSHARED_LIB_FILE@%$TK_UNSHARED_LIB_FILE%g
3235
 
3236
CEOF
3237
EOF
3238
 
3239
cat >> $CONFIG_STATUS <<\EOF
3240
 
3241
# Split the substitutions into bite-sized pieces for seds with
3242
# small command number limits, like on Digital OSF/1 and HP-UX.
3243
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3244
ac_file=1 # Number of current file.
3245
ac_beg=1 # First line for current file.
3246
ac_end=$ac_max_sed_cmds # Line after last line for current file.
3247
ac_more_lines=:
3248
ac_sed_cmds=""
3249
while $ac_more_lines; do
3250
  if test $ac_beg -gt 1; then
3251
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3252
  else
3253
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3254
  fi
3255
  if test ! -s conftest.s$ac_file; then
3256
    ac_more_lines=false
3257
    rm -f conftest.s$ac_file
3258
  else
3259
    if test -z "$ac_sed_cmds"; then
3260
      ac_sed_cmds="sed -f conftest.s$ac_file"
3261
    else
3262
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3263
    fi
3264
    ac_file=`expr $ac_file + 1`
3265
    ac_beg=$ac_end
3266
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
3267
  fi
3268
done
3269
if test -z "$ac_sed_cmds"; then
3270
  ac_sed_cmds=cat
3271
fi
3272
EOF
3273
 
3274
cat >> $CONFIG_STATUS <
3275
 
3276
CONFIG_FILES=\${CONFIG_FILES-"Makefile tkConfig.sh"}
3277
EOF
3278
cat >> $CONFIG_STATUS <<\EOF
3279
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3280
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3281
  case "$ac_file" in
3282
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3283
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3284
  *) ac_file_in="${ac_file}.in" ;;
3285
  esac
3286
 
3287
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3288
 
3289
  # Remove last slash and all that follows it.  Not all systems have dirname.
3290
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3291
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3292
    # The file is in a subdirectory.
3293
    test ! -d "$ac_dir" && mkdir "$ac_dir"
3294
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3295
    # A "../" for each directory in $ac_dir_suffix.
3296
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3297
  else
3298
    ac_dir_suffix= ac_dots=
3299
  fi
3300
 
3301
  case "$ac_given_srcdir" in
3302
  .)  srcdir=.
3303
      if test -z "$ac_dots"; then top_srcdir=.
3304
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3305
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3306
  *) # Relative path.
3307
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3308
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3309
  esac
3310
 
3311
  case "$ac_given_INSTALL" in
3312
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
3313
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3314
  esac
3315
 
3316
  echo creating "$ac_file"
3317
  rm -f "$ac_file"
3318
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3319
  case "$ac_file" in
3320
  *Makefile*) ac_comsub="1i\\
3321
# $configure_input" ;;
3322
  *) ac_comsub= ;;
3323
  esac
3324
 
3325
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3326
  sed -e "$ac_comsub
3327
s%@configure_input@%$configure_input%g
3328
s%@srcdir@%$srcdir%g
3329
s%@top_srcdir@%$top_srcdir%g
3330
s%@INSTALL@%$INSTALL%g
3331
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3332
fi; done
3333
rm -f conftest.s*
3334
 
3335
EOF
3336
cat >> $CONFIG_STATUS <
3337
 
3338
EOF
3339
cat >> $CONFIG_STATUS <<\EOF
3340
 
3341
exit 0
3342
EOF
3343
chmod +x $CONFIG_STATUS
3344
rm -fr confdefs* $ac_clean_files
3345
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3346
 

powered by: WebSVN 2.1.0

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