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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [libgui/] [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-maintainer-mode enable make rules and dependencies not useful
16
                          (and sometimes confusing) to the casual installer"
17
ac_help="$ac_help
18
\
19
    --enable-install-libgui Install libgui.a and library header files"
20
ac_help="$ac_help
21
  --enable-ide            Enable IDE support"
22
ac_help="$ac_help
23
  --with-tclconfig           directory containing tcl configuration (tclConfig.sh)"
24
ac_help="$ac_help
25
  --with-tkconfig           directory containing tk configuration (tkConfig.sh)"
26
ac_help="$ac_help
27
  --with-tclinclude       directory where tcl headers are"
28
ac_help="$ac_help
29
  --with-tkinclude       directory where tk headers are"
30
ac_help="$ac_help
31
  --with-itclconfig           directory containing itcl configuration (itclConfig.sh)"
32
 
33
# Initialize some variables set by options.
34
# The variables have the same names as the options, with
35
# dashes changed to underlines.
36
build=NONE
37
cache_file=./config.cache
38
exec_prefix=NONE
39
host=NONE
40
no_create=
41
nonopt=NONE
42
no_recursion=
43
prefix=NONE
44
program_prefix=NONE
45
program_suffix=NONE
46
program_transform_name=s,x,x,
47
silent=
48
site=
49
srcdir=
50
target=NONE
51
verbose=
52
x_includes=NONE
53
x_libraries=NONE
54
bindir='${exec_prefix}/bin'
55
sbindir='${exec_prefix}/sbin'
56
libexecdir='${exec_prefix}/libexec'
57
datadir='${prefix}/share'
58
sysconfdir='${prefix}/etc'
59
sharedstatedir='${prefix}/com'
60
localstatedir='${prefix}/var'
61
libdir='${exec_prefix}/lib'
62
includedir='${prefix}/include'
63
oldincludedir='/usr/include'
64
infodir='${prefix}/info'
65
mandir='${prefix}/man'
66
 
67
# Initialize some other variables.
68
subdirs=
69
MFLAGS= MAKEFLAGS=
70
SHELL=${CONFIG_SHELL-/bin/sh}
71
# Maximum number of lines to put in a shell here document.
72
ac_max_here_lines=12
73
 
74
ac_prev=
75
for ac_option
76
do
77
 
78
  # If the previous option needs an argument, assign it.
79
  if test -n "$ac_prev"; then
80
    eval "$ac_prev=\$ac_option"
81
    ac_prev=
82
    continue
83
  fi
84
 
85
  case "$ac_option" in
86
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87
  *) ac_optarg= ;;
88
  esac
89
 
90
  # Accept the important Cygnus configure options, so we can diagnose typos.
91
 
92
  case "$ac_option" in
93
 
94
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
95
    ac_prev=bindir ;;
96
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97
    bindir="$ac_optarg" ;;
98
 
99
  -build | --build | --buil | --bui | --bu)
100
    ac_prev=build ;;
101
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102
    build="$ac_optarg" ;;
103
 
104
  -cache-file | --cache-file | --cache-fil | --cache-fi \
105
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106
    ac_prev=cache_file ;;
107
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109
    cache_file="$ac_optarg" ;;
110
 
111
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112
    ac_prev=datadir ;;
113
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114
  | --da=*)
115
    datadir="$ac_optarg" ;;
116
 
117
  -disable-* | --disable-*)
118
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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
    eval "enable_${ac_feature}=no" ;;
125
 
126
  -enable-* | --enable-*)
127
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128
    # Reject names that are not valid shell variable names.
129
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131
    fi
132
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133
    case "$ac_option" in
134
      *=*) ;;
135
      *) ac_optarg=yes ;;
136
    esac
137
    eval "enable_${ac_feature}='$ac_optarg'" ;;
138
 
139
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141
  | --exec | --exe | --ex)
142
    ac_prev=exec_prefix ;;
143
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145
  | --exec=* | --exe=* | --ex=*)
146
    exec_prefix="$ac_optarg" ;;
147
 
148
  -gas | --gas | --ga | --g)
149
    # Obsolete; use --with-gas.
150
    with_gas=yes ;;
151
 
152
  -help | --help | --hel | --he)
153
    # Omit some internal or obsolete options to make the list less imposing.
154
    # This message is too long to be a string in the A/UX 3.1 sh.
155
    cat << EOF
156
Usage: configure [options] [host]
157
Options: [defaults in brackets after descriptions]
158
Configuration:
159
  --cache-file=FILE       cache test results in FILE
160
  --help                  print this message
161
  --no-create             do not create output files
162
  --quiet, --silent       do not print \`checking...' messages
163
  --version               print the version of autoconf that created configure
164
Directory and file names:
165
  --prefix=PREFIX         install architecture-independent files in PREFIX
166
                          [$ac_default_prefix]
167
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
168
                          [same as prefix]
169
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
170
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
171
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
172
  --datadir=DIR           read-only architecture-independent data in DIR
173
                          [PREFIX/share]
174
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
175
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
176
                          [PREFIX/com]
177
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
178
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
179
  --includedir=DIR        C header files in DIR [PREFIX/include]
180
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
181
  --infodir=DIR           info documentation in DIR [PREFIX/info]
182
  --mandir=DIR            man documentation in DIR [PREFIX/man]
183
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
184
  --program-prefix=PREFIX prepend PREFIX to installed program names
185
  --program-suffix=SUFFIX append SUFFIX to installed program names
186
  --program-transform-name=PROGRAM
187
                          run sed PROGRAM on installed program names
188
EOF
189
    cat << EOF
190
Host type:
191
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
192
  --host=HOST             configure for HOST [guessed]
193
  --target=TARGET         configure for TARGET [TARGET=HOST]
194
Features and packages:
195
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
196
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
197
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
198
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
199
  --x-includes=DIR        X include files are in DIR
200
  --x-libraries=DIR       X library files are in DIR
201
EOF
202
    if test -n "$ac_help"; then
203
      echo "--enable and --with options recognized:$ac_help"
204
    fi
205
    exit 0 ;;
206
 
207
  -host | --host | --hos | --ho)
208
    ac_prev=host ;;
209
  -host=* | --host=* | --hos=* | --ho=*)
210
    host="$ac_optarg" ;;
211
 
212
  -includedir | --includedir | --includedi | --included | --include \
213
  | --includ | --inclu | --incl | --inc)
214
    ac_prev=includedir ;;
215
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
216
  | --includ=* | --inclu=* | --incl=* | --inc=*)
217
    includedir="$ac_optarg" ;;
218
 
219
  -infodir | --infodir | --infodi | --infod | --info | --inf)
220
    ac_prev=infodir ;;
221
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
222
    infodir="$ac_optarg" ;;
223
 
224
  -libdir | --libdir | --libdi | --libd)
225
    ac_prev=libdir ;;
226
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
227
    libdir="$ac_optarg" ;;
228
 
229
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
230
  | --libexe | --libex | --libe)
231
    ac_prev=libexecdir ;;
232
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
233
  | --libexe=* | --libex=* | --libe=*)
234
    libexecdir="$ac_optarg" ;;
235
 
236
  -localstatedir | --localstatedir | --localstatedi | --localstated \
237
  | --localstate | --localstat | --localsta | --localst \
238
  | --locals | --local | --loca | --loc | --lo)
239
    ac_prev=localstatedir ;;
240
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
241
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
242
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
243
    localstatedir="$ac_optarg" ;;
244
 
245
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246
    ac_prev=mandir ;;
247
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
248
    mandir="$ac_optarg" ;;
249
 
250
  -nfp | --nfp | --nf)
251
    # Obsolete; use --without-fp.
252
    with_fp=no ;;
253
 
254
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
255
  | --no-cr | --no-c)
256
    no_create=yes ;;
257
 
258
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
259
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
260
    no_recursion=yes ;;
261
 
262
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
263
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
264
  | --oldin | --oldi | --old | --ol | --o)
265
    ac_prev=oldincludedir ;;
266
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
267
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
268
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
269
    oldincludedir="$ac_optarg" ;;
270
 
271
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272
    ac_prev=prefix ;;
273
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
274
    prefix="$ac_optarg" ;;
275
 
276
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
277
  | --program-pre | --program-pr | --program-p)
278
    ac_prev=program_prefix ;;
279
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
280
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
281
    program_prefix="$ac_optarg" ;;
282
 
283
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
284
  | --program-suf | --program-su | --program-s)
285
    ac_prev=program_suffix ;;
286
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
287
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
288
    program_suffix="$ac_optarg" ;;
289
 
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
    ac_prev=program_transform_name ;;
298
  -program-transform-name=* | --program-transform-name=* \
299
  | --program-transform-nam=* | --program-transform-na=* \
300
  | --program-transform-n=* | --program-transform-=* \
301
  | --program-transform=* | --program-transfor=* \
302
  | --program-transfo=* | --program-transf=* \
303
  | --program-trans=* | --program-tran=* \
304
  | --progr-tra=* | --program-tr=* | --program-t=*)
305
    program_transform_name="$ac_optarg" ;;
306
 
307
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
308
  | -silent | --silent | --silen | --sile | --sil)
309
    silent=yes ;;
310
 
311
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312
    ac_prev=sbindir ;;
313
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314
  | --sbi=* | --sb=*)
315
    sbindir="$ac_optarg" ;;
316
 
317
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
318
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
319
  | --sharedst | --shareds | --shared | --share | --shar \
320
  | --sha | --sh)
321
    ac_prev=sharedstatedir ;;
322
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
323
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
324
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325
  | --sha=* | --sh=*)
326
    sharedstatedir="$ac_optarg" ;;
327
 
328
  -site | --site | --sit)
329
    ac_prev=site ;;
330
  -site=* | --site=* | --sit=*)
331
    site="$ac_optarg" ;;
332
 
333
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334
    ac_prev=srcdir ;;
335
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
336
    srcdir="$ac_optarg" ;;
337
 
338
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
339
  | --syscon | --sysco | --sysc | --sys | --sy)
340
    ac_prev=sysconfdir ;;
341
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
342
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
343
    sysconfdir="$ac_optarg" ;;
344
 
345
  -target | --target | --targe | --targ | --tar | --ta | --t)
346
    ac_prev=target ;;
347
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
348
    target="$ac_optarg" ;;
349
 
350
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
351
    verbose=yes ;;
352
 
353
  -version | --version | --versio | --versi | --vers)
354
    echo "configure generated by autoconf version 2.13"
355
    exit 0 ;;
356
 
357
  -with-* | --with-*)
358
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
359
    # Reject names that are not valid shell variable names.
360
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
361
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362
    fi
363
    ac_package=`echo $ac_package| sed 's/-/_/g'`
364
    case "$ac_option" in
365
      *=*) ;;
366
      *) ac_optarg=yes ;;
367
    esac
368
    eval "with_${ac_package}='$ac_optarg'" ;;
369
 
370
  -without-* | --without-*)
371
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
372
    # Reject names that are not valid shell variable names.
373
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375
    fi
376
    ac_package=`echo $ac_package| sed 's/-/_/g'`
377
    eval "with_${ac_package}=no" ;;
378
 
379
  --x)
380
    # Obsolete; use --with-x.
381
    with_x=yes ;;
382
 
383
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
384
  | --x-incl | --x-inc | --x-in | --x-i)
385
    ac_prev=x_includes ;;
386
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
387
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
388
    x_includes="$ac_optarg" ;;
389
 
390
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
391
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
392
    ac_prev=x_libraries ;;
393
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
394
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
395
    x_libraries="$ac_optarg" ;;
396
 
397
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398
    ;;
399
 
400
  *)
401
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402
      echo "configure: warning: $ac_option: invalid host type" 1>&2
403
    fi
404
    if test "x$nonopt" != xNONE; then
405
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
406
    fi
407
    nonopt="$ac_option"
408
    ;;
409
 
410
  esac
411
done
412
 
413
if test -n "$ac_prev"; then
414
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415
fi
416
 
417
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418
 
419
# File descriptor usage:
420
# 0 standard input
421
# 1 file creation
422
# 2 errors and warnings
423
# 3 some systems may open it to /dev/tty
424
# 4 used on the Kubota Titan
425
# 6 checking for... messages and results
426
# 5 compiler messages saved in config.log
427
if test "$silent" = yes; then
428
  exec 6>/dev/null
429
else
430
  exec 6>&1
431
fi
432
exec 5>./config.log
433
 
434
echo "\
435
This file contains any messages produced by compilers while
436
running configure, to aid debugging if configure makes a mistake.
437
" 1>&5
438
 
439
# Strip out --no-create and --no-recursion so they do not pile up.
440
# Also quote any args containing shell metacharacters.
441
ac_configure_args=
442
for ac_arg
443
do
444
  case "$ac_arg" in
445
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446
  | --no-cr | --no-c) ;;
447
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
448
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
452
  esac
453
done
454
 
455
# NLS nuisances.
456
# Only set these to C if already set.  These must not be set unconditionally
457
# because not all systems understand e.g. LANG=C (notably SCO).
458
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459
# Non-C LC_CTYPE values break the ctype check.
460
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
461
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
464
 
465
# confdefs.h avoids OS command line length limits that DEFS can exceed.
466
rm -rf conftest* confdefs.h
467
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
468
echo > confdefs.h
469
 
470
# A filename unique to this package, relative to the directory that
471
# configure is in, which we can look for to find out if srcdir is correct.
472
ac_unique_file=src/subcommand.h
473
 
474
# Find the source files, if location was not specified.
475
if test -z "$srcdir"; then
476
  ac_srcdir_defaulted=yes
477
  # Try the directory containing this script, then its parent.
478
  ac_prog=$0
479
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481
  srcdir=$ac_confdir
482
  if test ! -r $srcdir/$ac_unique_file; then
483
    srcdir=..
484
  fi
485
else
486
  ac_srcdir_defaulted=no
487
fi
488
if test ! -r $srcdir/$ac_unique_file; then
489
  if test "$ac_srcdir_defaulted" = yes; then
490
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491
  else
492
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493
  fi
494
fi
495
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496
 
497
# Prefer explicitly selected file to automatically selected ones.
498
if test -z "$CONFIG_SITE"; then
499
  if test "x$prefix" != xNONE; then
500
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501
  else
502
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503
  fi
504
fi
505
for ac_site_file in $CONFIG_SITE; do
506
  if test -r "$ac_site_file"; then
507
    echo "loading site script $ac_site_file"
508
    . "$ac_site_file"
509
  fi
510
done
511
 
512
if test -r "$cache_file"; then
513
  echo "loading cache $cache_file"
514
  . $cache_file
515
else
516
  echo "creating cache $cache_file"
517
  > $cache_file
518
fi
519
 
520
ac_ext=c
521
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522
ac_cpp='$CPP $CPPFLAGS'
523
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525
cross_compiling=$ac_cv_prog_cc_cross
526
 
527
ac_exeext=
528
ac_objext=o
529
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
530
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
531
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
532
    ac_n= ac_c='
533
' ac_t='        '
534
  else
535
    ac_n=-n ac_c= ac_t=
536
  fi
537
else
538
  ac_n= ac_c='\c' ac_t=
539
fi
540
 
541
 
542
ac_aux_dir=
543
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
544
  if test -f $ac_dir/install-sh; then
545
    ac_aux_dir=$ac_dir
546
    ac_install_sh="$ac_aux_dir/install-sh -c"
547
    break
548
  elif 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
  fi
553
done
554
if test -z "$ac_aux_dir"; then
555
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
556
fi
557
ac_config_guess=$ac_aux_dir/config.guess
558
ac_config_sub=$ac_aux_dir/config.sub
559
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
560
 
561
# Find a good install program.  We prefer a C program (faster),
562
# so one script is as good as another.  But avoid the broken or
563
# incompatible versions:
564
# SysV /etc/install, /usr/sbin/install
565
# SunOS /usr/etc/install
566
# IRIX /sbin/install
567
# AIX /bin/install
568
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
569
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
570
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
571
# ./install, which can be erroneously created by make from ./install.sh.
572
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
573
echo "configure:574: checking for a BSD compatible install" >&5
574
if test -z "$INSTALL"; then
575
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
576
  echo $ac_n "(cached) $ac_c" 1>&6
577
else
578
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
579
  for ac_dir in $PATH; do
580
    # Account for people who put trailing slashes in PATH elements.
581
    case "$ac_dir/" in
582
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
583
    *)
584
      # OSF1 and SCO ODT 3.0 have their own names for install.
585
      # Don't use installbsd from OSF since it installs stuff as root
586
      # by default.
587
      for ac_prog in ginstall scoinst install; do
588
        if test -f $ac_dir/$ac_prog; then
589
          if test $ac_prog = install &&
590
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
591
            # AIX install.  It has an incompatible calling convention.
592
            :
593
          else
594
            ac_cv_path_install="$ac_dir/$ac_prog -c"
595
            break 2
596
          fi
597
        fi
598
      done
599
      ;;
600
    esac
601
  done
602
  IFS="$ac_save_IFS"
603
 
604
fi
605
  if test "${ac_cv_path_install+set}" = set; then
606
    INSTALL="$ac_cv_path_install"
607
  else
608
    # As a last resort, use the slow shell script.  We don't cache a
609
    # path for INSTALL within a source directory, because that will
610
    # break other packages using the cache if that directory is
611
    # removed, or if the path is relative.
612
    INSTALL="$ac_install_sh"
613
  fi
614
fi
615
echo "$ac_t""$INSTALL" 1>&6
616
 
617
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
618
# It thinks the first close brace ends the variable substitution.
619
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
620
 
621
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
622
 
623
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
624
 
625
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
626
echo "configure:627: checking whether build environment is sane" >&5
627
# Just in case
628
sleep 1
629
echo timestamp > conftestfile
630
# Do `set' in a subshell so we don't clobber the current shell's
631
# arguments.  Must try -L first in case configure is actually a
632
# symlink; some systems play weird games with the mod time of symlinks
633
# (eg FreeBSD returns the mod time of the symlink's containing
634
# directory).
635
if (
636
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
637
   if test "$*" = "X"; then
638
      # -L didn't work.
639
      set X `ls -t $srcdir/configure conftestfile`
640
   fi
641
   if test "$*" != "X $srcdir/configure conftestfile" \
642
      && test "$*" != "X conftestfile $srcdir/configure"; then
643
 
644
      # If neither matched, then we have a broken ls.  This can happen
645
      # if, for instance, CONFIG_SHELL is bash and it inherits a
646
      # broken ls alias from the environment.  This has actually
647
      # happened.  Such a system could not be considered "sane".
648
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
649
alias in your environment" 1>&2; exit 1; }
650
   fi
651
 
652
   test "$2" = conftestfile
653
   )
654
then
655
   # Ok.
656
   :
657
else
658
   { echo "configure: error: newly created file is older than distributed files!
659
Check your system clock" 1>&2; exit 1; }
660
fi
661
rm -f conftest*
662
echo "$ac_t""yes" 1>&6
663
if test "$program_transform_name" = s,x,x,; then
664
  program_transform_name=
665
else
666
  # Double any \ or $.  echo might interpret backslashes.
667
  cat <<\EOF_SED > conftestsed
668
s,\\,\\\\,g; s,\$,$$,g
669
EOF_SED
670
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
671
  rm -f conftestsed
672
fi
673
test "$program_prefix" != NONE &&
674
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
675
# Use a double $ so make ignores it.
676
test "$program_suffix" != NONE &&
677
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
678
 
679
# sed with no file args requires a program.
680
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
681
 
682
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
683
echo "configure:684: checking whether ${MAKE-make} sets \${MAKE}" >&5
684
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
685
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
686
  echo $ac_n "(cached) $ac_c" 1>&6
687
else
688
  cat > conftestmake <<\EOF
689
all:
690
        @echo 'ac_maketemp="${MAKE}"'
691
EOF
692
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
693
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
694
if test -n "$ac_maketemp"; then
695
  eval ac_cv_prog_make_${ac_make}_set=yes
696
else
697
  eval ac_cv_prog_make_${ac_make}_set=no
698
fi
699
rm -f conftestmake
700
fi
701
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
702
  echo "$ac_t""yes" 1>&6
703
  SET_MAKE=
704
else
705
  echo "$ac_t""no" 1>&6
706
  SET_MAKE="MAKE=${MAKE-make}"
707
fi
708
 
709
 
710
PACKAGE=libgui
711
 
712
VERSION=0.0
713
 
714
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
715
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
716
fi
717
cat >> confdefs.h <
718
#define PACKAGE "$PACKAGE"
719
EOF
720
 
721
cat >> confdefs.h <
722
#define VERSION "$VERSION"
723
EOF
724
 
725
 
726
 
727
missing_dir=`cd $ac_aux_dir && pwd`
728
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
729
echo "configure:730: checking for working aclocal" >&5
730
# Run test in a subshell; some versions of sh will print an error if
731
# an executable is not found, even if stderr is redirected.
732
# Redirect stdin to placate older versions of autoconf.  Sigh.
733
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
734
   ACLOCAL=aclocal
735
   echo "$ac_t""found" 1>&6
736
else
737
   ACLOCAL="$missing_dir/missing aclocal"
738
   echo "$ac_t""missing" 1>&6
739
fi
740
 
741
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
742
echo "configure:743: checking for working autoconf" >&5
743
# Run test in a subshell; some versions of sh will print an error if
744
# an executable is not found, even if stderr is redirected.
745
# Redirect stdin to placate older versions of autoconf.  Sigh.
746
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
747
   AUTOCONF=autoconf
748
   echo "$ac_t""found" 1>&6
749
else
750
   AUTOCONF="$missing_dir/missing autoconf"
751
   echo "$ac_t""missing" 1>&6
752
fi
753
 
754
echo $ac_n "checking for working automake""... $ac_c" 1>&6
755
echo "configure:756: checking for working automake" >&5
756
# Run test in a subshell; some versions of sh will print an error if
757
# an executable is not found, even if stderr is redirected.
758
# Redirect stdin to placate older versions of autoconf.  Sigh.
759
if (automake --version) < /dev/null > /dev/null 2>&1; then
760
   AUTOMAKE=automake
761
   echo "$ac_t""found" 1>&6
762
else
763
   AUTOMAKE="$missing_dir/missing automake"
764
   echo "$ac_t""missing" 1>&6
765
fi
766
 
767
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
768
echo "configure:769: checking for working autoheader" >&5
769
# Run test in a subshell; some versions of sh will print an error if
770
# an executable is not found, even if stderr is redirected.
771
# Redirect stdin to placate older versions of autoconf.  Sigh.
772
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
773
   AUTOHEADER=autoheader
774
   echo "$ac_t""found" 1>&6
775
else
776
   AUTOHEADER="$missing_dir/missing autoheader"
777
   echo "$ac_t""missing" 1>&6
778
fi
779
 
780
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
781
echo "configure:782: checking for working makeinfo" >&5
782
# Run test in a subshell; some versions of sh will print an error if
783
# an executable is not found, even if stderr is redirected.
784
# Redirect stdin to placate older versions of autoconf.  Sigh.
785
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
786
   MAKEINFO=makeinfo
787
   echo "$ac_t""found" 1>&6
788
else
789
   MAKEINFO="$missing_dir/missing makeinfo"
790
   echo "$ac_t""missing" 1>&6
791
fi
792
 
793
 
794
 
795
 
796
 
797
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
798
echo "configure:799: checking whether to enable maintainer-specific portions of Makefiles" >&5
799
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
800
if test "${enable_maintainer_mode+set}" = set; then
801
  enableval="$enable_maintainer_mode"
802
  USE_MAINTAINER_MODE=$enableval
803
else
804
  USE_MAINTAINER_MODE=no
805
fi
806
 
807
  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
808
 
809
 
810
if test $USE_MAINTAINER_MODE = yes; then
811
  MAINTAINER_MODE_TRUE=
812
  MAINTAINER_MODE_FALSE='#'
813
else
814
  MAINTAINER_MODE_TRUE='#'
815
  MAINTAINER_MODE_FALSE=
816
fi
817
  MAINT=$MAINTAINER_MODE_TRUE
818
 
819
 
820
# Extract the first word of "gcc", so it can be a program name with args.
821
set dummy gcc; ac_word=$2
822
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
823
echo "configure:824: checking for $ac_word" >&5
824
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
825
  echo $ac_n "(cached) $ac_c" 1>&6
826
else
827
  if test -n "$CC"; then
828
  ac_cv_prog_CC="$CC" # Let the user override the test.
829
else
830
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
831
  ac_dummy="$PATH"
832
  for ac_dir in $ac_dummy; do
833
    test -z "$ac_dir" && ac_dir=.
834
    if test -f $ac_dir/$ac_word; then
835
      ac_cv_prog_CC="gcc"
836
      break
837
    fi
838
  done
839
  IFS="$ac_save_ifs"
840
fi
841
fi
842
CC="$ac_cv_prog_CC"
843
if test -n "$CC"; then
844
  echo "$ac_t""$CC" 1>&6
845
else
846
  echo "$ac_t""no" 1>&6
847
fi
848
 
849
if test -z "$CC"; then
850
  # Extract the first word of "cc", so it can be a program name with args.
851
set dummy cc; ac_word=$2
852
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
853
echo "configure:854: checking for $ac_word" >&5
854
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
855
  echo $ac_n "(cached) $ac_c" 1>&6
856
else
857
  if test -n "$CC"; then
858
  ac_cv_prog_CC="$CC" # Let the user override the test.
859
else
860
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
861
  ac_prog_rejected=no
862
  ac_dummy="$PATH"
863
  for ac_dir in $ac_dummy; do
864
    test -z "$ac_dir" && ac_dir=.
865
    if test -f $ac_dir/$ac_word; then
866
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
867
        ac_prog_rejected=yes
868
        continue
869
      fi
870
      ac_cv_prog_CC="cc"
871
      break
872
    fi
873
  done
874
  IFS="$ac_save_ifs"
875
if test $ac_prog_rejected = yes; then
876
  # We found a bogon in the path, so make sure we never use it.
877
  set dummy $ac_cv_prog_CC
878
  shift
879
  if test $# -gt 0; then
880
    # We chose a different compiler from the bogus one.
881
    # However, it has the same basename, so the bogon will be chosen
882
    # first if we set CC to just the basename; use the full file name.
883
    shift
884
    set dummy "$ac_dir/$ac_word" "$@"
885
    shift
886
    ac_cv_prog_CC="$@"
887
  fi
888
fi
889
fi
890
fi
891
CC="$ac_cv_prog_CC"
892
if test -n "$CC"; then
893
  echo "$ac_t""$CC" 1>&6
894
else
895
  echo "$ac_t""no" 1>&6
896
fi
897
 
898
  if test -z "$CC"; then
899
    case "`uname -s`" in
900
    *win32* | *WIN32*)
901
      # Extract the first word of "cl", so it can be a program name with args.
902
set dummy cl; ac_word=$2
903
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
904
echo "configure:905: checking for $ac_word" >&5
905
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
906
  echo $ac_n "(cached) $ac_c" 1>&6
907
else
908
  if test -n "$CC"; then
909
  ac_cv_prog_CC="$CC" # Let the user override the test.
910
else
911
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
912
  ac_dummy="$PATH"
913
  for ac_dir in $ac_dummy; do
914
    test -z "$ac_dir" && ac_dir=.
915
    if test -f $ac_dir/$ac_word; then
916
      ac_cv_prog_CC="cl"
917
      break
918
    fi
919
  done
920
  IFS="$ac_save_ifs"
921
fi
922
fi
923
CC="$ac_cv_prog_CC"
924
if test -n "$CC"; then
925
  echo "$ac_t""$CC" 1>&6
926
else
927
  echo "$ac_t""no" 1>&6
928
fi
929
 ;;
930
    esac
931
  fi
932
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
933
fi
934
 
935
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
936
echo "configure:937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
937
 
938
ac_ext=c
939
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
940
ac_cpp='$CPP $CPPFLAGS'
941
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
942
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
943
cross_compiling=$ac_cv_prog_cc_cross
944
 
945
cat > conftest.$ac_ext << EOF
946
 
947
#line 948 "configure"
948
#include "confdefs.h"
949
 
950
main(){return(0);}
951
EOF
952
if { (eval echo configure:953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
953
  ac_cv_prog_cc_works=yes
954
  # If we can't run a trivial program, we are probably using a cross compiler.
955
  if (./conftest; exit) 2>/dev/null; then
956
    ac_cv_prog_cc_cross=no
957
  else
958
    ac_cv_prog_cc_cross=yes
959
  fi
960
else
961
  echo "configure: failed program was:" >&5
962
  cat conftest.$ac_ext >&5
963
  ac_cv_prog_cc_works=no
964
fi
965
rm -fr conftest*
966
ac_ext=c
967
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
968
ac_cpp='$CPP $CPPFLAGS'
969
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
970
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
971
cross_compiling=$ac_cv_prog_cc_cross
972
 
973
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
974
if test $ac_cv_prog_cc_works = no; then
975
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
976
fi
977
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
978
echo "configure:979: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
979
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
980
cross_compiling=$ac_cv_prog_cc_cross
981
 
982
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
983
echo "configure:984: checking whether we are using GNU C" >&5
984
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
985
  echo $ac_n "(cached) $ac_c" 1>&6
986
else
987
  cat > conftest.c <
988
#ifdef __GNUC__
989
  yes;
990
#endif
991
EOF
992
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
993
  ac_cv_prog_gcc=yes
994
else
995
  ac_cv_prog_gcc=no
996
fi
997
fi
998
 
999
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1000
 
1001
if test $ac_cv_prog_gcc = yes; then
1002
  GCC=yes
1003
else
1004
  GCC=
1005
fi
1006
 
1007
ac_test_CFLAGS="${CFLAGS+set}"
1008
ac_save_CFLAGS="$CFLAGS"
1009
CFLAGS=
1010
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1011
echo "configure:1012: checking whether ${CC-cc} accepts -g" >&5
1012
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1013
  echo $ac_n "(cached) $ac_c" 1>&6
1014
else
1015
  echo 'void f(){}' > conftest.c
1016
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1017
  ac_cv_prog_cc_g=yes
1018
else
1019
  ac_cv_prog_cc_g=no
1020
fi
1021
rm -f conftest*
1022
 
1023
fi
1024
 
1025
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1026
if test "$ac_test_CFLAGS" = set; then
1027
  CFLAGS="$ac_save_CFLAGS"
1028
elif test $ac_cv_prog_cc_g = yes; then
1029
  if test "$GCC" = yes; then
1030
    CFLAGS="-g -O2"
1031
  else
1032
    CFLAGS="-g"
1033
  fi
1034
else
1035
  if test "$GCC" = yes; then
1036
    CFLAGS="-O2"
1037
  else
1038
    CFLAGS=
1039
  fi
1040
fi
1041
 
1042
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1043
echo "configure:1044: checking for Cygwin environment" >&5
1044
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1045
  echo $ac_n "(cached) $ac_c" 1>&6
1046
else
1047
  cat > conftest.$ac_ext <
1048
#line 1049 "configure"
1049
#include "confdefs.h"
1050
 
1051
int main() {
1052
 
1053
#ifndef __CYGWIN__
1054
#define __CYGWIN__ __CYGWIN32__
1055
#endif
1056
return __CYGWIN__;
1057
; return 0; }
1058
EOF
1059
if { (eval echo configure:1060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1060
  rm -rf conftest*
1061
  ac_cv_cygwin=yes
1062
else
1063
  echo "configure: failed program was:" >&5
1064
  cat conftest.$ac_ext >&5
1065
  rm -rf conftest*
1066
  ac_cv_cygwin=no
1067
fi
1068
rm -f conftest*
1069
rm -f conftest*
1070
fi
1071
 
1072
echo "$ac_t""$ac_cv_cygwin" 1>&6
1073
CYGWIN=
1074
test "$ac_cv_cygwin" = yes && CYGWIN=yes
1075
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1076
echo "configure:1077: checking for mingw32 environment" >&5
1077
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1078
  echo $ac_n "(cached) $ac_c" 1>&6
1079
else
1080
  cat > conftest.$ac_ext <
1081
#line 1082 "configure"
1082
#include "confdefs.h"
1083
 
1084
int main() {
1085
return __MINGW32__;
1086
; return 0; }
1087
EOF
1088
if { (eval echo configure:1089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1089
  rm -rf conftest*
1090
  ac_cv_mingw32=yes
1091
else
1092
  echo "configure: failed program was:" >&5
1093
  cat conftest.$ac_ext >&5
1094
  rm -rf conftest*
1095
  ac_cv_mingw32=no
1096
fi
1097
rm -f conftest*
1098
rm -f conftest*
1099
fi
1100
 
1101
echo "$ac_t""$ac_cv_mingw32" 1>&6
1102
MINGW32=
1103
test "$ac_cv_mingw32" = yes && MINGW32=yes
1104
 
1105
 
1106
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1107
echo "configure:1108: checking for executable suffix" >&5
1108
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1109
  echo $ac_n "(cached) $ac_c" 1>&6
1110
else
1111
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1112
  ac_cv_exeext=.exe
1113
else
1114
  rm -f conftest*
1115
  echo 'int main () { return 0; }' > conftest.$ac_ext
1116
  ac_cv_exeext=
1117
  if { (eval echo configure:1118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1118
    for file in conftest.*; do
1119
      case $file in
1120
      *.c | *.o | *.obj) ;;
1121
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1122
      esac
1123
    done
1124
  else
1125
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1126
  fi
1127
  rm -f conftest*
1128
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1129
fi
1130
fi
1131
 
1132
EXEEXT=""
1133
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1134
echo "$ac_t""${ac_cv_exeext}" 1>&6
1135
ac_exeext=$EXEEXT
1136
 
1137
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1138
echo "configure:1139: checking for object suffix" >&5
1139
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1140
  echo $ac_n "(cached) $ac_c" 1>&6
1141
else
1142
  rm -f conftest*
1143
echo 'int i = 1;' > conftest.$ac_ext
1144
if { (eval echo configure:1145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1145
  for ac_file in conftest.*; do
1146
    case $ac_file in
1147
    *.c) ;;
1148
    *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1149
    esac
1150
  done
1151
else
1152
  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1153
fi
1154
rm -f conftest*
1155
fi
1156
 
1157
echo "$ac_t""$ac_cv_objext" 1>&6
1158
OBJEXT=$ac_cv_objext
1159
ac_objext=$ac_cv_objext
1160
 
1161
# Check whether --enable-install-libgui or --disable-install-libgui was given.
1162
if test "${enable_install_libgui+set}" = set; then
1163
  enableval="$enable_install_libgui"
1164
  :
1165
fi
1166
 
1167
 
1168
 
1169
if test x$cross_compiling = xyes; then
1170
  CROSS_COMPILING_TRUE=
1171
  CROSS_COMPILING_FALSE='#'
1172
else
1173
  CROSS_COMPILING_TRUE='#'
1174
  CROSS_COMPILING_FALSE=
1175
fi
1176
 
1177
 
1178
if test x$enable_install_libgui = xyes; then
1179
  INSTALL_LIBGUI_TRUE=
1180
  INSTALL_LIBGUI_FALSE='#'
1181
else
1182
  INSTALL_LIBGUI_TRUE='#'
1183
  INSTALL_LIBGUI_FALSE=
1184
fi
1185
# Extract the first word of "ranlib", so it can be a program name with args.
1186
set dummy ranlib; ac_word=$2
1187
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1188
echo "configure:1189: checking for $ac_word" >&5
1189
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1190
  echo $ac_n "(cached) $ac_c" 1>&6
1191
else
1192
  if test -n "$RANLIB"; then
1193
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1194
else
1195
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1196
  ac_dummy="$PATH"
1197
  for ac_dir in $ac_dummy; do
1198
    test -z "$ac_dir" && ac_dir=.
1199
    if test -f $ac_dir/$ac_word; then
1200
      ac_cv_prog_RANLIB="ranlib"
1201
      break
1202
    fi
1203
  done
1204
  IFS="$ac_save_ifs"
1205
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1206
fi
1207
fi
1208
RANLIB="$ac_cv_prog_RANLIB"
1209
if test -n "$RANLIB"; then
1210
  echo "$ac_t""$RANLIB" 1>&6
1211
else
1212
  echo "$ac_t""no" 1>&6
1213
fi
1214
 
1215
 
1216
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1217
echo "configure:1218: checking how to run the C preprocessor" >&5
1218
# On Suns, sometimes $CPP names a directory.
1219
if test -n "$CPP" && test -d "$CPP"; then
1220
  CPP=
1221
fi
1222
if test -z "$CPP"; then
1223
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1224
  echo $ac_n "(cached) $ac_c" 1>&6
1225
else
1226
    # This must be in double quotes, not single quotes, because CPP may get
1227
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1228
  CPP="${CC-cc} -E"
1229
  # On the NeXT, cc -E runs the code through the compiler's parser,
1230
  # not just through cpp.
1231
  cat > conftest.$ac_ext <
1232
#line 1233 "configure"
1233
#include "confdefs.h"
1234
#include 
1235
Syntax Error
1236
EOF
1237
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1238
{ (eval echo configure:1239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1239
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1240
if test -z "$ac_err"; then
1241
  :
1242
else
1243
  echo "$ac_err" >&5
1244
  echo "configure: failed program was:" >&5
1245
  cat conftest.$ac_ext >&5
1246
  rm -rf conftest*
1247
  CPP="${CC-cc} -E -traditional-cpp"
1248
  cat > conftest.$ac_ext <
1249
#line 1250 "configure"
1250
#include "confdefs.h"
1251
#include 
1252
Syntax Error
1253
EOF
1254
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1255
{ (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1256
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1257
if test -z "$ac_err"; then
1258
  :
1259
else
1260
  echo "$ac_err" >&5
1261
  echo "configure: failed program was:" >&5
1262
  cat conftest.$ac_ext >&5
1263
  rm -rf conftest*
1264
  CPP="${CC-cc} -nologo -E"
1265
  cat > conftest.$ac_ext <
1266
#line 1267 "configure"
1267
#include "confdefs.h"
1268
#include 
1269
Syntax Error
1270
EOF
1271
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1272
{ (eval echo configure:1273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1273
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1274
if test -z "$ac_err"; then
1275
  :
1276
else
1277
  echo "$ac_err" >&5
1278
  echo "configure: failed program was:" >&5
1279
  cat conftest.$ac_ext >&5
1280
  rm -rf conftest*
1281
  CPP=/lib/cpp
1282
fi
1283
rm -f conftest*
1284
fi
1285
rm -f conftest*
1286
fi
1287
rm -f conftest*
1288
  ac_cv_prog_CPP="$CPP"
1289
fi
1290
  CPP="$ac_cv_prog_CPP"
1291
else
1292
  ac_cv_prog_CPP="$CPP"
1293
fi
1294
echo "$ac_t""$CPP" 1>&6
1295
 
1296
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1297
# for constant arguments.  Useless!
1298
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1299
echo "configure:1300: checking for working alloca.h" >&5
1300
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1301
  echo $ac_n "(cached) $ac_c" 1>&6
1302
else
1303
  cat > conftest.$ac_ext <
1304
#line 1305 "configure"
1305
#include "confdefs.h"
1306
#include 
1307
int main() {
1308
char *p = alloca(2 * sizeof(int));
1309
; return 0; }
1310
EOF
1311
if { (eval echo configure:1312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1312
  rm -rf conftest*
1313
  ac_cv_header_alloca_h=yes
1314
else
1315
  echo "configure: failed program was:" >&5
1316
  cat conftest.$ac_ext >&5
1317
  rm -rf conftest*
1318
  ac_cv_header_alloca_h=no
1319
fi
1320
rm -f conftest*
1321
fi
1322
 
1323
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1324
if test $ac_cv_header_alloca_h = yes; then
1325
  cat >> confdefs.h <<\EOF
1326
#define HAVE_ALLOCA_H 1
1327
EOF
1328
 
1329
fi
1330
 
1331
echo $ac_n "checking for alloca""... $ac_c" 1>&6
1332
echo "configure:1333: checking for alloca" >&5
1333
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1334
  echo $ac_n "(cached) $ac_c" 1>&6
1335
else
1336
  cat > conftest.$ac_ext <
1337
#line 1338 "configure"
1338
#include "confdefs.h"
1339
 
1340
#ifdef __GNUC__
1341
# define alloca __builtin_alloca
1342
#else
1343
# ifdef _MSC_VER
1344
#  include 
1345
#  define alloca _alloca
1346
# else
1347
#  if HAVE_ALLOCA_H
1348
#   include 
1349
#  else
1350
#   ifdef _AIX
1351
 #pragma alloca
1352
#   else
1353
#    ifndef alloca /* predefined by HP cc +Olibcalls */
1354
char *alloca ();
1355
#    endif
1356
#   endif
1357
#  endif
1358
# endif
1359
#endif
1360
 
1361
int main() {
1362
char *p = (char *) alloca(1);
1363
; return 0; }
1364
EOF
1365
if { (eval echo configure:1366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1366
  rm -rf conftest*
1367
  ac_cv_func_alloca_works=yes
1368
else
1369
  echo "configure: failed program was:" >&5
1370
  cat conftest.$ac_ext >&5
1371
  rm -rf conftest*
1372
  ac_cv_func_alloca_works=no
1373
fi
1374
rm -f conftest*
1375
fi
1376
 
1377
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1378
if test $ac_cv_func_alloca_works = yes; then
1379
  cat >> confdefs.h <<\EOF
1380
#define HAVE_ALLOCA 1
1381
EOF
1382
 
1383
fi
1384
 
1385
if test $ac_cv_func_alloca_works = no; then
1386
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1387
  # that cause trouble.  Some versions do not even contain alloca or
1388
  # contain a buggy version.  If you still want to use their alloca,
1389
  # use ar to extract alloca.o from them instead of compiling alloca.c.
1390
  ALLOCA=alloca.${ac_objext}
1391
  cat >> confdefs.h <<\EOF
1392
#define C_ALLOCA 1
1393
EOF
1394
 
1395
 
1396
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1397
echo "configure:1398: checking whether alloca needs Cray hooks" >&5
1398
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1399
  echo $ac_n "(cached) $ac_c" 1>&6
1400
else
1401
  cat > conftest.$ac_ext <
1402
#line 1403 "configure"
1403
#include "confdefs.h"
1404
#if defined(CRAY) && ! defined(CRAY2)
1405
webecray
1406
#else
1407
wenotbecray
1408
#endif
1409
 
1410
EOF
1411
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1412
  egrep "webecray" >/dev/null 2>&1; then
1413
  rm -rf conftest*
1414
  ac_cv_os_cray=yes
1415
else
1416
  rm -rf conftest*
1417
  ac_cv_os_cray=no
1418
fi
1419
rm -f conftest*
1420
 
1421
fi
1422
 
1423
echo "$ac_t""$ac_cv_os_cray" 1>&6
1424
if test $ac_cv_os_cray = yes; then
1425
for ac_func in _getb67 GETB67 getb67; do
1426
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1427
echo "configure:1428: checking for $ac_func" >&5
1428
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1429
  echo $ac_n "(cached) $ac_c" 1>&6
1430
else
1431
  cat > conftest.$ac_ext <
1432
#line 1433 "configure"
1433
#include "confdefs.h"
1434
/* System header to define __stub macros and hopefully few prototypes,
1435
    which can conflict with char $ac_func(); below.  */
1436
#include 
1437
/* Override any gcc2 internal prototype to avoid an error.  */
1438
/* We use char because int might match the return type of a gcc2
1439
    builtin and then its argument prototype would still apply.  */
1440
char $ac_func();
1441
 
1442
int main() {
1443
 
1444
/* The GNU C library defines this for functions which it implements
1445
    to always fail with ENOSYS.  Some functions are actually named
1446
    something starting with __ and the normal name is an alias.  */
1447
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1448
choke me
1449
#else
1450
$ac_func();
1451
#endif
1452
 
1453
; return 0; }
1454
EOF
1455
if { (eval echo configure:1456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1456
  rm -rf conftest*
1457
  eval "ac_cv_func_$ac_func=yes"
1458
else
1459
  echo "configure: failed program was:" >&5
1460
  cat conftest.$ac_ext >&5
1461
  rm -rf conftest*
1462
  eval "ac_cv_func_$ac_func=no"
1463
fi
1464
rm -f conftest*
1465
fi
1466
 
1467
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1468
  echo "$ac_t""yes" 1>&6
1469
  cat >> confdefs.h <
1470
#define CRAY_STACKSEG_END $ac_func
1471
EOF
1472
 
1473
  break
1474
else
1475
  echo "$ac_t""no" 1>&6
1476
fi
1477
 
1478
done
1479
fi
1480
 
1481
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1482
echo "configure:1483: checking stack direction for C alloca" >&5
1483
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1484
  echo $ac_n "(cached) $ac_c" 1>&6
1485
else
1486
  if test "$cross_compiling" = yes; then
1487
  ac_cv_c_stack_direction=0
1488
else
1489
  cat > conftest.$ac_ext <
1490
#line 1491 "configure"
1491
#include "confdefs.h"
1492
find_stack_direction ()
1493
{
1494
  static char *addr = 0;
1495
  auto char dummy;
1496
  if (addr == 0)
1497
    {
1498
      addr = &dummy;
1499
      return find_stack_direction ();
1500
    }
1501
  else
1502
    return (&dummy > addr) ? 1 : -1;
1503
}
1504
main ()
1505
{
1506
  exit (find_stack_direction() < 0);
1507
}
1508
EOF
1509
if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1510
then
1511
  ac_cv_c_stack_direction=1
1512
else
1513
  echo "configure: failed program was:" >&5
1514
  cat conftest.$ac_ext >&5
1515
  rm -fr conftest*
1516
  ac_cv_c_stack_direction=-1
1517
fi
1518
rm -fr conftest*
1519
fi
1520
 
1521
fi
1522
 
1523
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1524
cat >> confdefs.h <
1525
#define STACK_DIRECTION $ac_cv_c_stack_direction
1526
EOF
1527
 
1528
fi
1529
 
1530
for ac_hdr in stddef.h stdlib.h getopt.h unistd.h fcntl.h sys/file.h sys/wait.h string.h strings.h
1531
do
1532
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1533
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1534
echo "configure:1535: checking for $ac_hdr" >&5
1535
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1536
  echo $ac_n "(cached) $ac_c" 1>&6
1537
else
1538
  cat > conftest.$ac_ext <
1539
#line 1540 "configure"
1540
#include "confdefs.h"
1541
#include <$ac_hdr>
1542
EOF
1543
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1544
{ (eval echo configure:1545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1545
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1546
if test -z "$ac_err"; then
1547
  rm -rf conftest*
1548
  eval "ac_cv_header_$ac_safe=yes"
1549
else
1550
  echo "$ac_err" >&5
1551
  echo "configure: failed program was:" >&5
1552
  cat conftest.$ac_ext >&5
1553
  rm -rf conftest*
1554
  eval "ac_cv_header_$ac_safe=no"
1555
fi
1556
rm -f conftest*
1557
fi
1558
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1559
  echo "$ac_t""yes" 1>&6
1560
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1561
  cat >> confdefs.h <
1562
#define $ac_tr_hdr 1
1563
EOF
1564
 
1565
else
1566
  echo "$ac_t""no" 1>&6
1567
fi
1568
done
1569
 
1570
for ac_func in raise strdup
1571
do
1572
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1573
echo "configure:1574: checking for $ac_func" >&5
1574
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1575
  echo $ac_n "(cached) $ac_c" 1>&6
1576
else
1577
  cat > conftest.$ac_ext <
1578
#line 1579 "configure"
1579
#include "confdefs.h"
1580
/* System header to define __stub macros and hopefully few prototypes,
1581
    which can conflict with char $ac_func(); below.  */
1582
#include 
1583
/* Override any gcc2 internal prototype to avoid an error.  */
1584
/* We use char because int might match the return type of a gcc2
1585
    builtin and then its argument prototype would still apply.  */
1586
char $ac_func();
1587
 
1588
int main() {
1589
 
1590
/* The GNU C library defines this for functions which it implements
1591
    to always fail with ENOSYS.  Some functions are actually named
1592
    something starting with __ and the normal name is an alias.  */
1593
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1594
choke me
1595
#else
1596
$ac_func();
1597
#endif
1598
 
1599
; return 0; }
1600
EOF
1601
if { (eval echo configure:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1602
  rm -rf conftest*
1603
  eval "ac_cv_func_$ac_func=yes"
1604
else
1605
  echo "configure: failed program was:" >&5
1606
  cat conftest.$ac_ext >&5
1607
  rm -rf conftest*
1608
  eval "ac_cv_func_$ac_func=no"
1609
fi
1610
rm -f conftest*
1611
fi
1612
 
1613
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1614
  echo "$ac_t""yes" 1>&6
1615
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1616
  cat >> confdefs.h <
1617
#define $ac_tr_func 1
1618
EOF
1619
 
1620
else
1621
  echo "$ac_t""no" 1>&6
1622
fi
1623
done
1624
 
1625
 
1626
# Check whether --enable-ide or --disable-ide was given.
1627
if test "${enable_ide+set}" = set; then
1628
  enableval="$enable_ide"
1629
  case "${enableval}" in
1630
  yes) ide=yes ;;
1631
  no)  ide=no ;;
1632
  *)   { echo "configure: error: bad value ${enableval} for enable-ide option" 1>&2; exit 1; } ;;
1633
esac
1634
else
1635
  ide=no
1636
fi
1637
 
1638
 
1639
 
1640
if test x$ide = xyes; then
1641
  IDE_ENABLED_TRUE=
1642
  IDE_ENABLED_FALSE='#'
1643
else
1644
  IDE_ENABLED_TRUE='#'
1645
  IDE_ENABLED_FALSE=
1646
fi
1647
if test x$ide = xyes; then
1648
  cat >> confdefs.h <<\EOF
1649
#define IDE_ENABLED 1
1650
EOF
1651
 
1652
fi
1653
 
1654
# If we have random, assume we have srandom.  If we have drand48,
1655
# assume we have srand48.  If we have rand, assume we have srand.
1656
for ac_func in random drand48 rand
1657
do
1658
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1659
echo "configure:1660: checking for $ac_func" >&5
1660
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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
/* System header to define __stub macros and hopefully few prototypes,
1667
    which can conflict with char $ac_func(); below.  */
1668
#include 
1669
/* Override any gcc2 internal prototype to avoid an error.  */
1670
/* We use char because int might match the return type of a gcc2
1671
    builtin and then its argument prototype would still apply.  */
1672
char $ac_func();
1673
 
1674
int main() {
1675
 
1676
/* The GNU C library defines this for functions which it implements
1677
    to always fail with ENOSYS.  Some functions are actually named
1678
    something starting with __ and the normal name is an alias.  */
1679
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1680
choke me
1681
#else
1682
$ac_func();
1683
#endif
1684
 
1685
; return 0; }
1686
EOF
1687
if { (eval echo configure:1688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1688
  rm -rf conftest*
1689
  eval "ac_cv_func_$ac_func=yes"
1690
else
1691
  echo "configure: failed program was:" >&5
1692
  cat conftest.$ac_ext >&5
1693
  rm -rf conftest*
1694
  eval "ac_cv_func_$ac_func=no"
1695
fi
1696
rm -f conftest*
1697
fi
1698
 
1699
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1700
  echo "$ac_t""yes" 1>&6
1701
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1702
  cat >> confdefs.h <
1703
#define $ac_tr_func 1
1704
EOF
1705
 break
1706
else
1707
  echo "$ac_t""no" 1>&6
1708
fi
1709
done
1710
 
1711
 
1712
cat > conftest.$ac_ext <
1713
#line 1714 "configure"
1714
#include "confdefs.h"
1715
#include 
1716
EOF
1717
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1718
  egrep "strncasecmp" >/dev/null 2>&1; then
1719
  rm -rf conftest*
1720
  cat >> confdefs.h <<\EOF
1721
#define HAVE_STRNCASECMP_DECL 1
1722
EOF
1723
 
1724
fi
1725
rm -f conftest*
1726
 
1727
 
1728
# Tcl8.1 requires writable strings for gcc
1729
 
1730
if test "$GCC" = "yes"; then
1731
   LIBGUI_CFLAGS=-fwritable-strings
1732
else
1733
   LIBGUI_CFLAGS=
1734
fi
1735
 
1736
echo $ac_n "checking for cygwin32""... $ac_c" 1>&6
1737
echo "configure:1738: checking for cygwin32" >&5
1738
if eval "test \"`echo '$''{'ide_cv_os_cygwin32'+set}'`\" = set"; then
1739
  echo $ac_n "(cached) $ac_c" 1>&6
1740
else
1741
  cat > conftest.$ac_ext <
1742
#line 1743 "configure"
1743
#include "confdefs.h"
1744
 
1745
#ifdef __CYGWIN32__
1746
lose
1747
#endif
1748
EOF
1749
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1750
  egrep "lose" >/dev/null 2>&1; then
1751
  rm -rf conftest*
1752
  ide_cv_os_cygwin32=yes
1753
else
1754
  rm -rf conftest*
1755
  ide_cv_os_cygwin32=no
1756
fi
1757
rm -f conftest*
1758
 
1759
fi
1760
 
1761
echo "$ac_t""$ide_cv_os_cygwin32" 1>&6
1762
ac_win_build="no"
1763
if test x$ide_cv_os_cygwin32 = xyes; then
1764
  ac_win_build="yes"
1765
fi
1766
 
1767
tmp="`cd $srcdir/library; pwd`"
1768
if test x"$ac_cv_prog_CC" = xcl ; then
1769
  tmp2="`cygpath --windows $tmp`"
1770
  LIBGUI_LIBRARY_DIR="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
1771
else
1772
  LIBGUI_LIBRARY_DIR=$tmp
1773
fi
1774
 
1775
 
1776
# Find the init.tcl file.
1777
 
1778
echo $ac_n "checking for init.tcl""... $ac_c" 1>&6
1779
echo "configure:1780: checking for init.tcl" >&5
1780
if eval "test \"`echo '$''{'ac_cv_c_tcl_libdir'+set}'`\" = set"; then
1781
  echo $ac_n "(cached) $ac_c" 1>&6
1782
else
1783
 
1784
if test -f $srcdir/../tcl/library/init.tcl ; then
1785
  ac_cv_c_tcl_libdir=`cd $srcdir/../tcl/library; pwd`
1786
elif test -f $srcdir/../tcl8.1/library/init.tcl; then
1787
  ac_cv_c_tcl_libdir=`cd $srcdir/../tcl8.1/library; pwd`
1788
fi
1789
 
1790
fi
1791
 
1792
echo "$ac_t""${ac_cv_c_tcl_libdir}" 1>&6
1793
 
1794
if test x"$ac_cv_prog_CC" = xcl; then
1795
  tmp2="`cygpath --windows $ac_cv_c_tcl_libdir`"
1796
  TCL_LIBRARY="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
1797
else
1798
  TCL_LIBRARY=$ac_cv_c_tcl_libdir
1799
fi
1800
 
1801
 
1802
# Check for Tcl and Tk.
1803
 
1804
dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
1805
if test x"${no_tcl}" = x ; then
1806
      no_tcl=true
1807
    # Check whether --with-tclconfig or --without-tclconfig was given.
1808
if test "${with_tclconfig+set}" = set; then
1809
  withval="$with_tclconfig"
1810
  with_tclconfig=${withval}
1811
fi
1812
 
1813
    echo $ac_n "checking for Tcl configuration script""... $ac_c" 1>&6
1814
echo "configure:1815: checking for Tcl configuration script" >&5
1815
    if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
1816
  echo $ac_n "(cached) $ac_c" 1>&6
1817
else
1818
 
1819
 
1820
        if test x"${with_tclconfig}" != x ; then
1821
        if test -f "${with_tclconfig}/tclConfig.sh" ; then
1822
            ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
1823
        else
1824
            { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
1825
        fi
1826
    fi
1827
 
1828
        if test x"${ac_cv_c_tclconfig}" = x ; then
1829
        for i in $dirlist; do
1830
            if test -f $srcdir/$i/unix/tclConfig.sh ; then
1831
                ac_cv_c_tclconfig=`(cd $srcdir/$i/unix; pwd)`
1832
                break
1833
            fi
1834
        done
1835
    fi
1836
        if test x"${ac_cv_c_tclconfig}" = x ; then
1837
                for i in $dirlist; do
1838
            if test -n "`ls -dr $i/tcl* 2>/dev/null`" ; then
1839
                tclconfpath=$i
1840
                break
1841
            fi
1842
        done
1843
 
1844
                        for i in `ls -dr $tclconfpath/tcl* 2>/dev/null ` ; do
1845
            if test -f $i/unix/tclConfig.sh ; then
1846
                ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
1847
                break
1848
            fi
1849
        done
1850
    fi
1851
 
1852
            if test x"${ac_cv_c_tclconfig}" = x ; then
1853
                ccpath=`which ${CC}  | sed -e 's:/bin/.*::'`/lib
1854
        if test -f $ccpath/tclConfig.sh; then
1855
            ac_cv_c_tclconfig=$ccpath
1856
        fi
1857
    fi
1858
 
1859
fi
1860
 
1861
    if test x"${ac_cv_c_tclconfig}" = x ; then
1862
        TCLCONFIG=""
1863
        echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
1864
    else
1865
        no_tcl=""
1866
        TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
1867
        echo "$ac_t""${TCLCONFIG}" 1>&6
1868
     fi
1869
fi
1870
 
1871
 
1872
 
1873
    . $TCLCONFIG
1874
 
1875
 
1876
 
1877
 
1878
 
1879
 
1880
 
1881
 
1882
 
1883
 
1884
 
1885
 
1886
 
1887
 
1888
 
1889
 
1890
 
1891
 
1892
 
1893
 
1894
 
1895
 
1896
dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
1897
if test x"${no_tk}" = x ; then
1898
      no_tk=true
1899
    # Check whether --with-tkconfig or --without-tkconfig was given.
1900
if test "${with_tkconfig+set}" = set; then
1901
  withval="$with_tkconfig"
1902
  with_tkconfig=${withval}
1903
fi
1904
 
1905
    echo $ac_n "checking for Tk configuration script""... $ac_c" 1>&6
1906
echo "configure:1907: checking for Tk configuration script" >&5
1907
    if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
1908
  echo $ac_n "(cached) $ac_c" 1>&6
1909
else
1910
 
1911
 
1912
        if test x"${with_tkconfig}" != x ; then
1913
        if test -f "${with_tkconfig}/tkConfig.sh" ; then
1914
            ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
1915
        else
1916
            { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
1917
        fi
1918
    fi
1919
 
1920
        if test x"${ac_cv_c_tkconfig}" = x ; then
1921
        for i in $dirlist; do
1922
            if test -f $srcdir/$i/unix/tkConfig.sh ; then
1923
                ac_cv_c_tkconfig=`(cd $srcdir/$i/unix; pwd)`
1924
                break
1925
            fi
1926
        done
1927
    fi
1928
        if test x"${ac_cv_c_tkconfig}" = x ; then
1929
                for i in $dirlist; do
1930
            if test -n "`ls -dr $i/tk* 2>/dev/null`" ; then
1931
                tkconfpath=$i
1932
                break
1933
            fi
1934
        done
1935
 
1936
                        for i in `ls -dr $tkconfpath/tk* 2>/dev/null ` ; do
1937
            if test -f $i/unix/tkConfig.sh ; then
1938
                ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
1939
                break
1940
            fi
1941
        done
1942
    fi
1943
 
1944
            if test x"${ac_cv_c_tkconfig}" = x ; then
1945
                ccpath=`which ${CC}  | sed -e 's:/bin/.*::'`/lib
1946
        if test -f $ccpath/tkConfig.sh; then
1947
            ac_cv_c_tkconfig=$ccpath
1948
        fi
1949
    fi
1950
 
1951
fi
1952
 
1953
    if test x"${ac_cv_c_tkconfig}" = x ; then
1954
        TKCONFIG=""
1955
        echo "configure: warning: Can't find Tk configuration definitions" 1>&2
1956
    else
1957
        no_tk=""
1958
        TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
1959
        echo "$ac_t""${TKCONFIG}" 1>&6
1960
     fi
1961
fi
1962
 
1963
 
1964
 
1965
    if test -f "$TKCONFIG" ; then
1966
      . $TKCONFIG
1967
    fi
1968
 
1969
 
1970
 
1971
 
1972
 
1973
 
1974
 
1975
 
1976
 
1977
 
1978
 
1979
 
1980
 
1981
 
1982
 
1983
dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
1984
no_tcl=true
1985
echo $ac_n "checking for Tcl headers in the source tree""... $ac_c" 1>&6
1986
echo "configure:1987: checking for Tcl headers in the source tree" >&5
1987
# Check whether --with-tclinclude or --without-tclinclude was given.
1988
if test "${with_tclinclude+set}" = set; then
1989
  withval="$with_tclinclude"
1990
  with_tclinclude=${withval}
1991
fi
1992
 
1993
if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
1994
  echo $ac_n "(cached) $ac_c" 1>&6
1995
else
1996
 
1997
if test x"${with_tclinclude}" != x ; then
1998
  if test -f ${with_tclinclude}/tcl.h ; then
1999
    ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
2000
  elif test -f ${with_tclinclude}/generic/tcl.h ; then
2001
    ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
2002
  else
2003
    { echo "configure: error: ${with_tclinclude} directory doesn't contain headers" 1>&2; exit 1; }
2004
  fi
2005
fi
2006
 
2007
if test x"${ac_cv_c_tclconfig}" != x ; then
2008
  for i in $dirlist; do
2009
    if test -f $ac_cv_c_tclconfig/$i/generic/tcl.h ; then
2010
      ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/$i/generic; pwd)`
2011
      break
2012
    fi
2013
  done
2014
fi
2015
 
2016
if test x"${ac_cv_c_tclh}" = x ; then
2017
        for i in $dirlist; do
2018
        if test -n "`ls -dr $srcdir/$i/tcl* 2>/dev/null`" ; then
2019
            tclpath=$srcdir/$i
2020
            break
2021
        fi
2022
    done
2023
 
2024
            for i in `ls -dr $tclpath/tcl* 2>/dev/null ` ; do
2025
        if test -f $i/generic/tcl.h ; then
2026
          ac_cv_c_tclh=`(cd $i/generic; pwd)`
2027
          break
2028
        fi
2029
    done
2030
fi
2031
 
2032
if test x"${ac_cv_c_tclh}" = x ; then
2033
        ccpath=`which ${CC}  | sed -e 's:/bin/.*::'`/include
2034
    if test -f $ccpath/tcl.h; then
2035
        ac_cv_c_tclh=$ccpath
2036
    fi
2037
fi
2038
 
2039
if test x"${ac_cv_c_tclh}" = x ; then
2040
   echo "$ac_t""none" 1>&6
2041
   ac_safe=`echo "tcl.h" | sed 'y%./+-%__p_%'`
2042
echo $ac_n "checking for tcl.h""... $ac_c" 1>&6
2043
echo "configure:2044: checking for tcl.h" >&5
2044
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2045
  echo $ac_n "(cached) $ac_c" 1>&6
2046
else
2047
  cat > conftest.$ac_ext <
2048
#line 2049 "configure"
2049
#include "confdefs.h"
2050
#include 
2051
EOF
2052
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2053
{ (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2054
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2055
if test -z "$ac_err"; then
2056
  rm -rf conftest*
2057
  eval "ac_cv_header_$ac_safe=yes"
2058
else
2059
  echo "$ac_err" >&5
2060
  echo "configure: failed program was:" >&5
2061
  cat conftest.$ac_ext >&5
2062
  rm -rf conftest*
2063
  eval "ac_cv_header_$ac_safe=no"
2064
fi
2065
rm -f conftest*
2066
fi
2067
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2068
  echo "$ac_t""yes" 1>&6
2069
  ac_cv_c_tclh=installed
2070
else
2071
  echo "$ac_t""no" 1>&6
2072
ac_cv_c_tclh=""
2073
fi
2074
 
2075
else
2076
   echo "$ac_t""${ac_cv_c_tclh}" 1>&6
2077
fi
2078
 
2079
fi
2080
 
2081
  TCLHDIR=""
2082
if test x"${ac_cv_c_tclh}" = x ; then
2083
    { echo "configure: error: Can't find any Tcl headers" 1>&2; exit 1; }
2084
fi
2085
if test x"${ac_cv_c_tclh}" != x ; then
2086
    no_tcl=""
2087
    if test x"${ac_cv_c_tclh}" != x"installed" ; then
2088
        if test x"${CC}" = xcl ; then
2089
            tmp="`cygpath --windows ${ac_cv_c_tclh}`"
2090
            ac_cv_c_tclh="`echo $tmp | sed -e s#\\\\\\\\#/#g`"
2091
        fi
2092
        echo "$ac_t""${ac_cv_c_tclh}" 1>&6
2093
        TCLHDIR="-I${ac_cv_c_tclh}"
2094
    fi
2095
fi
2096
 
2097
 
2098
 
2099
# FIXME: consider only doing this if --with-x given.
2100
 
2101
#
2102
# Ok, lets find the tk source trees so we can use the headers
2103
# If the directory (presumably symlink) named "tk" exists, use that one
2104
# in preference to any others.  Same logic is used when choosing library
2105
# and again with Tcl. The search order is the best place to look first, then in
2106
# decreasing significance. The loop breaks if the trigger file is found.
2107
# Note the gross little conversion here of srcdir by cd'ing to the found
2108
# directory. This converts the path from a relative to an absolute, so
2109
# recursive cache variables for the path will work right. We check all
2110
# the possible paths in one loop rather than many seperate loops to speed
2111
# things up.
2112
# the alternative search directory is involked by --with-tkinclude
2113
#
2114
dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
2115
no_tk=true
2116
echo $ac_n "checking for Tk headers in the source tree""... $ac_c" 1>&6
2117
echo "configure:2118: checking for Tk headers in the source tree" >&5
2118
# Check whether --with-tkinclude or --without-tkinclude was given.
2119
if test "${with_tkinclude+set}" = set; then
2120
  withval="$with_tkinclude"
2121
  with_tkinclude=${withval}
2122
fi
2123
 
2124
if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
2125
  echo $ac_n "(cached) $ac_c" 1>&6
2126
else
2127
 
2128
if test x"${with_tkinclude}" != x ; then
2129
  if test -f ${with_tkinclude}/tk.h ; then
2130
    ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
2131
  elif test -f ${with_tkinclude}/generic/tk.h ; then
2132
    ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
2133
  else
2134
    { echo "configure: error: ${with_tkinclude} directory doesn't contain headers" 1>&2; exit 1; }
2135
  fi
2136
fi
2137
 
2138
if test x"${ac_cv_c_tkconfig}" != x ; then
2139
  for i in $dirlist; do
2140
    if test -f $ac_cv_c_tkconfig/$i/generic/tk.h ; then
2141
      ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/$i/generic; pwd)`
2142
      break
2143
    fi
2144
  done
2145
fi
2146
 
2147
if test x"${ac_cv_c_tkh}" = x ; then
2148
        for i in $dirlist; do
2149
        if test -n "`ls -dr $srcdir/$i/tk* 2>/dev/null`" ; then
2150
            tkpath=$srcdir/$i
2151
            break
2152
        fi
2153
    done
2154
 
2155
            for i in `ls -dr $tkpath/tk* 2>/dev/null ` ; do
2156
        if test -f $i/generic/tk.h ; then
2157
          ac_cv_c_tkh=`(cd $i/generic; pwd)`
2158
          break
2159
        fi
2160
    done
2161
fi
2162
 
2163
if test x"${ac_cv_c_tkh}" = x ; then
2164
    echo "$ac_t""none" 1>&6
2165
            ccpath=`which ${CC}  | sed -e 's:/bin/.*::'`/include
2166
    if test -f $ccpath/tk.h; then
2167
        ac_cv_c_tkh=$ccpath
2168
    fi
2169
else
2170
   echo "$ac_t""${ac_cv_c_tkh}" 1>&6
2171
fi
2172
 
2173
fi
2174
 
2175
  TKHDIR=""
2176
if test x"${ac_cv_c_tkh}" = x ; then
2177
    { echo "configure: error: Can't find any Tk headers" 1>&2; exit 1; }
2178
fi
2179
if test x"${ac_cv_c_tkh}" != x ; then
2180
    no_tk=""
2181
    if test x"${ac_cv_c_tkh}" != x"installed" ; then
2182
        if test x"${CC}" = xcl ; then
2183
            tmp="`cygpath --windows ${ac_cv_c_tkh}`"
2184
            ac_cv_c_tkh="`echo $tmp | sed -e s#\\\\\\\\#/#g`"
2185
        fi
2186
        echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
2187
        TKHDIR="-I${ac_cv_c_tkh}"
2188
    fi
2189
fi
2190
 
2191
 
2192
 
2193
 
2194
#
2195
# Ok, lets find the itcl configuration
2196
# First, look for one uninstalled.
2197
# the alternative search directory is invoked by --with-itclconfig
2198
#
2199
 
2200
if test x"${no_itcl}" = x ; then
2201
  # we reset no_itcl in case something fails here
2202
  no_itcl=true
2203
  # Check whether --with-itclconfig or --without-itclconfig was given.
2204
if test "${with_itclconfig+set}" = set; then
2205
  withval="$with_itclconfig"
2206
  with_itclconfig=${withval}
2207
fi
2208
 
2209
  echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
2210
echo "configure:2211: checking for Itcl configuration" >&5
2211
  if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
2212
  echo $ac_n "(cached) $ac_c" 1>&6
2213
else
2214
 
2215
 
2216
  # First check to see if --with-itclconfig was specified.
2217
  if test x"${with_itclconfig}" != x ; then
2218
    if test -f "${with_itclconfig}/itclConfig.sh" ; then
2219
      ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
2220
    else
2221
      { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
2222
    fi
2223
  fi
2224
 
2225
  # then check for a private itcl library
2226
  if test x"${ac_cv_c_itclconfig}" = x ; then
2227
    for i in \
2228
                ../itcl/itcl \
2229
                `ls -dr ../itcl/itcl[3]* 2>/dev/null` \
2230
                ../../itcl/itcl \
2231
                `ls -dr ../../itcl/itcl[3]* 2>/dev/null` \
2232
                ../../../itcl/itcl \
2233
                `ls -dr ../../../itcl/itcl[3]* 2>/dev/null` ; do
2234
      if test -f "$i/itclConfig.sh" ; then
2235
        ac_cv_c_itclconfig=`(cd $i; pwd)`
2236
        break
2237
      fi
2238
    done
2239
  fi
2240
  # check in a few common install locations
2241
  if test x"${ac_cv_c_itclconfig}" = x ; then
2242
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
2243
      if test -f "$i/itclConfig.sh" ; then
2244
        ac_cv_c_itclconfig=`(cd $i; pwd)`
2245
        break
2246
      fi
2247
    done
2248
  fi
2249
  # check in a few other private locations
2250
  if test x"${ac_cv_c_itclconfig}" = x ; then
2251
    for i in \
2252
                ${srcdir}/../itcl/itcl \
2253
                `ls -dr ${srcdir}/../itcl/itcl[3]* 2>/dev/null` ; do
2254
      if test -f "$i/itcl/itclConfig.sh" ; then
2255
        ac_cv_c_itclconfig=`(cd $i; pwd)`
2256
        break
2257
      fi
2258
    done
2259
  fi
2260
 
2261
fi
2262
 
2263
  if test x"${ac_cv_c_itclconfig}" = x ; then
2264
    ITCLCONFIG="# no itcl configs found"
2265
    echo "configure: warning: Can't find itcl configuration definitions" 1>&2
2266
  else
2267
    no_itcl=
2268
    ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
2269
    echo "$ac_t""found $ITCLCONFIG" 1>&6
2270
  fi
2271
fi
2272
 
2273
 
2274
 
2275
    if test -f "$ITCLCONFIG" ; then
2276
      . $ITCLCONFIG
2277
    fi
2278
 
2279
 
2280
 
2281
 
2282
 
2283
 
2284
 
2285
 
2286
 
2287
# Make sure we can run config.sub.
2288
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
2289
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
2290
fi
2291
 
2292
echo $ac_n "checking host system type""... $ac_c" 1>&6
2293
echo "configure:2294: checking host system type" >&5
2294
 
2295
host_alias=$host
2296
case "$host_alias" in
2297
NONE)
2298
  case $nonopt in
2299
  NONE)
2300
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
2301
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
2302
    fi ;;
2303
  *) host_alias=$nonopt ;;
2304
  esac ;;
2305
esac
2306
 
2307
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
2308
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2309
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2310
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2311
echo "$ac_t""$host" 1>&6
2312
 
2313
case ${host} in
2314
*cygwin*)
2315
        ITCL_DIR=itcl/itcl/win
2316
        touch ac$$.c
2317
        if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
2318
            case "$LIBGUI_CFLAGS" in
2319
                *-mwin32*) ;;
2320
                *) LIBGUI_CFLAGS="-mwin32 $LIBGUI_CFLAGS" ;;
2321
            esac
2322
        fi
2323
        rm -f ac$$.o ac$$.c
2324
        ;;
2325
*)              ITCL_DIR=itcl/itcl/unix ;;
2326
esac
2327
 
2328
 
2329
 
2330
 
2331
 
2332
 
2333
 
2334
 
2335
 
2336
 
2337
 
2338
 
2339
 
2340
 
2341
 
2342
if test x$TCL_SHARED_BUILD = x1; then
2343
  TCL_SHARED_TRUE=
2344
  TCL_SHARED_FALSE='#'
2345
else
2346
  TCL_SHARED_TRUE='#'
2347
  TCL_SHARED_FALSE=
2348
fi
2349
 
2350
 
2351
 
2352
trap '' 1 2 15
2353
cat > confcache <<\EOF
2354
# This file is a shell script that caches the results of configure
2355
# tests run on this system so they can be shared between configure
2356
# scripts and configure runs.  It is not useful on other systems.
2357
# If it contains results you don't want to keep, you may remove or edit it.
2358
#
2359
# By default, configure uses ./config.cache as the cache file,
2360
# creating it if it does not exist already.  You can give configure
2361
# the --cache-file=FILE option to use a different cache file; that is
2362
# what configure does when it calls configure scripts in
2363
# subdirectories, so they share the cache.
2364
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2365
# config.status only pays attention to the cache file if you give it the
2366
# --recheck option to rerun configure.
2367
#
2368
EOF
2369
# The following way of writing the cache mishandles newlines in values,
2370
# but we know of no workaround that is simple, portable, and efficient.
2371
# So, don't put newlines in cache variables' values.
2372
# Ultrix sh set writes to stderr and can't be redirected directly,
2373
# and sets the high bit in the cache file unless we assign to the vars.
2374
(set) 2>&1 |
2375
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2376
  *ac_space=\ *)
2377
    # `set' does not quote correctly, so add quotes (double-quote substitution
2378
    # turns \\\\ into \\, and sed turns \\ into \).
2379
    sed -n \
2380
      -e "s/'/'\\\\''/g" \
2381
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2382
    ;;
2383
  *)
2384
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2385
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2386
    ;;
2387
  esac >> confcache
2388
if cmp -s $cache_file confcache; then
2389
  :
2390
else
2391
  if test -w $cache_file; then
2392
    echo "updating cache $cache_file"
2393
    cat confcache > $cache_file
2394
  else
2395
    echo "not updating unwritable cache $cache_file"
2396
  fi
2397
fi
2398
rm -f confcache
2399
 
2400
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2401
 
2402
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2403
# Let make expand exec_prefix.
2404
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2405
 
2406
# Any assignment to VPATH causes Sun make to only execute
2407
# the first set of double-colon rules, so remove it if not needed.
2408
# If there is a colon in the path, we need to keep it.
2409
if test "x$srcdir" = x.; then
2410
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2411
fi
2412
 
2413
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2414
 
2415
DEFS=-DHAVE_CONFIG_H
2416
 
2417
# Without the "./", some shells look in PATH for config.status.
2418
: ${CONFIG_STATUS=./config.status}
2419
 
2420
echo creating $CONFIG_STATUS
2421
rm -f $CONFIG_STATUS
2422
cat > $CONFIG_STATUS <
2423
#! /bin/sh
2424
# Generated automatically by configure.
2425
# Run this file to recreate the current configuration.
2426
# This directory was configured as follows,
2427
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2428
#
2429
# $0 $ac_configure_args
2430
#
2431
# Compiler output produced by configure, useful for debugging
2432
# configure, is in ./config.log if it exists.
2433
 
2434
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2435
for ac_option
2436
do
2437
  case "\$ac_option" in
2438
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2439
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2440
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2441
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2442
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2443
    exit 0 ;;
2444
  -help | --help | --hel | --he | --h)
2445
    echo "\$ac_cs_usage"; exit 0 ;;
2446
  *) echo "\$ac_cs_usage"; exit 1 ;;
2447
  esac
2448
done
2449
 
2450
ac_given_srcdir=$srcdir
2451
ac_given_INSTALL="$INSTALL"
2452
 
2453
trap 'rm -fr `echo "Makefile library/Makefile src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2454
EOF
2455
cat >> $CONFIG_STATUS <
2456
 
2457
# Protect against being on the right side of a sed subst in config.status.
2458
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2459
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2460
$ac_vpsub
2461
$extrasub
2462
s%@SHELL@%$SHELL%g
2463
s%@CFLAGS@%$CFLAGS%g
2464
s%@CPPFLAGS@%$CPPFLAGS%g
2465
s%@CXXFLAGS@%$CXXFLAGS%g
2466
s%@FFLAGS@%$FFLAGS%g
2467
s%@DEFS@%$DEFS%g
2468
s%@LDFLAGS@%$LDFLAGS%g
2469
s%@LIBS@%$LIBS%g
2470
s%@exec_prefix@%$exec_prefix%g
2471
s%@prefix@%$prefix%g
2472
s%@program_transform_name@%$program_transform_name%g
2473
s%@bindir@%$bindir%g
2474
s%@sbindir@%$sbindir%g
2475
s%@libexecdir@%$libexecdir%g
2476
s%@datadir@%$datadir%g
2477
s%@sysconfdir@%$sysconfdir%g
2478
s%@sharedstatedir@%$sharedstatedir%g
2479
s%@localstatedir@%$localstatedir%g
2480
s%@libdir@%$libdir%g
2481
s%@includedir@%$includedir%g
2482
s%@oldincludedir@%$oldincludedir%g
2483
s%@infodir@%$infodir%g
2484
s%@mandir@%$mandir%g
2485
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2486
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2487
s%@INSTALL_DATA@%$INSTALL_DATA%g
2488
s%@PACKAGE@%$PACKAGE%g
2489
s%@VERSION@%$VERSION%g
2490
s%@ACLOCAL@%$ACLOCAL%g
2491
s%@AUTOCONF@%$AUTOCONF%g
2492
s%@AUTOMAKE@%$AUTOMAKE%g
2493
s%@AUTOHEADER@%$AUTOHEADER%g
2494
s%@MAKEINFO@%$MAKEINFO%g
2495
s%@SET_MAKE@%$SET_MAKE%g
2496
s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2497
s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2498
s%@MAINT@%$MAINT%g
2499
s%@CC@%$CC%g
2500
s%@EXEEXT@%$EXEEXT%g
2501
s%@OBJEXT@%$OBJEXT%g
2502
s%@CROSS_COMPILING_TRUE@%$CROSS_COMPILING_TRUE%g
2503
s%@CROSS_COMPILING_FALSE@%$CROSS_COMPILING_FALSE%g
2504
s%@INSTALL_LIBGUI_TRUE@%$INSTALL_LIBGUI_TRUE%g
2505
s%@INSTALL_LIBGUI_FALSE@%$INSTALL_LIBGUI_FALSE%g
2506
s%@RANLIB@%$RANLIB%g
2507
s%@CPP@%$CPP%g
2508
s%@ALLOCA@%$ALLOCA%g
2509
s%@IDE_ENABLED_TRUE@%$IDE_ENABLED_TRUE%g
2510
s%@IDE_ENABLED_FALSE@%$IDE_ENABLED_FALSE%g
2511
s%@LIBGUI_LIBRARY_DIR@%$LIBGUI_LIBRARY_DIR%g
2512
s%@TCL_LIBRARY@%$TCL_LIBRARY%g
2513
s%@TCLCONFIG@%$TCLCONFIG%g
2514
s%@TCL_DEFS@%$TCL_DEFS%g
2515
s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g
2516
s%@TCL_LIB_FULL_PATH@%$TCL_LIB_FULL_PATH%g
2517
s%@TCL_LIBS@%$TCL_LIBS%g
2518
s%@TCL_CFLAGS@%$TCL_CFLAGS%g
2519
s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
2520
s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
2521
s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
2522
s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
2523
s%@TCL_RANLIB@%$TCL_RANLIB%g
2524
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
2525
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
2526
s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g
2527
s%@TKCONFIG@%$TKCONFIG%g
2528
s%@TK_VERSION@%$TK_VERSION%g
2529
s%@TK_DEFS@%$TK_DEFS%g
2530
s%@TK_LIB_FILE@%$TK_LIB_FILE%g
2531
s%@TK_LIB_FULL_PATH@%$TK_LIB_FULL_PATH%g
2532
s%@TK_LIBS@%$TK_LIBS%g
2533
s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
2534
s%@TK_XINCLUDES@%$TK_XINCLUDES%g
2535
s%@TK_XLIBSW@%$TK_XLIBSW%g
2536
s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
2537
s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
2538
s%@TCLHDIR@%$TCLHDIR%g
2539
s%@TKHDIR@%$TKHDIR%g
2540
s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
2541
s%@ITCL_SH@%$ITCL_SH%g
2542
s%@ITCL_LIB_FILE@%$ITCL_LIB_FILE%g
2543
s%@ITCL_LIB_FULL_PATH@%$ITCL_LIB_FULL_PATH%g
2544
s%@host@%$host%g
2545
s%@host_alias@%$host_alias%g
2546
s%@host_cpu@%$host_cpu%g
2547
s%@host_vendor@%$host_vendor%g
2548
s%@host_os@%$host_os%g
2549
s%@LIBGUI_CFLAGS@%$LIBGUI_CFLAGS%g
2550
s%@ITCL_DIR@%$ITCL_DIR%g
2551
s%@TCL_SHARED_TRUE@%$TCL_SHARED_TRUE%g
2552
s%@TCL_SHARED_FALSE@%$TCL_SHARED_FALSE%g
2553
s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
2554
 
2555
CEOF
2556
EOF
2557
 
2558
cat >> $CONFIG_STATUS <<\EOF
2559
 
2560
# Split the substitutions into bite-sized pieces for seds with
2561
# small command number limits, like on Digital OSF/1 and HP-UX.
2562
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2563
ac_file=1 # Number of current file.
2564
ac_beg=1 # First line for current file.
2565
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2566
ac_more_lines=:
2567
ac_sed_cmds=""
2568
while $ac_more_lines; do
2569
  if test $ac_beg -gt 1; then
2570
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2571
  else
2572
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2573
  fi
2574
  if test ! -s conftest.s$ac_file; then
2575
    ac_more_lines=false
2576
    rm -f conftest.s$ac_file
2577
  else
2578
    if test -z "$ac_sed_cmds"; then
2579
      ac_sed_cmds="sed -f conftest.s$ac_file"
2580
    else
2581
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2582
    fi
2583
    ac_file=`expr $ac_file + 1`
2584
    ac_beg=$ac_end
2585
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2586
  fi
2587
done
2588
if test -z "$ac_sed_cmds"; then
2589
  ac_sed_cmds=cat
2590
fi
2591
EOF
2592
 
2593
cat >> $CONFIG_STATUS <
2594
 
2595
CONFIG_FILES=\${CONFIG_FILES-"Makefile library/Makefile src/Makefile"}
2596
EOF
2597
cat >> $CONFIG_STATUS <<\EOF
2598
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2599
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2600
  case "$ac_file" in
2601
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2602
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2603
  *) ac_file_in="${ac_file}.in" ;;
2604
  esac
2605
 
2606
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2607
 
2608
  # Remove last slash and all that follows it.  Not all systems have dirname.
2609
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2610
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2611
    # The file is in a subdirectory.
2612
    test ! -d "$ac_dir" && mkdir "$ac_dir"
2613
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2614
    # A "../" for each directory in $ac_dir_suffix.
2615
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2616
  else
2617
    ac_dir_suffix= ac_dots=
2618
  fi
2619
 
2620
  case "$ac_given_srcdir" in
2621
  .)  srcdir=.
2622
      if test -z "$ac_dots"; then top_srcdir=.
2623
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2624
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2625
  *) # Relative path.
2626
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2627
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2628
  esac
2629
 
2630
  case "$ac_given_INSTALL" in
2631
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2632
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2633
  esac
2634
 
2635
  echo creating "$ac_file"
2636
  rm -f "$ac_file"
2637
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2638
  case "$ac_file" in
2639
  *Makefile*) ac_comsub="1i\\
2640
# $configure_input" ;;
2641
  *) ac_comsub= ;;
2642
  esac
2643
 
2644
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2645
  sed -e "$ac_comsub
2646
s%@configure_input@%$configure_input%g
2647
s%@srcdir@%$srcdir%g
2648
s%@top_srcdir@%$top_srcdir%g
2649
s%@INSTALL@%$INSTALL%g
2650
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2651
fi; done
2652
rm -f conftest.s*
2653
 
2654
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2655
# NAME is the cpp macro being defined and VALUE is the value it is being given.
2656
#
2657
# ac_d sets the value in "#define NAME VALUE" lines.
2658
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2659
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2660
ac_dC='\3'
2661
ac_dD='%g'
2662
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2663
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2664
ac_uB='\([      ]\)%\1#\2define\3'
2665
ac_uC=' '
2666
ac_uD='\4%g'
2667
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2668
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2669
ac_eB='$%\1#\2define\3'
2670
ac_eC=' '
2671
ac_eD='%g'
2672
 
2673
if test "${CONFIG_HEADERS+set}" != set; then
2674
EOF
2675
cat >> $CONFIG_STATUS <
2676
  CONFIG_HEADERS="config.h"
2677
EOF
2678
cat >> $CONFIG_STATUS <<\EOF
2679
fi
2680
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2681
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2682
  case "$ac_file" in
2683
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2684
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2685
  *) ac_file_in="${ac_file}.in" ;;
2686
  esac
2687
 
2688
  echo creating $ac_file
2689
 
2690
  rm -f conftest.frag conftest.in conftest.out
2691
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2692
  cat $ac_file_inputs > conftest.in
2693
 
2694
EOF
2695
 
2696
# Transform confdefs.h into a sed script conftest.vals that substitutes
2697
# the proper values into config.h.in to produce config.h.  And first:
2698
# Protect against being on the right side of a sed subst in config.status.
2699
# Protect against being in an unquoted here document in config.status.
2700
rm -f conftest.vals
2701
cat > conftest.hdr <<\EOF
2702
s/[\\&%]/\\&/g
2703
s%[\\$`]%\\&%g
2704
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2705
s%ac_d%ac_u%gp
2706
s%ac_u%ac_e%gp
2707
EOF
2708
sed -n -f conftest.hdr confdefs.h > conftest.vals
2709
rm -f conftest.hdr
2710
 
2711
# This sed command replaces #undef with comments.  This is necessary, for
2712
# example, in the case of _POSIX_SOURCE, which is predefined and required
2713
# on some systems where configure will not decide to define it.
2714
cat >> conftest.vals <<\EOF
2715
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2716
EOF
2717
 
2718
# Break up conftest.vals because some shells have a limit on
2719
# the size of here documents, and old seds have small limits too.
2720
 
2721
rm -f conftest.tail
2722
while :
2723
do
2724
  ac_lines=`grep -c . conftest.vals`
2725
  # grep -c gives empty output for an empty file on some AIX systems.
2726
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2727
  # Write a limited-size here document to conftest.frag.
2728
  echo '  cat > conftest.frag <> $CONFIG_STATUS
2729
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2730
  echo 'CEOF
2731
  sed -f conftest.frag conftest.in > conftest.out
2732
  rm -f conftest.in
2733
  mv conftest.out conftest.in
2734
' >> $CONFIG_STATUS
2735
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2736
  rm -f conftest.vals
2737
  mv conftest.tail conftest.vals
2738
done
2739
rm -f conftest.vals
2740
 
2741
cat >> $CONFIG_STATUS <<\EOF
2742
  rm -f conftest.frag conftest.h
2743
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2744
  cat conftest.in >> conftest.h
2745
  rm -f conftest.in
2746
  if cmp -s $ac_file conftest.h 2>/dev/null; then
2747
    echo "$ac_file is unchanged"
2748
    rm -f conftest.h
2749
  else
2750
    # Remove last slash and all that follows it.  Not all systems have dirname.
2751
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2752
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2753
      # The file is in a subdirectory.
2754
      test ! -d "$ac_dir" && mkdir "$ac_dir"
2755
    fi
2756
    rm -f $ac_file
2757
    mv conftest.h $ac_file
2758
  fi
2759
fi; done
2760
 
2761
EOF
2762
cat >> $CONFIG_STATUS <
2763
 
2764
 
2765
EOF
2766
cat >> $CONFIG_STATUS <<\EOF
2767
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2768
 
2769
exit 0
2770
EOF
2771
chmod +x $CONFIG_STATUS
2772
rm -fr confdefs* $ac_clean_files
2773
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2774
 
2775
 
2776
 
2777
 

powered by: WebSVN 2.1.0

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