Debian Codegraph @

Ada95/configure

raw symbols SCIP
1 #! /bin/shscip-shell filesystem . . `/bin/sh`.
2 # From configure.in Revision: 1.97 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20260412.
5 #
6 # Copyright 2003-2025,2026 Thomas E. Dickey
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11
12 # Avoid depending upon Character Ranges.
13 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 as_cr_digits='0123456789'
17 as_cr_alnum=$as_cr_Letters$as_cr_digits
18
19 # Sed expression to map a string onto a valid variable name.
20 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21
22 # Sed expression to map a string onto a valid CPP name.
23 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24
25 # Be Bourne compatible
26 if testscip-shell system . . test. -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
27 emulate sh
28 NULLCMD=:
29 elif testscip-shell system . . test. -n "${BASH_VERSION+set}" && (set -o posix) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
30 set -o posix
31 fi
32
33 # Name of the executable.
34 as_me=`echoscip-shell system . . echo. "$0" |sedscip-shell system . . sed. 's,.*[\\/],,'`
35
36 if exprscip-shell system . . expr. a : '\(a\)' >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
37 as_expr="expr"
38 else
39 as_expr="false"
40 fi
41
42 rmscip-shell system . . rm. -f conf$$ conf$$.exe conf$$.file
43 echoscip-shell system . . echo. >conf$$.file
44 if lnscip-shell system . . ln. -s conf$$.file conf$$ 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then
45 # We could just check for DJGPP; but this test a) works b) is more generic
46 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47 if testscip-shell system . . test. -f conf$$.exe; then
48 # Don't use ln at all; we don't have any links
49 as_ln_s='cp -p'
50 else
51 as_ln_s='ln -s'
52 fi
53 elif lnscip-shell system . . ln. conf$$.file conf$$ 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then
54 as_ln_s='ln'
55 else
56 as_ln_s='cp -p'
57 fi
58 rmscip-shell system . . rm. -f conf$$ conf$$.exe conf$$.file
59
60 as_executable_p="test -f"
61
62 # Support unset when possible.
63 if (FOO=FOO; unset FOO) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
64 as_unset="unset"
65 else
66 as_unset="false"
67 fi
68
69 # NLS nuisances.
70 $as_unset LANG || testscip-shell system . . test. "${LANG+set}" != set || { LANG=C; export LANG; }
71 $as_unset LC_ALL || testscip-shell system . . test. "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 $as_unset LC_TIME || testscip-shell system . . test. "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 $as_unset LC_CTYPE || testscip-shell system . . test. "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 $as_unset LANGUAGE || testscip-shell system . . test. "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 $as_unset LC_COLLATE || testscip-shell system . . test. "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 $as_unset LC_NUMERIC || testscip-shell system . . test. "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 $as_unset LC_MESSAGES || testscip-shell system . . test. "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78
79 # IFS
80 # We need space, tab and new line, in precisely that order.
81 as_nl='
82 '
83 IFS=" $as_nl"
84
85 # CDPATH.
86 $as_unset CDPATH || testscip-shell system . . test. "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87
88 # Name of the host.
89 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 # so uname gets run too.
91 ac_hostname=`(hostnamescip-shell system . . hostname. || unamescip-shell system . . uname. -n) 2>/dev/nullscip-shell filesystem . . `/dev/null`. | sedscip-shell system . . sed. 1q`
92
93 exec 6>&1
94
95 #
96 # Initializations.
97 #
98 ac_default_prefix=/usr/localscip-shell filesystem . . `/usr/local`.
99 cross_compiling=no
100 subdirs=
101 MFLAGS=
102 MAKEFLAGS=
103 SHELL=${CONFIG_SHELL-/bin/sh}
104
105 # Maximum number of lines to put in a shell here document.
106 # This variable seems obsolete. It should probably be removed, and
107 # only ac_max_sed_lines should be used.
108 : "${ac_max_here_lines=38}"
109
110 ac_unique_file="gen/gen.c"
111 # Factoring default headers for most tests.
112 ac_includes_default="\
113 #include <stdio.h>
114 #if HAVE_SYS_TYPES_H
115 # include <sys/types.h>
116 #endif
117 #if HAVE_SYS_STAT_H
118 # include <sys/stat.h>
119 #endif
120 #if STDC_HEADERS
121 # include <stdlib.h>
122 # include <stddef.h>
123 #else
124 # if HAVE_STDLIB_H
125 # include <stdlib.h>
126 # endif
127 #endif
128 #if HAVE_STRING_H
129 # if !STDC_HEADERS && HAVE_MEMORY_H
130 # include <memory.h>
131 # endif
132 # include <string.h>
133 #endif
134 #if HAVE_STRINGS_H
135 # include <strings.h>
136 #endif
137 #if HAVE_INTTYPES_H
138 # include <inttypes.h>
139 #else
140 # if HAVE_STDINT_H
141 # include <stdint.h>
142 # endif
143 #endif
144 #if HAVE_UNISTD_H
145 # include <unistd.h>
146 #endif"
147
148 # Initialize some variables set by options.
149 ac_init_help=
150 ac_init_version=false
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
153 cache_file=/dev/nullscip-shell filesystem . . `/dev/null`.
154 exec_prefix=NONE
155 no_create=
156 no_recursion=
157 prefix=NONE
158 program_prefix=NONE
159 program_suffix=NONE
160 program_transform_name=s,x,x,
161 silent=
162 site=
163 srcdir=
164 verbose=
165 x_includes=NONE
166 x_libraries=NONE
167
168 # Installation directory options.
169 # These are left unexpanded so users can "make install exec_prefix=/foo"
170 # and all the variables that are supposed to be based on exec_prefix
171 # by default will actually change.
172 # Use braces instead of parens because sh, perl, etc. also accept them.
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datarootdir='${prefix}/share'
177 datadir='${datarootdir}'
178 sysconfdir='${prefix}/etc'
179 sharedstatedir='${prefix}/com'
180 localstatedir='${prefix}/var'
181 runstatedir='${localstatedir}/run'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/includescip-shell filesystem . . `/usr/include`.'
185 infodir='${datarootdir}/info'
186 mandir='${datarootdir}/man'
187
188 # Identity of this package.
189 PACKAGE_NAME=
190 PACKAGE_TARNAME=
191 PACKAGE_VERSION=
192 PACKAGE_STRING=
193 PACKAGE_BUGREPORT=
194
195 ac_prev=
196 for ac_option
197 do
198 # If the previous option needs an argument, assign it.
199 if testscip-shell system . . test. -n "$ac_prev"; then
200 eval "$ac_prev=\$ac_option"
201 ac_prev=
202 continue
203 fi
204
205 ac_optarg=`exprscip-shell system . . expr. "x$ac_option" : 'x[^=]*=\(.*\)'`
206
207 # Accept the important Cygnus configure options, so we can diagnose typos.
208
209 case "$ac_option" in
210
211 -bindir | --bindir | --bindi | --bind | --bin | --bi)
212 ac_prev=bindir ;;
213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
214 bindir=$ac_optarg ;;
215
216 -build | --build | --buil | --bui | --bu)
217 ac_prev=build_alias ;;
218 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
219 build_alias=$ac_optarg ;;
220
221 -cache-file | --cache-file | --cache-fil | --cache-fi \
222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
223 ac_prev=cache_file ;;
224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
226 cache_file=$ac_optarg ;;
227
228 --config-cache | -C)
229 cache_file=config.cache ;;
230
231 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
232 ac_prev=datadir ;;
233 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
234 | --da=*)
235 datadir=$ac_optarg ;;
236
237 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
238 | --dataroo | --dataro | --datar)
239 ac_prev=datarootdir ;;
240 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
241 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
242 datarootdir=$ac_optarg ;;
243
244 -disable-* | --disable-*)
245 ac_feature=`exprscip-shell system . . expr. "x$ac_option" : 'x-*disable-\(.*\)'`
246 # Reject names that are not valid shell variable names.
247 exprscip-shell system . . expr. "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. &&
248 { echoscip-shell system . . echo. "$as_me: error: invalid feature name: $ac_feature" >&2
249 { (exit 1); exit 1; }; }
250 ac_feature=`echoscip-shell system . . echo. "$ac_feature" | sedscip-shell system . . sed. 's/-/_/g'`
251 eval "enable_$ac_feature=no" ;;
252
253 -enable-* | --enable-*)
254 ac_feature=`exprscip-shell system . . expr. "x$ac_option" : 'x-*enable-\([^=]*\)'`
255 # Reject names that are not valid shell variable names.
256 exprscip-shell system . . expr. "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. &&
257 { echoscip-shell system . . echo. "$as_me: error: invalid feature name: $ac_feature" >&2
258 { (exit 1); exit 1; }; }
259 ac_feature=`echoscip-shell system . . echo. "$ac_feature" | sedscip-shell system . . sed. 's/-/_/g'`
260 case "$ac_option" in
261 *=*) ac_optarg=`echoscip-shell system . . echo. "$ac_optarg" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"`;;
262 *) ac_optarg=yes ;;
263 esac
264 eval "enable_$ac_feature='$ac_optarg'" ;;
265
266 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
267 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
268 | --exec | --exe | --ex)
269 ac_prev=exec_prefix ;;
270 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
271 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
272 | --exec=* | --exe=* | --ex=*)
273 exec_prefix=$ac_optarg ;;
274
275 -gas | --gas | --ga | --g)
276 # Obsolete; use --with-gas.
277 with_gas=yes ;;
278
279 -help | --help | --hel | --he | -h)
280 ac_init_help=long ;;
281 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
282 ac_init_help=recursive ;;
283 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
284 ac_init_help=short ;;
285
286 -host | --host | --hos | --ho)
287 ac_prev=host_alias ;;
288 -host=* | --host=* | --hos=* | --ho=*)
289 host_alias=$ac_optarg ;;
290
291 -includedir | --includedir | --includedi | --included | --include \
292 | --includ | --inclu | --incl | --inc)
293 ac_prev=includedir ;;
294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
295 | --includ=* | --inclu=* | --incl=* | --inc=*)
296 includedir=$ac_optarg ;;
297
298 -infodir | --infodir | --infodi | --infod | --info | --inf)
299 ac_prev=infodir ;;
300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
301 infodir=$ac_optarg ;;
302
303 -libdir | --libdir | --libdi | --libd)
304 ac_prev=libdir ;;
305 -libdir=* | --libdir=* | --libdi=* | --libd=*)
306 libdir=$ac_optarg ;;
307
308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
309 | --libexe | --libex | --libe)
310 ac_prev=libexecdir ;;
311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
312 | --libexe=* | --libex=* | --libe=*)
313 libexecdir=$ac_optarg ;;
314
315 -localstatedir | --localstatedir | --localstatedi | --localstated \
316 | --localstate | --localstat | --localsta | --localst \
317 | --locals | --local | --loca | --loc | --lo)
318 ac_prev=localstatedir ;;
319 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
320 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
321 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
322 localstatedir=$ac_optarg ;;
323
324 -runstatedir | --runstatedir | --runstatedi | --runstated \
325 | --runstate | --runstat | --runsta | --runst \
326 | --runs | --run | --ru)
327 ac_prev=runstatedir ;;
328 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
329 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
330 | --runs=* | --run=* | --ru=*)
331 runstatedir=$ac_optarg ;;
332
333 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
334 ac_prev=mandir ;;
335 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
336 mandir=$ac_optarg ;;
337
338 -nfp | --nfp | --nf)
339 # Obsolete; use --without-fp.
340 with_fp=no ;;
341
342 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
343 | --no-cr | --no-c)
344 no_create=yes ;;
345
346 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
347 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
348 no_recursion=yes ;;
349
350 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
351 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
352 | --oldin | --oldi | --old | --ol | --o)
353 ac_prev=oldincludedir ;;
354 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
355 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
356 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
357 oldincludedir=$ac_optarg ;;
358
359 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
360 ac_prev=prefix ;;
361 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
362 prefix=$ac_optarg ;;
363
364 -program-prefix | --program-prefix | --program-prefi | --program-pref \
365 | --program-pre | --program-pr | --program-p)
366 ac_prev=program_prefix ;;
367 -program-prefix=* | --program-prefix=* | --program-prefi=* \
368 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
369 program_prefix=$ac_optarg ;;
370
371 -program-suffix | --program-suffix | --program-suffi | --program-suff \
372 | --program-suf | --program-su | --program-s)
373 ac_prev=program_suffix ;;
374 -program-suffix=* | --program-suffix=* | --program-suffi=* \
375 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
376 program_suffix=$ac_optarg ;;
377
378 -program-transform-name | --program-transform-name \
379 | --program-transform-nam | --program-transform-na \
380 | --program-transform-n | --program-transform- \
381 | --program-transform | --program-transfor \
382 | --program-transfo | --program-transf \
383 | --program-trans | --program-tran \
384 | --progr-tra | --program-tr | --program-t)
385 ac_prev=program_transform_name ;;
386 -program-transform-name=* | --program-transform-name=* \
387 | --program-transform-nam=* | --program-transform-na=* \
388 | --program-transform-n=* | --program-transform-=* \
389 | --program-transform=* | --program-transfor=* \
390 | --program-transfo=* | --program-transf=* \
391 | --program-trans=* | --program-tran=* \
392 | --progr-tra=* | --program-tr=* | --program-t=*)
393 program_transform_name=$ac_optarg ;;
394
395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
396 | -silent | --silent | --silen | --sile | --sil)
397 silent=yes ;;
398
399 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
400 ac_prev=sbindir ;;
401 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
402 | --sbi=* | --sb=*)
403 sbindir=$ac_optarg ;;
404
405 -sharedstatedir | --sharedstatedir | --sharedstatedi \
406 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
407 | --sharedst | --shareds | --shared | --share | --shar \
408 | --sha | --sh)
409 ac_prev=sharedstatedir ;;
410 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
411 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
412 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
413 | --sha=* | --sh=*)
414 sharedstatedir=$ac_optarg ;;
415
416 -site | --site | --sit)
417 ac_prev=site ;;
418 -site=* | --site=* | --sit=*)
419 site=$ac_optarg ;;
420
421 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
422 ac_prev=srcdir ;;
423 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
424 srcdir=$ac_optarg ;;
425
426 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
427 | --syscon | --sysco | --sysc | --sys | --sy)
428 ac_prev=sysconfdir ;;
429 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
430 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
431 sysconfdir=$ac_optarg ;;
432
433 -target | --target | --targe | --targ | --tar | --ta | --t)
434 ac_prev=target_alias ;;
435 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
436 target_alias=$ac_optarg ;;
437
438 -v | -verbose | --verbose | --verbos | --verbo | --verb)
439 verbose=yes ;;
440
441 -version | --version | --versio | --versi | --vers | -V)
442 ac_init_version=: ;;
443
444 -with-* | --with-*)
445 ac_package=`exprscip-shell system . . expr. "x$ac_option" : 'x-*with-\([^=]*\)'`
446 # Reject names that are not valid shell variable names.
447 exprscip-shell system . . expr. "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. &&
448 { echoscip-shell system . . echo. "$as_me: error: invalid package name: $ac_package" >&2
449 { (exit 1); exit 1; }; }
450 ac_package=`echoscip-shell system . . echo. "$ac_package" | sedscip-shell system . . sed. 's/-/_/g'`
451 case "$ac_option" in
452 *=*) ac_optarg=`echoscip-shell system . . echo. "$ac_optarg" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"`;;
453 *) ac_optarg=yes ;;
454 esac
455 eval "with_$ac_package='$ac_optarg'" ;;
456
457 -without-* | --without-*)
458 ac_package=`exprscip-shell system . . expr. "x$ac_option" : 'x-*without-\(.*\)'`
459 # Reject names that are not valid shell variable names.
460 exprscip-shell system . . expr. "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. &&
461 { echoscip-shell system . . echo. "$as_me: error: invalid package name: $ac_package" >&2
462 { (exit 1); exit 1; }; }
463 ac_package=`echoscip-shell system . . echo. "$ac_package" | sedscip-shell system . . sed. 's/-/_/g'`
464 eval "with_$ac_package=no" ;;
465
466 --x)
467 # Obsolete; use --with-x.
468 with_x=yes ;;
469
470 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
471 | --x-incl | --x-inc | --x-in | --x-i)
472 ac_prev=x_includes ;;
473 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
474 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
475 x_includes=$ac_optarg ;;
476
477 -x-libraries | --x-libraries | --x-librarie | --x-librari \
478 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
479 ac_prev=x_libraries ;;
480 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
481 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
482 x_libraries=$ac_optarg ;;
483
484 -*dir | -dvi* | -doc* | -html* | -local* | -pdf* | -ps* )
485 echoscip-shell system . . echo. "$as_me: WARNING: unsupported option: $ac_option" >&2
486 ;;
487
488 -*) { echoscip-shell system . . echo. "$as_me: error: unrecognized option: $ac_option
489 Try \`$0 --help' for more information." >&2
490 { (exit 1); exit 1; }; }
491 ;;
492
493 *=*)
494 ac_envvar=`exprscip-shell system . . expr. "x$ac_option" : 'x\([^=]*\)='`
495 # Reject names that are not valid shell variable names.
496 exprscip-shell system . . expr. "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. &&
497 { echoscip-shell system . . echo. "$as_me: error: invalid variable name: $ac_envvar" >&2
498 { (exit 1); exit 1; }; }
499 ac_optarg=`echoscip-shell system . . echo. "$ac_optarg" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"`
500 eval "$ac_envvar='$ac_optarg'"
501 export "$ac_envvar" ;;
502
503 *)
504 # FIXME: should be removed in autoconf 3.0.
505 echoscip-shell system . . echo. "$as_me: WARNING: you should use --build, --host, --target" >&2
506 exprscip-shell system . . expr. "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. &&
507 echoscip-shell system . . echo. "$as_me: WARNING: invalid host type: $ac_option" >&2
508 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}"
509 ;;
510
511 esac
512 done
513
514 if testscip-shell system . . test. -n "$ac_prev"; then
515 ac_option=--`echoscip-shell system . . echo. "$ac_prev" | sedscip-shell system . . sed. 's/_/-/g'`
516 { echoscip-shell system . . echo. "$as_me: error: missing argument to $ac_option" >&2
517 { (exit 1); exit 1; }; }
518 fi
519
520 # Be sure to have absolute paths.
521 for ac_var in exec_prefix prefix
522 do
523 eval ac_val=$`echoscip-shell system . . echo. "$ac_var"`
524 case "$ac_val" in
525 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
526 *) { echoscip-shell system . . echo. "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
527 { (exit 1); exit 1; }; };;
528 esac
529 done
530
531 # Be sure to have absolute paths.
532 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
533 localstatedir libdir includedir oldincludedir infodir mandir
534 do
535 eval ac_val=$`echoscip-shell system . . echo. "$ac_var"`
536 case "$ac_val" in
537 [\\/$]* | ?:[\\/]* ) ;;
538 *) { echoscip-shell system . . echo. "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
539 { (exit 1); exit 1; }; };;
540 esac
541 done
542
543 # There might be people who depend on the old broken behavior: `$host'
544 # used to hold the argument of --host etc.
545 build=$build_alias
546 host=$host_alias
547 target=$target_alias
548
549 # FIXME: should be removed in autoconf 3.0.
550 if testscip-shell system . . test. "x$host_alias" != x; then
551 if testscip-shell system . . test. "x$build_alias" = x; then
552 cross_compiling=maybe
553 echoscip-shell system . . echo. "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
554 If a cross compiler is detected then cross compile mode will be used." >&2
555 elif testscip-shell system . . test. "x$build_alias" != "x$host_alias"; then
556 cross_compiling=yes
557 fi
558 fi
559
560 ac_tool_prefix=
561 testscip-shell system . . test. -n "$host_alias" && ac_tool_prefix=$host_alias-
562
563 testscip-shell system . . test. "$silent" = yes && exec 6>/dev/nullscip-shell filesystem . . `/dev/null`.
564
565 # Find the source files, if location was not specified.
566 if testscip-shell system . . test. -z "$srcdir"; then
567 ac_srcdir_defaulted=yes
568 # Try the directory containing this script, then its parent.
569 ac_prog=$0
570 ac_confdir=`echoscip-shell system . . echo. "$ac_prog" | sedscip-shell system . . sed. 's%[\\/][^\\/][^\\/]*$%%'`
571 testscip-shell system . . test. "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
572 srcdir=$ac_confdir
573 if testscip-shell system . . test. ! -r "$srcdir/$ac_unique_file"; then
574 srcdir=..
575 fi
576 else
577 ac_srcdir_defaulted=no
578 fi
579 if testscip-shell system . . test. ! -r "$srcdir/$ac_unique_file"; then
580 if testscip-shell system . . test. "$ac_srcdir_defaulted" = yes; then
581 { echoscip-shell system . . echo. "$as_me: error: cannot find sources in $ac_confdir or .." >&2
582 { (exit 1); exit 1; }; }
583 else
584 { echoscip-shell system . . echo. "$as_me: error: cannot find sources in $srcdir" >&2
585 { (exit 1); exit 1; }; }
586 fi
587 fi
588 srcdir=`echoscip-shell system . . echo. "$srcdir" | sedscip-shell system . . sed. 's%\([^\\/]\)[\\/]*$%\1%'`
589 ac_env_build_alias_set=${build_alias+set}
590 ac_env_build_alias_value=$build_alias
591 ac_cv_env_build_alias_set=${build_alias+set}
592 ac_cv_env_build_alias_value=$build_alias
593 ac_env_host_alias_set=${host_alias+set}
594 ac_env_host_alias_value=$host_alias
595 ac_cv_env_host_alias_set=${host_alias+set}
596 ac_cv_env_host_alias_value=$host_alias
597 ac_env_target_alias_set=${target_alias+set}
598 ac_env_target_alias_value=$target_alias
599 ac_cv_env_target_alias_set=${target_alias+set}
600 ac_cv_env_target_alias_value=$target_alias
601 ac_env_CC_set=${CC+set}
602 ac_env_CC_value=$CC
603 ac_cv_env_CC_set=${CC+set}
604 ac_cv_env_CC_value=$CC
605 ac_env_CFLAGS_set=${CFLAGS+set}
606 ac_env_CFLAGS_value=$CFLAGS
607 ac_cv_env_CFLAGS_set=${CFLAGS+set}
608 ac_cv_env_CFLAGS_value=$CFLAGS
609 ac_env_LDFLAGS_set=${LDFLAGS+set}
610 ac_env_LDFLAGS_value=$LDFLAGS
611 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
612 ac_cv_env_LDFLAGS_value=$LDFLAGS
613 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
614 ac_env_CPPFLAGS_value=$CPPFLAGS
615 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
616 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
617 ac_env_CPP_set=${CPP+set}
618 ac_env_CPP_value=$CPP
619 ac_cv_env_CPP_set=${CPP+set}
620 ac_cv_env_CPP_value=$CPP
621
622 #
623 # Report the --help message.
624 #
625 if testscip-shell system . . test. "$ac_init_help" = "long"; then
626 # Omit some internal or obsolete options to make the list less imposing.
627 # This message is too long to be a string in the A/UX 3.1 sh.
628 catscip-shell system . . cat. <<EOF
629 \`configure' configures this package to adapt to many kinds of systems.
630
631 Usage: $0 [OPTION]... [VAR=VALUE]...
632
633 To assign environment variables (e.g., CC, CFLAGS...), specify them as
634 VAR=VALUE. See below for descriptions of some of the useful variables.
635
636 Defaults for the options are specified in brackets.
637
638 Configuration:
639 -h, --help display this help and exit
640 --help=short display options specific to this package
641 --help=recursive display the short help of all the included packages
642 -V, --version display version information and exit
643 -q, --quiet, --silent do not print \`checking...' messages
644 --cache-file=FILE cache test results in FILE [disabled]
645 -C, --config-cache alias for \`--cache-file=config.cache'
646 -n, --no-create do not create output files
647 --srcdir=DIR find the sources in DIR [configure dir or \`..']
648
649 EOF
650
651 catscip-shell system . . cat. <<EOF
652 Installation directories:
653 --prefix=PREFIX install architecture-independent files in PREFIX
654 [$ac_default_prefix]
655 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
656 [PREFIX]
657
658 By default, \`make install' will install all the files in
659 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
660 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
661 for instance \`--prefix=\$HOME'.
662
663 For better control, use the options below.
664
665 Fine tuning of the installation directories:
666 --bindir=DIR user executables [EPREFIX/bin]
667 --sbindir=DIR system admin executables [EPREFIX/sbin]
668 --libexecdir=DIR program executables [EPREFIX/libexec]
669 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
670 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
671 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
672 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
673 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
674 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
675 --libdir=DIR object code libraries [EPREFIX/lib]
676 --includedir=DIR C header files [PREFIX/include]
677 --oldincludedir=DIR C header files for non-gcc [/usr/include]
678 --infodir=DIR info documentation [DATAROOTDIR/info]
679 --mandir=DIR man documentation [DATAROOTDIR/man]
680 EOF
681
682 catscip-shell system . . cat. <<\EOF
683
684 Program names:
685 --program-prefix=PREFIX prepend PREFIX to installed program names
686 --program-suffix=SUFFIX append SUFFIX to installed program names
687 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
688
689 System types:
690 --build=BUILD configure for building on BUILD [guessed]
691 --host=HOST build programs to run on HOST [BUILD]
692 --target=TARGET configure for building compilers for TARGET [HOST]
693 EOF
694 fi
695
696 if testscip-shell system . . test. -n "$ac_init_help"; then
697
698 catscip-shell system . . cat. <<\EOF
699
700 Optional Packages:
701 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
702 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
703
704 Optional Features:
705 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
706 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
707
708 General Options:
709 --with-system-type=XXX test: override derived host system-type
710 --without-ada suppress check for Ada compiler
711 --disable-stripping do not strip (debug info) installed executables
712 --with-strip-program=XX specify program to use when stripping in install
713 --with-pkg-config[=CMD] enable/disable use of pkg-config and its name CMD
714 --with-pkg-config-libdir[=XXX] use given directory for installing pc-files
715 --without-tests suppress build with test-programs
716 --enable-mixed-case tic should assume mixed-case filenames
717 --with-install-prefix=DESTDIR use DESTDIR as installation directory prefix
718 --enable-install-prefix merge DESTDIR with installation prefix
719 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
720 --with-build-cc=XXX the build C compiler ($BUILD_CC)
721 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
722 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
723 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
724 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
725 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
726 Options to Specify the Libraries Built/Used:
727 --with-shared generate shared C-objects (needed for --with-ada-sharedlib)
728 --with-curses-dir=DIR directory in which (n)curses is installed
729 --with-screen=XXX use specified curses-libraries
730 --with-lib-prefix override library-prefix
731 --with-shlib-version[={rel|abi}] use release or ABI version in shared library file names
732 --enable-rpath-link link sample programs with rpath option
733 Fine-Tuning Your Configuration:
734 --enable-broken_linker compile with broken-linker support code
735 --disable-largefile omit support for large files
736 --with-rcs-ids compile-in RCS identifiers
737 Extensions:
738 --disable-ext-funcs disable function-extensions
739 --enable-const compile with extra/non-standard const
740 Development Code:
741 --without-develop disable development options
742 Experimental Code:
743 --with-pthread use POSIX thread library
744 --enable-weak-symbols enable weak-symbols for pthreads
745 --enable-reentrant compile with experimental reentrant code
746 --with-wrap-prefix=XXX override prefix used for public variables
747 Testing/development Options:
748 --disable-echo do not display "compiling" commands
749 --enable-warnings test: turn on gcc compiler warnings
750 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics
751 --enable-assertions test: turn on generation of assertion code
752 --enable-expanded test: generate functions for certain macros
753 --disable-macros test: use functions rather than macros
754 --with-trace test: add trace() function to all models of ncurses
755 --disable-gnat-projects test: disable GNAT projects even if usable
756 Ada95 Binding Options:
757 --with-ada-compiler[=CMD] use CMD as Ada95 compiler (default: gnatmake)
758 --with-ada-include=DIR find Ada95 includes in DIR (default: PREFIX/share/ada/adainclude)
759 --with-ada-objects=DIR find Ada95 objects in DIR (default: PREFIX/lib/ada/adalib)
760 --with-ada-sharedlib build Ada95 shared library; requires GNAT project support
761 --with-ada-libname[=XXX] use XXX as Ada95 library name
762
763 Some influential environment variables:
764 CC C compiler command
765 CFLAGS C compiler flags
766 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
767 nonstandard directory <lib dir>
768 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
769 headers in a nonstandard directory <include dir>
770 CPP C preprocessor
771
772 Use these variables to override the choices made by `configure' or to help
773 it to find libraries and programs with nonstandard names/locations.
774
775 EOF
776 fi
777
778 if testscip-shell system . . test. "$ac_init_help" = "recursive"; then
779 # If there are subdirs, report their specific --help.
780 ac_popdir=`pwdscip-shell system . . pwd.`
781 for ac_subdir in : $ac_subdirs_all; do testscip-shell system . . test. "x$ac_subdir" = x: && continue
782 cd "$ac_subdir"
783 # A "../" for each directory in /$ac_subdir.
784 ac_dots=`echoscip-shell system . . echo. "$ac_subdir" |
785 sedscip-shell system . . sed. 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
786
787 case "$srcdir" in
788 .) # No --srcdir option. We are building in place.
789 ac_sub_srcdir="$srcdir" ;;
790 [\\/]* | ?:[\\/]* ) # Absolute path.
791 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
792 *) # Relative path.
793 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
794 esac
795
796 # Check for guested configure; otherwise get Cygnus style configure.
797 if testscip-shell system . . test. -f "$ac_sub_srcdir/configure.gnu"; then
798 echoscip-shell system . . echo.
799 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
800 elif testscip-shell system . . test. -f "$ac_sub_srcdir/configure"; then
801 echoscip-shell system . . echo.
802 $SHELL "$ac_sub_srcdir/configure" --help=recursive
803 elif testscip-shell system . . test. -f "$ac_sub_srcdir/configure.ac" ||
804 testscip-shell system . . test. -f "$ac_sub_srcdir/configure.in"; then
805 echoscip-shell system . . echo.
806 "$ac_configure" --help
807 else
808 echoscip-shell system . . echo. "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
809 fi
810 cd "$ac_popdir"
811 done
812 fi
813
814 testscip-shell system . . test. -n "$ac_init_help" && exit 0
815 if "$ac_init_version"; then
816 catscip-shell system . . cat. <<\EOF
817
818 Copyright 2003-2025,2026 Thomas E. Dickey
819 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
820 Free Software Foundation, Inc.
821 This configure script is free software; the Free Software Foundation
822 gives unlimited permission to copy, distribute and modify it.
823 EOF
824 exit 0
825 fi
826 exec 5>config.log
827 catscip-shell system . . cat. >&5 <<EOF
828 This file contains any messages produced by compilers while
829 running configure, to aid debugging if configure makes a mistake.
830
831 It was created by $as_me, which was
832 generated by GNU Autoconf 2.52.20260412. Invocation command line was
833
834 $ $0 $@
835
836 EOF
837 {
838 catscip-shell system . . cat. <<_ASUNAME
839 ## ---------- ##
840 ## Platform. ##
841 ## ---------- ##
842
843 hostname = `(hostnamescip-shell system . . hostname. || unamescip-shell system . . uname. -n) 2>/dev/nullscip-shell filesystem . . `/dev/null`. | sedscip-shell system . . sed. 1q`
844 uname -m = `(unamescip-shell system . . uname. -m) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
845 uname -r = `(unamescip-shell system . . uname. -r) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
846 uname -s = `(unamescip-shell system . . uname. -s) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
847 uname -v = `(unamescip-shell system . . uname. -v) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
848
849 /usr/bin/uname -p = `(/usr/bin/unamescip-shell filesystem . . `/usr/bin/uname`. -p) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
850 /bin/uname -X = `(/bin/unamescip-shell filesystem . . `/bin/uname`. -X) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
851
852 /bin/arch = `(/bin/archscip-shell filesystem . . `/bin/arch`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
853 /usr/bin/arch -k = `(/usr/bin/archscip-shell filesystem . . `/usr/bin/arch`. -k) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
854 /usr/convex/getsysinfo = `(/usr/convex/getsysinfoscip-shell filesystem . . `/usr/convex/getsysinfo`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
855 hostinfo = `(hostinfo) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
856 /bin/machine = `(/bin/machinescip-shell filesystem . . `/bin/machine`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
857 /usr/bin/oslevel = `(/usr/bin/oslevelscip-shell filesystem . . `/usr/bin/oslevel`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
858 /bin/universe = `(/bin/universescip-shell filesystem . . `/bin/universe`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown`
859
860 PATH = $PATH
861
862 _ASUNAME
863 } >&5
864
865 catscip-shell system . . cat. >&5 <<EOF
866 ## ------------ ##
867 ## Core tests. ##
868 ## ------------ ##
869
870 EOF
871
872 # Keep a trace of the command line.
873 # Strip out --no-create and --no-recursion so they do not pile up.
874 # Also quote any args containing shell meta-characters.
875 ac_configure_args=
876 ac_sep=
877 for ac_arg
878 do
879 case "$ac_arg" in
880 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
881 | --no-cr | --no-c) ;;
882 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
883 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
884 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
885 ac_arg=`echoscip-shell system . . echo. "$ac_arg" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"`
886 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
887 ac_sep=" " ;;
888 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
889 ac_sep=" " ;;
890 esac
891 # Get rid of the leading space.
892 done
893
894 # When interrupted or exit'd, cleanup temporary files, and complete
895 # config.log. We remove comments because anyway the quotes in there
896 # would cause problems or look ugly.
897 trap 'exit_status=$?
898 # Save into config.log some information that might help in debugging.
899 echo >&5
900 echo "## ----------------- ##" >&5
901 echo "## Cache variables. ##" >&5
902 echo "## ----------------- ##" >&5
903 echo >&5
904 # The following way of writing the cache mishandles newlines in values,
905 {
906 (set) 2>&1 |
907 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
908 *ac_space=\ *)
909 sed -n \
910 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
912 ;;
913 *)
914 sed -n \
915 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
916 ;;
917 esac;
918 } >&5
919 sed "/^$/d" confdefs.h >conftest.log
920 if test -s conftest.log; then
921 echo >&5
922 echo "## ------------ ##" >&5
923 echo "## confdefs.h. ##" >&5
924 echo "## ------------ ##" >&5
925 echo >&5
926 cat conftest.log >&5
927 fi
928 (echo; echo) >&5
929 test "$ac_signal" != 0 &&
930 echo "$as_me: caught signal $ac_signal" >&5
931 echo "$as_me: exit $exit_status" >&5
932 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
933 exit $exit_status
934 ' 0
935 for ac_signal in 1 2 13 15; do
936 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
937 done
938 ac_signal=0
939
940 # confdefs.h avoids OS command line length limits that DEFS can exceed.
941 rmscip-shell system . . rm. -rf conftest* confdefs.h
942 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
943 echoscip-shell system . . echo. >confdefs.h
944
945 # Let the site file select an alternate cache file if it wants to.
946 # Prefer explicitly selected file to automatically selected ones.
947 if testscip-shell system . . test. -z "$CONFIG_SITE"; then
948 if testscip-shell system . . test. "x$prefix" != xNONE; then
949 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
950 else
951 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
952 fi
953 fi
954 for ac_site_file in $CONFIG_SITE; do
955 if testscip-shell system . . test. -r "$ac_site_file"; then
956 { echoscip-shell system . . echo. "$as_me:956: loading site script $ac_site_file" >&5
957 echoscip-shell system . . echo. "$as_me: loading site script $ac_site_file" >&6;}
958 catscip-shell system . . cat. "$ac_site_file" >&5
959 . "$ac_site_file"
960 fi
961 done
962
963 if testscip-shell system . . test. -r "$cache_file"; then
964 # Some versions of bash will fail to source /dev/null (special
965 # files actually), so we avoid doing that.
966 if testscip-shell system . . test. -f "$cache_file"; then
967 { echoscip-shell system . . echo. "$as_me:967: loading cache $cache_file" >&5
968 echoscip-shell system . . echo. "$as_me: loading cache $cache_file" >&6;}
969 case $cache_file in
970 [\\/]* | ?:[\\/]* ) . $cache_file;;
971 *) . ./$cache_file;;
972 esac
973 fi
974 else
975 { echoscip-shell system . . echo. "$as_me:975: creating cache $cache_file" >&5
976 echoscip-shell system . . echo. "$as_me: creating cache $cache_file" >&6;}
977 >$cache_file
978 fi
979
980 # Check that the precious variables saved in the cache have kept the same
981 # value.
982 ac_cache_corrupted=false
983 for ac_var in `(set) 2>&1 |
984 sedscip-shell system . . sed. -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
985 eval ac_old_set=\$ac_cv_env_${ac_var}_set
986 eval ac_new_set=\$ac_env_${ac_var}_set
987 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
988 eval ac_new_val="\$ac_env_${ac_var}_value"
989 case "$ac_old_set,$ac_new_set" in
990 set,)
991 { echoscip-shell system . . echo. "$as_me:991: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
992 echoscip-shell system . . echo. "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
993 ac_cache_corrupted=: ;;
994 ,set)
995 { echoscip-shell system . . echo. "$as_me:995: error: \`$ac_var' was not set in the previous run" >&5
996 echoscip-shell system . . echo. "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
997 ac_cache_corrupted=: ;;
998 ,);;
999 *)
1000 if testscip-shell system . . test. "x$ac_old_val" != "x$ac_new_val"; then
1001 { echoscip-shell system . . echo. "$as_me:1001: error: \`$ac_var' has changed since the previous run:" >&5
1002 echoscip-shell system . . echo. "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1003 { echoscip-shell system . . echo. "$as_me:1003: former value: $ac_old_val" >&5
1004 echoscip-shell system . . echo. "$as_me: former value: $ac_old_val" >&2;}
1005 { echoscip-shell system . . echo. "$as_me:1005: current value: $ac_new_val" >&5
1006 echoscip-shell system . . echo. "$as_me: current value: $ac_new_val" >&2;}
1007 ac_cache_corrupted=:
1008 fi;;
1009 esac
1010 # Pass precious variables to config.status. It doesn't matter if
1011 # we pass some twice (in addition to the command line arguments).
1012 if testscip-shell system . . test. "$ac_new_set" = set; then
1013 case "$ac_new_val" in
1014 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1015 ac_arg=$ac_var=`echoscip-shell system . . echo. "$ac_new_val" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"`
1016 ac_configure_args="$ac_configure_args '$ac_arg'"
1017 ;;
1018 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1019 ;;
1020 esac
1021 fi
1022 done
1023 if "$ac_cache_corrupted"; then
1024 { echoscip-shell system . . echo. "$as_me:1024: error: changes in the environment can compromise the build" >&5
1025 echoscip-shell system . . echo. "$as_me: error: changes in the environment can compromise the build" >&2;}
1026 { { echoscip-shell system . . echo. "$as_me:1026: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1027 echoscip-shell system . . echo. "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1028 { (exit 1); exit 1; }; }
1029 fi
1030
1031 ac_ext=c
1032 ac_cpp='$CPP $CPPFLAGS'
1033 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1034 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1036 ac_main_return="return"
1037
1038 case `echoscip-shell system . . echo. "testing\c" 2>/dev/nullscip-shell filesystem . . `/dev/null`.; echoscip-shell system . . echo. 1,2,3`,`echoscip-shell system . . echo. -n testing 2>/dev/nullscip-shell filesystem . . `/dev/null`.; echoscip-shell system . . echo. 1,2,3` in
1039 *c*,-n*) ECHO_N=
1040 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1041 ECHO_T=' '
1042 ;;
1043 *c*,* ) ECHO_N=-n
1044 ECHO_C=
1045 ECHO_T=
1046 ;;
1047 *) ECHO_N=
1048 ECHO_C='\c'
1049 ECHO_T=
1050 ;;
1051 esac
1052 echoscip-shell system . . echo. "#! $SHELL" >conftest.sh
1053 echoscip-shell system . . echo. "exit 0" >>conftest.sh
1054 chmodscip-shell system . . chmod. +x conftest.sh
1055 if { (echoscip-shell system . . echo. "$as_me:1055: PATH=\".;.\"; conftest.sh") >&5
1056 (PATH=".;."; conftest.sh) 2>&5
1057 ac_status=$?
1058 echoscip-shell system . . echo. "$as_me:1058: \$? = $ac_status" >&5
1059 (exit "$ac_status"); }; then
1060 ac_path_separator=';'
1061 else
1062 ac_path_separator=:
1063 fi
1064 PATH_SEPARATOR="$ac_path_separator"
1065 rmscip-shell system . . rm. -f conftest.sh
1066
1067 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1068
1069 PACKAGE="AdaCurses"
1070
1071 top_builddir=`pwdscip-shell system . . pwd.`
1072
1073 ac_aux_dir=
1074 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1075 if testscip-shell system . . test. -f "$ac_dir/install-sh"; then
1076 ac_aux_dir=$ac_dir
1077 ac_install_sh="$ac_aux_dir/install-sh -c"
1078 break
1079 elif testscip-shell system . . test. -f "$ac_dir/install.sh"; then
1080 ac_aux_dir=$ac_dir
1081 ac_install_sh="$ac_aux_dir/install.sh -c"
1082 break
1083 elif testscip-shell system . . test. -f "$ac_dir/shtool"; then
1084 ac_aux_dir=$ac_dir
1085 ac_install_sh="$ac_aux_dir/shtool install -c"
1086 break
1087 fi
1088 done
1089 if testscip-shell system . . test. -z "$ac_aux_dir"; then
1090 { { echoscip-shell system . . echo. "$as_me:1090: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1091 echoscip-shell system . . echo. "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1092 { (exit 1); exit 1; }; }
1093 fi
1094 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1095 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1096 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1097
1098 # Make sure we can run config.sub.
1099 $ac_config_sub sun4 >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 ||
1100 { { echoscip-shell system . . echo. "$as_me:1100: error: cannot run $ac_config_sub" >&5
1101 echoscip-shell system . . echo. "$as_me: error: cannot run $ac_config_sub" >&2;}
1102 { (exit 1); exit 1; }; }
1103
1104 echoscip-shell system . . echo. "$as_me:1104: checking build system type" >&5
1105 echoscip-shell system . . echo. $ECHO_N "checking build system type... $ECHO_C" >&6
1106 if testscip-shell system . . test. "${ac_cv_build+set}" = set; then
1107 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
1108 else
1109 ac_cv_build_alias=$build_alias
1110 testscip-shell system . . test. -z "$ac_cv_build_alias" &&
1111 ac_cv_build_alias=`$ac_config_guess`
1112 testscip-shell system . . test. -z "$ac_cv_build_alias" &&
1113 { { echoscip-shell system . . echo. "$as_me:1113: error: cannot guess build type; you must specify one" >&5
1114 echoscip-shell system . . echo. "$as_me: error: cannot guess build type; you must specify one" >&2;}
1115 { (exit 1); exit 1; }; }
1116 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1117 { { echoscip-shell system . . echo. "$as_me:1117: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1118 echoscip-shell system . . echo. "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1119 { (exit 1); exit 1; }; }
1120
1121 fi
1122 echoscip-shell system . . echo. "$as_me:1122: result: $ac_cv_build" >&5
1123 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_build" >&6
1124 build=$ac_cv_build
1125 build_cpu=`echoscip-shell system . . echo. "$ac_cv_build" | sedscip-shell system . . sed. 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1126 build_vendor=`echoscip-shell system . . echo. "$ac_cv_build" | sedscip-shell system . . sed. 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1127 build_os=`echoscip-shell system . . echo. "$ac_cv_build" | sedscip-shell system . . sed. 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1128
1129 echoscip-shell system . . echo. "$as_me:1129: checking host system type" >&5
1130 echoscip-shell system . . echo. $ECHO_N "checking host system type... $ECHO_C" >&6
1131 if testscip-shell system . . test. "${ac_cv_host+set}" = set; then
1132 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
1133 else
1134 ac_cv_host_alias=$host_alias
1135 testscip-shell system . . test. -z "$ac_cv_host_alias" &&
1136 ac_cv_host_alias=$ac_cv_build_alias
1137 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1138 { { echoscip-shell system . . echo. "$as_me:1138: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1139 echoscip-shell system . . echo. "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1140 { (exit 1); exit 1; }; }
1141
1142 fi
1143 echoscip-shell system . . echo. "$as_me:1143: result: $ac_cv_host" >&5
1144 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_host" >&6
1145 host=$ac_cv_host
1146 host_cpu=`echoscip-shell system . . echo. "$ac_cv_host" | sedscip-shell system . . sed. 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1147 host_vendor=`echoscip-shell system . . echo. "$ac_cv_host" | sedscip-shell system . . sed. 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1148 host_os=`echoscip-shell system . . echo. "$ac_cv_host" | sedscip-shell system . . sed. 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1149
1150 if testscip-shell system . . test. -f "$srcdir/config.guess" || testscip-shell system . . test. -f "$ac_aux_dir/config.guess" ; then
1151 echoscip-shell system . . echo. "$as_me:1151: checking target system type" >&5
1152 echoscip-shell system . . echo. $ECHO_N "checking target system type... $ECHO_C" >&6
1153 if testscip-shell system . . test. "${ac_cv_target+set}" = set; then
1154 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
1155 else
1156 ac_cv_target_alias=$target_alias
1157 testscip-shell system . . test. "x$ac_cv_target_alias" = "x" &&
1158 ac_cv_target_alias=$ac_cv_host_alias
1159 ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` ||
1160 { { echoscip-shell system . . echo. "$as_me:1160: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1161 echoscip-shell system . . echo. "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1162 { (exit 1); exit 1; }; }
1163
1164 fi
1165 echoscip-shell system . . echo. "$as_me:1165: result: $ac_cv_target" >&5
1166 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_target" >&6
1167 target=$ac_cv_target
1168 target_cpu=`echoscip-shell system . . echo. "$ac_cv_target" | sedscip-shell system . . sed. 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1169 target_vendor=`echoscip-shell system . . echo. "$ac_cv_target" | sedscip-shell system . . sed. 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1170 target_os=`echoscip-shell system . . echo. "$ac_cv_target" | sedscip-shell system . . sed. 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1171
1172 # The aliases save the names the user supplied, while $host etc.
1173 # will get canonicalized.
1174 testscip-shell system . . test. -n "$target_alias" &&
1175 testscip-shell system . . test. "$program_prefix$program_suffix$program_transform_name" = \
1176 NONENONEs,x,x, &&
1177 program_prefix=${target_alias}-
1178 system_name="$host_os"
1179 else
1180 system_name="`(unamescip-shell system . . uname. -s -r) 2>/dev/nullscip-shell filesystem . . `/dev/null`.`"
1181 if testscip-shell system . . test. -z "$system_name" ; then
1182 system_name="`(hostnamescip-shell system . . hostname.) 2>/dev/nullscip-shell filesystem . . `/dev/null`.`"
1183 fi
1184 fi
1185 testscip-shell system . . test. -n "$system_name" &&
1186 catscip-shell system . . cat. >>confdefs.h <<EOF
1187 #define SYSTEM_NAME "$system_name"
1188 EOF
1189
1190 if testscip-shell system . . test. "${cf_cv_system_name+set}" = set; then
1191 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
1192 else
1193 cf_cv_system_name="$system_name"
1194 fi
1195
1196 testscip-shell system . . test. -z "$system_name" && system_name="$cf_cv_system_name"
1197 testscip-shell system . . test. -n "$cf_cv_system_name" && echoscip-shell system . . echo. "$as_me:1197: result: Configuring for $cf_cv_system_name" >&5
1198 echoscip-shell system . . echo. "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1199
1200 if testscip-shell system . . test. ".$system_name" != ".$cf_cv_system_name" ; then
1201 echoscip-shell system . . echo. "$as_me:1201: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1202 echoscip-shell system . . echo. "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1203 { { echoscip-shell system . . echo. "$as_me:1203: error: \"Please remove config.cache and try again.\"" >&5
1204 echoscip-shell system . . echo. "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1205 { (exit 1); exit 1; }; }
1206 fi
1207
1208 # Check whether --with-system-type or --without-system-type was given.
1209 if testscip-shell system . . test. "${with_system_type+set}" = set; then
1210 withval="$with_system_type"
1211 { echoscip-shell system . . echo. "$as_me:1211: WARNING: overriding system type to $withval" >&5
1212 echoscip-shell system . . echo. "$as_me: WARNING: overriding system type to $withval" >&2;}
1213 cf_cv_system_name=$withval
1214 host_os=$withval
1215
1216 fi;
1217
1218 ### Save the given $CFLAGS to allow user-override.
1219 cf_user_CFLAGS="$CFLAGS"
1220
1221 ### Default install-location
1222 for ac_prog in ggrep grep
1223 do
1224 # Extract the first word of "$ac_prog", so it can be a program name with args.
1225 set dummy $ac_prog; ac_word=$2
1226 echoscip-shell system . . echo. "$as_me:1226: checking for $ac_word" >&5
1227 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1228 if testscip-shell system . . test. "${ac_cv_prog_GREP+set}" = set; then
1229 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
1230 else
1231 if testscip-shell system . . test. -n "$GREP"; then
1232 ac_cv_prog_GREP="$GREP" # Let the user override the test.
1233 else
1234 ac_save_IFS=$IFS; IFS=$ac_path_separator
1235 ac_dummy="$PATH"
1236 for ac_dir in $ac_dummy; do
1237 IFS=$ac_save_IFS
1238 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
1239 $as_executable_p "$ac_dir/$ac_word" || continue
1240 ac_cv_prog_GREP="$ac_prog"
1241 echoscip-shell system . . echo. "$as_me:1241: found $ac_dir/$ac_word" >&5
1242 break
1243 done
1244
1245 fi
1246 fi
1247 GREP=$ac_cv_prog_GREP
1248 if testscip-shell system . . test. -n "$GREP"; then
1249 echoscip-shell system . . echo. "$as_me:1249: result: $GREP" >&5
1250 echoscip-shell system . . echo. "${ECHO_T}$GREP" >&6
1251 else
1252 echoscip-shell system . . echo. "$as_me:1252: result: no" >&5
1253 echoscip-shell system . . echo. "${ECHO_T}no" >&6
1254 fi
1255
1256 testscip-shell system . . test. -n "$GREP" && break
1257 done
1258 testscip-shell system . . test. -n "$GREP" || GREP=": "
1259
1260 echoscip-shell system . . echo. "$as_me:1260: checking for fgrep" >&5
1261 echoscip-shell system . . echo. $ECHO_N "checking for fgrep... $ECHO_C" >&6
1262 if testscip-shell system . . test. "${ac_cv_path_FGREP+set}" = set; then
1263 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
1264 else
1265 if echoscip-shell system . . echo. 'ab*c' | $GREP -F 'ab*c' >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
1266 then ac_cv_path_FGREP="$GREP -F"
1267 else
1268 for ac_prog in gfgrep fgrep
1269 do
1270 # Extract the first word of "$ac_prog", so it can be a program name with args.
1271 set dummy $ac_prog; ac_word=$2
1272 echoscip-shell system . . echo. "$as_me:1272: checking for $ac_word" >&5
1273 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1274 if testscip-shell system . . test. "${ac_cv_path_FGREP+set}" = set; then
1275 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
1276 else
1277 case $FGREP in
1278 [\\/]* | ?:[\\/]*)
1279 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
1280 ;;
1281 *)
1282 ac_save_IFS=$IFS; IFS=$ac_path_separator
1283 ac_dummy="$PATH"
1284 for ac_dir in $ac_dummy; do
1285 IFS=$ac_save_IFS
1286 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
1287 if $as_executable_p "$ac_dir/$ac_word"; then
1288 ac_cv_path_FGREP="$ac_dir/$ac_word"
1289 echoscip-shell system . . echo. "$as_me:1289: found $ac_dir/$ac_word" >&5
1290 break
1291 fi
1292 done
1293
1294 ;;
1295 esac
1296 fi
1297 FGREP=$ac_cv_path_FGREP
1298
1299 if testscip-shell system . . test. -n "$FGREP"; then
1300 echoscip-shell system . . echo. "$as_me:1300: result: $FGREP" >&5
1301 echoscip-shell system . . echo. "${ECHO_T}$FGREP" >&6
1302 else
1303 echoscip-shell system . . echo. "$as_me:1303: result: no" >&5
1304 echoscip-shell system . . echo. "${ECHO_T}no" >&6
1305 fi
1306
1307 testscip-shell system . . test. -n "$FGREP" && break
1308 done
1309 testscip-shell system . . test. -n "$FGREP" || FGREP=": "
1310
1311 testscip-shell system . . test. "x$ac_cv_path_FGREP" = "x:" && { { echoscip-shell system . . echo. "$as_me:1311: error: cannot find workable fgrep" >&5
1312 echoscip-shell system . . echo. "$as_me: error: cannot find workable fgrep" >&2;}
1313 { (exit 1); exit 1; }; }
1314 fi
1315 fi
1316 echoscip-shell system . . echo. "$as_me:1316: result: $ac_cv_path_FGREP" >&5
1317 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_path_FGREP" >&6
1318 FGREP="$ac_cv_path_FGREP"
1319
1320 echoscip-shell system . . echo. "$as_me:1320: checking for prefix" >&5
1321 echoscip-shell system . . echo. $ECHO_N "checking for prefix... $ECHO_C" >&6
1322 if testscip-shell system . . test. "x$prefix" = "xNONE" ; then
1323 case "$cf_cv_system_name" in
1324 # non-vendor systems don't have a conflict
1325 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1326 prefix=/usrscip-shell filesystem . . `/usr`.
1327 ;;
1328 (*) prefix=$ac_default_prefix
1329 ;;
1330 esac
1331 fi
1332 echoscip-shell system . . echo. "$as_me:1332: result: $prefix" >&5
1333 echoscip-shell system . . echo. "${ECHO_T}$prefix" >&6
1334
1335 if testscip-shell system . . test. "x$prefix" = "xNONE" ; then
1336 echoscip-shell system . . echo. "$as_me:1336: checking for default include-directory" >&5
1337 echoscip-shell system . . echo. $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1338 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. 1>&6
1339 for cf_symbol in \
1340 "$includedir" \
1341 "$includedir/ncurses" \
1342 "$prefix/include" \
1343 "$prefix/include/ncurses" \
1344 /usr/local/include \
1345 /usr/local/include/ncurses \
1346 /usr/include \
1347 /usr/include/ncurses
1348 do
1349 cf_dir=`eval echo "$cf_symbol"`
1350 if testscip-shell system . . test. -f "$cf_dir/curses.h" ; then
1351 if ( ${FGREP-fgrep} NCURSES_VERSION "$cf_dir/curses.h" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 ) ; then
1352 includedir="$cf_symbol"
1353 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. $ECHO_N " found " 1>&6
1354 break
1355 fi
1356 fi
1357 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " tested $cf_dir" 1>&6
1358 done
1359 echoscip-shell system . . echo. "$as_me:1359: result: $includedir" >&5
1360 echoscip-shell system . . echo. "${ECHO_T}$includedir" >&6
1361 fi
1362
1363 ### Checks for programs.
1364
1365 # Check whether --with-ada or --without-ada was given.
1366 if testscip-shell system . . test. "${with_ada+set}" = set; then
1367 withval="$with_ada"
1368 cf_with_ada=$withval
1369 else
1370 cf_with_ada=yes
1371 fi;
1372
1373 cf_prog_cc="gcc cc"
1374 if testscip-shell system . . test. "x$cf_with_ada" = xyes
1375 then
1376
1377 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
1378 do
1379
1380 cf_upper_prog_gnat=`echoscip-shell system . . echo. "${cf_prog_gnat}" | sedscip-shell system . . sed. y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1381
1382 unset ac_cv_path_cf_TEMP_gnat
1383 unset cf_TEMP_gnat
1384 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
1385 set dummy $cf_prog_gnat; ac_word=$2
1386 echoscip-shell system . . echo. "$as_me:1386: checking for $ac_word" >&5
1387 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388 if testscip-shell system . . test. "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
1389 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
1390 else
1391 case $cf_TEMP_gnat in
1392 [\\/]* | ?:[\\/]*)
1393 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
1394 ;;
1395 *)
1396 ac_save_IFS=$IFS; IFS=$ac_path_separator
1397 ac_dummy="$PATH"
1398 for ac_dir in $ac_dummy; do
1399 IFS=$ac_save_IFS
1400 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
1401 if $as_executable_p "$ac_dir/$ac_word"; then
1402 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
1403 echoscip-shell system . . echo. "$as_me:1403: found $ac_dir/$ac_word" >&5
1404 break
1405 fi
1406 done
1407
1408 testscip-shell system . . test. -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
1409 ;;
1410 esac
1411 fi
1412 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
1413
1414 if testscip-shell system . . test. -n "$cf_TEMP_gnat"; then
1415 echoscip-shell system . . echo. "$as_me:1415: result: $cf_TEMP_gnat" >&5
1416 echoscip-shell system . . echo. "${ECHO_T}$cf_TEMP_gnat" >&6
1417 else
1418 echoscip-shell system . . echo. "$as_me:1418: result: no" >&5
1419 echoscip-shell system . . echo. "${ECHO_T}no" >&6
1420 fi
1421
1422 eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat"
1423
1424 if testscip-shell system . . test. "x$cf_TEMP_gnat" != xno; then
1425 unset cf_cv_gnat_version
1426 unset cf_TEMP_gnat
1427
1428 echoscip-shell system . . echo. "$as_me:1428: checking for $cf_prog_gnat version" >&5
1429 echoscip-shell system . . echo. $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
1430 if testscip-shell system . . test. "${cf_cv_gnat_version+set}" = set; then
1431 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433
1434 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
1435 grep '[0-9].[0-9][0-9]*' |\
1436 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
1437
1438 fi
1439 echoscip-shell system . . echo. "$as_me:1439: result: $cf_cv_gnat_version" >&5
1440 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_gnat_version" >&6
1441 testscip-shell system . . test. -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
1442 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
1443
1444 fi
1445 eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat"
1446
1447 unset cf_TEMP_gnat
1448 unset cf_cv_gnat_version
1449 unset ac_cv_path_cf_TEMP_gnat
1450 done
1451
1452 if testscip-shell system . . test. "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
1453 cf_ada_make=
1454 cf_cv_prog_gnat_correct=no
1455 else
1456 cf_ada_make=gnatmake
1457 if testscip-shell system . . test. "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
1458 # gprconfig is newer than gnatmake; we can continue...
1459 cf_ada_config="##"
1460 else
1461 rmscip-shell system . . rm. -rf ./conftest* ./*~conftest*
1462 if mkdirscip-shell system . . mkdir. conftest.src
1463 then
1464 cf_ada_config=""
1465 cd conftest.src
1466 for cf_gprconfig in Ada C
1467 do
1468 echoscip-shell system . . echo. "$as_me:1468: checking for gprconfig name for $cf_gprconfig" >&5
1469 echoscip-shell system . . echo. $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
1470 if testscip-shell system . . test. "$cf_gprconfig" = C
1471 then
1472 for cf_gprconfig_param in \
1473 "$cf_gprconfig,,,,GNATGCC" \
1474 "$cf_gprconfig,,,,GCC" \
1475 "$cf_gprconfig"
1476 do
1477 cf_gprconfig_value=`echoscip-shell system . . echo. s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}scip-shell filesystem . . `/^\*/{print $3;}`.' | headscip-shell system . . head. -n 1`
1478 testscip-shell system . . test. -n "$cf_gprconfig_value" && break
1479 done
1480 else
1481 cf_gprconfig_param=$cf_gprconfig
1482 cf_gprconfig_value=`echoscip-shell system . . echo. s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}scip-shell filesystem . . `/^\*/{print $3;}`.' | headscip-shell system . . head. -n 1`
1483 fi
1484 if testscip-shell system . . test. -n "$cf_gprconfig_value"
1485 then
1486 eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value"
1487 echoscip-shell system . . echo. "$as_me:1487: result: $cf_gprconfig_value" >&5
1488 echoscip-shell system . . echo. "${ECHO_T}$cf_gprconfig_value" >&6
1489 else
1490 echoscip-shell system . . echo. "$as_me:1490: result: missing" >&5
1491 echoscip-shell system . . echo. "${ECHO_T}missing" >&6
1492 cf_ada_config="#"
1493 break
1494 fi
1495 done
1496 cd ..
1497 rmscip-shell system . . rm. -rf ./conftest* ./*~conftest*
1498 fi
1499 fi
1500 if testscip-shell system . . test. "x$cf_ada_config" != "x#"
1501 then
1502
1503 echoscip-shell system . . echo. "$as_me:1503: checking for gnat version" >&5
1504 echoscip-shell system . . echo. $ECHO_N "checking for gnat version... $ECHO_C" >&6
1505 if testscip-shell system . . test. "${cf_cv_gnat_version+set}" = set; then
1506 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508
1509 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
1510 grep '[0-9].[0-9][0-9]*' |\
1511 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
1512
1513 fi
1514 echoscip-shell system . . echo. "$as_me:1514: result: $cf_cv_gnat_version" >&5
1515 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_gnat_version" >&6
1516 testscip-shell system . . test. -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
1517
1518 case "$cf_cv_gnat_version" in
1519 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
1520 cf_cv_prog_gnat_correct=yes
1521 ;;
1522 (*)
1523 { echoscip-shell system . . echo. "$as_me:1523: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
1524 echoscip-shell system . . echo. "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
1525 cf_cv_prog_gnat_correct=no
1526 ;;
1527 esac
1528
1529 # Extract the first word of "m4", so it can be a program name with args.
1530 set dummy m4; ac_word=$2
1531 echoscip-shell system . . echo. "$as_me:1531: checking for $ac_word" >&5
1532 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if testscip-shell system . . test. "${ac_cv_prog_M4_exists+set}" = set; then
1534 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536 if testscip-shell system . . test. -n "$M4_exists"; then
1537 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
1538 else
1539 ac_save_IFS=$IFS; IFS=$ac_path_separator
1540 ac_dummy="$PATH"
1541 for ac_dir in $ac_dummy; do
1542 IFS=$ac_save_IFS
1543 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
1544 $as_executable_p "$ac_dir/$ac_word" || continue
1545 ac_cv_prog_M4_exists="yes"
1546 echoscip-shell system . . echo. "$as_me:1546: found $ac_dir/$ac_word" >&5
1547 break
1548 done
1549
1550 testscip-shell system . . test. -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
1551 fi
1552 fi
1553 M4_exists=$ac_cv_prog_M4_exists
1554 if testscip-shell system . . test. -n "$M4_exists"; then
1555 echoscip-shell system . . echo. "$as_me:1555: result: $M4_exists" >&5
1556 echoscip-shell system . . echo. "${ECHO_T}$M4_exists" >&6
1557 else
1558 echoscip-shell system . . echo. "$as_me:1558: result: no" >&5
1559 echoscip-shell system . . echo. "${ECHO_T}no" >&6
1560 fi
1561
1562 if testscip-shell system . . test. "$ac_cv_prog_M4_exists" = no; then
1563 cf_cv_prog_gnat_correct=no
1564 { echoscip-shell system . . echo. "$as_me:1564: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
1565 echoscip-shell system . . echo. "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
1566 fi
1567 if testscip-shell system . . test. "$cf_cv_prog_gnat_correct" = yes; then
1568 echoscip-shell system . . echo. "$as_me:1568: checking if GNAT works" >&5
1569 echoscip-shell system . . echo. $ECHO_N "checking if GNAT works... $ECHO_C" >&6
1570
1571 rmscip-shell system . . rm. -rf ./conftest* ./*~conftest*
1572 catscip-shell system . . cat. >>conftest.ads <<CF_EOF
1573 procedure conftest;
1574 CF_EOF
1575 catscip-shell system . . cat. >>conftest.adb <<CF_EOF
1576 with Text_IO;
1577 with GNAT.OS_Lib;
1578 procedure conftest is
1579 begin
1580 Text_IO.Put ("Hello World");
1581 Text_IO.New_Line;
1582 GNAT.OS_Lib.OS_Exit (0);
1583 end conftest;
1584 CF_EOF
1585 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
1586 if ( ./conftest 1>&5 2>&1 ) ; then
1587 cf_cv_prog_gnat_correct=yes
1588 else
1589 cf_cv_prog_gnat_correct=no
1590 fi
1591 else
1592 cf_cv_prog_gnat_correct=no
1593 fi
1594 rmscip-shell system . . rm. -rf ./conftest* ./*~conftest*
1595
1596 echoscip-shell system . . echo. "$as_me:1596: result: $cf_cv_prog_gnat_correct" >&5
1597 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
1598 fi
1599 else
1600 cf_cv_prog_gnat_correct=no
1601 fi
1602 fi
1603
1604 if testscip-shell system . . test. "x$cf_cv_prog_gnat_correct" = xyes; then
1605 # gcc's developers chose to deprecate gnatgcc before making gprconfig
1606 # work. They replaced gnatgcc in gcc 13 with a script which spits out
1607 # a warning offering advice which could never work.
1608 #
1609 # Here is a workaround.
1610 # Extract the first word of "gnatgcc", so it can be a program name with args.
1611 set dummy gnatgcc; ac_word=$2
1612 echoscip-shell system . . echo. "$as_me:1612: checking for $ac_word" >&5
1613 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614 if testscip-shell system . . test. "${ac_cv_path_cf_cv_path_gnatgcc+set}" = set; then
1615 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
1616 else
1617 case $cf_cv_path_gnatgcc in
1618 [\\/]* | ?:[\\/]*)
1619 ac_cv_path_cf_cv_path_gnatgcc="$cf_cv_path_gnatgcc" # Let the user override the test with a path.
1620 ;;
1621 *)
1622 ac_save_IFS=$IFS; IFS=$ac_path_separator
1623 ac_dummy="$PATH"
1624 for ac_dir in $ac_dummy; do
1625 IFS=$ac_save_IFS
1626 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
1627 if $as_executable_p "$ac_dir/$ac_word"; then
1628 ac_cv_path_cf_cv_path_gnatgcc="$ac_dir/$ac_word"
1629 echoscip-shell system . . echo. "$as_me:1629: found $ac_dir/$ac_word" >&5
1630 break
1631 fi
1632 done
1633
1634 testscip-shell system . . test. -z "$ac_cv_path_cf_cv_path_gnatgcc" && ac_cv_path_cf_cv_path_gnatgcc="no"
1635 ;;
1636 esac
1637 fi
1638 cf_cv_path_gnatgcc=$ac_cv_path_cf_cv_path_gnatgcc
1639
1640 if testscip-shell system . . test. -n "$cf_cv_path_gnatgcc"; then
1641 echoscip-shell system . . echo. "$as_me:1641: result: $cf_cv_path_gnatgcc" >&5
1642 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_path_gnatgcc" >&6
1643 else
1644 echoscip-shell system . . echo. "$as_me:1644: result: no" >&5
1645 echoscip-shell system . . echo. "${ECHO_T}no" >&6
1646 fi
1647
1648 if testscip-shell system . . test. "$cf_cv_path_gnatgcc" != no
1649 then
1650 echoscip-shell system . . echo. "$as_me:1650: checking for improvement" >&5
1651 echoscip-shell system . . echo. $ECHO_N "checking for improvement... $ECHO_C" >&6
1652 cf_file_gnatgcc=`filescip-shell system . . file. -L "$cf_cv_path_gnatgcc" 2>/dev/nullscip-shell filesystem . . `/dev/null`.`
1653 case "x$cf_file_gnatgcc" in
1654 (*script*)
1655 cf_cv_path_gnatgcc=`shscip-shell system . . sh. -x "$cf_cv_path_gnatgcc" --version 2>&1 | grepscip-shell system . . grep. -w exec | sedscip-shell system . . sed. -e 's/^[ ]*+[ ]*//' -e 's/exec[ ]//' -e 's/ .*//'`
1656 ;;
1657 (*)
1658 cf_cv_path_gnatgcc=no
1659 ;;
1660 esac
1661 echoscip-shell system . . echo. "$as_me:1661: result: $cf_cv_path_gnatgcc" >&5
1662 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_path_gnatgcc" >&6
1663 testscip-shell system . . test. "$cf_cv_path_gnatgcc" = no && cf_cv_path_gnatgcc=gnatgcc
1664 cf_prog_cc="$cf_cv_path_gnatgcc $cf_prog_cc"
1665 fi
1666 fi
1667 fi
1668 case "$cf_prog_cc" in
1669 (*/*)
1670 CC="$cf_prog_cc"
1671
1672 ;;
1673 (*)
1674
1675 ac_ext=c
1676 ac_cpp='$CPP $CPPFLAGS'
1677 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1678 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1680 ac_main_return="return"
1681 if testscip-shell system . . test. -n "$ac_tool_prefix"; then
1682 for ac_prog in $cf_prog_cc
1683 do
1684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1686 echoscip-shell system . . echo. "$as_me:1686: checking for $ac_word" >&5
1687 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if testscip-shell system . . test. "${ac_cv_prog_CC+set}" = set; then
1689 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691 if testscip-shell system . . test. -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694 ac_save_IFS=$IFS; IFS=$ac_path_separator
1695 ac_dummy="$PATH"
1696 for ac_dir in $ac_dummy; do
1697 IFS=$ac_save_IFS
1698 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
1699 $as_executable_p "$ac_dir/$ac_word" || continue
1700 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1701 echoscip-shell system . . echo. "$as_me:1701: found $ac_dir/$ac_word" >&5
1702 break
1703 done
1704
1705 fi
1706 fi
1707 CC=$ac_cv_prog_CC
1708 if testscip-shell system . . test. -n "$CC"; then
1709 echoscip-shell system . . echo. "$as_me:1709: result: $CC" >&5
1710 echoscip-shell system . . echo. "${ECHO_T}$CC" >&6
1711 else
1712 echoscip-shell system . . echo. "$as_me:1712: result: no" >&5
1713 echoscip-shell system . . echo. "${ECHO_T}no" >&6
1714 fi
1715
1716 testscip-shell system . . test. -n "$CC" && break
1717 done
1718 fi
1719 if testscip-shell system . . test. -z "$CC"; then
1720 ac_ct_CC=$CC
1721 for ac_prog in $cf_prog_cc
1722 do
1723 # Extract the first word of "$ac_prog", so it can be a program name with args.
1724 set dummy $ac_prog; ac_word=$2
1725 echoscip-shell system . . echo. "$as_me:1725: checking for $ac_word" >&5
1726 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if testscip-shell system . . test. "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730 if testscip-shell system . . test. -n "$ac_ct_CC"; then
1731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732 else
1733 ac_save_IFS=$IFS; IFS=$ac_path_separator
1734 ac_dummy="$PATH"
1735 for ac_dir in $ac_dummy; do
1736 IFS=$ac_save_IFS
1737 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
1738 $as_executable_p "$ac_dir/$ac_word" || continue
1739 ac_cv_prog_ac_ct_CC="$ac_prog"
1740 echoscip-shell system . . echo. "$as_me:1740: found $ac_dir/$ac_word" >&5
1741 break
1742 done
1743
1744 fi
1745 fi
1746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1747 if testscip-shell system . . test. -n "$ac_ct_CC"; then
1748 echoscip-shell system . . echo. "$as_me:1748: result: $ac_ct_CC" >&5
1749 echoscip-shell system . . echo. "${ECHO_T}$ac_ct_CC" >&6
1750 else
1751 echoscip-shell system . . echo. "$as_me:1751: result: no" >&5
1752 echoscip-shell system . . echo. "${ECHO_T}no" >&6
1753 fi
1754
1755 testscip-shell system . . test. -n "$ac_ct_CC" && break
1756 done
1757
1758 CC=$ac_ct_CC
1759 fi
1760
1761 testscip-shell system . . test. -z "$CC" && { { echoscip-shell system . . echo. "$as_me:1761: error: no acceptable cc found in \$PATH" >&5
1762 echoscip-shell system . . echo. "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1763 { (exit 1); exit 1; }; }
1764
1765 # Provide some information about the compiler.
1766 echoscip-shell system . . echo. "$as_me:1766:" \
1767 "checking for C compiler version" >&5
1768 ac_compiler=`set X $ac_compile; echoscip-shell system . . echo. "$2"`
1769 { (eval echo "$as_me:1769: \"$ac_compiler --version </dev/null >&5\"") >&5
1770 (eval $ac_compiler --version </dev/nullscip-shell filesystem . . `/dev/null`. >&5) 2>&5
1771 ac_status=$?
1772 echoscip-shell system . . echo. "$as_me:1772: \$? = $ac_status" >&5
1773 (exit "$ac_status"); }
1774 { (eval echo "$as_me:1774: \"$ac_compiler -v </dev/null >&5\"") >&5
1775 (eval $ac_compiler -v </dev/nullscip-shell filesystem . . `/dev/null`. >&5) 2>&5
1776 ac_status=$?
1777 echoscip-shell system . . echo. "$as_me:1777: \$? = $ac_status" >&5
1778 (exit "$ac_status"); }
1779 { (eval echo "$as_me:1779: \"$ac_compiler -V </dev/null >&5\"") >&5
1780 (eval $ac_compiler -V </dev/nullscip-shell filesystem . . `/dev/null`. >&5) 2>&5
1781 ac_status=$?
1782 echoscip-shell system . . echo. "$as_me:1782: \$? = $ac_status" >&5
1783 (exit "$ac_status"); }
1784
1785 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
1786 #line 1786 "configure"
1787 #include "confdefs.h"
1788
1789 int
1790 main (void)
1791 {
1792
1793 ;
1794 return 0;
1795 }
1796 _ACEOF
1797 ac_clean_files_save=$ac_clean_files
1798 ac_clean_files="$ac_clean_files a.out a.exe"
1799 # Try to create an executable without -o first, disregard a.out.
1800 # It will help us diagnose broken compilers, and finding out an intuition
1801 # of exeext.
1802 echoscip-shell system . . echo. "$as_me:1802: checking for C compiler default output" >&5
1803 echoscip-shell system . . echo. $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1804 ac_link_default=`echoscip-shell system . . echo. "$ac_link" | sedscip-shell system . . sed. 's/ -o *"conftest[^"]*"//'`
1805 if { (eval echo "$as_me:1805: \"$ac_link_default\"") >&5
1806 (eval $ac_link_default) 2>&5
1807 ac_status=$?
1808 echoscip-shell system . . echo. "$as_me:1808: \$? = $ac_status" >&5
1809 (exit "$ac_status"); }; then
1810 # Find the output, starting from the most likely. This scheme is
1811 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1812 # resort.
1813 for ac_file in `lsscip-shell system . . ls. a.exe conftest.exe 2>/dev/nullscip-shell filesystem . . `/dev/null`.;
1814 lsscip-shell system . . ls. a.out conftest 2>/dev/nullscip-shell filesystem . . `/dev/null`.;
1815 lsscip-shell system . . ls. a.* conftest.* 2>/dev/nullscip-shell filesystem . . `/dev/null`.`; do
1816 case $ac_file in
1817 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1818 a.out ) # We found the default executable, but exeext='' is most
1819 # certainly right.
1820 break;;
1821 *.* ) ac_cv_exeext=`exprscip-shell system . . expr. "$ac_file" : '[^.]*\(\..*\)'`
1822 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1823 export ac_cv_exeext
1824 break;;
1825 * ) break;;
1826 esac
1827 done
1828 else
1829 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
1830 catscip-shell system . . cat. "conftest.$ac_ext" >&5
1831 { { echoscip-shell system . . echo. "$as_me:1831: error: C compiler cannot create executables" >&5
1832 echoscip-shell system . . echo. "$as_me: error: C compiler cannot create executables" >&2;}
1833 { (exit 77); exit 77; }; }
1834 fi
1835
1836 ac_exeext=$ac_cv_exeext
1837 echoscip-shell system . . echo. "$as_me:1837: result: $ac_file" >&5
1838 echoscip-shell system . . echo. "${ECHO_T}$ac_file" >&6
1839
1840 # Check the compiler produces executables we can run. If not, either
1841 # the compiler is broken, or we cross compile.
1842 echoscip-shell system . . echo. "$as_me:1842: checking whether the C compiler works" >&5
1843 echoscip-shell system . . echo. $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1844 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1845 # If not cross compiling, check that we can run a simple program.
1846 if testscip-shell system . . test. "$cross_compiling" != yes; then
1847 if { ac_try='./$ac_file'
1848 { (eval echo "$as_me:1848: \"$ac_try\"") >&5
1849 (eval $ac_try) 2>&5
1850 ac_status=$?
1851 echoscip-shell system . . echo. "$as_me:1851: \$? = $ac_status" >&5
1852 (exit "$ac_status"); }; }; then
1853 cross_compiling=no
1854 else
1855 if testscip-shell system . . test. "$cross_compiling" = maybe; then
1856 cross_compiling=yes
1857 else
1858 { { echoscip-shell system . . echo. "$as_me:1858: error: cannot run C compiled programs.
1859 If you meant to cross compile, use \`--host'." >&5
1860 echoscip-shell system . . echo. "$as_me: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'." >&2;}
1862 { (exit 1); exit 1; }; }
1863 fi
1864 fi
1865 fi
1866 echoscip-shell system . . echo. "$as_me:1866: result: yes" >&5
1867 echoscip-shell system . . echo. "${ECHO_T}yes" >&6
1868
1869 rmscip-shell system . . rm. -f a.out a.exe "conftest$ac_cv_exeext"
1870 ac_clean_files=$ac_clean_files_save
1871 # Check the compiler produces executables we can run. If not, either
1872 # the compiler is broken, or we cross compile.
1873 echoscip-shell system . . echo. "$as_me:1873: checking whether we are cross compiling" >&5
1874 echoscip-shell system . . echo. $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1875 echoscip-shell system . . echo. "$as_me:1875: result: $cross_compiling" >&5
1876 echoscip-shell system . . echo. "${ECHO_T}$cross_compiling" >&6
1877
1878 echoscip-shell system . . echo. "$as_me:1878: checking for executable suffix" >&5
1879 echoscip-shell system . . echo. $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1880 if { (eval echo "$as_me:1880: \"$ac_link\"") >&5
1881 (eval $ac_link) 2>&5
1882 ac_status=$?
1883 echoscip-shell system . . echo. "$as_me:1883: \$? = $ac_status" >&5
1884 (exit "$ac_status"); }; then
1885 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1886 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1887 # work properly (i.e., refer to `conftest.exe'), while it won't with
1888 # `rm'.
1889 for ac_file in `(lsscip-shell system . . ls. conftest.exe; lsscip-shell system . . ls. conftest; lsscip-shell system . . ls. conftest.*) 2>/dev/nullscip-shell filesystem . . `/dev/null`.`; do
1890 case $ac_file in
1891 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1892 *.* ) ac_cv_exeext=`exprscip-shell system . . expr. "$ac_file" : '[^.]*\(\..*\)'`
1893 export ac_cv_exeext
1894 break;;
1895 * ) break;;
1896 esac
1897 done
1898 else
1899 { { echoscip-shell system . . echo. "$as_me:1899: error: cannot compute EXEEXT: cannot compile and link" >&5
1900 echoscip-shell system . . echo. "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1901 { (exit 1); exit 1; }; }
1902 fi
1903
1904 rmscip-shell system . . rm. -f "conftest$ac_cv_exeext"
1905 echoscip-shell system . . echo. "$as_me:1905: result: $ac_cv_exeext" >&5
1906 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_exeext" >&6
1907
1908 rmscip-shell system . . rm. -f "conftest.$ac_ext"
1909 EXEEXT=$ac_cv_exeext
1910 ac_exeext=$EXEEXT
1911 echoscip-shell system . . echo. "$as_me:1911: checking for object suffix" >&5
1912 echoscip-shell system . . echo. $ECHO_N "checking for object suffix... $ECHO_C" >&6
1913 if testscip-shell system . . test. "${ac_cv_objext+set}" = set; then
1914 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
1917 #line 1917 "configure"
1918 #include "confdefs.h"
1919
1920 int
1921 main (void)
1922 {
1923
1924 ;
1925 return 0;
1926 }
1927 _ACEOF
1928 rmscip-shell system . . rm. -f conftest.o conftest.obj
1929 if { (eval echo "$as_me:1929: \"$ac_compile\"") >&5
1930 (eval $ac_compile) 2>&5
1931 ac_status=$?
1932 echoscip-shell system . . echo. "$as_me:1932: \$? = $ac_status" >&5
1933 (exit "$ac_status"); }; then
1934 for ac_file in `(lsscip-shell system . . ls. conftest.o conftest.obj; lsscip-shell system . . ls. conftest.*) 2>/dev/nullscip-shell filesystem . . `/dev/null`.`; do
1935 case $ac_file in
1936 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1937 *) ac_cv_objext=`exprscip-shell system . . expr. "$ac_file" : '.*\.\(.*\)'`
1938 break;;
1939 esac
1940 done
1941 else
1942 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
1943 catscip-shell system . . cat. "conftest.$ac_ext" >&5
1944 { { echoscip-shell system . . echo. "$as_me:1944: error: cannot compute OBJEXT: cannot compile" >&5
1945 echoscip-shell system . . echo. "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1946 { (exit 1); exit 1; }; }
1947 fi
1948
1949 rmscip-shell system . . rm. -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
1950 fi
1951 echoscip-shell system . . echo. "$as_me:1951: result: $ac_cv_objext" >&5
1952 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_objext" >&6
1953 OBJEXT=$ac_cv_objext
1954 ac_objext=$OBJEXT
1955 echoscip-shell system . . echo. "$as_me:1955: checking whether we are using the GNU C compiler" >&5
1956 echoscip-shell system . . echo. $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1957 if testscip-shell system . . test. "${ac_cv_c_compiler_gnu+set}" = set; then
1958 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
1961 #line 1961 "configure"
1962 #include "confdefs.h"
1963
1964 int
1965 main (void)
1966 {
1967 #ifndef __GNUC__
1968 choke me
1969 #endif
1970
1971 ;
1972 return 0;
1973 }
1974 _ACEOF
1975 rmscip-shell system . . rm. -f "conftest.$ac_objext"
1976 if { (eval echo "$as_me:1976: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
1978 ac_status=$?
1979 echoscip-shell system . . echo. "$as_me:1979: \$? = $ac_status" >&5
1980 (exit "$ac_status"); } &&
1981 { ac_try='test -s "conftest.$ac_objext"'
1982 { (eval echo "$as_me:1982: \"$ac_try\"") >&5
1983 (eval $ac_try) 2>&5
1984 ac_status=$?
1985 echoscip-shell system . . echo. "$as_me:1985: \$? = $ac_status" >&5
1986 (exit "$ac_status"); }; }; then
1987 ac_compiler_gnu=yes
1988 else
1989 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
1990 catscip-shell system . . cat. "conftest.$ac_ext" >&5
1991 ac_compiler_gnu=no
1992 fi
1993 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
1994 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1995
1996 fi
1997 echoscip-shell system . . echo. "$as_me:1997: result: $ac_cv_c_compiler_gnu" >&5
1998 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1999 GCC=`testscip-shell system . . test. $ac_compiler_gnu = yes && echoscip-shell system . . echo. yes`
2000 ac_test_CFLAGS=${CFLAGS+set}
2001 ac_save_CFLAGS=$CFLAGS
2002 CFLAGS="-g"
2003 echoscip-shell system . . echo. "$as_me:2003: checking whether $CC accepts -g" >&5
2004 echoscip-shell system . . echo. $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2005 if testscip-shell system . . test. "${ac_cv_prog_cc_g+set}" = set; then
2006 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
2009 #line 2009 "configure"
2010 #include "confdefs.h"
2011
2012 int
2013 main (void)
2014 {
2015
2016 ;
2017 return 0;
2018 }
2019 _ACEOF
2020 rmscip-shell system . . rm. -f "conftest.$ac_objext"
2021 if { (eval echo "$as_me:2021: \"$ac_compile\"") >&5
2022 (eval $ac_compile) 2>&5
2023 ac_status=$?
2024 echoscip-shell system . . echo. "$as_me:2024: \$? = $ac_status" >&5
2025 (exit "$ac_status"); } &&
2026 { ac_try='test -s "conftest.$ac_objext"'
2027 { (eval echo "$as_me:2027: \"$ac_try\"") >&5
2028 (eval $ac_try) 2>&5
2029 ac_status=$?
2030 echoscip-shell system . . echo. "$as_me:2030: \$? = $ac_status" >&5
2031 (exit "$ac_status"); }; }; then
2032 ac_cv_prog_cc_g=yes
2033 else
2034 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
2035 catscip-shell system . . cat. "conftest.$ac_ext" >&5
2036 ac_cv_prog_cc_g=no
2037 fi
2038 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
2039 fi
2040 echoscip-shell system . . echo. "$as_me:2040: result: $ac_cv_prog_cc_g" >&5
2041 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_prog_cc_g" >&6
2042 if testscip-shell system . . test. "$ac_test_CFLAGS" = set; then
2043 CFLAGS=$ac_save_CFLAGS
2044 elif testscip-shell system . . test. $ac_cv_prog_cc_g = yes; then
2045 if testscip-shell system . . test. "$GCC" = yes; then
2046 CFLAGS="-g -O2"
2047 else
2048 CFLAGS="-g"
2049 fi
2050 else
2051 if testscip-shell system . . test. "$GCC" = yes; then
2052 CFLAGS="-O2"
2053 else
2054 CFLAGS=
2055 fi
2056 fi
2057 # Some people use a C++ compiler to compile C. Since we use `exit',
2058 # in C++ we need to declare it. In case someone uses the same compiler
2059 # for both compiling C and C++ we need to have the C++ compiler decide
2060 # the declaration of exit, since it's the most demanding environment.
2061 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
2062 #ifndef __cplusplus
2063 choke me
2064 #endif
2065 _ACEOF
2066 rmscip-shell system . . rm. -f "conftest.$ac_objext"
2067 if { (eval echo "$as_me:2067: \"$ac_compile\"") >&5
2068 (eval $ac_compile) 2>&5
2069 ac_status=$?
2070 echoscip-shell system . . echo. "$as_me:2070: \$? = $ac_status" >&5
2071 (exit "$ac_status"); } &&
2072 { ac_try='test -s "conftest.$ac_objext"'
2073 { (eval echo "$as_me:2073: \"$ac_try\"") >&5
2074 (eval $ac_try) 2>&5
2075 ac_status=$?
2076 echoscip-shell system . . echo. "$as_me:2076: \$? = $ac_status" >&5
2077 (exit "$ac_status"); }; }; then
2078 for ac_declaration in \
2079 ''\
2080 '#include <stdlib.h>' \
2081 'extern "C" void std::exit (int) throw (); using std::exit;' \
2082 'extern "C" void std::exit (int); using std::exit;' \
2083 'extern "C" void exit (int) throw ();' \
2084 'extern "C" void exit (int);' \
2085 'void exit (int);'
2086 do
2087 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
2088 #line 2088 "configure"
2089 #include "confdefs.h"
2090 #include <stdlib.h>
2091 $ac_declaration
2092 int
2093 main (void)
2094 {
2095 exit (42);
2096 ;
2097 return 0;
2098 }
2099 _ACEOF
2100 rmscip-shell system . . rm. -f "conftest.$ac_objext"
2101 if { (eval echo "$as_me:2101: \"$ac_compile\"") >&5
2102 (eval $ac_compile) 2>&5
2103 ac_status=$?
2104 echoscip-shell system . . echo. "$as_me:2104: \$? = $ac_status" >&5
2105 (exit "$ac_status"); } &&
2106 { ac_try='test -s "conftest.$ac_objext"'
2107 { (eval echo "$as_me:2107: \"$ac_try\"") >&5
2108 (eval $ac_try) 2>&5
2109 ac_status=$?
2110 echoscip-shell system . . echo. "$as_me:2110: \$? = $ac_status" >&5
2111 (exit "$ac_status"); }; }; then
2112 :
2113 else
2114 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
2115 catscip-shell system . . cat. "conftest.$ac_ext" >&5
2116 continue
2117 fi
2118 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
2119 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
2120 #line 2120 "configure"
2121 #include "confdefs.h"
2122 $ac_declaration
2123 int
2124 main (void)
2125 {
2126 exit (42);
2127 ;
2128 return 0;
2129 }
2130 _ACEOF
2131 rmscip-shell system . . rm. -f "conftest.$ac_objext"
2132 if { (eval echo "$as_me:2132: \"$ac_compile\"") >&5
2133 (eval $ac_compile) 2>&5
2134 ac_status=$?
2135 echoscip-shell system . . echo. "$as_me:2135: \$? = $ac_status" >&5
2136 (exit "$ac_status"); } &&
2137 { ac_try='test -s "conftest.$ac_objext"'
2138 { (eval echo "$as_me:2138: \"$ac_try\"") >&5
2139 (eval $ac_try) 2>&5
2140 ac_status=$?
2141 echoscip-shell system . . echo. "$as_me:2141: \$? = $ac_status" >&5
2142 (exit "$ac_status"); }; }; then
2143 break
2144 else
2145 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
2146 catscip-shell system . . cat. "conftest.$ac_ext" >&5
2147 fi
2148 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
2149 done
2150 rmscip-shell system . . rm. -rf conftest*
2151 if testscip-shell system . . test. -n "$ac_declaration"; then
2152 echoscip-shell system . . echo. '#ifdef __cplusplus' >>confdefs.h
2153 echoscip-shell system . . echo. "$ac_declaration" >>confdefs.h
2154 echoscip-shell system . . echo. '#endif' >>confdefs.h
2155 fi
2156
2157 else
2158 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
2159 catscip-shell system . . cat. "conftest.$ac_ext" >&5
2160 fi
2161 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
2162 ac_ext=c
2163 ac_cpp='$CPP $CPPFLAGS'
2164 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2165 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2167 ac_main_return="return"
2168
2169 GCC_VERSION=none
2170 if testscip-shell system . . test. "$GCC" = yes ; then
2171 echoscip-shell system . . echo. "$as_me:2171: checking version of $CC" >&5
2172 echoscip-shell system . . echo. $ECHO_N "checking version of $CC... $ECHO_C" >&6
2173 GCC_VERSION="`${CC} --version 2>/dev/nullscip-shell filesystem . . `/dev/null`. | sedscip-shell system . . sed. -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2174 testscip-shell system . . test. -z "$GCC_VERSION" && GCC_VERSION=unknown
2175 echoscip-shell system . . echo. "$as_me:2175: result: $GCC_VERSION" >&5
2176 echoscip-shell system . . echo. "${ECHO_T}$GCC_VERSION" >&6
2177 fi
2178
2179 INTEL_COMPILER=no
2180
2181 if testscip-shell system . . test. "$GCC" = yes ; then
2182 case "$host_os" in
2183 (linux*|gnu*)
2184 echoscip-shell system . . echo. "$as_me:2184: checking if this is really Intel C compiler" >&5
2185 echoscip-shell system . . echo. $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2186 cf_save_CFLAGS="$CFLAGS"
2187 CFLAGS="$CFLAGS -no-gcc"
2188 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
2189 #line 2189 "configure"
2190 #include "confdefs.h"
2191
2192 int
2193 main (void)
2194 {
2195
2196 #ifdef __INTEL_COMPILER
2197 #else
2198 #error __INTEL_COMPILER is not defined
2199 #endif
2200
2201 ;
2202 return 0;
2203 }
2204 _ACEOF
2205 rmscip-shell system . . rm. -f "conftest.$ac_objext"
2206 if { (eval echo "$as_me:2206: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>&5
2208 ac_status=$?
2209 echoscip-shell system . . echo. "$as_me:2209: \$? = $ac_status" >&5
2210 (exit "$ac_status"); } &&
2211 { ac_try='test -s "conftest.$ac_objext"'
2212 { (eval echo "$as_me:2212: \"$ac_try\"") >&5
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echoscip-shell system . . echo. "$as_me:2215: \$? = $ac_status" >&5
2216 (exit "$ac_status"); }; }; then
2217 INTEL_COMPILER=yes
2218 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2219
2220 else
2221 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
2222 catscip-shell system . . cat. "conftest.$ac_ext" >&5
2223 fi
2224 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
2225 CFLAGS="$cf_save_CFLAGS"
2226 echoscip-shell system . . echo. "$as_me:2226: result: $INTEL_COMPILER" >&5
2227 echoscip-shell system . . echo. "${ECHO_T}$INTEL_COMPILER" >&6
2228 ;;
2229 esac
2230 fi
2231
2232 CLANG_COMPILER=no
2233
2234 if testscip-shell system . . test. "$GCC" = yes ; then
2235 echoscip-shell system . . echo. "$as_me:2235: checking if this is really Clang C compiler" >&5
2236 echoscip-shell system . . echo. $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2237 cf_save_CFLAGS="$CFLAGS"
2238 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
2239 #line 2239 "configure"
2240 #include "confdefs.h"
2241
2242 int
2243 main (void)
2244 {
2245
2246 #ifdef __clang__
2247 #else
2248 #error __clang__ is not defined
2249 #endif
2250
2251 ;
2252 return 0;
2253 }
2254 _ACEOF
2255 rmscip-shell system . . rm. -f "conftest.$ac_objext"
2256 if { (eval echo "$as_me:2256: \"$ac_compile\"") >&5
2257 (eval $ac_compile) 2>&5
2258 ac_status=$?
2259 echoscip-shell system . . echo. "$as_me:2259: \$? = $ac_status" >&5
2260 (exit "$ac_status"); } &&
2261 { ac_try='test -s "conftest.$ac_objext"'
2262 { (eval echo "$as_me:2262: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echoscip-shell system . . echo. "$as_me:2265: \$? = $ac_status" >&5
2266 (exit "$ac_status"); }; }; then
2267 CLANG_COMPILER=yes
2268
2269 else
2270 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
2271 catscip-shell system . . cat. "conftest.$ac_ext" >&5
2272 fi
2273 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
2274 CFLAGS="$cf_save_CFLAGS"
2275 echoscip-shell system . . echo. "$as_me:2275: result: $CLANG_COMPILER" >&5
2276 echoscip-shell system . . echo. "${ECHO_T}$CLANG_COMPILER" >&6
2277 fi
2278
2279 CLANG_VERSION=none
2280
2281 if testscip-shell system . . test. "x$CLANG_COMPILER" = "xyes" ; then
2282 case "$CC" in
2283 (c[1-9][0-9]|*/c[1-9][0-9])
2284 { echoscip-shell system . . echo. "$as_me:2284: WARNING: replacing broken compiler alias $CC" >&5
2285 echoscip-shell system . . echo. "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
2286 CFLAGS="$CFLAGS -std=`echoscip-shell system . . echo. "$CC" | sedscip-shell system . . sed. -e 's%.*/%%'`"
2287 CC=clang
2288 ;;
2289 esac
2290
2291 echoscip-shell system . . echo. "$as_me:2291: checking version of $CC" >&5
2292 echoscip-shell system . . echo. $ECHO_N "checking version of $CC... $ECHO_C" >&6
2293 CLANG_VERSION="`$CC --version 2>/dev/nullscip-shell filesystem . . `/dev/null`. | sedscip-shell system . . sed. -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2294 testscip-shell system . . test. -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2295 echoscip-shell system . . echo. "$as_me:2295: result: $CLANG_VERSION" >&5
2296 echoscip-shell system . . echo. "${ECHO_T}$CLANG_VERSION" >&6
2297
2298 for cf_clang_opt in \
2299 -Qunused-arguments \
2300 -Wno-error=implicit-function-declaration
2301 do
2302 echoscip-shell system . . echo. "$as_me:2302: checking if option $cf_clang_opt works" >&5
2303 echoscip-shell system . . echo. $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2304 cf_save_CFLAGS="$CFLAGS"
2305 CFLAGS="$CFLAGS $cf_clang_opt"
2306 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
2307 #line 2307 "configure"
2308 #include "confdefs.h"
2309
2310 #include <stdio.h>
2311 int
2312 main (void)
2313 {
2314
2315 printf("hello!\\n");
2316 ;
2317 return 0;
2318 }
2319 _ACEOF
2320 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
2321 if { (eval echo "$as_me:2321: \"$ac_link\"") >&5
2322 (eval $ac_link) 2>&5
2323 ac_status=$?
2324 echoscip-shell system . . echo. "$as_me:2324: \$? = $ac_status" >&5
2325 (exit "$ac_status"); } &&
2326 { ac_try='test -s "conftest$ac_exeext"'
2327 { (eval echo "$as_me:2327: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echoscip-shell system . . echo. "$as_me:2330: \$? = $ac_status" >&5
2331 (exit "$ac_status"); }; }; then
2332
2333 cf_clang_optok=yes
2334 else
2335 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
2336 catscip-shell system . . cat. "conftest.$ac_ext" >&5
2337
2338 cf_clang_optok=no
2339 fi
2340 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2341 echoscip-shell system . . echo. "$as_me:2341: result: $cf_clang_optok" >&5
2342 echoscip-shell system . . echo. "${ECHO_T}$cf_clang_optok" >&6
2343 CFLAGS="$cf_save_CFLAGS"
2344 if testscip-shell system . . test. "$cf_clang_optok" = yes; then
2345 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " adding option $cf_clang_opt" 1>&6
2346
2347 echoscip-shell system . . echo. "${as_me:-configure}:2347: testing adding option $cf_clang_opt ..." 1>&5
2348
2349 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
2350 CFLAGS="${CFLAGS}$cf_clang_opt"
2351
2352 fi
2353 done
2354 fi
2355
2356 echoscip-shell system . . echo. "$as_me:2356: checking for $CC option to accept ANSI C" >&5
2357 echoscip-shell system . . echo. $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2358 if testscip-shell system . . test. "${ac_cv_prog_cc_stdc+set}" = set; then
2359 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361 ac_cv_prog_cc_stdc=no
2362 ac_save_CC=$CC
2363 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
2364 #line 2364 "configure"
2365 #include "confdefs.h"
2366 #include <stdarg.h>
2367 #include <stdio.h>
2368 #include <sys/types.h>
2369 #include <sys/stat.h>
2370 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2371 struct buf { int x; };
2372 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2373 static char *e (char **p, int i)
2374 {
2375 return p[i];
2376 }
2377 static char *f (char * (*g) (char **, int), char **p, ...)
2378 {
2379 char *s;
2380 va_list v;
2381 va_start (v,p);
2382 s = g (p, va_arg (v,int));
2383 va_end (v);
2384 return s;
2385 }
2386 int test (int i, double x);
2387 struct s1 {int (*f) (int a);};
2388 struct s2 {int (*f) (double a);};
2389 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2390 int argc;
2391 int
2392 main (void)
2393 {
2394 char *argv[3];
2395 static char first_arg[] = "first";
2396 static char other_arg[] = "other";
2397 argv[0] = first_arg;
2398 argv[1] = other_arg;
2399 argv[2] = NULL;
2400 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2401 ;
2402 return 0;
2403 }
2404 _ACEOF
2405 # Don't try gcc -ansi; that turns off useful extensions and
2406 # breaks some systems' header files.
2407 # AIX -qlanglvl=ansi
2408 # Ultrix and OSF/1 -std1
2409 # HP-UX 10.20 and later -Ae
2410 # HP-UX older versions -Aa -D_HPUX_SOURCE
2411 # SVR4 -Xc -D__EXTENSIONS__
2412 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2413 do
2414 CC="$ac_save_CC $ac_arg"
2415 rmscip-shell system . . rm. -f "conftest.$ac_objext"
2416 if { (eval echo "$as_me:2416: \"$ac_compile\"") >&5
2417 (eval $ac_compile) 2>&5
2418 ac_status=$?
2419 echoscip-shell system . . echo. "$as_me:2419: \$? = $ac_status" >&5
2420 (exit "$ac_status"); } &&
2421 { ac_try='test -s "conftest.$ac_objext"'
2422 { (eval echo "$as_me:2422: \"$ac_try\"") >&5
2423 (eval $ac_try) 2>&5
2424 ac_status=$?
2425 echoscip-shell system . . echo. "$as_me:2425: \$? = $ac_status" >&5
2426 (exit "$ac_status"); }; }; then
2427 ac_cv_prog_cc_stdc=$ac_arg
2428 break
2429 else
2430 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
2431 catscip-shell system . . cat. "conftest.$ac_ext" >&5
2432 fi
2433 rmscip-shell system . . rm. -f "conftest.$ac_objext"
2434 done
2435 rmscip-shell system . . rm. -f "conftest.$ac_ext" "conftest.$ac_objext"
2436 CC=$ac_save_CC
2437
2438 fi
2439
2440 case "x$ac_cv_prog_cc_stdc" in
2441 x|xno)
2442 echoscip-shell system . . echo. "$as_me:2442: result: none needed" >&5
2443 echoscip-shell system . . echo. "${ECHO_T}none needed" >&6 ;;
2444 *)
2445 echoscip-shell system . . echo. "$as_me:2445: result: $ac_cv_prog_cc_stdc" >&5
2446 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2447 CC="$CC $ac_cv_prog_cc_stdc" ;;
2448 esac
2449
2450 # This should have been defined by AC_PROG_CC
2451 : "${CC:=cc}"
2452
2453 echoscip-shell system . . echo. "$as_me:2453: checking \$CFLAGS variable" >&5
2454 echoscip-shell system . . echo. $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2455 case "x$CFLAGS" in
2456 (*-[IUD]*)
2457 echoscip-shell system . . echo. "$as_me:2457: result: broken" >&5
2458 echoscip-shell system . . echo. "${ECHO_T}broken" >&6
2459 { echoscip-shell system . . echo. "$as_me:2459: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2460 echoscip-shell system . . echo. "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2461 cf_flags="$CFLAGS"
2462 CFLAGS=
2463 for cf_arg in $cf_flags
2464 do
2465
2466 cf_fix_cppflags=no
2467 cf_new_cflags=
2468 cf_new_cppflags=
2469 cf_new_extra_cppflags=
2470
2471 for cf_add_cflags in $cf_arg
2472 do
2473 case "$cf_fix_cppflags" in
2474 (no)
2475 case "$cf_add_cflags" in
2476 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2477 case "$cf_add_cflags" in
2478 (-D*)
2479 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^-D[^=]*='\''\"[^"]*//'`
2480
2481 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2482 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
2483 && cf_fix_cppflags=yes
2484
2485 if testscip-shell system . . test. "$cf_fix_cppflags" = yes ; then
2486
2487 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2488 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2489
2490 continue
2491 elif testscip-shell system . . test. "${cf_tst_cflags}" = "\"'" ; then
2492
2493 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2494 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2495
2496 continue
2497 fi
2498 ;;
2499 esac
2500 case "$CPPFLAGS" in
2501 (*$cf_add_cflags)
2502 ;;
2503 (*)
2504 case "$cf_add_cflags" in
2505 (-D*)
2506 cf_tst_cppflags=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^...//' -e 's/=.*//'`
2507
2508 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
2509 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2510 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2511
2512 ;;
2513 esac
2514
2515 testscip-shell system . . test. -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2516 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2517
2518 ;;
2519 esac
2520 ;;
2521 (*)
2522
2523 testscip-shell system . . test. -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2524 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2525
2526 ;;
2527 esac
2528 ;;
2529 (yes)
2530
2531 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2532 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2533
2534 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^[^"]*"'\''//'`
2535
2536 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2537 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
2538 && cf_fix_cppflags=no
2539 ;;
2540 esac
2541 done
2542
2543 if testscip-shell system . . test. -n "$cf_new_cflags" ; then
2544
2545 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
2546 CFLAGS="${CFLAGS}$cf_new_cflags"
2547
2548 fi
2549
2550 if testscip-shell system . . test. -n "$cf_new_cppflags" ; then
2551
2552 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2553 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2554
2555 fi
2556
2557 if testscip-shell system . . test. -n "$cf_new_extra_cppflags" ; then
2558
2559 testscip-shell system . . test. -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2560 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2561
2562 fi
2563
2564 done
2565 ;;
2566 (*)
2567 echoscip-shell system . . echo. "$as_me:2567: result: ok" >&5
2568 echoscip-shell system . . echo. "${ECHO_T}ok" >&6
2569 ;;
2570 esac
2571
2572 echoscip-shell system . . echo. "$as_me:2572: checking \$CC variable" >&5
2573 echoscip-shell system . . echo. $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2574 case "$CC" in
2575 (*[\ \ ]-*)
2576 echoscip-shell system . . echo. "$as_me:2576: result: broken" >&5
2577 echoscip-shell system . . echo. "${ECHO_T}broken" >&6
2578 { echoscip-shell system . . echo. "$as_me:2578: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2579 echoscip-shell system . . echo. "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2580 # humor him...
2581 cf_prog=`echoscip-shell system . . echo. "$CC" | sedscip-shell system . . sed. -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2582 cf_flags=`echoscip-shell system . . echo. "$CC" | sedscip-shell system . . sed. -e "s%^$cf_prog%%"`
2583 CC="$cf_prog"
2584 for cf_arg in $cf_flags
2585 do
2586 case "x$cf_arg" in
2587 (x-[IUDfgOW]*)
2588
2589 cf_fix_cppflags=no
2590 cf_new_cflags=
2591 cf_new_cppflags=
2592 cf_new_extra_cppflags=
2593
2594 for cf_add_cflags in $cf_arg
2595 do
2596 case "$cf_fix_cppflags" in
2597 (no)
2598 case "$cf_add_cflags" in
2599 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2600 case "$cf_add_cflags" in
2601 (-D*)
2602 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^-D[^=]*='\''\"[^"]*//'`
2603
2604 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2605 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
2606 && cf_fix_cppflags=yes
2607
2608 if testscip-shell system . . test. "$cf_fix_cppflags" = yes ; then
2609
2610 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2611 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2612
2613 continue
2614 elif testscip-shell system . . test. "${cf_tst_cflags}" = "\"'" ; then
2615
2616 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2617 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2618
2619 continue
2620 fi
2621 ;;
2622 esac
2623 case "$CPPFLAGS" in
2624 (*$cf_add_cflags)
2625 ;;
2626 (*)
2627 case "$cf_add_cflags" in
2628 (-D*)
2629 cf_tst_cppflags=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^...//' -e 's/=.*//'`
2630
2631 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
2632 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2633 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2634
2635 ;;
2636 esac
2637
2638 testscip-shell system . . test. -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2639 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2640
2641 ;;
2642 esac
2643 ;;
2644 (*)
2645
2646 testscip-shell system . . test. -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2647 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2648
2649 ;;
2650 esac
2651 ;;
2652 (yes)
2653
2654 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2655 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2656
2657 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^[^"]*"'\''//'`
2658
2659 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2660 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
2661 && cf_fix_cppflags=no
2662 ;;
2663 esac
2664 done
2665
2666 if testscip-shell system . . test. -n "$cf_new_cflags" ; then
2667
2668 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
2669 CFLAGS="${CFLAGS}$cf_new_cflags"
2670
2671 fi
2672
2673 if testscip-shell system . . test. -n "$cf_new_cppflags" ; then
2674
2675 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2676 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2677
2678 fi
2679
2680 if testscip-shell system . . test. -n "$cf_new_extra_cppflags" ; then
2681
2682 testscip-shell system . . test. -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2683 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2684
2685 fi
2686
2687 ;;
2688 (*)
2689 CC="$CC $cf_arg"
2690 ;;
2691 esac
2692 done
2693 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " resulting CC: '$CC'" 1>&6
2694
2695 echoscip-shell system . . echo. "${as_me:-configure}:2695: testing resulting CC: '$CC' ..." 1>&5
2696
2697 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " resulting CFLAGS: '$CFLAGS'" 1>&6
2698
2699 echoscip-shell system . . echo. "${as_me:-configure}:2699: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2700
2701 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2702
2703 echoscip-shell system . . echo. "${as_me:-configure}:2703: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2704
2705 ;;
2706 (*)
2707 echoscip-shell system . . echo. "$as_me:2707: result: ok" >&5
2708 echoscip-shell system . . echo. "${ECHO_T}ok" >&6
2709 ;;
2710 esac
2711
2712 ;;
2713 esac
2714
2715 echoscip-shell system . . echo. "$as_me:2715: checking for egrep" >&5
2716 echoscip-shell system . . echo. $ECHO_N "checking for egrep... $ECHO_C" >&6
2717 if testscip-shell system . . test. "${ac_cv_path_EGREP+set}" = set; then
2718 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720 if echoscip-shell system . . echo. a | $GREP -E '(a|b)' >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
2721 then ac_cv_path_EGREP="$GREP -E"
2722 else
2723 for ac_prog in gegrep egrep
2724 do
2725 # Extract the first word of "$ac_prog", so it can be a program name with args.
2726 set dummy $ac_prog; ac_word=$2
2727 echoscip-shell system . . echo. "$as_me:2727: checking for $ac_word" >&5
2728 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2729 if testscip-shell system . . test. "${ac_cv_path_EGREP+set}" = set; then
2730 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732 case $EGREP in
2733 [\\/]* | ?:[\\/]*)
2734 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
2735 ;;
2736 *)
2737 ac_save_IFS=$IFS; IFS=$ac_path_separator
2738 ac_dummy="$PATH"
2739 for ac_dir in $ac_dummy; do
2740 IFS=$ac_save_IFS
2741 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
2742 if $as_executable_p "$ac_dir/$ac_word"; then
2743 ac_cv_path_EGREP="$ac_dir/$ac_word"
2744 echoscip-shell system . . echo. "$as_me:2744: found $ac_dir/$ac_word" >&5
2745 break
2746 fi
2747 done
2748
2749 ;;
2750 esac
2751 fi
2752 EGREP=$ac_cv_path_EGREP
2753
2754 if testscip-shell system . . test. -n "$EGREP"; then
2755 echoscip-shell system . . echo. "$as_me:2755: result: $EGREP" >&5
2756 echoscip-shell system . . echo. "${ECHO_T}$EGREP" >&6
2757 else
2758 echoscip-shell system . . echo. "$as_me:2758: result: no" >&5
2759 echoscip-shell system . . echo. "${ECHO_T}no" >&6
2760 fi
2761
2762 testscip-shell system . . test. -n "$EGREP" && break
2763 done
2764 testscip-shell system . . test. -n "$EGREP" || EGREP=": "
2765
2766 testscip-shell system . . test. "x$ac_cv_path_EGREP" = "x:" && { { echoscip-shell system . . echo. "$as_me:2766: error: cannot find workable egrep" >&5
2767 echoscip-shell system . . echo. "$as_me: error: cannot find workable egrep" >&2;}
2768 { (exit 1); exit 1; }; }
2769 fi
2770 fi
2771 echoscip-shell system . . echo. "$as_me:2771: result: $ac_cv_path_EGREP" >&5
2772 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_path_EGREP" >&6
2773 EGREP="$ac_cv_path_EGREP"
2774
2775 ac_ext=c
2776 ac_cpp='$CPP $CPPFLAGS'
2777 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2778 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2780 ac_main_return="return"
2781 echoscip-shell system . . echo. "$as_me:2781: checking how to run the C preprocessor" >&5
2782 echoscip-shell system . . echo. $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2783 # On Suns, sometimes $CPP names a directory.
2784 if testscip-shell system . . test. -n "$CPP" && testscip-shell system . . test. -d "$CPP"; then
2785 CPP=
2786 fi
2787 if testscip-shell system . . test. -z "$CPP"; then
2788 if testscip-shell system . . test. "${ac_cv_prog_CPP+set}" = set; then
2789 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
2790 else
2791 # Double quotes because CPP needs to be expanded
2792 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cppscip-shell filesystem . . `/lib/cpp`."
2793 do
2794 ac_preproc_ok=false
2795 for ac_c_preproc_warn_flag in '' yes
2796 do
2797 # Use a header file that comes with gcc, so configuring glibc
2798 # with a fresh cross-compiler works.
2799 # On the NeXT, cc -E runs the code through the compiler's parser,
2800 # not just through cpp. "Syntax error" is here to catch this case.
2801 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
2802 #line 2802 "configure"
2803 #include "confdefs.h"
2804 #include <assert.h>
2805 Syntax error
2806 _ACEOF
2807 if { (eval echo "$as_me:2807: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2808 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2809 ac_status=$?
2810 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2811 rmscip-shell system . . rm. -f conftest.er1
2812 catscip-shell system . . cat. conftest.err >&5
2813 echoscip-shell system . . echo. "$as_me:2813: \$? = $ac_status" >&5
2814 (exit "$ac_status"); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then
2815 if testscip-shell system . . test. -s conftest.err; then
2816 ac_cpp_err=$ac_c_preproc_warn_flag
2817 else
2818 ac_cpp_err=
2819 fi
2820 else
2821 ac_cpp_err=yes
2822 fi
2823 if testscip-shell system . . test. -z "$ac_cpp_err"; then
2824 :
2825 else
2826 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
2827 catscip-shell system . . cat. "conftest.$ac_ext" >&5
2828 # Broken: fails on valid input.
2829 continue
2830 fi
2831 rmscip-shell system . . rm. -f conftest.err "conftest.$ac_ext"
2832
2833 # OK, works on sane cases. Now check whether non-existent headers
2834 # can be detected and how.
2835 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
2836 #line 2836 "configure"
2837 #include "confdefs.h"
2838 #include <ac_nonexistent.h>
2839 _ACEOF
2840 if { (eval echo "$as_me:2840: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2841 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2842 ac_status=$?
2843 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2844 rmscip-shell system . . rm. -f conftest.er1
2845 catscip-shell system . . cat. conftest.err >&5
2846 echoscip-shell system . . echo. "$as_me:2846: \$? = $ac_status" >&5
2847 (exit "$ac_status"); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then
2848 if testscip-shell system . . test. -s conftest.err; then
2849 ac_cpp_err=$ac_c_preproc_warn_flag
2850 else
2851 ac_cpp_err=
2852 fi
2853 else
2854 ac_cpp_err=yes
2855 fi
2856 if testscip-shell system . . test. -z "$ac_cpp_err"; then
2857 # Broken: success on invalid input.
2858 continue
2859 else
2860 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
2861 catscip-shell system . . cat. "conftest.$ac_ext" >&5
2862 # Passes both tests.
2863 ac_preproc_ok=:
2864 break
2865 fi
2866 rmscip-shell system . . rm. -f conftest.err "conftest.$ac_ext"
2867
2868 done
2869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2870 rmscip-shell system . . rm. -f conftest.err "conftest.$ac_ext"
2871 if $ac_preproc_ok; then
2872 break
2873 fi
2874
2875 done
2876 ac_cv_prog_CPP=$CPP
2877
2878 fi
2879 CPP=$ac_cv_prog_CPP
2880 else
2881 ac_cv_prog_CPP=$CPP
2882 fi
2883 echoscip-shell system . . echo. "$as_me:2883: result: $CPP" >&5
2884 echoscip-shell system . . echo. "${ECHO_T}$CPP" >&6
2885 ac_preproc_ok=false
2886 for ac_c_preproc_warn_flag in '' yes
2887 do
2888 # Use a header file that comes with gcc, so configuring glibc
2889 # with a fresh cross-compiler works.
2890 # On the NeXT, cc -E runs the code through the compiler's parser,
2891 # not just through cpp. "Syntax error" is here to catch this case.
2892 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
2893 #line 2893 "configure"
2894 #include "confdefs.h"
2895 #include <assert.h>
2896 Syntax error
2897 _ACEOF
2898 if { (eval echo "$as_me:2898: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2899 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2900 ac_status=$?
2901 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2902 rmscip-shell system . . rm. -f conftest.er1
2903 catscip-shell system . . cat. conftest.err >&5
2904 echoscip-shell system . . echo. "$as_me:2904: \$? = $ac_status" >&5
2905 (exit "$ac_status"); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then
2906 if testscip-shell system . . test. -s conftest.err; then
2907 ac_cpp_err=$ac_c_preproc_warn_flag
2908 else
2909 ac_cpp_err=
2910 fi
2911 else
2912 ac_cpp_err=yes
2913 fi
2914 if testscip-shell system . . test. -z "$ac_cpp_err"; then
2915 :
2916 else
2917 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
2918 catscip-shell system . . cat. "conftest.$ac_ext" >&5
2919 # Broken: fails on valid input.
2920 continue
2921 fi
2922 rmscip-shell system . . rm. -f conftest.err "conftest.$ac_ext"
2923
2924 # OK, works on sane cases. Now check whether non-existent headers
2925 # can be detected and how.
2926 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
2927 #line 2927 "configure"
2928 #include "confdefs.h"
2929 #include <ac_nonexistent.h>
2930 _ACEOF
2931 if { (eval echo "$as_me:2931: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2932 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2933 ac_status=$?
2934 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2935 rmscip-shell system . . rm. -f conftest.er1
2936 catscip-shell system . . cat. conftest.err >&5
2937 echoscip-shell system . . echo. "$as_me:2937: \$? = $ac_status" >&5
2938 (exit "$ac_status"); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then
2939 if testscip-shell system . . test. -s conftest.err; then
2940 ac_cpp_err=$ac_c_preproc_warn_flag
2941 else
2942 ac_cpp_err=
2943 fi
2944 else
2945 ac_cpp_err=yes
2946 fi
2947 if testscip-shell system . . test. -z "$ac_cpp_err"; then
2948 # Broken: success on invalid input.
2949 continue
2950 else
2951 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
2952 catscip-shell system . . cat. "conftest.$ac_ext" >&5
2953 # Passes both tests.
2954 ac_preproc_ok=:
2955 break
2956 fi
2957 rmscip-shell system . . rm. -f conftest.err "conftest.$ac_ext"
2958
2959 done
2960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2961 rmscip-shell system . . rm. -f conftest.err "conftest.$ac_ext"
2962 if $ac_preproc_ok; then
2963 :
2964 else
2965 { { echoscip-shell system . . echo. "$as_me:2965: error: C preprocessor \"$CPP\" fails sanity check" >&5
2966 echoscip-shell system . . echo. "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2967 { (exit 1); exit 1; }; }
2968 fi
2969
2970 ac_ext=c
2971 ac_cpp='$CPP $CPPFLAGS'
2972 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2973 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2975 ac_main_return="return"
2976
2977 if testscip-shell system . . test. $ac_cv_c_compiler_gnu = yes; then
2978 echoscip-shell system . . echo. "$as_me:2978: checking whether $CC needs -traditional" >&5
2979 echoscip-shell system . . echo. $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2980 if testscip-shell system . . test. "${ac_cv_prog_gcc_traditional+set}" = set; then
2981 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983 ac_pattern="Autoconf.*'x'"
2984 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
2985 #line 2985 "configure"
2986 #include "confdefs.h"
2987 #include <sgtty.h>
2988 int Autoconf = TIOCGETP;
2989 _ACEOF
2990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2991 $EGREP "$ac_pattern" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
2992 ac_cv_prog_gcc_traditional=yes
2993 else
2994 ac_cv_prog_gcc_traditional=no
2995 fi
2996 rmscip-shell system . . rm. -rf conftest*
2997
2998 if testscip-shell system . . test. $ac_cv_prog_gcc_traditional = no; then
2999 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
3000 #line 3000 "configure"
3001 #include "confdefs.h"
3002 #include <termio.h>
3003 int Autoconf = TCGETA;
3004 _ACEOF
3005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3006 $EGREP "$ac_pattern" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
3007 ac_cv_prog_gcc_traditional=yes
3008 fi
3009 rmscip-shell system . . rm. -rf conftest*
3010
3011 fi
3012 fi
3013 echoscip-shell system . . echo. "$as_me:3013: result: $ac_cv_prog_gcc_traditional" >&5
3014 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3015 if testscip-shell system . . test. $ac_cv_prog_gcc_traditional = yes; then
3016 CC="$CC -traditional"
3017 fi
3018 fi
3019
3020 echoscip-shell system . . echo. "$as_me:3020: checking whether $CC understands -c and -o together" >&5
3021 echoscip-shell system . . echo. $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
3022 if testscip-shell system . . test. "${cf_cv_prog_CC_c_o+set}" = set; then
3023 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
3024 else
3025
3026 catscip-shell system . . cat. > conftest.$ac_ext <<CF_EOF
3027 int main(void)
3028 {
3029 ${cf_cv_main_return:-return}(0);
3030 }
3031 CF_EOF
3032 # We do the test twice because some compilers refuse to overwrite an
3033 # existing .o file with -o, though they will create one.
3034 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3035 if { (eval echo "$as_me:3035: \"$ac_try\"") >&5
3036 (eval $ac_try) 2>&5
3037 ac_status=$?
3038 echoscip-shell system . . echo. "$as_me:3038: \$? = $ac_status" >&5
3039 (exit "$ac_status"); } &&
3040 testscip-shell system . . test. -f conftest2.$ac_objext && { (eval echo "$as_me:3040: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echoscip-shell system . . echo. "$as_me:3043: \$? = $ac_status" >&5
3044 (exit "$ac_status"); };
3045 then
3046 eval cf_cv_prog_CC_c_o=yes
3047 else
3048 eval cf_cv_prog_CC_c_o=no
3049 fi
3050 rmscip-shell system . . rm. -rf ./conftest*
3051
3052 fi
3053 if testscip-shell system . . test. "$cf_cv_prog_CC_c_o" = yes; then
3054 echoscip-shell system . . echo. "$as_me:3054: result: yes" >&5
3055 echoscip-shell system . . echo. "${ECHO_T}yes" >&6
3056 else
3057 echoscip-shell system . . echo. "$as_me:3057: result: no" >&5
3058 echoscip-shell system . . echo. "${ECHO_T}no" >&6
3059 fi
3060
3061 testscip-shell system . . test. "$program_prefix" != NONE &&
3062 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3063 # Use a double $ so make ignores it.
3064 testscip-shell system . . test. "$program_suffix" != NONE &&
3065 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3066 # Double any \ or $. echo might interpret backslashes.
3067 # By default was `s,x,x', remove it if useless.
3068 catscip-shell system . . cat. <<\_ACEOF >conftest.sed
3069 s/[\\$]/&&/g;s/;s,x,x,$//
3070 _ACEOF
3071 program_transform_name=`echoscip-shell system . . echo. $program_transform_name | sedscip-shell system . . sed. -f conftest.sed`
3072 rmscip-shell system . . rm. conftest.sed
3073
3074 for ac_prog in mawk gawk nawk awk
3075 do
3076 # Extract the first word of "$ac_prog", so it can be a program name with args.
3077 set dummy $ac_prog; ac_word=$2
3078 echoscip-shell system . . echo. "$as_me:3078: checking for $ac_word" >&5
3079 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3080 if testscip-shell system . . test. "${ac_cv_prog_AWK+set}" = set; then
3081 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083 if testscip-shell system . . test. -n "$AWK"; then
3084 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3085 else
3086 ac_save_IFS=$IFS; IFS=$ac_path_separator
3087 ac_dummy="$PATH"
3088 for ac_dir in $ac_dummy; do
3089 IFS=$ac_save_IFS
3090 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
3091 $as_executable_p "$ac_dir/$ac_word" || continue
3092 ac_cv_prog_AWK="$ac_prog"
3093 echoscip-shell system . . echo. "$as_me:3093: found $ac_dir/$ac_word" >&5
3094 break
3095 done
3096
3097 fi
3098 fi
3099 AWK=$ac_cv_prog_AWK
3100 if testscip-shell system . . test. -n "$AWK"; then
3101 echoscip-shell system . . echo. "$as_me:3101: result: $AWK" >&5
3102 echoscip-shell system . . echo. "${ECHO_T}$AWK" >&6
3103 else
3104 echoscip-shell system . . echo. "$as_me:3104: result: no" >&5
3105 echoscip-shell system . . echo. "${ECHO_T}no" >&6
3106 fi
3107
3108 testscip-shell system . . test. -n "$AWK" && break
3109 done
3110
3111 testscip-shell system . . test. -z "$AWK" && { { echoscip-shell system . . echo. "$as_me:3111: error: No awk program found" >&5
3112 echoscip-shell system . . echo. "$as_me: error: No awk program found" >&2;}
3113 { (exit 1); exit 1; }; }
3114
3115 echoscip-shell system . . echo. "$as_me:3115: checking for egrep" >&5
3116 echoscip-shell system . . echo. $ECHO_N "checking for egrep... $ECHO_C" >&6
3117 if testscip-shell system . . test. "${ac_cv_prog_egrep+set}" = set; then
3118 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
3119 else
3120 if echoscip-shell system . . echo. a | (grepscip-shell system . . grep. -E '(a|b)') >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
3121 then ac_cv_prog_egrep='grep -E'
3122 else ac_cv_prog_egrep='egrep'
3123 fi
3124 fi
3125 echoscip-shell system . . echo. "$as_me:3125: result: $ac_cv_prog_egrep" >&5
3126 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_prog_egrep" >&6
3127 EGREP=$ac_cv_prog_egrep
3128
3129 testscip-shell system . . test. -z "$EGREP" && { { echoscip-shell system . . echo. "$as_me:3129: error: No egrep program found" >&5
3130 echoscip-shell system . . echo. "$as_me: error: No egrep program found" >&2;}
3131 { (exit 1); exit 1; }; }
3132
3133 # Find a good install program. We prefer a C program (faster),
3134 # so one script is as good as another. But avoid the broken or
3135 # incompatible versions:
3136 # SysV /etc/install, /usr/sbin/install
3137 # SunOS /usr/etc/install
3138 # IRIX /sbin/install
3139 # AIX /bin/install
3140 # AmigaOS /C/install, which installs bootblocks on floppy discs
3141 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3142 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3143 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3144 # ./install, which can be erroneously created by make from ./install.sh.
3145 echoscip-shell system . . echo. "$as_me:3145: checking for a BSD compatible install" >&5
3146 echoscip-shell system . . echo. $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3147 if testscip-shell system . . test. -z "$INSTALL"; then
3148 if testscip-shell system . . test. "${ac_cv_path_install+set}" = set; then
3149 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151 ac_save_IFS=$IFS; IFS=$ac_path_separator
3152 for ac_dir in $PATH; do
3153 IFS=$ac_save_IFS
3154 # Account for people who put trailing slashes in PATH elements.
3155 case $ac_dir/ in
3156 / | ./ | .// | /cC/* \
3157 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3158 | /usr/ucb/* ) ;;
3159 *)
3160 # OSF1 and SCO ODT 3.0 have their own names for install.
3161 # Don't use installbsd from OSF since it installs stuff as root
3162 # by default.
3163 for ac_prog in ginstall scoinst install; do
3164 if $as_executable_p "$ac_dir/$ac_prog"; then
3165 if testscip-shell system . . test. $ac_prog = install &&
3166 grepscip-shell system . . grep. dspmsg "$ac_dir/$ac_prog" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
3167 # AIX install. It has an incompatible calling convention.
3168 :
3169 elif testscip-shell system . . test. $ac_prog = install &&
3170 grepscip-shell system . . grep. pwplus "$ac_dir/$ac_prog" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
3171 # program-specific install script used by HP pwplus--don't use.
3172 :
3173 else
3174 ac_cv_path_install="$ac_dir/$ac_prog -c"
3175 break 2
3176 fi
3177 fi
3178 done
3179 ;;
3180 esac
3181 done
3182
3183 fi
3184 if testscip-shell system . . test. "${ac_cv_path_install+set}" = set; then
3185 INSTALL=$ac_cv_path_install
3186 else
3187 # As a last resort, use the slow shell script. We don't cache a
3188 # path for INSTALL within a source directory, because that will
3189 # break other packages using the cache if that directory is
3190 # removed, or if the path is relative.
3191 INSTALL=$ac_install_sh
3192 fi
3193 fi
3194 echoscip-shell system . . echo. "$as_me:3194: result: $INSTALL" >&5
3195 echoscip-shell system . . echo. "${ECHO_T}$INSTALL" >&6
3196
3197 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3198 # It thinks the first close brace ends the variable substitution.
3199 testscip-shell system . . test. -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3200
3201 testscip-shell system . . test. -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3202
3203 testscip-shell system . . test. -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3204
3205 echoscip-shell system . . echo. "$as_me:3205: checking whether ln -s works" >&5
3206 echoscip-shell system . . echo. $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3207 LN_S=$as_ln_s
3208 if testscip-shell system . . test. "$LN_S" = "ln -s"; then
3209 echoscip-shell system . . echo. "$as_me:3209: result: yes" >&5
3210 echoscip-shell system . . echo. "${ECHO_T}yes" >&6
3211 else
3212 echoscip-shell system . . echo. "$as_me:3212: result: no, using $LN_S" >&5
3213 echoscip-shell system . . echo. "${ECHO_T}no, using $LN_S" >&6
3214 fi
3215
3216 echoscip-shell system . . echo. "$as_me:3216: checking if $LN_S -f options work" >&5
3217 echoscip-shell system . . echo. $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3218
3219 rmscip-shell system . . rm. -f conf$$.src conf$$dst
3220 echoscip-shell system . . echo. >conf$$.dst
3221 echoscip-shell system . . echo. first >conf$$.src
3222 if $LN_S -f conf$$.src conf$$.dst 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then
3223 cf_prog_ln_sf=yes
3224 else
3225 cf_prog_ln_sf=no
3226 fi
3227 rmscip-shell system . . rm. -f conf$$.dst conf$$src
3228 echoscip-shell system . . echo. "$as_me:3228: result: $cf_prog_ln_sf" >&5
3229 echoscip-shell system . . echo. "${ECHO_T}$cf_prog_ln_sf" >&6
3230
3231 testscip-shell system . . test. "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3232
3233 case "$cf_cv_system_name" in
3234 (cygwin*|msys*|mingw32*|mingw64|os2*)
3235 GLOB_FULLPATH_POSIX='/*scip-shell filesystem . . `/*`.'
3236 GLOB_FULLPATH_OTHER='[a-zA-Z]:[\\/]*'
3237 ;;
3238 (*)
3239 GLOB_FULLPATH_POSIX='/*scip-shell filesystem . . `/*`.'
3240 GLOB_FULLPATH_OTHER=$GLOB_FULLPATH_POSIX
3241 ;;
3242 esac
3243
3244 # Find a good install program. We prefer a C program (faster),
3245 # so one script is as good as another. But avoid the broken or
3246 # incompatible versions:
3247 # SysV /etc/install, /usr/sbin/install
3248 # SunOS /usr/etc/install
3249 # IRIX /sbin/install
3250 # AIX /bin/install
3251 # AmigaOS /C/install, which installs bootblocks on floppy discs
3252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3255 # ./install, which can be erroneously created by make from ./install.sh.
3256 echoscip-shell system . . echo. "$as_me:3256: checking for a BSD compatible install" >&5
3257 echoscip-shell system . . echo. $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3258 if testscip-shell system . . test. -z "$INSTALL"; then
3259 if testscip-shell system . . test. "${ac_cv_path_install+set}" = set; then
3260 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262 ac_save_IFS=$IFS; IFS=$ac_path_separator
3263 for ac_dir in $PATH; do
3264 IFS=$ac_save_IFS
3265 # Account for people who put trailing slashes in PATH elements.
3266 case $ac_dir/ in
3267 / | ./ | .// | /cC/* \
3268 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3269 | /usr/ucb/* ) ;;
3270 *)
3271 # OSF1 and SCO ODT 3.0 have their own names for install.
3272 # Don't use installbsd from OSF since it installs stuff as root
3273 # by default.
3274 for ac_prog in ginstall scoinst install; do
3275 if $as_executable_p "$ac_dir/$ac_prog"; then
3276 if testscip-shell system . . test. $ac_prog = install &&
3277 grepscip-shell system . . grep. dspmsg "$ac_dir/$ac_prog" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
3278 # AIX install. It has an incompatible calling convention.
3279 :
3280 elif testscip-shell system . . test. $ac_prog = install &&
3281 grepscip-shell system . . grep. pwplus "$ac_dir/$ac_prog" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
3282 # program-specific install script used by HP pwplus--don't use.
3283 :
3284 else
3285 ac_cv_path_install="$ac_dir/$ac_prog -c"
3286 break 2
3287 fi
3288 fi
3289 done
3290 ;;
3291 esac
3292 done
3293
3294 fi
3295 if testscip-shell system . . test. "${ac_cv_path_install+set}" = set; then
3296 INSTALL=$ac_cv_path_install
3297 else
3298 # As a last resort, use the slow shell script. We don't cache a
3299 # path for INSTALL within a source directory, because that will
3300 # break other packages using the cache if that directory is
3301 # removed, or if the path is relative.
3302 INSTALL=$ac_install_sh
3303 fi
3304 fi
3305 echoscip-shell system . . echo. "$as_me:3305: result: $INSTALL" >&5
3306 echoscip-shell system . . echo. "${ECHO_T}$INSTALL" >&6
3307
3308 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3309 # It thinks the first close brace ends the variable substitution.
3310 testscip-shell system . . test. -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3311
3312 testscip-shell system . . test. -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3313
3314 testscip-shell system . . test. -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3315
3316 if testscip-shell system . . test. "x$INSTALL" = "x./install-sh -c"; then
3317 if testscip-shell system . . test. -f /usr/sbin/installscip-shell filesystem . . `/usr/sbin/install`. ; then
3318 case "$host_os" in
3319 (linux*gnu*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys|mingw*|linux*uclibc)
3320 INSTALL=/usr/sbin/installscip-shell filesystem . . `/usr/sbin/install`.
3321 ;;
3322 esac
3323 fi
3324 fi
3325 case x$INSTALL in
3326 (x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
3327 ;;
3328 (*)
3329 cf_dir=`echoscip-shell system . . echo. "$INSTALL" | sedscip-shell system . . sed. -e 's%/[^/]*$%%'`
3330 testscip-shell system . . test. -z "$cf_dir" && cf_dir=.
3331 INSTALL="`cd \"$cf_dir\" && pwdscip-shell system . . pwd.`"/"`echoscip-shell system . . echo. "$INSTALL" | sedscip-shell system . . sed. -e 's%^.*/%%'`"
3332 ;;
3333 esac
3334
3335 echoscip-shell system . . echo. "$as_me:3335: checking if you want to install stripped executables" >&5
3336 echoscip-shell system . . echo. $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
3337
3338 # Check whether --enable-stripping or --disable-stripping was given.
3339 if testscip-shell system . . test. "${enable_stripping+set}" = set; then
3340 enableval="$enable_stripping"
3341 testscip-shell system . . test. "$enableval" != no && enableval=yes
3342 if testscip-shell system . . test. "$enableval" != "yes" ; then
3343 enable_stripping=no
3344 else
3345 enable_stripping=yes
3346 fi
3347 else
3348 enableval=yes
3349 enable_stripping=yes
3350
3351 fi;
3352 echoscip-shell system . . echo. "$as_me:3352: result: $enable_stripping" >&5
3353 echoscip-shell system . . echo. "${ECHO_T}$enable_stripping" >&6
3354
3355 if testscip-shell system . . test. "$enable_stripping" = yes
3356 then
3357 INSTALL_OPT_S="-s"
3358 else
3359 INSTALL_OPT_S=
3360 fi
3361
3362 : "${INSTALL:=install}"
3363 echoscip-shell system . . echo. "$as_me:3363: checking if install accepts -p option" >&5
3364 echoscip-shell system . . echo. $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
3365 if testscip-shell system . . test. "${cf_cv_install_p+set}" = set; then
3366 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368
3369 rmscip-shell system . . rm. -rf ./conftest*
3370 datescip-shell system . . date. >conftest.in
3371 mkdirscip-shell system . . mkdir. conftest.out
3372 sleepscip-shell system . . sleep. 3
3373 if $INSTALL -p conftest.in conftest.out 2>/dev/nullscip-shell filesystem . . `/dev/null`.
3374 then
3375 if testscip-shell system . . test. -f conftest.out/conftest.in
3376 then
3377 testscip-shell system . . test. conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
3378 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
3379 if testscip-shell system . . test. -s conftest.err
3380 then
3381 cf_cv_install_p=no
3382 else
3383 cf_cv_install_p=yes
3384 fi
3385 else
3386 cf_cv_install_p=no
3387 fi
3388 else
3389 cf_cv_install_p=no
3390 fi
3391 rmscip-shell system . . rm. -rf ./conftest*
3392
3393 fi
3394 echoscip-shell system . . echo. "$as_me:3394: result: $cf_cv_install_p" >&5
3395 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_install_p" >&6
3396
3397 echoscip-shell system . . echo. "$as_me:3397: checking if install needs to be told about ownership" >&5
3398 echoscip-shell system . . echo. $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
3399 case `$ac_config_guess` in
3400 (*minix)
3401 with_install_o=yes
3402 ;;
3403 (*)
3404 with_install_o=no
3405 ;;
3406 esac
3407
3408 echoscip-shell system . . echo. "$as_me:3408: result: $with_install_o" >&5
3409 echoscip-shell system . . echo. "${ECHO_T}$with_install_o" >&6
3410 if testscip-shell system . . test. "x$with_install_o" = xyes
3411 then
3412 INSTALL_OPT_O="`idscip-shell system . . id. root|sedscip-shell system . . sed. -e 's/uid=[0-9]*(/ -o /' -e 's/gid=[0-9]*(/ -g /' -e 's/ [^=[:space:]][^=[:space:]]*=.*/ /' -e 's/)//g'`"
3413 else
3414 INSTALL_OPT_O=
3415 fi
3416
3417 if testscip-shell system . . test. -n "$INSTALL_OPT_S"
3418 then
3419 echoscip-shell system . . echo. "$as_me:3419: checking if you want to specify strip-program" >&5
3420 echoscip-shell system . . echo. $ECHO_N "checking if you want to specify strip-program... $ECHO_C" >&6
3421
3422 # Check whether --with-strip-program or --without-strip-program was given.
3423 if testscip-shell system . . test. "${with_strip_program+set}" = set; then
3424 withval="$with_strip_program"
3425 with_strip_program=$withval
3426 else
3427 with_strip_program=no
3428 fi;
3429 echoscip-shell system . . echo. "$as_me:3429: result: $with_strip_program" >&5
3430 echoscip-shell system . . echo. "${ECHO_T}$with_strip_program" >&6
3431 if testscip-shell system . . test. "$with_strip_program" != no
3432 then
3433 echoscip-shell system . . echo. "$as_me:3433: checking if strip-program is supported with this installer" >&5
3434 echoscip-shell system . . echo. $ECHO_N "checking if strip-program is supported with this installer... $ECHO_C" >&6
3435 cf_install_program=`echoscip-shell system . . echo. "$INSTALL" | sedscip-shell system . . sed. -e 's%[ ]*[ ]-.%%'`
3436 check_install_strip=no
3437 if testscip-shell system . . test. -f "$cf_install_program"
3438 then
3439 check_install_version=`"$cf_install_program" --version 2>/dev/nullscip-shell filesystem . . `/dev/null`. | headscip-shell system . . head. -n 1 | grepscip-shell system . . grep. coreutils`
3440 if testscip-shell system . . test. -n "$check_install_version"
3441 then
3442 check_install_strip="option"
3443 else
3444 for check_strip_variable in STRIPBIN STRIP
3445 do
3446 if stringsscip-shell system . . strings. "$cf_install_program" | grepscip-shell system . . grep. "^$check_strip_variable$" >/dev/nullscip-shell filesystem . . `/dev/null`.
3447 then
3448 check_install_strip="environ"
3449 break
3450 fi
3451 done
3452 fi
3453 fi
3454 echoscip-shell system . . echo. "$as_me:3454: result: $check_install_strip" >&5
3455 echoscip-shell system . . echo. "${ECHO_T}$check_install_strip" >&6
3456 case "$check_install_strip" in
3457 (no)
3458 { echoscip-shell system . . echo. "$as_me:3458: WARNING: $cf_install_program does not support strip program option" >&5
3459 echoscip-shell system . . echo. "$as_me: WARNING: $cf_install_program does not support strip program option" >&2;}
3460 with_strip_program=no
3461 ;;
3462 (environ)
3463 catscip-shell system . . cat. >install.tmp <<-CF_EOF
3464 #! $SHELL
3465 STRIPBIN="$with_strip_program" \\
3466 STRIP="$with_strip_program" \\
3467 $INSTALL "$@"
3468 CF_EOF
3469 INSTALL="`pwdscip-shell system . . pwd.`/install.tmp"
3470 chmodscip-shell system . . chmod. +x "$INSTALL"
3471 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " created $INSTALL" 1>&6
3472
3473 echoscip-shell system . . echo. "${as_me:-configure}:3473: testing created $INSTALL ..." 1>&5
3474
3475 ;;
3476 (option)
3477 INSTALL_OPT_S="$INSTALL_OPT_S --strip-program=\"$with_strip_program\""
3478 ;;
3479 esac
3480 fi
3481 fi
3482
3483 echoscip-shell system . . echo. "$as_me:3483: checking for long file names" >&5
3484 echoscip-shell system . . echo. $ECHO_N "checking for long file names... $ECHO_C" >&6
3485 if testscip-shell system . . test. "${ac_cv_sys_long_file_names+set}" = set; then
3486 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488 ac_cv_sys_long_file_names=yes
3489 # Test for long file names in all the places we know might matter:
3490 # . the current directory, where building will happen
3491 # $prefix/lib where we will be installing things
3492 # $exec_prefix/lib likewise
3493 # eval it to expand exec_prefix.
3494 # $TMPDIR if set, where it might want to write temporary files
3495 # if $TMPDIR is not set:
3496 # /tmp where it might want to write temporary files
3497 # /var/tmp likewise
3498 # /usr/tmp likewise
3499 if testscip-shell system . . test. -n "$TMPDIR" && testscip-shell system . . test. -d "$TMPDIR" && testscip-shell system . . test. -w "$TMPDIR"; then
3500 ac_tmpdirs=$TMPDIR
3501 else
3502 ac_tmpdirs='/tmp /var/tmp /usr/tmpscip-shell filesystem . . `/tmp /var/tmp /usr/tmp`.'
3503 fi
3504 for ac_dir in . $ac_tmpdirs `eval echo "$prefix/lib" "$exec_prefix/lib"` ; do
3505 testscip-shell system . . test. -d "$ac_dir" || continue
3506 testscip-shell system . . test. -w "$ac_dir" || continue # It is less confusing to not echo anything here.
3507 ac_xdir=$ac_dir/cf$$
3508 (umask 077 && mkdirscip-shell system . . mkdir. "$ac_xdir" 2>/dev/nullscip-shell filesystem . . `/dev/null`.) || continue
3509 ac_tf1=$ac_xdir/conftest9012345
3510 ac_tf2=$ac_xdir/conftest9012346
3511 (echoscip-shell system . . echo. 1 >"$ac_tf1") 2>/dev/nullscip-shell filesystem . . `/dev/null`.
3512 (echoscip-shell system . . echo. 2 >"$ac_tf2") 2>/dev/nullscip-shell filesystem . . `/dev/null`.
3513 ac_val=`catscip-shell system . . cat. "$ac_tf1" 2>/dev/nullscip-shell filesystem . . `/dev/null`.`
3514 if testscip-shell system . . test. ! -f "$ac_tf1" || testscip-shell system . . test. "$ac_val" != 1; then
3515 ac_cv_sys_long_file_names=no
3516 rmscip-shell system . . rm. -rf "$ac_xdir" 2>/dev/nullscip-shell filesystem . . `/dev/null`.
3517 break
3518 fi
3519 rmscip-shell system . . rm. -rf "$ac_xdir" 2>/dev/nullscip-shell filesystem . . `/dev/null`.
3520 done
3521 fi
3522 echoscip-shell system . . echo. "$as_me:3522: result: $ac_cv_sys_long_file_names" >&5
3523 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3524 if testscip-shell system . . test. "$ac_cv_sys_long_file_names" = yes; then
3525
3526 catscip-shell system . . cat. >>confdefs.h <<\EOF
3527 #define HAVE_LONG_FILE_NAMES 1
3528 EOF
3529
3530 fi
3531
3532 # if we find pkg-config, check if we should install the ".pc" files.
3533
3534 echoscip-shell system . . echo. "$as_me:3534: checking if you want to use pkg-config" >&5
3535 echoscip-shell system . . echo. $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3536
3537 # Check whether --with-pkg-config or --without-pkg-config was given.
3538 if testscip-shell system . . test. "${with_pkg_config+set}" = set; then
3539 withval="$with_pkg_config"
3540 cf_pkg_config=$withval
3541 else
3542 cf_pkg_config=yes
3543 fi;
3544 echoscip-shell system . . echo. "$as_me:3544: result: $cf_pkg_config" >&5
3545 echoscip-shell system . . echo. "${ECHO_T}$cf_pkg_config" >&6
3546
3547 case "$cf_pkg_config" in
3548 (no)
3549 PKG_CONFIG=none
3550 ;;
3551 (yes)
3552
3553 if testscip-shell system . . test. -n "$ac_tool_prefix"; then
3554 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3555 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3556 echoscip-shell system . . echo. "$as_me:3556: checking for $ac_word" >&5
3557 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3558 if testscip-shell system . . test. "${ac_cv_path_PKG_CONFIG+set}" = set; then
3559 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561 case $PKG_CONFIG in
3562 [\\/]* | ?:[\\/]*)
3563 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3564 ;;
3565 *)
3566 ac_save_IFS=$IFS; IFS=$ac_path_separator
3567 ac_dummy="$PATH"
3568 for ac_dir in $ac_dummy; do
3569 IFS=$ac_save_IFS
3570 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
3571 if $as_executable_p "$ac_dir/$ac_word"; then
3572 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3573 echoscip-shell system . . echo. "$as_me:3573: found $ac_dir/$ac_word" >&5
3574 break
3575 fi
3576 done
3577
3578 ;;
3579 esac
3580 fi
3581 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3582
3583 if testscip-shell system . . test. -n "$PKG_CONFIG"; then
3584 echoscip-shell system . . echo. "$as_me:3584: result: $PKG_CONFIG" >&5
3585 echoscip-shell system . . echo. "${ECHO_T}$PKG_CONFIG" >&6
3586 else
3587 echoscip-shell system . . echo. "$as_me:3587: result: no" >&5
3588 echoscip-shell system . . echo. "${ECHO_T}no" >&6
3589 fi
3590
3591 fi
3592 if testscip-shell system . . test. -z "$ac_cv_path_PKG_CONFIG"; then
3593 ac_pt_PKG_CONFIG=$PKG_CONFIG
3594 # Extract the first word of "pkg-config", so it can be a program name with args.
3595 set dummy pkg-config; ac_word=$2
3596 echoscip-shell system . . echo. "$as_me:3596: checking for $ac_word" >&5
3597 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3598 if testscip-shell system . . test. "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3599 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601 case $ac_pt_PKG_CONFIG in
3602 [\\/]* | ?:[\\/]*)
3603 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3604 ;;
3605 *)
3606 ac_save_IFS=$IFS; IFS=$ac_path_separator
3607 ac_dummy="$PATH"
3608 for ac_dir in $ac_dummy; do
3609 IFS=$ac_save_IFS
3610 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
3611 if $as_executable_p "$ac_dir/$ac_word"; then
3612 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3613 echoscip-shell system . . echo. "$as_me:3613: found $ac_dir/$ac_word" >&5
3614 break
3615 fi
3616 done
3617
3618 testscip-shell system . . test. -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3619 ;;
3620 esac
3621 fi
3622 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3623
3624 if testscip-shell system . . test. -n "$ac_pt_PKG_CONFIG"; then
3625 echoscip-shell system . . echo. "$as_me:3625: result: $ac_pt_PKG_CONFIG" >&5
3626 echoscip-shell system . . echo. "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3627 else
3628 echoscip-shell system . . echo. "$as_me:3628: result: no" >&5
3629 echoscip-shell system . . echo. "${ECHO_T}no" >&6
3630 fi
3631
3632 PKG_CONFIG=$ac_pt_PKG_CONFIG
3633 else
3634 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3635 fi
3636
3637 ;;
3638 (*)
3639 PKG_CONFIG=$withval
3640 ;;
3641 esac
3642
3643 testscip-shell system . . test. -z "$PKG_CONFIG" && PKG_CONFIG=none
3644 if testscip-shell system . . test. "$PKG_CONFIG" != none ; then
3645
3646 if testscip-shell system . . test. "x$prefix" != xNONE; then
3647 cf_path_syntax="$prefix"
3648 else
3649 cf_path_syntax="$ac_default_prefix"
3650 fi
3651
3652 case "x$PKG_CONFIG" in
3653 (x\$\(*\)*|x\'*\'*)
3654 ;;
3655 (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
3656 ;;
3657 (x\$\{*prefix\}*|x\$\{*dir\}*)
3658 eval PKG_CONFIG="$PKG_CONFIG"
3659 case "x$PKG_CONFIG" in
3660 (xNONE/*)
3661 PKG_CONFIG=`echoscip-shell system . . echo. "$PKG_CONFIG" | sedscip-shell system . . sed. -e s%NONE%$cf_path_syntax%`
3662 ;;
3663 esac
3664 ;;
3665 (xno|xNONE/*)
3666 PKG_CONFIG=`echoscip-shell system . . echo. "$PKG_CONFIG" | sedscip-shell system . . sed. -e s%NONE%$cf_path_syntax%`
3667 ;;
3668 (*)
3669 { { echoscip-shell system . . echo. "$as_me:3669: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3670 echoscip-shell system . . echo. "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3671 { (exit 1); exit 1; }; }
3672 ;;
3673 esac
3674
3675 elif testscip-shell system . . test. "x$cf_pkg_config" != xno ; then
3676 { echoscip-shell system . . echo. "$as_me:3676: WARNING: pkg-config is not installed" >&5
3677 echoscip-shell system . . echo. "$as_me: WARNING: pkg-config is not installed" >&2;}
3678 fi
3679
3680 case "$PKG_CONFIG" in
3681 (no|none|yes)
3682 echoscip-shell system . . echo. "$as_me:3682: checking for pkg-config library directory" >&5
3683 echoscip-shell system . . echo. $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3684 ;;
3685 (*)
3686 echoscip-shell system . . echo. "$as_me:3686: checking for $PKG_CONFIG library directory" >&5
3687 echoscip-shell system . . echo. $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3688 ;;
3689 esac
3690
3691 # if $PKG_CONFIG_LIBDIR is set, try to use that
3692 if testscip-shell system . . test. -n "$PKG_CONFIG_PATH"; then
3693 cf_search_path=`echoscip-shell system . . echo. "$PKG_CONFIG_PATH" | sedscip-shell system . . sed. -e 's/:/ /g' -e 's,^[ ]*,,' -e 's,[ ]*$,,'`
3694 elif testscip-shell system . . test. -n "$PKG_CONFIG_LIBDIR"; then
3695 cf_search_path=`echoscip-shell system . . echo. "$PKG_CONFIG_LIBDIR" | sedscip-shell system . . sed. -e 's/:/ /g' -e 's,^[ ]*,,' -e 's,[ ]*$,,'`
3696 else
3697 cf_search_path=auto
3698 fi
3699
3700 # if the option is used, let that override. otherwise default to "libdir"
3701
3702 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3703 if testscip-shell system . . test. "${with_pkg_config_libdir+set}" = set; then
3704 withval="$with_pkg_config_libdir"
3705 cf_search_path=$withval
3706 else
3707 testscip-shell system . . test. "x$PKG_CONFIG" != xnone && testscip-shell system . . test. -z "$cf_search_path" && cf_search_path=libdir
3708 fi;
3709
3710 case "x$cf_search_path" in
3711 (xlibdir)
3712 PKG_CONFIG_LIBDIR='${libdir}/pkgconfig'
3713 echoscip-shell system . . echo. "$as_me:3713: result: $PKG_CONFIG_LIBDIR" >&5
3714 echoscip-shell system . . echo. "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3715 cf_search_path=
3716 ;;
3717 (x)
3718 ;;
3719 (x$GLOB_FULLPATH_POSIX\ *|x$GLOB_FULLPATH_OTHER\ *)
3720 PKG_CONFIG_LIBDIR=
3721 ;;
3722 (x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
3723 PKG_CONFIG_LIBDIR="$cf_search_path"
3724 echoscip-shell system . . echo. "$as_me:3724: result: $PKG_CONFIG_LIBDIR" >&5
3725 echoscip-shell system . . echo. "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3726 cf_search_path=
3727 ;;
3728 (xyes|xauto)
3729 echoscip-shell system . . echo. "$as_me:3729: result: auto" >&5
3730 echoscip-shell system . . echo. "${ECHO_T}auto" >&6
3731 cf_search_path=
3732 # Look for the library directory using the same prefix as the executable
3733 echoscip-shell system . . echo. "$as_me:3733: checking for search-list" >&5
3734 echoscip-shell system . . echo. $ECHO_N "checking for search-list... $ECHO_C" >&6
3735 if testscip-shell system . . test. "x$PKG_CONFIG" != xnone
3736 then
3737 # works for pkg-config since version 0.24 (2009)
3738 # works for pkgconf since version 0.8.3 (2012)
3739 for scip-shell system . . echo.cf_pkg_program in \scip-shell system . . sed.
3740 `echo "$PKG_CONFIG" | sed -e 's,^.*/,,'` \
3741 pkg-config \
3742 pkgconf
3743 do
3744 cf_raw_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/nullscip-shell filesystem . . `/dev/null`.`
3745 case "$cf_raw_search_path" in
3746 (*\\*)
3747 cf_search_path=`echoscip-shell system . . echo. "$cf_raw_search_path" | trscip-shell system . . tr. ';' ' ' | trscip-shell system . . tr. '\' '/scip-shell filesystem . . `/`.'`
3748 ;;
3749 (*/*)
3750 cf_search_path=`echoscip-shell system . . echo. "$cf_raw_search_path" | trscip-shell system . . tr. : ' '`
3751 ;;
3752 esac
3753 testscip-shell system . . test. -n "$cf_search_path" && break
3754 done
3755
3756 # works for pkg-config since import in 2005 of original 2001 HP code.
3757 testscip-shell system . . test. -z "$cf_search_path" && \
3758 cf_search_path=`
3759 "$PKG_CONFIG" --debug --exists no-such-package 2>&1 | $AWK "\
3760 /^Scanning directory (#[1-9][0-9]* )?'.*'$/{ \
3761 sub(\"^[^']*'\",\"\"); \
3762 sub(\"'.*\",\"\"); \
3763 printf \" %s\", \\$0; } \
3764 { next; } \
3765 "`
3766 fi
3767
3768 echoscip-shell system . . echo. "$as_me:3768: result: $cf_search_path" >&5
3769 echoscip-shell system . . echo. "${ECHO_T}$cf_search_path" >&6
3770 ;;
3771 (*)
3772 { { echoscip-shell system . . echo. "$as_me:3772: error: Unexpected option value: $cf_search_path" >&5
3773 echoscip-shell system . . echo. "$as_me: error: Unexpected option value: $cf_search_path" >&2;}
3774 { (exit 1); exit 1; }; }
3775 ;;
3776 esac
3777
3778 if testscip-shell system . . test. -n "$cf_search_path"
3779 then
3780 echoscip-shell system . . echo. "$as_me:3780: checking for first directory" >&5
3781 echoscip-shell system . . echo. $ECHO_N "checking for first directory... $ECHO_C" >&6
3782 cf_pkg_config_path=none
3783 for cf_config in $cf_search_path
3784 do
3785 if testscip-shell system . . test. -d "$cf_config"
3786 then
3787 cf_pkg_config_path=$cf_config
3788 break
3789 fi
3790 done
3791 echoscip-shell system . . echo. "$as_me:3791: result: $cf_pkg_config_path" >&5
3792 echoscip-shell system . . echo. "${ECHO_T}$cf_pkg_config_path" >&6
3793
3794 if testscip-shell system . . test. "x$cf_pkg_config_path" != xnone ; then
3795 # limit this to the first directory found
3796 PKG_CONFIG_LIBDIR="$cf_pkg_config_path"
3797 fi
3798
3799 if testscip-shell system . . test. -z "$PKG_CONFIG_LIBDIR" && testscip-shell system . . test. -n "$cf_search_path"
3800 then
3801 echoscip-shell system . . echo. "$as_me:3801: checking for workaround" >&5
3802 echoscip-shell system . . echo. $ECHO_N "checking for workaround... $ECHO_C" >&6
3803 if testscip-shell system . . test. "$prefix" = "NONE" ; then
3804 cf_prefix="$ac_default_prefix"
3805 else
3806 cf_prefix="$prefix"
3807 fi
3808 eval cf_libdir=$libdir
3809 cf_libdir=`echoscip-shell system . . echo. "$cf_libdir" | sedscip-shell system . . sed. -e "s,^NONE,$cf_prefix,"`
3810 cf_backup=
3811 for cf_config in $cf_search_path
3812 do
3813 case $cf_config in
3814 $cf_libdir/pkgconfig)
3815 PKG_CONFIG_LIBDIR=$cf_libdir/pkgconfig
3816 break
3817 ;;
3818 *)
3819 testscip-shell system . . test. -z "$cf_backup" && cf_backup=$cf_config
3820 ;;
3821 esac
3822 done
3823 testscip-shell system . . test. -z "$PKG_CONFIG_LIBDIR" && PKG_CONFIG_LIBDIR=$cf_backup
3824 echoscip-shell system . . echo. "$as_me:3824: result: $PKG_CONFIG_LIBDIR" >&5
3825 echoscip-shell system . . echo. "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3826 fi
3827 fi
3828
3829 echoscip-shell system . . echo. "$as_me:3829: checking if you want to build test-programs" >&5
3830 echoscip-shell system . . echo. $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3831
3832 # Check whether --with-tests or --without-tests was given.
3833 if testscip-shell system . . test. "${with_tests+set}" = set; then
3834 withval="$with_tests"
3835 cf_with_tests=$withval
3836 else
3837 cf_with_tests=yes
3838 fi;
3839 echoscip-shell system . . echo. "$as_me:3839: result: $cf_with_tests" >&5
3840 echoscip-shell system . . echo. "${ECHO_T}$cf_with_tests" >&6
3841
3842 echoscip-shell system . . echo. "$as_me:3842: checking if we should assume mixed-case filenames" >&5
3843 echoscip-shell system . . echo. $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3844
3845 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3846 if testscip-shell system . . test. "${enable_mixed_case+set}" = set; then
3847 enableval="$enable_mixed_case"
3848 enable_mixedcase=$enableval
3849 else
3850 enable_mixedcase=auto
3851 fi;
3852 echoscip-shell system . . echo. "$as_me:3852: result: $enable_mixedcase" >&5
3853 echoscip-shell system . . echo. "${ECHO_T}$enable_mixedcase" >&6
3854 if testscip-shell system . . test. "$enable_mixedcase" = "auto" ; then
3855
3856 echoscip-shell system . . echo. "$as_me:3856: checking if filesystem supports mixed-case filenames" >&5
3857 echoscip-shell system . . echo. $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3858 if testscip-shell system . . test. "${cf_cv_mixedcase+set}" = set; then
3859 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
3860 else
3861
3862 if testscip-shell system . . test. "$cross_compiling" = yes ; then
3863 case "$target_alias" in
3864 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
3865 cf_cv_mixedcase=no
3866 ;;
3867 (*)
3868 cf_cv_mixedcase=yes
3869 ;;
3870 esac
3871 else
3872 rmscip-shell system . . rm. -f conftest CONFTEST
3873 echoscip-shell system . . echo. test >conftest
3874 if testscip-shell system . . test. -f CONFTEST ; then
3875 cf_cv_mixedcase=no
3876 else
3877 cf_cv_mixedcase=yes
3878 fi
3879 rmscip-shell system . . rm. -f conftest CONFTEST
3880 fi
3881
3882 fi
3883 echoscip-shell system . . echo. "$as_me:3883: result: $cf_cv_mixedcase" >&5
3884 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_mixedcase" >&6
3885 testscip-shell system . . test. "$cf_cv_mixedcase" = yes &&
3886 catscip-shell system . . cat. >>confdefs.h <<\EOF
3887 #define MIXEDCASE_FILENAMES 1
3888 EOF
3889
3890 else
3891 cf_cv_mixedcase=$enable_mixedcase
3892 if testscip-shell system . . test. "$enable_mixedcase" = "yes" ; then
3893 catscip-shell system . . cat. >>confdefs.h <<\EOF
3894 #define MIXEDCASE_FILENAMES 1
3895 EOF
3896
3897 fi
3898 fi
3899
3900 # do this after mixed-case option (tags/TAGS is not as important as tic).
3901 echoscip-shell system . . echo. "$as_me:3901: checking whether ${MAKE-make} sets \${MAKE}" >&5
3902 echoscip-shell system . . echo. $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3903 set dummy ${MAKE-make}; ac_make=`echoscip-shell system . . echo. "$2" | sedscip-shell system . . sed. 'y,./+-,__p_,'`
3904 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3905 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907 catscip-shell system . . cat. >conftest.make <<\EOF
3908 all:
3909 @echo 'ac_maketemp="${MAKE}"'
3910 EOF
3911 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3912 eval `${MAKE-make} -f conftest.make 2>/dev/nullscip-shell filesystem . . `/dev/null`. | grepscip-shell system . . grep. temp=`
3913 if testscip-shell system . . test. -n "$ac_maketemp"; then
3914 eval ac_cv_prog_make_${ac_make}_set=yes
3915 else
3916 eval ac_cv_prog_make_${ac_make}_set=no
3917 fi
3918 rmscip-shell system . . rm. -f conftest.make
3919 fi
3920 if eval "test \"`echoscip-shell system . . echo. '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3921 echoscip-shell system . . echo. "$as_me:3921: result: yes" >&5
3922 echoscip-shell system . . echo. "${ECHO_T}yes" >&6
3923 SET_MAKE=
3924 else
3925 echoscip-shell system . . echo. "$as_me:3925: result: no" >&5
3926 echoscip-shell system . . echo. "${ECHO_T}no" >&6
3927 SET_MAKE="MAKE=${MAKE-make}"
3928 fi
3929
3930 echoscip-shell system . . echo. "$as_me:3930: checking for \".PHONY\" make-support" >&5
3931 echoscip-shell system . . echo. $ECHO_N "checking for \".PHONY\" make-support... $ECHO_C" >&6
3932 if testscip-shell system . . test. "${cf_cv_make_PHONY+set}" = set; then
3933 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935
3936 rmscip-shell system . . rm. -rf conftest*
3937 (
3938 mkdirscip-shell system . . mkdir. conftest || exit 1
3939 cd conftest
3940 catscip-shell system . . cat. >makefile <<'CF_EOF'
3941 .PHONY: always
3942 DATA=0
3943 always: always.out
3944 @echo "** making $@ $(DATA)"
3945 once: once.out
3946 @echo "** making $@ $(DATA)"
3947 always.out:
3948 @echo "** making $@ $(DATA)"
3949 echo $(DATA) > $@
3950 once.out:
3951 @echo "** making $@ $(DATA)"
3952 echo $(DATA) > $@
3953 CF_EOF
3954 for cf_data in 1 2 3
3955 do
3956 ${MAKE:-make} always DATA=$cf_data
3957 ${MAKE:-make} once DATA=$cf_data
3958 ${MAKE:-make} -t always once
3959 if testscip-shell system . . test. -f always ; then
3960 echoscip-shell system . . echo. "no (case 1)" > ../conftest.tmp
3961 elif testscip-shell system . . test. ! -f always.out ; then
3962 echoscip-shell system . . echo. "no (case 2)" > ../conftest.tmp
3963 elif testscip-shell system . . test. ! -f once.out ; then
3964 echoscip-shell system . . echo. "no (case 3)" > ../conftest.tmp
3965 elif ! cmpscip-shell system . . cmp. -s always.out once.out ; then
3966 echoscip-shell system . . echo. "no (case 4)" > ../conftest.tmp
3967 diffscip-shell system . . diff. always.out once.out
3968 else
3969 cf_check="`catscip-shell system . . cat. always.out`"
3970 if testscip-shell system . . test. "x$cf_check" != "x$cf_data" ; then
3971 echoscip-shell system . . echo. "no (case 5)" > ../conftest.tmp
3972 else
3973 echoscip-shell system . . echo. yes > ../conftest.tmp
3974 rmscip-shell system . . rm. -f ./*.out
3975 continue
3976 fi
3977 fi
3978 break
3979 done
3980 ) >&5 2>&1
3981 cf_cv_make_PHONY="`catscip-shell system . . cat. conftest.tmp`"
3982 rmscip-shell system . . rm. -rf conftest*
3983
3984 fi
3985 echoscip-shell system . . echo. "$as_me:3985: result: $cf_cv_make_PHONY" >&5
3986 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_make_PHONY" >&6
3987 MAKE_NO_PHONY="#"
3988 MAKE_PHONY="#"
3989 testscip-shell system . . test. "x$cf_cv_make_PHONY" = xyes && MAKE_PHONY=
3990 testscip-shell system . . test. "x$cf_cv_make_PHONY" != xyes && MAKE_NO_PHONY=
3991
3992 for ac_prog in exctags ctags
3993 do
3994 # Extract the first word of "$ac_prog", so it can be a program name with args.
3995 set dummy $ac_prog; ac_word=$2
3996 echoscip-shell system . . echo. "$as_me:3996: checking for $ac_word" >&5
3997 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3998 if testscip-shell system . . test. "${ac_cv_prog_CTAGS+set}" = set; then
3999 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001 if testscip-shell system . . test. -n "$CTAGS"; then
4002 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4003 else
4004 ac_save_IFS=$IFS; IFS=$ac_path_separator
4005 ac_dummy="$PATH"
4006 for ac_dir in $ac_dummy; do
4007 IFS=$ac_save_IFS
4008 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
4009 $as_executable_p "$ac_dir/$ac_word" || continue
4010 ac_cv_prog_CTAGS="$ac_prog"
4011 echoscip-shell system . . echo. "$as_me:4011: found $ac_dir/$ac_word" >&5
4012 break
4013 done
4014
4015 fi
4016 fi
4017 CTAGS=$ac_cv_prog_CTAGS
4018 if testscip-shell system . . test. -n "$CTAGS"; then
4019 echoscip-shell system . . echo. "$as_me:4019: result: $CTAGS" >&5
4020 echoscip-shell system . . echo. "${ECHO_T}$CTAGS" >&6
4021 else
4022 echoscip-shell system . . echo. "$as_me:4022: result: no" >&5
4023 echoscip-shell system . . echo. "${ECHO_T}no" >&6
4024 fi
4025
4026 testscip-shell system . . test. -n "$CTAGS" && break
4027 done
4028
4029 for ac_prog in exetags etags
4030 do
4031 # Extract the first word of "$ac_prog", so it can be a program name with args.
4032 set dummy $ac_prog; ac_word=$2
4033 echoscip-shell system . . echo. "$as_me:4033: checking for $ac_word" >&5
4034 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4035 if testscip-shell system . . test. "${ac_cv_prog_ETAGS+set}" = set; then
4036 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038 if testscip-shell system . . test. -n "$ETAGS"; then
4039 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4040 else
4041 ac_save_IFS=$IFS; IFS=$ac_path_separator
4042 ac_dummy="$PATH"
4043 for ac_dir in $ac_dummy; do
4044 IFS=$ac_save_IFS
4045 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
4046 $as_executable_p "$ac_dir/$ac_word" || continue
4047 ac_cv_prog_ETAGS="$ac_prog"
4048 echoscip-shell system . . echo. "$as_me:4048: found $ac_dir/$ac_word" >&5
4049 break
4050 done
4051
4052 fi
4053 fi
4054 ETAGS=$ac_cv_prog_ETAGS
4055 if testscip-shell system . . test. -n "$ETAGS"; then
4056 echoscip-shell system . . echo. "$as_me:4056: result: $ETAGS" >&5
4057 echoscip-shell system . . echo. "${ECHO_T}$ETAGS" >&6
4058 else
4059 echoscip-shell system . . echo. "$as_me:4059: result: no" >&5
4060 echoscip-shell system . . echo. "${ECHO_T}no" >&6
4061 fi
4062
4063 testscip-shell system . . test. -n "$ETAGS" && break
4064 done
4065
4066 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4067 set dummy ${CTAGS:-ctags}; ac_word=$2
4068 echoscip-shell system . . echo. "$as_me:4068: checking for $ac_word" >&5
4069 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4070 if testscip-shell system . . test. "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4071 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073 if testscip-shell system . . test. -n "$MAKE_LOWER_TAGS"; then
4074 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4075 else
4076 ac_save_IFS=$IFS; IFS=$ac_path_separator
4077 ac_dummy="$PATH"
4078 for ac_dir in $ac_dummy; do
4079 IFS=$ac_save_IFS
4080 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
4081 $as_executable_p "$ac_dir/$ac_word" || continue
4082 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4083 echoscip-shell system . . echo. "$as_me:4083: found $ac_dir/$ac_word" >&5
4084 break
4085 done
4086
4087 testscip-shell system . . test. -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4088 fi
4089 fi
4090 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4091 if testscip-shell system . . test. -n "$MAKE_LOWER_TAGS"; then
4092 echoscip-shell system . . echo. "$as_me:4092: result: $MAKE_LOWER_TAGS" >&5
4093 echoscip-shell system . . echo. "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4094 else
4095 echoscip-shell system . . echo. "$as_me:4095: result: no" >&5
4096 echoscip-shell system . . echo. "${ECHO_T}no" >&6
4097 fi
4098
4099 if testscip-shell system . . test. "$cf_cv_mixedcase" = yes ; then
4100 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4101 set dummy ${ETAGS:-etags}; ac_word=$2
4102 echoscip-shell system . . echo. "$as_me:4102: checking for $ac_word" >&5
4103 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4104 if testscip-shell system . . test. "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4105 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107 if testscip-shell system . . test. -n "$MAKE_UPPER_TAGS"; then
4108 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4109 else
4110 ac_save_IFS=$IFS; IFS=$ac_path_separator
4111 ac_dummy="$PATH"
4112 for ac_dir in $ac_dummy; do
4113 IFS=$ac_save_IFS
4114 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
4115 $as_executable_p "$ac_dir/$ac_word" || continue
4116 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4117 echoscip-shell system . . echo. "$as_me:4117: found $ac_dir/$ac_word" >&5
4118 break
4119 done
4120
4121 testscip-shell system . . test. -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4122 fi
4123 fi
4124 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4125 if testscip-shell system . . test. -n "$MAKE_UPPER_TAGS"; then
4126 echoscip-shell system . . echo. "$as_me:4126: result: $MAKE_UPPER_TAGS" >&5
4127 echoscip-shell system . . echo. "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4128 else
4129 echoscip-shell system . . echo. "$as_me:4129: result: no" >&5
4130 echoscip-shell system . . echo. "${ECHO_T}no" >&6
4131 fi
4132
4133 else
4134 MAKE_UPPER_TAGS=no
4135 fi
4136
4137 if testscip-shell system . . test. "$MAKE_UPPER_TAGS" = yes ; then
4138 MAKE_UPPER_TAGS=
4139 else
4140 MAKE_UPPER_TAGS="#"
4141 fi
4142
4143 if testscip-shell system . . test. "$MAKE_LOWER_TAGS" = yes ; then
4144 MAKE_LOWER_TAGS=
4145 else
4146 MAKE_LOWER_TAGS="#"
4147 fi
4148
4149 if testscip-shell system . . test. -n "$ac_tool_prefix"; then
4150 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4151 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4152 echoscip-shell system . . echo. "$as_me:4152: checking for $ac_word" >&5
4153 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4154 if testscip-shell system . . test. "${ac_cv_prog_RANLIB+set}" = set; then
4155 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157 if testscip-shell system . . test. -n "$RANLIB"; then
4158 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4159 else
4160 ac_save_IFS=$IFS; IFS=$ac_path_separator
4161 ac_dummy="$PATH"
4162 for ac_dir in $ac_dummy; do
4163 IFS=$ac_save_IFS
4164 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
4165 $as_executable_p "$ac_dir/$ac_word" || continue
4166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4167 echoscip-shell system . . echo. "$as_me:4167: found $ac_dir/$ac_word" >&5
4168 break
4169 done
4170
4171 fi
4172 fi
4173 RANLIB=$ac_cv_prog_RANLIB
4174 if testscip-shell system . . test. -n "$RANLIB"; then
4175 echoscip-shell system . . echo. "$as_me:4175: result: $RANLIB" >&5
4176 echoscip-shell system . . echo. "${ECHO_T}$RANLIB" >&6
4177 else
4178 echoscip-shell system . . echo. "$as_me:4178: result: no" >&5
4179 echoscip-shell system . . echo. "${ECHO_T}no" >&6
4180 fi
4181
4182 fi
4183 if testscip-shell system . . test. -z "$ac_cv_prog_RANLIB"; then
4184 ac_ct_RANLIB=$RANLIB
4185 # Extract the first word of "ranlib", so it can be a program name with args.
4186 set dummy ranlib; ac_word=$2
4187 echoscip-shell system . . echo. "$as_me:4187: checking for $ac_word" >&5
4188 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4189 if testscip-shell system . . test. "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4190 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192 if testscip-shell system . . test. -n "$ac_ct_RANLIB"; then
4193 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4194 else
4195 ac_save_IFS=$IFS; IFS=$ac_path_separator
4196 ac_dummy="$PATH"
4197 for ac_dir in $ac_dummy; do
4198 IFS=$ac_save_IFS
4199 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
4200 $as_executable_p "$ac_dir/$ac_word" || continue
4201 ac_cv_prog_ac_ct_RANLIB="ranlib"
4202 echoscip-shell system . . echo. "$as_me:4202: found $ac_dir/$ac_word" >&5
4203 break
4204 done
4205
4206 testscip-shell system . . test. -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4207 fi
4208 fi
4209 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4210 if testscip-shell system . . test. -n "$ac_ct_RANLIB"; then
4211 echoscip-shell system . . echo. "$as_me:4211: result: $ac_ct_RANLIB" >&5
4212 echoscip-shell system . . echo. "${ECHO_T}$ac_ct_RANLIB" >&6
4213 else
4214 echoscip-shell system . . echo. "$as_me:4214: result: no" >&5
4215 echoscip-shell system . . echo. "${ECHO_T}no" >&6
4216 fi
4217
4218 RANLIB=$ac_ct_RANLIB
4219 else
4220 RANLIB="$ac_cv_prog_RANLIB"
4221 fi
4222
4223 if testscip-shell system . . test. -n "$ac_tool_prefix"; then
4224 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4225 set dummy ${ac_tool_prefix}ld; ac_word=$2
4226 echoscip-shell system . . echo. "$as_me:4226: checking for $ac_word" >&5
4227 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4228 if testscip-shell system . . test. "${ac_cv_prog_LD+set}" = set; then
4229 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231 if testscip-shell system . . test. -n "$LD"; then
4232 ac_cv_prog_LD="$LD" # Let the user override the test.
4233 else
4234 ac_save_IFS=$IFS; IFS=$ac_path_separator
4235 ac_dummy="$PATH"
4236 for ac_dir in $ac_dummy; do
4237 IFS=$ac_save_IFS
4238 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
4239 $as_executable_p "$ac_dir/$ac_word" || continue
4240 ac_cv_prog_LD="${ac_tool_prefix}ld"
4241 echoscip-shell system . . echo. "$as_me:4241: found $ac_dir/$ac_word" >&5
4242 break
4243 done
4244
4245 fi
4246 fi
4247 LD=$ac_cv_prog_LD
4248 if testscip-shell system . . test. -n "$LD"; then
4249 echoscip-shell system . . echo. "$as_me:4249: result: $LD" >&5
4250 echoscip-shell system . . echo. "${ECHO_T}$LD" >&6
4251 else
4252 echoscip-shell system . . echo. "$as_me:4252: result: no" >&5
4253 echoscip-shell system . . echo. "${ECHO_T}no" >&6
4254 fi
4255
4256 fi
4257 if testscip-shell system . . test. -z "$ac_cv_prog_LD"; then
4258 ac_ct_LD=$LD
4259 # Extract the first word of "ld", so it can be a program name with args.
4260 set dummy ld; ac_word=$2
4261 echoscip-shell system . . echo. "$as_me:4261: checking for $ac_word" >&5
4262 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4263 if testscip-shell system . . test. "${ac_cv_prog_ac_ct_LD+set}" = set; then
4264 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266 if testscip-shell system . . test. -n "$ac_ct_LD"; then
4267 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4268 else
4269 ac_save_IFS=$IFS; IFS=$ac_path_separator
4270 ac_dummy="$PATH"
4271 for ac_dir in $ac_dummy; do
4272 IFS=$ac_save_IFS
4273 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
4274 $as_executable_p "$ac_dir/$ac_word" || continue
4275 ac_cv_prog_ac_ct_LD="ld"
4276 echoscip-shell system . . echo. "$as_me:4276: found $ac_dir/$ac_word" >&5
4277 break
4278 done
4279
4280 testscip-shell system . . test. -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4281 fi
4282 fi
4283 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4284 if testscip-shell system . . test. -n "$ac_ct_LD"; then
4285 echoscip-shell system . . echo. "$as_me:4285: result: $ac_ct_LD" >&5
4286 echoscip-shell system . . echo. "${ECHO_T}$ac_ct_LD" >&6
4287 else
4288 echoscip-shell system . . echo. "$as_me:4288: result: no" >&5
4289 echoscip-shell system . . echo. "${ECHO_T}no" >&6
4290 fi
4291
4292 LD=$ac_ct_LD
4293 else
4294 LD="$ac_cv_prog_LD"
4295 fi
4296
4297 if testscip-shell system . . test. -n "$ac_tool_prefix"; then
4298 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4299 set dummy ${ac_tool_prefix}ar; ac_word=$2
4300 echoscip-shell system . . echo. "$as_me:4300: checking for $ac_word" >&5
4301 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4302 if testscip-shell system . . test. "${ac_cv_prog_AR+set}" = set; then
4303 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305 if testscip-shell system . . test. -n "$AR"; then
4306 ac_cv_prog_AR="$AR" # Let the user override the test.
4307 else
4308 ac_save_IFS=$IFS; IFS=$ac_path_separator
4309 ac_dummy="$PATH"
4310 for ac_dir in $ac_dummy; do
4311 IFS=$ac_save_IFS
4312 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
4313 $as_executable_p "$ac_dir/$ac_word" || continue
4314 ac_cv_prog_AR="${ac_tool_prefix}ar"
4315 echoscip-shell system . . echo. "$as_me:4315: found $ac_dir/$ac_word" >&5
4316 break
4317 done
4318
4319 fi
4320 fi
4321 AR=$ac_cv_prog_AR
4322 if testscip-shell system . . test. -n "$AR"; then
4323 echoscip-shell system . . echo. "$as_me:4323: result: $AR" >&5
4324 echoscip-shell system . . echo. "${ECHO_T}$AR" >&6
4325 else
4326 echoscip-shell system . . echo. "$as_me:4326: result: no" >&5
4327 echoscip-shell system . . echo. "${ECHO_T}no" >&6
4328 fi
4329
4330 fi
4331 if testscip-shell system . . test. -z "$ac_cv_prog_AR"; then
4332 ac_ct_AR=$AR
4333 # Extract the first word of "ar", so it can be a program name with args.
4334 set dummy ar; ac_word=$2
4335 echoscip-shell system . . echo. "$as_me:4335: checking for $ac_word" >&5
4336 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4337 if testscip-shell system . . test. "${ac_cv_prog_ac_ct_AR+set}" = set; then
4338 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340 if testscip-shell system . . test. -n "$ac_ct_AR"; then
4341 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4342 else
4343 ac_save_IFS=$IFS; IFS=$ac_path_separator
4344 ac_dummy="$PATH"
4345 for ac_dir in $ac_dummy; do
4346 IFS=$ac_save_IFS
4347 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
4348 $as_executable_p "$ac_dir/$ac_word" || continue
4349 ac_cv_prog_ac_ct_AR="ar"
4350 echoscip-shell system . . echo. "$as_me:4350: found $ac_dir/$ac_word" >&5
4351 break
4352 done
4353
4354 testscip-shell system . . test. -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4355 fi
4356 fi
4357 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4358 if testscip-shell system . . test. -n "$ac_ct_AR"; then
4359 echoscip-shell system . . echo. "$as_me:4359: result: $ac_ct_AR" >&5
4360 echoscip-shell system . . echo. "${ECHO_T}$ac_ct_AR" >&6
4361 else
4362 echoscip-shell system . . echo. "$as_me:4362: result: no" >&5
4363 echoscip-shell system . . echo. "${ECHO_T}no" >&6
4364 fi
4365
4366 AR=$ac_ct_AR
4367 else
4368 AR="$ac_cv_prog_AR"
4369 fi
4370
4371 if testscip-shell system . . test. -n "$ac_tool_prefix"; then
4372 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4373 set dummy ${ac_tool_prefix}ar; ac_word=$2
4374 echoscip-shell system . . echo. "$as_me:4374: checking for $ac_word" >&5
4375 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4376 if testscip-shell system . . test. "${ac_cv_prog_AR+set}" = set; then
4377 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379 if testscip-shell system . . test. -n "$AR"; then
4380 ac_cv_prog_AR="$AR" # Let the user override the test.
4381 else
4382 ac_save_IFS=$IFS; IFS=$ac_path_separator
4383 ac_dummy="$PATH"
4384 for ac_dir in $ac_dummy; do
4385 IFS=$ac_save_IFS
4386 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
4387 $as_executable_p "$ac_dir/$ac_word" || continue
4388 ac_cv_prog_AR="${ac_tool_prefix}ar"
4389 echoscip-shell system . . echo. "$as_me:4389: found $ac_dir/$ac_word" >&5
4390 break
4391 done
4392
4393 fi
4394 fi
4395 AR=$ac_cv_prog_AR
4396 if testscip-shell system . . test. -n "$AR"; then
4397 echoscip-shell system . . echo. "$as_me:4397: result: $AR" >&5
4398 echoscip-shell system . . echo. "${ECHO_T}$AR" >&6
4399 else
4400 echoscip-shell system . . echo. "$as_me:4400: result: no" >&5
4401 echoscip-shell system . . echo. "${ECHO_T}no" >&6
4402 fi
4403
4404 fi
4405 if testscip-shell system . . test. -z "$ac_cv_prog_AR"; then
4406 ac_ct_AR=$AR
4407 # Extract the first word of "ar", so it can be a program name with args.
4408 set dummy ar; ac_word=$2
4409 echoscip-shell system . . echo. "$as_me:4409: checking for $ac_word" >&5
4410 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4411 if testscip-shell system . . test. "${ac_cv_prog_ac_ct_AR+set}" = set; then
4412 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414 if testscip-shell system . . test. -n "$ac_ct_AR"; then
4415 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4416 else
4417 ac_save_IFS=$IFS; IFS=$ac_path_separator
4418 ac_dummy="$PATH"
4419 for ac_dir in $ac_dummy; do
4420 IFS=$ac_save_IFS
4421 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
4422 $as_executable_p "$ac_dir/$ac_word" || continue
4423 ac_cv_prog_ac_ct_AR="ar"
4424 echoscip-shell system . . echo. "$as_me:4424: found $ac_dir/$ac_word" >&5
4425 break
4426 done
4427
4428 testscip-shell system . . test. -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4429 fi
4430 fi
4431 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4432 if testscip-shell system . . test. -n "$ac_ct_AR"; then
4433 echoscip-shell system . . echo. "$as_me:4433: result: $ac_ct_AR" >&5
4434 echoscip-shell system . . echo. "${ECHO_T}$ac_ct_AR" >&6
4435 else
4436 echoscip-shell system . . echo. "$as_me:4436: result: no" >&5
4437 echoscip-shell system . . echo. "${ECHO_T}no" >&6
4438 fi
4439
4440 AR=$ac_ct_AR
4441 else
4442 AR="$ac_cv_prog_AR"
4443 fi
4444
4445 echoscip-shell system . . echo. "$as_me:4445: checking for options to update archives" >&5
4446 echoscip-shell system . . echo. $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4447 if testscip-shell system . . test. "${cf_cv_ar_flags+set}" = set; then
4448 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450
4451 case "$cf_cv_system_name" in
4452 (*-msvc*)
4453 cf_cv_ar_flags=''
4454 catscip-shell system . . cat. >mk_static_lib.sh <<-EOF
4455 #!$SHELL
4456 MSVC_BIN="$AR"
4457 out="\$1"
4458 shift
4459 exec \$MSVC_BIN -out:"\$out" \$@
4460 EOF
4461 chmodscip-shell system . . chmod. +x mk_static_lib.sh
4462 AR=`pwdscip-shell system . . pwd.`/mk_static_lib.sh
4463 ;;
4464 (*)
4465 cf_cv_ar_flags=unknown
4466 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4467 do
4468
4469 # check if $ARFLAGS already contains this choice
4470 if testscip-shell system . . test. "x$ARFLAGS" != "x" ; then
4471 cf_check_ar_flags=`echoscip-shell system . . echo. "x$ARFLAGS" | sedscip-shell system . . sed. -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4472 if testscip-shell system . . test. "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4473 cf_cv_ar_flags=
4474 break
4475 fi
4476 fi
4477
4478 rmscip-shell system . . rm. -f "conftest.$ac_cv_objext"
4479 rmscip-shell system . . rm. -f conftest.a
4480
4481 catscip-shell system . . cat. >"conftest.$ac_ext" <<EOF
4482 #line 4482 "configure"
4483 int testdata[3] = { 123, 456, 789 };
4484 EOF
4485 if { (eval echo "$as_me:4485: \"$ac_compile\"") >&5
4486 (eval $ac_compile) 2>&5
4487 ac_status=$?
4488 echoscip-shell system . . echo. "$as_me:4488: \$? = $ac_status" >&5
4489 (exit "$ac_status"); } ; then
4490 echoscip-shell system . . echo. "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4491 $AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/nullscip-shell filesystem . . `/dev/null`.
4492 if testscip-shell system . . test. -f conftest.a ; then
4493 cf_cv_ar_flags="$cf_ar_flags"
4494 break
4495 fi
4496 else
4497 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " cannot compile test-program" 1>&6
4498
4499 echoscip-shell system . . echo. "${as_me:-configure}:4499: testing cannot compile test-program ..." 1>&5
4500
4501 break
4502 fi
4503 done
4504 rmscip-shell system . . rm. -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext"
4505 ;;
4506 esac
4507
4508 fi
4509 echoscip-shell system . . echo. "$as_me:4509: result: $cf_cv_ar_flags" >&5
4510 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_ar_flags" >&6
4511
4512 if testscip-shell system . . test. -n "$ARFLAGS" ; then
4513 if testscip-shell system . . test. -n "$cf_cv_ar_flags" ; then
4514 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4515 fi
4516 else
4517 ARFLAGS=$cf_cv_ar_flags
4518 fi
4519
4520 echoscip-shell system . . echo. "$as_me:4520: checking for PATH separator" >&5
4521 echoscip-shell system . . echo. $ECHO_N "checking for PATH separator... $ECHO_C" >&6
4522 case "$cf_cv_system_name" in
4523 (os2*) PATH_SEPARATOR=';' ;;
4524 (*) ${PATH_SEPARATOR:=':'} ;;
4525 esac
4526
4527 echoscip-shell system . . echo. "$as_me:4527: result: $PATH_SEPARATOR" >&5
4528 echoscip-shell system . . echo. "${ECHO_T}$PATH_SEPARATOR" >&6
4529
4530 echoscip-shell system . . echo. "$as_me:4530: checking for an installation directory prefix" >&5
4531 echoscip-shell system . . echo. $ECHO_N "checking for an installation directory prefix... $ECHO_C" >&6
4532
4533 # Check whether --with-install-prefix or --without-install-prefix was given.
4534 if testscip-shell system . . test. "${with_install_prefix+set}" = set; then
4535 withval="$with_install_prefix"
4536 case "x$withval" in
4537 (xyes|xno)
4538 ;;
4539 (*) DESTDIR="$withval"
4540 ;;
4541 esac
4542 fi;
4543 echoscip-shell system . . echo. "$as_me:4543: result: ${DESTDIR:-(none)}" >&5
4544 echoscip-shell system . . echo. "${ECHO_T}${DESTDIR:-(none)}" >&6
4545
4546 SET_DESTDIR=
4547 testscip-shell system . . test. -n "$DESTDIR" && SET_DESTDIR="DESTDIR=$DESTDIR"
4548
4549 echoscip-shell system . . echo. "$as_me:4549: checking if installation directory prefix should be merged" >&5
4550 echoscip-shell system . . echo. $ECHO_N "checking if installation directory prefix should be merged... $ECHO_C" >&6
4551
4552 # Check whether --enable-install-prefix or --disable-install-prefix was given.
4553 if testscip-shell system . . test. "${enable_install_prefix+set}" = set; then
4554 enableval="$enable_install_prefix"
4555 testscip-shell system . . test. "$enableval" != yes && enableval=no
4556 if testscip-shell system . . test. "$enableval" != "no" ; then
4557 cf_install_prefix=yes
4558 else
4559 cf_install_prefix=no
4560 fi
4561 else
4562 enableval=no
4563 cf_install_prefix=no
4564
4565 fi;
4566 echoscip-shell system . . echo. "$as_me:4566: result: $cf_install_prefix" >&5
4567 echoscip-shell system . . echo. "${ECHO_T}$cf_install_prefix" >&6
4568
4569 if testscip-shell system . . test. "$cf_install_prefix" = yes ; then
4570 MERGE_PREFIX=':$(prefix)%=%'
4571 else
4572 MERGE_PREFIX=''
4573 fi
4574
4575 ###############################################################################
4576
4577 # If we're cross-compiling, allow the user to override the tools and their
4578 # options. The configure script is oriented toward identifying the host
4579 # compiler, etc., but we need a build compiler to generate parts of the source.
4580
4581 if testscip-shell system . . test. "$cross_compiling" = yes ; then
4582
4583 # defaults that we might want to override
4584 : ${BUILD_CFLAGS:=''}
4585 : ${BUILD_CPPFLAGS:=''}
4586 : ${BUILD_LDFLAGS:=''}
4587 : ${BUILD_LIBS:=''}
4588 : ${BUILD_EXEEXT:='$x'}
4589 : ${BUILD_OBJEXT:='o'}
4590
4591 # Check whether --with-build-cc or --without-build-cc was given.
4592 if testscip-shell system . . test. "${with_build_cc+set}" = set; then
4593 withval="$with_build_cc"
4594 BUILD_CC="$withval"
4595 else
4596 for ac_prog in gcc clang c99 c89 cc cl
4597 do
4598 # Extract the first word of "$ac_prog", so it can be a program name with args.
4599 set dummy $ac_prog; ac_word=$2
4600 echoscip-shell system . . echo. "$as_me:4600: checking for $ac_word" >&5
4601 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4602 if testscip-shell system . . test. "${ac_cv_prog_BUILD_CC+set}" = set; then
4603 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605 if testscip-shell system . . test. -n "$BUILD_CC"; then
4606 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4607 else
4608 ac_save_IFS=$IFS; IFS=$ac_path_separator
4609 ac_dummy="$PATH"
4610 for ac_dir in $ac_dummy; do
4611 IFS=$ac_save_IFS
4612 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
4613 $as_executable_p "$ac_dir/$ac_word" || continue
4614 ac_cv_prog_BUILD_CC="$ac_prog"
4615 echoscip-shell system . . echo. "$as_me:4615: found $ac_dir/$ac_word" >&5
4616 break
4617 done
4618
4619 fi
4620 fi
4621 BUILD_CC=$ac_cv_prog_BUILD_CC
4622 if testscip-shell system . . test. -n "$BUILD_CC"; then
4623 echoscip-shell system . . echo. "$as_me:4623: result: $BUILD_CC" >&5
4624 echoscip-shell system . . echo. "${ECHO_T}$BUILD_CC" >&6
4625 else
4626 echoscip-shell system . . echo. "$as_me:4626: result: no" >&5
4627 echoscip-shell system . . echo. "${ECHO_T}no" >&6
4628 fi
4629
4630 testscip-shell system . . test. -n "$BUILD_CC" && break
4631 done
4632 testscip-shell system . . test. -n "$BUILD_CC" || BUILD_CC="none"
4633
4634 fi;
4635 echoscip-shell system . . echo. "$as_me:4635: checking for native build C compiler" >&5
4636 echoscip-shell system . . echo. $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4637 echoscip-shell system . . echo. "$as_me:4637: result: $BUILD_CC" >&5
4638 echoscip-shell system . . echo. "${ECHO_T}$BUILD_CC" >&6
4639
4640 echoscip-shell system . . echo. "$as_me:4640: checking for native build C preprocessor" >&5
4641 echoscip-shell system . . echo. $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4642
4643 # Check whether --with-build-cpp or --without-build-cpp was given.
4644 if testscip-shell system . . test. "${with_build_cpp+set}" = set; then
4645 withval="$with_build_cpp"
4646 BUILD_CPP="$withval"
4647 else
4648 BUILD_CPP='${BUILD_CC} -E'
4649 fi;
4650 echoscip-shell system . . echo. "$as_me:4650: result: $BUILD_CPP" >&5
4651 echoscip-shell system . . echo. "${ECHO_T}$BUILD_CPP" >&6
4652
4653 echoscip-shell system . . echo. "$as_me:4653: checking for native build C flags" >&5
4654 echoscip-shell system . . echo. $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4655
4656 # Check whether --with-build-cflags or --without-build-cflags was given.
4657 if testscip-shell system . . test. "${with_build_cflags+set}" = set; then
4658 withval="$with_build_cflags"
4659 BUILD_CFLAGS="$withval"
4660 fi;
4661 echoscip-shell system . . echo. "$as_me:4661: result: $BUILD_CFLAGS" >&5
4662 echoscip-shell system . . echo. "${ECHO_T}$BUILD_CFLAGS" >&6
4663
4664 echoscip-shell system . . echo. "$as_me:4664: checking for native build C preprocessor-flags" >&5
4665 echoscip-shell system . . echo. $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4666
4667 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4668 if testscip-shell system . . test. "${with_build_cppflags+set}" = set; then
4669 withval="$with_build_cppflags"
4670 BUILD_CPPFLAGS="$withval"
4671 fi;
4672 echoscip-shell system . . echo. "$as_me:4672: result: $BUILD_CPPFLAGS" >&5
4673 echoscip-shell system . . echo. "${ECHO_T}$BUILD_CPPFLAGS" >&6
4674
4675 echoscip-shell system . . echo. "$as_me:4675: checking for native build linker-flags" >&5
4676 echoscip-shell system . . echo. $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4677
4678 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4679 if testscip-shell system . . test. "${with_build_ldflags+set}" = set; then
4680 withval="$with_build_ldflags"
4681 BUILD_LDFLAGS="$withval"
4682 fi;
4683 echoscip-shell system . . echo. "$as_me:4683: result: $BUILD_LDFLAGS" >&5
4684 echoscip-shell system . . echo. "${ECHO_T}$BUILD_LDFLAGS" >&6
4685
4686 echoscip-shell system . . echo. "$as_me:4686: checking for native build linker-libraries" >&5
4687 echoscip-shell system . . echo. $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4688
4689 # Check whether --with-build-libs or --without-build-libs was given.
4690 if testscip-shell system . . test. "${with_build_libs+set}" = set; then
4691 withval="$with_build_libs"
4692 BUILD_LIBS="$withval"
4693 fi;
4694 echoscip-shell system . . echo. "$as_me:4694: result: $BUILD_LIBS" >&5
4695 echoscip-shell system . . echo. "${ECHO_T}$BUILD_LIBS" >&6
4696
4697 # this assumes we're on Unix.
4698 BUILD_EXEEXT=
4699 BUILD_OBJEXT=o
4700
4701 : ${BUILD_CC:='${CC}'}
4702
4703 echoscip-shell system . . echo. "$as_me:4703: checking if the build-compiler \"$BUILD_CC\" works" >&5
4704 echoscip-shell system . . echo. $ECHO_N "checking if the build-compiler \"$BUILD_CC\" works... $ECHO_C" >&6
4705
4706 cf_save_crossed=$cross_compiling
4707 cf_save_ac_link=$ac_link
4708 cross_compiling=no
4709 cf_build_cppflags=$BUILD_CPPFLAGS
4710 testscip-shell system . . test. "$cf_build_cppflags" = "#" && cf_build_cppflags=
4711 ac_link='$BUILD_CC -o "conftest$ac_exeext" $BUILD_CFLAGS $cf_build_cppflags $BUILD_LDFLAGS "conftest.$ac_ext" $BUILD_LIBS >&5'
4712
4713 if testscip-shell system . . test. "$cross_compiling" = yes; then
4714 cf_ok_build_cc=unknown
4715 else
4716 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
4717 #line 4717 "configure"
4718 #include "confdefs.h"
4719 #include <stdio.h>
4720 int main(int argc, char *argv[])
4721 {
4722 ${cf_cv_main_return:-return}(argc < 0 || argv == (void*)0 || argv[0] == (void*)0);
4723 }
4724
4725 _ACEOF
4726 rmscip-shell system . . rm. -f "conftest$ac_exeext"
4727 if { (eval echo "$as_me:4727: \"$ac_link\"") >&5
4728 (eval $ac_link) 2>&5
4729 ac_status=$?
4730 echoscip-shell system . . echo. "$as_me:4730: \$? = $ac_status" >&5
4731 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
4732 { (eval echo "$as_me:4732: \"$ac_try\"") >&5
4733 (eval $ac_try) 2>&5
4734 ac_status=$?
4735 echoscip-shell system . . echo. "$as_me:4735: \$? = $ac_status" >&5
4736 (exit "$ac_status"); }; }; then
4737 cf_ok_build_cc=yes
4738 else
4739 echoscip-shell system . . echo. "$as_me: program exited with status $ac_status" >&5
4740 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
4741 catscip-shell system . . cat. "conftest.$ac_ext" >&5
4742 cf_ok_build_cc=no
4743 fi
4744 rmscip-shell system . . rm. -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
4745 fi
4746
4747 cross_compiling=$cf_save_crossed
4748 ac_link=$cf_save_ac_link
4749
4750 echoscip-shell system . . echo. "$as_me:4750: result: $cf_ok_build_cc" >&5
4751 echoscip-shell system . . echo. "${ECHO_T}$cf_ok_build_cc" >&6
4752
4753 if testscip-shell system . . test. "$cf_ok_build_cc" != yes
4754 then
4755 { { echoscip-shell system . . echo. "$as_me:4755: error: Cross-build requires two compilers.
4756 Use --with-build-cc to specify the native compiler." >&5
4757 echoscip-shell system . . echo. "$as_me: error: Cross-build requires two compilers.
4758 Use --with-build-cc to specify the native compiler." >&2;}
4759 { (exit 1); exit 1; }; }
4760 fi
4761
4762 else
4763 : ${BUILD_CC:='${CC}'}
4764 : ${BUILD_CPP:='${CPP}'}
4765 : ${BUILD_CFLAGS:='${CFLAGS}'}
4766 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4767 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4768 : ${BUILD_LIBS:='${LIBS}'}
4769 : ${BUILD_EXEEXT:='$x'}
4770 : ${BUILD_OBJEXT:='o'}
4771 fi
4772
4773 ###############################################################################
4774
4775 ### Options to allow the user to specify the set of libraries which are used.
4776 ### Use "--without-normal --with-shared" to allow the default model to be
4777 ### shared, for example.
4778 cf_list_models=""
4779
4780 echoscip-shell system . . echo. "$as_me:4780: checking if you want to build shared C-objects" >&5
4781 echoscip-shell system . . echo. $ECHO_N "checking if you want to build shared C-objects... $ECHO_C" >&6
4782
4783 # Check whether --with-shared or --without-shared was given.
4784 if testscip-shell system . . test. "${with_shared+set}" = set; then
4785 withval="$with_shared"
4786 with_shared=$withval
4787 else
4788 with_shared=no
4789 fi;
4790 echoscip-shell system . . echo. "$as_me:4790: result: $with_shared" >&5
4791 echoscip-shell system . . echo. "${ECHO_T}$with_shared" >&6
4792 testscip-shell system . . test. "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4793
4794 echoscip-shell system . . echo. "$as_me:4794: checking for specified models" >&5
4795 echoscip-shell system . . echo. $ECHO_N "checking for specified models... $ECHO_C" >&6
4796 testscip-shell system . . test. -z "$cf_list_models" && cf_list_models=normal
4797 echoscip-shell system . . echo. "$as_me:4797: result: $cf_list_models" >&5
4798 echoscip-shell system . . echo. "${ECHO_T}$cf_list_models" >&6
4799
4800 ### Use the first model as the default, and save its suffix for use in building
4801 ### up test-applications.
4802 echoscip-shell system . . echo. "$as_me:4802: checking for default model" >&5
4803 echoscip-shell system . . echo. $ECHO_N "checking for default model... $ECHO_C" >&6
4804 DFT_LWR_MODEL=`echoscip-shell system . . echo. "$cf_list_models" | $AWK '{print $1}'`
4805 echoscip-shell system . . echo. "$as_me:4805: result: $DFT_LWR_MODEL" >&5
4806 echoscip-shell system . . echo. "${ECHO_T}$DFT_LWR_MODEL" >&6
4807
4808 DFT_UPR_MODEL=`echoscip-shell system . . echo. "$DFT_LWR_MODEL" | sedscip-shell system . . sed. y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4809
4810 echoscip-shell system . . echo. "$as_me:4810: checking for specific curses-directory" >&5
4811 echoscip-shell system . . echo. $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4812
4813 # Check whether --with-curses-dir or --without-curses-dir was given.
4814 if testscip-shell system . . test. "${with_curses_dir+set}" = set; then
4815 withval="$with_curses_dir"
4816 cf_cv_curses_dir=$withval
4817 else
4818 cf_cv_curses_dir=no
4819 fi;
4820 echoscip-shell system . . echo. "$as_me:4820: result: $cf_cv_curses_dir" >&5
4821 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_curses_dir" >&6
4822
4823 if testscip-shell system . . test. -n "$cf_cv_curses_dir" && testscip-shell system . . test. "$cf_cv_curses_dir" != "no"
4824 then
4825
4826 if testscip-shell system . . test. "x$prefix" != xNONE; then
4827 cf_path_syntax="$prefix"
4828 else
4829 cf_path_syntax="$ac_default_prefix"
4830 fi
4831
4832 case "x$withval" in
4833 (x\$\(*\)*|x\'*\'*)
4834 ;;
4835 (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
4836 ;;
4837 (x\$\{*prefix\}*|x\$\{*dir\}*)
4838 eval withval="$withval"
4839 case "x$withval" in
4840 (xNONE/*)
4841 withval=`echoscip-shell system . . echo. "$withval" | sedscip-shell system . . sed. -e s%NONE%$cf_path_syntax%`
4842 ;;
4843 esac
4844 ;;
4845 (xno|xNONE/*)
4846 withval=`echoscip-shell system . . echo. "$withval" | sedscip-shell system . . sed. -e s%NONE%$cf_path_syntax%`
4847 ;;
4848 (*)
4849 { { echoscip-shell system . . echo. "$as_me:4849: error: expected a pathname, not \"$withval\"" >&5
4850 echoscip-shell system . . echo. "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4851 { (exit 1); exit 1; }; }
4852 ;;
4853 esac
4854
4855 if testscip-shell system . . test. -d "$cf_cv_curses_dir"
4856 then
4857
4858 if testscip-shell system . . test. -n "$cf_cv_curses_dir/include" ; then
4859 for cf_add_incdir in $cf_cv_curses_dir/include
4860 do
4861 while testscip-shell system . . test. "$cf_add_incdir" != /usr/includescip-shell filesystem . . `/usr/include`.
4862 do
4863 if testscip-shell system . . test. -d "$cf_add_incdir"
4864 then
4865 cf_have_incdir=no
4866 if testscip-shell system . . test. -n "$CFLAGS$CPPFLAGS" ; then
4867 # a loop is needed to ensure we can add subdirs of existing dirs
4868 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4869 if testscip-shell system . . test. ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4870 cf_have_incdir=yes; break
4871 fi
4872 done
4873 fi
4874
4875 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
4876 if testscip-shell system . . test. "$cf_add_incdir" = /usr/local/includescip-shell filesystem . . `/usr/local/include`. ; then
4877 if testscip-shell system . . test. "$GCC" = yes
4878 then
4879 cf_save_CPPFLAGS=$CPPFLAGS
4880
4881 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4882 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
4883
4884 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
4885 #line 4885 "configure"
4886 #include "confdefs.h"
4887 #include <stdio.h>
4888 int
4889 main (void)
4890 {
4891 printf("Hello")
4892 ;
4893 return 0;
4894 }
4895 _ACEOF
4896 rmscip-shell system . . rm. -f "conftest.$ac_objext"
4897 if { (eval echo "$as_me:4897: \"$ac_compile\"") >&5
4898 (eval $ac_compile) 2>&5
4899 ac_status=$?
4900 echoscip-shell system . . echo. "$as_me:4900: \$? = $ac_status" >&5
4901 (exit "$ac_status"); } &&
4902 { ac_try='test -s "conftest.$ac_objext"'
4903 { (eval echo "$as_me:4903: \"$ac_try\"") >&5
4904 (eval $ac_try) 2>&5
4905 ac_status=$?
4906 echoscip-shell system . . echo. "$as_me:4906: \$? = $ac_status" >&5
4907 (exit "$ac_status"); }; }; then
4908 :
4909 else
4910 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
4911 catscip-shell system . . cat. "conftest.$ac_ext" >&5
4912 cf_have_incdir=yes
4913 fi
4914 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
4915 CPPFLAGS=$cf_save_CPPFLAGS
4916 fi
4917 fi
4918 fi
4919
4920 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
4921 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " adding $cf_add_incdir to include-path" 1>&6
4922
4923 echoscip-shell system . . echo. "${as_me:-configure}:4923: testing adding $cf_add_incdir to include-path ..." 1>&5
4924
4925 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4926
4927 cf_top_incdir=`echoscip-shell system . . echo. "$cf_add_incdir" | sedscip-shell system . . sed. -e 's%/include/.*$%/include%'`
4928 testscip-shell system . . test. "$cf_top_incdir" = "$cf_add_incdir" && break
4929 cf_add_incdir="$cf_top_incdir"
4930 else
4931 break
4932 fi
4933 else
4934 break
4935 fi
4936 done
4937 done
4938 fi
4939
4940 if testscip-shell system . . test. -n "$cf_cv_curses_dir/lib" ; then
4941 for cf_add_libdir in $cf_cv_curses_dir/lib
4942 do
4943 if testscip-shell system . . test. "$cf_add_libdir" = /usr/libscip-shell filesystem . . `/usr/lib`. ; then
4944 :
4945 elif testscip-shell system . . test. -d "$cf_add_libdir"
4946 then
4947 cf_have_libdir=no
4948 if testscip-shell system . . test. -n "$LDFLAGS$LIBS" ; then
4949 # a loop is needed to ensure we can add subdirs of existing dirs
4950 for cf_test_libdir in $LDFLAGS $LIBS ; do
4951 if testscip-shell system . . test. ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4952 cf_have_libdir=yes; break
4953 fi
4954 done
4955 fi
4956 if testscip-shell system . . test. "$cf_have_libdir" = no ; then
4957 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " adding $cf_add_libdir to library-path" 1>&6
4958
4959 echoscip-shell system . . echo. "${as_me:-configure}:4959: testing adding $cf_add_libdir to library-path ..." 1>&5
4960
4961 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4962 fi
4963 fi
4964 done
4965 fi
4966
4967 fi
4968 fi
4969
4970 cf_ncuconfig_root=ncurses
4971 cf_have_ncuconfig=no
4972
4973 if testscip-shell system . . test. "x${PKG_CONFIG:=none}" != xnone; then
4974 echoscip-shell system . . echo. "$as_me:4974: checking pkg-config for $cf_ncuconfig_root" >&5
4975 echoscip-shell system . . echo. $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
4976 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
4977 echoscip-shell system . . echo. "$as_me:4977: result: yes" >&5
4978 echoscip-shell system . . echo. "${ECHO_T}yes" >&6
4979
4980 echoscip-shell system . . echo. "$as_me:4980: checking if the $cf_ncuconfig_root package files work" >&5
4981 echoscip-shell system . . echo. $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
4982 cf_have_ncuconfig=unknown
4983
4984 cf_save_CFLAGS="$CFLAGS"
4985 cf_save_CPPFLAGS="$CPPFLAGS"
4986 cf_save_LIBS="$LIBS"
4987
4988 cf_pkg_cflags="`$PKG_CONFIG --cflags $cf_ncuconfig_root`"
4989 cf_pkg_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
4990
4991 # while -W for passing linker flags is prevalent, it is not "standard".
4992 # At least one wrapper for c89/c99 (in Apple's xcode) has its own
4993 # incompatible _and_ non-standard -W option which gives an error. Work
4994 # around that pitfall.
4995 case "x${CC}@@${cf_pkg_libs}@${cf_pkg_cflags}" in
4996 (x*c[89]9@@*-W*)
4997
4998 cf_fix_cppflags=no
4999 cf_new_cflags=
5000 cf_new_cppflags=
5001 cf_new_extra_cppflags=
5002
5003 for cf_add_cflags in $cf_pkg_cflags
5004 do
5005 case "$cf_fix_cppflags" in
5006 (no)
5007 case "$cf_add_cflags" in
5008 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5009 case "$cf_add_cflags" in
5010 (-D*)
5011 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^-D[^=]*='\''\"[^"]*//'`
5012
5013 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5014 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
5015 && cf_fix_cppflags=yes
5016
5017 if testscip-shell system . . test. "$cf_fix_cppflags" = yes ; then
5018
5019 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5020 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5021
5022 continue
5023 elif testscip-shell system . . test. "${cf_tst_cflags}" = "\"'" ; then
5024
5025 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5026 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5027
5028 continue
5029 fi
5030 ;;
5031 esac
5032 case "$CPPFLAGS" in
5033 (*$cf_add_cflags)
5034 ;;
5035 (*)
5036 case "$cf_add_cflags" in
5037 (-D*)
5038 cf_tst_cppflags=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^...//' -e 's/=.*//'`
5039
5040 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
5041 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5042 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5043
5044 ;;
5045 esac
5046
5047 testscip-shell system . . test. -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5048 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
5049
5050 ;;
5051 esac
5052 ;;
5053 (*)
5054
5055 testscip-shell system . . test. -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5056 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
5057
5058 ;;
5059 esac
5060 ;;
5061 (yes)
5062
5063 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5064 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5065
5066 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^[^"]*"'\''//'`
5067
5068 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5069 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
5070 && cf_fix_cppflags=no
5071 ;;
5072 esac
5073 done
5074
5075 if testscip-shell system . . test. -n "$cf_new_cflags" ; then
5076
5077 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
5078 CFLAGS="${CFLAGS}$cf_new_cflags"
5079
5080 fi
5081
5082 if testscip-shell system . . test. -n "$cf_new_cppflags" ; then
5083
5084 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5085 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
5086
5087 fi
5088
5089 if testscip-shell system . . test. -n "$cf_new_extra_cppflags" ; then
5090
5091 testscip-shell system . . test. -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5092 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
5093
5094 fi
5095
5096 cf_add_libs="$LIBS"
5097 # reverse order
5098 cf_add_0lib=
5099 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
5100 # filter duplicates
5101 for cf_add_1lib in $cf_add_0lib; do
5102 for cf_add_2lib in $cf_add_libs; do
5103 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
5104 cf_add_1lib=
5105 break
5106 fi
5107 done
5108 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
5109 done
5110 LIBS="$cf_add_libs"
5111
5112 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
5113 #line 5113 "configure"
5114 #include "confdefs.h"
5115 #include <${cf_cv_ncurses_header:-curses.h}>
5116 int
5117 main (void)
5118 {
5119 initscr(); mousemask(0,(mmask_t*)0); tigetstr((char *)0);
5120 ;
5121 return 0;
5122 }
5123 _ACEOF
5124 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
5125 if { (eval echo "$as_me:5125: \"$ac_link\"") >&5
5126 (eval $ac_link) 2>&5
5127 ac_status=$?
5128 echoscip-shell system . . echo. "$as_me:5128: \$? = $ac_status" >&5
5129 (exit "$ac_status"); } &&
5130 { ac_try='test -s "conftest$ac_exeext"'
5131 { (eval echo "$as_me:5131: \"$ac_try\"") >&5
5132 (eval $ac_try) 2>&5
5133 ac_status=$?
5134 echoscip-shell system . . echo. "$as_me:5134: \$? = $ac_status" >&5
5135 (exit "$ac_status"); }; }; then
5136 if testscip-shell system . . test. "$cross_compiling" = yes; then
5137 cf_test_ncuconfig=maybe
5138 else
5139 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
5140 #line 5140 "configure"
5141 #include "confdefs.h"
5142 #include <${cf_cv_ncurses_header:-curses.h}>
5143 int main(void)
5144 { const char *xx = curses_version(); return (xx == (const char*)0); }
5145 _ACEOF
5146 rmscip-shell system . . rm. -f "conftest$ac_exeext"
5147 if { (eval echo "$as_me:5147: \"$ac_link\"") >&5
5148 (eval $ac_link) 2>&5
5149 ac_status=$?
5150 echoscip-shell system . . echo. "$as_me:5150: \$? = $ac_status" >&5
5151 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
5152 { (eval echo "$as_me:5152: \"$ac_try\"") >&5
5153 (eval $ac_try) 2>&5
5154 ac_status=$?
5155 echoscip-shell system . . echo. "$as_me:5155: \$? = $ac_status" >&5
5156 (exit "$ac_status"); }; }; then
5157 cf_test_ncuconfig=yes
5158 else
5159 echoscip-shell system . . echo. "$as_me: program exited with status $ac_status" >&5
5160 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
5161 catscip-shell system . . cat. "conftest.$ac_ext" >&5
5162 cf_test_ncuconfig=no
5163 fi
5164 rmscip-shell system . . rm. -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
5165 fi
5166 else
5167 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
5168 catscip-shell system . . cat. "conftest.$ac_ext" >&5
5169 cf_test_ncuconfig=no
5170 fi
5171 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
5172
5173 CFLAGS="$cf_save_CFLAGS"
5174 CPPFLAGS="$cf_save_CPPFLAGS"
5175 LIBS="$cf_save_LIBS"
5176
5177 if testscip-shell system . . test. "x$cf_test_ncuconfig" != xyes; then
5178 cf_temp=`echoscip-shell system . . echo. "x$cf_pkg_cflags" | sedscip-shell system . . sed. -e s/^x// -e 's/-W[^ ]*//g'`
5179 cf_pkg_cflags="$cf_temp"
5180 cf_temp=`echoscip-shell system . . echo. "x$cf_pkg_libs" | sedscip-shell system . . sed. -e s/^x// -e 's/-W[^ ]*//g'`
5181 cf_pkg_libs="$cf_temp"
5182 fi
5183 ;;
5184 esac
5185
5186 for cf_required in $cf_ncuconfig_root
5187 do
5188 # check for duplicates
5189 for cf_require_pkg in $REQUIRE_PKG
5190 do
5191 if testscip-shell system . . test. "$cf_required" = "$cf_require_pkg"
5192 then
5193 cf_required=
5194 break
5195 fi
5196 done
5197 testscip-shell system . . test. -n "$cf_required" && REQUIRE_PKG="$REQUIRE_PKG $cf_required"
5198 done
5199
5200 for cf_add_cflags in $cf_pkg_cflags
5201 do
5202 case "x$cf_add_cflags" in
5203 (x-[DU]*)
5204
5205 cf_tmp_cflag=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^.//' -e 's/=.*//'`
5206 while truescip-shell system . . true.
5207 do
5208 cf_old_cflag=`echoscip-shell system . . echo. "x$CFLAGS" | sedscip-shell system . . sed. -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
5209 testscip-shell system . . test. "$CFLAGS" != "$cf_old_cflag" || break
5210
5211 CFLAGS="$cf_old_cflag"
5212 done
5213
5214 cf_tmp_cflag=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^.//' -e 's/=.*//'`
5215 while truescip-shell system . . true.
5216 do
5217 cf_old_cflag=`echoscip-shell system . . echo. "x$CPPFLAGS" | sedscip-shell system . . sed. -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
5218 testscip-shell system . . test. "$CPPFLAGS" != "$cf_old_cflag" || break
5219
5220 CPPFLAGS="$cf_old_cflag"
5221 done
5222
5223 ;;
5224 esac
5225
5226 cf_fix_cppflags=no
5227 cf_new_cflags=
5228 cf_new_cppflags=
5229 cf_new_extra_cppflags=
5230
5231 for cf_add_cflags in $cf_add_cflags
5232 do
5233 case "$cf_fix_cppflags" in
5234 (no)
5235 case "$cf_add_cflags" in
5236 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5237 case "$cf_add_cflags" in
5238 (-D*)
5239 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^-D[^=]*='\''\"[^"]*//'`
5240
5241 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5242 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
5243 && cf_fix_cppflags=yes
5244
5245 if testscip-shell system . . test. "$cf_fix_cppflags" = yes ; then
5246
5247 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5248 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5249
5250 continue
5251 elif testscip-shell system . . test. "${cf_tst_cflags}" = "\"'" ; then
5252
5253 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5254 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5255
5256 continue
5257 fi
5258 ;;
5259 esac
5260 case "$CPPFLAGS" in
5261 (*$cf_add_cflags)
5262 ;;
5263 (*)
5264 case "$cf_add_cflags" in
5265 (-D*)
5266 cf_tst_cppflags=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^...//' -e 's/=.*//'`
5267
5268 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
5269 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5270 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5271
5272 ;;
5273 esac
5274
5275 testscip-shell system . . test. -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5276 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
5277
5278 ;;
5279 esac
5280 ;;
5281 (*)
5282
5283 testscip-shell system . . test. -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5284 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
5285
5286 ;;
5287 esac
5288 ;;
5289 (yes)
5290
5291 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5292 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5293
5294 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^[^"]*"'\''//'`
5295
5296 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5297 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
5298 && cf_fix_cppflags=no
5299 ;;
5300 esac
5301 done
5302
5303 if testscip-shell system . . test. -n "$cf_new_cflags" ; then
5304
5305 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
5306 CFLAGS="${CFLAGS}$cf_new_cflags"
5307
5308 fi
5309
5310 if testscip-shell system . . test. -n "$cf_new_cppflags" ; then
5311
5312 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5313 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
5314
5315 fi
5316
5317 if testscip-shell system . . test. -n "$cf_new_extra_cppflags" ; then
5318
5319 testscip-shell system . . test. -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5320 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
5321
5322 fi
5323
5324 done
5325
5326 cf_add_libs="$LIBS"
5327 # reverse order
5328 cf_add_0lib=
5329 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
5330 # filter duplicates
5331 for cf_add_1lib in $cf_add_0lib; do
5332 for cf_add_2lib in $cf_add_libs; do
5333 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
5334 cf_add_1lib=
5335 break
5336 fi
5337 done
5338 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
5339 done
5340 LIBS="$cf_add_libs"
5341
5342 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
5343 #line 5343 "configure"
5344 #include "confdefs.h"
5345 #include <${cf_cv_ncurses_header:-curses.h}>
5346 int
5347 main (void)
5348 {
5349 initscr(); mousemask(0,(void*)0); tigetstr((char *)0);
5350 ;
5351 return 0;
5352 }
5353 _ACEOF
5354 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
5355 if { (eval echo "$as_me:5355: \"$ac_link\"") >&5
5356 (eval $ac_link) 2>&5
5357 ac_status=$?
5358 echoscip-shell system . . echo. "$as_me:5358: \$? = $ac_status" >&5
5359 (exit "$ac_status"); } &&
5360 { ac_try='test -s "conftest$ac_exeext"'
5361 { (eval echo "$as_me:5361: \"$ac_try\"") >&5
5362 (eval $ac_try) 2>&5
5363 ac_status=$?
5364 echoscip-shell system . . echo. "$as_me:5364: \$? = $ac_status" >&5
5365 (exit "$ac_status"); }; }; then
5366 if testscip-shell system . . test. "$cross_compiling" = yes; then
5367 cf_have_ncuconfig=maybe
5368 else
5369 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
5370 #line 5370 "configure"
5371 #include "confdefs.h"
5372 #include <${cf_cv_ncurses_header:-curses.h}>
5373 int main(void)
5374 { const char *xx = curses_version(); return (xx == (const char*)0); }
5375 _ACEOF
5376 rmscip-shell system . . rm. -f "conftest$ac_exeext"
5377 if { (eval echo "$as_me:5377: \"$ac_link\"") >&5
5378 (eval $ac_link) 2>&5
5379 ac_status=$?
5380 echoscip-shell system . . echo. "$as_me:5380: \$? = $ac_status" >&5
5381 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
5382 { (eval echo "$as_me:5382: \"$ac_try\"") >&5
5383 (eval $ac_try) 2>&5
5384 ac_status=$?
5385 echoscip-shell system . . echo. "$as_me:5385: \$? = $ac_status" >&5
5386 (exit "$ac_status"); }; }; then
5387 cf_have_ncuconfig=yes
5388 else
5389 echoscip-shell system . . echo. "$as_me: program exited with status $ac_status" >&5
5390 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
5391 catscip-shell system . . cat. "conftest.$ac_ext" >&5
5392 cf_have_ncuconfig=no
5393 fi
5394 rmscip-shell system . . rm. -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
5395 fi
5396 else
5397 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
5398 catscip-shell system . . cat. "conftest.$ac_ext" >&5
5399 cf_have_ncuconfig=no
5400 fi
5401 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
5402 echoscip-shell system . . echo. "$as_me:5402: result: $cf_have_ncuconfig" >&5
5403 echoscip-shell system . . echo. "${ECHO_T}$cf_have_ncuconfig" >&6
5404 testscip-shell system . . test. "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
5405 if testscip-shell system . . test. "$cf_have_ncuconfig" != "yes"
5406 then
5407 CPPFLAGS="$cf_save_CPPFLAGS"
5408 LIBS="$cf_save_LIBS"
5409 NCURSES_CONFIG_PKG=none
5410 else
5411
5412 catscip-shell system . . cat. >>confdefs.h <<\EOF
5413 #define NCURSES 1
5414 EOF
5415
5416 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
5417
5418 echoscip-shell system . . echo. "$as_me:5418: checking for terminfo header" >&5
5419 echoscip-shell system . . echo. $ECHO_N "checking for terminfo header... $ECHO_C" >&6
5420 if testscip-shell system . . test. "${cf_cv_term_header+set}" = set; then
5421 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423
5424 case "${cf_cv_ncurses_header}" in
5425 (*/ncurses.h|*/ncursesw.h)
5426 cf_term_header=`echoscip-shell system . . echo. "$cf_cv_ncurses_header" | sedscip-shell system . . sed. -e 's%ncurses[^.]*\.h$%term.h%'`
5427 ;;
5428 (*)
5429 cf_term_header=term.h
5430 ;;
5431 esac
5432
5433 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
5434 do
5435 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
5436 #line 5436 "configure"
5437 #include "confdefs.h"
5438 #include <stdio.h>
5439 #include <${cf_cv_ncurses_header:-curses.h}>
5440 #include <$cf_test>
5441
5442 int
5443 main (void)
5444 {
5445 int x = auto_left_margin; (void)x
5446 ;
5447 return 0;
5448 }
5449 _ACEOF
5450 rmscip-shell system . . rm. -f "conftest.$ac_objext"
5451 if { (eval echo "$as_me:5451: \"$ac_compile\"") >&5
5452 (eval $ac_compile) 2>&5
5453 ac_status=$?
5454 echoscip-shell system . . echo. "$as_me:5454: \$? = $ac_status" >&5
5455 (exit "$ac_status"); } &&
5456 { ac_try='test -s "conftest.$ac_objext"'
5457 { (eval echo "$as_me:5457: \"$ac_try\"") >&5
5458 (eval $ac_try) 2>&5
5459 ac_status=$?
5460 echoscip-shell system . . echo. "$as_me:5460: \$? = $ac_status" >&5
5461 (exit "$ac_status"); }; }; then
5462
5463 cf_cv_term_header="$cf_test"
5464 else
5465 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
5466 catscip-shell system . . cat. "conftest.$ac_ext" >&5
5467
5468 cf_cv_term_header=unknown
5469
5470 fi
5471 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
5472 testscip-shell system . . test. "$cf_cv_term_header" != unknown && break
5473 done
5474
5475 fi
5476 echoscip-shell system . . echo. "$as_me:5476: result: $cf_cv_term_header" >&5
5477 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_term_header" >&6
5478
5479 # Set definitions to allow ifdef'ing to accommodate subdirectories
5480
5481 case "$cf_cv_term_header" in
5482 (*term.h)
5483
5484 catscip-shell system . . cat. >>confdefs.h <<\EOF
5485 #define HAVE_TERM_H 1
5486 EOF
5487
5488 ;;
5489 esac
5490
5491 case "$cf_cv_term_header" in
5492 (ncurses/term.h)
5493
5494 catscip-shell system . . cat. >>confdefs.h <<\EOF
5495 #define HAVE_NCURSES_TERM_H 1
5496 EOF
5497
5498 ;;
5499 (ncursesw/term.h)
5500
5501 catscip-shell system . . cat. >>confdefs.h <<\EOF
5502 #define HAVE_NCURSESW_TERM_H 1
5503 EOF
5504
5505 ;;
5506 esac
5507
5508 fi
5509
5510 else
5511 echoscip-shell system . . echo. "$as_me:5511: result: no" >&5
5512 echoscip-shell system . . echo. "${ECHO_T}no" >&6
5513 NCURSES_CONFIG_PKG=none
5514 fi
5515 else
5516 NCURSES_CONFIG_PKG=none
5517 fi
5518
5519 if testscip-shell system . . test. "x$cf_have_ncuconfig" = "xno"; then
5520 cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echoscip-shell system . . echo. "Looking for ${cf_ncurses_config}"
5521
5522 if testscip-shell system . . test. -n "$ac_tool_prefix"; then
5523 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
5524 do
5525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5527 echoscip-shell system . . echo. "$as_me:5527: checking for $ac_word" >&5
5528 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5529 if testscip-shell system . . test. "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
5530 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
5531 else
5532 if testscip-shell system . . test. -n "$NCURSES_CONFIG"; then
5533 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
5534 else
5535 ac_save_IFS=$IFS; IFS=$ac_path_separator
5536 ac_dummy="$PATH"
5537 for ac_dir in $ac_dummy; do
5538 IFS=$ac_save_IFS
5539 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
5540 $as_executable_p "$ac_dir/$ac_word" || continue
5541 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
5542 echoscip-shell system . . echo. "$as_me:5542: found $ac_dir/$ac_word" >&5
5543 break
5544 done
5545
5546 fi
5547 fi
5548 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
5549 if testscip-shell system . . test. -n "$NCURSES_CONFIG"; then
5550 echoscip-shell system . . echo. "$as_me:5550: result: $NCURSES_CONFIG" >&5
5551 echoscip-shell system . . echo. "${ECHO_T}$NCURSES_CONFIG" >&6
5552 else
5553 echoscip-shell system . . echo. "$as_me:5553: result: no" >&5
5554 echoscip-shell system . . echo. "${ECHO_T}no" >&6
5555 fi
5556
5557 testscip-shell system . . test. -n "$NCURSES_CONFIG" && break
5558 done
5559 fi
5560 if testscip-shell system . . test. -z "$NCURSES_CONFIG"; then
5561 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
5562 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
5563 do
5564 # Extract the first word of "$ac_prog", so it can be a program name with args.
5565 set dummy $ac_prog; ac_word=$2
5566 echoscip-shell system . . echo. "$as_me:5566: checking for $ac_word" >&5
5567 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5568 if testscip-shell system . . test. "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
5569 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571 if testscip-shell system . . test. -n "$ac_ct_NCURSES_CONFIG"; then
5572 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
5573 else
5574 ac_save_IFS=$IFS; IFS=$ac_path_separator
5575 ac_dummy="$PATH"
5576 for ac_dir in $ac_dummy; do
5577 IFS=$ac_save_IFS
5578 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
5579 $as_executable_p "$ac_dir/$ac_word" || continue
5580 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
5581 echoscip-shell system . . echo. "$as_me:5581: found $ac_dir/$ac_word" >&5
5582 break
5583 done
5584
5585 fi
5586 fi
5587 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
5588 if testscip-shell system . . test. -n "$ac_ct_NCURSES_CONFIG"; then
5589 echoscip-shell system . . echo. "$as_me:5589: result: $ac_ct_NCURSES_CONFIG" >&5
5590 echoscip-shell system . . echo. "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
5591 else
5592 echoscip-shell system . . echo. "$as_me:5592: result: no" >&5
5593 echoscip-shell system . . echo. "${ECHO_T}no" >&6
5594 fi
5595
5596 testscip-shell system . . test. -n "$ac_ct_NCURSES_CONFIG" && break
5597 done
5598 testscip-shell system . . test. -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
5599
5600 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
5601 fi
5602
5603 if testscip-shell system . . test. "$NCURSES_CONFIG" != none ; then
5604
5605 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
5606 do
5607 case "x$cf_add_cflags" in
5608 (x-[DU]*)
5609
5610 cf_tmp_cflag=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^.//' -e 's/=.*//'`
5611 while truescip-shell system . . true.
5612 do
5613 cf_old_cflag=`echoscip-shell system . . echo. "x$CFLAGS" | sedscip-shell system . . sed. -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
5614 testscip-shell system . . test. "$CFLAGS" != "$cf_old_cflag" || break
5615
5616 CFLAGS="$cf_old_cflag"
5617 done
5618
5619 cf_tmp_cflag=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^.//' -e 's/=.*//'`
5620 while truescip-shell system . . true.
5621 do
5622 cf_old_cflag=`echoscip-shell system . . echo. "x$CPPFLAGS" | sedscip-shell system . . sed. -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
5623 testscip-shell system . . test. "$CPPFLAGS" != "$cf_old_cflag" || break
5624
5625 CPPFLAGS="$cf_old_cflag"
5626 done
5627
5628 ;;
5629 esac
5630
5631 cf_fix_cppflags=no
5632 cf_new_cflags=
5633 cf_new_cppflags=
5634 cf_new_extra_cppflags=
5635
5636 for cf_add_cflags in $cf_add_cflags
5637 do
5638 case "$cf_fix_cppflags" in
5639 (no)
5640 case "$cf_add_cflags" in
5641 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5642 case "$cf_add_cflags" in
5643 (-D*)
5644 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^-D[^=]*='\''\"[^"]*//'`
5645
5646 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5647 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
5648 && cf_fix_cppflags=yes
5649
5650 if testscip-shell system . . test. "$cf_fix_cppflags" = yes ; then
5651
5652 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5653 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5654
5655 continue
5656 elif testscip-shell system . . test. "${cf_tst_cflags}" = "\"'" ; then
5657
5658 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5659 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5660
5661 continue
5662 fi
5663 ;;
5664 esac
5665 case "$CPPFLAGS" in
5666 (*$cf_add_cflags)
5667 ;;
5668 (*)
5669 case "$cf_add_cflags" in
5670 (-D*)
5671 cf_tst_cppflags=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^...//' -e 's/=.*//'`
5672
5673 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
5674 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5675 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5676
5677 ;;
5678 esac
5679
5680 testscip-shell system . . test. -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5681 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
5682
5683 ;;
5684 esac
5685 ;;
5686 (*)
5687
5688 testscip-shell system . . test. -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5689 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
5690
5691 ;;
5692 esac
5693 ;;
5694 (yes)
5695
5696 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5697 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5698
5699 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^[^"]*"'\''//'`
5700
5701 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5702 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
5703 && cf_fix_cppflags=no
5704 ;;
5705 esac
5706 done
5707
5708 if testscip-shell system . . test. -n "$cf_new_cflags" ; then
5709
5710 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
5711 CFLAGS="${CFLAGS}$cf_new_cflags"
5712
5713 fi
5714
5715 if testscip-shell system . . test. -n "$cf_new_cppflags" ; then
5716
5717 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5718 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
5719
5720 fi
5721
5722 if testscip-shell system . . test. -n "$cf_new_extra_cppflags" ; then
5723
5724 testscip-shell system . . test. -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5725 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
5726
5727 fi
5728
5729 done
5730
5731 cf_add_libs="$LIBS"
5732 # reverse order
5733 cf_add_0lib=
5734 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
5735 # filter duplicates
5736 for cf_add_1lib in $cf_add_0lib; do
5737 for cf_add_2lib in $cf_add_libs; do
5738 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
5739 cf_add_1lib=
5740 break
5741 fi
5742 done
5743 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
5744 done
5745 LIBS="$cf_add_libs"
5746
5747 # even with config script, some packages use no-override for curses.h
5748
5749 echoscip-shell system . . echo. "$as_me:5749: checking if we have identified curses headers" >&5
5750 echoscip-shell system . . echo. $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
5751 if testscip-shell system . . test. "${cf_cv_ncurses_header+set}" = set; then
5752 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754
5755 cf_cv_ncurses_header=none
5756 for cf_header in \
5757 ncurses.h ncurses/ncurses.h \
5758 curses.h ncurses/curses.h
5759 do
5760 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
5761 #line 5761 "configure"
5762 #include "confdefs.h"
5763 #include <${cf_header}>
5764 int
5765 main (void)
5766 {
5767 initscr(); endwin()
5768 ;
5769 return 0;
5770 }
5771 _ACEOF
5772 rmscip-shell system . . rm. -f "conftest.$ac_objext"
5773 if { (eval echo "$as_me:5773: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>&5
5775 ac_status=$?
5776 echoscip-shell system . . echo. "$as_me:5776: \$? = $ac_status" >&5
5777 (exit "$ac_status"); } &&
5778 { ac_try='test -s "conftest.$ac_objext"'
5779 { (eval echo "$as_me:5779: \"$ac_try\"") >&5
5780 (eval $ac_try) 2>&5
5781 ac_status=$?
5782 echoscip-shell system . . echo. "$as_me:5782: \$? = $ac_status" >&5
5783 (exit "$ac_status"); }; }; then
5784 cf_cv_ncurses_header=$cf_header; break
5785 else
5786 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
5787 catscip-shell system . . cat. "conftest.$ac_ext" >&5
5788 fi
5789 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
5790 done
5791
5792 fi
5793 echoscip-shell system . . echo. "$as_me:5793: result: $cf_cv_ncurses_header" >&5
5794 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_ncurses_header" >&6
5795
5796 if testscip-shell system . . test. "$cf_cv_ncurses_header" = none ; then
5797 { { echoscip-shell system . . echo. "$as_me:5797: error: No curses header-files found" >&5
5798 echoscip-shell system . . echo. "$as_me: error: No curses header-files found" >&2;}
5799 { (exit 1); exit 1; }; }
5800 fi
5801
5802 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
5803
5804 for ac_header in $cf_cv_ncurses_header
5805 do
5806 as_ac_Header=`echoscip-shell system . . echo. "ac_cv_header_$ac_header" | $as_tr_sh`
5807 echoscip-shell system . . echo. "$as_me:5807: checking for $ac_header" >&5
5808 echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5810 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
5813 #line 5813 "configure"
5814 #include "confdefs.h"
5815 #include <$ac_header>
5816 _ACEOF
5817 if { (eval echo "$as_me:5817: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5818 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5819 ac_status=$?
5820 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5821 rmscip-shell system . . rm. -f conftest.er1
5822 catscip-shell system . . cat. conftest.err >&5
5823 echoscip-shell system . . echo. "$as_me:5823: \$? = $ac_status" >&5
5824 (exit "$ac_status"); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then
5825 if testscip-shell system . . test. -s conftest.err; then
5826 ac_cpp_err=$ac_c_preproc_warn_flag
5827 else
5828 ac_cpp_err=
5829 fi
5830 else
5831 ac_cpp_err=yes
5832 fi
5833 if testscip-shell system . . test. -z "$ac_cpp_err"; then
5834 eval "$as_ac_Header=yes"
5835 else
5836 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
5837 catscip-shell system . . cat. "conftest.$ac_ext" >&5
5838 eval "$as_ac_Header=no"
5839 fi
5840 rmscip-shell system . . rm. -f conftest.err "conftest.$ac_ext"
5841 fi
5842 echoscip-shell system . . echo. "$as_me:5842: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
5843 echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
5844 if testscip-shell system . . test. "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
5845 catscip-shell system . . cat. >>confdefs.h <<EOF
5846 #define `echoscip-shell system . . echo. "HAVE_$ac_header" | $as_tr_cpp` 1
5847 EOF
5848
5849 fi
5850 done
5851
5852 catscip-shell system . . cat. >>confdefs.h <<\EOF
5853 #define NCURSES 1
5854 EOF
5855
5856 cf_nculib_ROOT=`echoscip-shell system . . echo. "HAVE_LIB$cf_ncuconfig_root" | sedscip-shell system . . sed. y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5857
5858 catscip-shell system . . cat. >>confdefs.h <<EOF
5859 #define $cf_nculib_ROOT 1
5860 EOF
5861
5862 cf_cv_ncurses_version="`$NCURSES_CONFIG --version`"
5863
5864 else
5865
5866 cf_ncuhdr_root=ncurses
5867
5868 testscip-shell system . . test. -n "$cf_cv_curses_dir" && \
5869 test "$cf_cv_curses_dir" != "no" && { \
5870
5871 if testscip-shell system . . test. -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
5872 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
5873 do
5874 while testscip-shell system . . test. "$cf_add_incdir" != /usr/includescip-shell filesystem . . `/usr/include`.
5875 do
5876 if testscip-shell system . . test. -d "$cf_add_incdir"
5877 then
5878 cf_have_incdir=no
5879 if testscip-shell system . . test. -n "$CFLAGS$CPPFLAGS" ; then
5880 # a loop is needed to ensure we can add subdirs of existing dirs
5881 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5882 if testscip-shell system . . test. ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5883 cf_have_incdir=yes; break
5884 fi
5885 done
5886 fi
5887
5888 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
5889 if testscip-shell system . . test. "$cf_add_incdir" = /usr/local/includescip-shell filesystem . . `/usr/local/include`. ; then
5890 if testscip-shell system . . test. "$GCC" = yes
5891 then
5892 cf_save_CPPFLAGS=$CPPFLAGS
5893
5894 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5895 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
5896
5897 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
5898 #line 5898 "configure"
5899 #include "confdefs.h"
5900 #include <stdio.h>
5901 int
5902 main (void)
5903 {
5904 printf("Hello")
5905 ;
5906 return 0;
5907 }
5908 _ACEOF
5909 rmscip-shell system . . rm. -f "conftest.$ac_objext"
5910 if { (eval echo "$as_me:5910: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>&5
5912 ac_status=$?
5913 echoscip-shell system . . echo. "$as_me:5913: \$? = $ac_status" >&5
5914 (exit "$ac_status"); } &&
5915 { ac_try='test -s "conftest.$ac_objext"'
5916 { (eval echo "$as_me:5916: \"$ac_try\"") >&5
5917 (eval $ac_try) 2>&5
5918 ac_status=$?
5919 echoscip-shell system . . echo. "$as_me:5919: \$? = $ac_status" >&5
5920 (exit "$ac_status"); }; }; then
5921 :
5922 else
5923 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
5924 catscip-shell system . . cat. "conftest.$ac_ext" >&5
5925 cf_have_incdir=yes
5926 fi
5927 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
5928 CPPFLAGS=$cf_save_CPPFLAGS
5929 fi
5930 fi
5931 fi
5932
5933 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
5934 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " adding $cf_add_incdir to include-path" 1>&6
5935
5936 echoscip-shell system . . echo. "${as_me:-configure}:5936: testing adding $cf_add_incdir to include-path ..." 1>&5
5937
5938 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5939
5940 cf_top_incdir=`echoscip-shell system . . echo. "$cf_add_incdir" | sedscip-shell system . . sed. -e 's%/include/.*$%/include%'`
5941 testscip-shell system . . test. "$cf_top_incdir" = "$cf_add_incdir" && break
5942 cf_add_incdir="$cf_top_incdir"
5943 else
5944 break
5945 fi
5946 else
5947 break
5948 fi
5949 done
5950 done
5951 fi
5952
5953 }
5954
5955 echoscip-shell system . . echo. "$as_me:5955: checking for $cf_ncuhdr_root header in include-path" >&5
5956 echoscip-shell system . . echo. $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
5957 if testscip-shell system . . test. "${cf_cv_ncurses_h+set}" = set; then
5958 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960
5961 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
5962 { testscip-shell system . . test. "$cf_ncuhdr_root" = ncurses || testscip-shell system . . test. "$cf_ncuhdr_root" = ncursesw; } && cf_header_list="$cf_header_list curses.h ncurses.h"
5963 for cf_header in $cf_header_list
5964 do
5965
5966 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
5967 #line 5967 "configure"
5968 #include "confdefs.h"
5969
5970 #include <$cf_header>
5971 int
5972 main (void)
5973 {
5974
5975 #ifdef NCURSES_VERSION
5976
5977 printf("%s\\n", NCURSES_VERSION);
5978 #else
5979 #ifdef __NCURSES_H
5980 printf("old\\n");
5981 #else
5982 #error __NCURSES_H is not defined
5983 #endif
5984 #endif
5985
5986 ;
5987 return 0;
5988 }
5989 _ACEOF
5990 rmscip-shell system . . rm. -f "conftest.$ac_objext"
5991 if { (eval echo "$as_me:5991: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>&5
5993 ac_status=$?
5994 echoscip-shell system . . echo. "$as_me:5994: \$? = $ac_status" >&5
5995 (exit "$ac_status"); } &&
5996 { ac_try='test -s "conftest.$ac_objext"'
5997 { (eval echo "$as_me:5997: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echoscip-shell system . . echo. "$as_me:6000: \$? = $ac_status" >&5
6001 (exit "$ac_status"); }; }; then
6002 cf_cv_ncurses_h=$cf_header
6003
6004 else
6005 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
6006 catscip-shell system . . cat. "conftest.$ac_ext" >&5
6007 cf_cv_ncurses_h=no
6008 fi
6009 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
6010
6011 testscip-shell system . . test. "$cf_cv_ncurses_h" != no && break
6012 done
6013
6014 fi
6015 echoscip-shell system . . echo. "$as_me:6015: result: $cf_cv_ncurses_h" >&5
6016 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_ncurses_h" >&6
6017
6018 if testscip-shell system . . test. "$cf_cv_ncurses_h" != no ; then
6019 cf_cv_ncurses_header=$cf_cv_ncurses_h
6020 else
6021
6022 echoscip-shell system . . echo. "$as_me:6022: checking for $cf_ncuhdr_root include-path" >&5
6023 echoscip-shell system . . echo. $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
6024 if testscip-shell system . . test. "${cf_cv_ncurses_h2+set}" = set; then
6025 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027
6028 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo.
6029
6030 cf_search=
6031
6032 # collect the current set of include-directories from compiler flags
6033 cf_header_path_list=""
6034 if testscip-shell system . . test. -n "${CFLAGS}${CPPFLAGS}" ; then
6035 for cf_header_path in $CPPFLAGS $CFLAGS
6036 do
6037 case "$cf_header_path" in
6038 (-I*)
6039 cf_header_path=`echoscip-shell system . . echo. ".$cf_header_path" |sedscip-shell system . . sed. -e 's/^...//' -e 's,/include$,,'`
6040
6041 testscip-shell system . . test. "x$cf_header_path" != "xNONE" && \
6042 test -d "$cf_header_path" && \
6043 {
6044 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for include-directories under $cf_header_path"
6045 testscip-shell system . . test. -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
6046 testscip-shell system . . test. -d "$cf_header_path/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
6047 testscip-shell system . . test. -d "$cf_header_path/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
6048 testscip-shell system . . test. -d "$cf_header_path/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
6049 testscip-shell system . . test. -d "$cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6050 }
6051
6052 cf_header_path_list="$cf_header_path_list $cf_search"
6053 ;;
6054 esac
6055 done
6056 fi
6057
6058 # add the variations for the package we are looking for
6059
6060 cf_search=
6061
6062 testscip-shell system . . test. "x$prefix" != "xNONE" && \
6063 test -d "$prefix" && \
6064 {
6065 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for include-directories under $prefix"
6066 testscip-shell system . . test. -d "$prefix/include" && cf_search="$cf_search $prefix/include"
6067 testscip-shell system . . test. -d "$prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
6068 testscip-shell system . . test. -d "$prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
6069 testscip-shell system . . test. -d "$prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
6070 testscip-shell system . . test. -d "$prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6071 }
6072
6073 for cf_subdir_prefix in \
6074 /usr \
6075 /usr/local \
6076 /usr/pkg \
6077 /opt \
6078 /opt/local \
6079 $HOME
6080 do
6081
6082 testscip-shell system . . test. "x$cf_subdir_prefix" != "x$prefix" && \
6083 test -d "$cf_subdir_prefix" && \
6084 { testscip-shell system . . test. -z "$prefix" || testscip-shell system . . test. "x$prefix" = xNONE || testscip-shell system . . test. "x$cf_subdir_prefix" != "x$prefix"; } && {
6085 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for include-directories under $cf_subdir_prefix"
6086 testscip-shell system . . test. -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
6087 testscip-shell system . . test. -d "$cf_subdir_prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
6088 testscip-shell system . . test. -d "$cf_subdir_prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
6089 testscip-shell system . . test. -d "$cf_subdir_prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
6090 testscip-shell system . . test. -d "$cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6091 }
6092
6093 done
6094
6095 testscip-shell system . . test. "$includedir" != NONE && \
6096 test "$includedir" != "/usr/includescip-shell filesystem . . `/usr/include`." && \
6097 test -d "$includedir" && {
6098 testscip-shell system . . test. -d "$includedir" && cf_search="$cf_search $includedir"
6099 testscip-shell system . . test. -d "$includedir/$cf_ncuhdr_root" && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
6100 }
6101
6102 testscip-shell system . . test. "$oldincludedir" != NONE && \
6103 test "$oldincludedir" != "/usr/includescip-shell filesystem . . `/usr/include`." && \
6104 test -d "$oldincludedir" && {
6105 testscip-shell system . . test. -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
6106 testscip-shell system . . test. -d "$oldincludedir/$cf_ncuhdr_root" && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
6107 }
6108
6109 cf_search="$cf_search $cf_header_path_list"
6110
6111 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. "search path $cf_search"
6112 cf_save2_CPPFLAGS="$CPPFLAGS"
6113 for cf_incdir in $cf_search
6114 do
6115
6116 if testscip-shell system . . test. -n "$cf_incdir" ; then
6117 for cf_add_incdir in $cf_incdir
6118 do
6119 while testscip-shell system . . test. "$cf_add_incdir" != /usr/includescip-shell filesystem . . `/usr/include`.
6120 do
6121 if testscip-shell system . . test. -d "$cf_add_incdir"
6122 then
6123 cf_have_incdir=no
6124 if testscip-shell system . . test. -n "$CFLAGS$CPPFLAGS" ; then
6125 # a loop is needed to ensure we can add subdirs of existing dirs
6126 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6127 if testscip-shell system . . test. ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6128 cf_have_incdir=yes; break
6129 fi
6130 done
6131 fi
6132
6133 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
6134 if testscip-shell system . . test. "$cf_add_incdir" = /usr/local/includescip-shell filesystem . . `/usr/local/include`. ; then
6135 if testscip-shell system . . test. "$GCC" = yes
6136 then
6137 cf_save_CPPFLAGS=$CPPFLAGS
6138
6139 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6140 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
6141
6142 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
6143 #line 6143 "configure"
6144 #include "confdefs.h"
6145 #include <stdio.h>
6146 int
6147 main (void)
6148 {
6149 printf("Hello")
6150 ;
6151 return 0;
6152 }
6153 _ACEOF
6154 rmscip-shell system . . rm. -f "conftest.$ac_objext"
6155 if { (eval echo "$as_me:6155: \"$ac_compile\"") >&5
6156 (eval $ac_compile) 2>&5
6157 ac_status=$?
6158 echoscip-shell system . . echo. "$as_me:6158: \$? = $ac_status" >&5
6159 (exit "$ac_status"); } &&
6160 { ac_try='test -s "conftest.$ac_objext"'
6161 { (eval echo "$as_me:6161: \"$ac_try\"") >&5
6162 (eval $ac_try) 2>&5
6163 ac_status=$?
6164 echoscip-shell system . . echo. "$as_me:6164: \$? = $ac_status" >&5
6165 (exit "$ac_status"); }; }; then
6166 :
6167 else
6168 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
6169 catscip-shell system . . cat. "conftest.$ac_ext" >&5
6170 cf_have_incdir=yes
6171 fi
6172 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
6173 CPPFLAGS=$cf_save_CPPFLAGS
6174 fi
6175 fi
6176 fi
6177
6178 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
6179 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " adding $cf_add_incdir to include-path" 1>&6
6180
6181 echoscip-shell system . . echo. "${as_me:-configure}:6181: testing adding $cf_add_incdir to include-path ..." 1>&5
6182
6183 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6184
6185 cf_top_incdir=`echoscip-shell system . . echo. "$cf_add_incdir" | sedscip-shell system . . sed. -e 's%/include/.*$%/include%'`
6186 testscip-shell system . . test. "$cf_top_incdir" = "$cf_add_incdir" && break
6187 cf_add_incdir="$cf_top_incdir"
6188 else
6189 break
6190 fi
6191 else
6192 break
6193 fi
6194 done
6195 done
6196 fi
6197
6198 for cf_header in \
6199 ncurses.h \
6200 curses.h
6201 do
6202
6203 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
6204 #line 6204 "configure"
6205 #include "confdefs.h"
6206
6207 #include <$cf_header>
6208 int
6209 main (void)
6210 {
6211
6212 #ifdef NCURSES_VERSION
6213
6214 printf("%s\\n", NCURSES_VERSION);
6215 #else
6216 #ifdef __NCURSES_H
6217 printf("old\\n");
6218 #else
6219 #error __NCURSES_H is not defined
6220 #endif
6221 #endif
6222
6223 ;
6224 return 0;
6225 }
6226 _ACEOF
6227 rmscip-shell system . . rm. -f "conftest.$ac_objext"
6228 if { (eval echo "$as_me:6228: \"$ac_compile\"") >&5
6229 (eval $ac_compile) 2>&5
6230 ac_status=$?
6231 echoscip-shell system . . echo. "$as_me:6231: \$? = $ac_status" >&5
6232 (exit "$ac_status"); } &&
6233 { ac_try='test -s "conftest.$ac_objext"'
6234 { (eval echo "$as_me:6234: \"$ac_try\"") >&5
6235 (eval $ac_try) 2>&5
6236 ac_status=$?
6237 echoscip-shell system . . echo. "$as_me:6237: \$? = $ac_status" >&5
6238 (exit "$ac_status"); }; }; then
6239 cf_cv_ncurses_h2=$cf_header
6240
6241 else
6242 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
6243 catscip-shell system . . cat. "conftest.$ac_ext" >&5
6244 cf_cv_ncurses_h2=no
6245 fi
6246 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
6247
6248 if testscip-shell system . . test. "$cf_cv_ncurses_h2" != no ; then
6249 cf_cv_ncurses_h2=$cf_incdir/$cf_header
6250 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. $ECHO_N " ... found $ECHO_C" 1>&6
6251 break
6252 fi
6253 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... tested $cf_incdir/$cf_header" 1>&6
6254 done
6255 CPPFLAGS="$cf_save2_CPPFLAGS"
6256 testscip-shell system . . test. "$cf_cv_ncurses_h2" != no && break
6257 done
6258 testscip-shell system . . test. "$cf_cv_ncurses_h2" = no && { { echoscip-shell system . . echo. "$as_me:6258: error: not found" >&5
6259 echoscip-shell system . . echo. "$as_me: error: not found" >&2;}
6260 { (exit 1); exit 1; }; }
6261
6262 fi
6263 echoscip-shell system . . echo. "$as_me:6263: result: $cf_cv_ncurses_h2" >&5
6264 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_ncurses_h2" >&6
6265
6266 cf_1st_incdir=`echoscip-shell system . . echo. "$cf_cv_ncurses_h2" | sedscip-shell system . . sed. -e 's%/[^/]*$%%'`
6267 cf_cv_ncurses_header="`basenamescip-shell system . . basename. "$cf_cv_ncurses_h2"`"
6268 if testscip-shell system . . test. "`basenamescip-shell system . . basename. "$cf_1st_incdir"`" = "$cf_ncuhdr_root" ; then
6269 cf_cv_ncurses_header="$cf_ncuhdr_root/$cf_cv_ncurses_header"
6270 fi
6271
6272 if testscip-shell system . . test. -n "$cf_1st_incdir" ; then
6273 for cf_add_incdir in $cf_1st_incdir
6274 do
6275 while testscip-shell system . . test. "$cf_add_incdir" != /usr/includescip-shell filesystem . . `/usr/include`.
6276 do
6277 if testscip-shell system . . test. -d "$cf_add_incdir"
6278 then
6279 cf_have_incdir=no
6280 if testscip-shell system . . test. -n "$CFLAGS$CPPFLAGS" ; then
6281 # a loop is needed to ensure we can add subdirs of existing dirs
6282 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6283 if testscip-shell system . . test. ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6284 cf_have_incdir=yes; break
6285 fi
6286 done
6287 fi
6288
6289 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
6290 if testscip-shell system . . test. "$cf_add_incdir" = /usr/local/includescip-shell filesystem . . `/usr/local/include`. ; then
6291 if testscip-shell system . . test. "$GCC" = yes
6292 then
6293 cf_save_CPPFLAGS=$CPPFLAGS
6294
6295 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6296 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
6297
6298 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
6299 #line 6299 "configure"
6300 #include "confdefs.h"
6301 #include <stdio.h>
6302 int
6303 main (void)
6304 {
6305 printf("Hello")
6306 ;
6307 return 0;
6308 }
6309 _ACEOF
6310 rmscip-shell system . . rm. -f "conftest.$ac_objext"
6311 if { (eval echo "$as_me:6311: \"$ac_compile\"") >&5
6312 (eval $ac_compile) 2>&5
6313 ac_status=$?
6314 echoscip-shell system . . echo. "$as_me:6314: \$? = $ac_status" >&5
6315 (exit "$ac_status"); } &&
6316 { ac_try='test -s "conftest.$ac_objext"'
6317 { (eval echo "$as_me:6317: \"$ac_try\"") >&5
6318 (eval $ac_try) 2>&5
6319 ac_status=$?
6320 echoscip-shell system . . echo. "$as_me:6320: \$? = $ac_status" >&5
6321 (exit "$ac_status"); }; }; then
6322 :
6323 else
6324 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
6325 catscip-shell system . . cat. "conftest.$ac_ext" >&5
6326 cf_have_incdir=yes
6327 fi
6328 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
6329 CPPFLAGS=$cf_save_CPPFLAGS
6330 fi
6331 fi
6332 fi
6333
6334 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
6335 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " adding $cf_add_incdir to include-path" 1>&6
6336
6337 echoscip-shell system . . echo. "${as_me:-configure}:6337: testing adding $cf_add_incdir to include-path ..." 1>&5
6338
6339 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6340
6341 cf_top_incdir=`echoscip-shell system . . echo. "$cf_add_incdir" | sedscip-shell system . . sed. -e 's%/include/.*$%/include%'`
6342 testscip-shell system . . test. "$cf_top_incdir" = "$cf_add_incdir" && break
6343 cf_add_incdir="$cf_top_incdir"
6344 else
6345 break
6346 fi
6347 else
6348 break
6349 fi
6350 done
6351 done
6352 fi
6353
6354 fi
6355
6356 # Set definitions to allow ifdef'ing for ncurses.h
6357
6358 case "$cf_cv_ncurses_header" in
6359 (*ncurses.h)
6360
6361 catscip-shell system . . cat. >>confdefs.h <<\EOF
6362 #define HAVE_NCURSES_H 1
6363 EOF
6364
6365 ;;
6366 esac
6367
6368 case "$cf_cv_ncurses_header" in
6369 (ncurses/curses.h|ncurses/ncurses.h)
6370
6371 catscip-shell system . . cat. >>confdefs.h <<\EOF
6372 #define HAVE_NCURSES_NCURSES_H 1
6373 EOF
6374
6375 ;;
6376 (ncursesw/curses.h|ncursesw/ncurses.h)
6377
6378 catscip-shell system . . cat. >>confdefs.h <<\EOF
6379 #define HAVE_NCURSESW_NCURSES_H 1
6380 EOF
6381
6382 ;;
6383 esac
6384
6385 echoscip-shell system . . echo. "$as_me:6385: checking for terminfo header" >&5
6386 echoscip-shell system . . echo. $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6387 if testscip-shell system . . test. "${cf_cv_term_header+set}" = set; then
6388 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390
6391 case "${cf_cv_ncurses_header}" in
6392 (*/ncurses.h|*/ncursesw.h)
6393 cf_term_header=`echoscip-shell system . . echo. "$cf_cv_ncurses_header" | sedscip-shell system . . sed. -e 's%ncurses[^.]*\.h$%term.h%'`
6394 ;;
6395 (*)
6396 cf_term_header=term.h
6397 ;;
6398 esac
6399
6400 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6401 do
6402 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
6403 #line 6403 "configure"
6404 #include "confdefs.h"
6405 #include <stdio.h>
6406 #include <${cf_cv_ncurses_header:-curses.h}>
6407 #include <$cf_test>
6408
6409 int
6410 main (void)
6411 {
6412 int x = auto_left_margin; (void)x
6413 ;
6414 return 0;
6415 }
6416 _ACEOF
6417 rmscip-shell system . . rm. -f "conftest.$ac_objext"
6418 if { (eval echo "$as_me:6418: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>&5
6420 ac_status=$?
6421 echoscip-shell system . . echo. "$as_me:6421: \$? = $ac_status" >&5
6422 (exit "$ac_status"); } &&
6423 { ac_try='test -s "conftest.$ac_objext"'
6424 { (eval echo "$as_me:6424: \"$ac_try\"") >&5
6425 (eval $ac_try) 2>&5
6426 ac_status=$?
6427 echoscip-shell system . . echo. "$as_me:6427: \$? = $ac_status" >&5
6428 (exit "$ac_status"); }; }; then
6429
6430 cf_cv_term_header="$cf_test"
6431 else
6432 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
6433 catscip-shell system . . cat. "conftest.$ac_ext" >&5
6434
6435 cf_cv_term_header=unknown
6436
6437 fi
6438 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
6439 testscip-shell system . . test. "$cf_cv_term_header" != unknown && break
6440 done
6441
6442 fi
6443 echoscip-shell system . . echo. "$as_me:6443: result: $cf_cv_term_header" >&5
6444 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_term_header" >&6
6445
6446 # Set definitions to allow ifdef'ing to accommodate subdirectories
6447
6448 case "$cf_cv_term_header" in
6449 (*term.h)
6450
6451 catscip-shell system . . cat. >>confdefs.h <<\EOF
6452 #define HAVE_TERM_H 1
6453 EOF
6454
6455 ;;
6456 esac
6457
6458 case "$cf_cv_term_header" in
6459 (ncurses/term.h)
6460
6461 catscip-shell system . . cat. >>confdefs.h <<\EOF
6462 #define HAVE_NCURSES_TERM_H 1
6463 EOF
6464
6465 ;;
6466 (ncursesw/term.h)
6467
6468 catscip-shell system . . cat. >>confdefs.h <<\EOF
6469 #define HAVE_NCURSESW_TERM_H 1
6470 EOF
6471
6472 ;;
6473 esac
6474
6475 # some applications need this, but should check for NCURSES_VERSION
6476
6477 catscip-shell system . . cat. >>confdefs.h <<\EOF
6478 #define NCURSES 1
6479 EOF
6480
6481 echoscip-shell system . . echo. "$as_me:6481: checking for ncurses version" >&5
6482 echoscip-shell system . . echo. $ECHO_N "checking for ncurses version... $ECHO_C" >&6
6483 if testscip-shell system . . test. "${cf_cv_ncurses_version+set}" = set; then
6484 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486
6487 cf_cv_ncurses_version=no
6488 cf_tempfile=out$$
6489 rmscip-shell system . . rm. -f "$cf_tempfile"
6490 if testscip-shell system . . test. "$cross_compiling" = yes; then
6491
6492 # This will not work if the preprocessor splits the line after the
6493 # Autoconf token. The 'unproto' program does that.
6494 catscip-shell system . . cat. > "conftest.$ac_ext" <<EOF
6495 #include <${cf_cv_ncurses_header:-curses.h}>
6496 #undef Autoconf
6497 #ifdef NCURSES_VERSION
6498 Autoconf NCURSES_VERSION
6499 #else
6500 #ifdef __NCURSES_H
6501 Autoconf "old"
6502 #endif
6503 ;
6504 #endif
6505 EOF
6506 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
6507 { (eval echo "$as_me:6507: \"$cf_try\"") >&5
6508 (eval $cf_try) 2>&5
6509 ac_status=$?
6510 echoscip-shell system . . echo. "$as_me:6510: \$? = $ac_status" >&5
6511 (exit "$ac_status"); }
6512 if testscip-shell system . . test. -f conftest.out ; then
6513 cf_out=`sedscip-shell system . . sed. -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
6514 testscip-shell system . . test. -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
6515 rmscip-shell system . . rm. -f conftest.out
6516 fi
6517
6518 else
6519 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
6520 #line 6520 "configure"
6521 #include "confdefs.h"
6522
6523 $ac_includes_default
6524
6525 #include <${cf_cv_ncurses_header:-curses.h}>
6526
6527 int main(void)
6528 {
6529 FILE *fp = fopen("$cf_tempfile", "w");
6530 #ifdef NCURSES_VERSION
6531 # ifdef NCURSES_VERSION_PATCH
6532 fprintf(fp, "%s.%d\\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
6533 # else
6534 fprintf(fp, "%s\\n", NCURSES_VERSION);
6535 # endif
6536 #else
6537 # ifdef __NCURSES_H
6538 fprintf(fp, "old\\n");
6539 # else
6540 #error expected ncurses header to define __NCURSES_H
6541 # endif
6542 #endif
6543 ${cf_cv_main_return:-return}(0);
6544 }
6545 _ACEOF
6546 rmscip-shell system . . rm. -f "conftest$ac_exeext"
6547 if { (eval echo "$as_me:6547: \"$ac_link\"") >&5
6548 (eval $ac_link) 2>&5
6549 ac_status=$?
6550 echoscip-shell system . . echo. "$as_me:6550: \$? = $ac_status" >&5
6551 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
6552 { (eval echo "$as_me:6552: \"$ac_try\"") >&5
6553 (eval $ac_try) 2>&5
6554 ac_status=$?
6555 echoscip-shell system . . echo. "$as_me:6555: \$? = $ac_status" >&5
6556 (exit "$ac_status"); }; }; then
6557
6558 cf_cv_ncurses_version=`catscip-shell system . . cat. $cf_tempfile`
6559 else
6560 echoscip-shell system . . echo. "$as_me: program exited with status $ac_status" >&5
6561 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
6562 catscip-shell system . . cat. "conftest.$ac_ext" >&5
6563 fi
6564 rmscip-shell system . . rm. -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
6565 fi
6566 rmscip-shell system . . rm. -f "$cf_tempfile"
6567
6568 fi
6569 echoscip-shell system . . echo. "$as_me:6569: result: $cf_cv_ncurses_version" >&5
6570 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_ncurses_version" >&6
6571 testscip-shell system . . test. "$cf_cv_ncurses_version" = no ||
6572 catscip-shell system . . cat. >>confdefs.h <<\EOF
6573 #define NCURSES 1
6574 EOF
6575
6576 cf_nculib_root=ncurses
6577 # This works, except for the special case where we find gpm, but
6578 # ncurses is in a nonstandard location via $LIBS, and we really want
6579 # to link gpm.
6580 cf_ncurses_LIBS=""
6581 cf_ncurses_SAVE="$LIBS"
6582 echoscip-shell system . . echo. "$as_me:6582: checking for Gpm_Open in -lgpm" >&5
6583 echoscip-shell system . . echo. $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6584 if testscip-shell system . . test. "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6585 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587 ac_check_lib_save_LIBS=$LIBS
6588 LIBS="-lgpm $LIBS"
6589 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
6590 #line 6590 "configure"
6591 #include "confdefs.h"
6592
6593 /* Override any gcc2 internal prototype to avoid an error. */
6594 #ifdef __cplusplus
6595 extern "C"
6596 #endif
6597 /* We use char because int might match the return type of a gcc2
6598 builtin and then its argument prototype would still apply. */
6599 char Gpm_Open (void);
6600 int
6601 main (void)
6602 {
6603 Gpm_Open ();
6604 ;
6605 return 0;
6606 }
6607 _ACEOF
6608 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
6609 if { (eval echo "$as_me:6609: \"$ac_link\"") >&5
6610 (eval $ac_link) 2>&5
6611 ac_status=$?
6612 echoscip-shell system . . echo. "$as_me:6612: \$? = $ac_status" >&5
6613 (exit "$ac_status"); } &&
6614 { ac_try='test -s "conftest$ac_exeext"'
6615 { (eval echo "$as_me:6615: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echoscip-shell system . . echo. "$as_me:6618: \$? = $ac_status" >&5
6619 (exit "$ac_status"); }; }; then
6620 ac_cv_lib_gpm_Gpm_Open=yes
6621 else
6622 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
6623 catscip-shell system . . cat. "conftest.$ac_ext" >&5
6624 ac_cv_lib_gpm_Gpm_Open=no
6625 fi
6626 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6627 LIBS=$ac_check_lib_save_LIBS
6628 fi
6629 echoscip-shell system . . echo. "$as_me:6629: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6630 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6631 if testscip-shell system . . test. "$ac_cv_lib_gpm_Gpm_Open" = yes; then
6632 echoscip-shell system . . echo. "$as_me:6632: checking for initscr in -lgpm" >&5
6633 echoscip-shell system . . echo. $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
6634 if testscip-shell system . . test. "${ac_cv_lib_gpm_initscr+set}" = set; then
6635 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
6636 else
6637 ac_check_lib_save_LIBS=$LIBS
6638 LIBS="-lgpm $LIBS"
6639 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
6640 #line 6640 "configure"
6641 #include "confdefs.h"
6642
6643 /* Override any gcc2 internal prototype to avoid an error. */
6644 #ifdef __cplusplus
6645 extern "C"
6646 #endif
6647 /* We use char because int might match the return type of a gcc2
6648 builtin and then its argument prototype would still apply. */
6649 char initscr (void);
6650 int
6651 main (void)
6652 {
6653 initscr ();
6654 ;
6655 return 0;
6656 }
6657 _ACEOF
6658 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
6659 if { (eval echo "$as_me:6659: \"$ac_link\"") >&5
6660 (eval $ac_link) 2>&5
6661 ac_status=$?
6662 echoscip-shell system . . echo. "$as_me:6662: \$? = $ac_status" >&5
6663 (exit "$ac_status"); } &&
6664 { ac_try='test -s "conftest$ac_exeext"'
6665 { (eval echo "$as_me:6665: \"$ac_try\"") >&5
6666 (eval $ac_try) 2>&5
6667 ac_status=$?
6668 echoscip-shell system . . echo. "$as_me:6668: \$? = $ac_status" >&5
6669 (exit "$ac_status"); }; }; then
6670 ac_cv_lib_gpm_initscr=yes
6671 else
6672 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
6673 catscip-shell system . . cat. "conftest.$ac_ext" >&5
6674 ac_cv_lib_gpm_initscr=no
6675 fi
6676 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6677 LIBS=$ac_check_lib_save_LIBS
6678 fi
6679 echoscip-shell system . . echo. "$as_me:6679: result: $ac_cv_lib_gpm_initscr" >&5
6680 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
6681 if testscip-shell system . . test. "$ac_cv_lib_gpm_initscr" = yes; then
6682 LIBS="$cf_ncurses_SAVE"
6683 else
6684 cf_ncurses_LIBS="-lgpm"
6685 fi
6686
6687 fi
6688
6689 case "$host_os" in
6690 (freebsd*)
6691 # This is only necessary if you are linking against an obsolete
6692 # version of ncurses (but it should do no harm, since it is static).
6693 if testscip-shell system . . test. "$cf_nculib_root" = ncurses ; then
6694 echoscip-shell system . . echo. "$as_me:6694: checking for tgoto in -lmytinfo" >&5
6695 echoscip-shell system . . echo. $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6696 if testscip-shell system . . test. "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6697 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699 ac_check_lib_save_LIBS=$LIBS
6700 LIBS="-lmytinfo $LIBS"
6701 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
6702 #line 6702 "configure"
6703 #include "confdefs.h"
6704
6705 /* Override any gcc2 internal prototype to avoid an error. */
6706 #ifdef __cplusplus
6707 extern "C"
6708 #endif
6709 /* We use char because int might match the return type of a gcc2
6710 builtin and then its argument prototype would still apply. */
6711 char tgoto (void);
6712 int
6713 main (void)
6714 {
6715 tgoto ();
6716 ;
6717 return 0;
6718 }
6719 _ACEOF
6720 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
6721 if { (eval echo "$as_me:6721: \"$ac_link\"") >&5
6722 (eval $ac_link) 2>&5
6723 ac_status=$?
6724 echoscip-shell system . . echo. "$as_me:6724: \$? = $ac_status" >&5
6725 (exit "$ac_status"); } &&
6726 { ac_try='test -s "conftest$ac_exeext"'
6727 { (eval echo "$as_me:6727: \"$ac_try\"") >&5
6728 (eval $ac_try) 2>&5
6729 ac_status=$?
6730 echoscip-shell system . . echo. "$as_me:6730: \$? = $ac_status" >&5
6731 (exit "$ac_status"); }; }; then
6732 ac_cv_lib_mytinfo_tgoto=yes
6733 else
6734 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
6735 catscip-shell system . . cat. "conftest.$ac_ext" >&5
6736 ac_cv_lib_mytinfo_tgoto=no
6737 fi
6738 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6739 LIBS=$ac_check_lib_save_LIBS
6740 fi
6741 echoscip-shell system . . echo. "$as_me:6741: result: $ac_cv_lib_mytinfo_tgoto" >&5
6742 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
6743 if testscip-shell system . . test. "$ac_cv_lib_mytinfo_tgoto" = yes; then
6744 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
6745 fi
6746
6747 fi
6748 ;;
6749 esac
6750
6751 cf_add_libs="$LIBS"
6752 # reverse order
6753 cf_add_0lib=
6754 for cf_add_1lib in $cf_ncurses_LIBS; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6755 # filter duplicates
6756 for cf_add_1lib in $cf_add_0lib; do
6757 for cf_add_2lib in $cf_add_libs; do
6758 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
6759 cf_add_1lib=
6760 break
6761 fi
6762 done
6763 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6764 done
6765 LIBS="$cf_add_libs"
6766
6767 if testscip-shell system . . test. -n "$cf_cv_curses_dir" && testscip-shell system . . test. "$cf_cv_curses_dir" != "no"
6768 then
6769
6770 cf_add_libs="$LIBS"
6771 # reverse order
6772 cf_add_0lib=
6773 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6774 # filter duplicates
6775 for cf_add_1lib in $cf_add_0lib; do
6776 for cf_add_2lib in $cf_add_libs; do
6777 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
6778 cf_add_1lib=
6779 break
6780 fi
6781 done
6782 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6783 done
6784 LIBS="$cf_add_libs"
6785
6786 else
6787
6788 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=no'
6789 cf_libdir=""
6790 echoscip-shell system . . echo. "$as_me:6790: checking for initscr" >&5
6791 echoscip-shell system . . echo. $ECHO_N "checking for initscr... $ECHO_C" >&6
6792 if testscip-shell system . . test. "${ac_cv_func_initscr+set}" = set; then
6793 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
6796 #line 6796 "configure"
6797 #include "confdefs.h"
6798 #define initscr autoconf_temporary
6799 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
6800 #undef initscr
6801
6802 #ifdef __cplusplus
6803 extern "C"
6804 #endif
6805
6806 /* We use char because int might match the return type of a gcc2
6807 builtin and then its argument prototype would still apply. */
6808 char initscr (void);
6809
6810 int
6811 main (void)
6812 {
6813
6814 /* The GNU C library defines stubs for functions which it implements
6815 to always fail with ENOSYS. Some functions are actually named
6816 something starting with __ and the normal name is an alias. */
6817 #if defined (__stub_initscr) || defined (__stub___initscr)
6818 #error found stub for initscr
6819 #endif
6820
6821 return initscr ();
6822 ;
6823 return 0;
6824 }
6825 _ACEOF
6826 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
6827 if { (eval echo "$as_me:6827: \"$ac_link\"") >&5
6828 (eval $ac_link) 2>&5
6829 ac_status=$?
6830 echoscip-shell system . . echo. "$as_me:6830: \$? = $ac_status" >&5
6831 (exit "$ac_status"); } &&
6832 { ac_try='test -s "conftest$ac_exeext"'
6833 { (eval echo "$as_me:6833: \"$ac_try\"") >&5
6834 (eval $ac_try) 2>&5
6835 ac_status=$?
6836 echoscip-shell system . . echo. "$as_me:6836: \$? = $ac_status" >&5
6837 (exit "$ac_status"); }; }; then
6838 ac_cv_func_initscr=yes
6839 else
6840 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
6841 catscip-shell system . . cat. "conftest.$ac_ext" >&5
6842 ac_cv_func_initscr=no
6843 fi
6844 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6845 fi
6846 echoscip-shell system . . echo. "$as_me:6846: result: $ac_cv_func_initscr" >&5
6847 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_func_initscr" >&6
6848 if testscip-shell system . . test. "$ac_cv_func_initscr" = yes; then
6849 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
6850 else
6851
6852 cf_save_LIBS="$LIBS"
6853 echoscip-shell system . . echo. "$as_me:6853: checking for initscr in -l$cf_nculib_root" >&5
6854 echoscip-shell system . . echo. $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
6855 LIBS="-l$cf_nculib_root $LIBS"
6856 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
6857 #line 6857 "configure"
6858 #include "confdefs.h"
6859 #include <${cf_cv_ncurses_header:-curses.h}>
6860 int
6861 main (void)
6862 {
6863 initscr()
6864 ;
6865 return 0;
6866 }
6867 _ACEOF
6868 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
6869 if { (eval echo "$as_me:6869: \"$ac_link\"") >&5
6870 (eval $ac_link) 2>&5
6871 ac_status=$?
6872 echoscip-shell system . . echo. "$as_me:6872: \$? = $ac_status" >&5
6873 (exit "$ac_status"); } &&
6874 { ac_try='test -s "conftest$ac_exeext"'
6875 { (eval echo "$as_me:6875: \"$ac_try\"") >&5
6876 (eval $ac_try) 2>&5
6877 ac_status=$?
6878 echoscip-shell system . . echo. "$as_me:6878: \$? = $ac_status" >&5
6879 (exit "$ac_status"); }; }; then
6880 echoscip-shell system . . echo. "$as_me:6880: result: yes" >&5
6881 echoscip-shell system . . echo. "${ECHO_T}yes" >&6
6882 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
6883
6884 else
6885 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
6886 catscip-shell system . . cat. "conftest.$ac_ext" >&5
6887 echoscip-shell system . . echo. "$as_me:6887: result: no" >&5
6888 echoscip-shell system . . echo. "${ECHO_T}no" >&6
6889
6890 cf_search=
6891 cf_library_path_list=""
6892 if testscip-shell system . . test. -n "${LDFLAGS}${LIBS}" ; then
6893 for cf_library_path in $LDFLAGS $LIBS
6894 do
6895 case "$cf_library_path" in
6896 (-L*)
6897 cf_library_path=`echoscip-shell system . . echo. ".$cf_library_path" |sedscip-shell system . . sed. -e 's/^...//' -e 's,/lib$,,'`
6898
6899 testscip-shell system . . test. "x$cf_library_path" != "xNONE" && \
6900 test -d "$cf_library_path" && \
6901 {
6902 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for lib-directories under $cf_library_path"
6903 testscip-shell system . . test. -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
6904 testscip-shell system . . test. -d "$cf_library_path/lib/$cf_nculib_root" && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
6905 testscip-shell system . . test. -d "$cf_library_path/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
6906 testscip-shell system . . test. -d "$cf_library_path/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
6907 testscip-shell system . . test. -d "$cf_library_path/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root"
6908 }
6909
6910 cf_library_path_list="$cf_library_path_list $cf_search"
6911 ;;
6912 esac
6913 done
6914 fi
6915
6916 cf_search=
6917
6918 testscip-shell system . . test. "x$prefix" != "xNONE" && \
6919 test -d "$prefix" && \
6920 {
6921 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for lib-directories under $prefix"
6922 testscip-shell system . . test. -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
6923 testscip-shell system . . test. -d "$prefix/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
6924 testscip-shell system . . test. -d "$prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
6925 testscip-shell system . . test. -d "$prefix/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
6926 testscip-shell system . . test. -d "$prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
6927 }
6928
6929 for cf_subdir_prefix in \
6930 /usr \
6931 /usr/local \
6932 /usr/pkg \
6933 /opt \
6934 /opt/local \
6935 $HOME
6936 do
6937
6938 testscip-shell system . . test. "x$cf_subdir_prefix" != "x$prefix" && \
6939 test -d "$cf_subdir_prefix" && \
6940 { testscip-shell system . . test. -z "$prefix" || testscip-shell system . . test. "x$prefix" = xNONE || testscip-shell system . . test. "x$cf_subdir_prefix" != "x$prefix"; } && {
6941 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for lib-directories under $cf_subdir_prefix"
6942 testscip-shell system . . test. -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
6943 testscip-shell system . . test. -d "$cf_subdir_prefix/lib/$cf_nculib_root" && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
6944 testscip-shell system . . test. -d "$cf_subdir_prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
6945 testscip-shell system . . test. -d "$cf_subdir_prefix/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
6946 testscip-shell system . . test. -d "$cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root"
6947 }
6948
6949 done
6950
6951 cf_search="$cf_library_path_list $cf_search"
6952
6953 for cf_libdir in $cf_search
6954 do
6955 echoscip-shell system . . echo. "$as_me:6955: checking for -l$cf_nculib_root in $cf_libdir" >&5
6956 echoscip-shell system . . echo. $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
6957 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
6958 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
6959 #line 6959 "configure"
6960 #include "confdefs.h"
6961 #include <${cf_cv_ncurses_header:-curses.h}>
6962 int
6963 main (void)
6964 {
6965 initscr()
6966 ;
6967 return 0;
6968 }
6969 _ACEOF
6970 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
6971 if { (eval echo "$as_me:6971: \"$ac_link\"") >&5
6972 (eval $ac_link) 2>&5
6973 ac_status=$?
6974 echoscip-shell system . . echo. "$as_me:6974: \$? = $ac_status" >&5
6975 (exit "$ac_status"); } &&
6976 { ac_try='test -s "conftest$ac_exeext"'
6977 { (eval echo "$as_me:6977: \"$ac_try\"") >&5
6978 (eval $ac_try) 2>&5
6979 ac_status=$?
6980 echoscip-shell system . . echo. "$as_me:6980: \$? = $ac_status" >&5
6981 (exit "$ac_status"); }; }; then
6982 echoscip-shell system . . echo. "$as_me:6982: result: yes" >&5
6983 echoscip-shell system . . echo. "${ECHO_T}yes" >&6
6984 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
6985 break
6986 else
6987 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
6988 catscip-shell system . . cat. "conftest.$ac_ext" >&5
6989 echoscip-shell system . . echo. "$as_me:6989: result: no" >&5
6990 echoscip-shell system . . echo. "${ECHO_T}no" >&6
6991 LIBS="$cf_save_LIBS"
6992 fi
6993 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6994 done
6995
6996 fi
6997 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6998
6999 fi
7000
7001 eval 'cf_found_library="$cf_cv_have_lib_'"$cf_nculib_root"\"
7002
7003 if testscip-shell system . . test. "$cf_found_library" = no ; then
7004 { { echoscip-shell system . . echo. "$as_me:7004: error: Cannot link $cf_nculib_root library" >&5
7005 echoscip-shell system . . echo. "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
7006 { (exit 1); exit 1; }; }
7007 fi
7008
7009 fi
7010
7011 if testscip-shell system . . test. -n "$cf_ncurses_LIBS" ; then
7012 echoscip-shell system . . echo. "$as_me:7012: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
7013 echoscip-shell system . . echo. $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
7014 cf_ncurses_SAVE="$LIBS"
7015 for p in $cf_ncurses_LIBS ; do
7016 q=`echoscip-shell system . . echo. "$LIBS" | sedscip-shell system . . sed. -e "s%$p %%" -e "s%$p$%%"`
7017 if testscip-shell system . . test. "$q" != "$LIBS" ; then
7018 LIBS="$q"
7019 fi
7020 done
7021 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
7022 #line 7022 "configure"
7023 #include "confdefs.h"
7024 #include <${cf_cv_ncurses_header:-curses.h}>
7025 int
7026 main (void)
7027 {
7028 initscr(); mousemask(0,(void*)0); tigetstr((char *)0);
7029 ;
7030 return 0;
7031 }
7032 _ACEOF
7033 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
7034 if { (eval echo "$as_me:7034: \"$ac_link\"") >&5
7035 (eval $ac_link) 2>&5
7036 ac_status=$?
7037 echoscip-shell system . . echo. "$as_me:7037: \$? = $ac_status" >&5
7038 (exit "$ac_status"); } &&
7039 { ac_try='test -s "conftest$ac_exeext"'
7040 { (eval echo "$as_me:7040: \"$ac_try\"") >&5
7041 (eval $ac_try) 2>&5
7042 ac_status=$?
7043 echoscip-shell system . . echo. "$as_me:7043: \$? = $ac_status" >&5
7044 (exit "$ac_status"); }; }; then
7045 echoscip-shell system . . echo. "$as_me:7045: result: yes" >&5
7046 echoscip-shell system . . echo. "${ECHO_T}yes" >&6
7047 else
7048 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
7049 catscip-shell system . . cat. "conftest.$ac_ext" >&5
7050 echoscip-shell system . . echo. "$as_me:7050: result: no" >&5
7051 echoscip-shell system . . echo. "${ECHO_T}no" >&6
7052 LIBS="$cf_ncurses_SAVE"
7053 fi
7054 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7055 fi
7056
7057 cf_nculib_ROOT=`echoscip-shell system . . echo. "HAVE_LIB$cf_nculib_root" | sedscip-shell system . . sed. y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7058
7059 catscip-shell system . . cat. >>confdefs.h <<EOF
7060 #define $cf_nculib_ROOT 1
7061 EOF
7062
7063 fi
7064 else
7065 NCURSES_CONFIG=none
7066 fi
7067
7068 echoscip-shell system . . echo. "$as_me:7068: checking for specified curses library type" >&5
7069 echoscip-shell system . . echo. $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
7070
7071 # Check whether --with-screen or --without-screen was given.
7072 if testscip-shell system . . test. "${with_screen+set}" = set; then
7073 withval="$with_screen"
7074 cf_cv_screen=$withval
7075 else
7076 cf_cv_screen=ncurses
7077 fi;
7078
7079 case $cf_cv_screen in
7080 (curses|curses_*)
7081
7082 echoscip-shell system . . echo. "$as_me:7082: checking for extra include directories" >&5
7083 echoscip-shell system . . echo. $ECHO_N "checking for extra include directories... $ECHO_C" >&6
7084 if testscip-shell system . . test. "${cf_cv_curses_incdir+set}" = set; then
7085 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087
7088 cf_cv_curses_incdir=no
7089 case "$host_os" in
7090 (hpux10.*)
7091 if testscip-shell system . . test. "x$cf_cv_screen" = "xcurses_colr"
7092 then
7093 testscip-shell system . . test. -d /usr/include/curses_colrscip-shell filesystem . . `/usr/include/curses_colr`. && \
7094 cf_cv_curses_incdir="-I/usr/include/curses_colr"
7095 fi
7096 ;;
7097 (sunos3*|sunos4*)
7098 if testscip-shell system . . test. "x$cf_cv_screen" = "xcurses_5lib"
7099 then
7100 testscip-shell system . . test. -d /usr/5libscip-shell filesystem . . `/usr/5lib`. && \
7101 test -d /usr/5incscip-shell filesystem . . `/usr/5include`.ludescip-shell filesystem . . `/usr/5include`. && \
7102 cf_cv_curses_incdir="-I/usr/5include"
7103 fi
7104 ;;
7105 esac
7106
7107 fi
7108 echoscip-shell system . . echo. "$as_me:7108: result: $cf_cv_curses_incdir" >&5
7109 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_curses_incdir" >&6
7110 if testscip-shell system . . test. "$cf_cv_curses_incdir" != no
7111 then
7112
7113 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7114 CPPFLAGS="${CPPFLAGS}$cf_cv_curses_incdir"
7115
7116 fi
7117
7118 echoscip-shell system . . echo. "$as_me:7118: checking if we have identified curses headers" >&5
7119 echoscip-shell system . . echo. $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
7120 if testscip-shell system . . test. "${cf_cv_ncurses_header+set}" = set; then
7121 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123
7124 cf_cv_ncurses_header=none
7125 for cf_header in \
7126 ncurses.h \
7127 curses.h ncurses/ncurses.h ncurses/curses.h
7128 do
7129 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
7130 #line 7130 "configure"
7131 #include "confdefs.h"
7132 #include <${cf_header}>
7133 int
7134 main (void)
7135 {
7136 initscr(); endwin()
7137 ;
7138 return 0;
7139 }
7140 _ACEOF
7141 rmscip-shell system . . rm. -f "conftest.$ac_objext"
7142 if { (eval echo "$as_me:7142: \"$ac_compile\"") >&5
7143 (eval $ac_compile) 2>&5
7144 ac_status=$?
7145 echoscip-shell system . . echo. "$as_me:7145: \$? = $ac_status" >&5
7146 (exit "$ac_status"); } &&
7147 { ac_try='test -s "conftest.$ac_objext"'
7148 { (eval echo "$as_me:7148: \"$ac_try\"") >&5
7149 (eval $ac_try) 2>&5
7150 ac_status=$?
7151 echoscip-shell system . . echo. "$as_me:7151: \$? = $ac_status" >&5
7152 (exit "$ac_status"); }; }; then
7153 cf_cv_ncurses_header=$cf_header; break
7154 else
7155 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
7156 catscip-shell system . . cat. "conftest.$ac_ext" >&5
7157 fi
7158 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
7159 done
7160
7161 fi
7162 echoscip-shell system . . echo. "$as_me:7162: result: $cf_cv_ncurses_header" >&5
7163 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_ncurses_header" >&6
7164
7165 if testscip-shell system . . test. "$cf_cv_ncurses_header" = none ; then
7166 { { echoscip-shell system . . echo. "$as_me:7166: error: No curses header-files found" >&5
7167 echoscip-shell system . . echo. "$as_me: error: No curses header-files found" >&2;}
7168 { (exit 1); exit 1; }; }
7169 fi
7170
7171 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
7172
7173 for ac_header in $cf_cv_ncurses_header
7174 do
7175 as_ac_Header=`echoscip-shell system . . echo. "ac_cv_header_$ac_header" | $as_tr_sh`
7176 echoscip-shell system . . echo. "$as_me:7176: checking for $ac_header" >&5
7177 echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7179 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
7180 else
7181 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
7182 #line 7182 "configure"
7183 #include "confdefs.h"
7184 #include <$ac_header>
7185 _ACEOF
7186 if { (eval echo "$as_me:7186: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7187 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7188 ac_status=$?
7189 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7190 rmscip-shell system . . rm. -f conftest.er1
7191 catscip-shell system . . cat. conftest.err >&5
7192 echoscip-shell system . . echo. "$as_me:7192: \$? = $ac_status" >&5
7193 (exit "$ac_status"); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then
7194 if testscip-shell system . . test. -s conftest.err; then
7195 ac_cpp_err=$ac_c_preproc_warn_flag
7196 else
7197 ac_cpp_err=
7198 fi
7199 else
7200 ac_cpp_err=yes
7201 fi
7202 if testscip-shell system . . test. -z "$ac_cpp_err"; then
7203 eval "$as_ac_Header=yes"
7204 else
7205 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
7206 catscip-shell system . . cat. "conftest.$ac_ext" >&5
7207 eval "$as_ac_Header=no"
7208 fi
7209 rmscip-shell system . . rm. -f conftest.err "conftest.$ac_ext"
7210 fi
7211 echoscip-shell system . . echo. "$as_me:7211: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
7212 echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
7213 if testscip-shell system . . test. "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
7214 catscip-shell system . . cat. >>confdefs.h <<EOF
7215 #define `echoscip-shell system . . echo. "HAVE_$ac_header" | $as_tr_cpp` 1
7216 EOF
7217
7218 fi
7219 done
7220
7221 echoscip-shell system . . echo. "$as_me:7221: checking for terminfo header" >&5
7222 echoscip-shell system . . echo. $ECHO_N "checking for terminfo header... $ECHO_C" >&6
7223 if testscip-shell system . . test. "${cf_cv_term_header+set}" = set; then
7224 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226
7227 case "${cf_cv_ncurses_header}" in
7228 (*/ncurses.h|*/ncursesw.h)
7229 cf_term_header=`echoscip-shell system . . echo. "$cf_cv_ncurses_header" | sedscip-shell system . . sed. -e 's%ncurses[^.]*\.h$%term.h%'`
7230 ;;
7231 (*)
7232 cf_term_header=term.h
7233 ;;
7234 esac
7235
7236 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
7237 do
7238 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
7239 #line 7239 "configure"
7240 #include "confdefs.h"
7241 #include <stdio.h>
7242 #include <${cf_cv_ncurses_header:-curses.h}>
7243 #include <$cf_test>
7244
7245 int
7246 main (void)
7247 {
7248 int x = auto_left_margin; (void)x
7249 ;
7250 return 0;
7251 }
7252 _ACEOF
7253 rmscip-shell system . . rm. -f "conftest.$ac_objext"
7254 if { (eval echo "$as_me:7254: \"$ac_compile\"") >&5
7255 (eval $ac_compile) 2>&5
7256 ac_status=$?
7257 echoscip-shell system . . echo. "$as_me:7257: \$? = $ac_status" >&5
7258 (exit "$ac_status"); } &&
7259 { ac_try='test -s "conftest.$ac_objext"'
7260 { (eval echo "$as_me:7260: \"$ac_try\"") >&5
7261 (eval $ac_try) 2>&5
7262 ac_status=$?
7263 echoscip-shell system . . echo. "$as_me:7263: \$? = $ac_status" >&5
7264 (exit "$ac_status"); }; }; then
7265
7266 cf_cv_term_header="$cf_test"
7267 else
7268 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
7269 catscip-shell system . . cat. "conftest.$ac_ext" >&5
7270
7271 cf_cv_term_header=unknown
7272
7273 fi
7274 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
7275 testscip-shell system . . test. "$cf_cv_term_header" != unknown && break
7276 done
7277
7278 fi
7279 echoscip-shell system . . echo. "$as_me:7279: result: $cf_cv_term_header" >&5
7280 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_term_header" >&6
7281
7282 # Set definitions to allow ifdef'ing to accommodate subdirectories
7283
7284 case "$cf_cv_term_header" in
7285 (*term.h)
7286
7287 catscip-shell system . . cat. >>confdefs.h <<\EOF
7288 #define HAVE_TERM_H 1
7289 EOF
7290
7291 ;;
7292 esac
7293
7294 case "$cf_cv_term_header" in
7295 (ncurses/term.h)
7296
7297 catscip-shell system . . cat. >>confdefs.h <<\EOF
7298 #define HAVE_NCURSES_TERM_H 1
7299 EOF
7300
7301 ;;
7302 (ncursesw/term.h)
7303
7304 catscip-shell system . . cat. >>confdefs.h <<\EOF
7305 #define HAVE_NCURSESW_TERM_H 1
7306 EOF
7307
7308 ;;
7309 esac
7310
7311 echoscip-shell system . . echo. "$as_me:7311: checking for ncurses version" >&5
7312 echoscip-shell system . . echo. $ECHO_N "checking for ncurses version... $ECHO_C" >&6
7313 if testscip-shell system . . test. "${cf_cv_ncurses_version+set}" = set; then
7314 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
7315 else
7316
7317 cf_cv_ncurses_version=no
7318 cf_tempfile=out$$
7319 rmscip-shell system . . rm. -f "$cf_tempfile"
7320 if testscip-shell system . . test. "$cross_compiling" = yes; then
7321
7322 # This will not work if the preprocessor splits the line after the
7323 # Autoconf token. The 'unproto' program does that.
7324 catscip-shell system . . cat. > "conftest.$ac_ext" <<EOF
7325 #include <${cf_cv_ncurses_header:-curses.h}>
7326 #undef Autoconf
7327 #ifdef NCURSES_VERSION
7328 Autoconf NCURSES_VERSION
7329 #else
7330 #ifdef __NCURSES_H
7331 Autoconf "old"
7332 #endif
7333 ;
7334 #endif
7335 EOF
7336 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
7337 { (eval echo "$as_me:7337: \"$cf_try\"") >&5
7338 (eval $cf_try) 2>&5
7339 ac_status=$?
7340 echoscip-shell system . . echo. "$as_me:7340: \$? = $ac_status" >&5
7341 (exit "$ac_status"); }
7342 if testscip-shell system . . test. -f conftest.out ; then
7343 cf_out=`sedscip-shell system . . sed. -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
7344 testscip-shell system . . test. -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
7345 rmscip-shell system . . rm. -f conftest.out
7346 fi
7347
7348 else
7349 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
7350 #line 7350 "configure"
7351 #include "confdefs.h"
7352
7353 $ac_includes_default
7354
7355 #include <${cf_cv_ncurses_header:-curses.h}>
7356
7357 int main(void)
7358 {
7359 FILE *fp = fopen("$cf_tempfile", "w");
7360 #ifdef NCURSES_VERSION
7361 # ifdef NCURSES_VERSION_PATCH
7362 fprintf(fp, "%s.%d\\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
7363 # else
7364 fprintf(fp, "%s\\n", NCURSES_VERSION);
7365 # endif
7366 #else
7367 # ifdef __NCURSES_H
7368 fprintf(fp, "old\\n");
7369 # else
7370 #error expected ncurses header to define __NCURSES_H
7371 # endif
7372 #endif
7373 ${cf_cv_main_return:-return}(0);
7374 }
7375 _ACEOF
7376 rmscip-shell system . . rm. -f "conftest$ac_exeext"
7377 if { (eval echo "$as_me:7377: \"$ac_link\"") >&5
7378 (eval $ac_link) 2>&5
7379 ac_status=$?
7380 echoscip-shell system . . echo. "$as_me:7380: \$? = $ac_status" >&5
7381 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
7382 { (eval echo "$as_me:7382: \"$ac_try\"") >&5
7383 (eval $ac_try) 2>&5
7384 ac_status=$?
7385 echoscip-shell system . . echo. "$as_me:7385: \$? = $ac_status" >&5
7386 (exit "$ac_status"); }; }; then
7387
7388 cf_cv_ncurses_version=`catscip-shell system . . cat. $cf_tempfile`
7389 else
7390 echoscip-shell system . . echo. "$as_me: program exited with status $ac_status" >&5
7391 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
7392 catscip-shell system . . cat. "conftest.$ac_ext" >&5
7393 fi
7394 rmscip-shell system . . rm. -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
7395 fi
7396 rmscip-shell system . . rm. -f "$cf_tempfile"
7397
7398 fi
7399 echoscip-shell system . . echo. "$as_me:7399: result: $cf_cv_ncurses_version" >&5
7400 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_ncurses_version" >&6
7401 testscip-shell system . . test. "$cf_cv_ncurses_version" = no ||
7402 catscip-shell system . . cat. >>confdefs.h <<\EOF
7403 #define NCURSES 1
7404 EOF
7405
7406 echoscip-shell system . . echo. "$as_me:7406: checking if we have identified curses libraries" >&5
7407 echoscip-shell system . . echo. $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
7408 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
7409 #line 7409 "configure"
7410 #include "confdefs.h"
7411 #include <${cf_cv_ncurses_header:-curses.h}>
7412 int
7413 main (void)
7414 {
7415 initscr(); endwin()
7416 ;
7417 return 0;
7418 }
7419 _ACEOF
7420 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
7421 if { (eval echo "$as_me:7421: \"$ac_link\"") >&5
7422 (eval $ac_link) 2>&5
7423 ac_status=$?
7424 echoscip-shell system . . echo. "$as_me:7424: \$? = $ac_status" >&5
7425 (exit "$ac_status"); } &&
7426 { ac_try='test -s "conftest$ac_exeext"'
7427 { (eval echo "$as_me:7427: \"$ac_try\"") >&5
7428 (eval $ac_try) 2>&5
7429 ac_status=$?
7430 echoscip-shell system . . echo. "$as_me:7430: \$? = $ac_status" >&5
7431 (exit "$ac_status"); }; }; then
7432 cf_result=yes
7433 else
7434 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
7435 catscip-shell system . . cat. "conftest.$ac_ext" >&5
7436 cf_result=no
7437 fi
7438 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7439 echoscip-shell system . . echo. "$as_me:7439: result: $cf_result" >&5
7440 echoscip-shell system . . echo. "${ECHO_T}$cf_result" >&6
7441
7442 if testscip-shell system . . test. "$cf_result" = no ; then
7443 case "$host_os" in
7444 (freebsd*)
7445 echoscip-shell system . . echo. "$as_me:7445: checking for tgoto in -lmytinfo" >&5
7446 echoscip-shell system . . echo. $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7447 if testscip-shell system . . test. "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7448 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450 ac_check_lib_save_LIBS=$LIBS
7451 LIBS="-lmytinfo $LIBS"
7452 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
7453 #line 7453 "configure"
7454 #include "confdefs.h"
7455
7456 /* Override any gcc2 internal prototype to avoid an error. */
7457 #ifdef __cplusplus
7458 extern "C"
7459 #endif
7460 /* We use char because int might match the return type of a gcc2
7461 builtin and then its argument prototype would still apply. */
7462 char tgoto (void);
7463 int
7464 main (void)
7465 {
7466 tgoto ();
7467 ;
7468 return 0;
7469 }
7470 _ACEOF
7471 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
7472 if { (eval echo "$as_me:7472: \"$ac_link\"") >&5
7473 (eval $ac_link) 2>&5
7474 ac_status=$?
7475 echoscip-shell system . . echo. "$as_me:7475: \$? = $ac_status" >&5
7476 (exit "$ac_status"); } &&
7477 { ac_try='test -s "conftest$ac_exeext"'
7478 { (eval echo "$as_me:7478: \"$ac_try\"") >&5
7479 (eval $ac_try) 2>&5
7480 ac_status=$?
7481 echoscip-shell system . . echo. "$as_me:7481: \$? = $ac_status" >&5
7482 (exit "$ac_status"); }; }; then
7483 ac_cv_lib_mytinfo_tgoto=yes
7484 else
7485 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
7486 catscip-shell system . . cat. "conftest.$ac_ext" >&5
7487 ac_cv_lib_mytinfo_tgoto=no
7488 fi
7489 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7490 LIBS=$ac_check_lib_save_LIBS
7491 fi
7492 echoscip-shell system . . echo. "$as_me:7492: result: $ac_cv_lib_mytinfo_tgoto" >&5
7493 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
7494 if testscip-shell system . . test. "$ac_cv_lib_mytinfo_tgoto" = yes; then
7495
7496 cf_add_libs="$LIBS"
7497 # reverse order
7498 cf_add_0lib=
7499 for cf_add_1lib in -lmytinfo; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7500 # filter duplicates
7501 for cf_add_1lib in $cf_add_0lib; do
7502 for cf_add_2lib in $cf_add_libs; do
7503 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
7504 cf_add_1lib=
7505 break
7506 fi
7507 done
7508 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7509 done
7510 LIBS="$cf_add_libs"
7511
7512 fi
7513
7514 ;;
7515 (hpux10.*)
7516 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
7517 # next (1998), and xcurses "newer" (2000). There is no header file for
7518 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
7519 # term.h) for cur_colr
7520 if testscip-shell system . . test. "x$cf_cv_screen" = "xcurses_colr"
7521 then
7522 echoscip-shell system . . echo. "$as_me:7522: checking for initscr in -lcur_colr" >&5
7523 echoscip-shell system . . echo. $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
7524 if testscip-shell system . . test. "${ac_cv_lib_cur_colr_initscr+set}" = set; then
7525 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
7526 else
7527 ac_check_lib_save_LIBS=$LIBS
7528 LIBS="-lcur_colr $LIBS"
7529 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
7530 #line 7530 "configure"
7531 #include "confdefs.h"
7532
7533 /* Override any gcc2 internal prototype to avoid an error. */
7534 #ifdef __cplusplus
7535 extern "C"
7536 #endif
7537 /* We use char because int might match the return type of a gcc2
7538 builtin and then its argument prototype would still apply. */
7539 char initscr (void);
7540 int
7541 main (void)
7542 {
7543 initscr ();
7544 ;
7545 return 0;
7546 }
7547 _ACEOF
7548 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
7549 if { (eval echo "$as_me:7549: \"$ac_link\"") >&5
7550 (eval $ac_link) 2>&5
7551 ac_status=$?
7552 echoscip-shell system . . echo. "$as_me:7552: \$? = $ac_status" >&5
7553 (exit "$ac_status"); } &&
7554 { ac_try='test -s "conftest$ac_exeext"'
7555 { (eval echo "$as_me:7555: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echoscip-shell system . . echo. "$as_me:7558: \$? = $ac_status" >&5
7559 (exit "$ac_status"); }; }; then
7560 ac_cv_lib_cur_colr_initscr=yes
7561 else
7562 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
7563 catscip-shell system . . cat. "conftest.$ac_ext" >&5
7564 ac_cv_lib_cur_colr_initscr=no
7565 fi
7566 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7567 LIBS=$ac_check_lib_save_LIBS
7568 fi
7569 echoscip-shell system . . echo. "$as_me:7569: result: $ac_cv_lib_cur_colr_initscr" >&5
7570 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
7571 if testscip-shell system . . test. "$ac_cv_lib_cur_colr_initscr" = yes; then
7572
7573 cf_add_libs="$LIBS"
7574 # reverse order
7575 cf_add_0lib=
7576 for cf_add_1lib in -lcur_colr; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7577 # filter duplicates
7578 for cf_add_1lib in $cf_add_0lib; do
7579 for cf_add_2lib in $cf_add_libs; do
7580 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
7581 cf_add_1lib=
7582 break
7583 fi
7584 done
7585 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7586 done
7587 LIBS="$cf_add_libs"
7588
7589 ac_cv_func_initscr=yes
7590
7591 else
7592
7593 echoscip-shell system . . echo. "$as_me:7593: checking for initscr in -lHcurses" >&5
7594 echoscip-shell system . . echo. $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
7595 if testscip-shell system . . test. "${ac_cv_lib_Hcurses_initscr+set}" = set; then
7596 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
7597 else
7598 ac_check_lib_save_LIBS=$LIBS
7599 LIBS="-lHcurses $LIBS"
7600 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
7601 #line 7601 "configure"
7602 #include "confdefs.h"
7603
7604 /* Override any gcc2 internal prototype to avoid an error. */
7605 #ifdef __cplusplus
7606 extern "C"
7607 #endif
7608 /* We use char because int might match the return type of a gcc2
7609 builtin and then its argument prototype would still apply. */
7610 char initscr (void);
7611 int
7612 main (void)
7613 {
7614 initscr ();
7615 ;
7616 return 0;
7617 }
7618 _ACEOF
7619 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
7620 if { (eval echo "$as_me:7620: \"$ac_link\"") >&5
7621 (eval $ac_link) 2>&5
7622 ac_status=$?
7623 echoscip-shell system . . echo. "$as_me:7623: \$? = $ac_status" >&5
7624 (exit "$ac_status"); } &&
7625 { ac_try='test -s "conftest$ac_exeext"'
7626 { (eval echo "$as_me:7626: \"$ac_try\"") >&5
7627 (eval $ac_try) 2>&5
7628 ac_status=$?
7629 echoscip-shell system . . echo. "$as_me:7629: \$? = $ac_status" >&5
7630 (exit "$ac_status"); }; }; then
7631 ac_cv_lib_Hcurses_initscr=yes
7632 else
7633 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
7634 catscip-shell system . . cat. "conftest.$ac_ext" >&5
7635 ac_cv_lib_Hcurses_initscr=no
7636 fi
7637 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7638 LIBS=$ac_check_lib_save_LIBS
7639 fi
7640 echoscip-shell system . . echo. "$as_me:7640: result: $ac_cv_lib_Hcurses_initscr" >&5
7641 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
7642 if testscip-shell system . . test. "$ac_cv_lib_Hcurses_initscr" = yes; then
7643
7644 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
7645
7646 cf_add_libs="$LIBS"
7647 # reverse order
7648 cf_add_0lib=
7649 for cf_add_1lib in -lHcurses; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7650 # filter duplicates
7651 for cf_add_1lib in $cf_add_0lib; do
7652 for cf_add_2lib in $cf_add_libs; do
7653 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
7654 cf_add_1lib=
7655 break
7656 fi
7657 done
7658 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7659 done
7660 LIBS="$cf_add_libs"
7661
7662 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7663 CPPFLAGS="${CPPFLAGS}-D__HP_CURSES -D_HP_CURSES"
7664
7665 ac_cv_func_initscr=yes
7666
7667 fi
7668
7669 fi
7670
7671 fi
7672 ;;
7673 (linux*)
7674 case `archscip-shell system . . arch. 2>/dev/nullscip-shell filesystem . . `/dev/null`.` in
7675 (x86_64)
7676 if testscip-shell system . . test. -d /lib64scip-shell filesystem . . `/lib64`.
7677 then
7678
7679 if testscip-shell system . . test. -n "/lib64scip-shell filesystem . . `/lib64`." ; then
7680 for cf_add_libdir in /lib64scip-shell filesystem . . `/lib64`.
7681 do
7682 if testscip-shell system . . test. "$cf_add_libdir" = /usr/libscip-shell filesystem . . `/usr/lib`. ; then
7683 :
7684 elif testscip-shell system . . test. -d "$cf_add_libdir"
7685 then
7686 cf_have_libdir=no
7687 if testscip-shell system . . test. -n "$LDFLAGS$LIBS" ; then
7688 # a loop is needed to ensure we can add subdirs of existing dirs
7689 for cf_test_libdir in $LDFLAGS $LIBS ; do
7690 if testscip-shell system . . test. ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7691 cf_have_libdir=yes; break
7692 fi
7693 done
7694 fi
7695 if testscip-shell system . . test. "$cf_have_libdir" = no ; then
7696 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " adding $cf_add_libdir to library-path" 1>&6
7697
7698 echoscip-shell system . . echo. "${as_me:-configure}:7698: testing adding $cf_add_libdir to library-path ..." 1>&5
7699
7700 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7701 fi
7702 fi
7703 done
7704 fi
7705
7706 else
7707
7708 if testscip-shell system . . test. -n "/libscip-shell filesystem . . `/lib`." ; then
7709 for cf_add_libdir in /libscip-shell filesystem . . `/lib`.
7710 do
7711 if testscip-shell system . . test. "$cf_add_libdir" = /usr/libscip-shell filesystem . . `/usr/lib`. ; then
7712 :
7713 elif testscip-shell system . . test. -d "$cf_add_libdir"
7714 then
7715 cf_have_libdir=no
7716 if testscip-shell system . . test. -n "$LDFLAGS$LIBS" ; then
7717 # a loop is needed to ensure we can add subdirs of existing dirs
7718 for cf_test_libdir in $LDFLAGS $LIBS ; do
7719 if testscip-shell system . . test. ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7720 cf_have_libdir=yes; break
7721 fi
7722 done
7723 fi
7724 if testscip-shell system . . test. "$cf_have_libdir" = no ; then
7725 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " adding $cf_add_libdir to library-path" 1>&6
7726
7727 echoscip-shell system . . echo. "${as_me:-configure}:7727: testing adding $cf_add_libdir to library-path ..." 1>&5
7728
7729 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7730 fi
7731 fi
7732 done
7733 fi
7734
7735 fi
7736 ;;
7737 (*)
7738
7739 if testscip-shell system . . test. -n "/libscip-shell filesystem . . `/lib`." ; then
7740 for cf_add_libdir in /libscip-shell filesystem . . `/lib`.
7741 do
7742 if testscip-shell system . . test. "$cf_add_libdir" = /usr/libscip-shell filesystem . . `/usr/lib`. ; then
7743 :
7744 elif testscip-shell system . . test. -d "$cf_add_libdir"
7745 then
7746 cf_have_libdir=no
7747 if testscip-shell system . . test. -n "$LDFLAGS$LIBS" ; then
7748 # a loop is needed to ensure we can add subdirs of existing dirs
7749 for cf_test_libdir in $LDFLAGS $LIBS ; do
7750 if testscip-shell system . . test. ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7751 cf_have_libdir=yes; break
7752 fi
7753 done
7754 fi
7755 if testscip-shell system . . test. "$cf_have_libdir" = no ; then
7756 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " adding $cf_add_libdir to library-path" 1>&6
7757
7758 echoscip-shell system . . echo. "${as_me:-configure}:7758: testing adding $cf_add_libdir to library-path ..." 1>&5
7759
7760 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7761 fi
7762 fi
7763 done
7764 fi
7765
7766 ;;
7767 esac
7768 ;;
7769 (sunos3*|sunos4*)
7770 if testscip-shell system . . test. "x$cf_cv_screen" = "xcurses_5lib"
7771 then
7772 if testscip-shell system . . test. -d /usr/5libscip-shell filesystem . . `/usr/5lib`. ; then
7773
7774 if testscip-shell system . . test. -n "/usr/5libscip-shell filesystem . . `/usr/5lib`." ; then
7775 for cf_add_libdir in /usr/5libscip-shell filesystem . . `/usr/5lib`.
7776 do
7777 if testscip-shell system . . test. "$cf_add_libdir" = /usr/libscip-shell filesystem . . `/usr/lib`. ; then
7778 :
7779 elif testscip-shell system . . test. -d "$cf_add_libdir"
7780 then
7781 cf_have_libdir=no
7782 if testscip-shell system . . test. -n "$LDFLAGS$LIBS" ; then
7783 # a loop is needed to ensure we can add subdirs of existing dirs
7784 for cf_test_libdir in $LDFLAGS $LIBS ; do
7785 if testscip-shell system . . test. ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7786 cf_have_libdir=yes; break
7787 fi
7788 done
7789 fi
7790 if testscip-shell system . . test. "$cf_have_libdir" = no ; then
7791 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " adding $cf_add_libdir to library-path" 1>&6
7792
7793 echoscip-shell system . . echo. "${as_me:-configure}:7793: testing adding $cf_add_libdir to library-path ..." 1>&5
7794
7795 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7796 fi
7797 fi
7798 done
7799 fi
7800
7801 cf_add_libs="$LIBS"
7802 # reverse order
7803 cf_add_0lib=
7804 for cf_add_1lib in -lcurses -ltermcap; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7805 # filter duplicates
7806 for cf_add_1lib in $cf_add_0lib; do
7807 for cf_add_2lib in $cf_add_libs; do
7808 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
7809 cf_add_1lib=
7810 break
7811 fi
7812 done
7813 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7814 done
7815 LIBS="$cf_add_libs"
7816
7817 fi
7818 fi
7819 ac_cv_func_initscr=yes
7820 ;;
7821 esac
7822
7823 if testscip-shell system . . test. ".$ac_cv_func_initscr" != .yes ; then
7824 cf_save_LIBS="$LIBS"
7825
7826 if testscip-shell system . . test. ".${cf_cv_ncurses_version:-no}" != .no
7827 then
7828 cf_check_list="ncurses curses cursesX"
7829 else
7830 cf_check_list="cursesX curses ncurses"
7831 fi
7832
7833 # Check for library containing tgoto. Do this before curses library
7834 # because it may be needed to link the test-case for initscr.
7835 if testscip-shell system . . test. "x$cf_term_lib" = x
7836 then
7837 echoscip-shell system . . echo. "$as_me:7837: checking for tgoto" >&5
7838 echoscip-shell system . . echo. $ECHO_N "checking for tgoto... $ECHO_C" >&6
7839 if testscip-shell system . . test. "${ac_cv_func_tgoto+set}" = set; then
7840 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
7843 #line 7843 "configure"
7844 #include "confdefs.h"
7845 #define tgoto autoconf_temporary
7846 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7847 #undef tgoto
7848
7849 #ifdef __cplusplus
7850 extern "C"
7851 #endif
7852
7853 /* We use char because int might match the return type of a gcc2
7854 builtin and then its argument prototype would still apply. */
7855 char tgoto (void);
7856
7857 int
7858 main (void)
7859 {
7860
7861 /* The GNU C library defines stubs for functions which it implements
7862 to always fail with ENOSYS. Some functions are actually named
7863 something starting with __ and the normal name is an alias. */
7864 #if defined (__stub_tgoto) || defined (__stub___tgoto)
7865 #error found stub for tgoto
7866 #endif
7867
7868 return tgoto ();
7869 ;
7870 return 0;
7871 }
7872 _ACEOF
7873 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
7874 if { (eval echo "$as_me:7874: \"$ac_link\"") >&5
7875 (eval $ac_link) 2>&5
7876 ac_status=$?
7877 echoscip-shell system . . echo. "$as_me:7877: \$? = $ac_status" >&5
7878 (exit "$ac_status"); } &&
7879 { ac_try='test -s "conftest$ac_exeext"'
7880 { (eval echo "$as_me:7880: \"$ac_try\"") >&5
7881 (eval $ac_try) 2>&5
7882 ac_status=$?
7883 echoscip-shell system . . echo. "$as_me:7883: \$? = $ac_status" >&5
7884 (exit "$ac_status"); }; }; then
7885 ac_cv_func_tgoto=yes
7886 else
7887 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
7888 catscip-shell system . . cat. "conftest.$ac_ext" >&5
7889 ac_cv_func_tgoto=no
7890 fi
7891 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7892 fi
7893 echoscip-shell system . . echo. "$as_me:7893: result: $ac_cv_func_tgoto" >&5
7894 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_func_tgoto" >&6
7895 if testscip-shell system . . test. "$ac_cv_func_tgoto" = yes; then
7896 cf_term_lib=predefined
7897 else
7898
7899 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
7900 do
7901 as_ac_Lib=`echoscip-shell system . . echo. "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
7902 echoscip-shell system . . echo. "$as_me:7902: checking for tgoto in -l$cf_term_lib" >&5
7903 echoscip-shell system . . echo. $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
7904 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7905 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907 ac_check_lib_save_LIBS=$LIBS
7908 LIBS="-l$cf_term_lib $LIBS"
7909 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
7910 #line 7910 "configure"
7911 #include "confdefs.h"
7912
7913 /* Override any gcc2 internal prototype to avoid an error. */
7914 #ifdef __cplusplus
7915 extern "C"
7916 #endif
7917 /* We use char because int might match the return type of a gcc2
7918 builtin and then its argument prototype would still apply. */
7919 char tgoto (void);
7920 int
7921 main (void)
7922 {
7923 tgoto ();
7924 ;
7925 return 0;
7926 }
7927 _ACEOF
7928 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
7929 if { (eval echo "$as_me:7929: \"$ac_link\"") >&5
7930 (eval $ac_link) 2>&5
7931 ac_status=$?
7932 echoscip-shell system . . echo. "$as_me:7932: \$? = $ac_status" >&5
7933 (exit "$ac_status"); } &&
7934 { ac_try='test -s "conftest$ac_exeext"'
7935 { (eval echo "$as_me:7935: \"$ac_try\"") >&5
7936 (eval $ac_try) 2>&5
7937 ac_status=$?
7938 echoscip-shell system . . echo. "$as_me:7938: \$? = $ac_status" >&5
7939 (exit "$ac_status"); }; }; then
7940 eval "$as_ac_Lib=yes"
7941 else
7942 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
7943 catscip-shell system . . cat. "conftest.$ac_ext" >&5
7944 eval "$as_ac_Lib=no"
7945 fi
7946 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7947 LIBS=$ac_check_lib_save_LIBS
7948 fi
7949 echoscip-shell system . . echo. "$as_me:7949: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
7950 echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
7951 if testscip-shell system . . test. "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
7952
7953 : "${cf_nculib_root:=$cf_term_lib}"
7954 break
7955
7956 fi
7957
7958 done
7959
7960 fi
7961
7962 fi
7963
7964 # Check for library containing initscr
7965 testscip-shell system . . test. "$cf_term_lib" != predefined && testscip-shell system . . test. "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
7966 if testscip-shell system . . test. "x$cf_curs_lib" = x
7967 then
7968 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
7969 do
7970 LIBS="-l$cf_curs_lib $cf_save_LIBS"
7971 if testscip-shell system . . test. "$cf_term_lib" = unknown || testscip-shell system . . test. "$cf_term_lib" = "$cf_curs_lib" ; then
7972 echoscip-shell system . . echo. "$as_me:7972: checking if we can link with $cf_curs_lib library" >&5
7973 echoscip-shell system . . echo. $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
7974 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
7975 #line 7975 "configure"
7976 #include "confdefs.h"
7977 #include <${cf_cv_ncurses_header:-curses.h}>
7978 int
7979 main (void)
7980 {
7981 initscr()
7982 ;
7983 return 0;
7984 }
7985 _ACEOF
7986 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
7987 if { (eval echo "$as_me:7987: \"$ac_link\"") >&5
7988 (eval $ac_link) 2>&5
7989 ac_status=$?
7990 echoscip-shell system . . echo. "$as_me:7990: \$? = $ac_status" >&5
7991 (exit "$ac_status"); } &&
7992 { ac_try='test -s "conftest$ac_exeext"'
7993 { (eval echo "$as_me:7993: \"$ac_try\"") >&5
7994 (eval $ac_try) 2>&5
7995 ac_status=$?
7996 echoscip-shell system . . echo. "$as_me:7996: \$? = $ac_status" >&5
7997 (exit "$ac_status"); }; }; then
7998 cf_result=yes
7999 else
8000 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
8001 catscip-shell system . . cat. "conftest.$ac_ext" >&5
8002 cf_result=no
8003 fi
8004 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8005 echoscip-shell system . . echo. "$as_me:8005: result: $cf_result" >&5
8006 echoscip-shell system . . echo. "${ECHO_T}$cf_result" >&6
8007 testscip-shell system . . test. "$cf_result" = yes && break
8008 elif testscip-shell system . . test. "$cf_curs_lib" = "$cf_term_lib" ; then
8009 cf_result=no
8010 elif testscip-shell system . . test. "$cf_term_lib" != predefined ; then
8011 echoscip-shell system . . echo. "$as_me:8011: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
8012 echoscip-shell system . . echo. $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
8013 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
8014 #line 8014 "configure"
8015 #include "confdefs.h"
8016 #include <${cf_cv_ncurses_header:-curses.h}>
8017 int
8018 main (void)
8019 {
8020 initscr(); endwin();
8021 ;
8022 return 0;
8023 }
8024 _ACEOF
8025 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
8026 if { (eval echo "$as_me:8026: \"$ac_link\"") >&5
8027 (eval $ac_link) 2>&5
8028 ac_status=$?
8029 echoscip-shell system . . echo. "$as_me:8029: \$? = $ac_status" >&5
8030 (exit "$ac_status"); } &&
8031 { ac_try='test -s "conftest$ac_exeext"'
8032 { (eval echo "$as_me:8032: \"$ac_try\"") >&5
8033 (eval $ac_try) 2>&5
8034 ac_status=$?
8035 echoscip-shell system . . echo. "$as_me:8035: \$? = $ac_status" >&5
8036 (exit "$ac_status"); }; }; then
8037 cf_result=no
8038 else
8039 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
8040 catscip-shell system . . cat. "conftest.$ac_ext" >&5
8041
8042 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
8043 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
8044 #line 8044 "configure"
8045 #include "confdefs.h"
8046 #include <${cf_cv_ncurses_header:-curses.h}>
8047 int
8048 main (void)
8049 {
8050 initscr()
8051 ;
8052 return 0;
8053 }
8054 _ACEOF
8055 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
8056 if { (eval echo "$as_me:8056: \"$ac_link\"") >&5
8057 (eval $ac_link) 2>&5
8058 ac_status=$?
8059 echoscip-shell system . . echo. "$as_me:8059: \$? = $ac_status" >&5
8060 (exit "$ac_status"); } &&
8061 { ac_try='test -s "conftest$ac_exeext"'
8062 { (eval echo "$as_me:8062: \"$ac_try\"") >&5
8063 (eval $ac_try) 2>&5
8064 ac_status=$?
8065 echoscip-shell system . . echo. "$as_me:8065: \$? = $ac_status" >&5
8066 (exit "$ac_status"); }; }; then
8067 cf_result=yes
8068 else
8069 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
8070 catscip-shell system . . cat. "conftest.$ac_ext" >&5
8071 cf_result=error
8072 fi
8073 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8074
8075 fi
8076 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8077 echoscip-shell system . . echo. "$as_me:8077: result: $cf_result" >&5
8078 echoscip-shell system . . echo. "${ECHO_T}$cf_result" >&6
8079 testscip-shell system . . test. "$cf_result" != error && break
8080 fi
8081 done
8082 fi
8083 testscip-shell system . . test. "$cf_curs_lib" = unknown && { { echoscip-shell system . . echo. "$as_me:8083: error: no curses library found" >&5
8084 echoscip-shell system . . echo. "$as_me: error: no curses library found" >&2;}
8085 { (exit 1); exit 1; }; }
8086 fi
8087 fi
8088
8089 ;;
8090 (ncursesw*)
8091
8092 for ac_header in wchar.h
8093 do
8094 as_ac_Header=`echoscip-shell system . . echo. "ac_cv_header_$ac_header" | $as_tr_sh`
8095 echoscip-shell system . . echo. "$as_me:8095: checking for $ac_header" >&5
8096 echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8098 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
8101 #line 8101 "configure"
8102 #include "confdefs.h"
8103 #include <$ac_header>
8104 _ACEOF
8105 if { (eval echo "$as_me:8105: \"$ac_cpp "conftest.$ac_ext"\"") >&5
8106 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
8107 ac_status=$?
8108 $EGREP -v '^ *\+' conftest.er1 >conftest.err
8109 rmscip-shell system . . rm. -f conftest.er1
8110 catscip-shell system . . cat. conftest.err >&5
8111 echoscip-shell system . . echo. "$as_me:8111: \$? = $ac_status" >&5
8112 (exit "$ac_status"); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then
8113 if testscip-shell system . . test. -s conftest.err; then
8114 ac_cpp_err=$ac_c_preproc_warn_flag
8115 else
8116 ac_cpp_err=
8117 fi
8118 else
8119 ac_cpp_err=yes
8120 fi
8121 if testscip-shell system . . test. -z "$ac_cpp_err"; then
8122 eval "$as_ac_Header=yes"
8123 else
8124 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
8125 catscip-shell system . . cat. "conftest.$ac_ext" >&5
8126 eval "$as_ac_Header=no"
8127 fi
8128 rmscip-shell system . . rm. -f conftest.err "conftest.$ac_ext"
8129 fi
8130 echoscip-shell system . . echo. "$as_me:8130: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
8131 echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
8132 if testscip-shell system . . test. "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
8133 catscip-shell system . . cat. >>confdefs.h <<EOF
8134 #define `echoscip-shell system . . echo. "HAVE_$ac_header" | $as_tr_cpp` 1
8135 EOF
8136
8137 fi
8138 done
8139
8140 echoscip-shell system . . echo. "$as_me:8140: checking for multibyte character support" >&5
8141 echoscip-shell system . . echo. $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
8142 if testscip-shell system . . test. "${cf_cv_utf8_lib+set}" = set; then
8143 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145
8146 cf_save_LIBS="$LIBS"
8147 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
8148 #line 8148 "configure"
8149 #include "confdefs.h"
8150
8151 $ac_includes_default
8152 #ifdef HAVE_WCHAR_H
8153 #include <wchar.h>
8154 #endif
8155
8156 int
8157 main (void)
8158 {
8159 putwc(0,(FILE*)0);
8160 ;
8161 return 0;
8162 }
8163 _ACEOF
8164 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
8165 if { (eval echo "$as_me:8165: \"$ac_link\"") >&5
8166 (eval $ac_link) 2>&5
8167 ac_status=$?
8168 echoscip-shell system . . echo. "$as_me:8168: \$? = $ac_status" >&5
8169 (exit "$ac_status"); } &&
8170 { ac_try='test -s "conftest$ac_exeext"'
8171 { (eval echo "$as_me:8171: \"$ac_try\"") >&5
8172 (eval $ac_try) 2>&5
8173 ac_status=$?
8174 echoscip-shell system . . echo. "$as_me:8174: \$? = $ac_status" >&5
8175 (exit "$ac_status"); }; }; then
8176 cf_cv_utf8_lib=yes
8177 else
8178 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
8179 catscip-shell system . . cat. "conftest.$ac_ext" >&5
8180
8181 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
8182 # will be set on completion of the AC_LINK_IFELSE below.
8183 cf_cv_header_path_utf8=
8184 cf_cv_library_path_utf8=
8185
8186 echoscip-shell system . . echo. "${as_me:-configure}:8186: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
8187
8188 cf_save_LIBS="$LIBS"
8189
8190 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
8191 #line 8191 "configure"
8192 #include "confdefs.h"
8193
8194 #include <libutf8.h>
8195 int
8196 main (void)
8197 {
8198 putwc(0,(FILE*)0);
8199 ;
8200 return 0;
8201 }
8202 _ACEOF
8203 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
8204 if { (eval echo "$as_me:8204: \"$ac_link\"") >&5
8205 (eval $ac_link) 2>&5
8206 ac_status=$?
8207 echoscip-shell system . . echo. "$as_me:8207: \$? = $ac_status" >&5
8208 (exit "$ac_status"); } &&
8209 { ac_try='test -s "conftest$ac_exeext"'
8210 { (eval echo "$as_me:8210: \"$ac_try\"") >&5
8211 (eval $ac_try) 2>&5
8212 ac_status=$?
8213 echoscip-shell system . . echo. "$as_me:8213: \$? = $ac_status" >&5
8214 (exit "$ac_status"); }; }; then
8215
8216 cf_cv_find_linkage_utf8=yes
8217 cf_cv_header_path_utf8=/usr/includescip-shell filesystem . . `/usr/include`.
8218 cf_cv_library_path_utf8=/usr/libscip-shell filesystem . . `/usr/lib`.
8219
8220 else
8221 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
8222 catscip-shell system . . cat. "conftest.$ac_ext" >&5
8223
8224 LIBS="-lutf8 $cf_save_LIBS"
8225
8226 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
8227 #line 8227 "configure"
8228 #include "confdefs.h"
8229
8230 #include <libutf8.h>
8231 int
8232 main (void)
8233 {
8234 putwc(0,(FILE*)0);
8235 ;
8236 return 0;
8237 }
8238 _ACEOF
8239 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
8240 if { (eval echo "$as_me:8240: \"$ac_link\"") >&5
8241 (eval $ac_link) 2>&5
8242 ac_status=$?
8243 echoscip-shell system . . echo. "$as_me:8243: \$? = $ac_status" >&5
8244 (exit "$ac_status"); } &&
8245 { ac_try='test -s "conftest$ac_exeext"'
8246 { (eval echo "$as_me:8246: \"$ac_try\"") >&5
8247 (eval $ac_try) 2>&5
8248 ac_status=$?
8249 echoscip-shell system . . echo. "$as_me:8249: \$? = $ac_status" >&5
8250 (exit "$ac_status"); }; }; then
8251
8252 cf_cv_find_linkage_utf8=yes
8253 cf_cv_header_path_utf8=/usr/includescip-shell filesystem . . `/usr/include`.
8254 cf_cv_library_path_utf8=/usr/libscip-shell filesystem . . `/usr/lib`.
8255 cf_cv_library_file_utf8="-lutf8"
8256
8257 else
8258 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
8259 catscip-shell system . . cat. "conftest.$ac_ext" >&5
8260
8261 cf_cv_find_linkage_utf8=no
8262 LIBS="$cf_save_LIBS"
8263
8264 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " find linkage for utf8 library" 1>&6
8265
8266 echoscip-shell system . . echo. "${as_me:-configure}:8266: testing find linkage for utf8 library ..." 1>&5
8267
8268 echoscip-shell system . . echo. "${as_me:-configure}:8268: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
8269
8270 cf_save_CPPFLAGS="$CPPFLAGS"
8271 cf_test_CPPFLAGS="$CPPFLAGS"
8272
8273 cf_search=
8274
8275 # collect the current set of include-directories from compiler flags
8276 cf_header_path_list=""
8277 if testscip-shell system . . test. -n "${CFLAGS}${CPPFLAGS}" ; then
8278 for cf_header_path in $CPPFLAGS $CFLAGS
8279 do
8280 case "$cf_header_path" in
8281 (-I*)
8282 cf_header_path=`echoscip-shell system . . echo. ".$cf_header_path" |sedscip-shell system . . sed. -e 's/^...//' -e 's,/include$,,'`
8283
8284 testscip-shell system . . test. "x$cf_header_path" != "xNONE" && \
8285 test -d "$cf_header_path" && \
8286 {
8287 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for include-directories under $cf_header_path"
8288 testscip-shell system . . test. -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
8289 testscip-shell system . . test. -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
8290 testscip-shell system . . test. -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include"
8291 testscip-shell system . . test. -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
8292 testscip-shell system . . test. -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
8293 }
8294
8295 cf_header_path_list="$cf_header_path_list $cf_search"
8296 ;;
8297 esac
8298 done
8299 fi
8300
8301 # add the variations for the package we are looking for
8302
8303 cf_search=
8304
8305 testscip-shell system . . test. "x$prefix" != "xNONE" && \
8306 test -d "$prefix" && \
8307 {
8308 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for include-directories under $prefix"
8309 testscip-shell system . . test. -d "$prefix/include" && cf_search="$cf_search $prefix/include"
8310 testscip-shell system . . test. -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
8311 testscip-shell system . . test. -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
8312 testscip-shell system . . test. -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
8313 testscip-shell system . . test. -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
8314 }
8315
8316 for cf_subdir_prefix in \
8317 /usr \
8318 /usr/local \
8319 /usr/pkg \
8320 /opt \
8321 /opt/local \
8322 $HOME
8323 do
8324
8325 testscip-shell system . . test. "x$cf_subdir_prefix" != "x$prefix" && \
8326 test -d "$cf_subdir_prefix" && \
8327 { testscip-shell system . . test. -z "$prefix" || testscip-shell system . . test. "x$prefix" = xNONE || testscip-shell system . . test. "x$cf_subdir_prefix" != "x$prefix"; } && {
8328 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for include-directories under $cf_subdir_prefix"
8329 testscip-shell system . . test. -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
8330 testscip-shell system . . test. -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
8331 testscip-shell system . . test. -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
8332 testscip-shell system . . test. -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
8333 testscip-shell system . . test. -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
8334 }
8335
8336 done
8337
8338 testscip-shell system . . test. "$includedir" != NONE && \
8339 test "$includedir" != "/usr/includescip-shell filesystem . . `/usr/include`." && \
8340 test -d "$includedir" && {
8341 testscip-shell system . . test. -d "$includedir" && cf_search="$cf_search $includedir"
8342 testscip-shell system . . test. -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
8343 }
8344
8345 testscip-shell system . . test. "$oldincludedir" != NONE && \
8346 test "$oldincludedir" != "/usr/includescip-shell filesystem . . `/usr/include`." && \
8347 test -d "$oldincludedir" && {
8348 testscip-shell system . . test. -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
8349 testscip-shell system . . test. -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
8350 }
8351
8352 cf_search="$cf_search $cf_header_path_list"
8353
8354 for cf_cv_header_path_utf8 in $cf_search
8355 do
8356 if testscip-shell system . . test. -d "$cf_cv_header_path_utf8" ; then
8357 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing $cf_cv_header_path_utf8" 1>&6
8358
8359 echoscip-shell system . . echo. "${as_me:-configure}:8359: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
8360
8361 CPPFLAGS="$cf_save_CPPFLAGS"
8362
8363 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8364 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
8365
8366 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
8367 #line 8367 "configure"
8368 #include "confdefs.h"
8369
8370 #include <libutf8.h>
8371 int
8372 main (void)
8373 {
8374 putwc(0,(FILE*)0);
8375 ;
8376 return 0;
8377 }
8378 _ACEOF
8379 rmscip-shell system . . rm. -f "conftest.$ac_objext"
8380 if { (eval echo "$as_me:8380: \"$ac_compile\"") >&5
8381 (eval $ac_compile) 2>&5
8382 ac_status=$?
8383 echoscip-shell system . . echo. "$as_me:8383: \$? = $ac_status" >&5
8384 (exit "$ac_status"); } &&
8385 { ac_try='test -s "conftest.$ac_objext"'
8386 { (eval echo "$as_me:8386: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echoscip-shell system . . echo. "$as_me:8389: \$? = $ac_status" >&5
8390 (exit "$ac_status"); }; }; then
8391
8392 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
8393
8394 echoscip-shell system . . echo. "${as_me:-configure}:8394: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
8395
8396 cf_cv_find_linkage_utf8=maybe
8397 cf_test_CPPFLAGS="$CPPFLAGS"
8398 break
8399 else
8400 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
8401 catscip-shell system . . cat. "conftest.$ac_ext" >&5
8402
8403 CPPFLAGS="$cf_save_CPPFLAGS"
8404
8405 fi
8406 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
8407 fi
8408 done
8409
8410 if testscip-shell system . . test. "$cf_cv_find_linkage_utf8" = maybe ; then
8411
8412 echoscip-shell system . . echo. "${as_me:-configure}:8412: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
8413
8414 cf_save_LIBS="$LIBS"
8415 cf_save_LDFLAGS="$LDFLAGS"
8416
8417 if testscip-shell system . . test. "$cf_cv_find_linkage_utf8" != yes ; then
8418
8419 cf_search=
8420 cf_library_path_list=""
8421 if testscip-shell system . . test. -n "${LDFLAGS}${LIBS}" ; then
8422 for cf_library_path in $LDFLAGS $LIBS
8423 do
8424 case "$cf_library_path" in
8425 (-L*)
8426 cf_library_path=`echoscip-shell system . . echo. ".$cf_library_path" |sedscip-shell system . . sed. -e 's/^...//' -e 's,/lib$,,'`
8427
8428 testscip-shell system . . test. "x$cf_library_path" != "xNONE" && \
8429 test -d "$cf_library_path" && \
8430 {
8431 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for lib-directories under $cf_library_path"
8432 testscip-shell system . . test. -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
8433 testscip-shell system . . test. -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
8434 testscip-shell system . . test. -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
8435 testscip-shell system . . test. -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
8436 testscip-shell system . . test. -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
8437 }
8438
8439 cf_library_path_list="$cf_library_path_list $cf_search"
8440 ;;
8441 esac
8442 done
8443 fi
8444
8445 cf_search=
8446
8447 testscip-shell system . . test. "x$prefix" != "xNONE" && \
8448 test -d "$prefix" && \
8449 {
8450 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for lib-directories under $prefix"
8451 testscip-shell system . . test. -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
8452 testscip-shell system . . test. -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
8453 testscip-shell system . . test. -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
8454 testscip-shell system . . test. -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
8455 testscip-shell system . . test. -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
8456 }
8457
8458 for cf_subdir_prefix in \
8459 /usr \
8460 /usr/local \
8461 /usr/pkg \
8462 /opt \
8463 /opt/local \
8464 $HOME
8465 do
8466
8467 testscip-shell system . . test. "x$cf_subdir_prefix" != "x$prefix" && \
8468 test -d "$cf_subdir_prefix" && \
8469 { testscip-shell system . . test. -z "$prefix" || testscip-shell system . . test. "x$prefix" = xNONE || testscip-shell system . . test. "x$cf_subdir_prefix" != "x$prefix"; } && {
8470 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for lib-directories under $cf_subdir_prefix"
8471 testscip-shell system . . test. -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
8472 testscip-shell system . . test. -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
8473 testscip-shell system . . test. -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
8474 testscip-shell system . . test. -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
8475 testscip-shell system . . test. -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
8476 }
8477
8478 done
8479
8480 cf_search="$cf_library_path_list $cf_search"
8481
8482 for cf_cv_library_path_utf8 in $cf_search
8483 do
8484 if testscip-shell system . . test. -d "$cf_cv_library_path_utf8" ; then
8485 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing $cf_cv_library_path_utf8" 1>&6
8486
8487 echoscip-shell system . . echo. "${as_me:-configure}:8487: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
8488
8489 CPPFLAGS="$cf_test_CPPFLAGS"
8490 LIBS="-lutf8 $cf_save_LIBS"
8491 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
8492 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
8493 #line 8493 "configure"
8494 #include "confdefs.h"
8495
8496 #include <libutf8.h>
8497 int
8498 main (void)
8499 {
8500 putwc(0,(FILE*)0);
8501 ;
8502 return 0;
8503 }
8504 _ACEOF
8505 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
8506 if { (eval echo "$as_me:8506: \"$ac_link\"") >&5
8507 (eval $ac_link) 2>&5
8508 ac_status=$?
8509 echoscip-shell system . . echo. "$as_me:8509: \$? = $ac_status" >&5
8510 (exit "$ac_status"); } &&
8511 { ac_try='test -s "conftest$ac_exeext"'
8512 { (eval echo "$as_me:8512: \"$ac_try\"") >&5
8513 (eval $ac_try) 2>&5
8514 ac_status=$?
8515 echoscip-shell system . . echo. "$as_me:8515: \$? = $ac_status" >&5
8516 (exit "$ac_status"); }; }; then
8517
8518 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
8519
8520 echoscip-shell system . . echo. "${as_me:-configure}:8520: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
8521
8522 cf_cv_find_linkage_utf8=yes
8523 cf_cv_library_file_utf8="-lutf8"
8524 break
8525 else
8526 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
8527 catscip-shell system . . cat. "conftest.$ac_ext" >&5
8528
8529 CPPFLAGS="$cf_save_CPPFLAGS"
8530 LIBS="$cf_save_LIBS"
8531 LDFLAGS="$cf_save_LDFLAGS"
8532
8533 fi
8534 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8535 fi
8536 done
8537 CPPFLAGS="$cf_save_CPPFLAGS"
8538 LDFLAGS="$cf_save_LDFLAGS"
8539 fi
8540
8541 else
8542 cf_cv_find_linkage_utf8=no
8543 fi
8544
8545 fi
8546 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8547
8548 fi
8549 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8550
8551 LIBS="$cf_save_LIBS"
8552
8553 if testscip-shell system . . test. "$cf_cv_find_linkage_utf8" = yes ; then
8554 cf_cv_utf8_lib=add-on
8555 else
8556 cf_cv_utf8_lib=no
8557 fi
8558
8559 fi
8560 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8561 fi
8562 echoscip-shell system . . echo. "$as_me:8562: result: $cf_cv_utf8_lib" >&5
8563 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_utf8_lib" >&6
8564
8565 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
8566 # ncurses/ncursesw:
8567 if testscip-shell system . . test. "$cf_cv_utf8_lib" = "add-on" ; then
8568
8569 catscip-shell system . . cat. >>confdefs.h <<\EOF
8570 #define HAVE_LIBUTF8_H 1
8571 EOF
8572
8573 if testscip-shell system . . test. -n "$cf_cv_header_path_utf8" ; then
8574 for cf_add_incdir in $cf_cv_header_path_utf8
8575 do
8576 while testscip-shell system . . test. "$cf_add_incdir" != /usr/includescip-shell filesystem . . `/usr/include`.
8577 do
8578 if testscip-shell system . . test. -d "$cf_add_incdir"
8579 then
8580 cf_have_incdir=no
8581 if testscip-shell system . . test. -n "$CFLAGS$CPPFLAGS" ; then
8582 # a loop is needed to ensure we can add subdirs of existing dirs
8583 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8584 if testscip-shell system . . test. ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8585 cf_have_incdir=yes; break
8586 fi
8587 done
8588 fi
8589
8590 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
8591 if testscip-shell system . . test. "$cf_add_incdir" = /usr/local/includescip-shell filesystem . . `/usr/local/include`. ; then
8592 if testscip-shell system . . test. "$GCC" = yes
8593 then
8594 cf_save_CPPFLAGS=$CPPFLAGS
8595
8596 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8597 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
8598
8599 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
8600 #line 8600 "configure"
8601 #include "confdefs.h"
8602 #include <stdio.h>
8603 int
8604 main (void)
8605 {
8606 printf("Hello")
8607 ;
8608 return 0;
8609 }
8610 _ACEOF
8611 rmscip-shell system . . rm. -f "conftest.$ac_objext"
8612 if { (eval echo "$as_me:8612: \"$ac_compile\"") >&5
8613 (eval $ac_compile) 2>&5
8614 ac_status=$?
8615 echoscip-shell system . . echo. "$as_me:8615: \$? = $ac_status" >&5
8616 (exit "$ac_status"); } &&
8617 { ac_try='test -s "conftest.$ac_objext"'
8618 { (eval echo "$as_me:8618: \"$ac_try\"") >&5
8619 (eval $ac_try) 2>&5
8620 ac_status=$?
8621 echoscip-shell system . . echo. "$as_me:8621: \$? = $ac_status" >&5
8622 (exit "$ac_status"); }; }; then
8623 :
8624 else
8625 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
8626 catscip-shell system . . cat. "conftest.$ac_ext" >&5
8627 cf_have_incdir=yes
8628 fi
8629 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
8630 CPPFLAGS=$cf_save_CPPFLAGS
8631 fi
8632 fi
8633 fi
8634
8635 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
8636 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " adding $cf_add_incdir to include-path" 1>&6
8637
8638 echoscip-shell system . . echo. "${as_me:-configure}:8638: testing adding $cf_add_incdir to include-path ..." 1>&5
8639
8640 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8641
8642 cf_top_incdir=`echoscip-shell system . . echo. "$cf_add_incdir" | sedscip-shell system . . sed. -e 's%/include/.*$%/include%'`
8643 testscip-shell system . . test. "$cf_top_incdir" = "$cf_add_incdir" && break
8644 cf_add_incdir="$cf_top_incdir"
8645 else
8646 break
8647 fi
8648 else
8649 break
8650 fi
8651 done
8652 done
8653 fi
8654
8655 if testscip-shell system . . test. -n "$cf_cv_library_path_utf8" ; then
8656 for cf_add_libdir in $cf_cv_library_path_utf8
8657 do
8658 if testscip-shell system . . test. "$cf_add_libdir" = /usr/libscip-shell filesystem . . `/usr/lib`. ; then
8659 :
8660 elif testscip-shell system . . test. -d "$cf_add_libdir"
8661 then
8662 cf_have_libdir=no
8663 if testscip-shell system . . test. -n "$LDFLAGS$LIBS" ; then
8664 # a loop is needed to ensure we can add subdirs of existing dirs
8665 for cf_test_libdir in $LDFLAGS $LIBS ; do
8666 if testscip-shell system . . test. ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
8667 cf_have_libdir=yes; break
8668 fi
8669 done
8670 fi
8671 if testscip-shell system . . test. "$cf_have_libdir" = no ; then
8672 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " adding $cf_add_libdir to library-path" 1>&6
8673
8674 echoscip-shell system . . echo. "${as_me:-configure}:8674: testing adding $cf_add_libdir to library-path ..." 1>&5
8675
8676 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
8677 fi
8678 fi
8679 done
8680 fi
8681
8682 cf_add_libs="$LIBS"
8683 # reverse order
8684 cf_add_0lib=
8685 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8686 # filter duplicates
8687 for cf_add_1lib in $cf_add_0lib; do
8688 for cf_add_2lib in $cf_add_libs; do
8689 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
8690 cf_add_1lib=
8691 break
8692 fi
8693 done
8694 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8695 done
8696 LIBS="$cf_add_libs"
8697
8698 fi
8699
8700 cf_ncuconfig_root=$cf_cv_screen
8701 cf_have_ncuconfig=no
8702
8703 if testscip-shell system . . test. "x${PKG_CONFIG:=none}" != xnone; then
8704 echoscip-shell system . . echo. "$as_me:8704: checking pkg-config for $cf_ncuconfig_root" >&5
8705 echoscip-shell system . . echo. $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
8706 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
8707 echoscip-shell system . . echo. "$as_me:8707: result: yes" >&5
8708 echoscip-shell system . . echo. "${ECHO_T}yes" >&6
8709
8710 echoscip-shell system . . echo. "$as_me:8710: checking if the $cf_ncuconfig_root package files work" >&5
8711 echoscip-shell system . . echo. $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
8712 cf_have_ncuconfig=unknown
8713
8714 cf_save_CFLAGS="$CFLAGS"
8715 cf_save_CPPFLAGS="$CPPFLAGS"
8716 cf_save_LIBS="$LIBS"
8717
8718 cf_pkg_cflags="`$PKG_CONFIG --cflags $cf_ncuconfig_root`"
8719 cf_pkg_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
8720
8721 # while -W for passing linker flags is prevalent, it is not "standard".
8722 # At least one wrapper for c89/c99 (in Apple's xcode) has its own
8723 # incompatible _and_ non-standard -W option which gives an error. Work
8724 # around that pitfall.
8725 case "x${CC}@@${cf_pkg_libs}@${cf_pkg_cflags}" in
8726 (x*c[89]9@@*-W*)
8727
8728 cf_fix_cppflags=no
8729 cf_new_cflags=
8730 cf_new_cppflags=
8731 cf_new_extra_cppflags=
8732
8733 for cf_add_cflags in $cf_pkg_cflags
8734 do
8735 case "$cf_fix_cppflags" in
8736 (no)
8737 case "$cf_add_cflags" in
8738 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8739 case "$cf_add_cflags" in
8740 (-D*)
8741 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^-D[^=]*='\''\"[^"]*//'`
8742
8743 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8744 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
8745 && cf_fix_cppflags=yes
8746
8747 if testscip-shell system . . test. "$cf_fix_cppflags" = yes ; then
8748
8749 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8750 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8751
8752 continue
8753 elif testscip-shell system . . test. "${cf_tst_cflags}" = "\"'" ; then
8754
8755 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8756 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8757
8758 continue
8759 fi
8760 ;;
8761 esac
8762 case "$CPPFLAGS" in
8763 (*$cf_add_cflags)
8764 ;;
8765 (*)
8766 case "$cf_add_cflags" in
8767 (-D*)
8768 cf_tst_cppflags=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^...//' -e 's/=.*//'`
8769
8770 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
8771 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8772 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8773
8774 ;;
8775 esac
8776
8777 testscip-shell system . . test. -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8778 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8779
8780 ;;
8781 esac
8782 ;;
8783 (*)
8784
8785 testscip-shell system . . test. -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8786 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8787
8788 ;;
8789 esac
8790 ;;
8791 (yes)
8792
8793 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8794 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8795
8796 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^[^"]*"'\''//'`
8797
8798 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8799 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
8800 && cf_fix_cppflags=no
8801 ;;
8802 esac
8803 done
8804
8805 if testscip-shell system . . test. -n "$cf_new_cflags" ; then
8806
8807 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
8808 CFLAGS="${CFLAGS}$cf_new_cflags"
8809
8810 fi
8811
8812 if testscip-shell system . . test. -n "$cf_new_cppflags" ; then
8813
8814 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8815 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8816
8817 fi
8818
8819 if testscip-shell system . . test. -n "$cf_new_extra_cppflags" ; then
8820
8821 testscip-shell system . . test. -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8822 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8823
8824 fi
8825
8826 cf_add_libs="$LIBS"
8827 # reverse order
8828 cf_add_0lib=
8829 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8830 # filter duplicates
8831 for cf_add_1lib in $cf_add_0lib; do
8832 for cf_add_2lib in $cf_add_libs; do
8833 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
8834 cf_add_1lib=
8835 break
8836 fi
8837 done
8838 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8839 done
8840 LIBS="$cf_add_libs"
8841
8842 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
8843 #line 8843 "configure"
8844 #include "confdefs.h"
8845 #include <${cf_cv_ncurses_header:-curses.h}>
8846 int
8847 main (void)
8848 {
8849 initscr(); mousemask(0,(mmask_t*)0); tigetstr((char *)0);
8850 ;
8851 return 0;
8852 }
8853 _ACEOF
8854 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
8855 if { (eval echo "$as_me:8855: \"$ac_link\"") >&5
8856 (eval $ac_link) 2>&5
8857 ac_status=$?
8858 echoscip-shell system . . echo. "$as_me:8858: \$? = $ac_status" >&5
8859 (exit "$ac_status"); } &&
8860 { ac_try='test -s "conftest$ac_exeext"'
8861 { (eval echo "$as_me:8861: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echoscip-shell system . . echo. "$as_me:8864: \$? = $ac_status" >&5
8865 (exit "$ac_status"); }; }; then
8866 if testscip-shell system . . test. "$cross_compiling" = yes; then
8867 cf_test_ncuconfig=maybe
8868 else
8869 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
8870 #line 8870 "configure"
8871 #include "confdefs.h"
8872 #include <${cf_cv_ncurses_header:-curses.h}>
8873 int main(void)
8874 { const char *xx = curses_version(); return (xx == (const char*)0); }
8875 _ACEOF
8876 rmscip-shell system . . rm. -f "conftest$ac_exeext"
8877 if { (eval echo "$as_me:8877: \"$ac_link\"") >&5
8878 (eval $ac_link) 2>&5
8879 ac_status=$?
8880 echoscip-shell system . . echo. "$as_me:8880: \$? = $ac_status" >&5
8881 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
8882 { (eval echo "$as_me:8882: \"$ac_try\"") >&5
8883 (eval $ac_try) 2>&5
8884 ac_status=$?
8885 echoscip-shell system . . echo. "$as_me:8885: \$? = $ac_status" >&5
8886 (exit "$ac_status"); }; }; then
8887 cf_test_ncuconfig=yes
8888 else
8889 echoscip-shell system . . echo. "$as_me: program exited with status $ac_status" >&5
8890 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
8891 catscip-shell system . . cat. "conftest.$ac_ext" >&5
8892 cf_test_ncuconfig=no
8893 fi
8894 rmscip-shell system . . rm. -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
8895 fi
8896 else
8897 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
8898 catscip-shell system . . cat. "conftest.$ac_ext" >&5
8899 cf_test_ncuconfig=no
8900 fi
8901 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8902
8903 CFLAGS="$cf_save_CFLAGS"
8904 CPPFLAGS="$cf_save_CPPFLAGS"
8905 LIBS="$cf_save_LIBS"
8906
8907 if testscip-shell system . . test. "x$cf_test_ncuconfig" != xyes; then
8908 cf_temp=`echoscip-shell system . . echo. "x$cf_pkg_cflags" | sedscip-shell system . . sed. -e s/^x// -e 's/-W[^ ]*//g'`
8909 cf_pkg_cflags="$cf_temp"
8910 cf_temp=`echoscip-shell system . . echo. "x$cf_pkg_libs" | sedscip-shell system . . sed. -e s/^x// -e 's/-W[^ ]*//g'`
8911 cf_pkg_libs="$cf_temp"
8912 fi
8913 ;;
8914 esac
8915
8916 for cf_required in $cf_ncuconfig_root
8917 do
8918 # check for duplicates
8919 for cf_require_pkg in $REQUIRE_PKG
8920 do
8921 if testscip-shell system . . test. "$cf_required" = "$cf_require_pkg"
8922 then
8923 cf_required=
8924 break
8925 fi
8926 done
8927 testscip-shell system . . test. -n "$cf_required" && REQUIRE_PKG="$REQUIRE_PKG $cf_required"
8928 done
8929
8930 for cf_add_cflags in $cf_pkg_cflags
8931 do
8932 case "x$cf_add_cflags" in
8933 (x-[DU]*)
8934
8935 cf_tmp_cflag=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^.//' -e 's/=.*//'`
8936 while truescip-shell system . . true.
8937 do
8938 cf_old_cflag=`echoscip-shell system . . echo. "x$CFLAGS" | sedscip-shell system . . sed. -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
8939 testscip-shell system . . test. "$CFLAGS" != "$cf_old_cflag" || break
8940
8941 CFLAGS="$cf_old_cflag"
8942 done
8943
8944 cf_tmp_cflag=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^.//' -e 's/=.*//'`
8945 while truescip-shell system . . true.
8946 do
8947 cf_old_cflag=`echoscip-shell system . . echo. "x$CPPFLAGS" | sedscip-shell system . . sed. -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
8948 testscip-shell system . . test. "$CPPFLAGS" != "$cf_old_cflag" || break
8949
8950 CPPFLAGS="$cf_old_cflag"
8951 done
8952
8953 ;;
8954 esac
8955
8956 cf_fix_cppflags=no
8957 cf_new_cflags=
8958 cf_new_cppflags=
8959 cf_new_extra_cppflags=
8960
8961 for cf_add_cflags in $cf_add_cflags
8962 do
8963 case "$cf_fix_cppflags" in
8964 (no)
8965 case "$cf_add_cflags" in
8966 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8967 case "$cf_add_cflags" in
8968 (-D*)
8969 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^-D[^=]*='\''\"[^"]*//'`
8970
8971 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8972 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
8973 && cf_fix_cppflags=yes
8974
8975 if testscip-shell system . . test. "$cf_fix_cppflags" = yes ; then
8976
8977 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8978 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8979
8980 continue
8981 elif testscip-shell system . . test. "${cf_tst_cflags}" = "\"'" ; then
8982
8983 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8984 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8985
8986 continue
8987 fi
8988 ;;
8989 esac
8990 case "$CPPFLAGS" in
8991 (*$cf_add_cflags)
8992 ;;
8993 (*)
8994 case "$cf_add_cflags" in
8995 (-D*)
8996 cf_tst_cppflags=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^...//' -e 's/=.*//'`
8997
8998 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
8999 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9000 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9001
9002 ;;
9003 esac
9004
9005 testscip-shell system . . test. -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9006 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9007
9008 ;;
9009 esac
9010 ;;
9011 (*)
9012
9013 testscip-shell system . . test. -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9014 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9015
9016 ;;
9017 esac
9018 ;;
9019 (yes)
9020
9021 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9022 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9023
9024 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^[^"]*"'\''//'`
9025
9026 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9027 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
9028 && cf_fix_cppflags=no
9029 ;;
9030 esac
9031 done
9032
9033 if testscip-shell system . . test. -n "$cf_new_cflags" ; then
9034
9035 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
9036 CFLAGS="${CFLAGS}$cf_new_cflags"
9037
9038 fi
9039
9040 if testscip-shell system . . test. -n "$cf_new_cppflags" ; then
9041
9042 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9043 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9044
9045 fi
9046
9047 if testscip-shell system . . test. -n "$cf_new_extra_cppflags" ; then
9048
9049 testscip-shell system . . test. -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9050 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9051
9052 fi
9053
9054 done
9055
9056 cf_add_libs="$LIBS"
9057 # reverse order
9058 cf_add_0lib=
9059 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
9060 # filter duplicates
9061 for cf_add_1lib in $cf_add_0lib; do
9062 for cf_add_2lib in $cf_add_libs; do
9063 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
9064 cf_add_1lib=
9065 break
9066 fi
9067 done
9068 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9069 done
9070 LIBS="$cf_add_libs"
9071
9072 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
9073 #line 9073 "configure"
9074 #include "confdefs.h"
9075 #include <${cf_cv_ncurses_header:-curses.h}>
9076 int
9077 main (void)
9078 {
9079 initscr(); mousemask(0,(void*)0); tigetstr((char *)0);
9080 ;
9081 return 0;
9082 }
9083 _ACEOF
9084 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
9085 if { (eval echo "$as_me:9085: \"$ac_link\"") >&5
9086 (eval $ac_link) 2>&5
9087 ac_status=$?
9088 echoscip-shell system . . echo. "$as_me:9088: \$? = $ac_status" >&5
9089 (exit "$ac_status"); } &&
9090 { ac_try='test -s "conftest$ac_exeext"'
9091 { (eval echo "$as_me:9091: \"$ac_try\"") >&5
9092 (eval $ac_try) 2>&5
9093 ac_status=$?
9094 echoscip-shell system . . echo. "$as_me:9094: \$? = $ac_status" >&5
9095 (exit "$ac_status"); }; }; then
9096 if testscip-shell system . . test. "$cross_compiling" = yes; then
9097 cf_have_ncuconfig=maybe
9098 else
9099 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
9100 #line 9100 "configure"
9101 #include "confdefs.h"
9102 #include <${cf_cv_ncurses_header:-curses.h}>
9103 int main(void)
9104 { const char *xx = curses_version(); return (xx == (const char*)0); }
9105 _ACEOF
9106 rmscip-shell system . . rm. -f "conftest$ac_exeext"
9107 if { (eval echo "$as_me:9107: \"$ac_link\"") >&5
9108 (eval $ac_link) 2>&5
9109 ac_status=$?
9110 echoscip-shell system . . echo. "$as_me:9110: \$? = $ac_status" >&5
9111 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9112 { (eval echo "$as_me:9112: \"$ac_try\"") >&5
9113 (eval $ac_try) 2>&5
9114 ac_status=$?
9115 echoscip-shell system . . echo. "$as_me:9115: \$? = $ac_status" >&5
9116 (exit "$ac_status"); }; }; then
9117 cf_have_ncuconfig=yes
9118 else
9119 echoscip-shell system . . echo. "$as_me: program exited with status $ac_status" >&5
9120 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
9121 catscip-shell system . . cat. "conftest.$ac_ext" >&5
9122 cf_have_ncuconfig=no
9123 fi
9124 rmscip-shell system . . rm. -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9125 fi
9126 else
9127 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
9128 catscip-shell system . . cat. "conftest.$ac_ext" >&5
9129 cf_have_ncuconfig=no
9130 fi
9131 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9132 echoscip-shell system . . echo. "$as_me:9132: result: $cf_have_ncuconfig" >&5
9133 echoscip-shell system . . echo. "${ECHO_T}$cf_have_ncuconfig" >&6
9134 testscip-shell system . . test. "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
9135 if testscip-shell system . . test. "$cf_have_ncuconfig" != "yes"
9136 then
9137 CPPFLAGS="$cf_save_CPPFLAGS"
9138 LIBS="$cf_save_LIBS"
9139 NCURSES_CONFIG_PKG=none
9140 else
9141
9142 catscip-shell system . . cat. >>confdefs.h <<\EOF
9143 #define NCURSES 1
9144 EOF
9145
9146 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
9147
9148 echoscip-shell system . . echo. "$as_me:9148: checking for terminfo header" >&5
9149 echoscip-shell system . . echo. $ECHO_N "checking for terminfo header... $ECHO_C" >&6
9150 if testscip-shell system . . test. "${cf_cv_term_header+set}" = set; then
9151 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
9152 else
9153
9154 case "${cf_cv_ncurses_header}" in
9155 (*/ncurses.h|*/ncursesw.h)
9156 cf_term_header=`echoscip-shell system . . echo. "$cf_cv_ncurses_header" | sedscip-shell system . . sed. -e 's%ncurses[^.]*\.h$%term.h%'`
9157 ;;
9158 (*)
9159 cf_term_header=term.h
9160 ;;
9161 esac
9162
9163 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
9164 do
9165 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
9166 #line 9166 "configure"
9167 #include "confdefs.h"
9168 #include <stdio.h>
9169 #include <${cf_cv_ncurses_header:-curses.h}>
9170 #include <$cf_test>
9171
9172 int
9173 main (void)
9174 {
9175 int x = auto_left_margin; (void)x
9176 ;
9177 return 0;
9178 }
9179 _ACEOF
9180 rmscip-shell system . . rm. -f "conftest.$ac_objext"
9181 if { (eval echo "$as_me:9181: \"$ac_compile\"") >&5
9182 (eval $ac_compile) 2>&5
9183 ac_status=$?
9184 echoscip-shell system . . echo. "$as_me:9184: \$? = $ac_status" >&5
9185 (exit "$ac_status"); } &&
9186 { ac_try='test -s "conftest.$ac_objext"'
9187 { (eval echo "$as_me:9187: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echoscip-shell system . . echo. "$as_me:9190: \$? = $ac_status" >&5
9191 (exit "$ac_status"); }; }; then
9192
9193 cf_cv_term_header="$cf_test"
9194 else
9195 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
9196 catscip-shell system . . cat. "conftest.$ac_ext" >&5
9197
9198 cf_cv_term_header=unknown
9199
9200 fi
9201 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
9202 testscip-shell system . . test. "$cf_cv_term_header" != unknown && break
9203 done
9204
9205 fi
9206 echoscip-shell system . . echo. "$as_me:9206: result: $cf_cv_term_header" >&5
9207 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_term_header" >&6
9208
9209 # Set definitions to allow ifdef'ing to accommodate subdirectories
9210
9211 case "$cf_cv_term_header" in
9212 (*term.h)
9213
9214 catscip-shell system . . cat. >>confdefs.h <<\EOF
9215 #define HAVE_TERM_H 1
9216 EOF
9217
9218 ;;
9219 esac
9220
9221 case "$cf_cv_term_header" in
9222 (ncurses/term.h)
9223
9224 catscip-shell system . . cat. >>confdefs.h <<\EOF
9225 #define HAVE_NCURSES_TERM_H 1
9226 EOF
9227
9228 ;;
9229 (ncursesw/term.h)
9230
9231 catscip-shell system . . cat. >>confdefs.h <<\EOF
9232 #define HAVE_NCURSESW_TERM_H 1
9233 EOF
9234
9235 ;;
9236 esac
9237
9238 fi
9239
9240 else
9241 echoscip-shell system . . echo. "$as_me:9241: result: no" >&5
9242 echoscip-shell system . . echo. "${ECHO_T}no" >&6
9243 NCURSES_CONFIG_PKG=none
9244 fi
9245 else
9246 NCURSES_CONFIG_PKG=none
9247 fi
9248
9249 if testscip-shell system . . test. "x$cf_have_ncuconfig" = "xno"; then
9250 cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echoscip-shell system . . echo. "Looking for ${cf_ncurses_config}"
9251
9252 if testscip-shell system . . test. -n "$ac_tool_prefix"; then
9253 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
9254 do
9255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9257 echoscip-shell system . . echo. "$as_me:9257: checking for $ac_word" >&5
9258 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9259 if testscip-shell system . . test. "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
9260 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
9261 else
9262 if testscip-shell system . . test. -n "$NCURSES_CONFIG"; then
9263 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
9264 else
9265 ac_save_IFS=$IFS; IFS=$ac_path_separator
9266 ac_dummy="$PATH"
9267 for ac_dir in $ac_dummy; do
9268 IFS=$ac_save_IFS
9269 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
9270 $as_executable_p "$ac_dir/$ac_word" || continue
9271 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
9272 echoscip-shell system . . echo. "$as_me:9272: found $ac_dir/$ac_word" >&5
9273 break
9274 done
9275
9276 fi
9277 fi
9278 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
9279 if testscip-shell system . . test. -n "$NCURSES_CONFIG"; then
9280 echoscip-shell system . . echo. "$as_me:9280: result: $NCURSES_CONFIG" >&5
9281 echoscip-shell system . . echo. "${ECHO_T}$NCURSES_CONFIG" >&6
9282 else
9283 echoscip-shell system . . echo. "$as_me:9283: result: no" >&5
9284 echoscip-shell system . . echo. "${ECHO_T}no" >&6
9285 fi
9286
9287 testscip-shell system . . test. -n "$NCURSES_CONFIG" && break
9288 done
9289 fi
9290 if testscip-shell system . . test. -z "$NCURSES_CONFIG"; then
9291 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
9292 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
9293 do
9294 # Extract the first word of "$ac_prog", so it can be a program name with args.
9295 set dummy $ac_prog; ac_word=$2
9296 echoscip-shell system . . echo. "$as_me:9296: checking for $ac_word" >&5
9297 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9298 if testscip-shell system . . test. "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
9299 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
9300 else
9301 if testscip-shell system . . test. -n "$ac_ct_NCURSES_CONFIG"; then
9302 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
9303 else
9304 ac_save_IFS=$IFS; IFS=$ac_path_separator
9305 ac_dummy="$PATH"
9306 for ac_dir in $ac_dummy; do
9307 IFS=$ac_save_IFS
9308 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
9309 $as_executable_p "$ac_dir/$ac_word" || continue
9310 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
9311 echoscip-shell system . . echo. "$as_me:9311: found $ac_dir/$ac_word" >&5
9312 break
9313 done
9314
9315 fi
9316 fi
9317 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
9318 if testscip-shell system . . test. -n "$ac_ct_NCURSES_CONFIG"; then
9319 echoscip-shell system . . echo. "$as_me:9319: result: $ac_ct_NCURSES_CONFIG" >&5
9320 echoscip-shell system . . echo. "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
9321 else
9322 echoscip-shell system . . echo. "$as_me:9322: result: no" >&5
9323 echoscip-shell system . . echo. "${ECHO_T}no" >&6
9324 fi
9325
9326 testscip-shell system . . test. -n "$ac_ct_NCURSES_CONFIG" && break
9327 done
9328 testscip-shell system . . test. -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
9329
9330 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
9331 fi
9332
9333 if testscip-shell system . . test. "$NCURSES_CONFIG" != none ; then
9334
9335 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
9336 do
9337 case "x$cf_add_cflags" in
9338 (x-[DU]*)
9339
9340 cf_tmp_cflag=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^.//' -e 's/=.*//'`
9341 while truescip-shell system . . true.
9342 do
9343 cf_old_cflag=`echoscip-shell system . . echo. "x$CFLAGS" | sedscip-shell system . . sed. -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
9344 testscip-shell system . . test. "$CFLAGS" != "$cf_old_cflag" || break
9345
9346 CFLAGS="$cf_old_cflag"
9347 done
9348
9349 cf_tmp_cflag=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^.//' -e 's/=.*//'`
9350 while truescip-shell system . . true.
9351 do
9352 cf_old_cflag=`echoscip-shell system . . echo. "x$CPPFLAGS" | sedscip-shell system . . sed. -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
9353 testscip-shell system . . test. "$CPPFLAGS" != "$cf_old_cflag" || break
9354
9355 CPPFLAGS="$cf_old_cflag"
9356 done
9357
9358 ;;
9359 esac
9360
9361 cf_fix_cppflags=no
9362 cf_new_cflags=
9363 cf_new_cppflags=
9364 cf_new_extra_cppflags=
9365
9366 for cf_add_cflags in $cf_add_cflags
9367 do
9368 case "$cf_fix_cppflags" in
9369 (no)
9370 case "$cf_add_cflags" in
9371 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9372 case "$cf_add_cflags" in
9373 (-D*)
9374 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^-D[^=]*='\''\"[^"]*//'`
9375
9376 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9377 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
9378 && cf_fix_cppflags=yes
9379
9380 if testscip-shell system . . test. "$cf_fix_cppflags" = yes ; then
9381
9382 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9383 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9384
9385 continue
9386 elif testscip-shell system . . test. "${cf_tst_cflags}" = "\"'" ; then
9387
9388 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9389 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9390
9391 continue
9392 fi
9393 ;;
9394 esac
9395 case "$CPPFLAGS" in
9396 (*$cf_add_cflags)
9397 ;;
9398 (*)
9399 case "$cf_add_cflags" in
9400 (-D*)
9401 cf_tst_cppflags=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^...//' -e 's/=.*//'`
9402
9403 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
9404 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9405 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9406
9407 ;;
9408 esac
9409
9410 testscip-shell system . . test. -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9411 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9412
9413 ;;
9414 esac
9415 ;;
9416 (*)
9417
9418 testscip-shell system . . test. -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9419 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9420
9421 ;;
9422 esac
9423 ;;
9424 (yes)
9425
9426 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9427 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9428
9429 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^[^"]*"'\''//'`
9430
9431 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9432 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
9433 && cf_fix_cppflags=no
9434 ;;
9435 esac
9436 done
9437
9438 if testscip-shell system . . test. -n "$cf_new_cflags" ; then
9439
9440 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
9441 CFLAGS="${CFLAGS}$cf_new_cflags"
9442
9443 fi
9444
9445 if testscip-shell system . . test. -n "$cf_new_cppflags" ; then
9446
9447 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9448 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9449
9450 fi
9451
9452 if testscip-shell system . . test. -n "$cf_new_extra_cppflags" ; then
9453
9454 testscip-shell system . . test. -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9455 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9456
9457 fi
9458
9459 done
9460
9461 cf_add_libs="$LIBS"
9462 # reverse order
9463 cf_add_0lib=
9464 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
9465 # filter duplicates
9466 for cf_add_1lib in $cf_add_0lib; do
9467 for cf_add_2lib in $cf_add_libs; do
9468 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
9469 cf_add_1lib=
9470 break
9471 fi
9472 done
9473 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9474 done
9475 LIBS="$cf_add_libs"
9476
9477 # even with config script, some packages use no-override for curses.h
9478
9479 echoscip-shell system . . echo. "$as_me:9479: checking if we have identified curses headers" >&5
9480 echoscip-shell system . . echo. $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
9481 if testscip-shell system . . test. "${cf_cv_ncurses_header+set}" = set; then
9482 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
9483 else
9484
9485 cf_cv_ncurses_header=none
9486 for cf_header in \
9487 ncurses.h $cf_cv_screen/ncurses.h \
9488 curses.h $cf_cv_screen/curses.h
9489 do
9490 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
9491 #line 9491 "configure"
9492 #include "confdefs.h"
9493 #include <${cf_header}>
9494 int
9495 main (void)
9496 {
9497 initscr(); endwin()
9498 ;
9499 return 0;
9500 }
9501 _ACEOF
9502 rmscip-shell system . . rm. -f "conftest.$ac_objext"
9503 if { (eval echo "$as_me:9503: \"$ac_compile\"") >&5
9504 (eval $ac_compile) 2>&5
9505 ac_status=$?
9506 echoscip-shell system . . echo. "$as_me:9506: \$? = $ac_status" >&5
9507 (exit "$ac_status"); } &&
9508 { ac_try='test -s "conftest.$ac_objext"'
9509 { (eval echo "$as_me:9509: \"$ac_try\"") >&5
9510 (eval $ac_try) 2>&5
9511 ac_status=$?
9512 echoscip-shell system . . echo. "$as_me:9512: \$? = $ac_status" >&5
9513 (exit "$ac_status"); }; }; then
9514 cf_cv_ncurses_header=$cf_header; break
9515 else
9516 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
9517 catscip-shell system . . cat. "conftest.$ac_ext" >&5
9518 fi
9519 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
9520 done
9521
9522 fi
9523 echoscip-shell system . . echo. "$as_me:9523: result: $cf_cv_ncurses_header" >&5
9524 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_ncurses_header" >&6
9525
9526 if testscip-shell system . . test. "$cf_cv_ncurses_header" = none ; then
9527 { { echoscip-shell system . . echo. "$as_me:9527: error: No curses header-files found" >&5
9528 echoscip-shell system . . echo. "$as_me: error: No curses header-files found" >&2;}
9529 { (exit 1); exit 1; }; }
9530 fi
9531
9532 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
9533
9534 for ac_header in $cf_cv_ncurses_header
9535 do
9536 as_ac_Header=`echoscip-shell system . . echo. "ac_cv_header_$ac_header" | $as_tr_sh`
9537 echoscip-shell system . . echo. "$as_me:9537: checking for $ac_header" >&5
9538 echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9540 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
9543 #line 9543 "configure"
9544 #include "confdefs.h"
9545 #include <$ac_header>
9546 _ACEOF
9547 if { (eval echo "$as_me:9547: \"$ac_cpp "conftest.$ac_ext"\"") >&5
9548 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
9549 ac_status=$?
9550 $EGREP -v '^ *\+' conftest.er1 >conftest.err
9551 rmscip-shell system . . rm. -f conftest.er1
9552 catscip-shell system . . cat. conftest.err >&5
9553 echoscip-shell system . . echo. "$as_me:9553: \$? = $ac_status" >&5
9554 (exit "$ac_status"); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then
9555 if testscip-shell system . . test. -s conftest.err; then
9556 ac_cpp_err=$ac_c_preproc_warn_flag
9557 else
9558 ac_cpp_err=
9559 fi
9560 else
9561 ac_cpp_err=yes
9562 fi
9563 if testscip-shell system . . test. -z "$ac_cpp_err"; then
9564 eval "$as_ac_Header=yes"
9565 else
9566 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
9567 catscip-shell system . . cat. "conftest.$ac_ext" >&5
9568 eval "$as_ac_Header=no"
9569 fi
9570 rmscip-shell system . . rm. -f conftest.err "conftest.$ac_ext"
9571 fi
9572 echoscip-shell system . . echo. "$as_me:9572: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
9573 echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
9574 if testscip-shell system . . test. "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
9575 catscip-shell system . . cat. >>confdefs.h <<EOF
9576 #define `echoscip-shell system . . echo. "HAVE_$ac_header" | $as_tr_cpp` 1
9577 EOF
9578
9579 fi
9580 done
9581
9582 catscip-shell system . . cat. >>confdefs.h <<\EOF
9583 #define NCURSES 1
9584 EOF
9585
9586 cf_nculib_ROOT=`echoscip-shell system . . echo. "HAVE_LIB$cf_ncuconfig_root" | sedscip-shell system . . sed. y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9587
9588 catscip-shell system . . cat. >>confdefs.h <<EOF
9589 #define $cf_nculib_ROOT 1
9590 EOF
9591
9592 cf_cv_ncurses_version="`$NCURSES_CONFIG --version`"
9593
9594 else
9595
9596 cf_ncuhdr_root=$cf_cv_screen
9597
9598 testscip-shell system . . test. -n "$cf_cv_curses_dir" && \
9599 test "$cf_cv_curses_dir" != "no" && { \
9600
9601 if testscip-shell system . . test. -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
9602 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
9603 do
9604 while testscip-shell system . . test. "$cf_add_incdir" != /usr/includescip-shell filesystem . . `/usr/include`.
9605 do
9606 if testscip-shell system . . test. -d "$cf_add_incdir"
9607 then
9608 cf_have_incdir=no
9609 if testscip-shell system . . test. -n "$CFLAGS$CPPFLAGS" ; then
9610 # a loop is needed to ensure we can add subdirs of existing dirs
9611 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9612 if testscip-shell system . . test. ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9613 cf_have_incdir=yes; break
9614 fi
9615 done
9616 fi
9617
9618 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
9619 if testscip-shell system . . test. "$cf_add_incdir" = /usr/local/includescip-shell filesystem . . `/usr/local/include`. ; then
9620 if testscip-shell system . . test. "$GCC" = yes
9621 then
9622 cf_save_CPPFLAGS=$CPPFLAGS
9623
9624 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9625 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
9626
9627 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
9628 #line 9628 "configure"
9629 #include "confdefs.h"
9630 #include <stdio.h>
9631 int
9632 main (void)
9633 {
9634 printf("Hello")
9635 ;
9636 return 0;
9637 }
9638 _ACEOF
9639 rmscip-shell system . . rm. -f "conftest.$ac_objext"
9640 if { (eval echo "$as_me:9640: \"$ac_compile\"") >&5
9641 (eval $ac_compile) 2>&5
9642 ac_status=$?
9643 echoscip-shell system . . echo. "$as_me:9643: \$? = $ac_status" >&5
9644 (exit "$ac_status"); } &&
9645 { ac_try='test -s "conftest.$ac_objext"'
9646 { (eval echo "$as_me:9646: \"$ac_try\"") >&5
9647 (eval $ac_try) 2>&5
9648 ac_status=$?
9649 echoscip-shell system . . echo. "$as_me:9649: \$? = $ac_status" >&5
9650 (exit "$ac_status"); }; }; then
9651 :
9652 else
9653 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
9654 catscip-shell system . . cat. "conftest.$ac_ext" >&5
9655 cf_have_incdir=yes
9656 fi
9657 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
9658 CPPFLAGS=$cf_save_CPPFLAGS
9659 fi
9660 fi
9661 fi
9662
9663 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
9664 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " adding $cf_add_incdir to include-path" 1>&6
9665
9666 echoscip-shell system . . echo. "${as_me:-configure}:9666: testing adding $cf_add_incdir to include-path ..." 1>&5
9667
9668 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9669
9670 cf_top_incdir=`echoscip-shell system . . echo. "$cf_add_incdir" | sedscip-shell system . . sed. -e 's%/include/.*$%/include%'`
9671 testscip-shell system . . test. "$cf_top_incdir" = "$cf_add_incdir" && break
9672 cf_add_incdir="$cf_top_incdir"
9673 else
9674 break
9675 fi
9676 else
9677 break
9678 fi
9679 done
9680 done
9681 fi
9682
9683 }
9684
9685 echoscip-shell system . . echo. "$as_me:9685: checking for $cf_ncuhdr_root header in include-path" >&5
9686 echoscip-shell system . . echo. $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
9687 if testscip-shell system . . test. "${cf_cv_ncurses_h+set}" = set; then
9688 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
9689 else
9690
9691 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
9692 { testscip-shell system . . test. "$cf_ncuhdr_root" = ncurses || testscip-shell system . . test. "$cf_ncuhdr_root" = ncursesw; } && cf_header_list="$cf_header_list curses.h ncurses.h"
9693 for cf_header in $cf_header_list
9694 do
9695
9696 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
9697 #line 9697 "configure"
9698 #include "confdefs.h"
9699
9700 #include <$cf_header>
9701 int
9702 main (void)
9703 {
9704
9705 #ifdef NCURSES_VERSION
9706
9707 printf("%s\\n", NCURSES_VERSION);
9708 #else
9709 #ifdef __NCURSES_H
9710 printf("old\\n");
9711 #else
9712 #error __NCURSES_H is not defined
9713 #endif
9714 #endif
9715
9716 ;
9717 return 0;
9718 }
9719 _ACEOF
9720 rmscip-shell system . . rm. -f "conftest.$ac_objext"
9721 if { (eval echo "$as_me:9721: \"$ac_compile\"") >&5
9722 (eval $ac_compile) 2>&5
9723 ac_status=$?
9724 echoscip-shell system . . echo. "$as_me:9724: \$? = $ac_status" >&5
9725 (exit "$ac_status"); } &&
9726 { ac_try='test -s "conftest.$ac_objext"'
9727 { (eval echo "$as_me:9727: \"$ac_try\"") >&5
9728 (eval $ac_try) 2>&5
9729 ac_status=$?
9730 echoscip-shell system . . echo. "$as_me:9730: \$? = $ac_status" >&5
9731 (exit "$ac_status"); }; }; then
9732 cf_cv_ncurses_h=$cf_header
9733
9734 else
9735 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
9736 catscip-shell system . . cat. "conftest.$ac_ext" >&5
9737 cf_cv_ncurses_h=no
9738 fi
9739 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
9740
9741 testscip-shell system . . test. "$cf_cv_ncurses_h" != no && break
9742 done
9743
9744 fi
9745 echoscip-shell system . . echo. "$as_me:9745: result: $cf_cv_ncurses_h" >&5
9746 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_ncurses_h" >&6
9747
9748 if testscip-shell system . . test. "$cf_cv_ncurses_h" != no ; then
9749 cf_cv_ncurses_header=$cf_cv_ncurses_h
9750 else
9751
9752 echoscip-shell system . . echo. "$as_me:9752: checking for $cf_ncuhdr_root include-path" >&5
9753 echoscip-shell system . . echo. $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
9754 if testscip-shell system . . test. "${cf_cv_ncurses_h2+set}" = set; then
9755 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
9756 else
9757
9758 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo.
9759
9760 cf_search=
9761
9762 # collect the current set of include-directories from compiler flags
9763 cf_header_path_list=""
9764 if testscip-shell system . . test. -n "${CFLAGS}${CPPFLAGS}" ; then
9765 for cf_header_path in $CPPFLAGS $CFLAGS
9766 do
9767 case "$cf_header_path" in
9768 (-I*)
9769 cf_header_path=`echoscip-shell system . . echo. ".$cf_header_path" |sedscip-shell system . . sed. -e 's/^...//' -e 's,/include$,,'`
9770
9771 testscip-shell system . . test. "x$cf_header_path" != "xNONE" && \
9772 test -d "$cf_header_path" && \
9773 {
9774 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for include-directories under $cf_header_path"
9775 testscip-shell system . . test. -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
9776 testscip-shell system . . test. -d "$cf_header_path/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
9777 testscip-shell system . . test. -d "$cf_header_path/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
9778 testscip-shell system . . test. -d "$cf_header_path/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
9779 testscip-shell system . . test. -d "$cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
9780 }
9781
9782 cf_header_path_list="$cf_header_path_list $cf_search"
9783 ;;
9784 esac
9785 done
9786 fi
9787
9788 # add the variations for the package we are looking for
9789
9790 cf_search=
9791
9792 testscip-shell system . . test. "x$prefix" != "xNONE" && \
9793 test -d "$prefix" && \
9794 {
9795 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for include-directories under $prefix"
9796 testscip-shell system . . test. -d "$prefix/include" && cf_search="$cf_search $prefix/include"
9797 testscip-shell system . . test. -d "$prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
9798 testscip-shell system . . test. -d "$prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
9799 testscip-shell system . . test. -d "$prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
9800 testscip-shell system . . test. -d "$prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
9801 }
9802
9803 for cf_subdir_prefix in \
9804 /usr \
9805 /usr/local \
9806 /usr/pkg \
9807 /opt \
9808 /opt/local \
9809 $HOME
9810 do
9811
9812 testscip-shell system . . test. "x$cf_subdir_prefix" != "x$prefix" && \
9813 test -d "$cf_subdir_prefix" && \
9814 { testscip-shell system . . test. -z "$prefix" || testscip-shell system . . test. "x$prefix" = xNONE || testscip-shell system . . test. "x$cf_subdir_prefix" != "x$prefix"; } && {
9815 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for include-directories under $cf_subdir_prefix"
9816 testscip-shell system . . test. -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
9817 testscip-shell system . . test. -d "$cf_subdir_prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
9818 testscip-shell system . . test. -d "$cf_subdir_prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
9819 testscip-shell system . . test. -d "$cf_subdir_prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
9820 testscip-shell system . . test. -d "$cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
9821 }
9822
9823 done
9824
9825 testscip-shell system . . test. "$includedir" != NONE && \
9826 test "$includedir" != "/usr/includescip-shell filesystem . . `/usr/include`." && \
9827 test -d "$includedir" && {
9828 testscip-shell system . . test. -d "$includedir" && cf_search="$cf_search $includedir"
9829 testscip-shell system . . test. -d "$includedir/$cf_ncuhdr_root" && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
9830 }
9831
9832 testscip-shell system . . test. "$oldincludedir" != NONE && \
9833 test "$oldincludedir" != "/usr/includescip-shell filesystem . . `/usr/include`." && \
9834 test -d "$oldincludedir" && {
9835 testscip-shell system . . test. -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
9836 testscip-shell system . . test. -d "$oldincludedir/$cf_ncuhdr_root" && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
9837 }
9838
9839 cf_search="$cf_search $cf_header_path_list"
9840
9841 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. "search path $cf_search"
9842 cf_save2_CPPFLAGS="$CPPFLAGS"
9843 for cf_incdir in $cf_search
9844 do
9845
9846 if testscip-shell system . . test. -n "$cf_incdir" ; then
9847 for cf_add_incdir in $cf_incdir
9848 do
9849 while testscip-shell system . . test. "$cf_add_incdir" != /usr/includescip-shell filesystem . . `/usr/include`.
9850 do
9851 if testscip-shell system . . test. -d "$cf_add_incdir"
9852 then
9853 cf_have_incdir=no
9854 if testscip-shell system . . test. -n "$CFLAGS$CPPFLAGS" ; then
9855 # a loop is needed to ensure we can add subdirs of existing dirs
9856 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9857 if testscip-shell system . . test. ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9858 cf_have_incdir=yes; break
9859 fi
9860 done
9861 fi
9862
9863 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
9864 if testscip-shell system . . test. "$cf_add_incdir" = /usr/local/includescip-shell filesystem . . `/usr/local/include`. ; then
9865 if testscip-shell system . . test. "$GCC" = yes
9866 then
9867 cf_save_CPPFLAGS=$CPPFLAGS
9868
9869 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9870 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
9871
9872 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
9873 #line 9873 "configure"
9874 #include "confdefs.h"
9875 #include <stdio.h>
9876 int
9877 main (void)
9878 {
9879 printf("Hello")
9880 ;
9881 return 0;
9882 }
9883 _ACEOF
9884 rmscip-shell system . . rm. -f "conftest.$ac_objext"
9885 if { (eval echo "$as_me:9885: \"$ac_compile\"") >&5
9886 (eval $ac_compile) 2>&5
9887 ac_status=$?
9888 echoscip-shell system . . echo. "$as_me:9888: \$? = $ac_status" >&5
9889 (exit "$ac_status"); } &&
9890 { ac_try='test -s "conftest.$ac_objext"'
9891 { (eval echo "$as_me:9891: \"$ac_try\"") >&5
9892 (eval $ac_try) 2>&5
9893 ac_status=$?
9894 echoscip-shell system . . echo. "$as_me:9894: \$? = $ac_status" >&5
9895 (exit "$ac_status"); }; }; then
9896 :
9897 else
9898 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
9899 catscip-shell system . . cat. "conftest.$ac_ext" >&5
9900 cf_have_incdir=yes
9901 fi
9902 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
9903 CPPFLAGS=$cf_save_CPPFLAGS
9904 fi
9905 fi
9906 fi
9907
9908 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
9909 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " adding $cf_add_incdir to include-path" 1>&6
9910
9911 echoscip-shell system . . echo. "${as_me:-configure}:9911: testing adding $cf_add_incdir to include-path ..." 1>&5
9912
9913 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9914
9915 cf_top_incdir=`echoscip-shell system . . echo. "$cf_add_incdir" | sedscip-shell system . . sed. -e 's%/include/.*$%/include%'`
9916 testscip-shell system . . test. "$cf_top_incdir" = "$cf_add_incdir" && break
9917 cf_add_incdir="$cf_top_incdir"
9918 else
9919 break
9920 fi
9921 else
9922 break
9923 fi
9924 done
9925 done
9926 fi
9927
9928 for cf_header in \
9929 ncurses.h \
9930 curses.h
9931 do
9932
9933 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
9934 #line 9934 "configure"
9935 #include "confdefs.h"
9936
9937 #include <$cf_header>
9938 int
9939 main (void)
9940 {
9941
9942 #ifdef NCURSES_VERSION
9943
9944 printf("%s\\n", NCURSES_VERSION);
9945 #else
9946 #ifdef __NCURSES_H
9947 printf("old\\n");
9948 #else
9949 #error __NCURSES_H is not defined
9950 #endif
9951 #endif
9952
9953 ;
9954 return 0;
9955 }
9956 _ACEOF
9957 rmscip-shell system . . rm. -f "conftest.$ac_objext"
9958 if { (eval echo "$as_me:9958: \"$ac_compile\"") >&5
9959 (eval $ac_compile) 2>&5
9960 ac_status=$?
9961 echoscip-shell system . . echo. "$as_me:9961: \$? = $ac_status" >&5
9962 (exit "$ac_status"); } &&
9963 { ac_try='test -s "conftest.$ac_objext"'
9964 { (eval echo "$as_me:9964: \"$ac_try\"") >&5
9965 (eval $ac_try) 2>&5
9966 ac_status=$?
9967 echoscip-shell system . . echo. "$as_me:9967: \$? = $ac_status" >&5
9968 (exit "$ac_status"); }; }; then
9969 cf_cv_ncurses_h2=$cf_header
9970
9971 else
9972 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
9973 catscip-shell system . . cat. "conftest.$ac_ext" >&5
9974 cf_cv_ncurses_h2=no
9975 fi
9976 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
9977
9978 if testscip-shell system . . test. "$cf_cv_ncurses_h2" != no ; then
9979 cf_cv_ncurses_h2=$cf_incdir/$cf_header
9980 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. $ECHO_N " ... found $ECHO_C" 1>&6
9981 break
9982 fi
9983 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... tested $cf_incdir/$cf_header" 1>&6
9984 done
9985 CPPFLAGS="$cf_save2_CPPFLAGS"
9986 testscip-shell system . . test. "$cf_cv_ncurses_h2" != no && break
9987 done
9988 testscip-shell system . . test. "$cf_cv_ncurses_h2" = no && { { echoscip-shell system . . echo. "$as_me:9988: error: not found" >&5
9989 echoscip-shell system . . echo. "$as_me: error: not found" >&2;}
9990 { (exit 1); exit 1; }; }
9991
9992 fi
9993 echoscip-shell system . . echo. "$as_me:9993: result: $cf_cv_ncurses_h2" >&5
9994 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_ncurses_h2" >&6
9995
9996 cf_1st_incdir=`echoscip-shell system . . echo. "$cf_cv_ncurses_h2" | sedscip-shell system . . sed. -e 's%/[^/]*$%%'`
9997 cf_cv_ncurses_header="`basenamescip-shell system . . basename. "$cf_cv_ncurses_h2"`"
9998 if testscip-shell system . . test. "`basenamescip-shell system . . basename. "$cf_1st_incdir"`" = "$cf_ncuhdr_root" ; then
9999 cf_cv_ncurses_header="$cf_ncuhdr_root/$cf_cv_ncurses_header"
10000 fi
10001
10002 if testscip-shell system . . test. -n "$cf_1st_incdir" ; then
10003 for cf_add_incdir in $cf_1st_incdir
10004 do
10005 while testscip-shell system . . test. "$cf_add_incdir" != /usr/includescip-shell filesystem . . `/usr/include`.
10006 do
10007 if testscip-shell system . . test. -d "$cf_add_incdir"
10008 then
10009 cf_have_incdir=no
10010 if testscip-shell system . . test. -n "$CFLAGS$CPPFLAGS" ; then
10011 # a loop is needed to ensure we can add subdirs of existing dirs
10012 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
10013 if testscip-shell system . . test. ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10014 cf_have_incdir=yes; break
10015 fi
10016 done
10017 fi
10018
10019 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
10020 if testscip-shell system . . test. "$cf_add_incdir" = /usr/local/includescip-shell filesystem . . `/usr/local/include`. ; then
10021 if testscip-shell system . . test. "$GCC" = yes
10022 then
10023 cf_save_CPPFLAGS=$CPPFLAGS
10024
10025 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10026 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
10027
10028 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
10029 #line 10029 "configure"
10030 #include "confdefs.h"
10031 #include <stdio.h>
10032 int
10033 main (void)
10034 {
10035 printf("Hello")
10036 ;
10037 return 0;
10038 }
10039 _ACEOF
10040 rmscip-shell system . . rm. -f "conftest.$ac_objext"
10041 if { (eval echo "$as_me:10041: \"$ac_compile\"") >&5
10042 (eval $ac_compile) 2>&5
10043 ac_status=$?
10044 echoscip-shell system . . echo. "$as_me:10044: \$? = $ac_status" >&5
10045 (exit "$ac_status"); } &&
10046 { ac_try='test -s "conftest.$ac_objext"'
10047 { (eval echo "$as_me:10047: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10049 ac_status=$?
10050 echoscip-shell system . . echo. "$as_me:10050: \$? = $ac_status" >&5
10051 (exit "$ac_status"); }; }; then
10052 :
10053 else
10054 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
10055 catscip-shell system . . cat. "conftest.$ac_ext" >&5
10056 cf_have_incdir=yes
10057 fi
10058 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
10059 CPPFLAGS=$cf_save_CPPFLAGS
10060 fi
10061 fi
10062 fi
10063
10064 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
10065 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " adding $cf_add_incdir to include-path" 1>&6
10066
10067 echoscip-shell system . . echo. "${as_me:-configure}:10067: testing adding $cf_add_incdir to include-path ..." 1>&5
10068
10069 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10070
10071 cf_top_incdir=`echoscip-shell system . . echo. "$cf_add_incdir" | sedscip-shell system . . sed. -e 's%/include/.*$%/include%'`
10072 testscip-shell system . . test. "$cf_top_incdir" = "$cf_add_incdir" && break
10073 cf_add_incdir="$cf_top_incdir"
10074 else
10075 break
10076 fi
10077 else
10078 break
10079 fi
10080 done
10081 done
10082 fi
10083
10084 fi
10085
10086 # Set definitions to allow ifdef'ing for ncurses.h
10087
10088 case "$cf_cv_ncurses_header" in
10089 (*ncurses.h)
10090
10091 catscip-shell system . . cat. >>confdefs.h <<\EOF
10092 #define HAVE_NCURSES_H 1
10093 EOF
10094
10095 ;;
10096 esac
10097
10098 case "$cf_cv_ncurses_header" in
10099 (ncurses/curses.h|ncurses/ncurses.h)
10100
10101 catscip-shell system . . cat. >>confdefs.h <<\EOF
10102 #define HAVE_NCURSES_NCURSES_H 1
10103 EOF
10104
10105 ;;
10106 (ncursesw/curses.h|ncursesw/ncurses.h)
10107
10108 catscip-shell system . . cat. >>confdefs.h <<\EOF
10109 #define HAVE_NCURSESW_NCURSES_H 1
10110 EOF
10111
10112 ;;
10113 esac
10114
10115 echoscip-shell system . . echo. "$as_me:10115: checking for terminfo header" >&5
10116 echoscip-shell system . . echo. $ECHO_N "checking for terminfo header... $ECHO_C" >&6
10117 if testscip-shell system . . test. "${cf_cv_term_header+set}" = set; then
10118 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
10119 else
10120
10121 case "${cf_cv_ncurses_header}" in
10122 (*/ncurses.h|*/ncursesw.h)
10123 cf_term_header=`echoscip-shell system . . echo. "$cf_cv_ncurses_header" | sedscip-shell system . . sed. -e 's%ncurses[^.]*\.h$%term.h%'`
10124 ;;
10125 (*)
10126 cf_term_header=term.h
10127 ;;
10128 esac
10129
10130 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
10131 do
10132 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
10133 #line 10133 "configure"
10134 #include "confdefs.h"
10135 #include <stdio.h>
10136 #include <${cf_cv_ncurses_header:-curses.h}>
10137 #include <$cf_test>
10138
10139 int
10140 main (void)
10141 {
10142 int x = auto_left_margin; (void)x
10143 ;
10144 return 0;
10145 }
10146 _ACEOF
10147 rmscip-shell system . . rm. -f "conftest.$ac_objext"
10148 if { (eval echo "$as_me:10148: \"$ac_compile\"") >&5
10149 (eval $ac_compile) 2>&5
10150 ac_status=$?
10151 echoscip-shell system . . echo. "$as_me:10151: \$? = $ac_status" >&5
10152 (exit "$ac_status"); } &&
10153 { ac_try='test -s "conftest.$ac_objext"'
10154 { (eval echo "$as_me:10154: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10156 ac_status=$?
10157 echoscip-shell system . . echo. "$as_me:10157: \$? = $ac_status" >&5
10158 (exit "$ac_status"); }; }; then
10159
10160 cf_cv_term_header="$cf_test"
10161 else
10162 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
10163 catscip-shell system . . cat. "conftest.$ac_ext" >&5
10164
10165 cf_cv_term_header=unknown
10166
10167 fi
10168 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
10169 testscip-shell system . . test. "$cf_cv_term_header" != unknown && break
10170 done
10171
10172 fi
10173 echoscip-shell system . . echo. "$as_me:10173: result: $cf_cv_term_header" >&5
10174 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_term_header" >&6
10175
10176 # Set definitions to allow ifdef'ing to accommodate subdirectories
10177
10178 case "$cf_cv_term_header" in
10179 (*term.h)
10180
10181 catscip-shell system . . cat. >>confdefs.h <<\EOF
10182 #define HAVE_TERM_H 1
10183 EOF
10184
10185 ;;
10186 esac
10187
10188 case "$cf_cv_term_header" in
10189 (ncurses/term.h)
10190
10191 catscip-shell system . . cat. >>confdefs.h <<\EOF
10192 #define HAVE_NCURSES_TERM_H 1
10193 EOF
10194
10195 ;;
10196 (ncursesw/term.h)
10197
10198 catscip-shell system . . cat. >>confdefs.h <<\EOF
10199 #define HAVE_NCURSESW_TERM_H 1
10200 EOF
10201
10202 ;;
10203 esac
10204
10205 # some applications need this, but should check for NCURSES_VERSION
10206
10207 catscip-shell system . . cat. >>confdefs.h <<\EOF
10208 #define NCURSES 1
10209 EOF
10210
10211 echoscip-shell system . . echo. "$as_me:10211: checking for ncurses version" >&5
10212 echoscip-shell system . . echo. $ECHO_N "checking for ncurses version... $ECHO_C" >&6
10213 if testscip-shell system . . test. "${cf_cv_ncurses_version+set}" = set; then
10214 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216
10217 cf_cv_ncurses_version=no
10218 cf_tempfile=out$$
10219 rmscip-shell system . . rm. -f "$cf_tempfile"
10220 if testscip-shell system . . test. "$cross_compiling" = yes; then
10221
10222 # This will not work if the preprocessor splits the line after the
10223 # Autoconf token. The 'unproto' program does that.
10224 catscip-shell system . . cat. > "conftest.$ac_ext" <<EOF
10225 #include <${cf_cv_ncurses_header:-curses.h}>
10226 #undef Autoconf
10227 #ifdef NCURSES_VERSION
10228 Autoconf NCURSES_VERSION
10229 #else
10230 #ifdef __NCURSES_H
10231 Autoconf "old"
10232 #endif
10233 ;
10234 #endif
10235 EOF
10236 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
10237 { (eval echo "$as_me:10237: \"$cf_try\"") >&5
10238 (eval $cf_try) 2>&5
10239 ac_status=$?
10240 echoscip-shell system . . echo. "$as_me:10240: \$? = $ac_status" >&5
10241 (exit "$ac_status"); }
10242 if testscip-shell system . . test. -f conftest.out ; then
10243 cf_out=`sedscip-shell system . . sed. -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
10244 testscip-shell system . . test. -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
10245 rmscip-shell system . . rm. -f conftest.out
10246 fi
10247
10248 else
10249 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
10250 #line 10250 "configure"
10251 #include "confdefs.h"
10252
10253 $ac_includes_default
10254
10255 #include <${cf_cv_ncurses_header:-curses.h}>
10256
10257 int main(void)
10258 {
10259 FILE *fp = fopen("$cf_tempfile", "w");
10260 #ifdef NCURSES_VERSION
10261 # ifdef NCURSES_VERSION_PATCH
10262 fprintf(fp, "%s.%d\\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
10263 # else
10264 fprintf(fp, "%s\\n", NCURSES_VERSION);
10265 # endif
10266 #else
10267 # ifdef __NCURSES_H
10268 fprintf(fp, "old\\n");
10269 # else
10270 #error expected ncurses header to define __NCURSES_H
10271 # endif
10272 #endif
10273 ${cf_cv_main_return:-return}(0);
10274 }
10275 _ACEOF
10276 rmscip-shell system . . rm. -f "conftest$ac_exeext"
10277 if { (eval echo "$as_me:10277: \"$ac_link\"") >&5
10278 (eval $ac_link) 2>&5
10279 ac_status=$?
10280 echoscip-shell system . . echo. "$as_me:10280: \$? = $ac_status" >&5
10281 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
10282 { (eval echo "$as_me:10282: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10284 ac_status=$?
10285 echoscip-shell system . . echo. "$as_me:10285: \$? = $ac_status" >&5
10286 (exit "$ac_status"); }; }; then
10287
10288 cf_cv_ncurses_version=`catscip-shell system . . cat. $cf_tempfile`
10289 else
10290 echoscip-shell system . . echo. "$as_me: program exited with status $ac_status" >&5
10291 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
10292 catscip-shell system . . cat. "conftest.$ac_ext" >&5
10293 fi
10294 rmscip-shell system . . rm. -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
10295 fi
10296 rmscip-shell system . . rm. -f "$cf_tempfile"
10297
10298 fi
10299 echoscip-shell system . . echo. "$as_me:10299: result: $cf_cv_ncurses_version" >&5
10300 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_ncurses_version" >&6
10301 testscip-shell system . . test. "$cf_cv_ncurses_version" = no ||
10302 catscip-shell system . . cat. >>confdefs.h <<\EOF
10303 #define NCURSES 1
10304 EOF
10305
10306 cf_nculib_root=$cf_cv_screen
10307 # This works, except for the special case where we find gpm, but
10308 # ncurses is in a nonstandard location via $LIBS, and we really want
10309 # to link gpm.
10310 cf_ncurses_LIBS=""
10311 cf_ncurses_SAVE="$LIBS"
10312 echoscip-shell system . . echo. "$as_me:10312: checking for Gpm_Open in -lgpm" >&5
10313 echoscip-shell system . . echo. $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
10314 if testscip-shell system . . test. "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
10315 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
10316 else
10317 ac_check_lib_save_LIBS=$LIBS
10318 LIBS="-lgpm $LIBS"
10319 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
10320 #line 10320 "configure"
10321 #include "confdefs.h"
10322
10323 /* Override any gcc2 internal prototype to avoid an error. */
10324 #ifdef __cplusplus
10325 extern "C"
10326 #endif
10327 /* We use char because int might match the return type of a gcc2
10328 builtin and then its argument prototype would still apply. */
10329 char Gpm_Open (void);
10330 int
10331 main (void)
10332 {
10333 Gpm_Open ();
10334 ;
10335 return 0;
10336 }
10337 _ACEOF
10338 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
10339 if { (eval echo "$as_me:10339: \"$ac_link\"") >&5
10340 (eval $ac_link) 2>&5
10341 ac_status=$?
10342 echoscip-shell system . . echo. "$as_me:10342: \$? = $ac_status" >&5
10343 (exit "$ac_status"); } &&
10344 { ac_try='test -s "conftest$ac_exeext"'
10345 { (eval echo "$as_me:10345: \"$ac_try\"") >&5
10346 (eval $ac_try) 2>&5
10347 ac_status=$?
10348 echoscip-shell system . . echo. "$as_me:10348: \$? = $ac_status" >&5
10349 (exit "$ac_status"); }; }; then
10350 ac_cv_lib_gpm_Gpm_Open=yes
10351 else
10352 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
10353 catscip-shell system . . cat. "conftest.$ac_ext" >&5
10354 ac_cv_lib_gpm_Gpm_Open=no
10355 fi
10356 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10357 LIBS=$ac_check_lib_save_LIBS
10358 fi
10359 echoscip-shell system . . echo. "$as_me:10359: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10360 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
10361 if testscip-shell system . . test. "$ac_cv_lib_gpm_Gpm_Open" = yes; then
10362 echoscip-shell system . . echo. "$as_me:10362: checking for initscr in -lgpm" >&5
10363 echoscip-shell system . . echo. $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
10364 if testscip-shell system . . test. "${ac_cv_lib_gpm_initscr+set}" = set; then
10365 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367 ac_check_lib_save_LIBS=$LIBS
10368 LIBS="-lgpm $LIBS"
10369 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
10370 #line 10370 "configure"
10371 #include "confdefs.h"
10372
10373 /* Override any gcc2 internal prototype to avoid an error. */
10374 #ifdef __cplusplus
10375 extern "C"
10376 #endif
10377 /* We use char because int might match the return type of a gcc2
10378 builtin and then its argument prototype would still apply. */
10379 char initscr (void);
10380 int
10381 main (void)
10382 {
10383 initscr ();
10384 ;
10385 return 0;
10386 }
10387 _ACEOF
10388 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
10389 if { (eval echo "$as_me:10389: \"$ac_link\"") >&5
10390 (eval $ac_link) 2>&5
10391 ac_status=$?
10392 echoscip-shell system . . echo. "$as_me:10392: \$? = $ac_status" >&5
10393 (exit "$ac_status"); } &&
10394 { ac_try='test -s "conftest$ac_exeext"'
10395 { (eval echo "$as_me:10395: \"$ac_try\"") >&5
10396 (eval $ac_try) 2>&5
10397 ac_status=$?
10398 echoscip-shell system . . echo. "$as_me:10398: \$? = $ac_status" >&5
10399 (exit "$ac_status"); }; }; then
10400 ac_cv_lib_gpm_initscr=yes
10401 else
10402 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
10403 catscip-shell system . . cat. "conftest.$ac_ext" >&5
10404 ac_cv_lib_gpm_initscr=no
10405 fi
10406 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10407 LIBS=$ac_check_lib_save_LIBS
10408 fi
10409 echoscip-shell system . . echo. "$as_me:10409: result: $ac_cv_lib_gpm_initscr" >&5
10410 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
10411 if testscip-shell system . . test. "$ac_cv_lib_gpm_initscr" = yes; then
10412 LIBS="$cf_ncurses_SAVE"
10413 else
10414 cf_ncurses_LIBS="-lgpm"
10415 fi
10416
10417 fi
10418
10419 case "$host_os" in
10420 (freebsd*)
10421 # This is only necessary if you are linking against an obsolete
10422 # version of ncurses (but it should do no harm, since it is static).
10423 if testscip-shell system . . test. "$cf_nculib_root" = ncurses ; then
10424 echoscip-shell system . . echo. "$as_me:10424: checking for tgoto in -lmytinfo" >&5
10425 echoscip-shell system . . echo. $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
10426 if testscip-shell system . . test. "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
10427 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
10428 else
10429 ac_check_lib_save_LIBS=$LIBS
10430 LIBS="-lmytinfo $LIBS"
10431 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
10432 #line 10432 "configure"
10433 #include "confdefs.h"
10434
10435 /* Override any gcc2 internal prototype to avoid an error. */
10436 #ifdef __cplusplus
10437 extern "C"
10438 #endif
10439 /* We use char because int might match the return type of a gcc2
10440 builtin and then its argument prototype would still apply. */
10441 char tgoto (void);
10442 int
10443 main (void)
10444 {
10445 tgoto ();
10446 ;
10447 return 0;
10448 }
10449 _ACEOF
10450 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
10451 if { (eval echo "$as_me:10451: \"$ac_link\"") >&5
10452 (eval $ac_link) 2>&5
10453 ac_status=$?
10454 echoscip-shell system . . echo. "$as_me:10454: \$? = $ac_status" >&5
10455 (exit "$ac_status"); } &&
10456 { ac_try='test -s "conftest$ac_exeext"'
10457 { (eval echo "$as_me:10457: \"$ac_try\"") >&5
10458 (eval $ac_try) 2>&5
10459 ac_status=$?
10460 echoscip-shell system . . echo. "$as_me:10460: \$? = $ac_status" >&5
10461 (exit "$ac_status"); }; }; then
10462 ac_cv_lib_mytinfo_tgoto=yes
10463 else
10464 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
10465 catscip-shell system . . cat. "conftest.$ac_ext" >&5
10466 ac_cv_lib_mytinfo_tgoto=no
10467 fi
10468 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10469 LIBS=$ac_check_lib_save_LIBS
10470 fi
10471 echoscip-shell system . . echo. "$as_me:10471: result: $ac_cv_lib_mytinfo_tgoto" >&5
10472 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
10473 if testscip-shell system . . test. "$ac_cv_lib_mytinfo_tgoto" = yes; then
10474 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
10475 fi
10476
10477 fi
10478 ;;
10479 esac
10480
10481 cf_add_libs="$LIBS"
10482 # reverse order
10483 cf_add_0lib=
10484 for cf_add_1lib in $cf_ncurses_LIBS; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10485 # filter duplicates
10486 for cf_add_1lib in $cf_add_0lib; do
10487 for cf_add_2lib in $cf_add_libs; do
10488 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
10489 cf_add_1lib=
10490 break
10491 fi
10492 done
10493 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10494 done
10495 LIBS="$cf_add_libs"
10496
10497 if testscip-shell system . . test. -n "$cf_cv_curses_dir" && testscip-shell system . . test. "$cf_cv_curses_dir" != "no"
10498 then
10499
10500 cf_add_libs="$LIBS"
10501 # reverse order
10502 cf_add_0lib=
10503 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10504 # filter duplicates
10505 for cf_add_1lib in $cf_add_0lib; do
10506 for cf_add_2lib in $cf_add_libs; do
10507 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
10508 cf_add_1lib=
10509 break
10510 fi
10511 done
10512 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10513 done
10514 LIBS="$cf_add_libs"
10515
10516 else
10517
10518 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=no'
10519 cf_libdir=""
10520 echoscip-shell system . . echo. "$as_me:10520: checking for initscr" >&5
10521 echoscip-shell system . . echo. $ECHO_N "checking for initscr... $ECHO_C" >&6
10522 if testscip-shell system . . test. "${ac_cv_func_initscr+set}" = set; then
10523 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
10524 else
10525 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
10526 #line 10526 "configure"
10527 #include "confdefs.h"
10528 #define initscr autoconf_temporary
10529 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
10530 #undef initscr
10531
10532 #ifdef __cplusplus
10533 extern "C"
10534 #endif
10535
10536 /* We use char because int might match the return type of a gcc2
10537 builtin and then its argument prototype would still apply. */
10538 char initscr (void);
10539
10540 int
10541 main (void)
10542 {
10543
10544 /* The GNU C library defines stubs for functions which it implements
10545 to always fail with ENOSYS. Some functions are actually named
10546 something starting with __ and the normal name is an alias. */
10547 #if defined (__stub_initscr) || defined (__stub___initscr)
10548 #error found stub for initscr
10549 #endif
10550
10551 return initscr ();
10552 ;
10553 return 0;
10554 }
10555 _ACEOF
10556 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
10557 if { (eval echo "$as_me:10557: \"$ac_link\"") >&5
10558 (eval $ac_link) 2>&5
10559 ac_status=$?
10560 echoscip-shell system . . echo. "$as_me:10560: \$? = $ac_status" >&5
10561 (exit "$ac_status"); } &&
10562 { ac_try='test -s "conftest$ac_exeext"'
10563 { (eval echo "$as_me:10563: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10565 ac_status=$?
10566 echoscip-shell system . . echo. "$as_me:10566: \$? = $ac_status" >&5
10567 (exit "$ac_status"); }; }; then
10568 ac_cv_func_initscr=yes
10569 else
10570 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
10571 catscip-shell system . . cat. "conftest.$ac_ext" >&5
10572 ac_cv_func_initscr=no
10573 fi
10574 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10575 fi
10576 echoscip-shell system . . echo. "$as_me:10576: result: $ac_cv_func_initscr" >&5
10577 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_func_initscr" >&6
10578 if testscip-shell system . . test. "$ac_cv_func_initscr" = yes; then
10579 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
10580 else
10581
10582 cf_save_LIBS="$LIBS"
10583 echoscip-shell system . . echo. "$as_me:10583: checking for initscr in -l$cf_nculib_root" >&5
10584 echoscip-shell system . . echo. $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
10585 LIBS="-l$cf_nculib_root $LIBS"
10586 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
10587 #line 10587 "configure"
10588 #include "confdefs.h"
10589 #include <${cf_cv_ncurses_header:-curses.h}>
10590 int
10591 main (void)
10592 {
10593 initscr()
10594 ;
10595 return 0;
10596 }
10597 _ACEOF
10598 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
10599 if { (eval echo "$as_me:10599: \"$ac_link\"") >&5
10600 (eval $ac_link) 2>&5
10601 ac_status=$?
10602 echoscip-shell system . . echo. "$as_me:10602: \$? = $ac_status" >&5
10603 (exit "$ac_status"); } &&
10604 { ac_try='test -s "conftest$ac_exeext"'
10605 { (eval echo "$as_me:10605: \"$ac_try\"") >&5
10606 (eval $ac_try) 2>&5
10607 ac_status=$?
10608 echoscip-shell system . . echo. "$as_me:10608: \$? = $ac_status" >&5
10609 (exit "$ac_status"); }; }; then
10610 echoscip-shell system . . echo. "$as_me:10610: result: yes" >&5
10611 echoscip-shell system . . echo. "${ECHO_T}yes" >&6
10612 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
10613
10614 else
10615 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
10616 catscip-shell system . . cat. "conftest.$ac_ext" >&5
10617 echoscip-shell system . . echo. "$as_me:10617: result: no" >&5
10618 echoscip-shell system . . echo. "${ECHO_T}no" >&6
10619
10620 cf_search=
10621 cf_library_path_list=""
10622 if testscip-shell system . . test. -n "${LDFLAGS}${LIBS}" ; then
10623 for cf_library_path in $LDFLAGS $LIBS
10624 do
10625 case "$cf_library_path" in
10626 (-L*)
10627 cf_library_path=`echoscip-shell system . . echo. ".$cf_library_path" |sedscip-shell system . . sed. -e 's/^...//' -e 's,/lib$,,'`
10628
10629 testscip-shell system . . test. "x$cf_library_path" != "xNONE" && \
10630 test -d "$cf_library_path" && \
10631 {
10632 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for lib-directories under $cf_library_path"
10633 testscip-shell system . . test. -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
10634 testscip-shell system . . test. -d "$cf_library_path/lib/$cf_nculib_root" && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
10635 testscip-shell system . . test. -d "$cf_library_path/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
10636 testscip-shell system . . test. -d "$cf_library_path/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
10637 testscip-shell system . . test. -d "$cf_library_path/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root"
10638 }
10639
10640 cf_library_path_list="$cf_library_path_list $cf_search"
10641 ;;
10642 esac
10643 done
10644 fi
10645
10646 cf_search=
10647
10648 testscip-shell system . . test. "x$prefix" != "xNONE" && \
10649 test -d "$prefix" && \
10650 {
10651 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for lib-directories under $prefix"
10652 testscip-shell system . . test. -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
10653 testscip-shell system . . test. -d "$prefix/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
10654 testscip-shell system . . test. -d "$prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
10655 testscip-shell system . . test. -d "$prefix/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
10656 testscip-shell system . . test. -d "$prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
10657 }
10658
10659 for cf_subdir_prefix in \
10660 /usr \
10661 /usr/local \
10662 /usr/pkg \
10663 /opt \
10664 /opt/local \
10665 $HOME
10666 do
10667
10668 testscip-shell system . . test. "x$cf_subdir_prefix" != "x$prefix" && \
10669 test -d "$cf_subdir_prefix" && \
10670 { testscip-shell system . . test. -z "$prefix" || testscip-shell system . . test. "x$prefix" = xNONE || testscip-shell system . . test. "x$cf_subdir_prefix" != "x$prefix"; } && {
10671 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for lib-directories under $cf_subdir_prefix"
10672 testscip-shell system . . test. -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
10673 testscip-shell system . . test. -d "$cf_subdir_prefix/lib/$cf_nculib_root" && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
10674 testscip-shell system . . test. -d "$cf_subdir_prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
10675 testscip-shell system . . test. -d "$cf_subdir_prefix/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
10676 testscip-shell system . . test. -d "$cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root"
10677 }
10678
10679 done
10680
10681 cf_search="$cf_library_path_list $cf_search"
10682
10683 for cf_libdir in $cf_search
10684 do
10685 echoscip-shell system . . echo. "$as_me:10685: checking for -l$cf_nculib_root in $cf_libdir" >&5
10686 echoscip-shell system . . echo. $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
10687 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
10688 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
10689 #line 10689 "configure"
10690 #include "confdefs.h"
10691 #include <${cf_cv_ncurses_header:-curses.h}>
10692 int
10693 main (void)
10694 {
10695 initscr()
10696 ;
10697 return 0;
10698 }
10699 _ACEOF
10700 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
10701 if { (eval echo "$as_me:10701: \"$ac_link\"") >&5
10702 (eval $ac_link) 2>&5
10703 ac_status=$?
10704 echoscip-shell system . . echo. "$as_me:10704: \$? = $ac_status" >&5
10705 (exit "$ac_status"); } &&
10706 { ac_try='test -s "conftest$ac_exeext"'
10707 { (eval echo "$as_me:10707: \"$ac_try\"") >&5
10708 (eval $ac_try) 2>&5
10709 ac_status=$?
10710 echoscip-shell system . . echo. "$as_me:10710: \$? = $ac_status" >&5
10711 (exit "$ac_status"); }; }; then
10712 echoscip-shell system . . echo. "$as_me:10712: result: yes" >&5
10713 echoscip-shell system . . echo. "${ECHO_T}yes" >&6
10714 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
10715 break
10716 else
10717 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
10718 catscip-shell system . . cat. "conftest.$ac_ext" >&5
10719 echoscip-shell system . . echo. "$as_me:10719: result: no" >&5
10720 echoscip-shell system . . echo. "${ECHO_T}no" >&6
10721 LIBS="$cf_save_LIBS"
10722 fi
10723 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10724 done
10725
10726 fi
10727 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10728
10729 fi
10730
10731 eval 'cf_found_library="$cf_cv_have_lib_'"$cf_nculib_root"\"
10732
10733 if testscip-shell system . . test. "$cf_found_library" = no ; then
10734 { { echoscip-shell system . . echo. "$as_me:10734: error: Cannot link $cf_nculib_root library" >&5
10735 echoscip-shell system . . echo. "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
10736 { (exit 1); exit 1; }; }
10737 fi
10738
10739 fi
10740
10741 if testscip-shell system . . test. -n "$cf_ncurses_LIBS" ; then
10742 echoscip-shell system . . echo. "$as_me:10742: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
10743 echoscip-shell system . . echo. $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
10744 cf_ncurses_SAVE="$LIBS"
10745 for p in $cf_ncurses_LIBS ; do
10746 q=`echoscip-shell system . . echo. "$LIBS" | sedscip-shell system . . sed. -e "s%$p %%" -e "s%$p$%%"`
10747 if testscip-shell system . . test. "$q" != "$LIBS" ; then
10748 LIBS="$q"
10749 fi
10750 done
10751 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
10752 #line 10752 "configure"
10753 #include "confdefs.h"
10754 #include <${cf_cv_ncurses_header:-curses.h}>
10755 int
10756 main (void)
10757 {
10758 initscr(); mousemask(0,(void*)0); tigetstr((char *)0);
10759 ;
10760 return 0;
10761 }
10762 _ACEOF
10763 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
10764 if { (eval echo "$as_me:10764: \"$ac_link\"") >&5
10765 (eval $ac_link) 2>&5
10766 ac_status=$?
10767 echoscip-shell system . . echo. "$as_me:10767: \$? = $ac_status" >&5
10768 (exit "$ac_status"); } &&
10769 { ac_try='test -s "conftest$ac_exeext"'
10770 { (eval echo "$as_me:10770: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10772 ac_status=$?
10773 echoscip-shell system . . echo. "$as_me:10773: \$? = $ac_status" >&5
10774 (exit "$ac_status"); }; }; then
10775 echoscip-shell system . . echo. "$as_me:10775: result: yes" >&5
10776 echoscip-shell system . . echo. "${ECHO_T}yes" >&6
10777 else
10778 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
10779 catscip-shell system . . cat. "conftest.$ac_ext" >&5
10780 echoscip-shell system . . echo. "$as_me:10780: result: no" >&5
10781 echoscip-shell system . . echo. "${ECHO_T}no" >&6
10782 LIBS="$cf_ncurses_SAVE"
10783 fi
10784 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10785 fi
10786
10787 cf_nculib_ROOT=`echoscip-shell system . . echo. "HAVE_LIB$cf_nculib_root" | sedscip-shell system . . sed. y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10788
10789 catscip-shell system . . cat. >>confdefs.h <<EOF
10790 #define $cf_nculib_ROOT 1
10791 EOF
10792
10793 fi
10794 else
10795 NCURSES_CONFIG=none
10796 fi
10797
10798 ;;
10799 (ncurses*)
10800
10801 cf_ncuconfig_root=$cf_cv_screen
10802 cf_have_ncuconfig=no
10803
10804 if testscip-shell system . . test. "x${PKG_CONFIG:=none}" != xnone; then
10805 echoscip-shell system . . echo. "$as_me:10805: checking pkg-config for $cf_ncuconfig_root" >&5
10806 echoscip-shell system . . echo. $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
10807 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
10808 echoscip-shell system . . echo. "$as_me:10808: result: yes" >&5
10809 echoscip-shell system . . echo. "${ECHO_T}yes" >&6
10810
10811 echoscip-shell system . . echo. "$as_me:10811: checking if the $cf_ncuconfig_root package files work" >&5
10812 echoscip-shell system . . echo. $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
10813 cf_have_ncuconfig=unknown
10814
10815 cf_save_CFLAGS="$CFLAGS"
10816 cf_save_CPPFLAGS="$CPPFLAGS"
10817 cf_save_LIBS="$LIBS"
10818
10819 cf_pkg_cflags="`$PKG_CONFIG --cflags $cf_ncuconfig_root`"
10820 cf_pkg_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
10821
10822 # while -W for passing linker flags is prevalent, it is not "standard".
10823 # At least one wrapper for c89/c99 (in Apple's xcode) has its own
10824 # incompatible _and_ non-standard -W option which gives an error. Work
10825 # around that pitfall.
10826 case "x${CC}@@${cf_pkg_libs}@${cf_pkg_cflags}" in
10827 (x*c[89]9@@*-W*)
10828
10829 cf_fix_cppflags=no
10830 cf_new_cflags=
10831 cf_new_cppflags=
10832 cf_new_extra_cppflags=
10833
10834 for cf_add_cflags in $cf_pkg_cflags
10835 do
10836 case "$cf_fix_cppflags" in
10837 (no)
10838 case "$cf_add_cflags" in
10839 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10840 case "$cf_add_cflags" in
10841 (-D*)
10842 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^-D[^=]*='\''\"[^"]*//'`
10843
10844 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10845 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
10846 && cf_fix_cppflags=yes
10847
10848 if testscip-shell system . . test. "$cf_fix_cppflags" = yes ; then
10849
10850 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10851 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10852
10853 continue
10854 elif testscip-shell system . . test. "${cf_tst_cflags}" = "\"'" ; then
10855
10856 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10857 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10858
10859 continue
10860 fi
10861 ;;
10862 esac
10863 case "$CPPFLAGS" in
10864 (*$cf_add_cflags)
10865 ;;
10866 (*)
10867 case "$cf_add_cflags" in
10868 (-D*)
10869 cf_tst_cppflags=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^...//' -e 's/=.*//'`
10870
10871 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
10872 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10873 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10874
10875 ;;
10876 esac
10877
10878 testscip-shell system . . test. -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10879 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10880
10881 ;;
10882 esac
10883 ;;
10884 (*)
10885
10886 testscip-shell system . . test. -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10887 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10888
10889 ;;
10890 esac
10891 ;;
10892 (yes)
10893
10894 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10895 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10896
10897 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^[^"]*"'\''//'`
10898
10899 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10900 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
10901 && cf_fix_cppflags=no
10902 ;;
10903 esac
10904 done
10905
10906 if testscip-shell system . . test. -n "$cf_new_cflags" ; then
10907
10908 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
10909 CFLAGS="${CFLAGS}$cf_new_cflags"
10910
10911 fi
10912
10913 if testscip-shell system . . test. -n "$cf_new_cppflags" ; then
10914
10915 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10916 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10917
10918 fi
10919
10920 if testscip-shell system . . test. -n "$cf_new_extra_cppflags" ; then
10921
10922 testscip-shell system . . test. -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10923 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10924
10925 fi
10926
10927 cf_add_libs="$LIBS"
10928 # reverse order
10929 cf_add_0lib=
10930 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10931 # filter duplicates
10932 for cf_add_1lib in $cf_add_0lib; do
10933 for cf_add_2lib in $cf_add_libs; do
10934 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
10935 cf_add_1lib=
10936 break
10937 fi
10938 done
10939 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10940 done
10941 LIBS="$cf_add_libs"
10942
10943 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
10944 #line 10944 "configure"
10945 #include "confdefs.h"
10946 #include <${cf_cv_ncurses_header:-curses.h}>
10947 int
10948 main (void)
10949 {
10950 initscr(); mousemask(0,(mmask_t*)0); tigetstr((char *)0);
10951 ;
10952 return 0;
10953 }
10954 _ACEOF
10955 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
10956 if { (eval echo "$as_me:10956: \"$ac_link\"") >&5
10957 (eval $ac_link) 2>&5
10958 ac_status=$?
10959 echoscip-shell system . . echo. "$as_me:10959: \$? = $ac_status" >&5
10960 (exit "$ac_status"); } &&
10961 { ac_try='test -s "conftest$ac_exeext"'
10962 { (eval echo "$as_me:10962: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10964 ac_status=$?
10965 echoscip-shell system . . echo. "$as_me:10965: \$? = $ac_status" >&5
10966 (exit "$ac_status"); }; }; then
10967 if testscip-shell system . . test. "$cross_compiling" = yes; then
10968 cf_test_ncuconfig=maybe
10969 else
10970 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
10971 #line 10971 "configure"
10972 #include "confdefs.h"
10973 #include <${cf_cv_ncurses_header:-curses.h}>
10974 int main(void)
10975 { const char *xx = curses_version(); return (xx == (const char*)0); }
10976 _ACEOF
10977 rmscip-shell system . . rm. -f "conftest$ac_exeext"
10978 if { (eval echo "$as_me:10978: \"$ac_link\"") >&5
10979 (eval $ac_link) 2>&5
10980 ac_status=$?
10981 echoscip-shell system . . echo. "$as_me:10981: \$? = $ac_status" >&5
10982 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
10983 { (eval echo "$as_me:10983: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10985 ac_status=$?
10986 echoscip-shell system . . echo. "$as_me:10986: \$? = $ac_status" >&5
10987 (exit "$ac_status"); }; }; then
10988 cf_test_ncuconfig=yes
10989 else
10990 echoscip-shell system . . echo. "$as_me: program exited with status $ac_status" >&5
10991 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
10992 catscip-shell system . . cat. "conftest.$ac_ext" >&5
10993 cf_test_ncuconfig=no
10994 fi
10995 rmscip-shell system . . rm. -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
10996 fi
10997 else
10998 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
10999 catscip-shell system . . cat. "conftest.$ac_ext" >&5
11000 cf_test_ncuconfig=no
11001 fi
11002 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11003
11004 CFLAGS="$cf_save_CFLAGS"
11005 CPPFLAGS="$cf_save_CPPFLAGS"
11006 LIBS="$cf_save_LIBS"
11007
11008 if testscip-shell system . . test. "x$cf_test_ncuconfig" != xyes; then
11009 cf_temp=`echoscip-shell system . . echo. "x$cf_pkg_cflags" | sedscip-shell system . . sed. -e s/^x// -e 's/-W[^ ]*//g'`
11010 cf_pkg_cflags="$cf_temp"
11011 cf_temp=`echoscip-shell system . . echo. "x$cf_pkg_libs" | sedscip-shell system . . sed. -e s/^x// -e 's/-W[^ ]*//g'`
11012 cf_pkg_libs="$cf_temp"
11013 fi
11014 ;;
11015 esac
11016
11017 for cf_required in $cf_ncuconfig_root
11018 do
11019 # check for duplicates
11020 for cf_require_pkg in $REQUIRE_PKG
11021 do
11022 if testscip-shell system . . test. "$cf_required" = "$cf_require_pkg"
11023 then
11024 cf_required=
11025 break
11026 fi
11027 done
11028 testscip-shell system . . test. -n "$cf_required" && REQUIRE_PKG="$REQUIRE_PKG $cf_required"
11029 done
11030
11031 for cf_add_cflags in $cf_pkg_cflags
11032 do
11033 case "x$cf_add_cflags" in
11034 (x-[DU]*)
11035
11036 cf_tmp_cflag=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^.//' -e 's/=.*//'`
11037 while truescip-shell system . . true.
11038 do
11039 cf_old_cflag=`echoscip-shell system . . echo. "x$CFLAGS" | sedscip-shell system . . sed. -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11040 testscip-shell system . . test. "$CFLAGS" != "$cf_old_cflag" || break
11041
11042 CFLAGS="$cf_old_cflag"
11043 done
11044
11045 cf_tmp_cflag=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^.//' -e 's/=.*//'`
11046 while truescip-shell system . . true.
11047 do
11048 cf_old_cflag=`echoscip-shell system . . echo. "x$CPPFLAGS" | sedscip-shell system . . sed. -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11049 testscip-shell system . . test. "$CPPFLAGS" != "$cf_old_cflag" || break
11050
11051 CPPFLAGS="$cf_old_cflag"
11052 done
11053
11054 ;;
11055 esac
11056
11057 cf_fix_cppflags=no
11058 cf_new_cflags=
11059 cf_new_cppflags=
11060 cf_new_extra_cppflags=
11061
11062 for cf_add_cflags in $cf_add_cflags
11063 do
11064 case "$cf_fix_cppflags" in
11065 (no)
11066 case "$cf_add_cflags" in
11067 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11068 case "$cf_add_cflags" in
11069 (-D*)
11070 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^-D[^=]*='\''\"[^"]*//'`
11071
11072 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11073 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
11074 && cf_fix_cppflags=yes
11075
11076 if testscip-shell system . . test. "$cf_fix_cppflags" = yes ; then
11077
11078 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11079 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11080
11081 continue
11082 elif testscip-shell system . . test. "${cf_tst_cflags}" = "\"'" ; then
11083
11084 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11085 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11086
11087 continue
11088 fi
11089 ;;
11090 esac
11091 case "$CPPFLAGS" in
11092 (*$cf_add_cflags)
11093 ;;
11094 (*)
11095 case "$cf_add_cflags" in
11096 (-D*)
11097 cf_tst_cppflags=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^...//' -e 's/=.*//'`
11098
11099 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
11100 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11101 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11102
11103 ;;
11104 esac
11105
11106 testscip-shell system . . test. -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11107 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11108
11109 ;;
11110 esac
11111 ;;
11112 (*)
11113
11114 testscip-shell system . . test. -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11115 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11116
11117 ;;
11118 esac
11119 ;;
11120 (yes)
11121
11122 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11123 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11124
11125 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^[^"]*"'\''//'`
11126
11127 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11128 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
11129 && cf_fix_cppflags=no
11130 ;;
11131 esac
11132 done
11133
11134 if testscip-shell system . . test. -n "$cf_new_cflags" ; then
11135
11136 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
11137 CFLAGS="${CFLAGS}$cf_new_cflags"
11138
11139 fi
11140
11141 if testscip-shell system . . test. -n "$cf_new_cppflags" ; then
11142
11143 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11144 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11145
11146 fi
11147
11148 if testscip-shell system . . test. -n "$cf_new_extra_cppflags" ; then
11149
11150 testscip-shell system . . test. -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11151 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11152
11153 fi
11154
11155 done
11156
11157 cf_add_libs="$LIBS"
11158 # reverse order
11159 cf_add_0lib=
11160 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11161 # filter duplicates
11162 for cf_add_1lib in $cf_add_0lib; do
11163 for cf_add_2lib in $cf_add_libs; do
11164 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
11165 cf_add_1lib=
11166 break
11167 fi
11168 done
11169 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11170 done
11171 LIBS="$cf_add_libs"
11172
11173 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
11174 #line 11174 "configure"
11175 #include "confdefs.h"
11176 #include <${cf_cv_ncurses_header:-curses.h}>
11177 int
11178 main (void)
11179 {
11180 initscr(); mousemask(0,(void*)0); tigetstr((char *)0);
11181 ;
11182 return 0;
11183 }
11184 _ACEOF
11185 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
11186 if { (eval echo "$as_me:11186: \"$ac_link\"") >&5
11187 (eval $ac_link) 2>&5
11188 ac_status=$?
11189 echoscip-shell system . . echo. "$as_me:11189: \$? = $ac_status" >&5
11190 (exit "$ac_status"); } &&
11191 { ac_try='test -s "conftest$ac_exeext"'
11192 { (eval echo "$as_me:11192: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11194 ac_status=$?
11195 echoscip-shell system . . echo. "$as_me:11195: \$? = $ac_status" >&5
11196 (exit "$ac_status"); }; }; then
11197 if testscip-shell system . . test. "$cross_compiling" = yes; then
11198 cf_have_ncuconfig=maybe
11199 else
11200 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
11201 #line 11201 "configure"
11202 #include "confdefs.h"
11203 #include <${cf_cv_ncurses_header:-curses.h}>
11204 int main(void)
11205 { const char *xx = curses_version(); return (xx == (const char*)0); }
11206 _ACEOF
11207 rmscip-shell system . . rm. -f "conftest$ac_exeext"
11208 if { (eval echo "$as_me:11208: \"$ac_link\"") >&5
11209 (eval $ac_link) 2>&5
11210 ac_status=$?
11211 echoscip-shell system . . echo. "$as_me:11211: \$? = $ac_status" >&5
11212 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
11213 { (eval echo "$as_me:11213: \"$ac_try\"") >&5
11214 (eval $ac_try) 2>&5
11215 ac_status=$?
11216 echoscip-shell system . . echo. "$as_me:11216: \$? = $ac_status" >&5
11217 (exit "$ac_status"); }; }; then
11218 cf_have_ncuconfig=yes
11219 else
11220 echoscip-shell system . . echo. "$as_me: program exited with status $ac_status" >&5
11221 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
11222 catscip-shell system . . cat. "conftest.$ac_ext" >&5
11223 cf_have_ncuconfig=no
11224 fi
11225 rmscip-shell system . . rm. -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
11226 fi
11227 else
11228 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
11229 catscip-shell system . . cat. "conftest.$ac_ext" >&5
11230 cf_have_ncuconfig=no
11231 fi
11232 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11233 echoscip-shell system . . echo. "$as_me:11233: result: $cf_have_ncuconfig" >&5
11234 echoscip-shell system . . echo. "${ECHO_T}$cf_have_ncuconfig" >&6
11235 testscip-shell system . . test. "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
11236 if testscip-shell system . . test. "$cf_have_ncuconfig" != "yes"
11237 then
11238 CPPFLAGS="$cf_save_CPPFLAGS"
11239 LIBS="$cf_save_LIBS"
11240 NCURSES_CONFIG_PKG=none
11241 else
11242
11243 catscip-shell system . . cat. >>confdefs.h <<\EOF
11244 #define NCURSES 1
11245 EOF
11246
11247 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
11248
11249 echoscip-shell system . . echo. "$as_me:11249: checking for terminfo header" >&5
11250 echoscip-shell system . . echo. $ECHO_N "checking for terminfo header... $ECHO_C" >&6
11251 if testscip-shell system . . test. "${cf_cv_term_header+set}" = set; then
11252 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
11253 else
11254
11255 case "${cf_cv_ncurses_header}" in
11256 (*/ncurses.h|*/ncursesw.h)
11257 cf_term_header=`echoscip-shell system . . echo. "$cf_cv_ncurses_header" | sedscip-shell system . . sed. -e 's%ncurses[^.]*\.h$%term.h%'`
11258 ;;
11259 (*)
11260 cf_term_header=term.h
11261 ;;
11262 esac
11263
11264 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
11265 do
11266 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
11267 #line 11267 "configure"
11268 #include "confdefs.h"
11269 #include <stdio.h>
11270 #include <${cf_cv_ncurses_header:-curses.h}>
11271 #include <$cf_test>
11272
11273 int
11274 main (void)
11275 {
11276 int x = auto_left_margin; (void)x
11277 ;
11278 return 0;
11279 }
11280 _ACEOF
11281 rmscip-shell system . . rm. -f "conftest.$ac_objext"
11282 if { (eval echo "$as_me:11282: \"$ac_compile\"") >&5
11283 (eval $ac_compile) 2>&5
11284 ac_status=$?
11285 echoscip-shell system . . echo. "$as_me:11285: \$? = $ac_status" >&5
11286 (exit "$ac_status"); } &&
11287 { ac_try='test -s "conftest.$ac_objext"'
11288 { (eval echo "$as_me:11288: \"$ac_try\"") >&5
11289 (eval $ac_try) 2>&5
11290 ac_status=$?
11291 echoscip-shell system . . echo. "$as_me:11291: \$? = $ac_status" >&5
11292 (exit "$ac_status"); }; }; then
11293
11294 cf_cv_term_header="$cf_test"
11295 else
11296 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
11297 catscip-shell system . . cat. "conftest.$ac_ext" >&5
11298
11299 cf_cv_term_header=unknown
11300
11301 fi
11302 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
11303 testscip-shell system . . test. "$cf_cv_term_header" != unknown && break
11304 done
11305
11306 fi
11307 echoscip-shell system . . echo. "$as_me:11307: result: $cf_cv_term_header" >&5
11308 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_term_header" >&6
11309
11310 # Set definitions to allow ifdef'ing to accommodate subdirectories
11311
11312 case "$cf_cv_term_header" in
11313 (*term.h)
11314
11315 catscip-shell system . . cat. >>confdefs.h <<\EOF
11316 #define HAVE_TERM_H 1
11317 EOF
11318
11319 ;;
11320 esac
11321
11322 case "$cf_cv_term_header" in
11323 (ncurses/term.h)
11324
11325 catscip-shell system . . cat. >>confdefs.h <<\EOF
11326 #define HAVE_NCURSES_TERM_H 1
11327 EOF
11328
11329 ;;
11330 (ncursesw/term.h)
11331
11332 catscip-shell system . . cat. >>confdefs.h <<\EOF
11333 #define HAVE_NCURSESW_TERM_H 1
11334 EOF
11335
11336 ;;
11337 esac
11338
11339 fi
11340
11341 else
11342 echoscip-shell system . . echo. "$as_me:11342: result: no" >&5
11343 echoscip-shell system . . echo. "${ECHO_T}no" >&6
11344 NCURSES_CONFIG_PKG=none
11345 fi
11346 else
11347 NCURSES_CONFIG_PKG=none
11348 fi
11349
11350 if testscip-shell system . . test. "x$cf_have_ncuconfig" = "xno"; then
11351 cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echoscip-shell system . . echo. "Looking for ${cf_ncurses_config}"
11352
11353 if testscip-shell system . . test. -n "$ac_tool_prefix"; then
11354 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
11355 do
11356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11358 echoscip-shell system . . echo. "$as_me:11358: checking for $ac_word" >&5
11359 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11360 if testscip-shell system . . test. "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
11361 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
11362 else
11363 if testscip-shell system . . test. -n "$NCURSES_CONFIG"; then
11364 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
11365 else
11366 ac_save_IFS=$IFS; IFS=$ac_path_separator
11367 ac_dummy="$PATH"
11368 for ac_dir in $ac_dummy; do
11369 IFS=$ac_save_IFS
11370 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
11371 $as_executable_p "$ac_dir/$ac_word" || continue
11372 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
11373 echoscip-shell system . . echo. "$as_me:11373: found $ac_dir/$ac_word" >&5
11374 break
11375 done
11376
11377 fi
11378 fi
11379 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
11380 if testscip-shell system . . test. -n "$NCURSES_CONFIG"; then
11381 echoscip-shell system . . echo. "$as_me:11381: result: $NCURSES_CONFIG" >&5
11382 echoscip-shell system . . echo. "${ECHO_T}$NCURSES_CONFIG" >&6
11383 else
11384 echoscip-shell system . . echo. "$as_me:11384: result: no" >&5
11385 echoscip-shell system . . echo. "${ECHO_T}no" >&6
11386 fi
11387
11388 testscip-shell system . . test. -n "$NCURSES_CONFIG" && break
11389 done
11390 fi
11391 if testscip-shell system . . test. -z "$NCURSES_CONFIG"; then
11392 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
11393 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
11394 do
11395 # Extract the first word of "$ac_prog", so it can be a program name with args.
11396 set dummy $ac_prog; ac_word=$2
11397 echoscip-shell system . . echo. "$as_me:11397: checking for $ac_word" >&5
11398 echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11399 if testscip-shell system . . test. "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
11400 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
11401 else
11402 if testscip-shell system . . test. -n "$ac_ct_NCURSES_CONFIG"; then
11403 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
11404 else
11405 ac_save_IFS=$IFS; IFS=$ac_path_separator
11406 ac_dummy="$PATH"
11407 for ac_dir in $ac_dummy; do
11408 IFS=$ac_save_IFS
11409 testscip-shell system . . test. -z "$ac_dir" && ac_dir=.
11410 $as_executable_p "$ac_dir/$ac_word" || continue
11411 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
11412 echoscip-shell system . . echo. "$as_me:11412: found $ac_dir/$ac_word" >&5
11413 break
11414 done
11415
11416 fi
11417 fi
11418 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
11419 if testscip-shell system . . test. -n "$ac_ct_NCURSES_CONFIG"; then
11420 echoscip-shell system . . echo. "$as_me:11420: result: $ac_ct_NCURSES_CONFIG" >&5
11421 echoscip-shell system . . echo. "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
11422 else
11423 echoscip-shell system . . echo. "$as_me:11423: result: no" >&5
11424 echoscip-shell system . . echo. "${ECHO_T}no" >&6
11425 fi
11426
11427 testscip-shell system . . test. -n "$ac_ct_NCURSES_CONFIG" && break
11428 done
11429 testscip-shell system . . test. -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
11430
11431 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
11432 fi
11433
11434 if testscip-shell system . . test. "$NCURSES_CONFIG" != none ; then
11435
11436 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
11437 do
11438 case "x$cf_add_cflags" in
11439 (x-[DU]*)
11440
11441 cf_tmp_cflag=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^.//' -e 's/=.*//'`
11442 while truescip-shell system . . true.
11443 do
11444 cf_old_cflag=`echoscip-shell system . . echo. "x$CFLAGS" | sedscip-shell system . . sed. -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11445 testscip-shell system . . test. "$CFLAGS" != "$cf_old_cflag" || break
11446
11447 CFLAGS="$cf_old_cflag"
11448 done
11449
11450 cf_tmp_cflag=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^.//' -e 's/=.*//'`
11451 while truescip-shell system . . true.
11452 do
11453 cf_old_cflag=`echoscip-shell system . . echo. "x$CPPFLAGS" | sedscip-shell system . . sed. -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11454 testscip-shell system . . test. "$CPPFLAGS" != "$cf_old_cflag" || break
11455
11456 CPPFLAGS="$cf_old_cflag"
11457 done
11458
11459 ;;
11460 esac
11461
11462 cf_fix_cppflags=no
11463 cf_new_cflags=
11464 cf_new_cppflags=
11465 cf_new_extra_cppflags=
11466
11467 for cf_add_cflags in $cf_add_cflags
11468 do
11469 case "$cf_fix_cppflags" in
11470 (no)
11471 case "$cf_add_cflags" in
11472 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11473 case "$cf_add_cflags" in
11474 (-D*)
11475 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^-D[^=]*='\''\"[^"]*//'`
11476
11477 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11478 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
11479 && cf_fix_cppflags=yes
11480
11481 if testscip-shell system . . test. "$cf_fix_cppflags" = yes ; then
11482
11483 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11484 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11485
11486 continue
11487 elif testscip-shell system . . test. "${cf_tst_cflags}" = "\"'" ; then
11488
11489 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11490 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11491
11492 continue
11493 fi
11494 ;;
11495 esac
11496 case "$CPPFLAGS" in
11497 (*$cf_add_cflags)
11498 ;;
11499 (*)
11500 case "$cf_add_cflags" in
11501 (-D*)
11502 cf_tst_cppflags=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^...//' -e 's/=.*//'`
11503
11504 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
11505 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11506 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11507
11508 ;;
11509 esac
11510
11511 testscip-shell system . . test. -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11512 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11513
11514 ;;
11515 esac
11516 ;;
11517 (*)
11518
11519 testscip-shell system . . test. -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11520 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11521
11522 ;;
11523 esac
11524 ;;
11525 (yes)
11526
11527 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11528 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11529
11530 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^[^"]*"'\''//'`
11531
11532 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11533 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
11534 && cf_fix_cppflags=no
11535 ;;
11536 esac
11537 done
11538
11539 if testscip-shell system . . test. -n "$cf_new_cflags" ; then
11540
11541 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
11542 CFLAGS="${CFLAGS}$cf_new_cflags"
11543
11544 fi
11545
11546 if testscip-shell system . . test. -n "$cf_new_cppflags" ; then
11547
11548 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11549 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11550
11551 fi
11552
11553 if testscip-shell system . . test. -n "$cf_new_extra_cppflags" ; then
11554
11555 testscip-shell system . . test. -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11556 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11557
11558 fi
11559
11560 done
11561
11562 cf_add_libs="$LIBS"
11563 # reverse order
11564 cf_add_0lib=
11565 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11566 # filter duplicates
11567 for cf_add_1lib in $cf_add_0lib; do
11568 for cf_add_2lib in $cf_add_libs; do
11569 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
11570 cf_add_1lib=
11571 break
11572 fi
11573 done
11574 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11575 done
11576 LIBS="$cf_add_libs"
11577
11578 # even with config script, some packages use no-override for curses.h
11579
11580 echoscip-shell system . . echo. "$as_me:11580: checking if we have identified curses headers" >&5
11581 echoscip-shell system . . echo. $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
11582 if testscip-shell system . . test. "${cf_cv_ncurses_header+set}" = set; then
11583 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
11584 else
11585
11586 cf_cv_ncurses_header=none
11587 for cf_header in \
11588 ncurses.h $cf_cv_screen/ncurses.h \
11589 curses.h $cf_cv_screen/curses.h
11590 do
11591 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
11592 #line 11592 "configure"
11593 #include "confdefs.h"
11594 #include <${cf_header}>
11595 int
11596 main (void)
11597 {
11598 initscr(); endwin()
11599 ;
11600 return 0;
11601 }
11602 _ACEOF
11603 rmscip-shell system . . rm. -f "conftest.$ac_objext"
11604 if { (eval echo "$as_me:11604: \"$ac_compile\"") >&5
11605 (eval $ac_compile) 2>&5
11606 ac_status=$?
11607 echoscip-shell system . . echo. "$as_me:11607: \$? = $ac_status" >&5
11608 (exit "$ac_status"); } &&
11609 { ac_try='test -s "conftest.$ac_objext"'
11610 { (eval echo "$as_me:11610: \"$ac_try\"") >&5
11611 (eval $ac_try) 2>&5
11612 ac_status=$?
11613 echoscip-shell system . . echo. "$as_me:11613: \$? = $ac_status" >&5
11614 (exit "$ac_status"); }; }; then
11615 cf_cv_ncurses_header=$cf_header; break
11616 else
11617 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
11618 catscip-shell system . . cat. "conftest.$ac_ext" >&5
11619 fi
11620 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
11621 done
11622
11623 fi
11624 echoscip-shell system . . echo. "$as_me:11624: result: $cf_cv_ncurses_header" >&5
11625 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_ncurses_header" >&6
11626
11627 if testscip-shell system . . test. "$cf_cv_ncurses_header" = none ; then
11628 { { echoscip-shell system . . echo. "$as_me:11628: error: No curses header-files found" >&5
11629 echoscip-shell system . . echo. "$as_me: error: No curses header-files found" >&2;}
11630 { (exit 1); exit 1; }; }
11631 fi
11632
11633 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
11634
11635 for ac_header in $cf_cv_ncurses_header
11636 do
11637 as_ac_Header=`echoscip-shell system . . echo. "ac_cv_header_$ac_header" | $as_tr_sh`
11638 echoscip-shell system . . echo. "$as_me:11638: checking for $ac_header" >&5
11639 echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11641 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
11642 else
11643 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
11644 #line 11644 "configure"
11645 #include "confdefs.h"
11646 #include <$ac_header>
11647 _ACEOF
11648 if { (eval echo "$as_me:11648: \"$ac_cpp "conftest.$ac_ext"\"") >&5
11649 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
11650 ac_status=$?
11651 $EGREP -v '^ *\+' conftest.er1 >conftest.err
11652 rmscip-shell system . . rm. -f conftest.er1
11653 catscip-shell system . . cat. conftest.err >&5
11654 echoscip-shell system . . echo. "$as_me:11654: \$? = $ac_status" >&5
11655 (exit "$ac_status"); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then
11656 if testscip-shell system . . test. -s conftest.err; then
11657 ac_cpp_err=$ac_c_preproc_warn_flag
11658 else
11659 ac_cpp_err=
11660 fi
11661 else
11662 ac_cpp_err=yes
11663 fi
11664 if testscip-shell system . . test. -z "$ac_cpp_err"; then
11665 eval "$as_ac_Header=yes"
11666 else
11667 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
11668 catscip-shell system . . cat. "conftest.$ac_ext" >&5
11669 eval "$as_ac_Header=no"
11670 fi
11671 rmscip-shell system . . rm. -f conftest.err "conftest.$ac_ext"
11672 fi
11673 echoscip-shell system . . echo. "$as_me:11673: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
11674 echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
11675 if testscip-shell system . . test. "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
11676 catscip-shell system . . cat. >>confdefs.h <<EOF
11677 #define `echoscip-shell system . . echo. "HAVE_$ac_header" | $as_tr_cpp` 1
11678 EOF
11679
11680 fi
11681 done
11682
11683 catscip-shell system . . cat. >>confdefs.h <<\EOF
11684 #define NCURSES 1
11685 EOF
11686
11687 cf_nculib_ROOT=`echoscip-shell system . . echo. "HAVE_LIB$cf_ncuconfig_root" | sedscip-shell system . . sed. y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11688
11689 catscip-shell system . . cat. >>confdefs.h <<EOF
11690 #define $cf_nculib_ROOT 1
11691 EOF
11692
11693 cf_cv_ncurses_version="`$NCURSES_CONFIG --version`"
11694
11695 else
11696
11697 cf_ncuhdr_root=$cf_cv_screen
11698
11699 testscip-shell system . . test. -n "$cf_cv_curses_dir" && \
11700 test "$cf_cv_curses_dir" != "no" && { \
11701
11702 if testscip-shell system . . test. -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
11703 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
11704 do
11705 while testscip-shell system . . test. "$cf_add_incdir" != /usr/includescip-shell filesystem . . `/usr/include`.
11706 do
11707 if testscip-shell system . . test. -d "$cf_add_incdir"
11708 then
11709 cf_have_incdir=no
11710 if testscip-shell system . . test. -n "$CFLAGS$CPPFLAGS" ; then
11711 # a loop is needed to ensure we can add subdirs of existing dirs
11712 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
11713 if testscip-shell system . . test. ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
11714 cf_have_incdir=yes; break
11715 fi
11716 done
11717 fi
11718
11719 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
11720 if testscip-shell system . . test. "$cf_add_incdir" = /usr/local/includescip-shell filesystem . . `/usr/local/include`. ; then
11721 if testscip-shell system . . test. "$GCC" = yes
11722 then
11723 cf_save_CPPFLAGS=$CPPFLAGS
11724
11725 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11726 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
11727
11728 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
11729 #line 11729 "configure"
11730 #include "confdefs.h"
11731 #include <stdio.h>
11732 int
11733 main (void)
11734 {
11735 printf("Hello")
11736 ;
11737 return 0;
11738 }
11739 _ACEOF
11740 rmscip-shell system . . rm. -f "conftest.$ac_objext"
11741 if { (eval echo "$as_me:11741: \"$ac_compile\"") >&5
11742 (eval $ac_compile) 2>&5
11743 ac_status=$?
11744 echoscip-shell system . . echo. "$as_me:11744: \$? = $ac_status" >&5
11745 (exit "$ac_status"); } &&
11746 { ac_try='test -s "conftest.$ac_objext"'
11747 { (eval echo "$as_me:11747: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11749 ac_status=$?
11750 echoscip-shell system . . echo. "$as_me:11750: \$? = $ac_status" >&5
11751 (exit "$ac_status"); }; }; then
11752 :
11753 else
11754 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
11755 catscip-shell system . . cat. "conftest.$ac_ext" >&5
11756 cf_have_incdir=yes
11757 fi
11758 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
11759 CPPFLAGS=$cf_save_CPPFLAGS
11760 fi
11761 fi
11762 fi
11763
11764 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
11765 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " adding $cf_add_incdir to include-path" 1>&6
11766
11767 echoscip-shell system . . echo. "${as_me:-configure}:11767: testing adding $cf_add_incdir to include-path ..." 1>&5
11768
11769 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11770
11771 cf_top_incdir=`echoscip-shell system . . echo. "$cf_add_incdir" | sedscip-shell system . . sed. -e 's%/include/.*$%/include%'`
11772 testscip-shell system . . test. "$cf_top_incdir" = "$cf_add_incdir" && break
11773 cf_add_incdir="$cf_top_incdir"
11774 else
11775 break
11776 fi
11777 else
11778 break
11779 fi
11780 done
11781 done
11782 fi
11783
11784 }
11785
11786 echoscip-shell system . . echo. "$as_me:11786: checking for $cf_ncuhdr_root header in include-path" >&5
11787 echoscip-shell system . . echo. $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
11788 if testscip-shell system . . test. "${cf_cv_ncurses_h+set}" = set; then
11789 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
11790 else
11791
11792 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
11793 { testscip-shell system . . test. "$cf_ncuhdr_root" = ncurses || testscip-shell system . . test. "$cf_ncuhdr_root" = ncursesw; } && cf_header_list="$cf_header_list curses.h ncurses.h"
11794 for cf_header in $cf_header_list
11795 do
11796
11797 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
11798 #line 11798 "configure"
11799 #include "confdefs.h"
11800
11801 #include <$cf_header>
11802 int
11803 main (void)
11804 {
11805
11806 #ifdef NCURSES_VERSION
11807
11808 printf("%s\\n", NCURSES_VERSION);
11809 #else
11810 #ifdef __NCURSES_H
11811 printf("old\\n");
11812 #else
11813 #error __NCURSES_H is not defined
11814 #endif
11815 #endif
11816
11817 ;
11818 return 0;
11819 }
11820 _ACEOF
11821 rmscip-shell system . . rm. -f "conftest.$ac_objext"
11822 if { (eval echo "$as_me:11822: \"$ac_compile\"") >&5
11823 (eval $ac_compile) 2>&5
11824 ac_status=$?
11825 echoscip-shell system . . echo. "$as_me:11825: \$? = $ac_status" >&5
11826 (exit "$ac_status"); } &&
11827 { ac_try='test -s "conftest.$ac_objext"'
11828 { (eval echo "$as_me:11828: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11830 ac_status=$?
11831 echoscip-shell system . . echo. "$as_me:11831: \$? = $ac_status" >&5
11832 (exit "$ac_status"); }; }; then
11833 cf_cv_ncurses_h=$cf_header
11834
11835 else
11836 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
11837 catscip-shell system . . cat. "conftest.$ac_ext" >&5
11838 cf_cv_ncurses_h=no
11839 fi
11840 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
11841
11842 testscip-shell system . . test. "$cf_cv_ncurses_h" != no && break
11843 done
11844
11845 fi
11846 echoscip-shell system . . echo. "$as_me:11846: result: $cf_cv_ncurses_h" >&5
11847 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_ncurses_h" >&6
11848
11849 if testscip-shell system . . test. "$cf_cv_ncurses_h" != no ; then
11850 cf_cv_ncurses_header=$cf_cv_ncurses_h
11851 else
11852
11853 echoscip-shell system . . echo. "$as_me:11853: checking for $cf_ncuhdr_root include-path" >&5
11854 echoscip-shell system . . echo. $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
11855 if testscip-shell system . . test. "${cf_cv_ncurses_h2+set}" = set; then
11856 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
11857 else
11858
11859 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo.
11860
11861 cf_search=
11862
11863 # collect the current set of include-directories from compiler flags
11864 cf_header_path_list=""
11865 if testscip-shell system . . test. -n "${CFLAGS}${CPPFLAGS}" ; then
11866 for cf_header_path in $CPPFLAGS $CFLAGS
11867 do
11868 case "$cf_header_path" in
11869 (-I*)
11870 cf_header_path=`echoscip-shell system . . echo. ".$cf_header_path" |sedscip-shell system . . sed. -e 's/^...//' -e 's,/include$,,'`
11871
11872 testscip-shell system . . test. "x$cf_header_path" != "xNONE" && \
11873 test -d "$cf_header_path" && \
11874 {
11875 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for include-directories under $cf_header_path"
11876 testscip-shell system . . test. -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
11877 testscip-shell system . . test. -d "$cf_header_path/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
11878 testscip-shell system . . test. -d "$cf_header_path/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
11879 testscip-shell system . . test. -d "$cf_header_path/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
11880 testscip-shell system . . test. -d "$cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
11881 }
11882
11883 cf_header_path_list="$cf_header_path_list $cf_search"
11884 ;;
11885 esac
11886 done
11887 fi
11888
11889 # add the variations for the package we are looking for
11890
11891 cf_search=
11892
11893 testscip-shell system . . test. "x$prefix" != "xNONE" && \
11894 test -d "$prefix" && \
11895 {
11896 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for include-directories under $prefix"
11897 testscip-shell system . . test. -d "$prefix/include" && cf_search="$cf_search $prefix/include"
11898 testscip-shell system . . test. -d "$prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
11899 testscip-shell system . . test. -d "$prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
11900 testscip-shell system . . test. -d "$prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
11901 testscip-shell system . . test. -d "$prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
11902 }
11903
11904 for cf_subdir_prefix in \
11905 /usr \
11906 /usr/local \
11907 /usr/pkg \
11908 /opt \
11909 /opt/local \
11910 $HOME
11911 do
11912
11913 testscip-shell system . . test. "x$cf_subdir_prefix" != "x$prefix" && \
11914 test -d "$cf_subdir_prefix" && \
11915 { testscip-shell system . . test. -z "$prefix" || testscip-shell system . . test. "x$prefix" = xNONE || testscip-shell system . . test. "x$cf_subdir_prefix" != "x$prefix"; } && {
11916 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for include-directories under $cf_subdir_prefix"
11917 testscip-shell system . . test. -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
11918 testscip-shell system . . test. -d "$cf_subdir_prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
11919 testscip-shell system . . test. -d "$cf_subdir_prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
11920 testscip-shell system . . test. -d "$cf_subdir_prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
11921 testscip-shell system . . test. -d "$cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
11922 }
11923
11924 done
11925
11926 testscip-shell system . . test. "$includedir" != NONE && \
11927 test "$includedir" != "/usr/includescip-shell filesystem . . `/usr/include`." && \
11928 test -d "$includedir" && {
11929 testscip-shell system . . test. -d "$includedir" && cf_search="$cf_search $includedir"
11930 testscip-shell system . . test. -d "$includedir/$cf_ncuhdr_root" && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
11931 }
11932
11933 testscip-shell system . . test. "$oldincludedir" != NONE && \
11934 test "$oldincludedir" != "/usr/includescip-shell filesystem . . `/usr/include`." && \
11935 test -d "$oldincludedir" && {
11936 testscip-shell system . . test. -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
11937 testscip-shell system . . test. -d "$oldincludedir/$cf_ncuhdr_root" && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
11938 }
11939
11940 cf_search="$cf_search $cf_header_path_list"
11941
11942 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. "search path $cf_search"
11943 cf_save2_CPPFLAGS="$CPPFLAGS"
11944 for cf_incdir in $cf_search
11945 do
11946
11947 if testscip-shell system . . test. -n "$cf_incdir" ; then
11948 for cf_add_incdir in $cf_incdir
11949 do
11950 while testscip-shell system . . test. "$cf_add_incdir" != /usr/includescip-shell filesystem . . `/usr/include`.
11951 do
11952 if testscip-shell system . . test. -d "$cf_add_incdir"
11953 then
11954 cf_have_incdir=no
11955 if testscip-shell system . . test. -n "$CFLAGS$CPPFLAGS" ; then
11956 # a loop is needed to ensure we can add subdirs of existing dirs
11957 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
11958 if testscip-shell system . . test. ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
11959 cf_have_incdir=yes; break
11960 fi
11961 done
11962 fi
11963
11964 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
11965 if testscip-shell system . . test. "$cf_add_incdir" = /usr/local/includescip-shell filesystem . . `/usr/local/include`. ; then
11966 if testscip-shell system . . test. "$GCC" = yes
11967 then
11968 cf_save_CPPFLAGS=$CPPFLAGS
11969
11970 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11971 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
11972
11973 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
11974 #line 11974 "configure"
11975 #include "confdefs.h"
11976 #include <stdio.h>
11977 int
11978 main (void)
11979 {
11980 printf("Hello")
11981 ;
11982 return 0;
11983 }
11984 _ACEOF
11985 rmscip-shell system . . rm. -f "conftest.$ac_objext"
11986 if { (eval echo "$as_me:11986: \"$ac_compile\"") >&5
11987 (eval $ac_compile) 2>&5
11988 ac_status=$?
11989 echoscip-shell system . . echo. "$as_me:11989: \$? = $ac_status" >&5
11990 (exit "$ac_status"); } &&
11991 { ac_try='test -s "conftest.$ac_objext"'
11992 { (eval echo "$as_me:11992: \"$ac_try\"") >&5
11993 (eval $ac_try) 2>&5
11994 ac_status=$?
11995 echoscip-shell system . . echo. "$as_me:11995: \$? = $ac_status" >&5
11996 (exit "$ac_status"); }; }; then
11997 :
11998 else
11999 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
12000 catscip-shell system . . cat. "conftest.$ac_ext" >&5
12001 cf_have_incdir=yes
12002 fi
12003 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
12004 CPPFLAGS=$cf_save_CPPFLAGS
12005 fi
12006 fi
12007 fi
12008
12009 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
12010 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " adding $cf_add_incdir to include-path" 1>&6
12011
12012 echoscip-shell system . . echo. "${as_me:-configure}:12012: testing adding $cf_add_incdir to include-path ..." 1>&5
12013
12014 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
12015
12016 cf_top_incdir=`echoscip-shell system . . echo. "$cf_add_incdir" | sedscip-shell system . . sed. -e 's%/include/.*$%/include%'`
12017 testscip-shell system . . test. "$cf_top_incdir" = "$cf_add_incdir" && break
12018 cf_add_incdir="$cf_top_incdir"
12019 else
12020 break
12021 fi
12022 else
12023 break
12024 fi
12025 done
12026 done
12027 fi
12028
12029 for cf_header in \
12030 ncurses.h \
12031 curses.h
12032 do
12033
12034 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
12035 #line 12035 "configure"
12036 #include "confdefs.h"
12037
12038 #include <$cf_header>
12039 int
12040 main (void)
12041 {
12042
12043 #ifdef NCURSES_VERSION
12044
12045 printf("%s\\n", NCURSES_VERSION);
12046 #else
12047 #ifdef __NCURSES_H
12048 printf("old\\n");
12049 #else
12050 #error __NCURSES_H is not defined
12051 #endif
12052 #endif
12053
12054 ;
12055 return 0;
12056 }
12057 _ACEOF
12058 rmscip-shell system . . rm. -f "conftest.$ac_objext"
12059 if { (eval echo "$as_me:12059: \"$ac_compile\"") >&5
12060 (eval $ac_compile) 2>&5
12061 ac_status=$?
12062 echoscip-shell system . . echo. "$as_me:12062: \$? = $ac_status" >&5
12063 (exit "$ac_status"); } &&
12064 { ac_try='test -s "conftest.$ac_objext"'
12065 { (eval echo "$as_me:12065: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12067 ac_status=$?
12068 echoscip-shell system . . echo. "$as_me:12068: \$? = $ac_status" >&5
12069 (exit "$ac_status"); }; }; then
12070 cf_cv_ncurses_h2=$cf_header
12071
12072 else
12073 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
12074 catscip-shell system . . cat. "conftest.$ac_ext" >&5
12075 cf_cv_ncurses_h2=no
12076 fi
12077 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
12078
12079 if testscip-shell system . . test. "$cf_cv_ncurses_h2" != no ; then
12080 cf_cv_ncurses_h2=$cf_incdir/$cf_header
12081 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. $ECHO_N " ... found $ECHO_C" 1>&6
12082 break
12083 fi
12084 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... tested $cf_incdir/$cf_header" 1>&6
12085 done
12086 CPPFLAGS="$cf_save2_CPPFLAGS"
12087 testscip-shell system . . test. "$cf_cv_ncurses_h2" != no && break
12088 done
12089 testscip-shell system . . test. "$cf_cv_ncurses_h2" = no && { { echoscip-shell system . . echo. "$as_me:12089: error: not found" >&5
12090 echoscip-shell system . . echo. "$as_me: error: not found" >&2;}
12091 { (exit 1); exit 1; }; }
12092
12093 fi
12094 echoscip-shell system . . echo. "$as_me:12094: result: $cf_cv_ncurses_h2" >&5
12095 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_ncurses_h2" >&6
12096
12097 cf_1st_incdir=`echoscip-shell system . . echo. "$cf_cv_ncurses_h2" | sedscip-shell system . . sed. -e 's%/[^/]*$%%'`
12098 cf_cv_ncurses_header="`basenamescip-shell system . . basename. "$cf_cv_ncurses_h2"`"
12099 if testscip-shell system . . test. "`basenamescip-shell system . . basename. "$cf_1st_incdir"`" = "$cf_ncuhdr_root" ; then
12100 cf_cv_ncurses_header="$cf_ncuhdr_root/$cf_cv_ncurses_header"
12101 fi
12102
12103 if testscip-shell system . . test. -n "$cf_1st_incdir" ; then
12104 for cf_add_incdir in $cf_1st_incdir
12105 do
12106 while testscip-shell system . . test. "$cf_add_incdir" != /usr/includescip-shell filesystem . . `/usr/include`.
12107 do
12108 if testscip-shell system . . test. -d "$cf_add_incdir"
12109 then
12110 cf_have_incdir=no
12111 if testscip-shell system . . test. -n "$CFLAGS$CPPFLAGS" ; then
12112 # a loop is needed to ensure we can add subdirs of existing dirs
12113 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
12114 if testscip-shell system . . test. ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
12115 cf_have_incdir=yes; break
12116 fi
12117 done
12118 fi
12119
12120 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
12121 if testscip-shell system . . test. "$cf_add_incdir" = /usr/local/includescip-shell filesystem . . `/usr/local/include`. ; then
12122 if testscip-shell system . . test. "$GCC" = yes
12123 then
12124 cf_save_CPPFLAGS=$CPPFLAGS
12125
12126 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12127 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
12128
12129 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
12130 #line 12130 "configure"
12131 #include "confdefs.h"
12132 #include <stdio.h>
12133 int
12134 main (void)
12135 {
12136 printf("Hello")
12137 ;
12138 return 0;
12139 }
12140 _ACEOF
12141 rmscip-shell system . . rm. -f "conftest.$ac_objext"
12142 if { (eval echo "$as_me:12142: \"$ac_compile\"") >&5
12143 (eval $ac_compile) 2>&5
12144 ac_status=$?
12145 echoscip-shell system . . echo. "$as_me:12145: \$? = $ac_status" >&5
12146 (exit "$ac_status"); } &&
12147 { ac_try='test -s "conftest.$ac_objext"'
12148 { (eval echo "$as_me:12148: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12150 ac_status=$?
12151 echoscip-shell system . . echo. "$as_me:12151: \$? = $ac_status" >&5
12152 (exit "$ac_status"); }; }; then
12153 :
12154 else
12155 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
12156 catscip-shell system . . cat. "conftest.$ac_ext" >&5
12157 cf_have_incdir=yes
12158 fi
12159 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
12160 CPPFLAGS=$cf_save_CPPFLAGS
12161 fi
12162 fi
12163 fi
12164
12165 if testscip-shell system . . test. "$cf_have_incdir" = no ; then
12166 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " adding $cf_add_incdir to include-path" 1>&6
12167
12168 echoscip-shell system . . echo. "${as_me:-configure}:12168: testing adding $cf_add_incdir to include-path ..." 1>&5
12169
12170 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
12171
12172 cf_top_incdir=`echoscip-shell system . . echo. "$cf_add_incdir" | sedscip-shell system . . sed. -e 's%/include/.*$%/include%'`
12173 testscip-shell system . . test. "$cf_top_incdir" = "$cf_add_incdir" && break
12174 cf_add_incdir="$cf_top_incdir"
12175 else
12176 break
12177 fi
12178 else
12179 break
12180 fi
12181 done
12182 done
12183 fi
12184
12185 fi
12186
12187 # Set definitions to allow ifdef'ing for ncurses.h
12188
12189 case "$cf_cv_ncurses_header" in
12190 (*ncurses.h)
12191
12192 catscip-shell system . . cat. >>confdefs.h <<\EOF
12193 #define HAVE_NCURSES_H 1
12194 EOF
12195
12196 ;;
12197 esac
12198
12199 case "$cf_cv_ncurses_header" in
12200 (ncurses/curses.h|ncurses/ncurses.h)
12201
12202 catscip-shell system . . cat. >>confdefs.h <<\EOF
12203 #define HAVE_NCURSES_NCURSES_H 1
12204 EOF
12205
12206 ;;
12207 (ncursesw/curses.h|ncursesw/ncurses.h)
12208
12209 catscip-shell system . . cat. >>confdefs.h <<\EOF
12210 #define HAVE_NCURSESW_NCURSES_H 1
12211 EOF
12212
12213 ;;
12214 esac
12215
12216 echoscip-shell system . . echo. "$as_me:12216: checking for terminfo header" >&5
12217 echoscip-shell system . . echo. $ECHO_N "checking for terminfo header... $ECHO_C" >&6
12218 if testscip-shell system . . test. "${cf_cv_term_header+set}" = set; then
12219 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
12220 else
12221
12222 case "${cf_cv_ncurses_header}" in
12223 (*/ncurses.h|*/ncursesw.h)
12224 cf_term_header=`echoscip-shell system . . echo. "$cf_cv_ncurses_header" | sedscip-shell system . . sed. -e 's%ncurses[^.]*\.h$%term.h%'`
12225 ;;
12226 (*)
12227 cf_term_header=term.h
12228 ;;
12229 esac
12230
12231 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
12232 do
12233 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
12234 #line 12234 "configure"
12235 #include "confdefs.h"
12236 #include <stdio.h>
12237 #include <${cf_cv_ncurses_header:-curses.h}>
12238 #include <$cf_test>
12239
12240 int
12241 main (void)
12242 {
12243 int x = auto_left_margin; (void)x
12244 ;
12245 return 0;
12246 }
12247 _ACEOF
12248 rmscip-shell system . . rm. -f "conftest.$ac_objext"
12249 if { (eval echo "$as_me:12249: \"$ac_compile\"") >&5
12250 (eval $ac_compile) 2>&5
12251 ac_status=$?
12252 echoscip-shell system . . echo. "$as_me:12252: \$? = $ac_status" >&5
12253 (exit "$ac_status"); } &&
12254 { ac_try='test -s "conftest.$ac_objext"'
12255 { (eval echo "$as_me:12255: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12257 ac_status=$?
12258 echoscip-shell system . . echo. "$as_me:12258: \$? = $ac_status" >&5
12259 (exit "$ac_status"); }; }; then
12260
12261 cf_cv_term_header="$cf_test"
12262 else
12263 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
12264 catscip-shell system . . cat. "conftest.$ac_ext" >&5
12265
12266 cf_cv_term_header=unknown
12267
12268 fi
12269 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
12270 testscip-shell system . . test. "$cf_cv_term_header" != unknown && break
12271 done
12272
12273 fi
12274 echoscip-shell system . . echo. "$as_me:12274: result: $cf_cv_term_header" >&5
12275 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_term_header" >&6
12276
12277 # Set definitions to allow ifdef'ing to accommodate subdirectories
12278
12279 case "$cf_cv_term_header" in
12280 (*term.h)
12281
12282 catscip-shell system . . cat. >>confdefs.h <<\EOF
12283 #define HAVE_TERM_H 1
12284 EOF
12285
12286 ;;
12287 esac
12288
12289 case "$cf_cv_term_header" in
12290 (ncurses/term.h)
12291
12292 catscip-shell system . . cat. >>confdefs.h <<\EOF
12293 #define HAVE_NCURSES_TERM_H 1
12294 EOF
12295
12296 ;;
12297 (ncursesw/term.h)
12298
12299 catscip-shell system . . cat. >>confdefs.h <<\EOF
12300 #define HAVE_NCURSESW_TERM_H 1
12301 EOF
12302
12303 ;;
12304 esac
12305
12306 # some applications need this, but should check for NCURSES_VERSION
12307
12308 catscip-shell system . . cat. >>confdefs.h <<\EOF
12309 #define NCURSES 1
12310 EOF
12311
12312 echoscip-shell system . . echo. "$as_me:12312: checking for ncurses version" >&5
12313 echoscip-shell system . . echo. $ECHO_N "checking for ncurses version... $ECHO_C" >&6
12314 if testscip-shell system . . test. "${cf_cv_ncurses_version+set}" = set; then
12315 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317
12318 cf_cv_ncurses_version=no
12319 cf_tempfile=out$$
12320 rmscip-shell system . . rm. -f "$cf_tempfile"
12321 if testscip-shell system . . test. "$cross_compiling" = yes; then
12322
12323 # This will not work if the preprocessor splits the line after the
12324 # Autoconf token. The 'unproto' program does that.
12325 catscip-shell system . . cat. > "conftest.$ac_ext" <<EOF
12326 #include <${cf_cv_ncurses_header:-curses.h}>
12327 #undef Autoconf
12328 #ifdef NCURSES_VERSION
12329 Autoconf NCURSES_VERSION
12330 #else
12331 #ifdef __NCURSES_H
12332 Autoconf "old"
12333 #endif
12334 ;
12335 #endif
12336 EOF
12337 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
12338 { (eval echo "$as_me:12338: \"$cf_try\"") >&5
12339 (eval $cf_try) 2>&5
12340 ac_status=$?
12341 echoscip-shell system . . echo. "$as_me:12341: \$? = $ac_status" >&5
12342 (exit "$ac_status"); }
12343 if testscip-shell system . . test. -f conftest.out ; then
12344 cf_out=`sedscip-shell system . . sed. -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
12345 testscip-shell system . . test. -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
12346 rmscip-shell system . . rm. -f conftest.out
12347 fi
12348
12349 else
12350 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
12351 #line 12351 "configure"
12352 #include "confdefs.h"
12353
12354 $ac_includes_default
12355
12356 #include <${cf_cv_ncurses_header:-curses.h}>
12357
12358 int main(void)
12359 {
12360 FILE *fp = fopen("$cf_tempfile", "w");
12361 #ifdef NCURSES_VERSION
12362 # ifdef NCURSES_VERSION_PATCH
12363 fprintf(fp, "%s.%d\\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
12364 # else
12365 fprintf(fp, "%s\\n", NCURSES_VERSION);
12366 # endif
12367 #else
12368 # ifdef __NCURSES_H
12369 fprintf(fp, "old\\n");
12370 # else
12371 #error expected ncurses header to define __NCURSES_H
12372 # endif
12373 #endif
12374 ${cf_cv_main_return:-return}(0);
12375 }
12376 _ACEOF
12377 rmscip-shell system . . rm. -f "conftest$ac_exeext"
12378 if { (eval echo "$as_me:12378: \"$ac_link\"") >&5
12379 (eval $ac_link) 2>&5
12380 ac_status=$?
12381 echoscip-shell system . . echo. "$as_me:12381: \$? = $ac_status" >&5
12382 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
12383 { (eval echo "$as_me:12383: \"$ac_try\"") >&5
12384 (eval $ac_try) 2>&5
12385 ac_status=$?
12386 echoscip-shell system . . echo. "$as_me:12386: \$? = $ac_status" >&5
12387 (exit "$ac_status"); }; }; then
12388
12389 cf_cv_ncurses_version=`catscip-shell system . . cat. $cf_tempfile`
12390 else
12391 echoscip-shell system . . echo. "$as_me: program exited with status $ac_status" >&5
12392 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
12393 catscip-shell system . . cat. "conftest.$ac_ext" >&5
12394 fi
12395 rmscip-shell system . . rm. -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
12396 fi
12397 rmscip-shell system . . rm. -f "$cf_tempfile"
12398
12399 fi
12400 echoscip-shell system . . echo. "$as_me:12400: result: $cf_cv_ncurses_version" >&5
12401 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_ncurses_version" >&6
12402 testscip-shell system . . test. "$cf_cv_ncurses_version" = no ||
12403 catscip-shell system . . cat. >>confdefs.h <<\EOF
12404 #define NCURSES 1
12405 EOF
12406
12407 cf_nculib_root=$cf_cv_screen
12408 # This works, except for the special case where we find gpm, but
12409 # ncurses is in a nonstandard location via $LIBS, and we really want
12410 # to link gpm.
12411 cf_ncurses_LIBS=""
12412 cf_ncurses_SAVE="$LIBS"
12413 echoscip-shell system . . echo. "$as_me:12413: checking for Gpm_Open in -lgpm" >&5
12414 echoscip-shell system . . echo. $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
12415 if testscip-shell system . . test. "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
12416 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
12417 else
12418 ac_check_lib_save_LIBS=$LIBS
12419 LIBS="-lgpm $LIBS"
12420 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
12421 #line 12421 "configure"
12422 #include "confdefs.h"
12423
12424 /* Override any gcc2 internal prototype to avoid an error. */
12425 #ifdef __cplusplus
12426 extern "C"
12427 #endif
12428 /* We use char because int might match the return type of a gcc2
12429 builtin and then its argument prototype would still apply. */
12430 char Gpm_Open (void);
12431 int
12432 main (void)
12433 {
12434 Gpm_Open ();
12435 ;
12436 return 0;
12437 }
12438 _ACEOF
12439 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
12440 if { (eval echo "$as_me:12440: \"$ac_link\"") >&5
12441 (eval $ac_link) 2>&5
12442 ac_status=$?
12443 echoscip-shell system . . echo. "$as_me:12443: \$? = $ac_status" >&5
12444 (exit "$ac_status"); } &&
12445 { ac_try='test -s "conftest$ac_exeext"'
12446 { (eval echo "$as_me:12446: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12448 ac_status=$?
12449 echoscip-shell system . . echo. "$as_me:12449: \$? = $ac_status" >&5
12450 (exit "$ac_status"); }; }; then
12451 ac_cv_lib_gpm_Gpm_Open=yes
12452 else
12453 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
12454 catscip-shell system . . cat. "conftest.$ac_ext" >&5
12455 ac_cv_lib_gpm_Gpm_Open=no
12456 fi
12457 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12458 LIBS=$ac_check_lib_save_LIBS
12459 fi
12460 echoscip-shell system . . echo. "$as_me:12460: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12461 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
12462 if testscip-shell system . . test. "$ac_cv_lib_gpm_Gpm_Open" = yes; then
12463 echoscip-shell system . . echo. "$as_me:12463: checking for initscr in -lgpm" >&5
12464 echoscip-shell system . . echo. $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
12465 if testscip-shell system . . test. "${ac_cv_lib_gpm_initscr+set}" = set; then
12466 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468 ac_check_lib_save_LIBS=$LIBS
12469 LIBS="-lgpm $LIBS"
12470 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
12471 #line 12471 "configure"
12472 #include "confdefs.h"
12473
12474 /* Override any gcc2 internal prototype to avoid an error. */
12475 #ifdef __cplusplus
12476 extern "C"
12477 #endif
12478 /* We use char because int might match the return type of a gcc2
12479 builtin and then its argument prototype would still apply. */
12480 char initscr (void);
12481 int
12482 main (void)
12483 {
12484 initscr ();
12485 ;
12486 return 0;
12487 }
12488 _ACEOF
12489 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
12490 if { (eval echo "$as_me:12490: \"$ac_link\"") >&5
12491 (eval $ac_link) 2>&5
12492 ac_status=$?
12493 echoscip-shell system . . echo. "$as_me:12493: \$? = $ac_status" >&5
12494 (exit "$ac_status"); } &&
12495 { ac_try='test -s "conftest$ac_exeext"'
12496 { (eval echo "$as_me:12496: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12498 ac_status=$?
12499 echoscip-shell system . . echo. "$as_me:12499: \$? = $ac_status" >&5
12500 (exit "$ac_status"); }; }; then
12501 ac_cv_lib_gpm_initscr=yes
12502 else
12503 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
12504 catscip-shell system . . cat. "conftest.$ac_ext" >&5
12505 ac_cv_lib_gpm_initscr=no
12506 fi
12507 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12508 LIBS=$ac_check_lib_save_LIBS
12509 fi
12510 echoscip-shell system . . echo. "$as_me:12510: result: $ac_cv_lib_gpm_initscr" >&5
12511 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
12512 if testscip-shell system . . test. "$ac_cv_lib_gpm_initscr" = yes; then
12513 LIBS="$cf_ncurses_SAVE"
12514 else
12515 cf_ncurses_LIBS="-lgpm"
12516 fi
12517
12518 fi
12519
12520 case "$host_os" in
12521 (freebsd*)
12522 # This is only necessary if you are linking against an obsolete
12523 # version of ncurses (but it should do no harm, since it is static).
12524 if testscip-shell system . . test. "$cf_nculib_root" = ncurses ; then
12525 echoscip-shell system . . echo. "$as_me:12525: checking for tgoto in -lmytinfo" >&5
12526 echoscip-shell system . . echo. $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
12527 if testscip-shell system . . test. "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
12528 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
12529 else
12530 ac_check_lib_save_LIBS=$LIBS
12531 LIBS="-lmytinfo $LIBS"
12532 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
12533 #line 12533 "configure"
12534 #include "confdefs.h"
12535
12536 /* Override any gcc2 internal prototype to avoid an error. */
12537 #ifdef __cplusplus
12538 extern "C"
12539 #endif
12540 /* We use char because int might match the return type of a gcc2
12541 builtin and then its argument prototype would still apply. */
12542 char tgoto (void);
12543 int
12544 main (void)
12545 {
12546 tgoto ();
12547 ;
12548 return 0;
12549 }
12550 _ACEOF
12551 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
12552 if { (eval echo "$as_me:12552: \"$ac_link\"") >&5
12553 (eval $ac_link) 2>&5
12554 ac_status=$?
12555 echoscip-shell system . . echo. "$as_me:12555: \$? = $ac_status" >&5
12556 (exit "$ac_status"); } &&
12557 { ac_try='test -s "conftest$ac_exeext"'
12558 { (eval echo "$as_me:12558: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echoscip-shell system . . echo. "$as_me:12561: \$? = $ac_status" >&5
12562 (exit "$ac_status"); }; }; then
12563 ac_cv_lib_mytinfo_tgoto=yes
12564 else
12565 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
12566 catscip-shell system . . cat. "conftest.$ac_ext" >&5
12567 ac_cv_lib_mytinfo_tgoto=no
12568 fi
12569 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12570 LIBS=$ac_check_lib_save_LIBS
12571 fi
12572 echoscip-shell system . . echo. "$as_me:12572: result: $ac_cv_lib_mytinfo_tgoto" >&5
12573 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
12574 if testscip-shell system . . test. "$ac_cv_lib_mytinfo_tgoto" = yes; then
12575 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
12576 fi
12577
12578 fi
12579 ;;
12580 esac
12581
12582 cf_add_libs="$LIBS"
12583 # reverse order
12584 cf_add_0lib=
12585 for cf_add_1lib in $cf_ncurses_LIBS; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12586 # filter duplicates
12587 for cf_add_1lib in $cf_add_0lib; do
12588 for cf_add_2lib in $cf_add_libs; do
12589 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
12590 cf_add_1lib=
12591 break
12592 fi
12593 done
12594 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12595 done
12596 LIBS="$cf_add_libs"
12597
12598 if testscip-shell system . . test. -n "$cf_cv_curses_dir" && testscip-shell system . . test. "$cf_cv_curses_dir" != "no"
12599 then
12600
12601 cf_add_libs="$LIBS"
12602 # reverse order
12603 cf_add_0lib=
12604 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12605 # filter duplicates
12606 for cf_add_1lib in $cf_add_0lib; do
12607 for cf_add_2lib in $cf_add_libs; do
12608 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
12609 cf_add_1lib=
12610 break
12611 fi
12612 done
12613 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12614 done
12615 LIBS="$cf_add_libs"
12616
12617 else
12618
12619 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=no'
12620 cf_libdir=""
12621 echoscip-shell system . . echo. "$as_me:12621: checking for initscr" >&5
12622 echoscip-shell system . . echo. $ECHO_N "checking for initscr... $ECHO_C" >&6
12623 if testscip-shell system . . test. "${ac_cv_func_initscr+set}" = set; then
12624 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
12625 else
12626 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
12627 #line 12627 "configure"
12628 #include "confdefs.h"
12629 #define initscr autoconf_temporary
12630 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12631 #undef initscr
12632
12633 #ifdef __cplusplus
12634 extern "C"
12635 #endif
12636
12637 /* We use char because int might match the return type of a gcc2
12638 builtin and then its argument prototype would still apply. */
12639 char initscr (void);
12640
12641 int
12642 main (void)
12643 {
12644
12645 /* The GNU C library defines stubs for functions which it implements
12646 to always fail with ENOSYS. Some functions are actually named
12647 something starting with __ and the normal name is an alias. */
12648 #if defined (__stub_initscr) || defined (__stub___initscr)
12649 #error found stub for initscr
12650 #endif
12651
12652 return initscr ();
12653 ;
12654 return 0;
12655 }
12656 _ACEOF
12657 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
12658 if { (eval echo "$as_me:12658: \"$ac_link\"") >&5
12659 (eval $ac_link) 2>&5
12660 ac_status=$?
12661 echoscip-shell system . . echo. "$as_me:12661: \$? = $ac_status" >&5
12662 (exit "$ac_status"); } &&
12663 { ac_try='test -s "conftest$ac_exeext"'
12664 { (eval echo "$as_me:12664: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12666 ac_status=$?
12667 echoscip-shell system . . echo. "$as_me:12667: \$? = $ac_status" >&5
12668 (exit "$ac_status"); }; }; then
12669 ac_cv_func_initscr=yes
12670 else
12671 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
12672 catscip-shell system . . cat. "conftest.$ac_ext" >&5
12673 ac_cv_func_initscr=no
12674 fi
12675 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12676 fi
12677 echoscip-shell system . . echo. "$as_me:12677: result: $ac_cv_func_initscr" >&5
12678 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_func_initscr" >&6
12679 if testscip-shell system . . test. "$ac_cv_func_initscr" = yes; then
12680 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
12681 else
12682
12683 cf_save_LIBS="$LIBS"
12684 echoscip-shell system . . echo. "$as_me:12684: checking for initscr in -l$cf_nculib_root" >&5
12685 echoscip-shell system . . echo. $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
12686 LIBS="-l$cf_nculib_root $LIBS"
12687 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
12688 #line 12688 "configure"
12689 #include "confdefs.h"
12690 #include <${cf_cv_ncurses_header:-curses.h}>
12691 int
12692 main (void)
12693 {
12694 initscr()
12695 ;
12696 return 0;
12697 }
12698 _ACEOF
12699 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
12700 if { (eval echo "$as_me:12700: \"$ac_link\"") >&5
12701 (eval $ac_link) 2>&5
12702 ac_status=$?
12703 echoscip-shell system . . echo. "$as_me:12703: \$? = $ac_status" >&5
12704 (exit "$ac_status"); } &&
12705 { ac_try='test -s "conftest$ac_exeext"'
12706 { (eval echo "$as_me:12706: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12708 ac_status=$?
12709 echoscip-shell system . . echo. "$as_me:12709: \$? = $ac_status" >&5
12710 (exit "$ac_status"); }; }; then
12711 echoscip-shell system . . echo. "$as_me:12711: result: yes" >&5
12712 echoscip-shell system . . echo. "${ECHO_T}yes" >&6
12713 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
12714
12715 else
12716 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
12717 catscip-shell system . . cat. "conftest.$ac_ext" >&5
12718 echoscip-shell system . . echo. "$as_me:12718: result: no" >&5
12719 echoscip-shell system . . echo. "${ECHO_T}no" >&6
12720
12721 cf_search=
12722 cf_library_path_list=""
12723 if testscip-shell system . . test. -n "${LDFLAGS}${LIBS}" ; then
12724 for cf_library_path in $LDFLAGS $LIBS
12725 do
12726 case "$cf_library_path" in
12727 (-L*)
12728 cf_library_path=`echoscip-shell system . . echo. ".$cf_library_path" |sedscip-shell system . . sed. -e 's/^...//' -e 's,/lib$,,'`
12729
12730 testscip-shell system . . test. "x$cf_library_path" != "xNONE" && \
12731 test -d "$cf_library_path" && \
12732 {
12733 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for lib-directories under $cf_library_path"
12734 testscip-shell system . . test. -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
12735 testscip-shell system . . test. -d "$cf_library_path/lib/$cf_nculib_root" && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
12736 testscip-shell system . . test. -d "$cf_library_path/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
12737 testscip-shell system . . test. -d "$cf_library_path/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
12738 testscip-shell system . . test. -d "$cf_library_path/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root"
12739 }
12740
12741 cf_library_path_list="$cf_library_path_list $cf_search"
12742 ;;
12743 esac
12744 done
12745 fi
12746
12747 cf_search=
12748
12749 testscip-shell system . . test. "x$prefix" != "xNONE" && \
12750 test -d "$prefix" && \
12751 {
12752 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for lib-directories under $prefix"
12753 testscip-shell system . . test. -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
12754 testscip-shell system . . test. -d "$prefix/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
12755 testscip-shell system . . test. -d "$prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
12756 testscip-shell system . . test. -d "$prefix/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
12757 testscip-shell system . . test. -d "$prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
12758 }
12759
12760 for cf_subdir_prefix in \
12761 /usr \
12762 /usr/local \
12763 /usr/pkg \
12764 /opt \
12765 /opt/local \
12766 $HOME
12767 do
12768
12769 testscip-shell system . . test. "x$cf_subdir_prefix" != "x$prefix" && \
12770 test -d "$cf_subdir_prefix" && \
12771 { testscip-shell system . . test. -z "$prefix" || testscip-shell system . . test. "x$prefix" = xNONE || testscip-shell system . . test. "x$cf_subdir_prefix" != "x$prefix"; } && {
12772 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... testing for lib-directories under $cf_subdir_prefix"
12773 testscip-shell system . . test. -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
12774 testscip-shell system . . test. -d "$cf_subdir_prefix/lib/$cf_nculib_root" && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
12775 testscip-shell system . . test. -d "$cf_subdir_prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
12776 testscip-shell system . . test. -d "$cf_subdir_prefix/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
12777 testscip-shell system . . test. -d "$cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root"
12778 }
12779
12780 done
12781
12782 cf_search="$cf_library_path_list $cf_search"
12783
12784 for cf_libdir in $cf_search
12785 do
12786 echoscip-shell system . . echo. "$as_me:12786: checking for -l$cf_nculib_root in $cf_libdir" >&5
12787 echoscip-shell system . . echo. $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
12788 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
12789 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
12790 #line 12790 "configure"
12791 #include "confdefs.h"
12792 #include <${cf_cv_ncurses_header:-curses.h}>
12793 int
12794 main (void)
12795 {
12796 initscr()
12797 ;
12798 return 0;
12799 }
12800 _ACEOF
12801 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
12802 if { (eval echo "$as_me:12802: \"$ac_link\"") >&5
12803 (eval $ac_link) 2>&5
12804 ac_status=$?
12805 echoscip-shell system . . echo. "$as_me:12805: \$? = $ac_status" >&5
12806 (exit "$ac_status"); } &&
12807 { ac_try='test -s "conftest$ac_exeext"'
12808 { (eval echo "$as_me:12808: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12810 ac_status=$?
12811 echoscip-shell system . . echo. "$as_me:12811: \$? = $ac_status" >&5
12812 (exit "$ac_status"); }; }; then
12813 echoscip-shell system . . echo. "$as_me:12813: result: yes" >&5
12814 echoscip-shell system . . echo. "${ECHO_T}yes" >&6
12815 eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
12816 break
12817 else
12818 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
12819 catscip-shell system . . cat. "conftest.$ac_ext" >&5
12820 echoscip-shell system . . echo. "$as_me:12820: result: no" >&5
12821 echoscip-shell system . . echo. "${ECHO_T}no" >&6
12822 LIBS="$cf_save_LIBS"
12823 fi
12824 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12825 done
12826
12827 fi
12828 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12829
12830 fi
12831
12832 eval 'cf_found_library="$cf_cv_have_lib_'"$cf_nculib_root"\"
12833
12834 if testscip-shell system . . test. "$cf_found_library" = no ; then
12835 { { echoscip-shell system . . echo. "$as_me:12835: error: Cannot link $cf_nculib_root library" >&5
12836 echoscip-shell system . . echo. "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
12837 { (exit 1); exit 1; }; }
12838 fi
12839
12840 fi
12841
12842 if testscip-shell system . . test. -n "$cf_ncurses_LIBS" ; then
12843 echoscip-shell system . . echo. "$as_me:12843: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
12844 echoscip-shell system . . echo. $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
12845 cf_ncurses_SAVE="$LIBS"
12846 for p in $cf_ncurses_LIBS ; do
12847 q=`echoscip-shell system . . echo. "$LIBS" | sedscip-shell system . . sed. -e "s%$p %%" -e "s%$p$%%"`
12848 if testscip-shell system . . test. "$q" != "$LIBS" ; then
12849 LIBS="$q"
12850 fi
12851 done
12852 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
12853 #line 12853 "configure"
12854 #include "confdefs.h"
12855 #include <${cf_cv_ncurses_header:-curses.h}>
12856 int
12857 main (void)
12858 {
12859 initscr(); mousemask(0,(void*)0); tigetstr((char *)0);
12860 ;
12861 return 0;
12862 }
12863 _ACEOF
12864 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
12865 if { (eval echo "$as_me:12865: \"$ac_link\"") >&5
12866 (eval $ac_link) 2>&5
12867 ac_status=$?
12868 echoscip-shell system . . echo. "$as_me:12868: \$? = $ac_status" >&5
12869 (exit "$ac_status"); } &&
12870 { ac_try='test -s "conftest$ac_exeext"'
12871 { (eval echo "$as_me:12871: \"$ac_try\"") >&5
12872 (eval $ac_try) 2>&5
12873 ac_status=$?
12874 echoscip-shell system . . echo. "$as_me:12874: \$? = $ac_status" >&5
12875 (exit "$ac_status"); }; }; then
12876 echoscip-shell system . . echo. "$as_me:12876: result: yes" >&5
12877 echoscip-shell system . . echo. "${ECHO_T}yes" >&6
12878 else
12879 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
12880 catscip-shell system . . cat. "conftest.$ac_ext" >&5
12881 echoscip-shell system . . echo. "$as_me:12881: result: no" >&5
12882 echoscip-shell system . . echo. "${ECHO_T}no" >&6
12883 LIBS="$cf_ncurses_SAVE"
12884 fi
12885 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12886 fi
12887
12888 cf_nculib_ROOT=`echoscip-shell system . . echo. "HAVE_LIB$cf_nculib_root" | sedscip-shell system . . sed. y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12889
12890 catscip-shell system . . cat. >>confdefs.h <<EOF
12891 #define $cf_nculib_ROOT 1
12892 EOF
12893
12894 fi
12895 else
12896 NCURSES_CONFIG=none
12897 fi
12898
12899 ;;
12900 (*)
12901 { { echoscip-shell system . . echo. "$as_me:12901: error: unexpected screen-value: $cf_cv_screen" >&5
12902 echoscip-shell system . . echo. "$as_me: error: unexpected screen-value: $cf_cv_screen" >&2;}
12903 { (exit 1); exit 1; }; }
12904 ;;
12905 esac
12906
12907 if testscip-shell system . . test. "$NCURSES_CONFIG_PKG" != none ; then
12908 cf_version=`$PKG_CONFIG --modversion $NCURSES_CONFIG_PKG 2>/dev/nullscip-shell filesystem . . `/dev/null`.`
12909
12910 NCURSES_MAJOR=`echoscip-shell system . . echo. "$cf_version" | sedscip-shell system . . sed. -e 's/\..*//'`
12911 NCURSES_MINOR=`echoscip-shell system . . echo. "$cf_version" | sedscip-shell system . . sed. -e 's/^[0-9][0-9]*\.//' -e 's/\..*//'`
12912 NCURSES_PATCH=`echoscip-shell system . . echo. "$cf_version" | sedscip-shell system . . sed. -e 's/^[0-9][0-9]*\.[0-9][0-9]*\.//'`
12913
12914 cf_cv_abi_version=`$PKG_CONFIG --variable=abi_version $NCURSES_CONFIG_PKG 2>/dev/nullscip-shell filesystem . . `/dev/null`.`
12915 if testscip-shell system . . test. -z "$cf_cv_abi_version"
12916 then
12917 cf_cv_abi_version=`$PKG_CONFIG --variable=major_version $NCURSES_CONFIG_PKG 2>/dev/nullscip-shell filesystem . . `/dev/null`.`
12918 fi
12919
12920 elif testscip-shell system . . test. "$NCURSES_CONFIG" != none ; then
12921
12922 cf_version=`$NCURSES_CONFIG --version 2>/dev/nullscip-shell filesystem . . `/dev/null`.`
12923
12924 NCURSES_MAJOR=`echoscip-shell system . . echo. "$cf_version" | sedscip-shell system . . sed. -e 's/\..*//'`
12925 NCURSES_MINOR=`echoscip-shell system . . echo. "$cf_version" | sedscip-shell system . . sed. -e 's/^[0-9][0-9]*\.//' -e 's/\..*//'`
12926 NCURSES_PATCH=`echoscip-shell system . . echo. "$cf_version" | sedscip-shell system . . sed. -e 's/^[0-9][0-9]*\.[0-9][0-9]*\.//'`
12927
12928 # ABI version is not available from headers
12929 cf_cv_abi_version=`$NCURSES_CONFIG --abi-version 2>/dev/nullscip-shell filesystem . . `/dev/null`.`
12930
12931 else
12932
12933 for cf_name in MAJOR MINOR PATCH
12934 do
12935 catscip-shell system . . cat. >conftest.$ac_ext <<CF_EOF
12936 #include <${cf_cv_ncurses_header:-curses.h}>
12937 AUTOCONF_$cf_name NCURSES_VERSION_$cf_name
12938 CF_EOF
12939 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | fgrep AUTOCONF_$cf_name >conftest.out"
12940 { (eval echo "$as_me:12940: \"$cf_try\"") >&5
12941 (eval $cf_try) 2>&5
12942 ac_status=$?
12943 echoscip-shell system . . echo. "$as_me:12943: \$? = $ac_status" >&5
12944 (exit "$ac_status"); }
12945 if testscip-shell system . . test. -f conftest.out ; then
12946 cf_result=`sedscip-shell system . . sed. -e "s/^.*AUTOCONF_${cf_name}[ ][ ]*//" conftest.out`
12947 eval NCURSES_$cf_name=\"$cf_result\"
12948 # cat conftest.$ac_ext
12949 # cat conftest.out
12950 fi
12951 done
12952
12953 cf_cv_abi_version=${NCURSES_MAJOR}
12954
12955 fi
12956
12957 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
12958
12959 cf_cv_timestamp=`datescip-shell system . . date.`
12960
12961 echoscip-shell system . . echo. "$as_me:12961: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
12962 echoscip-shell system . . echo. "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
12963
12964 echoscip-shell system . . echo. "$as_me:12964: checking if KEY_RESIZE is supported" >&5
12965 echoscip-shell system . . echo. $ECHO_N "checking if KEY_RESIZE is supported... $ECHO_C" >&6
12966 if testscip-shell system . . test. "${cf_cv_curses_resizes+set}" = set; then
12967 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
12968 else
12969
12970 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
12971 #line 12971 "configure"
12972 #include "confdefs.h"
12973 #include <${cf_cv_ncurses_header:-curses.h}>
12974 int
12975 main (void)
12976 {
12977 int key = KEY_RESIZE; (void)key
12978 ;
12979 return 0;
12980 }
12981 _ACEOF
12982 rmscip-shell system . . rm. -f "conftest.$ac_objext"
12983 if { (eval echo "$as_me:12983: \"$ac_compile\"") >&5
12984 (eval $ac_compile) 2>&5
12985 ac_status=$?
12986 echoscip-shell system . . echo. "$as_me:12986: \$? = $ac_status" >&5
12987 (exit "$ac_status"); } &&
12988 { ac_try='test -s "conftest.$ac_objext"'
12989 { (eval echo "$as_me:12989: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12991 ac_status=$?
12992 echoscip-shell system . . echo. "$as_me:12992: \$? = $ac_status" >&5
12993 (exit "$ac_status"); }; }; then
12994 cf_cv_curses_resizes=yes
12995 else
12996 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
12997 catscip-shell system . . cat. "conftest.$ac_ext" >&5
12998 cf_cv_curses_resizes=no
12999 fi
13000 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
13001 fi
13002 echoscip-shell system . . echo. "$as_me:13002: result: $cf_cv_curses_resizes" >&5
13003 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_curses_resizes" >&6
13004 cf_cv_enable_sigwinch=0
13005 testscip-shell system . . test. "$cf_cv_curses_resizes" = yes && cf_cv_enable_sigwinch=1
13006
13007 echoscip-shell system . . echo. "$as_me:13007: checking if you want to have a library-prefix" >&5
13008 echoscip-shell system . . echo. $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
13009
13010 # Check whether --with-lib-prefix or --without-lib-prefix was given.
13011 if testscip-shell system . . test. "${with_lib_prefix+set}" = set; then
13012 withval="$with_lib_prefix"
13013 with_lib_prefix=$withval
13014 else
13015 with_lib_prefix=auto
13016 fi;
13017 echoscip-shell system . . echo. "$as_me:13017: result: $with_lib_prefix" >&5
13018 echoscip-shell system . . echo. "${ECHO_T}$with_lib_prefix" >&6
13019
13020 if testscip-shell system . . test. "$with_lib_prefix" = auto
13021 then
13022
13023 case "$cf_cv_system_name" in
13024 (OS/2*|os2*)
13025 if testscip-shell system . . test. "$DFT_LWR_MODEL" = libtool; then
13026 LIB_PREFIX='lib'
13027 else
13028 LIB_PREFIX=''
13029 fi
13030 ;;
13031 (*-msvc*)
13032 LIB_PREFIX=''
13033 ;;
13034 (*) LIB_PREFIX='lib'
13035 ;;
13036 esac
13037 cf_prefix=$LIB_PREFIX
13038
13039 elif testscip-shell system . . test. "$with_lib_prefix" = no
13040 then
13041 LIB_PREFIX=
13042 else
13043 LIB_PREFIX=$with_lib_prefix
13044 fi
13045
13046 LIB_SUFFIX=
13047
13048 ###############################################################################
13049
13050 if testscip-shell system . . test. X"$CC_G_OPT" = X"" ; then
13051 CC_G_OPT='-g'
13052 testscip-shell system . . test. -n "$GCC" && testscip-shell system . . test. "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
13053 fi
13054
13055 echoscip-shell system . . echo. "$as_me:13055: checking for default loader flags" >&5
13056 echoscip-shell system . . echo. $ECHO_N "checking for default loader flags... $ECHO_C" >&6
13057 case $DFT_LWR_MODEL in
13058 (normal) LD_MODEL='' ;;
13059 (debug) LD_MODEL=$CC_G_OPT ;;
13060 (profile) LD_MODEL='-pg';;
13061 (shared) LD_MODEL='' ;;
13062 esac
13063 echoscip-shell system . . echo. "$as_me:13063: result: $LD_MODEL" >&5
13064 echoscip-shell system . . echo. "${ECHO_T}$LD_MODEL" >&6
13065
13066 LD_RPATH_OPT=
13067 if testscip-shell system . . test. "x$cf_cv_enable_rpath" != xno
13068 then
13069 echoscip-shell system . . echo. "$as_me:13069: checking for an rpath option" >&5
13070 echoscip-shell system . . echo. $ECHO_N "checking for an rpath option... $ECHO_C" >&6
13071 case "$cf_cv_system_name" in
13072 (irix*)
13073 if testscip-shell system . . test. "$GCC" = yes; then
13074 LD_RPATH_OPT="-Wl,-rpath,"
13075 else
13076 LD_RPATH_OPT="-rpath "
13077 fi
13078 ;;
13079 (linux*|gnu*|k*bsd*-gnu|freebsd*)
13080 LD_RPATH_OPT="-Wl,-rpath,"
13081 ;;
13082 (openbsd[2-9].*|mirbsd*)
13083 LD_RPATH_OPT="-Wl,-rpath,"
13084 ;;
13085 (dragonfly*)
13086 LD_RPATH_OPT="-rpath "
13087 ;;
13088 (netbsd*)
13089 LD_RPATH_OPT="-Wl,-rpath,"
13090 ;;
13091 (osf*|mls+*)
13092 LD_RPATH_OPT="-rpath "
13093 ;;
13094 (solaris2*)
13095 LD_RPATH_OPT="-R"
13096 ;;
13097 (*)
13098 ;;
13099 esac
13100 echoscip-shell system . . echo. "$as_me:13100: result: $LD_RPATH_OPT" >&5
13101 echoscip-shell system . . echo. "${ECHO_T}$LD_RPATH_OPT" >&6
13102
13103 case "x$LD_RPATH_OPT" in
13104 (x-R*)
13105 echoscip-shell system . . echo. "$as_me:13105: checking if we need a space after rpath option" >&5
13106 echoscip-shell system . . echo. $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
13107 cf_save_LIBS="$LIBS"
13108
13109 cf_add_libs="$LIBS"
13110 # reverse order
13111 cf_add_0lib=
13112 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13113 # filter duplicates
13114 for cf_add_1lib in $cf_add_0lib; do
13115 for cf_add_2lib in $cf_add_libs; do
13116 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
13117 cf_add_1lib=
13118 break
13119 fi
13120 done
13121 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13122 done
13123 LIBS="$cf_add_libs"
13124
13125 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
13126 #line 13126 "configure"
13127 #include "confdefs.h"
13128
13129 int
13130 main (void)
13131 {
13132
13133 ;
13134 return 0;
13135 }
13136 _ACEOF
13137 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
13138 if { (eval echo "$as_me:13138: \"$ac_link\"") >&5
13139 (eval $ac_link) 2>&5
13140 ac_status=$?
13141 echoscip-shell system . . echo. "$as_me:13141: \$? = $ac_status" >&5
13142 (exit "$ac_status"); } &&
13143 { ac_try='test -s "conftest$ac_exeext"'
13144 { (eval echo "$as_me:13144: \"$ac_try\"") >&5
13145 (eval $ac_try) 2>&5
13146 ac_status=$?
13147 echoscip-shell system . . echo. "$as_me:13147: \$? = $ac_status" >&5
13148 (exit "$ac_status"); }; }; then
13149 cf_rpath_space=no
13150 else
13151 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
13152 catscip-shell system . . cat. "conftest.$ac_ext" >&5
13153 cf_rpath_space=yes
13154 fi
13155 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13156 LIBS="$cf_save_LIBS"
13157 echoscip-shell system . . echo. "$as_me:13157: result: $cf_rpath_space" >&5
13158 echoscip-shell system . . echo. "${ECHO_T}$cf_rpath_space" >&6
13159 testscip-shell system . . test. "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
13160 ;;
13161 esac
13162 fi
13163
13164 RM_SHARED_OPTS=
13165 LOCAL_LDFLAGS=
13166 LOCAL_LDFLAGS2=
13167 LD_SHARED_OPTS=
13168 INSTALL_LIB="-m 644"
13169 : ${rel_builddir:=.}
13170
13171 shlibdir=$libdir
13172
13173 MAKE_DLLS="#"
13174
13175 cf_cv_do_symlinks=no
13176 cf_ld_rpath_opt=
13177 testscip-shell system . . test. "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
13178
13179 echoscip-shell system . . echo. "$as_me:13179: checking whether to use release or ABI version in shared library file names" >&5
13180 echoscip-shell system . . echo. $ECHO_N "checking whether to use release or ABI version in shared library file names... $ECHO_C" >&6
13181
13182 # Check whether --with-shlib-version or --without-shlib-version was given.
13183 if testscip-shell system . . test. "${with_shlib_version+set}" = set; then
13184 withval="$with_shlib_version"
13185 testscip-shell system . . test. -z "$withval" && withval=auto
13186 case "$withval" in
13187 (yes)
13188 cf_cv_shlib_version=auto
13189 ;;
13190 (rel|abi|auto)
13191 cf_cv_shlib_version=$withval
13192 ;;
13193 (*)
13194 echoscip-shell system . . echo. "$as_me:13194: result: $withval" >&5
13195 echoscip-shell system . . echo. "${ECHO_T}$withval" >&6
13196 { { echoscip-shell system . . echo. "$as_me:13196: error: option value must be one of: rel, abi, or auto" >&5
13197 echoscip-shell system . . echo. "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
13198 { (exit 1); exit 1; }; }
13199 ;;
13200 esac
13201
13202 else
13203 cf_cv_shlib_version=auto
13204 fi;
13205 echoscip-shell system . . echo. "$as_me:13205: result: $cf_cv_shlib_version" >&5
13206 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_shlib_version" >&6
13207
13208 cf_cv_rm_so_locs=no
13209 cf_try_cflags=
13210
13211 # Some less-capable ports of gcc support only -fpic
13212 CC_SHARED_OPTS=
13213
13214 cf_try_fPIC=no
13215 if testscip-shell system . . test. "$GCC" = yes
13216 then
13217 cf_try_fPIC=yes
13218 else
13219 case "$cf_cv_system_name" in
13220 (*linux*) # e.g., PGI compiler
13221 cf_try_fPIC=yes
13222 ;;
13223 esac
13224 fi
13225
13226 if testscip-shell system . . test. "$cf_try_fPIC" = yes
13227 then
13228 echoscip-shell system . . echo. "$as_me:13228: checking which $CC option to use" >&5
13229 echoscip-shell system . . echo. $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
13230 cf_save_CFLAGS="$CFLAGS"
13231 for CC_SHARED_OPTS in -fPIC -fpic ''
13232 do
13233 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
13234 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
13235 #line 13235 "configure"
13236 #include "confdefs.h"
13237 #include <stdio.h>
13238 int
13239 main (void)
13240 {
13241 int x = 1; (void)x
13242 ;
13243 return 0;
13244 }
13245 _ACEOF
13246 rmscip-shell system . . rm. -f "conftest.$ac_objext"
13247 if { (eval echo "$as_me:13247: \"$ac_compile\"") >&5
13248 (eval $ac_compile) 2>&5
13249 ac_status=$?
13250 echoscip-shell system . . echo. "$as_me:13250: \$? = $ac_status" >&5
13251 (exit "$ac_status"); } &&
13252 { ac_try='test -s "conftest.$ac_objext"'
13253 { (eval echo "$as_me:13253: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13255 ac_status=$?
13256 echoscip-shell system . . echo. "$as_me:13256: \$? = $ac_status" >&5
13257 (exit "$ac_status"); }; }; then
13258 break
13259 else
13260 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
13261 catscip-shell system . . cat. "conftest.$ac_ext" >&5
13262 fi
13263 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
13264 done
13265 echoscip-shell system . . echo. "$as_me:13265: result: $CC_SHARED_OPTS" >&5
13266 echoscip-shell system . . echo. "${ECHO_T}$CC_SHARED_OPTS" >&6
13267 CFLAGS="$cf_save_CFLAGS"
13268 fi
13269
13270 cf_cv_shlib_version_infix=no
13271
13272 case "$cf_cv_system_name" in
13273 (aix4.3-9*|aix[5-7]*)
13274 if testscip-shell system . . test. "$GCC" = yes; then
13275 CC_SHARED_OPTS='-Wl,-brtl'
13276 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
13277 else
13278 CC_SHARED_OPTS='-brtl'
13279 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
13280 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
13281 fi
13282 ;;
13283 (beos*)
13284 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
13285 ;;
13286 (cygwin*)
13287 CC_SHARED_OPTS=
13288 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
13289 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
13290 cf_cv_shlib_version=cygdll
13291 cf_cv_shlib_version_infix=cygdll
13292 shlibdir=$bindir
13293 MAKE_DLLS=
13294 catscip-shell system . . cat. >mk_shared_lib.sh <<-CF_EOF
13295 #!$SHELL
13296 SHARED_LIB=\$1
13297 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
13298 shift
13299 cat <<-EOF
13300 Linking shared library
13301 ** SHARED_LIB \$SHARED_LIB
13302 ** IMPORT_LIB \$IMPORT_LIB
13303 EOF
13304 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
13305 CF_EOF
13306 chmodscip-shell system . . chmod. +x mk_shared_lib.sh
13307 ;;
13308 (msys*)
13309 CC_SHARED_OPTS=
13310 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
13311 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
13312 cf_cv_shlib_version=msysdll
13313 cf_cv_shlib_version_infix=msysdll
13314 shlibdir=$bindir
13315 MAKE_DLLS=
13316 catscip-shell system . . cat. >mk_shared_lib.sh <<-CF_EOF
13317 #!$SHELL
13318 SHARED_LIB=\$1
13319 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
13320 shift
13321 cat <<-EOF
13322 Linking shared library
13323 ** SHARED_LIB \$SHARED_LIB
13324 ** IMPORT_LIB \$IMPORT_LIB
13325 EOF
13326 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
13327 CF_EOF
13328 chmodscip-shell system . . chmod. +x mk_shared_lib.sh
13329 ;;
13330 (darwin*)
13331 cf_try_cflags="no-cpp-precomp"
13332 CC_SHARED_OPTS="-dynamic"
13333 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
13334 testscip-shell system . . test. "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
13335 cf_cv_shlib_version_infix=yes
13336 echoscip-shell system . . echo. "$as_me:13336: checking if ld -search_paths_first works" >&5
13337 echoscip-shell system . . echo. $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
13338 if testscip-shell system . . test. "${cf_cv_ldflags_search_paths_first+set}" = set; then
13339 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
13340 else
13341
13342 cf_save_LDFLAGS=$LDFLAGS
13343 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
13344 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
13345 #line 13345 "configure"
13346 #include "confdefs.h"
13347
13348 int
13349 main (void)
13350 {
13351 int i;
13352 ;
13353 return 0;
13354 }
13355 _ACEOF
13356 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
13357 if { (eval echo "$as_me:13357: \"$ac_link\"") >&5
13358 (eval $ac_link) 2>&5
13359 ac_status=$?
13360 echoscip-shell system . . echo. "$as_me:13360: \$? = $ac_status" >&5
13361 (exit "$ac_status"); } &&
13362 { ac_try='test -s "conftest$ac_exeext"'
13363 { (eval echo "$as_me:13363: \"$ac_try\"") >&5
13364 (eval $ac_try) 2>&5
13365 ac_status=$?
13366 echoscip-shell system . . echo. "$as_me:13366: \$? = $ac_status" >&5
13367 (exit "$ac_status"); }; }; then
13368 cf_cv_ldflags_search_paths_first=yes
13369 else
13370 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
13371 catscip-shell system . . cat. "conftest.$ac_ext" >&5
13372 cf_cv_ldflags_search_paths_first=no
13373 fi
13374 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13375 LDFLAGS=$cf_save_LDFLAGS
13376 fi
13377 echoscip-shell system . . echo. "$as_me:13377: result: $cf_cv_ldflags_search_paths_first" >&5
13378 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
13379 if testscip-shell system . . test. "$cf_cv_ldflags_search_paths_first" = yes; then
13380 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
13381 fi
13382 ;;
13383 (haiku*)
13384
13385 testscip-shell system . . test. "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
13386 if testscip-shell system . . test. "$cf_cv_shlib_version" = rel; then
13387 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
13388 else
13389 cf_cv_shared_soname='`basename $@`'
13390 fi
13391
13392 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
13393 ;;
13394 (hpux[7-8]*)
13395 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
13396 if testscip-shell system . . test. "$GCC" != yes; then
13397 CC_SHARED_OPTS='+Z'
13398 fi
13399 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
13400 INSTALL_LIB="-m 555"
13401 ;;
13402 (hpux*)
13403 # (tested with gcc 2.7.2 -- I don't have c89)
13404 if testscip-shell system . . test. "$GCC" = yes; then
13405 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
13406 else
13407 CC_SHARED_OPTS='+Z'
13408 LD_SHARED_OPTS='-Wl,+b,${libdir}'
13409 fi
13410 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
13411 # HP-UX shared libraries must be executable, and should be
13412 # readonly to exploit a quirk in the memory manager.
13413 INSTALL_LIB="-m 555"
13414 ;;
13415 (interix*)
13416 testscip-shell system . . test. "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
13417 if testscip-shell system . . test. "$cf_cv_shlib_version" = rel; then
13418 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
13419 else
13420 cf_shared_soname='`basename $@`'
13421 fi
13422 CC_SHARED_OPTS=
13423 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
13424 ;;
13425 (irix*)
13426 if testscip-shell system . . test. "$cf_cv_enable_rpath" = yes ; then
13427 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
13428 fi
13429 # tested with IRIX 5.2 and 'cc'.
13430 if testscip-shell system . . test. "$GCC" != yes; then
13431 CC_SHARED_OPTS='-KPIC'
13432 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
13433 else
13434 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
13435 fi
13436 cf_cv_rm_so_locs=yes
13437 ;;
13438 (linux*|gnu*|k*bsd*-gnu)
13439 if testscip-shell system . . test. "$DFT_LWR_MODEL" = "shared" && testscip-shell system . . test. -n "$LD_RPATH_OPT" ; then
13440 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
13441 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
13442 fi
13443 if testscip-shell system . . test. "$cf_cv_enable_rpath" = yes ; then
13444 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
13445 fi
13446
13447 testscip-shell system . . test. "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
13448 if testscip-shell system . . test. "$cf_cv_shlib_version" = rel; then
13449 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
13450 else
13451 cf_cv_shared_soname='`basename $@`'
13452 fi
13453
13454 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
13455 ;;
13456 (mingw*msvc*)
13457 cf_cv_shlib_version=msvcdll
13458 cf_cv_shlib_version_infix=msvcdll
13459 shlibdir=$bindir
13460 MAKE_DLLS=
13461 if testscip-shell system . . test. "$DFT_LWR_MODEL" = "shared" ; then
13462 LOCAL_LDFLAGS="-link -dll"
13463 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
13464 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
13465 fi
13466 CC_SHARED_OPTS=
13467 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
13468 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
13469 catscip-shell system . . cat. >mk_shared_lib.sh <<-CF_EOF
13470 #!$SHELL
13471 SHARED_LIB=\$1
13472 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
13473 shift
13474 my_ld=\$1
13475 shift
13476 cat <<-EOF
13477 Linking shared library
13478 ** SHARED LIB \$SHARED_LIB
13479 ** IMPORT_LIB \$IMPORT_LIB
13480 EOF
13481 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
13482 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
13483 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
13484 CF_EOF
13485 chmodscip-shell system . . chmod. +x mk_shared_lib.sh
13486 catscip-shell system . . cat. >mk_prog.sh <<-CF_EOF
13487 #!$SHELL
13488 shift
13489 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
13490 LD="$LD"
13491 clopts=()
13492 ldopts=("/subsystem:console")
13493 libs=()
13494 isdll=0
13495 while test \$# -gt 0; do
13496 case "\$1" in
13497 -link)
13498 # ignore -link argument
13499 ;;
13500 -M[TD] | -M[TD]d)
13501 # ignore runtime-library option
13502 ;;
13503 -dll)
13504 isdll=1
13505 ;;
13506 -W* | -w*)
13507 # ignore warnings
13508 ;;
13509 -D*)
13510 clopts+=("\$1")
13511 ;;
13512 -I*)
13513 clopts+=("\$1")
13514 ;;
13515 -l*)
13516 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
13517 ;;
13518 -L*)
13519 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
13520 ;;
13521 *.obj | *.$OBJEXT)
13522 ldopts+=("\$1")
13523 ;;
13524 -Wl,*)
13525 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
13526 ldopts+=("\${linkarg}")
13527 done
13528 ;;
13529 *.lib)
13530 ldopts+=("\$1")
13531 ;;
13532 -o)
13533 shift
13534 ldopts+=("-out:\$1")
13535 ;;
13536 *)
13537 clopts+=("\$1")
13538 ldopts+=("\$1")
13539 ;;
13540 esac
13541 shift
13542 done
13543 if [ "\$isdll" -ne 0 ]; then
13544 for lib in \${libs[*]}; do
13545 ldopts+=("\$lib.dll.lib")
13546 done
13547 else
13548 for lib in \${libs[*]}; do
13549 ldopts+=("\$lib.lib")
13550 done
13551 fi
13552 cat <<-EOF
13553 Creating program
13554 ** ld options: "\${ldopts[@]}"
13555 EOF
13556 exec \$LD \${ldopts[@]}
13557 CF_EOF
13558 chmodscip-shell system . . chmod. +x mk_prog.sh
13559 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
13560 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh"
13561 ;;
13562 (mingw*)
13563 cf_cv_shlib_version=mingw
13564 cf_cv_shlib_version_infix=mingw
13565 shlibdir=$bindir
13566 MAKE_DLLS=
13567 if testscip-shell system . . test. "$DFT_LWR_MODEL" = "shared" ; then
13568 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
13569 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
13570 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
13571 fi
13572 CC_SHARED_OPTS=
13573 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
13574 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
13575 catscip-shell system . . cat. >mk_shared_lib.sh <<-CF_EOF
13576 #!$SHELL
13577 SHARED_LIB=\$1
13578 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
13579 shift
13580 cat <<-EOF
13581 Linking shared library
13582 ** SHARED_LIB \$SHARED_LIB
13583 ** IMPORT_LIB \$IMPORT_LIB
13584 EOF
13585 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
13586 CF_EOF
13587 chmodscip-shell system . . chmod. +x mk_shared_lib.sh
13588 ;;
13589 (openbsd[2-9].*|mirbsd*)
13590 if testscip-shell system . . test. "$DFT_LWR_MODEL" = "shared" && testscip-shell system . . test. -n "$LD_RPATH_OPT" ; then
13591 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
13592 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
13593 fi
13594 if testscip-shell system . . test. "$cf_cv_enable_rpath" = yes ; then
13595 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
13596 fi
13597 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
13598
13599 testscip-shell system . . test. "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
13600 if testscip-shell system . . test. "$cf_cv_shlib_version" = rel; then
13601 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
13602 else
13603 cf_cv_shared_soname='`basename $@`'
13604 fi
13605
13606 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
13607 ;;
13608 (nskJ*)
13609 CC_SHARED_OPTS=
13610 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
13611 ;;
13612 (nskL*)
13613 CC_SHARED_OPTS=
13614 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
13615 ;;
13616 (nto-qnx*|openbsd*|freebsd[12].*)
13617 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
13618 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
13619 testscip-shell system . . test. "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
13620 ;;
13621 (dragonfly*|freebsd*)
13622 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
13623 if testscip-shell system . . test. "$DFT_LWR_MODEL" = "shared" && testscip-shell system . . test. "$cf_cv_enable_rpath" = yes ; then
13624 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
13625 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
13626 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
13627 fi
13628
13629 testscip-shell system . . test. "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
13630 if testscip-shell system . . test. "$cf_cv_shlib_version" = rel; then
13631 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
13632 else
13633 cf_cv_shared_soname='`basename $@`'
13634 fi
13635
13636 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
13637 ;;
13638 (netbsd*)
13639 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
13640 if testscip-shell system . . test. "$DFT_LWR_MODEL" = "shared" && testscip-shell system . . test. "$cf_cv_enable_rpath" = yes ; then
13641 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
13642 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
13643 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
13644 if testscip-shell system . . test. "$cf_cv_shlib_version" = auto; then
13645 if testscip-shell system . . test. -f /usr/libexec/ld.elf_soscip-shell filesystem . . `/usr/libexec/ld.elf_so`.; then
13646 cf_cv_shlib_version=abi
13647 else
13648 cf_cv_shlib_version=rel
13649 fi
13650 fi
13651
13652 testscip-shell system . . test. "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
13653 if testscip-shell system . . test. "$cf_cv_shlib_version" = rel; then
13654 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
13655 else
13656 cf_cv_shared_soname='`basename $@`'
13657 fi
13658
13659 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
13660 else
13661 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@'
13662 fi
13663 ;;
13664 (osf*|mls+*)
13665 # tested with OSF/1 V3.2 and 'cc'
13666 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
13667 # link with shared libs).
13668 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
13669 case "$host_os" in
13670 (osf4*)
13671 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
13672 ;;
13673 esac
13674 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
13675 if testscip-shell system . . test. "$DFT_LWR_MODEL" = "shared" && testscip-shell system . . test. -n "$LD_RPATH_OPT" ; then
13676 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
13677 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
13678 fi
13679 cf_cv_rm_so_locs=yes
13680 ;;
13681 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
13682 # tested with osr5.0.5
13683 if testscip-shell system . . test. "$GCC" != yes; then
13684 CC_SHARED_OPTS='-belf -KPIC'
13685 fi
13686 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
13687 if testscip-shell system . . test. "$cf_cv_enable_rpath" = yes ; then
13688 # only way is to set LD_RUN_PATH but no switch for it
13689 RUN_PATH=$libdir
13690 fi
13691 testscip-shell system . . test. "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
13692 LINK_PROGS='LD_RUN_PATH=${libdir}'
13693 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
13694 ;;
13695 (sunos4*)
13696 # tested with SunOS 4.1.1 and gcc 2.7.0
13697 if testscip-shell system . . test. "$GCC" != yes; then
13698 CC_SHARED_OPTS='-KPIC'
13699 fi
13700 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
13701 testscip-shell system . . test. "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
13702 ;;
13703 (solaris2*)
13704 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
13705 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
13706 if testscip-shell system . . test. "$DFT_LWR_MODEL" = "shared" ; then
13707 LOCAL_LDFLAGS="-R\$(LOCAL_LIBDIR):\${libdir}"
13708 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
13709 fi
13710 if testscip-shell system . . test. "$cf_cv_enable_rpath" = yes ; then
13711 EXTRA_LDFLAGS="-R\${libdir} $EXTRA_LDFLAGS"
13712 fi
13713
13714 testscip-shell system . . test. "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
13715 if testscip-shell system . . test. "$cf_cv_shlib_version" = rel; then
13716 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
13717 else
13718 cf_cv_shared_soname='`basename $@`'
13719 fi
13720
13721 if testscip-shell system . . test. "$GCC" != yes; then
13722 cf_save_CFLAGS="$CFLAGS"
13723 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
13724 do
13725 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
13726 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
13727 #line 13727 "configure"
13728 #include "confdefs.h"
13729 #include <stdio.h>
13730 int
13731 main (void)
13732 {
13733 printf("Hello\\n");
13734 ;
13735 return 0;
13736 }
13737 _ACEOF
13738 rmscip-shell system . . rm. -f "conftest.$ac_objext"
13739 if { (eval echo "$as_me:13739: \"$ac_compile\"") >&5
13740 (eval $ac_compile) 2>&5
13741 ac_status=$?
13742 echoscip-shell system . . echo. "$as_me:13742: \$? = $ac_status" >&5
13743 (exit "$ac_status"); } &&
13744 { ac_try='test -s "conftest.$ac_objext"'
13745 { (eval echo "$as_me:13745: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13747 ac_status=$?
13748 echoscip-shell system . . echo. "$as_me:13748: \$? = $ac_status" >&5
13749 (exit "$ac_status"); }; }; then
13750 break
13751 else
13752 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
13753 catscip-shell system . . cat. "conftest.$ac_ext" >&5
13754 fi
13755 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
13756 done
13757 CFLAGS="$cf_save_CFLAGS"
13758 CC_SHARED_OPTS=$cf_shared_opts
13759 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -Wl,-h,'$cf_cv_shared_soname' -o $@'
13760 else
13761 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -Wl,-h,'$cf_cv_shared_soname' -o $@'
13762 fi
13763 ;;
13764 (sysv5uw7*|unix_sv*)
13765 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
13766 if testscip-shell system . . test. "$GCC" != yes; then
13767 CC_SHARED_OPTS='-KPIC'
13768 fi
13769 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
13770 ;;
13771 (*)
13772 CC_SHARED_OPTS='unknown'
13773 MK_SHARED_LIB='echo unknown'
13774 ;;
13775 esac
13776
13777 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
13778 case "$cf_cv_shlib_version" in
13779 (rel|abi)
13780 case "$MK_SHARED_LIB" in
13781 (*'-o $@')
13782 testscip-shell system . . test. "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
13783 ;;
13784 (*)
13785 { echoscip-shell system . . echo. "$as_me:13785: WARNING: ignored --with-shlib-version" >&5
13786 echoscip-shell system . . echo. "$as_me: WARNING: ignored --with-shlib-version" >&2;}
13787 ;;
13788 esac
13789 ;;
13790 esac
13791
13792 if testscip-shell system . . test. -n "$cf_try_cflags"
13793 then
13794 catscip-shell system . . cat. > conftest.$ac_ext <<EOF
13795 #line 13795 "${as_me:-configure}"
13796 #include <stdio.h>
13797 int main(int argc, char *argv[])
13798 {
13799 printf("hello\\n");
13800 return (argv[argc-1] == NULL) ;
13801 }
13802 EOF
13803 cf_save_CFLAGS="$CFLAGS"
13804 for cf_opt in $cf_try_cflags
13805 do
13806 CFLAGS="$cf_save_CFLAGS -$cf_opt"
13807 echoscip-shell system . . echo. "$as_me:13807: checking if CFLAGS option -$cf_opt works" >&5
13808 echoscip-shell system . . echo. $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
13809 if { (eval echo "$as_me:13809: \"$ac_compile\"") >&5
13810 (eval $ac_compile) 2>&5
13811 ac_status=$?
13812 echoscip-shell system . . echo. "$as_me:13812: \$? = $ac_status" >&5
13813 (exit "$ac_status"); }; then
13814 echoscip-shell system . . echo. "$as_me:13814: result: yes" >&5
13815 echoscip-shell system . . echo. "${ECHO_T}yes" >&6
13816 cf_save_CFLAGS="$CFLAGS"
13817 else
13818 echoscip-shell system . . echo. "$as_me:13818: result: no" >&5
13819 echoscip-shell system . . echo. "${ECHO_T}no" >&6
13820 fi
13821 done
13822 CFLAGS="$cf_save_CFLAGS"
13823 fi
13824
13825 # RPATH_LIST is a colon-separated list of directories
13826 testscip-shell system . . test. -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
13827 testscip-shell system . . test. -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
13828
13829 testscip-shell system . . test. "$cf_cv_rm_so_locs" = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
13830
13831 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
13832
13833 echoscip-shell system . . echo. "${as_me:-configure}:13833: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
13834
13835 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
13836
13837 echoscip-shell system . . echo. "${as_me:-configure}:13837: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
13838
13839 # The test/sample programs in the original tree link using rpath option.
13840 # Make it optional for packagers.
13841 if testscip-shell system . . test. -n "$LOCAL_LDFLAGS"
13842 then
13843 echoscip-shell system . . echo. "$as_me:13843: checking if you want to link sample programs with rpath option" >&5
13844 echoscip-shell system . . echo. $ECHO_N "checking if you want to link sample programs with rpath option... $ECHO_C" >&6
13845
13846 # Check whether --enable-rpath-link or --disable-rpath-link was given.
13847 if testscip-shell system . . test. "${enable_rpath_link+set}" = set; then
13848 enableval="$enable_rpath_link"
13849 with_rpath_link=$enableval
13850 else
13851 with_rpath_link=yes
13852 fi;
13853 echoscip-shell system . . echo. "$as_me:13853: result: $with_rpath_link" >&5
13854 echoscip-shell system . . echo. "${ECHO_T}$with_rpath_link" >&6
13855 if testscip-shell system . . test. "$with_rpath_link" = no
13856 then
13857 LOCAL_LDFLAGS=
13858 LOCAL_LDFLAGS2=
13859 fi
13860 fi
13861
13862 ###############################################################################
13863
13864 ### use option --enable-broken-linker to force on use of broken-linker support
13865
13866 echoscip-shell system . . echo. "$as_me:13866: checking if you want broken-linker support code" >&5
13867 echoscip-shell system . . echo. $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
13868
13869 # Check whether --enable-broken_linker or --disable-broken_linker was given.
13870 if testscip-shell system . . test. "${enable_broken_linker+set}" = set; then
13871 enableval="$enable_broken_linker"
13872 with_broken_linker=$enableval
13873 else
13874 with_broken_linker=no
13875 fi;
13876 echoscip-shell system . . echo. "$as_me:13876: result: $with_broken_linker" >&5
13877 echoscip-shell system . . echo. "${ECHO_T}$with_broken_linker" >&6
13878
13879 : "${BROKEN_LINKER:=0}"
13880 if testscip-shell system . . test. "x$with_broken_linker" = xyes ; then
13881
13882 catscip-shell system . . cat. >>confdefs.h <<\EOF
13883 #define BROKEN_LINKER 1
13884 EOF
13885
13886 BROKEN_LINKER=1
13887 fi
13888
13889 # Check to define _XOPEN_SOURCE "automatically"
13890
13891 echoscip-shell system . . echo. "$as_me:13891: checking if the POSIX test-macros are already defined" >&5
13892 echoscip-shell system . . echo. $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
13893 if testscip-shell system . . test. "${cf_cv_posix_visible+set}" = set; then
13894 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
13895 else
13896
13897 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
13898 #line 13898 "configure"
13899 #include "confdefs.h"
13900 #include <stdio.h>
13901 int
13902 main (void)
13903 {
13904
13905 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
13906 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
13907 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
13908 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
13909 #error conflicting symbols found
13910 #endif
13911
13912 ;
13913 return 0;
13914 }
13915 _ACEOF
13916 rmscip-shell system . . rm. -f "conftest.$ac_objext"
13917 if { (eval echo "$as_me:13917: \"$ac_compile\"") >&5
13918 (eval $ac_compile) 2>&5
13919 ac_status=$?
13920 echoscip-shell system . . echo. "$as_me:13920: \$? = $ac_status" >&5
13921 (exit "$ac_status"); } &&
13922 { ac_try='test -s "conftest.$ac_objext"'
13923 { (eval echo "$as_me:13923: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13925 ac_status=$?
13926 echoscip-shell system . . echo. "$as_me:13926: \$? = $ac_status" >&5
13927 (exit "$ac_status"); }; }; then
13928 cf_cv_posix_visible=no
13929 else
13930 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
13931 catscip-shell system . . cat. "conftest.$ac_ext" >&5
13932 cf_cv_posix_visible=yes
13933 fi
13934 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
13935
13936 fi
13937 echoscip-shell system . . echo. "$as_me:13937: result: $cf_cv_posix_visible" >&5
13938 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_posix_visible" >&6
13939
13940 if testscip-shell system . . test. "$cf_cv_posix_visible" = no; then
13941
13942 cf_XOPEN_SOURCE=600
13943 cf_POSIX_C_SOURCE=199506L
13944 cf_xopen_source=
13945
13946 case "$host_os" in
13947 (aix[4-7]*)
13948 cf_xopen_source="-D_ALL_SOURCE"
13949 ;;
13950 (darwin[0-8].*)
13951 cf_xopen_source="-D_APPLE_C_SOURCE"
13952 ;;
13953 (darwin*)
13954 cf_xopen_source="-D_DARWIN_C_SOURCE"
13955 cf_XOPEN_SOURCE=
13956 ;;
13957 (freebsd*|dragonfly*|midnightbsd*)
13958 # 5.x headers associate
13959 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
13960 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
13961 cf_POSIX_C_SOURCE=200112L
13962 cf_XOPEN_SOURCE=600
13963 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
13964 ;;
13965 (hpux11*)
13966 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
13967 ;;
13968 (hpux*)
13969 cf_xopen_source="-D_HPUX_SOURCE"
13970 ;;
13971 (irix[56].*)
13972 cf_xopen_source="-D_SGI_SOURCE"
13973 cf_XOPEN_SOURCE=
13974 ;;
13975 (linux*gnu*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys|mingw*|linux*uclibc)
13976
13977 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
13978
13979 echoscip-shell system . . echo. "$as_me:13979: checking if this is the GNU C library" >&5
13980 echoscip-shell system . . echo. $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
13981 if testscip-shell system . . test. "${cf_cv_gnu_library+set}" = set; then
13982 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
13983 else
13984
13985 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
13986 #line 13986 "configure"
13987 #include "confdefs.h"
13988 #include <sys/types.h>
13989 int
13990 main (void)
13991 {
13992
13993 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
13994 return 0;
13995 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
13996 return 0;
13997 #else
13998 # error not GNU C library
13999 #endif
14000 ;
14001 return 0;
14002 }
14003 _ACEOF
14004 rmscip-shell system . . rm. -f "conftest.$ac_objext"
14005 if { (eval echo "$as_me:14005: \"$ac_compile\"") >&5
14006 (eval $ac_compile) 2>&5
14007 ac_status=$?
14008 echoscip-shell system . . echo. "$as_me:14008: \$? = $ac_status" >&5
14009 (exit "$ac_status"); } &&
14010 { ac_try='test -s "conftest.$ac_objext"'
14011 { (eval echo "$as_me:14011: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14013 ac_status=$?
14014 echoscip-shell system . . echo. "$as_me:14014: \$? = $ac_status" >&5
14015 (exit "$ac_status"); }; }; then
14016 cf_cv_gnu_library=yes
14017 else
14018 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
14019 catscip-shell system . . cat. "conftest.$ac_ext" >&5
14020 cf_cv_gnu_library=no
14021 fi
14022 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
14023
14024 fi
14025 echoscip-shell system . . echo. "$as_me:14025: result: $cf_cv_gnu_library" >&5
14026 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_gnu_library" >&6
14027
14028 if testscip-shell system . . test. x$cf_cv_gnu_library = xyes; then
14029
14030 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
14031 # was changed to help a little. newlib incorporated the change about 4
14032 # years later.
14033 echoscip-shell system . . echo. "$as_me:14033: checking if _DEFAULT_SOURCE can be used as a basis" >&5
14034 echoscip-shell system . . echo. $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
14035 if testscip-shell system . . test. "${cf_cv_gnu_library_219+set}" = set; then
14036 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
14037 else
14038
14039 cf_save="$CPPFLAGS"
14040
14041 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14042 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
14043
14044 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
14045 #line 14045 "configure"
14046 #include "confdefs.h"
14047 #include <sys/types.h>
14048 int
14049 main (void)
14050 {
14051
14052 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
14053 return 0;
14054 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
14055 return 0;
14056 #else
14057 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
14058 #endif
14059 ;
14060 return 0;
14061 }
14062 _ACEOF
14063 rmscip-shell system . . rm. -f "conftest.$ac_objext"
14064 if { (eval echo "$as_me:14064: \"$ac_compile\"") >&5
14065 (eval $ac_compile) 2>&5
14066 ac_status=$?
14067 echoscip-shell system . . echo. "$as_me:14067: \$? = $ac_status" >&5
14068 (exit "$ac_status"); } &&
14069 { ac_try='test -s "conftest.$ac_objext"'
14070 { (eval echo "$as_me:14070: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14072 ac_status=$?
14073 echoscip-shell system . . echo. "$as_me:14073: \$? = $ac_status" >&5
14074 (exit "$ac_status"); }; }; then
14075 cf_cv_gnu_library_219=yes
14076 else
14077 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
14078 catscip-shell system . . cat. "conftest.$ac_ext" >&5
14079 cf_cv_gnu_library_219=no
14080 fi
14081 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
14082 CPPFLAGS="$cf_save"
14083
14084 fi
14085 echoscip-shell system . . echo. "$as_me:14085: result: $cf_cv_gnu_library_219" >&5
14086 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_gnu_library_219" >&6
14087
14088 if testscip-shell system . . test. "x$cf_cv_gnu_library_219" = xyes; then
14089 cf_save="$CPPFLAGS"
14090 echoscip-shell system . . echo. "$as_me:14090: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
14091 echoscip-shell system . . echo. $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
14092 if testscip-shell system . . test. "${cf_cv_gnu_dftsrc_219+set}" = set; then
14093 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
14094 else
14095
14096 cf_fix_cppflags=no
14097 cf_new_cflags=
14098 cf_new_cppflags=
14099 cf_new_extra_cppflags=
14100
14101 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
14102 do
14103 case "$cf_fix_cppflags" in
14104 (no)
14105 case "$cf_add_cflags" in
14106 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14107 case "$cf_add_cflags" in
14108 (-D*)
14109 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^-D[^=]*='\''\"[^"]*//'`
14110
14111 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14112 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
14113 && cf_fix_cppflags=yes
14114
14115 if testscip-shell system . . test. "$cf_fix_cppflags" = yes ; then
14116
14117 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14118 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14119
14120 continue
14121 elif testscip-shell system . . test. "${cf_tst_cflags}" = "\"'" ; then
14122
14123 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14124 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14125
14126 continue
14127 fi
14128 ;;
14129 esac
14130 case "$CPPFLAGS" in
14131 (*$cf_add_cflags)
14132 ;;
14133 (*)
14134 case "$cf_add_cflags" in
14135 (-D*)
14136 cf_tst_cppflags=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^...//' -e 's/=.*//'`
14137
14138 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
14139 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14140 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14141
14142 ;;
14143 esac
14144
14145 testscip-shell system . . test. -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14146 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14147
14148 ;;
14149 esac
14150 ;;
14151 (*)
14152
14153 testscip-shell system . . test. -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14154 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14155
14156 ;;
14157 esac
14158 ;;
14159 (yes)
14160
14161 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14162 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14163
14164 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^[^"]*"'\''//'`
14165
14166 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14167 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
14168 && cf_fix_cppflags=no
14169 ;;
14170 esac
14171 done
14172
14173 if testscip-shell system . . test. -n "$cf_new_cflags" ; then
14174
14175 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
14176 CFLAGS="${CFLAGS}$cf_new_cflags"
14177
14178 fi
14179
14180 if testscip-shell system . . test. -n "$cf_new_cppflags" ; then
14181
14182 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14183 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14184
14185 fi
14186
14187 if testscip-shell system . . test. -n "$cf_new_extra_cppflags" ; then
14188
14189 testscip-shell system . . test. -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14190 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14191
14192 fi
14193
14194 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
14195 #line 14195 "configure"
14196 #include "confdefs.h"
14197
14198 #include <limits.h>
14199 #include <sys/types.h>
14200
14201 int
14202 main (void)
14203 {
14204
14205 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
14206 return 0;
14207 #else
14208 # error GNU C library is too old
14209 #endif
14210 ;
14211 return 0;
14212 }
14213 _ACEOF
14214 rmscip-shell system . . rm. -f "conftest.$ac_objext"
14215 if { (eval echo "$as_me:14215: \"$ac_compile\"") >&5
14216 (eval $ac_compile) 2>&5
14217 ac_status=$?
14218 echoscip-shell system . . echo. "$as_me:14218: \$? = $ac_status" >&5
14219 (exit "$ac_status"); } &&
14220 { ac_try='test -s "conftest.$ac_objext"'
14221 { (eval echo "$as_me:14221: \"$ac_try\"") >&5
14222 (eval $ac_try) 2>&5
14223 ac_status=$?
14224 echoscip-shell system . . echo. "$as_me:14224: \$? = $ac_status" >&5
14225 (exit "$ac_status"); }; }; then
14226 cf_cv_gnu_dftsrc_219=yes
14227 else
14228 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
14229 catscip-shell system . . cat. "conftest.$ac_ext" >&5
14230 cf_cv_gnu_dftsrc_219=no
14231 fi
14232 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
14233
14234 fi
14235 echoscip-shell system . . echo. "$as_me:14235: result: $cf_cv_gnu_dftsrc_219" >&5
14236 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
14237 testscip-shell system . . test. "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
14238 else
14239 cf_cv_gnu_dftsrc_219=maybe
14240 fi
14241
14242 if testscip-shell system . . test. "x$cf_cv_gnu_dftsrc_219" != xyes; then
14243
14244 echoscip-shell system . . echo. "$as_me:14244: checking if we must define _GNU_SOURCE" >&5
14245 echoscip-shell system . . echo. $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
14246 if testscip-shell system . . test. "${cf_cv_gnu_source+set}" = set; then
14247 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
14248 else
14249
14250 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
14251 #line 14251 "configure"
14252 #include "confdefs.h"
14253 #include <sys/types.h>
14254 int
14255 main (void)
14256 {
14257
14258 #ifndef _XOPEN_SOURCE
14259 #error expected _XOPEN_SOURCE to be defined
14260 #endif
14261 ;
14262 return 0;
14263 }
14264 _ACEOF
14265 rmscip-shell system . . rm. -f "conftest.$ac_objext"
14266 if { (eval echo "$as_me:14266: \"$ac_compile\"") >&5
14267 (eval $ac_compile) 2>&5
14268 ac_status=$?
14269 echoscip-shell system . . echo. "$as_me:14269: \$? = $ac_status" >&5
14270 (exit "$ac_status"); } &&
14271 { ac_try='test -s "conftest.$ac_objext"'
14272 { (eval echo "$as_me:14272: \"$ac_try\"") >&5
14273 (eval $ac_try) 2>&5
14274 ac_status=$?
14275 echoscip-shell system . . echo. "$as_me:14275: \$? = $ac_status" >&5
14276 (exit "$ac_status"); }; }; then
14277 cf_cv_gnu_source=no
14278 else
14279 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
14280 catscip-shell system . . cat. "conftest.$ac_ext" >&5
14281 cf_save="$CPPFLAGS"
14282
14283 cf_fix_cppflags=no
14284 cf_new_cflags=
14285 cf_new_cppflags=
14286 cf_new_extra_cppflags=
14287
14288 for cf_add_cflags in -D_GNU_SOURCE
14289 do
14290 case "$cf_fix_cppflags" in
14291 (no)
14292 case "$cf_add_cflags" in
14293 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14294 case "$cf_add_cflags" in
14295 (-D*)
14296 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^-D[^=]*='\''\"[^"]*//'`
14297
14298 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14299 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
14300 && cf_fix_cppflags=yes
14301
14302 if testscip-shell system . . test. "$cf_fix_cppflags" = yes ; then
14303
14304 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14305 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14306
14307 continue
14308 elif testscip-shell system . . test. "${cf_tst_cflags}" = "\"'" ; then
14309
14310 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14311 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14312
14313 continue
14314 fi
14315 ;;
14316 esac
14317 case "$CPPFLAGS" in
14318 (*$cf_add_cflags)
14319 ;;
14320 (*)
14321 case "$cf_add_cflags" in
14322 (-D*)
14323 cf_tst_cppflags=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^...//' -e 's/=.*//'`
14324
14325 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
14326 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14327 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14328
14329 ;;
14330 esac
14331
14332 testscip-shell system . . test. -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14333 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14334
14335 ;;
14336 esac
14337 ;;
14338 (*)
14339
14340 testscip-shell system . . test. -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14341 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14342
14343 ;;
14344 esac
14345 ;;
14346 (yes)
14347
14348 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14349 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14350
14351 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^[^"]*"'\''//'`
14352
14353 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14354 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
14355 && cf_fix_cppflags=no
14356 ;;
14357 esac
14358 done
14359
14360 if testscip-shell system . . test. -n "$cf_new_cflags" ; then
14361
14362 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
14363 CFLAGS="${CFLAGS}$cf_new_cflags"
14364
14365 fi
14366
14367 if testscip-shell system . . test. -n "$cf_new_cppflags" ; then
14368
14369 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14370 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14371
14372 fi
14373
14374 if testscip-shell system . . test. -n "$cf_new_extra_cppflags" ; then
14375
14376 testscip-shell system . . test. -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14377 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14378
14379 fi
14380
14381 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
14382 #line 14382 "configure"
14383 #include "confdefs.h"
14384 #include <sys/types.h>
14385 int
14386 main (void)
14387 {
14388
14389 #ifdef _XOPEN_SOURCE
14390 #error expected _XOPEN_SOURCE to be undefined
14391 #endif
14392 ;
14393 return 0;
14394 }
14395 _ACEOF
14396 rmscip-shell system . . rm. -f "conftest.$ac_objext"
14397 if { (eval echo "$as_me:14397: \"$ac_compile\"") >&5
14398 (eval $ac_compile) 2>&5
14399 ac_status=$?
14400 echoscip-shell system . . echo. "$as_me:14400: \$? = $ac_status" >&5
14401 (exit "$ac_status"); } &&
14402 { ac_try='test -s "conftest.$ac_objext"'
14403 { (eval echo "$as_me:14403: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14405 ac_status=$?
14406 echoscip-shell system . . echo. "$as_me:14406: \$? = $ac_status" >&5
14407 (exit "$ac_status"); }; }; then
14408 cf_cv_gnu_source=no
14409 else
14410 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
14411 catscip-shell system . . cat. "conftest.$ac_ext" >&5
14412 cf_cv_gnu_source=yes
14413 fi
14414 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
14415 CPPFLAGS="$cf_save"
14416
14417 fi
14418 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
14419
14420 fi
14421 echoscip-shell system . . echo. "$as_me:14421: result: $cf_cv_gnu_source" >&5
14422 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_gnu_source" >&6
14423
14424 if testscip-shell system . . test. "$cf_cv_gnu_source" = yes
14425 then
14426 echoscip-shell system . . echo. "$as_me:14426: checking if we should also define _DEFAULT_SOURCE" >&5
14427 echoscip-shell system . . echo. $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
14428 if testscip-shell system . . test. "${cf_cv_default_source+set}" = set; then
14429 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
14430 else
14431
14432 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14433 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
14434
14435 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
14436 #line 14436 "configure"
14437 #include "confdefs.h"
14438 #include <sys/types.h>
14439 int
14440 main (void)
14441 {
14442
14443 #ifdef _DEFAULT_SOURCE
14444 #error expected _DEFAULT_SOURCE to be undefined
14445 #endif
14446 ;
14447 return 0;
14448 }
14449 _ACEOF
14450 rmscip-shell system . . rm. -f "conftest.$ac_objext"
14451 if { (eval echo "$as_me:14451: \"$ac_compile\"") >&5
14452 (eval $ac_compile) 2>&5
14453 ac_status=$?
14454 echoscip-shell system . . echo. "$as_me:14454: \$? = $ac_status" >&5
14455 (exit "$ac_status"); } &&
14456 { ac_try='test -s "conftest.$ac_objext"'
14457 { (eval echo "$as_me:14457: \"$ac_try\"") >&5
14458 (eval $ac_try) 2>&5
14459 ac_status=$?
14460 echoscip-shell system . . echo. "$as_me:14460: \$? = $ac_status" >&5
14461 (exit "$ac_status"); }; }; then
14462 cf_cv_default_source=no
14463 else
14464 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
14465 catscip-shell system . . cat. "conftest.$ac_ext" >&5
14466 cf_cv_default_source=yes
14467 fi
14468 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
14469
14470 fi
14471 echoscip-shell system . . echo. "$as_me:14471: result: $cf_cv_default_source" >&5
14472 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_default_source" >&6
14473 if testscip-shell system . . test. "$cf_cv_default_source" = yes
14474 then
14475
14476 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14477 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
14478
14479 fi
14480 fi
14481 fi
14482
14483 fi
14484
14485 ;;
14486 linux*musl)
14487 cf_xopen_source="-D_BSD_SOURCE"
14488 ;;
14489 (minix*)
14490 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
14491 ;;
14492 (mirbsd*)
14493 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
14494 cf_XOPEN_SOURCE=
14495
14496 if testscip-shell system . . test. "$cf_cv_posix_visible" = no; then
14497
14498 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
14499
14500 cf_save_CFLAGS="$CFLAGS"
14501 cf_save_CPPFLAGS="$CPPFLAGS"
14502
14503 cf_trim_CFLAGS=`echoscip-shell system . . echo. "$cf_save_CFLAGS" | \
14504 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
14505 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
14506
14507 cf_trim_CPPFLAGS=`echoscip-shell system . . echo. "$cf_save_CPPFLAGS" | \
14508 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
14509 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
14510
14511 echoscip-shell system . . echo. "$as_me:14511: checking if we should define _POSIX_C_SOURCE" >&5
14512 echoscip-shell system . . echo. $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
14513 if testscip-shell system . . test. "${cf_cv_posix_c_source+set}" = set; then
14514 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516
14517 echoscip-shell system . . echo. "${as_me:-configure}:14517: testing if the symbol is already defined go no further ..." 1>&5
14518
14519 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
14520 #line 14520 "configure"
14521 #include "confdefs.h"
14522 #include <sys/types.h>
14523 int
14524 main (void)
14525 {
14526
14527 #ifndef _POSIX_C_SOURCE
14528 #error _POSIX_C_SOURCE is not defined
14529 #endif
14530 ;
14531 return 0;
14532 }
14533 _ACEOF
14534 rmscip-shell system . . rm. -f "conftest.$ac_objext"
14535 if { (eval echo "$as_me:14535: \"$ac_compile\"") >&5
14536 (eval $ac_compile) 2>&5
14537 ac_status=$?
14538 echoscip-shell system . . echo. "$as_me:14538: \$? = $ac_status" >&5
14539 (exit "$ac_status"); } &&
14540 { ac_try='test -s "conftest.$ac_objext"'
14541 { (eval echo "$as_me:14541: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 echoscip-shell system . . echo. "$as_me:14544: \$? = $ac_status" >&5
14545 (exit "$ac_status"); }; }; then
14546 cf_cv_posix_c_source=no
14547 else
14548 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
14549 catscip-shell system . . cat. "conftest.$ac_ext" >&5
14550 cf_want_posix_source=no
14551 case .$cf_POSIX_C_SOURCE in
14552 (.[12]??*)
14553 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
14554 ;;
14555 (.2)
14556 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
14557 cf_want_posix_source=yes
14558 ;;
14559 (.*)
14560 cf_want_posix_source=yes
14561 ;;
14562 esac
14563 if testscip-shell system . . test. "$cf_want_posix_source" = yes ; then
14564 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
14565 #line 14565 "configure"
14566 #include "confdefs.h"
14567 #include <sys/types.h>
14568 int
14569 main (void)
14570 {
14571
14572 #ifdef _POSIX_SOURCE
14573 #error _POSIX_SOURCE is defined
14574 #endif
14575 ;
14576 return 0;
14577 }
14578 _ACEOF
14579 rmscip-shell system . . rm. -f "conftest.$ac_objext"
14580 if { (eval echo "$as_me:14580: \"$ac_compile\"") >&5
14581 (eval $ac_compile) 2>&5
14582 ac_status=$?
14583 echoscip-shell system . . echo. "$as_me:14583: \$? = $ac_status" >&5
14584 (exit "$ac_status"); } &&
14585 { ac_try='test -s "conftest.$ac_objext"'
14586 { (eval echo "$as_me:14586: \"$ac_try\"") >&5
14587 (eval $ac_try) 2>&5
14588 ac_status=$?
14589 echoscip-shell system . . echo. "$as_me:14589: \$? = $ac_status" >&5
14590 (exit "$ac_status"); }; }; then
14591 :
14592 else
14593 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
14594 catscip-shell system . . cat. "conftest.$ac_ext" >&5
14595 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
14596 fi
14597 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
14598 fi
14599
14600 echoscip-shell system . . echo. "${as_me:-configure}:14600: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
14601
14602 CFLAGS="$cf_trim_CFLAGS"
14603 CPPFLAGS="$cf_trim_CPPFLAGS"
14604
14605 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14606 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
14607
14608 echoscip-shell system . . echo. "${as_me:-configure}:14608: testing if the second compile does not leave our definition intact error ..." 1>&5
14609
14610 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
14611 #line 14611 "configure"
14612 #include "confdefs.h"
14613 #include <sys/types.h>
14614 int
14615 main (void)
14616 {
14617
14618 #ifndef _POSIX_C_SOURCE
14619 #error _POSIX_C_SOURCE is not defined
14620 #endif
14621 ;
14622 return 0;
14623 }
14624 _ACEOF
14625 rmscip-shell system . . rm. -f "conftest.$ac_objext"
14626 if { (eval echo "$as_me:14626: \"$ac_compile\"") >&5
14627 (eval $ac_compile) 2>&5
14628 ac_status=$?
14629 echoscip-shell system . . echo. "$as_me:14629: \$? = $ac_status" >&5
14630 (exit "$ac_status"); } &&
14631 { ac_try='test -s "conftest.$ac_objext"'
14632 { (eval echo "$as_me:14632: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14634 ac_status=$?
14635 echoscip-shell system . . echo. "$as_me:14635: \$? = $ac_status" >&5
14636 (exit "$ac_status"); }; }; then
14637 :
14638 else
14639 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
14640 catscip-shell system . . cat. "conftest.$ac_ext" >&5
14641 cf_cv_posix_c_source=no
14642 fi
14643 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
14644 CFLAGS="$cf_save_CFLAGS"
14645 CPPFLAGS="$cf_save_CPPFLAGS"
14646
14647 fi
14648 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
14649
14650 fi
14651 echoscip-shell system . . echo. "$as_me:14651: result: $cf_cv_posix_c_source" >&5
14652 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_posix_c_source" >&6
14653
14654 if testscip-shell system . . test. "$cf_cv_posix_c_source" != no ; then
14655 CFLAGS="$cf_trim_CFLAGS"
14656 CPPFLAGS="$cf_trim_CPPFLAGS"
14657
14658 cf_fix_cppflags=no
14659 cf_new_cflags=
14660 cf_new_cppflags=
14661 cf_new_extra_cppflags=
14662
14663 for cf_add_cflags in $cf_cv_posix_c_source
14664 do
14665 case "$cf_fix_cppflags" in
14666 (no)
14667 case "$cf_add_cflags" in
14668 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14669 case "$cf_add_cflags" in
14670 (-D*)
14671 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^-D[^=]*='\''\"[^"]*//'`
14672
14673 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14674 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
14675 && cf_fix_cppflags=yes
14676
14677 if testscip-shell system . . test. "$cf_fix_cppflags" = yes ; then
14678
14679 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14680 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14681
14682 continue
14683 elif testscip-shell system . . test. "${cf_tst_cflags}" = "\"'" ; then
14684
14685 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14686 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14687
14688 continue
14689 fi
14690 ;;
14691 esac
14692 case "$CPPFLAGS" in
14693 (*$cf_add_cflags)
14694 ;;
14695 (*)
14696 case "$cf_add_cflags" in
14697 (-D*)
14698 cf_tst_cppflags=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^...//' -e 's/=.*//'`
14699
14700 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
14701 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14702 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14703
14704 ;;
14705 esac
14706
14707 testscip-shell system . . test. -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14708 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14709
14710 ;;
14711 esac
14712 ;;
14713 (*)
14714
14715 testscip-shell system . . test. -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14716 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14717
14718 ;;
14719 esac
14720 ;;
14721 (yes)
14722
14723 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14724 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14725
14726 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^[^"]*"'\''//'`
14727
14728 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14729 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
14730 && cf_fix_cppflags=no
14731 ;;
14732 esac
14733 done
14734
14735 if testscip-shell system . . test. -n "$cf_new_cflags" ; then
14736
14737 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
14738 CFLAGS="${CFLAGS}$cf_new_cflags"
14739
14740 fi
14741
14742 if testscip-shell system . . test. -n "$cf_new_cppflags" ; then
14743
14744 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14745 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14746
14747 fi
14748
14749 if testscip-shell system . . test. -n "$cf_new_extra_cppflags" ; then
14750
14751 testscip-shell system . . test. -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14752 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14753
14754 fi
14755
14756 fi
14757
14758 fi # cf_cv_posix_visible
14759
14760 ;;
14761 (netbsd*)
14762 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
14763 ;;
14764 (openbsd[6-9]*)
14765 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
14766 # see https://www.mail-archive.com/[email protected]/msg13200.html
14767 # Abusing the conformance level is a workaround.
14768 { echoscip-shell system . . echo. "$as_me:14768: WARNING: this system does not provide usable locale support" >&5
14769 echoscip-shell system . . echo. "$as_me: WARNING: this system does not provide usable locale support" >&2;}
14770 cf_xopen_source="-D_BSD_SOURCE"
14771 cf_XOPEN_SOURCE=700
14772 ;;
14773 (openbsd[4-5]*)
14774 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
14775 cf_xopen_source="-D_BSD_SOURCE"
14776 cf_XOPEN_SOURCE=600
14777 ;;
14778 (openbsd*)
14779 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
14780 ;;
14781 (osf[45]*)
14782 cf_xopen_source="-D_OSF_SOURCE"
14783 ;;
14784 (nto-qnx*)
14785 cf_xopen_source="-D_QNX_SOURCE"
14786 ;;
14787 (sco*)
14788 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
14789 ;;
14790 (solaris2.*)
14791 cf_xopen_source="-D__EXTENSIONS__"
14792 cf_cv_xopen_source=broken
14793 ;;
14794 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
14795 cf_XOPEN_SOURCE=
14796 cf_POSIX_C_SOURCE=
14797 ;;
14798 (*)
14799
14800 echoscip-shell system . . echo. "$as_me:14800: checking if we should define _XOPEN_SOURCE" >&5
14801 echoscip-shell system . . echo. $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
14802 if testscip-shell system . . test. "${cf_cv_xopen_source+set}" = set; then
14803 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
14804 else
14805
14806 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
14807 #line 14807 "configure"
14808 #include "confdefs.h"
14809
14810 $ac_includes_default
14811
14812 int
14813 main (void)
14814 {
14815
14816 #ifndef _XOPEN_SOURCE
14817 #error _XOPEN_SOURCE is not defined
14818 #endif
14819
14820 ;
14821 return 0;
14822 }
14823 _ACEOF
14824 rmscip-shell system . . rm. -f "conftest.$ac_objext"
14825 if { (eval echo "$as_me:14825: \"$ac_compile\"") >&5
14826 (eval $ac_compile) 2>&5
14827 ac_status=$?
14828 echoscip-shell system . . echo. "$as_me:14828: \$? = $ac_status" >&5
14829 (exit "$ac_status"); } &&
14830 { ac_try='test -s "conftest.$ac_objext"'
14831 { (eval echo "$as_me:14831: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14833 ac_status=$?
14834 echoscip-shell system . . echo. "$as_me:14834: \$? = $ac_status" >&5
14835 (exit "$ac_status"); }; }; then
14836 cf_cv_xopen_source=no
14837 else
14838 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
14839 catscip-shell system . . cat. "conftest.$ac_ext" >&5
14840 cf_save="$CPPFLAGS"
14841
14842 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14843 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
14844
14845 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
14846 #line 14846 "configure"
14847 #include "confdefs.h"
14848
14849 $ac_includes_default
14850
14851 int
14852 main (void)
14853 {
14854
14855 #ifndef _XOPEN_SOURCE
14856 #error _XOPEN_SOURCE is not defined
14857 #endif
14858
14859 ;
14860 return 0;
14861 }
14862 _ACEOF
14863 rmscip-shell system . . rm. -f "conftest.$ac_objext"
14864 if { (eval echo "$as_me:14864: \"$ac_compile\"") >&5
14865 (eval $ac_compile) 2>&5
14866 ac_status=$?
14867 echoscip-shell system . . echo. "$as_me:14867: \$? = $ac_status" >&5
14868 (exit "$ac_status"); } &&
14869 { ac_try='test -s "conftest.$ac_objext"'
14870 { (eval echo "$as_me:14870: \"$ac_try\"") >&5
14871 (eval $ac_try) 2>&5
14872 ac_status=$?
14873 echoscip-shell system . . echo. "$as_me:14873: \$? = $ac_status" >&5
14874 (exit "$ac_status"); }; }; then
14875 cf_cv_xopen_source=no
14876 else
14877 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
14878 catscip-shell system . . cat. "conftest.$ac_ext" >&5
14879 cf_cv_xopen_source=$cf_XOPEN_SOURCE
14880 fi
14881 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
14882 CPPFLAGS="$cf_save"
14883
14884 fi
14885 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
14886
14887 fi
14888 echoscip-shell system . . echo. "$as_me:14888: result: $cf_cv_xopen_source" >&5
14889 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_xopen_source" >&6
14890
14891 if testscip-shell system . . test. "$cf_cv_xopen_source" != no ; then
14892
14893 CFLAGS=`echoscip-shell system . . echo. "$CFLAGS" | \
14894 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
14895 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
14896
14897 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
14898 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
14899 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
14900
14901 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
14902
14903 for cf_add_cflags in $cf_temp_xopen_source
14904 do
14905 case "x$cf_add_cflags" in
14906 (x-[DU]*)
14907
14908 cf_tmp_cflag=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^.//' -e 's/=.*//'`
14909 while truescip-shell system . . true.
14910 do
14911 cf_old_cflag=`echoscip-shell system . . echo. "x$CFLAGS" | sedscip-shell system . . sed. -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
14912 testscip-shell system . . test. "$CFLAGS" != "$cf_old_cflag" || break
14913
14914 CFLAGS="$cf_old_cflag"
14915 done
14916
14917 cf_tmp_cflag=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^.//' -e 's/=.*//'`
14918 while truescip-shell system . . true.
14919 do
14920 cf_old_cflag=`echoscip-shell system . . echo. "x$CPPFLAGS" | sedscip-shell system . . sed. -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
14921 testscip-shell system . . test. "$CPPFLAGS" != "$cf_old_cflag" || break
14922
14923 CPPFLAGS="$cf_old_cflag"
14924 done
14925
14926 ;;
14927 esac
14928
14929 cf_fix_cppflags=no
14930 cf_new_cflags=
14931 cf_new_cppflags=
14932 cf_new_extra_cppflags=
14933
14934 for cf_add_cflags in $cf_add_cflags
14935 do
14936 case "$cf_fix_cppflags" in
14937 (no)
14938 case "$cf_add_cflags" in
14939 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14940 case "$cf_add_cflags" in
14941 (-D*)
14942 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^-D[^=]*='\''\"[^"]*//'`
14943
14944 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14945 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
14946 && cf_fix_cppflags=yes
14947
14948 if testscip-shell system . . test. "$cf_fix_cppflags" = yes ; then
14949
14950 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14951 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14952
14953 continue
14954 elif testscip-shell system . . test. "${cf_tst_cflags}" = "\"'" ; then
14955
14956 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14957 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14958
14959 continue
14960 fi
14961 ;;
14962 esac
14963 case "$CPPFLAGS" in
14964 (*$cf_add_cflags)
14965 ;;
14966 (*)
14967 case "$cf_add_cflags" in
14968 (-D*)
14969 cf_tst_cppflags=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^...//' -e 's/=.*//'`
14970
14971 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
14972 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14973 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14974
14975 ;;
14976 esac
14977
14978 testscip-shell system . . test. -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14979 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14980
14981 ;;
14982 esac
14983 ;;
14984 (*)
14985
14986 testscip-shell system . . test. -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14987 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14988
14989 ;;
14990 esac
14991 ;;
14992 (yes)
14993
14994 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14995 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14996
14997 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^[^"]*"'\''//'`
14998
14999 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15000 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
15001 && cf_fix_cppflags=no
15002 ;;
15003 esac
15004 done
15005
15006 if testscip-shell system . . test. -n "$cf_new_cflags" ; then
15007
15008 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
15009 CFLAGS="${CFLAGS}$cf_new_cflags"
15010
15011 fi
15012
15013 if testscip-shell system . . test. -n "$cf_new_cppflags" ; then
15014
15015 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15016 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15017
15018 fi
15019
15020 if testscip-shell system . . test. -n "$cf_new_extra_cppflags" ; then
15021
15022 testscip-shell system . . test. -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15023 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15024
15025 fi
15026
15027 done
15028
15029 fi
15030
15031 cf_save_xopen_cppflags="$CPPFLAGS"
15032
15033 if testscip-shell system . . test. "$cf_cv_posix_visible" = no; then
15034
15035 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
15036
15037 cf_save_CFLAGS="$CFLAGS"
15038 cf_save_CPPFLAGS="$CPPFLAGS"
15039
15040 cf_trim_CFLAGS=`echoscip-shell system . . echo. "$cf_save_CFLAGS" | \
15041 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
15042 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
15043
15044 cf_trim_CPPFLAGS=`echoscip-shell system . . echo. "$cf_save_CPPFLAGS" | \
15045 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
15046 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
15047
15048 echoscip-shell system . . echo. "$as_me:15048: checking if we should define _POSIX_C_SOURCE" >&5
15049 echoscip-shell system . . echo. $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
15050 if testscip-shell system . . test. "${cf_cv_posix_c_source+set}" = set; then
15051 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
15052 else
15053
15054 echoscip-shell system . . echo. "${as_me:-configure}:15054: testing if the symbol is already defined go no further ..." 1>&5
15055
15056 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
15057 #line 15057 "configure"
15058 #include "confdefs.h"
15059 #include <sys/types.h>
15060 int
15061 main (void)
15062 {
15063
15064 #ifndef _POSIX_C_SOURCE
15065 #error _POSIX_C_SOURCE is not defined
15066 #endif
15067 ;
15068 return 0;
15069 }
15070 _ACEOF
15071 rmscip-shell system . . rm. -f "conftest.$ac_objext"
15072 if { (eval echo "$as_me:15072: \"$ac_compile\"") >&5
15073 (eval $ac_compile) 2>&5
15074 ac_status=$?
15075 echoscip-shell system . . echo. "$as_me:15075: \$? = $ac_status" >&5
15076 (exit "$ac_status"); } &&
15077 { ac_try='test -s "conftest.$ac_objext"'
15078 { (eval echo "$as_me:15078: \"$ac_try\"") >&5
15079 (eval $ac_try) 2>&5
15080 ac_status=$?
15081 echoscip-shell system . . echo. "$as_me:15081: \$? = $ac_status" >&5
15082 (exit "$ac_status"); }; }; then
15083 cf_cv_posix_c_source=no
15084 else
15085 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
15086 catscip-shell system . . cat. "conftest.$ac_ext" >&5
15087 cf_want_posix_source=no
15088 case .$cf_POSIX_C_SOURCE in
15089 (.[12]??*)
15090 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
15091 ;;
15092 (.2)
15093 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
15094 cf_want_posix_source=yes
15095 ;;
15096 (.*)
15097 cf_want_posix_source=yes
15098 ;;
15099 esac
15100 if testscip-shell system . . test. "$cf_want_posix_source" = yes ; then
15101 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
15102 #line 15102 "configure"
15103 #include "confdefs.h"
15104 #include <sys/types.h>
15105 int
15106 main (void)
15107 {
15108
15109 #ifdef _POSIX_SOURCE
15110 #error _POSIX_SOURCE is defined
15111 #endif
15112 ;
15113 return 0;
15114 }
15115 _ACEOF
15116 rmscip-shell system . . rm. -f "conftest.$ac_objext"
15117 if { (eval echo "$as_me:15117: \"$ac_compile\"") >&5
15118 (eval $ac_compile) 2>&5
15119 ac_status=$?
15120 echoscip-shell system . . echo. "$as_me:15120: \$? = $ac_status" >&5
15121 (exit "$ac_status"); } &&
15122 { ac_try='test -s "conftest.$ac_objext"'
15123 { (eval echo "$as_me:15123: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15125 ac_status=$?
15126 echoscip-shell system . . echo. "$as_me:15126: \$? = $ac_status" >&5
15127 (exit "$ac_status"); }; }; then
15128 :
15129 else
15130 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
15131 catscip-shell system . . cat. "conftest.$ac_ext" >&5
15132 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
15133 fi
15134 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
15135 fi
15136
15137 echoscip-shell system . . echo. "${as_me:-configure}:15137: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
15138
15139 CFLAGS="$cf_trim_CFLAGS"
15140 CPPFLAGS="$cf_trim_CPPFLAGS"
15141
15142 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15143 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
15144
15145 echoscip-shell system . . echo. "${as_me:-configure}:15145: testing if the second compile does not leave our definition intact error ..." 1>&5
15146
15147 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
15148 #line 15148 "configure"
15149 #include "confdefs.h"
15150 #include <sys/types.h>
15151 int
15152 main (void)
15153 {
15154
15155 #ifndef _POSIX_C_SOURCE
15156 #error _POSIX_C_SOURCE is not defined
15157 #endif
15158 ;
15159 return 0;
15160 }
15161 _ACEOF
15162 rmscip-shell system . . rm. -f "conftest.$ac_objext"
15163 if { (eval echo "$as_me:15163: \"$ac_compile\"") >&5
15164 (eval $ac_compile) 2>&5
15165 ac_status=$?
15166 echoscip-shell system . . echo. "$as_me:15166: \$? = $ac_status" >&5
15167 (exit "$ac_status"); } &&
15168 { ac_try='test -s "conftest.$ac_objext"'
15169 { (eval echo "$as_me:15169: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15171 ac_status=$?
15172 echoscip-shell system . . echo. "$as_me:15172: \$? = $ac_status" >&5
15173 (exit "$ac_status"); }; }; then
15174 :
15175 else
15176 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
15177 catscip-shell system . . cat. "conftest.$ac_ext" >&5
15178 cf_cv_posix_c_source=no
15179 fi
15180 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
15181 CFLAGS="$cf_save_CFLAGS"
15182 CPPFLAGS="$cf_save_CPPFLAGS"
15183
15184 fi
15185 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
15186
15187 fi
15188 echoscip-shell system . . echo. "$as_me:15188: result: $cf_cv_posix_c_source" >&5
15189 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_posix_c_source" >&6
15190
15191 if testscip-shell system . . test. "$cf_cv_posix_c_source" != no ; then
15192 CFLAGS="$cf_trim_CFLAGS"
15193 CPPFLAGS="$cf_trim_CPPFLAGS"
15194
15195 cf_fix_cppflags=no
15196 cf_new_cflags=
15197 cf_new_cppflags=
15198 cf_new_extra_cppflags=
15199
15200 for cf_add_cflags in $cf_cv_posix_c_source
15201 do
15202 case "$cf_fix_cppflags" in
15203 (no)
15204 case "$cf_add_cflags" in
15205 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15206 case "$cf_add_cflags" in
15207 (-D*)
15208 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^-D[^=]*='\''\"[^"]*//'`
15209
15210 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15211 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
15212 && cf_fix_cppflags=yes
15213
15214 if testscip-shell system . . test. "$cf_fix_cppflags" = yes ; then
15215
15216 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15217 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15218
15219 continue
15220 elif testscip-shell system . . test. "${cf_tst_cflags}" = "\"'" ; then
15221
15222 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15223 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15224
15225 continue
15226 fi
15227 ;;
15228 esac
15229 case "$CPPFLAGS" in
15230 (*$cf_add_cflags)
15231 ;;
15232 (*)
15233 case "$cf_add_cflags" in
15234 (-D*)
15235 cf_tst_cppflags=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^...//' -e 's/=.*//'`
15236
15237 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
15238 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15239 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15240
15241 ;;
15242 esac
15243
15244 testscip-shell system . . test. -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15245 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15246
15247 ;;
15248 esac
15249 ;;
15250 (*)
15251
15252 testscip-shell system . . test. -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15253 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15254
15255 ;;
15256 esac
15257 ;;
15258 (yes)
15259
15260 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15261 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15262
15263 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^[^"]*"'\''//'`
15264
15265 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15266 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
15267 && cf_fix_cppflags=no
15268 ;;
15269 esac
15270 done
15271
15272 if testscip-shell system . . test. -n "$cf_new_cflags" ; then
15273
15274 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
15275 CFLAGS="${CFLAGS}$cf_new_cflags"
15276
15277 fi
15278
15279 if testscip-shell system . . test. -n "$cf_new_cppflags" ; then
15280
15281 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15282 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15283
15284 fi
15285
15286 if testscip-shell system . . test. -n "$cf_new_extra_cppflags" ; then
15287
15288 testscip-shell system . . test. -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15289 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15290
15291 fi
15292
15293 fi
15294
15295 fi # cf_cv_posix_visible
15296
15297 # Some of these niche implementations use copy/paste, double-check...
15298 if testscip-shell system . . test. "$cf_cv_xopen_source" = no ; then
15299 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE" 1>&6
15300
15301 echoscip-shell system . . echo. "${as_me:-configure}:15301: testing checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE ..." 1>&5
15302
15303 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
15304 #line 15304 "configure"
15305 #include "confdefs.h"
15306
15307 $ac_includes_default
15308
15309 int
15310 main (void)
15311 {
15312
15313 #ifndef _XOPEN_SOURCE
15314 #error _XOPEN_SOURCE is not defined
15315 #endif
15316
15317 ;
15318 return 0;
15319 }
15320 _ACEOF
15321 rmscip-shell system . . rm. -f "conftest.$ac_objext"
15322 if { (eval echo "$as_me:15322: \"$ac_compile\"") >&5
15323 (eval $ac_compile) 2>&5
15324 ac_status=$?
15325 echoscip-shell system . . echo. "$as_me:15325: \$? = $ac_status" >&5
15326 (exit "$ac_status"); } &&
15327 { ac_try='test -s "conftest.$ac_objext"'
15328 { (eval echo "$as_me:15328: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15330 ac_status=$?
15331 echoscip-shell system . . echo. "$as_me:15331: \$? = $ac_status" >&5
15332 (exit "$ac_status"); }; }; then
15333 :
15334 else
15335 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
15336 catscip-shell system . . cat. "conftest.$ac_ext" >&5
15337
15338 { echoscip-shell system . . echo. "$as_me:15338: WARNING: _POSIX_C_SOURCE definition is not usable" >&5
15339 echoscip-shell system . . echo. "$as_me: WARNING: _POSIX_C_SOURCE definition is not usable" >&2;}
15340 CPPFLAGS="$cf_save_xopen_cppflags"
15341 fi
15342 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
15343 fi
15344 ;;
15345 esac
15346
15347 if testscip-shell system . . test. -n "$cf_xopen_source" ; then
15348
15349 for cf_add_cflags in $cf_xopen_source
15350 do
15351 case "x$cf_add_cflags" in
15352 (x-[DU]*)
15353
15354 cf_tmp_cflag=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^.//' -e 's/=.*//'`
15355 while truescip-shell system . . true.
15356 do
15357 cf_old_cflag=`echoscip-shell system . . echo. "x$CFLAGS" | sedscip-shell system . . sed. -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
15358 testscip-shell system . . test. "$CFLAGS" != "$cf_old_cflag" || break
15359 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " removing old option $cf_add_cflags from CFLAGS" 1>&6
15360
15361 echoscip-shell system . . echo. "${as_me:-configure}:15361: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
15362
15363 CFLAGS="$cf_old_cflag"
15364 done
15365
15366 cf_tmp_cflag=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^.//' -e 's/=.*//'`
15367 while truescip-shell system . . true.
15368 do
15369 cf_old_cflag=`echoscip-shell system . . echo. "x$CPPFLAGS" | sedscip-shell system . . sed. -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
15370 testscip-shell system . . test. "$CPPFLAGS" != "$cf_old_cflag" || break
15371 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
15372
15373 echoscip-shell system . . echo. "${as_me:-configure}:15373: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
15374
15375 CPPFLAGS="$cf_old_cflag"
15376 done
15377
15378 ;;
15379 esac
15380
15381 cf_fix_cppflags=no
15382 cf_new_cflags=
15383 cf_new_cppflags=
15384 cf_new_extra_cppflags=
15385
15386 for cf_add_cflags in $cf_add_cflags
15387 do
15388 case "$cf_fix_cppflags" in
15389 (no)
15390 case "$cf_add_cflags" in
15391 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15392 case "$cf_add_cflags" in
15393 (-D*)
15394 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^-D[^=]*='\''\"[^"]*//'`
15395
15396 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15397 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
15398 && cf_fix_cppflags=yes
15399
15400 if testscip-shell system . . test. "$cf_fix_cppflags" = yes ; then
15401
15402 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15403 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15404
15405 continue
15406 elif testscip-shell system . . test. "${cf_tst_cflags}" = "\"'" ; then
15407
15408 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15409 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15410
15411 continue
15412 fi
15413 ;;
15414 esac
15415 case "$CPPFLAGS" in
15416 (*$cf_add_cflags)
15417 ;;
15418 (*)
15419 case "$cf_add_cflags" in
15420 (-D*)
15421 cf_tst_cppflags=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^...//' -e 's/=.*//'`
15422
15423 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
15424 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15425 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15426
15427 ;;
15428 esac
15429
15430 testscip-shell system . . test. -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15431 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15432
15433 ;;
15434 esac
15435 ;;
15436 (*)
15437
15438 testscip-shell system . . test. -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15439 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15440
15441 ;;
15442 esac
15443 ;;
15444 (yes)
15445
15446 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15447 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15448
15449 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^[^"]*"'\''//'`
15450
15451 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15452 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
15453 && cf_fix_cppflags=no
15454 ;;
15455 esac
15456 done
15457
15458 if testscip-shell system . . test. -n "$cf_new_cflags" ; then
15459 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " add to \$CFLAGS $cf_new_cflags" 1>&6
15460
15461 echoscip-shell system . . echo. "${as_me:-configure}:15461: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
15462
15463 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
15464 CFLAGS="${CFLAGS}$cf_new_cflags"
15465
15466 fi
15467
15468 if testscip-shell system . . test. -n "$cf_new_cppflags" ; then
15469 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
15470
15471 echoscip-shell system . . echo. "${as_me:-configure}:15471: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
15472
15473 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15474 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15475
15476 fi
15477
15478 if testscip-shell system . . test. -n "$cf_new_extra_cppflags" ; then
15479 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
15480
15481 echoscip-shell system . . echo. "${as_me:-configure}:15481: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
15482
15483 testscip-shell system . . test. -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15484 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15485
15486 fi
15487
15488 done
15489
15490 fi
15491
15492 if testscip-shell system . . test. -n "$cf_XOPEN_SOURCE" && testscip-shell system . . test. -z "$cf_cv_xopen_source" ; then
15493 echoscip-shell system . . echo. "$as_me:15493: checking if _XOPEN_SOURCE really is set" >&5
15494 echoscip-shell system . . echo. $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
15495 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
15496 #line 15496 "configure"
15497 #include "confdefs.h"
15498 #include <stdlib.h>
15499 int
15500 main (void)
15501 {
15502
15503 #ifndef _XOPEN_SOURCE
15504 #error _XOPEN_SOURCE is not defined
15505 #endif
15506 ;
15507 return 0;
15508 }
15509 _ACEOF
15510 rmscip-shell system . . rm. -f "conftest.$ac_objext"
15511 if { (eval echo "$as_me:15511: \"$ac_compile\"") >&5
15512 (eval $ac_compile) 2>&5
15513 ac_status=$?
15514 echoscip-shell system . . echo. "$as_me:15514: \$? = $ac_status" >&5
15515 (exit "$ac_status"); } &&
15516 { ac_try='test -s "conftest.$ac_objext"'
15517 { (eval echo "$as_me:15517: \"$ac_try\"") >&5
15518 (eval $ac_try) 2>&5
15519 ac_status=$?
15520 echoscip-shell system . . echo. "$as_me:15520: \$? = $ac_status" >&5
15521 (exit "$ac_status"); }; }; then
15522 cf_XOPEN_SOURCE_set=yes
15523 else
15524 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
15525 catscip-shell system . . cat. "conftest.$ac_ext" >&5
15526 cf_XOPEN_SOURCE_set=no
15527 fi
15528 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
15529 echoscip-shell system . . echo. "$as_me:15529: result: $cf_XOPEN_SOURCE_set" >&5
15530 echoscip-shell system . . echo. "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
15531 if testscip-shell system . . test. "$cf_XOPEN_SOURCE_set" = yes
15532 then
15533 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
15534 #line 15534 "configure"
15535 #include "confdefs.h"
15536 #include <stdlib.h>
15537 int
15538 main (void)
15539 {
15540
15541 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
15542 #error (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
15543 #endif
15544 ;
15545 return 0;
15546 }
15547 _ACEOF
15548 rmscip-shell system . . rm. -f "conftest.$ac_objext"
15549 if { (eval echo "$as_me:15549: \"$ac_compile\"") >&5
15550 (eval $ac_compile) 2>&5
15551 ac_status=$?
15552 echoscip-shell system . . echo. "$as_me:15552: \$? = $ac_status" >&5
15553 (exit "$ac_status"); } &&
15554 { ac_try='test -s "conftest.$ac_objext"'
15555 { (eval echo "$as_me:15555: \"$ac_try\"") >&5
15556 (eval $ac_try) 2>&5
15557 ac_status=$?
15558 echoscip-shell system . . echo. "$as_me:15558: \$? = $ac_status" >&5
15559 (exit "$ac_status"); }; }; then
15560 cf_XOPEN_SOURCE_set_ok=yes
15561 else
15562 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
15563 catscip-shell system . . cat. "conftest.$ac_ext" >&5
15564 cf_XOPEN_SOURCE_set_ok=no
15565 fi
15566 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
15567 if testscip-shell system . . test. "$cf_XOPEN_SOURCE_set_ok" = no
15568 then
15569 { echoscip-shell system . . echo. "$as_me:15569: WARNING: _XOPEN_SOURCE is lower than requested" >&5
15570 echoscip-shell system . . echo. "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
15571 fi
15572 else
15573
15574 echoscip-shell system . . echo. "$as_me:15574: checking if we should define _XOPEN_SOURCE" >&5
15575 echoscip-shell system . . echo. $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
15576 if testscip-shell system . . test. "${cf_cv_xopen_source+set}" = set; then
15577 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
15578 else
15579
15580 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
15581 #line 15581 "configure"
15582 #include "confdefs.h"
15583
15584 $ac_includes_default
15585
15586 int
15587 main (void)
15588 {
15589
15590 #ifndef _XOPEN_SOURCE
15591 #error _XOPEN_SOURCE is not defined
15592 #endif
15593
15594 ;
15595 return 0;
15596 }
15597 _ACEOF
15598 rmscip-shell system . . rm. -f "conftest.$ac_objext"
15599 if { (eval echo "$as_me:15599: \"$ac_compile\"") >&5
15600 (eval $ac_compile) 2>&5
15601 ac_status=$?
15602 echoscip-shell system . . echo. "$as_me:15602: \$? = $ac_status" >&5
15603 (exit "$ac_status"); } &&
15604 { ac_try='test -s "conftest.$ac_objext"'
15605 { (eval echo "$as_me:15605: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15607 ac_status=$?
15608 echoscip-shell system . . echo. "$as_me:15608: \$? = $ac_status" >&5
15609 (exit "$ac_status"); }; }; then
15610 cf_cv_xopen_source=no
15611 else
15612 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
15613 catscip-shell system . . cat. "conftest.$ac_ext" >&5
15614 cf_save="$CPPFLAGS"
15615
15616 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15617 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
15618
15619 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
15620 #line 15620 "configure"
15621 #include "confdefs.h"
15622
15623 $ac_includes_default
15624
15625 int
15626 main (void)
15627 {
15628
15629 #ifndef _XOPEN_SOURCE
15630 #error _XOPEN_SOURCE is not defined
15631 #endif
15632
15633 ;
15634 return 0;
15635 }
15636 _ACEOF
15637 rmscip-shell system . . rm. -f "conftest.$ac_objext"
15638 if { (eval echo "$as_me:15638: \"$ac_compile\"") >&5
15639 (eval $ac_compile) 2>&5
15640 ac_status=$?
15641 echoscip-shell system . . echo. "$as_me:15641: \$? = $ac_status" >&5
15642 (exit "$ac_status"); } &&
15643 { ac_try='test -s "conftest.$ac_objext"'
15644 { (eval echo "$as_me:15644: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15646 ac_status=$?
15647 echoscip-shell system . . echo. "$as_me:15647: \$? = $ac_status" >&5
15648 (exit "$ac_status"); }; }; then
15649 cf_cv_xopen_source=no
15650 else
15651 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
15652 catscip-shell system . . cat. "conftest.$ac_ext" >&5
15653 cf_cv_xopen_source=$cf_XOPEN_SOURCE
15654 fi
15655 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
15656 CPPFLAGS="$cf_save"
15657
15658 fi
15659 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
15660
15661 fi
15662 echoscip-shell system . . echo. "$as_me:15662: result: $cf_cv_xopen_source" >&5
15663 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_xopen_source" >&6
15664
15665 if testscip-shell system . . test. "$cf_cv_xopen_source" != no ; then
15666
15667 CFLAGS=`echoscip-shell system . . echo. "$CFLAGS" | \
15668 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
15669 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
15670
15671 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
15672 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
15673 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
15674
15675 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
15676
15677 for cf_add_cflags in $cf_temp_xopen_source
15678 do
15679 case "x$cf_add_cflags" in
15680 (x-[DU]*)
15681
15682 cf_tmp_cflag=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^.//' -e 's/=.*//'`
15683 while truescip-shell system . . true.
15684 do
15685 cf_old_cflag=`echoscip-shell system . . echo. "x$CFLAGS" | sedscip-shell system . . sed. -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
15686 testscip-shell system . . test. "$CFLAGS" != "$cf_old_cflag" || break
15687
15688 CFLAGS="$cf_old_cflag"
15689 done
15690
15691 cf_tmp_cflag=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^.//' -e 's/=.*//'`
15692 while truescip-shell system . . true.
15693 do
15694 cf_old_cflag=`echoscip-shell system . . echo. "x$CPPFLAGS" | sedscip-shell system . . sed. -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
15695 testscip-shell system . . test. "$CPPFLAGS" != "$cf_old_cflag" || break
15696
15697 CPPFLAGS="$cf_old_cflag"
15698 done
15699
15700 ;;
15701 esac
15702
15703 cf_fix_cppflags=no
15704 cf_new_cflags=
15705 cf_new_cppflags=
15706 cf_new_extra_cppflags=
15707
15708 for cf_add_cflags in $cf_add_cflags
15709 do
15710 case "$cf_fix_cppflags" in
15711 (no)
15712 case "$cf_add_cflags" in
15713 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15714 case "$cf_add_cflags" in
15715 (-D*)
15716 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^-D[^=]*='\''\"[^"]*//'`
15717
15718 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15719 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
15720 && cf_fix_cppflags=yes
15721
15722 if testscip-shell system . . test. "$cf_fix_cppflags" = yes ; then
15723
15724 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15725 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15726
15727 continue
15728 elif testscip-shell system . . test. "${cf_tst_cflags}" = "\"'" ; then
15729
15730 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15731 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15732
15733 continue
15734 fi
15735 ;;
15736 esac
15737 case "$CPPFLAGS" in
15738 (*$cf_add_cflags)
15739 ;;
15740 (*)
15741 case "$cf_add_cflags" in
15742 (-D*)
15743 cf_tst_cppflags=`echoscip-shell system . . echo. "x$cf_add_cflags" | sedscip-shell system . . sed. -e 's/^...//' -e 's/=.*//'`
15744
15745 CPPFLAGS=`echoscip-shell system . . echo. "$CPPFLAGS" | \
15746 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15747 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15748
15749 ;;
15750 esac
15751
15752 testscip-shell system . . test. -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15753 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15754
15755 ;;
15756 esac
15757 ;;
15758 (*)
15759
15760 testscip-shell system . . test. -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15761 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15762
15763 ;;
15764 esac
15765 ;;
15766 (yes)
15767
15768 testscip-shell system . . test. -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15769 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15770
15771 cf_tst_cflags=`echoscip-shell system . . echo. "${cf_add_cflags}" |sedscip-shell system . . sed. -e 's/^[^"]*"'\''//'`
15772
15773 testscip-shell system . . test. "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15774 && testscip-shell system . . test. -z "${cf_tst_cflags}" \
15775 && cf_fix_cppflags=no
15776 ;;
15777 esac
15778 done
15779
15780 if testscip-shell system . . test. -n "$cf_new_cflags" ; then
15781
15782 testscip-shell system . . test. -n "$CFLAGS" && CFLAGS="$CFLAGS "
15783 CFLAGS="${CFLAGS}$cf_new_cflags"
15784
15785 fi
15786
15787 if testscip-shell system . . test. -n "$cf_new_cppflags" ; then
15788
15789 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15790 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15791
15792 fi
15793
15794 if testscip-shell system . . test. -n "$cf_new_extra_cppflags" ; then
15795
15796 testscip-shell system . . test. -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15797 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15798
15799 fi
15800
15801 done
15802
15803 fi
15804
15805 fi
15806 fi
15807 fi # cf_cv_posix_visible
15808
15809 echoscip-shell system . . echo. "$as_me:15809: checking for ANSI C header files" >&5
15810 echoscip-shell system . . echo. $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15811 if testscip-shell system . . test. "${ac_cv_header_stdc+set}" = set; then
15812 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
15813 else
15814 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
15815 #line 15815 "configure"
15816 #include "confdefs.h"
15817 #include <stdlib.h>
15818 #include <stdarg.h>
15819 #include <string.h>
15820 #include <float.h>
15821
15822 _ACEOF
15823 if { (eval echo "$as_me:15823: \"$ac_cpp "conftest.$ac_ext"\"") >&5
15824 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
15825 ac_status=$?
15826 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15827 rmscip-shell system . . rm. -f conftest.er1
15828 catscip-shell system . . cat. conftest.err >&5
15829 echoscip-shell system . . echo. "$as_me:15829: \$? = $ac_status" >&5
15830 (exit "$ac_status"); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then
15831 if testscip-shell system . . test. -s conftest.err; then
15832 ac_cpp_err=$ac_c_preproc_warn_flag
15833 else
15834 ac_cpp_err=
15835 fi
15836 else
15837 ac_cpp_err=yes
15838 fi
15839 if testscip-shell system . . test. -z "$ac_cpp_err"; then
15840 ac_cv_header_stdc=yes
15841 else
15842 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
15843 catscip-shell system . . cat. "conftest.$ac_ext" >&5
15844 ac_cv_header_stdc=no
15845 fi
15846 rmscip-shell system . . rm. -f conftest.err "conftest.$ac_ext"
15847
15848 if testscip-shell system . . test. $ac_cv_header_stdc = yes; then
15849 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15850 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
15851 #line 15851 "configure"
15852 #include "confdefs.h"
15853 #include <string.h>
15854
15855 _ACEOF
15856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15857 $EGREP "memchr" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
15858 :
15859 else
15860 ac_cv_header_stdc=no
15861 fi
15862 rmscip-shell system . . rm. -rf conftest*
15863
15864 fi
15865
15866 if testscip-shell system . . test. $ac_cv_header_stdc = yes; then
15867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15868 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
15869 #line 15869 "configure"
15870 #include "confdefs.h"
15871 #include <stdlib.h>
15872
15873 _ACEOF
15874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15875 $EGREP "free" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then
15876 :
15877 else
15878 ac_cv_header_stdc=no
15879 fi
15880 rmscip-shell system . . rm. -rf conftest*
15881
15882 fi
15883
15884 if testscip-shell system . . test. $ac_cv_header_stdc = yes; then
15885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15886 if testscip-shell system . . test. "$cross_compiling" = yes; then
15887 :
15888 else
15889 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
15890 #line 15890 "configure"
15891 #include "confdefs.h"
15892 #include <ctype.h>
15893 #if ((' ' & 0x0FF) == 0x020)
15894 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15895 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15896 #else
15897 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
15898 || ('j' <= (c) && (c) <= 'r') \
15899 || ('s' <= (c) && (c) <= 'z'))
15900 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15901 #endif
15902
15903 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15904 int
15905 main (void)
15906 {
15907 int i;
15908 for (i = 0; i < 256; i++)
15909 if (XOR (islower (i), ISLOWER (i))
15910 || toupper (i) != TOUPPER (i))
15911 $ac_main_return(2);
15912 $ac_main_return (0);
15913 }
15914 _ACEOF
15915 rmscip-shell system . . rm. -f "conftest$ac_exeext"
15916 if { (eval echo "$as_me:15916: \"$ac_link\"") >&5
15917 (eval $ac_link) 2>&5
15918 ac_status=$?
15919 echoscip-shell system . . echo. "$as_me:15919: \$? = $ac_status" >&5
15920 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
15921 { (eval echo "$as_me:15921: \"$ac_try\"") >&5
15922 (eval $ac_try) 2>&5
15923 ac_status=$?
15924 echoscip-shell system . . echo. "$as_me:15924: \$? = $ac_status" >&5
15925 (exit "$ac_status"); }; }; then
15926 :
15927 else
15928 echoscip-shell system . . echo. "$as_me: program exited with status $ac_status" >&5
15929 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
15930 catscip-shell system . . cat. "conftest.$ac_ext" >&5
15931 ac_cv_header_stdc=no
15932 fi
15933 rmscip-shell system . . rm. -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
15934 fi
15935 fi
15936 fi
15937 echoscip-shell system . . echo. "$as_me:15937: result: $ac_cv_header_stdc" >&5
15938 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_header_stdc" >&6
15939 if testscip-shell system . . test. $ac_cv_header_stdc = yes; then
15940
15941 catscip-shell system . . cat. >>confdefs.h <<\EOF
15942 #define STDC_HEADERS 1
15943 EOF
15944
15945 fi
15946
15947 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
15948
15949 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
15950 inttypes.h stdint.h unistd.h
15951 do
15952 as_ac_Header=`echoscip-shell system . . echo. "ac_cv_header_$ac_header" | $as_tr_sh`
15953 echoscip-shell system . . echo. "$as_me:15953: checking for $ac_header" >&5
15954 echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15956 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
15957 else
15958 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
15959 #line 15959 "configure"
15960 #include "confdefs.h"
15961 $ac_includes_default
15962 #include <$ac_header>
15963 _ACEOF
15964 rmscip-shell system . . rm. -f "conftest.$ac_objext"
15965 if { (eval echo "$as_me:15965: \"$ac_compile\"") >&5
15966 (eval $ac_compile) 2>&5
15967 ac_status=$?
15968 echoscip-shell system . . echo. "$as_me:15968: \$? = $ac_status" >&5
15969 (exit "$ac_status"); } &&
15970 { ac_try='test -s "conftest.$ac_objext"'
15971 { (eval echo "$as_me:15971: \"$ac_try\"") >&5
15972 (eval $ac_try) 2>&5
15973 ac_status=$?
15974 echoscip-shell system . . echo. "$as_me:15974: \$? = $ac_status" >&5
15975 (exit "$ac_status"); }; }; then
15976 eval "$as_ac_Header=yes"
15977 else
15978 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
15979 catscip-shell system . . cat. "conftest.$ac_ext" >&5
15980 eval "$as_ac_Header=no"
15981 fi
15982 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
15983 fi
15984 echoscip-shell system . . echo. "$as_me:15984: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
15985 echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
15986 if testscip-shell system . . test. "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
15987 catscip-shell system . . cat. >>confdefs.h <<EOF
15988 #define `echoscip-shell system . . echo. "HAVE_$ac_header" | $as_tr_cpp` 1
15989 EOF
15990
15991 fi
15992 done
15993
15994 echoscip-shell system . . echo. "$as_me:15994: checking whether exit is declared" >&5
15995 echoscip-shell system . . echo. $ECHO_N "checking whether exit is declared... $ECHO_C" >&6
15996 if testscip-shell system . . test. "${ac_cv_have_decl_exit+set}" = set; then
15997 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
15998 else
15999 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
16000 #line 16000 "configure"
16001 #include "confdefs.h"
16002 $ac_includes_default
16003 int
16004 main (void)
16005 {
16006 #ifndef exit
16007 (void) exit;
16008 #endif
16009
16010 ;
16011 return 0;
16012 }
16013 _ACEOF
16014 rmscip-shell system . . rm. -f "conftest.$ac_objext"
16015 if { (eval echo "$as_me:16015: \"$ac_compile\"") >&5
16016 (eval $ac_compile) 2>&5
16017 ac_status=$?
16018 echoscip-shell system . . echo. "$as_me:16018: \$? = $ac_status" >&5
16019 (exit "$ac_status"); } &&
16020 { ac_try='test -s "conftest.$ac_objext"'
16021 { (eval echo "$as_me:16021: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16023 ac_status=$?
16024 echoscip-shell system . . echo. "$as_me:16024: \$? = $ac_status" >&5
16025 (exit "$ac_status"); }; }; then
16026 ac_cv_have_decl_exit=yes
16027 else
16028 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
16029 catscip-shell system . . cat. "conftest.$ac_ext" >&5
16030 ac_cv_have_decl_exit=no
16031 fi
16032 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
16033 fi
16034 echoscip-shell system . . echo. "$as_me:16034: result: $ac_cv_have_decl_exit" >&5
16035 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_have_decl_exit" >&6
16036
16037 # Check whether --enable-largefile or --disable-largefile was given.
16038 if testscip-shell system . . test. "${enable_largefile+set}" = set; then
16039 enableval="$enable_largefile"
16040
16041 fi;
16042 if testscip-shell system . . test. "$enable_largefile" != no; then
16043
16044 echoscip-shell system . . echo. "$as_me:16044: checking for special C compiler options needed for large files" >&5
16045 echoscip-shell system . . echo. $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16046 if testscip-shell system . . test. "${ac_cv_sys_largefile_CC+set}" = set; then
16047 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
16048 else
16049 ac_cv_sys_largefile_CC=no
16050 if testscip-shell system . . test. "$GCC" != yes; then
16051 ac_save_CC=$CC
16052 while :; do
16053 # IRIX 6.2 and later do not support large files by default,
16054 # so use the C compiler's -n32 option if that helps.
16055 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
16056 #line 16056 "configure"
16057 #include "confdefs.h"
16058 #include <sys/types.h>
16059 /* Check that off_t can represent 2**63 - 1 correctly.
16060 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16061 since some C++ compilers masquerading as C compilers
16062 incorrectly reject 9223372036854775807. */
16063 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16065 && LARGE_OFF_T % 2147483647 == 1)
16066 ? 1 : -1];
16067 int
16068 main (void)
16069 {
16070
16071 ;
16072 return 0;
16073 }
16074 _ACEOF
16075 rmscip-shell system . . rm. -f "conftest.$ac_objext"
16076 if { (eval echo "$as_me:16076: \"$ac_compile\"") >&5
16077 (eval $ac_compile) 2>&5
16078 ac_status=$?
16079 echoscip-shell system . . echo. "$as_me:16079: \$? = $ac_status" >&5
16080 (exit "$ac_status"); } &&
16081 { ac_try='test -s "conftest.$ac_objext"'
16082 { (eval echo "$as_me:16082: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16084 ac_status=$?
16085 echoscip-shell system . . echo. "$as_me:16085: \$? = $ac_status" >&5
16086 (exit "$ac_status"); }; }; then
16087 break
16088 else
16089 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
16090 catscip-shell system . . cat. "conftest.$ac_ext" >&5
16091 fi
16092 rmscip-shell system . . rm. -f "conftest.$ac_objext"
16093 CC="$CC -n32"
16094 rmscip-shell system . . rm. -f "conftest.$ac_objext"
16095 if { (eval echo "$as_me:16095: \"$ac_compile\"") >&5
16096 (eval $ac_compile) 2>&5
16097 ac_status=$?
16098 echoscip-shell system . . echo. "$as_me:16098: \$? = $ac_status" >&5
16099 (exit "$ac_status"); } &&
16100 { ac_try='test -s "conftest.$ac_objext"'
16101 { (eval echo "$as_me:16101: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16103 ac_status=$?
16104 echoscip-shell system . . echo. "$as_me:16104: \$? = $ac_status" >&5
16105 (exit "$ac_status"); }; }; then
16106 ac_cv_sys_largefile_CC=' -n32'; break
16107 else
16108 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
16109 catscip-shell system . . cat. "conftest.$ac_ext" >&5
16110 fi
16111 rmscip-shell system . . rm. -f "conftest.$ac_objext"
16112 break
16113 done
16114 CC=$ac_save_CC
16115 rmscip-shell system . . rm. -f "conftest.$ac_ext"
16116 fi
16117 fi
16118 echoscip-shell system . . echo. "$as_me:16118: result: $ac_cv_sys_largefile_CC" >&5
16119 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16120 if testscip-shell system . . test. "$ac_cv_sys_largefile_CC" != no; then
16121 CC=$CC$ac_cv_sys_largefile_CC
16122 fi
16123
16124 echoscip-shell system . . echo. "$as_me:16124: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16125 echoscip-shell system . . echo. $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16126 if testscip-shell system . . test. "${ac_cv_sys_file_offset_bits+set}" = set; then
16127 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
16128 else
16129 while :; do
16130 ac_cv_sys_file_offset_bits=no
16131 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
16132 #line 16132 "configure"
16133 #include "confdefs.h"
16134 #include <sys/types.h>
16135 /* Check that off_t can represent 2**63 - 1 correctly.
16136 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16137 since some C++ compilers masquerading as C compilers
16138 incorrectly reject 9223372036854775807. */
16139 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16140 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16141 && LARGE_OFF_T % 2147483647 == 1)
16142 ? 1 : -1];
16143 int
16144 main (void)
16145 {
16146
16147 ;
16148 return 0;
16149 }
16150 _ACEOF
16151 rmscip-shell system . . rm. -f "conftest.$ac_objext"
16152 if { (eval echo "$as_me:16152: \"$ac_compile\"") >&5
16153 (eval $ac_compile) 2>&5
16154 ac_status=$?
16155 echoscip-shell system . . echo. "$as_me:16155: \$? = $ac_status" >&5
16156 (exit "$ac_status"); } &&
16157 { ac_try='test -s "conftest.$ac_objext"'
16158 { (eval echo "$as_me:16158: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16160 ac_status=$?
16161 echoscip-shell system . . echo. "$as_me:16161: \$? = $ac_status" >&5
16162 (exit "$ac_status"); }; }; then
16163 break
16164 else
16165 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
16166 catscip-shell system . . cat. "conftest.$ac_ext" >&5
16167 fi
16168 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
16169 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
16170 #line 16170 "configure"
16171 #include "confdefs.h"
16172 #define _FILE_OFFSET_BITS 64
16173 #include <sys/types.h>
16174 /* Check that off_t can represent 2**63 - 1 correctly.
16175 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16176 since some C++ compilers masquerading as C compilers
16177 incorrectly reject 9223372036854775807. */
16178 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16179 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16180 && LARGE_OFF_T % 2147483647 == 1)
16181 ? 1 : -1];
16182 int
16183 main (void)
16184 {
16185
16186 ;
16187 return 0;
16188 }
16189 _ACEOF
16190 rmscip-shell system . . rm. -f "conftest.$ac_objext"
16191 if { (eval echo "$as_me:16191: \"$ac_compile\"") >&5
16192 (eval $ac_compile) 2>&5
16193 ac_status=$?
16194 echoscip-shell system . . echo. "$as_me:16194: \$? = $ac_status" >&5
16195 (exit "$ac_status"); } &&
16196 { ac_try='test -s "conftest.$ac_objext"'
16197 { (eval echo "$as_me:16197: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16199 ac_status=$?
16200 echoscip-shell system . . echo. "$as_me:16200: \$? = $ac_status" >&5
16201 (exit "$ac_status"); }; }; then
16202 ac_cv_sys_file_offset_bits=64; break
16203 else
16204 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
16205 catscip-shell system . . cat. "conftest.$ac_ext" >&5
16206 fi
16207 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
16208 break
16209 done
16210 fi
16211 echoscip-shell system . . echo. "$as_me:16211: result: $ac_cv_sys_file_offset_bits" >&5
16212 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16213 if testscip-shell system . . test. "$ac_cv_sys_file_offset_bits" != no; then
16214
16215 catscip-shell system . . cat. >>confdefs.h <<EOF
16216 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16217 EOF
16218
16219 fi
16220 rmscip-shell system . . rm. -rf conftest*
16221 echoscip-shell system . . echo. "$as_me:16221: checking for _LARGE_FILES value needed for large files" >&5
16222 echoscip-shell system . . echo. $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16223 if testscip-shell system . . test. "${ac_cv_sys_large_files+set}" = set; then
16224 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
16225 else
16226 while :; do
16227 ac_cv_sys_large_files=no
16228 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
16229 #line 16229 "configure"
16230 #include "confdefs.h"
16231 #include <sys/types.h>
16232 /* Check that off_t can represent 2**63 - 1 correctly.
16233 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16234 since some C++ compilers masquerading as C compilers
16235 incorrectly reject 9223372036854775807. */
16236 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16237 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16238 && LARGE_OFF_T % 2147483647 == 1)
16239 ? 1 : -1];
16240 int
16241 main (void)
16242 {
16243
16244 ;
16245 return 0;
16246 }
16247 _ACEOF
16248 rmscip-shell system . . rm. -f "conftest.$ac_objext"
16249 if { (eval echo "$as_me:16249: \"$ac_compile\"") >&5
16250 (eval $ac_compile) 2>&5
16251 ac_status=$?
16252 echoscip-shell system . . echo. "$as_me:16252: \$? = $ac_status" >&5
16253 (exit "$ac_status"); } &&
16254 { ac_try='test -s "conftest.$ac_objext"'
16255 { (eval echo "$as_me:16255: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16257 ac_status=$?
16258 echoscip-shell system . . echo. "$as_me:16258: \$? = $ac_status" >&5
16259 (exit "$ac_status"); }; }; then
16260 break
16261 else
16262 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
16263 catscip-shell system . . cat. "conftest.$ac_ext" >&5
16264 fi
16265 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
16266 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
16267 #line 16267 "configure"
16268 #include "confdefs.h"
16269 #define _LARGE_FILES 1
16270 #include <sys/types.h>
16271 /* Check that off_t can represent 2**63 - 1 correctly.
16272 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16273 since some C++ compilers masquerading as C compilers
16274 incorrectly reject 9223372036854775807. */
16275 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16276 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16277 && LARGE_OFF_T % 2147483647 == 1)
16278 ? 1 : -1];
16279 int
16280 main (void)
16281 {
16282
16283 ;
16284 return 0;
16285 }
16286 _ACEOF
16287 rmscip-shell system . . rm. -f "conftest.$ac_objext"
16288 if { (eval echo "$as_me:16288: \"$ac_compile\"") >&5
16289 (eval $ac_compile) 2>&5
16290 ac_status=$?
16291 echoscip-shell system . . echo. "$as_me:16291: \$? = $ac_status" >&5
16292 (exit "$ac_status"); } &&
16293 { ac_try='test -s "conftest.$ac_objext"'
16294 { (eval echo "$as_me:16294: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16296 ac_status=$?
16297 echoscip-shell system . . echo. "$as_me:16297: \$? = $ac_status" >&5
16298 (exit "$ac_status"); }; }; then
16299 ac_cv_sys_large_files=1; break
16300 else
16301 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
16302 catscip-shell system . . cat. "conftest.$ac_ext" >&5
16303 fi
16304 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
16305 break
16306 done
16307 fi
16308 echoscip-shell system . . echo. "$as_me:16308: result: $ac_cv_sys_large_files" >&5
16309 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_sys_large_files" >&6
16310 if testscip-shell system . . test. "$ac_cv_sys_large_files" != no; then
16311
16312 catscip-shell system . . cat. >>confdefs.h <<EOF
16313 #define _LARGE_FILES $ac_cv_sys_large_files
16314 EOF
16315
16316 fi
16317 rmscip-shell system . . rm. -rf conftest*
16318 fi
16319
16320 if testscip-shell system . . test. "$enable_largefile" != no ; then
16321 echoscip-shell system . . echo. "$as_me:16321: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16322 echoscip-shell system . . echo. $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16323 if testscip-shell system . . test. "${ac_cv_sys_largefile_source+set}" = set; then
16324 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
16325 else
16326 while :; do
16327 ac_cv_sys_largefile_source=no
16328 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
16329 #line 16329 "configure"
16330 #include "confdefs.h"
16331 #include <stdio.h>
16332 #include <sys/types.h>
16333 int
16334 main (void)
16335 {
16336
16337 int (*my_fseeko)(FILE *, off_t, int) = fseeko;
16338 return my_fseeko(stdin, 0, 0);
16339 ;
16340 return 0;
16341 }
16342 _ACEOF
16343 rmscip-shell system . . rm. -f "conftest.$ac_objext"
16344 if { (eval echo "$as_me:16344: \"$ac_compile\"") >&5
16345 (eval $ac_compile) 2>&5
16346 ac_status=$?
16347 echoscip-shell system . . echo. "$as_me:16347: \$? = $ac_status" >&5
16348 (exit "$ac_status"); } &&
16349 { ac_try='test -s "conftest.$ac_objext"'
16350 { (eval echo "$as_me:16350: \"$ac_try\"") >&5
16351 (eval $ac_try) 2>&5
16352 ac_status=$?
16353 echoscip-shell system . . echo. "$as_me:16353: \$? = $ac_status" >&5
16354 (exit "$ac_status"); }; }; then
16355 break
16356 else
16357 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
16358 catscip-shell system . . cat. "conftest.$ac_ext" >&5
16359 fi
16360 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
16361 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
16362 #line 16362 "configure"
16363 #include "confdefs.h"
16364 #define _LARGEFILE_SOURCE 1
16365 #include <stdio.h>
16366 #include <sys/types.h>
16367 int
16368 main (void)
16369 {
16370
16371 int (*my_fseeko)(FILE *, off_t, int) = fseeko;
16372 return my_fseeko(stdin, 0, 0);
16373 ;
16374 return 0;
16375 }
16376 _ACEOF
16377 rmscip-shell system . . rm. -f "conftest.$ac_objext"
16378 if { (eval echo "$as_me:16378: \"$ac_compile\"") >&5
16379 (eval $ac_compile) 2>&5
16380 ac_status=$?
16381 echoscip-shell system . . echo. "$as_me:16381: \$? = $ac_status" >&5
16382 (exit "$ac_status"); } &&
16383 { ac_try='test -s "conftest.$ac_objext"'
16384 { (eval echo "$as_me:16384: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16386 ac_status=$?
16387 echoscip-shell system . . echo. "$as_me:16387: \$? = $ac_status" >&5
16388 (exit "$ac_status"); }; }; then
16389 ac_cv_sys_largefile_source=1; break
16390 else
16391 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
16392 catscip-shell system . . cat. "conftest.$ac_ext" >&5
16393 fi
16394 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
16395 break
16396 done
16397 fi
16398 echoscip-shell system . . echo. "$as_me:16398: result: $ac_cv_sys_largefile_source" >&5
16399 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16400 if testscip-shell system . . test. "$ac_cv_sys_largefile_source" != no; then
16401
16402 catscip-shell system . . cat. >>confdefs.h <<EOF
16403 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16404 EOF
16405
16406 fi
16407 rmscip-shell system . . rm. -rf conftest*
16408
16409 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16410 # in glibc 2.1.3, but that breaks too many other things.
16411 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16412 echoscip-shell system . . echo. "$as_me:16412: checking for fseeko" >&5
16413 echoscip-shell system . . echo. $ECHO_N "checking for fseeko... $ECHO_C" >&6
16414 if testscip-shell system . . test. "${ac_cv_func_fseeko+set}" = set; then
16415 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
16416 else
16417 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
16418 #line 16418 "configure"
16419 #include "confdefs.h"
16420 #include <stdio.h>
16421 #include <sys/types.h>
16422 int
16423 main (void)
16424 {
16425 int (*my_fseeko)(FILE *, off_t, int) = fseeko;
16426 return my_fseeko && my_fseeko (stdin, 0, 0);
16427 ;
16428 return 0;
16429 }
16430 _ACEOF
16431 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
16432 if { (eval echo "$as_me:16432: \"$ac_link\"") >&5
16433 (eval $ac_link) 2>&5
16434 ac_status=$?
16435 echoscip-shell system . . echo. "$as_me:16435: \$? = $ac_status" >&5
16436 (exit "$ac_status"); } &&
16437 { ac_try='test -s "conftest$ac_exeext"'
16438 { (eval echo "$as_me:16438: \"$ac_try\"") >&5
16439 (eval $ac_try) 2>&5
16440 ac_status=$?
16441 echoscip-shell system . . echo. "$as_me:16441: \$? = $ac_status" >&5
16442 (exit "$ac_status"); }; }; then
16443 ac_cv_func_fseeko=yes
16444 else
16445 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
16446 catscip-shell system . . cat. "conftest.$ac_ext" >&5
16447 ac_cv_func_fseeko=no
16448 fi
16449 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16450 fi
16451 echoscip-shell system . . echo. "$as_me:16451: result: $ac_cv_func_fseeko" >&5
16452 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_func_fseeko" >&6
16453 if testscip-shell system . . test. $ac_cv_func_fseeko = yes; then
16454
16455 catscip-shell system . . cat. >>confdefs.h <<\EOF
16456 #define HAVE_FSEEKO 1
16457 EOF
16458
16459 fi
16460
16461 # Normally we would collect these definitions in the config.h,
16462 # but (like _XOPEN_SOURCE), some environments rely on having these
16463 # defined before any of the system headers are included. Another
16464 # case comes up with C++, e.g., on AIX the compiler compiles the
16465 # header files by themselves before looking at the body files it is
16466 # told to compile. For ncurses, those header files do not include
16467 # the config.h
16468 if testscip-shell system . . test. "$ac_cv_sys_large_files" != no
16469 then
16470
16471 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16472 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
16473
16474 fi
16475 if testscip-shell system . . test. "$ac_cv_sys_largefile_source" != no
16476 then
16477
16478 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16479 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
16480
16481 fi
16482 if testscip-shell system . . test. "$ac_cv_sys_file_offset_bits" != no
16483 then
16484
16485 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16486 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
16487
16488 fi
16489
16490 echoscip-shell system . . echo. "$as_me:16490: checking whether to use struct dirent64" >&5
16491 echoscip-shell system . . echo. $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
16492 if testscip-shell system . . test. "${cf_cv_struct_dirent64+set}" = set; then
16493 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
16494 else
16495
16496 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
16497 #line 16497 "configure"
16498 #include "confdefs.h"
16499
16500 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
16501 #include <sys/types.h>
16502 #include <dirent.h>
16503
16504 #ifndef __REDIRECT
16505 /* if transitional largefile support is setup, this is true */
16506 extern struct dirent64 * readdir(DIR *);
16507 #endif
16508
16509 int
16510 main (void)
16511 {
16512
16513 DIR *dp = opendir(".");
16514 struct dirent64 *x = readdir(dp);
16515 struct dirent *y = readdir(dp);
16516 int z = x - y;
16517 (void)z;
16518
16519 ;
16520 return 0;
16521 }
16522 _ACEOF
16523 rmscip-shell system . . rm. -f "conftest.$ac_objext"
16524 if { (eval echo "$as_me:16524: \"$ac_compile\"") >&5
16525 (eval $ac_compile) 2>&5
16526 ac_status=$?
16527 echoscip-shell system . . echo. "$as_me:16527: \$? = $ac_status" >&5
16528 (exit "$ac_status"); } &&
16529 { ac_try='test -s "conftest.$ac_objext"'
16530 { (eval echo "$as_me:16530: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16532 ac_status=$?
16533 echoscip-shell system . . echo. "$as_me:16533: \$? = $ac_status" >&5
16534 (exit "$ac_status"); }; }; then
16535 cf_cv_struct_dirent64=yes
16536 else
16537 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
16538 catscip-shell system . . cat. "conftest.$ac_ext" >&5
16539 cf_cv_struct_dirent64=no
16540 fi
16541 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
16542
16543 fi
16544 echoscip-shell system . . echo. "$as_me:16544: result: $cf_cv_struct_dirent64" >&5
16545 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_struct_dirent64" >&6
16546 testscip-shell system . . test. "$cf_cv_struct_dirent64" = yes &&
16547 catscip-shell system . . cat. >>confdefs.h <<\EOF
16548 #define HAVE_STRUCT_DIRENT64 1
16549 EOF
16550
16551 fi
16552
16553 ### Enable compiling-in rcs id's
16554 echoscip-shell system . . echo. "$as_me:16554: checking if RCS identifiers should be compiled-in" >&5
16555 echoscip-shell system . . echo. $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
16556
16557 # Check whether --with-rcs-ids or --without-rcs-ids was given.
16558 if testscip-shell system . . test. "${with_rcs_ids+set}" = set; then
16559 withval="$with_rcs_ids"
16560 with_rcs_ids=$withval
16561 else
16562 with_rcs_ids=no
16563 fi;
16564 echoscip-shell system . . echo. "$as_me:16564: result: $with_rcs_ids" >&5
16565 echoscip-shell system . . echo. "${ECHO_T}$with_rcs_ids" >&6
16566 testscip-shell system . . test. "$with_rcs_ids" = yes &&
16567 catscip-shell system . . cat. >>confdefs.h <<\EOF
16568 #define USE_RCS_IDS 1
16569 EOF
16570
16571 ###############################################################################
16572
16573 ### Note that some functions (such as const) are normally disabled anyway.
16574 echoscip-shell system . . echo. "$as_me:16574: checking if you want to build with function extensions" >&5
16575 echoscip-shell system . . echo. $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
16576
16577 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
16578 if testscip-shell system . . test. "${enable_ext_funcs+set}" = set; then
16579 enableval="$enable_ext_funcs"
16580 with_ext_funcs=$enableval
16581 else
16582 with_ext_funcs=yes
16583 fi;
16584 echoscip-shell system . . echo. "$as_me:16584: result: $with_ext_funcs" >&5
16585 echoscip-shell system . . echo. "${ECHO_T}$with_ext_funcs" >&6
16586 if testscip-shell system . . test. "$with_ext_funcs" = yes ; then
16587 NCURSES_EXT_FUNCS=1
16588
16589 catscip-shell system . . cat. >>confdefs.h <<\EOF
16590 #define HAVE_USE_DEFAULT_COLORS 1
16591 EOF
16592
16593 catscip-shell system . . cat. >>confdefs.h <<\EOF
16594 #define NCURSES_EXT_FUNCS 1
16595 EOF
16596
16597 else
16598 NCURSES_EXT_FUNCS=0
16599 fi
16600
16601 ### use option --enable-const to turn on use of const beyond that in XSI.
16602 echoscip-shell system . . echo. "$as_me:16602: checking for extended use of const keyword" >&5
16603 echoscip-shell system . . echo. $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
16604
16605 # Check whether --enable-const or --disable-const was given.
16606 if testscip-shell system . . test. "${enable_const+set}" = set; then
16607 enableval="$enable_const"
16608 with_ext_const=$enableval
16609 else
16610 with_ext_const=no
16611 fi;
16612 echoscip-shell system . . echo. "$as_me:16612: result: $with_ext_const" >&5
16613 echoscip-shell system . . echo. "${ECHO_T}$with_ext_const" >&6
16614 NCURSES_CONST='/*nothing*/scip-shell filesystem . . `/*nothing*/`.'
16615 if testscip-shell system . . test. "$with_ext_const" = yes ; then
16616 NCURSES_CONST=const
16617 fi
16618
16619 ###############################################################################
16620 # These options are relatively safe to experiment with.
16621
16622 echoscip-shell system . . echo. "$as_me:16622: checking if you want all development code" >&5
16623 echoscip-shell system . . echo. $ECHO_N "checking if you want all development code... $ECHO_C" >&6
16624
16625 # Check whether --with-develop or --without-develop was given.
16626 if testscip-shell system . . test. "${with_develop+set}" = set; then
16627 withval="$with_develop"
16628 with_develop=$withval
16629 else
16630 with_develop=no
16631 fi;
16632 echoscip-shell system . . echo. "$as_me:16632: result: $with_develop" >&5
16633 echoscip-shell system . . echo. "${ECHO_T}$with_develop" >&6
16634
16635 ###############################################################################
16636 # These are just experimental, probably should not be in a package:
16637
16638 # This is still experimental (20080329), but should ultimately be moved to
16639 # the script-block --with-normal, etc.
16640
16641 echoscip-shell system . . echo. "$as_me:16641: checking if you want to link with the pthread library" >&5
16642 echoscip-shell system . . echo. $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
16643
16644 # Check whether --with-pthread or --without-pthread was given.
16645 if testscip-shell system . . test. "${with_pthread+set}" = set; then
16646 withval="$with_pthread"
16647 with_pthread=$withval
16648 else
16649 with_pthread=no
16650 fi;
16651 echoscip-shell system . . echo. "$as_me:16651: result: $with_pthread" >&5
16652 echoscip-shell system . . echo. "${ECHO_T}$with_pthread" >&6
16653
16654 if testscip-shell system . . test. "$with_pthread" != no ; then
16655 echoscip-shell system . . echo. "$as_me:16655: checking for pthread.h" >&5
16656 echoscip-shell system . . echo. $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16657 if testscip-shell system . . test. "${ac_cv_header_pthread_h+set}" = set; then
16658 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
16659 else
16660 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
16661 #line 16661 "configure"
16662 #include "confdefs.h"
16663 #include <pthread.h>
16664 _ACEOF
16665 if { (eval echo "$as_me:16665: \"$ac_cpp "conftest.$ac_ext"\"") >&5
16666 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
16667 ac_status=$?
16668 $EGREP -v '^ *\+' conftest.er1 >conftest.err
16669 rmscip-shell system . . rm. -f conftest.er1
16670 catscip-shell system . . cat. conftest.err >&5
16671 echoscip-shell system . . echo. "$as_me:16671: \$? = $ac_status" >&5
16672 (exit "$ac_status"); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then
16673 if testscip-shell system . . test. -s conftest.err; then
16674 ac_cpp_err=$ac_c_preproc_warn_flag
16675 else
16676 ac_cpp_err=
16677 fi
16678 else
16679 ac_cpp_err=yes
16680 fi
16681 if testscip-shell system . . test. -z "$ac_cpp_err"; then
16682 ac_cv_header_pthread_h=yes
16683 else
16684 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
16685 catscip-shell system . . cat. "conftest.$ac_ext" >&5
16686 ac_cv_header_pthread_h=no
16687 fi
16688 rmscip-shell system . . rm. -f conftest.err "conftest.$ac_ext"
16689 fi
16690 echoscip-shell system . . echo. "$as_me:16690: result: $ac_cv_header_pthread_h" >&5
16691 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_header_pthread_h" >&6
16692 if testscip-shell system . . test. "$ac_cv_header_pthread_h" = yes; then
16693
16694 catscip-shell system . . cat. >>confdefs.h <<\EOF
16695 #define HAVE_PTHREADS_H 1
16696 EOF
16697
16698 for cf_lib_pthread in pthread c_r
16699 do
16700 echoscip-shell system . . echo. "$as_me:16700: checking if we can link with the $cf_lib_pthread library" >&5
16701 echoscip-shell system . . echo. $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
16702 cf_save_LIBS="$LIBS"
16703
16704 cf_add_libs="$LIBS"
16705 # reverse order
16706 cf_add_0lib=
16707 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16708 # filter duplicates
16709 for cf_add_1lib in $cf_add_0lib; do
16710 for cf_add_2lib in $cf_add_libs; do
16711 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
16712 cf_add_1lib=
16713 break
16714 fi
16715 done
16716 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16717 done
16718 LIBS="$cf_add_libs"
16719
16720 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
16721 #line 16721 "configure"
16722 #include "confdefs.h"
16723
16724 #include <pthread.h>
16725
16726 int
16727 main (void)
16728 {
16729
16730 int rc = pthread_create(NULL,NULL,NULL,NULL);
16731 int r2 = pthread_mutexattr_settype(NULL, 0);
16732
16733 ;
16734 return 0;
16735 }
16736 _ACEOF
16737 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
16738 if { (eval echo "$as_me:16738: \"$ac_link\"") >&5
16739 (eval $ac_link) 2>&5
16740 ac_status=$?
16741 echoscip-shell system . . echo. "$as_me:16741: \$? = $ac_status" >&5
16742 (exit "$ac_status"); } &&
16743 { ac_try='test -s "conftest$ac_exeext"'
16744 { (eval echo "$as_me:16744: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16746 ac_status=$?
16747 echoscip-shell system . . echo. "$as_me:16747: \$? = $ac_status" >&5
16748 (exit "$ac_status"); }; }; then
16749 with_pthread=yes
16750 else
16751 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
16752 catscip-shell system . . cat. "conftest.$ac_ext" >&5
16753 with_pthread=no
16754 fi
16755 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16756 LIBS="$cf_save_LIBS"
16757 echoscip-shell system . . echo. "$as_me:16757: result: $with_pthread" >&5
16758 echoscip-shell system . . echo. "${ECHO_T}$with_pthread" >&6
16759 testscip-shell system . . test. "$with_pthread" = yes && break
16760 done
16761
16762 if testscip-shell system . . test. "$with_pthread" = yes ; then
16763
16764 cf_add_libs="$LIBS"
16765 # reverse order
16766 cf_add_0lib=
16767 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16768 # filter duplicates
16769 for cf_add_1lib in $cf_add_0lib; do
16770 for cf_add_2lib in $cf_add_libs; do
16771 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
16772 cf_add_1lib=
16773 break
16774 fi
16775 done
16776 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16777 done
16778 LIBS="$cf_add_libs"
16779
16780 catscip-shell system . . cat. >>confdefs.h <<\EOF
16781 #define HAVE_LIBPTHREADS 1
16782 EOF
16783
16784 else
16785 { { echoscip-shell system . . echo. "$as_me:16785: error: Cannot link with pthread library" >&5
16786 echoscip-shell system . . echo. "$as_me: error: Cannot link with pthread library" >&2;}
16787 { (exit 1); exit 1; }; }
16788 fi
16789
16790 fi
16791
16792 fi
16793
16794 echoscip-shell system . . echo. "$as_me:16794: checking if you want to use weak-symbols for pthreads" >&5
16795 echoscip-shell system . . echo. $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
16796
16797 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
16798 if testscip-shell system . . test. "${enable_weak_symbols+set}" = set; then
16799 enableval="$enable_weak_symbols"
16800 use_weak_symbols=$withval
16801 else
16802 use_weak_symbols=no
16803 fi;
16804 echoscip-shell system . . echo. "$as_me:16804: result: $use_weak_symbols" >&5
16805 echoscip-shell system . . echo. "${ECHO_T}$use_weak_symbols" >&6
16806 if testscip-shell system . . test. "$use_weak_symbols" = yes ; then
16807
16808 echoscip-shell system . . echo. "$as_me:16808: checking if $CC supports weak symbols" >&5
16809 echoscip-shell system . . echo. $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
16810 if testscip-shell system . . test. "${cf_cv_weak_symbols+set}" = set; then
16811 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
16812 else
16813
16814 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
16815 #line 16815 "configure"
16816 #include "confdefs.h"
16817
16818 #include <stdio.h>
16819 int
16820 main (void)
16821 {
16822
16823 #if defined(__GNUC__)
16824 # if defined __USE_ISOC99
16825 # define _cat_pragma(exp) _Pragma(#exp)
16826 # define _weak_pragma(exp) _cat_pragma(weak name)
16827 # else
16828 # define _weak_pragma(exp)
16829 # endif
16830 # define _declare(name) __extension__ extern __typeof__(name) name
16831 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
16832 #endif
16833
16834 weak_symbol(fopen);
16835
16836 ;
16837 return 0;
16838 }
16839 _ACEOF
16840 rmscip-shell system . . rm. -f "conftest.$ac_objext"
16841 if { (eval echo "$as_me:16841: \"$ac_compile\"") >&5
16842 (eval $ac_compile) 2>&5
16843 ac_status=$?
16844 echoscip-shell system . . echo. "$as_me:16844: \$? = $ac_status" >&5
16845 (exit "$ac_status"); } &&
16846 { ac_try='test -s "conftest.$ac_objext"'
16847 { (eval echo "$as_me:16847: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echoscip-shell system . . echo. "$as_me:16850: \$? = $ac_status" >&5
16851 (exit "$ac_status"); }; }; then
16852 cf_cv_weak_symbols=yes
16853 else
16854 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
16855 catscip-shell system . . cat. "conftest.$ac_ext" >&5
16856 cf_cv_weak_symbols=no
16857 fi
16858 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
16859
16860 fi
16861 echoscip-shell system . . echo. "$as_me:16861: result: $cf_cv_weak_symbols" >&5
16862 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_weak_symbols" >&6
16863
16864 else
16865 cf_cv_weak_symbols=no
16866 fi
16867
16868 if testscip-shell system . . test. $cf_cv_weak_symbols = yes ; then
16869
16870 catscip-shell system . . cat. >>confdefs.h <<\EOF
16871 #define USE_WEAK_SYMBOLS 1
16872 EOF
16873
16874 fi
16875
16876 PTHREAD=
16877 if testscip-shell system . . test. "$with_pthread" = "yes" ; then
16878
16879 catscip-shell system . . cat. >>confdefs.h <<\EOF
16880 #define USE_PTHREADS 1
16881 EOF
16882
16883 enable_reentrant=yes
16884 if testscip-shell system . . test. $cf_cv_weak_symbols = yes ; then
16885 PTHREAD=-lpthread
16886 fi
16887 fi
16888
16889 # OpenSUSE is installing ncurses6, using reentrant option.
16890 echoscip-shell system . . echo. "$as_me:16890: checking for _nc_TABSIZE" >&5
16891 echoscip-shell system . . echo. $ECHO_N "checking for _nc_TABSIZE... $ECHO_C" >&6
16892 if testscip-shell system . . test. "${ac_cv_func__nc_TABSIZE+set}" = set; then
16893 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
16894 else
16895 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
16896 #line 16896 "configure"
16897 #include "confdefs.h"
16898 #define _nc_TABSIZE autoconf_temporary
16899 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16900 #undef _nc_TABSIZE
16901
16902 #ifdef __cplusplus
16903 extern "C"
16904 #endif
16905
16906 /* We use char because int might match the return type of a gcc2
16907 builtin and then its argument prototype would still apply. */
16908 char _nc_TABSIZE (void);
16909
16910 int
16911 main (void)
16912 {
16913
16914 /* The GNU C library defines stubs for functions which it implements
16915 to always fail with ENOSYS. Some functions are actually named
16916 something starting with __ and the normal name is an alias. */
16917 #if defined (__stub__nc_TABSIZE) || defined (__stub____nc_TABSIZE)
16918 #error found stub for _nc_TABSIZE
16919 #endif
16920
16921 return _nc_TABSIZE ();
16922 ;
16923 return 0;
16924 }
16925 _ACEOF
16926 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
16927 if { (eval echo "$as_me:16927: \"$ac_link\"") >&5
16928 (eval $ac_link) 2>&5
16929 ac_status=$?
16930 echoscip-shell system . . echo. "$as_me:16930: \$? = $ac_status" >&5
16931 (exit "$ac_status"); } &&
16932 { ac_try='test -s "conftest$ac_exeext"'
16933 { (eval echo "$as_me:16933: \"$ac_try\"") >&5
16934 (eval $ac_try) 2>&5
16935 ac_status=$?
16936 echoscip-shell system . . echo. "$as_me:16936: \$? = $ac_status" >&5
16937 (exit "$ac_status"); }; }; then
16938 ac_cv_func__nc_TABSIZE=yes
16939 else
16940 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
16941 catscip-shell system . . cat. "conftest.$ac_ext" >&5
16942 ac_cv_func__nc_TABSIZE=no
16943 fi
16944 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16945 fi
16946 echoscip-shell system . . echo. "$as_me:16946: result: $ac_cv_func__nc_TABSIZE" >&5
16947 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_func__nc_TABSIZE" >&6
16948 if testscip-shell system . . test. "$ac_cv_func__nc_TABSIZE" = yes; then
16949 assume_reentrant=yes
16950 else
16951 assume_reentrant=no
16952 fi
16953
16954 # Reentrant code has to be opaque; there's little advantage to making ncurses
16955 # opaque outside of that, so there is no --enable-opaque option. We can use
16956 # this option without --with-pthreads, but this will be always set for
16957 # pthreads.
16958 echoscip-shell system . . echo. "$as_me:16958: checking if you want experimental reentrant code" >&5
16959 echoscip-shell system . . echo. $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
16960
16961 # Check whether --enable-reentrant or --disable-reentrant was given.
16962 if testscip-shell system . . test. "${enable_reentrant+set}" = set; then
16963 enableval="$enable_reentrant"
16964 with_reentrant=$enableval
16965 else
16966 with_reentrant=$assume_reentrant
16967 fi;
16968 echoscip-shell system . . echo. "$as_me:16968: result: $with_reentrant" >&5
16969 echoscip-shell system . . echo. "${ECHO_T}$with_reentrant" >&6
16970 if testscip-shell system . . test. "$with_reentrant" = yes ; then
16971 cf_cv_enable_reentrant=1
16972 if testscip-shell system . . test. $cf_cv_weak_symbols = yes ; then
16973
16974 # remove pthread library from $LIBS
16975 LIBS=`echoscip-shell system . . echo. "$LIBS" | sedscip-shell system . . sed. -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
16976
16977 elif testscip-shell system . . test. "$assume_reentrant" = no ; then
16978 LIB_SUFFIX="t${LIB_SUFFIX}"
16979 fi
16980
16981 catscip-shell system . . cat. >>confdefs.h <<\EOF
16982 #define USE_REENTRANT 1
16983 EOF
16984
16985 else
16986 cf_cv_enable_reentrant=0
16987 fi
16988
16989 ### Allow using a different wrap-prefix
16990 if testscip-shell system . . test. "$cf_cv_enable_reentrant" != 0 || testscip-shell system . . test. "$BROKEN_LINKER" = 1 ; then
16991 echoscip-shell system . . echo. "$as_me:16991: checking for prefix used to wrap public variables" >&5
16992 echoscip-shell system . . echo. $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
16993
16994 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
16995 if testscip-shell system . . test. "${with_wrap_prefix+set}" = set; then
16996 withval="$with_wrap_prefix"
16997 NCURSES_WRAP_PREFIX=$withval
16998 else
16999 NCURSES_WRAP_PREFIX=_nc_
17000 fi;
17001 echoscip-shell system . . echo. "$as_me:17001: result: $NCURSES_WRAP_PREFIX" >&5
17002 echoscip-shell system . . echo. "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
17003 else
17004 NCURSES_WRAP_PREFIX=_nc_
17005 fi
17006
17007 catscip-shell system . . cat. >>confdefs.h <<EOF
17008 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
17009 EOF
17010
17011 ###############################################################################
17012
17013 ### use option --disable-echo to suppress full display compiling commands
17014
17015 echoscip-shell system . . echo. "$as_me:17015: checking if you want to see long compiling messages" >&5
17016 echoscip-shell system . . echo. $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
17017
17018 # Check whether --enable-echo or --disable-echo was given.
17019 if testscip-shell system . . test. "${enable_echo+set}" = set; then
17020 enableval="$enable_echo"
17021 testscip-shell system . . test. "$enableval" != no && enableval=yes
17022 if testscip-shell system . . test. "$enableval" != "yes" ; then
17023
17024 ECHO_LT='--silent'
17025 ECHO_LD='@echo linking $@;'
17026 RULE_CC='@echo compiling $<'
17027 SHOW_CC='@echo compiling $@'
17028 ECHO_CC='@'
17029
17030 else
17031
17032 ECHO_LT=''
17033 ECHO_LD=''
17034 RULE_CC=''
17035 SHOW_CC=''
17036 ECHO_CC=''
17037
17038 fi
17039 else
17040 enableval=yes
17041
17042 ECHO_LT=''
17043 ECHO_LD=''
17044 RULE_CC=''
17045 SHOW_CC=''
17046 ECHO_CC=''
17047
17048 fi;
17049 echoscip-shell system . . echo. "$as_me:17049: result: $enableval" >&5
17050 echoscip-shell system . . echo. "${ECHO_T}$enableval" >&6
17051
17052 echoscip-shell system . . echo. "$as_me:17052: checking if you want to use C11 _Noreturn feature" >&5
17053 echoscip-shell system . . echo. $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
17054
17055 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
17056 if testscip-shell system . . test. "${enable_stdnoreturn+set}" = set; then
17057 enableval="$enable_stdnoreturn"
17058 testscip-shell system . . test. "$enableval" != yes && enableval=no
17059 if testscip-shell system . . test. "$enableval" != "no" ; then
17060 enable_stdnoreturn=yes
17061 else
17062 enable_stdnoreturn=no
17063 fi
17064 else
17065 enableval=no
17066 enable_stdnoreturn=no
17067
17068 fi;
17069 echoscip-shell system . . echo. "$as_me:17069: result: $enable_stdnoreturn" >&5
17070 echoscip-shell system . . echo. "${ECHO_T}$enable_stdnoreturn" >&6
17071
17072 if testscip-shell system . . test. $enable_stdnoreturn = yes; then
17073 echoscip-shell system . . echo. "$as_me:17073: checking for C11 _Noreturn feature" >&5
17074 echoscip-shell system . . echo. $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
17075 if testscip-shell system . . test. "${cf_cv_c11_noreturn+set}" = set; then
17076 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
17077 else
17078 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
17079 #line 17079 "configure"
17080 #include "confdefs.h"
17081
17082 $ac_includes_default
17083 #include <stdnoreturn.h>
17084 static _Noreturn void giveup(void) { exit(0); }
17085
17086 int
17087 main (void)
17088 {
17089 if (feof(stdin)) giveup()
17090 ;
17091 return 0;
17092 }
17093 _ACEOF
17094 rmscip-shell system . . rm. -f "conftest.$ac_objext"
17095 if { (eval echo "$as_me:17095: \"$ac_compile\"") >&5
17096 (eval $ac_compile) 2>&5
17097 ac_status=$?
17098 echoscip-shell system . . echo. "$as_me:17098: \$? = $ac_status" >&5
17099 (exit "$ac_status"); } &&
17100 { ac_try='test -s "conftest.$ac_objext"'
17101 { (eval echo "$as_me:17101: \"$ac_try\"") >&5
17102 (eval $ac_try) 2>&5
17103 ac_status=$?
17104 echoscip-shell system . . echo. "$as_me:17104: \$? = $ac_status" >&5
17105 (exit "$ac_status"); }; }; then
17106 cf_cv_c11_noreturn=yes
17107 else
17108 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
17109 catscip-shell system . . cat. "conftest.$ac_ext" >&5
17110 cf_cv_c11_noreturn=no
17111 fi
17112 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
17113
17114 fi
17115 echoscip-shell system . . echo. "$as_me:17115: result: $cf_cv_c11_noreturn" >&5
17116 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_c11_noreturn" >&6
17117 else
17118 cf_cv_c11_noreturn=no,
17119 fi
17120
17121 if testscip-shell system . . test. "$cf_cv_c11_noreturn" = yes; then
17122
17123 catscip-shell system . . cat. >>confdefs.h <<\EOF
17124 #define HAVE_STDNORETURN_H 1
17125 EOF
17126
17127 catscip-shell system . . cat. >>confdefs.h <<EOF
17128 #define STDC_NORETURN _Noreturn
17129 EOF
17130
17131 HAVE_STDNORETURN_H=1
17132 else
17133 HAVE_STDNORETURN_H=0
17134 fi
17135
17136 if testscip-shell system . . test. "$GCC" = yes || testscip-shell system . . test. "$GXX" = yes
17137 then
17138
17139 if testscip-shell system . . test. "$GCC" = yes || testscip-shell system . . test. "$GXX" = yes
17140 then
17141 case $CFLAGS in
17142 (*-Werror=*)
17143 cf_temp_flags=
17144 for cf_temp_scan in $CFLAGS
17145 do
17146 case "x$cf_temp_scan" in
17147 (x-Werror=format*)
17148
17149 testscip-shell system . . test. -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17150 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17151
17152 ;;
17153 (x-Werror=*)
17154
17155 testscip-shell system . . test. -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17156 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17157
17158 ;;
17159 (*)
17160
17161 testscip-shell system . . test. -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17162 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17163
17164 ;;
17165 esac
17166 done
17167 if testscip-shell system . . test. "x$CFLAGS" != "x$cf_temp_flags"
17168 then
17169 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " repairing CFLAGS: $CFLAGS" 1>&6
17170
17171 echoscip-shell system . . echo. "${as_me:-configure}:17171: testing repairing CFLAGS: $CFLAGS ..." 1>&5
17172
17173 CFLAGS="$cf_temp_flags"
17174 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... fixed $CFLAGS" 1>&6
17175
17176 echoscip-shell system . . echo. "${as_me:-configure}:17176: testing ... fixed $CFLAGS ..." 1>&5
17177
17178 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... extra $EXTRA_CFLAGS" 1>&6
17179
17180 echoscip-shell system . . echo. "${as_me:-configure}:17180: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17181
17182 fi
17183 ;;
17184 esac
17185 fi
17186
17187 if testscip-shell system . . test. "$GCC" = yes || testscip-shell system . . test. "$GXX" = yes
17188 then
17189 case $CPPFLAGS in
17190 (*-Werror=*)
17191 cf_temp_flags=
17192 for cf_temp_scan in $CPPFLAGS
17193 do
17194 case "x$cf_temp_scan" in
17195 (x-Werror=format*)
17196
17197 testscip-shell system . . test. -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17198 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17199
17200 ;;
17201 (x-Werror=*)
17202
17203 testscip-shell system . . test. -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17204 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17205
17206 ;;
17207 (*)
17208
17209 testscip-shell system . . test. -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17210 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17211
17212 ;;
17213 esac
17214 done
17215 if testscip-shell system . . test. "x$CPPFLAGS" != "x$cf_temp_flags"
17216 then
17217 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " repairing CPPFLAGS: $CPPFLAGS" 1>&6
17218
17219 echoscip-shell system . . echo. "${as_me:-configure}:17219: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
17220
17221 CPPFLAGS="$cf_temp_flags"
17222 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... fixed $CPPFLAGS" 1>&6
17223
17224 echoscip-shell system . . echo. "${as_me:-configure}:17224: testing ... fixed $CPPFLAGS ..." 1>&5
17225
17226 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... extra $EXTRA_CFLAGS" 1>&6
17227
17228 echoscip-shell system . . echo. "${as_me:-configure}:17228: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17229
17230 fi
17231 ;;
17232 esac
17233 fi
17234
17235 if testscip-shell system . . test. "$GCC" = yes || testscip-shell system . . test. "$GXX" = yes
17236 then
17237 case $LDFLAGS in
17238 (*-Werror=*)
17239 cf_temp_flags=
17240 for cf_temp_scan in $LDFLAGS
17241 do
17242 case "x$cf_temp_scan" in
17243 (x-Werror=format*)
17244
17245 testscip-shell system . . test. -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17246 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17247
17248 ;;
17249 (x-Werror=*)
17250
17251 testscip-shell system . . test. -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17252 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17253
17254 ;;
17255 (*)
17256
17257 testscip-shell system . . test. -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17258 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17259
17260 ;;
17261 esac
17262 done
17263 if testscip-shell system . . test. "x$LDFLAGS" != "x$cf_temp_flags"
17264 then
17265 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " repairing LDFLAGS: $LDFLAGS" 1>&6
17266
17267 echoscip-shell system . . echo. "${as_me:-configure}:17267: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
17268
17269 LDFLAGS="$cf_temp_flags"
17270 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... fixed $LDFLAGS" 1>&6
17271
17272 echoscip-shell system . . echo. "${as_me:-configure}:17272: testing ... fixed $LDFLAGS ..." 1>&5
17273
17274 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " ... extra $EXTRA_CFLAGS" 1>&6
17275
17276 echoscip-shell system . . echo. "${as_me:-configure}:17276: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17277
17278 fi
17279 ;;
17280 esac
17281 fi
17282
17283 echoscip-shell system . . echo. "$as_me:17283: checking if you want to turn on gcc warnings" >&5
17284 echoscip-shell system . . echo. $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
17285
17286 # Check whether --enable-warnings or --disable-warnings was given.
17287 if testscip-shell system . . test. "${enable_warnings+set}" = set; then
17288 enableval="$enable_warnings"
17289 testscip-shell system . . test. "$enableval" != yes && enableval=no
17290 if testscip-shell system . . test. "$enableval" != "no" ; then
17291 enable_warnings=yes
17292 else
17293 enable_warnings=no
17294 fi
17295 else
17296 enableval=no
17297 enable_warnings=no
17298
17299 fi;
17300 echoscip-shell system . . echo. "$as_me:17300: result: $enable_warnings" >&5
17301 echoscip-shell system . . echo. "${ECHO_T}$enable_warnings" >&6
17302 if testscip-shell system . . test. "$enable_warnings" = "yes"
17303 then
17304
17305 if testscip-shell system . . test. "x$have_x" = xyes; then
17306
17307 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
17308 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
17309 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
17310 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
17311 for cf_X_CFLAGS in $X_CFLAGS
17312 do
17313 case "x$cf_X_CFLAGS" in
17314 x-[IUD]*)
17315 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
17316 ;;
17317 *)
17318 CFLAGS="$CFLAGS $cf_X_CFLAGS"
17319 ;;
17320 esac
17321 done
17322
17323 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
17324 #line 17324 "configure"
17325 #include "confdefs.h"
17326
17327 $ac_includes_default
17328 #include <X11/Intrinsic.h>
17329
17330 int
17331 main (void)
17332 {
17333 String foo = malloc(1); free((void*)foo)
17334 ;
17335 return 0;
17336 }
17337 _ACEOF
17338 rmscip-shell system . . rm. -f "conftest.$ac_objext"
17339 if { (eval echo "$as_me:17339: \"$ac_compile\"") >&5
17340 (eval $ac_compile) 2>&5
17341 ac_status=$?
17342 echoscip-shell system . . echo. "$as_me:17342: \$? = $ac_status" >&5
17343 (exit "$ac_status"); } &&
17344 { ac_try='test -s "conftest.$ac_objext"'
17345 { (eval echo "$as_me:17345: \"$ac_try\"") >&5
17346 (eval $ac_try) 2>&5
17347 ac_status=$?
17348 echoscip-shell system . . echo. "$as_me:17348: \$? = $ac_status" >&5
17349 (exit "$ac_status"); }; }; then
17350
17351 echoscip-shell system . . echo. "$as_me:17351: checking for X11/Xt const-feature" >&5
17352 echoscip-shell system . . echo. $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
17353 if testscip-shell system . . test. "${cf_cv_const_x_string+set}" = set; then
17354 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
17355 else
17356
17357 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
17358 #line 17358 "configure"
17359 #include "confdefs.h"
17360
17361 #undef _CONST_X_STRING
17362 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
17363 #undef XTSTRINGDEFINES /* X11R5 and later */
17364 $ac_includes_default
17365 #include <X11/Intrinsic.h>
17366
17367 int
17368 main (void)
17369 {
17370 String foo = malloc(1); *foo = 0
17371 ;
17372 return 0;
17373 }
17374 _ACEOF
17375 rmscip-shell system . . rm. -f "conftest.$ac_objext"
17376 if { (eval echo "$as_me:17376: \"$ac_compile\"") >&5
17377 (eval $ac_compile) 2>&5
17378 ac_status=$?
17379 echoscip-shell system . . echo. "$as_me:17379: \$? = $ac_status" >&5
17380 (exit "$ac_status"); } &&
17381 { ac_try='test -s "conftest.$ac_objext"'
17382 { (eval echo "$as_me:17382: \"$ac_try\"") >&5
17383 (eval $ac_try) 2>&5
17384 ac_status=$?
17385 echoscip-shell system . . echo. "$as_me:17385: \$? = $ac_status" >&5
17386 (exit "$ac_status"); }; }; then
17387
17388 cf_cv_const_x_string=no
17389
17390 else
17391 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
17392 catscip-shell system . . cat. "conftest.$ac_ext" >&5
17393
17394 cf_cv_const_x_string=yes
17395
17396 fi
17397 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
17398
17399 fi
17400 echoscip-shell system . . echo. "$as_me:17400: result: $cf_cv_const_x_string" >&5
17401 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_const_x_string" >&6
17402
17403 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
17404 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
17405 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
17406
17407 case "$cf_cv_const_x_string" in
17408 (no)
17409
17410 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17411 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
17412
17413 ;;
17414 (*)
17415
17416 testscip-shell system . . test. -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17417 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
17418
17419 ;;
17420 esac
17421
17422 else
17423 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
17424 catscip-shell system . . cat. "conftest.$ac_ext" >&5
17425 fi
17426 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
17427 fi
17428 catscip-shell system . . cat. > "conftest.$ac_ext" <<EOF
17429 #line 17429 "${as_me:-configure}"
17430 int main(int argc, char *argv[]) { return (argv[argc-1] == (char*)0) ; }
17431 EOF
17432 if testscip-shell system . . test. "$INTEL_COMPILER" = yes
17433 then
17434 # The "-wdXXX" options suppress warnings:
17435 # remark #1419: external declaration in primary source file
17436 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17437 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17438 # remark #193: zero used for undefined preprocessing identifier
17439 # remark #593: variable "curs_sb_left_arrow" was set but never used
17440 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17441 # remark #869: parameter "tw" was never referenced
17442 # remark #981: operands are evaluated in unspecified order
17443 # warning #279: controlling expression is constant
17444
17445 echoscip-shell system . . echo. "$as_me:17445: checking for $CC warning options" >&5
17446 echoscip-shell system . . echo. $ECHO_N "checking for $CC warning options... $ECHO_C" >&6
17447 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. "$as_me:17447: result: " >&5
17448 echoscip-shell system . . echo. "${ECHO_T}" >&6
17449 cf_save_CFLAGS="$CFLAGS"
17450 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
17451 for cf_opt in \
17452 wd1419 \
17453 wd1683 \
17454 wd1684 \
17455 wd193 \
17456 wd593 \
17457 wd279 \
17458 wd810 \
17459 wd869 \
17460 wd981
17461 do
17462 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17463 if { (eval echo "$as_me:17463: \"$ac_compile\"") >&5
17464 (eval $ac_compile) 2>&5
17465 ac_status=$?
17466 echoscip-shell system . . echo. "$as_me:17466: \$? = $ac_status" >&5
17467 (exit "$ac_status"); }; then
17468 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. "$as_me:17468: result: ... -$cf_opt" >&5
17469 echoscip-shell system . . echo. "${ECHO_T}... -$cf_opt" >&6
17470 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17471 fi
17472 done
17473 CFLAGS="$cf_save_CFLAGS"
17474 elif testscip-shell system . . test. "$GCC" = yes && testscip-shell system . . test. "$GCC_VERSION" != "unknown"
17475 then
17476 echoscip-shell system . . echo. "$as_me:17476: checking for $CC warning options" >&5
17477 echoscip-shell system . . echo. $ECHO_N "checking for $CC warning options... $ECHO_C" >&6
17478 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. "$as_me:17478: result: " >&5
17479 echoscip-shell system . . echo. "${ECHO_T}" >&6
17480 cf_save_CFLAGS="$CFLAGS"
17481 cf_warn_CONST=""
17482 testscip-shell system . . test. "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
17483 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
17484 testscip-shell system . . test. "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
17485 for cf_opt in W Wall \
17486 Wbad-function-cast \
17487 Wcast-align \
17488 Wcast-qual \
17489 Wdeclaration-after-statement \
17490 Wextra \
17491 Winline \
17492 Wmissing-declarations \
17493 Wmissing-prototypes \
17494 Wnested-externs \
17495 Wpointer-arith \
17496 Wshadow \
17497 Wstrict-prototypes \
17498 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
17499 do
17500 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17501 if { (eval echo "$as_me:17501: \"$ac_compile\"") >&5
17502 (eval $ac_compile) 2>&5
17503 ac_status=$?
17504 echoscip-shell system . . echo. "$as_me:17504: \$? = $ac_status" >&5
17505 (exit "$ac_status"); }; then
17506 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. "$as_me:17506: result: ... -$cf_opt" >&5
17507 echoscip-shell system . . echo. "${ECHO_T}... -$cf_opt" >&6
17508 case "$cf_opt" in
17509 (Winline)
17510 case "$GCC_VERSION" in
17511 ([34].*)
17512 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " feature is broken in gcc $GCC_VERSION" 1>&6
17513
17514 echoscip-shell system . . echo. "${as_me:-configure}:17514: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17515
17516 continue;;
17517 esac
17518 ;;
17519 (Wpointer-arith)
17520 case "$GCC_VERSION" in
17521 ([12].*)
17522 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. " feature is broken in gcc $GCC_VERSION" 1>&6
17523
17524 echoscip-shell system . . echo. "${as_me:-configure}:17524: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17525
17526 continue;;
17527 esac
17528 ;;
17529 esac
17530 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17531 fi
17532 done
17533 CFLAGS="$cf_save_CFLAGS"
17534 fi
17535 rmscip-shell system . . rm. -rf ./conftest*
17536
17537 fi
17538
17539 if testscip-shell system . . test. "$GCC" = yes || testscip-shell system . . test. "$GXX" = yes
17540 then
17541 catscip-shell system . . cat. > conftest.i <<EOF
17542 #ifndef GCC_PRINTF
17543 #define GCC_PRINTF 0
17544 #endif
17545 #ifndef GCC_SCANF
17546 #define GCC_SCANF 0
17547 #endif
17548 #ifndef GCC_NORETURN
17549 #define GCC_NORETURN /* nothing */
17550 #endif
17551 #ifndef GCC_UNUSED
17552 #define GCC_UNUSED /* nothing */
17553 #endif
17554 EOF
17555 if testscip-shell system . . test. "$GCC" = yes
17556 then
17557 echoscip-shell system . . echo. "$as_me:17557: checking for $CC __attribute__ directives" >&5
17558 echoscip-shell system . . echo. $ECHO_N "checking for $CC __attribute__ directives... $ECHO_C" >&6
17559 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. "$as_me:17559: result: " >&5
17560 echoscip-shell system . . echo. "${ECHO_T}" >&6
17561 catscip-shell system . . cat. > "conftest.$ac_ext" <<EOF
17562 #line 17562 "${as_me:-configure}"
17563 #include <stdio.h>
17564 #include "confdefs.h"
17565 #include "conftest.h"
17566 #include "conftest.i"
17567 #if GCC_PRINTF
17568 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17569 #else
17570 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17571 #endif
17572 #if GCC_SCANF
17573 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17574 #else
17575 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17576 #endif
17577 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
17578 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
17579 extern GCC_NORETURN void foo(void);
17580 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
17581 EOF
17582 cf_printf_attribute=no
17583 cf_scanf_attribute=no
17584 for cf_attribute in scanf printf unused noreturn
17585 do
17586
17587 cf_ATTRIBUTE=`echoscip-shell system . . echo. "$cf_attribute" | sedscip-shell system . . sed. y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17588
17589 cf_directive="__attribute__(($cf_attribute))"
17590 echoscip-shell system . . echo. "checking for $CC $cf_directive" 1>&5
17591
17592 case "$cf_attribute" in
17593 (printf)
17594 cf_printf_attribute=yes
17595 catscip-shell system . . cat. >conftest.h <<EOF
17596 #define GCC_$cf_ATTRIBUTE 1
17597 EOF
17598 ;;
17599 (scanf)
17600 cf_scanf_attribute=yes
17601 catscip-shell system . . cat. >conftest.h <<EOF
17602 #define GCC_$cf_ATTRIBUTE 1
17603 EOF
17604 ;;
17605 (*)
17606 catscip-shell system . . cat. >conftest.h <<EOF
17607 #define GCC_$cf_ATTRIBUTE $cf_directive
17608 EOF
17609 ;;
17610 esac
17611
17612 if { (eval echo "$as_me:17612: \"$ac_compile\"") >&5
17613 (eval $ac_compile) 2>&5
17614 ac_status=$?
17615 echoscip-shell system . . echo. "$as_me:17615: \$? = $ac_status" >&5
17616 (exit "$ac_status"); }; then
17617 testscip-shell system . . test. -n "$verbose" && echoscip-shell system . . echo. "$as_me:17617: result: ... $cf_attribute" >&5
17618 echoscip-shell system . . echo. "${ECHO_T}... $cf_attribute" >&6
17619 catscip-shell system . . cat. conftest.h >>confdefs.h
17620 case "$cf_attribute" in
17621 (noreturn)
17622
17623 catscip-shell system . . cat. >>confdefs.h <<EOF
17624 #define GCC_NORETURN $cf_directive
17625 EOF
17626
17627 ;;
17628 (printf)
17629 cf_value='/* nothing */scip-shell filesystem . . `/* nothing */`.'
17630 if testscip-shell system . . test. "$cf_printf_attribute" != no ; then
17631 cf_value='__attribute__((format(printf,fmt,var)))'
17632
17633 catscip-shell system . . cat. >>confdefs.h <<\EOF
17634 #define GCC_PRINTF 1
17635 EOF
17636
17637 fi
17638
17639 catscip-shell system . . cat. >>confdefs.h <<EOF
17640 #define GCC_PRINTFLIKE(fmt,var) $cf_value
17641 EOF
17642
17643 ;;
17644 (scanf)
17645 cf_value='/* nothing */scip-shell filesystem . . `/* nothing */`.'
17646 if testscip-shell system . . test. "$cf_scanf_attribute" != no ; then
17647 cf_value='__attribute__((format(scanf,fmt,var)))'
17648
17649 catscip-shell system . . cat. >>confdefs.h <<\EOF
17650 #define GCC_SCANF 1
17651 EOF
17652
17653 fi
17654
17655 catscip-shell system . . cat. >>confdefs.h <<EOF
17656 #define GCC_SCANFLIKE(fmt,var) $cf_value
17657 EOF
17658
17659 ;;
17660 (unused)
17661
17662 catscip-shell system . . cat. >>confdefs.h <<EOF
17663 #define GCC_UNUSED $cf_directive
17664 EOF
17665
17666 ;;
17667 esac
17668 fi
17669 done
17670 else
17671 ${FGREP-fgrep} define conftest.i >>confdefs.h
17672 fi
17673 rmscip-shell system . . rm. -rf ./conftest*
17674 fi
17675
17676 fi
17677
17678 if testscip-shell system . . test. "x$enable_warnings" = "xyes"; then
17679
17680 ADAFLAGS="$ADAFLAGS -gnatwa -gnatyg"
17681
17682 fi
17683
17684 ### use option --enable-assertions to turn on generation of assertion code
17685 echoscip-shell system . . echo. "$as_me:17685: checking if you want to enable runtime assertions" >&5
17686 echoscip-shell system . . echo. $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
17687
17688 # Check whether --enable-assertions or --disable-assertions was given.
17689 if testscip-shell system . . test. "${enable_assertions+set}" = set; then
17690 enableval="$enable_assertions"
17691 with_assertions=$enableval
17692 else
17693 with_assertions=no
17694 fi;
17695 echoscip-shell system . . echo. "$as_me:17695: result: $with_assertions" >&5
17696 echoscip-shell system . . echo. "${ECHO_T}$with_assertions" >&6
17697 if testscip-shell system . . test. -n "$GCC"
17698 then
17699 if testscip-shell system . . test. "$with_assertions" = no
17700 then
17701 CPPFLAGS="$CPPFLAGS -DNDEBUG"
17702 else
17703
17704 ADAFLAGS="$ADAFLAGS -gnata"
17705
17706 fi
17707 fi
17708
17709 ### use option --disable-leaks to suppress "permanent" leaks, for testing
17710
17711 catscip-shell system . . cat. >>confdefs.h <<\EOF
17712 #define HAVE_NC_ALLOC_H 1
17713 EOF
17714
17715 ### use option --enable-expanded to generate certain macros as functions
17716
17717 # Check whether --enable-expanded or --disable-expanded was given.
17718 if testscip-shell system . . test. "${enable_expanded+set}" = set; then
17719 enableval="$enable_expanded"
17720 testscip-shell system . . test. "$enableval" = yes &&
17721 catscip-shell system . . cat. >>confdefs.h <<\EOF
17722 #define NCURSES_EXPANDED 1
17723 EOF
17724
17725 fi;
17726
17727 ### use option --disable-macros to suppress macros in favor of functions
17728
17729 # Check whether --enable-macros or --disable-macros was given.
17730 if testscip-shell system . . test. "${enable_macros+set}" = set; then
17731 enableval="$enable_macros"
17732 testscip-shell system . . test. "$enableval" = no &&
17733 catscip-shell system . . cat. >>confdefs.h <<\EOF
17734 #define NCURSES_NOMACROS 1
17735 EOF
17736
17737 fi;
17738
17739 # Normally we only add trace() to the debug-library. Allow this to be
17740 # extended to all models of the ncurses library:
17741 cf_all_traces=no
17742 case "$CFLAGS $CPPFLAGS" in
17743 (*-DTRACE*)
17744 cf_all_traces=yes
17745 ;;
17746 esac
17747
17748 echoscip-shell system . . echo. "$as_me:17748: checking whether to add trace feature to all models" >&5
17749 echoscip-shell system . . echo. $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
17750
17751 # Check whether --with-trace or --without-trace was given.
17752 if testscip-shell system . . test. "${with_trace+set}" = set; then
17753 withval="$with_trace"
17754 cf_with_trace=$withval
17755 else
17756 cf_with_trace=$cf_all_traces
17757 fi;
17758 echoscip-shell system . . echo. "$as_me:17758: result: $cf_with_trace" >&5
17759 echoscip-shell system . . echo. "${ECHO_T}$cf_with_trace" >&6
17760
17761 if testscip-shell system . . test. "$cf_with_trace" = yes ; then
17762 ADA_TRACE=TRUE
17763
17764 catscip-shell system . . cat. >>confdefs.h <<\EOF
17765 #define TRACE 1
17766 EOF
17767
17768 else
17769 ADA_TRACE=FALSE
17770 fi
17771
17772 echoscip-shell system . . echo. "$as_me:17772: checking if we want to use GNAT projects" >&5
17773 echoscip-shell system . . echo. $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
17774
17775 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
17776 if testscip-shell system . . test. "${enable_gnat_projects+set}" = set; then
17777 enableval="$enable_gnat_projects"
17778 testscip-shell system . . test. "$enableval" != no && enableval=yes
17779 if testscip-shell system . . test. "$enableval" != "yes" ; then
17780 enable_gnat_projects=no
17781 else
17782 enable_gnat_projects=yes
17783 fi
17784 else
17785 enableval=yes
17786 enable_gnat_projects=yes
17787
17788 fi;
17789 echoscip-shell system . . echo. "$as_me:17789: result: $enable_gnat_projects" >&5
17790 echoscip-shell system . . echo. "${ECHO_T}$enable_gnat_projects" >&6
17791
17792 ### Checks for libraries.
17793 case $cf_cv_system_name in
17794 (*mingw32*)
17795
17796 echoscip-shell system . . echo. "$as_me:17796: checking if ssp library is needed" >&5
17797 echoscip-shell system . . echo. $ECHO_N "checking if ssp library is needed... $ECHO_C" >&6
17798 if testscip-shell system . . test. "${cf_cv_need_libssp+set}" = set; then
17799 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
17800 else
17801
17802 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
17803 #line 17803 "configure"
17804 #include "confdefs.h"
17805
17806 #include <sys/types.h>
17807 #include <dirent.h>
17808
17809 int
17810 main (void)
17811 {
17812
17813 DIR *dp = opendir(".");
17814
17815 ;
17816 return 0;
17817 }
17818 _ACEOF
17819 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
17820 if { (eval echo "$as_me:17820: \"$ac_link\"") >&5
17821 (eval $ac_link) 2>&5
17822 ac_status=$?
17823 echoscip-shell system . . echo. "$as_me:17823: \$? = $ac_status" >&5
17824 (exit "$ac_status"); } &&
17825 { ac_try='test -s "conftest$ac_exeext"'
17826 { (eval echo "$as_me:17826: \"$ac_try\"") >&5
17827 (eval $ac_try) 2>&5
17828 ac_status=$?
17829 echoscip-shell system . . echo. "$as_me:17829: \$? = $ac_status" >&5
17830 (exit "$ac_status"); }; }; then
17831 cf_cv_need_libssp=no
17832 else
17833 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
17834 catscip-shell system . . cat. "conftest.$ac_ext" >&5
17835
17836 cf_save_LIBS="$LIBS"
17837 LIBS="$LIBS -lssp"
17838 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
17839 #line 17839 "configure"
17840 #include "confdefs.h"
17841
17842 #include <sys/types.h>
17843 #include <dirent.h>
17844
17845 int
17846 main (void)
17847 {
17848
17849 DIR *dp = opendir(".");
17850
17851 ;
17852 return 0;
17853 }
17854 _ACEOF
17855 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
17856 if { (eval echo "$as_me:17856: \"$ac_link\"") >&5
17857 (eval $ac_link) 2>&5
17858 ac_status=$?
17859 echoscip-shell system . . echo. "$as_me:17859: \$? = $ac_status" >&5
17860 (exit "$ac_status"); } &&
17861 { ac_try='test -s "conftest$ac_exeext"'
17862 { (eval echo "$as_me:17862: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17864 ac_status=$?
17865 echoscip-shell system . . echo. "$as_me:17865: \$? = $ac_status" >&5
17866 (exit "$ac_status"); }; }; then
17867 cf_cv_need_libssp=yes
17868 else
17869 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
17870 catscip-shell system . . cat. "conftest.$ac_ext" >&5
17871 cf_cv_need_libssp=maybe
17872 fi
17873 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17874 LIBS="$cf_save_LIBS"
17875
17876 fi
17877 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17878 fi
17879 echoscip-shell system . . echo. "$as_me:17879: result: $cf_cv_need_libssp" >&5
17880 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_need_libssp" >&6
17881
17882 if testscip-shell system . . test. "x$cf_cv_need_libssp" = xyes
17883 then
17884
17885 cf_add_libs="$LIBS"
17886 # reverse order
17887 cf_add_0lib=
17888 for cf_add_1lib in -lssp; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17889 # filter duplicates
17890 for cf_add_1lib in $cf_add_0lib; do
17891 for cf_add_2lib in $cf_add_libs; do
17892 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
17893 cf_add_1lib=
17894 break
17895 fi
17896 done
17897 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17898 done
17899 LIBS="$cf_add_libs"
17900
17901 fi
17902
17903 ;;
17904 (*)
17905
17906 cf_save_libs="$LIBS"
17907 echoscip-shell system . . echo. "$as_me:17907: checking for clock_gettime" >&5
17908 echoscip-shell system . . echo. $ECHO_N "checking for clock_gettime... $ECHO_C" >&6
17909 if testscip-shell system . . test. "${ac_cv_func_clock_gettime+set}" = set; then
17910 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
17911 else
17912 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
17913 #line 17913 "configure"
17914 #include "confdefs.h"
17915 #define clock_gettime autoconf_temporary
17916 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17917 #undef clock_gettime
17918
17919 #ifdef __cplusplus
17920 extern "C"
17921 #endif
17922
17923 /* We use char because int might match the return type of a gcc2
17924 builtin and then its argument prototype would still apply. */
17925 char clock_gettime (void);
17926
17927 int
17928 main (void)
17929 {
17930
17931 /* The GNU C library defines stubs for functions which it implements
17932 to always fail with ENOSYS. Some functions are actually named
17933 something starting with __ and the normal name is an alias. */
17934 #if defined (__stub_clock_gettime) || defined (__stub___clock_gettime)
17935 #error found stub for clock_gettime
17936 #endif
17937
17938 return clock_gettime ();
17939 ;
17940 return 0;
17941 }
17942 _ACEOF
17943 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
17944 if { (eval echo "$as_me:17944: \"$ac_link\"") >&5
17945 (eval $ac_link) 2>&5
17946 ac_status=$?
17947 echoscip-shell system . . echo. "$as_me:17947: \$? = $ac_status" >&5
17948 (exit "$ac_status"); } &&
17949 { ac_try='test -s "conftest$ac_exeext"'
17950 { (eval echo "$as_me:17950: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17952 ac_status=$?
17953 echoscip-shell system . . echo. "$as_me:17953: \$? = $ac_status" >&5
17954 (exit "$ac_status"); }; }; then
17955 ac_cv_func_clock_gettime=yes
17956 else
17957 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
17958 catscip-shell system . . cat. "conftest.$ac_ext" >&5
17959 ac_cv_func_clock_gettime=no
17960 fi
17961 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17962 fi
17963 echoscip-shell system . . echo. "$as_me:17963: result: $ac_cv_func_clock_gettime" >&5
17964 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_func_clock_gettime" >&6
17965 if testscip-shell system . . test. "$ac_cv_func_clock_gettime" = yes; then
17966 cf_cv_test_clock_gettime=yes
17967 else
17968 echoscip-shell system . . echo. "$as_me:17968: checking for clock_gettime in -lrt" >&5
17969 echoscip-shell system . . echo. $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
17970 if testscip-shell system . . test. "${ac_cv_lib_rt_clock_gettime+set}" = set; then
17971 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
17972 else
17973 ac_check_lib_save_LIBS=$LIBS
17974 LIBS="-lrt $LIBS"
17975 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
17976 #line 17976 "configure"
17977 #include "confdefs.h"
17978
17979 /* Override any gcc2 internal prototype to avoid an error. */
17980 #ifdef __cplusplus
17981 extern "C"
17982 #endif
17983 /* We use char because int might match the return type of a gcc2
17984 builtin and then its argument prototype would still apply. */
17985 char clock_gettime (void);
17986 int
17987 main (void)
17988 {
17989 clock_gettime ();
17990 ;
17991 return 0;
17992 }
17993 _ACEOF
17994 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
17995 if { (eval echo "$as_me:17995: \"$ac_link\"") >&5
17996 (eval $ac_link) 2>&5
17997 ac_status=$?
17998 echoscip-shell system . . echo. "$as_me:17998: \$? = $ac_status" >&5
17999 (exit "$ac_status"); } &&
18000 { ac_try='test -s "conftest$ac_exeext"'
18001 { (eval echo "$as_me:18001: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18003 ac_status=$?
18004 echoscip-shell system . . echo. "$as_me:18004: \$? = $ac_status" >&5
18005 (exit "$ac_status"); }; }; then
18006 ac_cv_lib_rt_clock_gettime=yes
18007 else
18008 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
18009 catscip-shell system . . cat. "conftest.$ac_ext" >&5
18010 ac_cv_lib_rt_clock_gettime=no
18011 fi
18012 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18013 LIBS=$ac_check_lib_save_LIBS
18014 fi
18015 echoscip-shell system . . echo. "$as_me:18015: result: $ac_cv_lib_rt_clock_gettime" >&5
18016 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
18017 if testscip-shell system . . test. "$ac_cv_lib_rt_clock_gettime" = yes; then
18018 LIBS="-lrt $LIBS"
18019 cf_cv_test_clock_gettime=yes
18020 else
18021 cf_cv_test_clock_gettime=no
18022 fi
18023
18024 fi
18025
18026 if testscip-shell system . . test. "$cf_cv_test_clock_gettime" = yes ; then
18027 echoscip-shell system . . echo. "$as_me:18027: checking if clock_gettime links" >&5
18028 echoscip-shell system . . echo. $ECHO_N "checking if clock_gettime links... $ECHO_C" >&6
18029 if testscip-shell system . . test. "${cf_cv_func_clock_gettime+set}" = set; then
18030 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
18031 else
18032
18033 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
18034 #line 18034 "configure"
18035 #include "confdefs.h"
18036
18037 $ac_includes_default
18038 #include <time.h>
18039
18040 int
18041 main (void)
18042 {
18043 struct timespec ts;
18044 int rc = clock_gettime(CLOCK_REALTIME, &ts)
18045 + clock_gettime(CLOCK_MONOTONIC, &ts);
18046 (void) rc; (void)ts
18047 ;
18048 return 0;
18049 }
18050 _ACEOF
18051 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
18052 if { (eval echo "$as_me:18052: \"$ac_link\"") >&5
18053 (eval $ac_link) 2>&5
18054 ac_status=$?
18055 echoscip-shell system . . echo. "$as_me:18055: \$? = $ac_status" >&5
18056 (exit "$ac_status"); } &&
18057 { ac_try='test -s "conftest$ac_exeext"'
18058 { (eval echo "$as_me:18058: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18060 ac_status=$?
18061 echoscip-shell system . . echo. "$as_me:18061: \$? = $ac_status" >&5
18062 (exit "$ac_status"); }; }; then
18063 cf_cv_func_clock_gettime=yes
18064 else
18065 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
18066 catscip-shell system . . cat. "conftest.$ac_ext" >&5
18067 cf_cv_func_clock_gettime=no
18068 fi
18069 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18070
18071 fi
18072 echoscip-shell system . . echo. "$as_me:18072: result: $cf_cv_func_clock_gettime" >&5
18073 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_func_clock_gettime" >&6
18074 else
18075 cf_cv_func_clock_gettime=no
18076 fi
18077
18078 if testscip-shell system . . test. "$cf_cv_func_clock_gettime" = yes
18079 then
18080
18081 catscip-shell system . . cat. >>confdefs.h <<\EOF
18082 #define HAVE_CLOCK_GETTIME 1
18083 EOF
18084
18085 else
18086 echoscip-shell system . . echo. "$as_me:18086: checking for gettimeofday" >&5
18087 echoscip-shell system . . echo. $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
18088 if testscip-shell system . . test. "${ac_cv_func_gettimeofday+set}" = set; then
18089 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
18090 else
18091 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
18092 #line 18092 "configure"
18093 #include "confdefs.h"
18094 #define gettimeofday autoconf_temporary
18095 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18096 #undef gettimeofday
18097
18098 #ifdef __cplusplus
18099 extern "C"
18100 #endif
18101
18102 /* We use char because int might match the return type of a gcc2
18103 builtin and then its argument prototype would still apply. */
18104 char gettimeofday (void);
18105
18106 int
18107 main (void)
18108 {
18109
18110 /* The GNU C library defines stubs for functions which it implements
18111 to always fail with ENOSYS. Some functions are actually named
18112 something starting with __ and the normal name is an alias. */
18113 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
18114 #error found stub for gettimeofday
18115 #endif
18116
18117 return gettimeofday ();
18118 ;
18119 return 0;
18120 }
18121 _ACEOF
18122 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
18123 if { (eval echo "$as_me:18123: \"$ac_link\"") >&5
18124 (eval $ac_link) 2>&5
18125 ac_status=$?
18126 echoscip-shell system . . echo. "$as_me:18126: \$? = $ac_status" >&5
18127 (exit "$ac_status"); } &&
18128 { ac_try='test -s "conftest$ac_exeext"'
18129 { (eval echo "$as_me:18129: \"$ac_try\"") >&5
18130 (eval $ac_try) 2>&5
18131 ac_status=$?
18132 echoscip-shell system . . echo. "$as_me:18132: \$? = $ac_status" >&5
18133 (exit "$ac_status"); }; }; then
18134 ac_cv_func_gettimeofday=yes
18135 else
18136 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
18137 catscip-shell system . . cat. "conftest.$ac_ext" >&5
18138 ac_cv_func_gettimeofday=no
18139 fi
18140 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18141 fi
18142 echoscip-shell system . . echo. "$as_me:18142: result: $ac_cv_func_gettimeofday" >&5
18143 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_func_gettimeofday" >&6
18144 if testscip-shell system . . test. "$ac_cv_func_gettimeofday" = yes; then
18145
18146 catscip-shell system . . cat. >>confdefs.h <<\EOF
18147 #define HAVE_GETTIMEOFDAY 1
18148 EOF
18149
18150 else
18151
18152 echoscip-shell system . . echo. "$as_me:18152: checking for gettimeofday in -lbsd" >&5
18153 echoscip-shell system . . echo. $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
18154 if testscip-shell system . . test. "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
18155 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
18156 else
18157 ac_check_lib_save_LIBS=$LIBS
18158 LIBS="-lbsd $LIBS"
18159 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
18160 #line 18160 "configure"
18161 #include "confdefs.h"
18162
18163 /* Override any gcc2 internal prototype to avoid an error. */
18164 #ifdef __cplusplus
18165 extern "C"
18166 #endif
18167 /* We use char because int might match the return type of a gcc2
18168 builtin and then its argument prototype would still apply. */
18169 char gettimeofday (void);
18170 int
18171 main (void)
18172 {
18173 gettimeofday ();
18174 ;
18175 return 0;
18176 }
18177 _ACEOF
18178 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
18179 if { (eval echo "$as_me:18179: \"$ac_link\"") >&5
18180 (eval $ac_link) 2>&5
18181 ac_status=$?
18182 echoscip-shell system . . echo. "$as_me:18182: \$? = $ac_status" >&5
18183 (exit "$ac_status"); } &&
18184 { ac_try='test -s "conftest$ac_exeext"'
18185 { (eval echo "$as_me:18185: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18187 ac_status=$?
18188 echoscip-shell system . . echo. "$as_me:18188: \$? = $ac_status" >&5
18189 (exit "$ac_status"); }; }; then
18190 ac_cv_lib_bsd_gettimeofday=yes
18191 else
18192 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
18193 catscip-shell system . . cat. "conftest.$ac_ext" >&5
18194 ac_cv_lib_bsd_gettimeofday=no
18195 fi
18196 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18197 LIBS=$ac_check_lib_save_LIBS
18198 fi
18199 echoscip-shell system . . echo. "$as_me:18199: result: $ac_cv_lib_bsd_gettimeofday" >&5
18200 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
18201 if testscip-shell system . . test. "$ac_cv_lib_bsd_gettimeofday" = yes; then
18202
18203 catscip-shell system . . cat. >>confdefs.h <<\EOF
18204 #define HAVE_GETTIMEOFDAY 1
18205 EOF
18206
18207 cf_add_libs="$LIBS"
18208 # reverse order
18209 cf_add_0lib=
18210 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18211 # filter duplicates
18212 for cf_add_1lib in $cf_add_0lib; do
18213 for cf_add_2lib in $cf_add_libs; do
18214 if testscip-shell system . . test. "x$cf_add_1lib" = "x$cf_add_2lib"; then
18215 cf_add_1lib=
18216 break
18217 fi
18218 done
18219 testscip-shell system . . test. -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18220 done
18221 LIBS="$cf_add_libs"
18222
18223 fi
18224
18225 fi
18226 fi
18227
18228 ;;
18229 esac
18230
18231 ### Checks for header files.
18232 echoscip-shell system . . echo. "$as_me:18232: checking for signed char" >&5
18233 echoscip-shell system . . echo. $ECHO_N "checking for signed char... $ECHO_C" >&6
18234 if testscip-shell system . . test. "${ac_cv_type_signed_char+set}" = set; then
18235 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
18236 else
18237 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
18238 #line 18238 "configure"
18239 #include "confdefs.h"
18240 $ac_includes_default
18241 int
18242 main (void)
18243 {
18244 if ((signed char *) 0)
18245 return 0;
18246 if (sizeof (signed char))
18247 return 0;
18248 ;
18249 return 0;
18250 }
18251 _ACEOF
18252 rmscip-shell system . . rm. -f "conftest.$ac_objext"
18253 if { (eval echo "$as_me:18253: \"$ac_compile\"") >&5
18254 (eval $ac_compile) 2>&5
18255 ac_status=$?
18256 echoscip-shell system . . echo. "$as_me:18256: \$? = $ac_status" >&5
18257 (exit "$ac_status"); } &&
18258 { ac_try='test -s "conftest.$ac_objext"'
18259 { (eval echo "$as_me:18259: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18261 ac_status=$?
18262 echoscip-shell system . . echo. "$as_me:18262: \$? = $ac_status" >&5
18263 (exit "$ac_status"); }; }; then
18264 ac_cv_type_signed_char=yes
18265 else
18266 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
18267 catscip-shell system . . cat. "conftest.$ac_ext" >&5
18268 ac_cv_type_signed_char=no
18269 fi
18270 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
18271 fi
18272 echoscip-shell system . . echo. "$as_me:18272: result: $ac_cv_type_signed_char" >&5
18273 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_type_signed_char" >&6
18274
18275 echoscip-shell system . . echo. "$as_me:18275: checking size of signed char" >&5
18276 echoscip-shell system . . echo. $ECHO_N "checking size of signed char... $ECHO_C" >&6
18277 if testscip-shell system . . test. "${ac_cv_sizeof_signed_char+set}" = set; then
18278 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
18279 else
18280 if testscip-shell system . . test. "$ac_cv_type_signed_char" = yes; then
18281 if testscip-shell system . . test. "$cross_compiling" = yes; then
18282 # Depending upon the size, compute the lo and hi bounds.
18283 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
18284 #line 18284 "configure"
18285 #include "confdefs.h"
18286 $ac_includes_default
18287 int
18288 main (void)
18289 {
18290 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]; (void)_array_;
18291 ;
18292 return 0;
18293 }
18294 _ACEOF
18295 rmscip-shell system . . rm. -f "conftest.$ac_objext"
18296 if { (eval echo "$as_me:18296: \"$ac_compile\"") >&5
18297 (eval $ac_compile) 2>&5
18298 ac_status=$?
18299 echoscip-shell system . . echo. "$as_me:18299: \$? = $ac_status" >&5
18300 (exit "$ac_status"); } &&
18301 { ac_try='test -s "conftest.$ac_objext"'
18302 { (eval echo "$as_me:18302: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18304 ac_status=$?
18305 echoscip-shell system . . echo. "$as_me:18305: \$? = $ac_status" >&5
18306 (exit "$ac_status"); }; }; then
18307 ac_lo=0 ac_mid=0
18308 while :; do
18309 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
18310 #line 18310 "configure"
18311 #include "confdefs.h"
18312 $ac_includes_default
18313 int
18314 main (void)
18315 {
18316 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]; (void)_array_;
18317 ;
18318 return 0;
18319 }
18320 _ACEOF
18321 rmscip-shell system . . rm. -f "conftest.$ac_objext"
18322 if { (eval echo "$as_me:18322: \"$ac_compile\"") >&5
18323 (eval $ac_compile) 2>&5
18324 ac_status=$?
18325 echoscip-shell system . . echo. "$as_me:18325: \$? = $ac_status" >&5
18326 (exit "$ac_status"); } &&
18327 { ac_try='test -s "conftest.$ac_objext"'
18328 { (eval echo "$as_me:18328: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18330 ac_status=$?
18331 echoscip-shell system . . echo. "$as_me:18331: \$? = $ac_status" >&5
18332 (exit "$ac_status"); }; }; then
18333 ac_hi=$ac_mid; break
18334 else
18335 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
18336 catscip-shell system . . cat. "conftest.$ac_ext" >&5
18337 ac_lo=`exprscip-shell system . . expr. "$ac_mid" + 1`; ac_mid=`exprscip-shell system . . expr. 2 '*' "$ac_mid" + 1`
18338 fi
18339 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
18340 done
18341 else
18342 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
18343 catscip-shell system . . cat. "conftest.$ac_ext" >&5
18344 ac_hi=-1 ac_mid=-1
18345 while :; do
18346 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
18347 #line 18347 "configure"
18348 #include "confdefs.h"
18349 $ac_includes_default
18350 int
18351 main (void)
18352 {
18353 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]; (void)_array_;
18354 ;
18355 return 0;
18356 }
18357 _ACEOF
18358 rmscip-shell system . . rm. -f "conftest.$ac_objext"
18359 if { (eval echo "$as_me:18359: \"$ac_compile\"") >&5
18360 (eval $ac_compile) 2>&5
18361 ac_status=$?
18362 echoscip-shell system . . echo. "$as_me:18362: \$? = $ac_status" >&5
18363 (exit "$ac_status"); } &&
18364 { ac_try='test -s "conftest.$ac_objext"'
18365 { (eval echo "$as_me:18365: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18367 ac_status=$?
18368 echoscip-shell system . . echo. "$as_me:18368: \$? = $ac_status" >&5
18369 (exit "$ac_status"); }; }; then
18370 ac_lo=$ac_mid; break
18371 else
18372 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
18373 catscip-shell system . . cat. "conftest.$ac_ext" >&5
18374 ac_hi=`exprscip-shell system . . expr. "$ac_mid" - 1`; ac_mid=`exprscip-shell system . . expr. 2 '*' "$ac_mid"`
18375 fi
18376 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
18377 done
18378 fi
18379 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
18380 # Binary search between lo and hi bounds.
18381 while testscip-shell system . . test. "x$ac_lo" != "x$ac_hi"; do
18382 ac_mid=`exprscip-shell system . . expr. '(' "$ac_hi" - "$ac_lo" ')' /scip-shell filesystem . . `/`. 2 + "$ac_lo"`
18383 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
18384 #line 18384 "configure"
18385 #include "confdefs.h"
18386 $ac_includes_default
18387 int
18388 main (void)
18389 {
18390 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]; (void)_array_;
18391 ;
18392 return 0;
18393 }
18394 _ACEOF
18395 rmscip-shell system . . rm. -f "conftest.$ac_objext"
18396 if { (eval echo "$as_me:18396: \"$ac_compile\"") >&5
18397 (eval $ac_compile) 2>&5
18398 ac_status=$?
18399 echoscip-shell system . . echo. "$as_me:18399: \$? = $ac_status" >&5
18400 (exit "$ac_status"); } &&
18401 { ac_try='test -s "conftest.$ac_objext"'
18402 { (eval echo "$as_me:18402: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18404 ac_status=$?
18405 echoscip-shell system . . echo. "$as_me:18405: \$? = $ac_status" >&5
18406 (exit "$ac_status"); }; }; then
18407 ac_hi=$ac_mid
18408 else
18409 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
18410 catscip-shell system . . cat. "conftest.$ac_ext" >&5
18411 ac_lo=`exprscip-shell system . . expr. "$ac_mid" + 1`
18412 fi
18413 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
18414 done
18415 ac_cv_sizeof_signed_char=$ac_lo
18416 else
18417 if testscip-shell system . . test. "$cross_compiling" = yes; then
18418 { { echoscip-shell system . . echo. "$as_me:18418: error: cannot run test program while cross compiling" >&5
18419 echoscip-shell system . . echo. "$as_me: error: cannot run test program while cross compiling" >&2;}
18420 { (exit 1); exit 1; }; }
18421 else
18422 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
18423 #line 18423 "configure"
18424 #include "confdefs.h"
18425 $ac_includes_default
18426 int
18427 main (void)
18428 {
18429 FILE *f = fopen ("conftest.val", "w");
18430 if (!f)
18431 $ac_main_return (1);
18432 fprintf (f, "%ld", (long)(sizeof (signed char)));
18433 fclose (f);
18434 ;
18435 return 0;
18436 }
18437 _ACEOF
18438 rmscip-shell system . . rm. -f "conftest$ac_exeext"
18439 if { (eval echo "$as_me:18439: \"$ac_link\"") >&5
18440 (eval $ac_link) 2>&5
18441 ac_status=$?
18442 echoscip-shell system . . echo. "$as_me:18442: \$? = $ac_status" >&5
18443 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
18444 { (eval echo "$as_me:18444: \"$ac_try\"") >&5
18445 (eval $ac_try) 2>&5
18446 ac_status=$?
18447 echoscip-shell system . . echo. "$as_me:18447: \$? = $ac_status" >&5
18448 (exit "$ac_status"); }; }; then
18449 ac_cv_sizeof_signed_char=`catscip-shell system . . cat. conftest.val`
18450 else
18451 echoscip-shell system . . echo. "$as_me: program exited with status $ac_status" >&5
18452 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
18453 catscip-shell system . . cat. "conftest.$ac_ext" >&5
18454 fi
18455 rmscip-shell system . . rm. -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
18456 fi
18457 fi
18458 rmscip-shell system . . rm. -f conftest.val
18459 else
18460 ac_cv_sizeof_signed_char=0
18461 fi
18462 fi
18463 echoscip-shell system . . echo. "$as_me:18463: result: $ac_cv_sizeof_signed_char" >&5
18464 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
18465 catscip-shell system . . cat. >>confdefs.h <<EOF
18466 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
18467 EOF
18468
18469 ac_header_dirent=no
18470 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18471 as_ac_Header=`echoscip-shell system . . echo. "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18472 echoscip-shell system . . echo. "$as_me:18472: checking for $ac_hdr that defines DIR" >&5
18473 echoscip-shell system . . echo. $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
18474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18475 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
18476 else
18477 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
18478 #line 18478 "configure"
18479 #include "confdefs.h"
18480 #include <sys/types.h>
18481 #include <$ac_hdr>
18482
18483 int
18484 main (void)
18485 {
18486 if ((DIR *) 0)
18487 return 0;
18488 ;
18489 return 0;
18490 }
18491 _ACEOF
18492 rmscip-shell system . . rm. -f "conftest.$ac_objext"
18493 if { (eval echo "$as_me:18493: \"$ac_compile\"") >&5
18494 (eval $ac_compile) 2>&5
18495 ac_status=$?
18496 echoscip-shell system . . echo. "$as_me:18496: \$? = $ac_status" >&5
18497 (exit "$ac_status"); } &&
18498 { ac_try='test -s "conftest.$ac_objext"'
18499 { (eval echo "$as_me:18499: \"$ac_try\"") >&5
18500 (eval $ac_try) 2>&5
18501 ac_status=$?
18502 echoscip-shell system . . echo. "$as_me:18502: \$? = $ac_status" >&5
18503 (exit "$ac_status"); }; }; then
18504 eval "$as_ac_Header=yes"
18505 else
18506 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
18507 catscip-shell system . . cat. "conftest.$ac_ext" >&5
18508 eval "$as_ac_Header=no"
18509 fi
18510 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
18511 fi
18512 echoscip-shell system . . echo. "$as_me:18512: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
18513 echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
18514 if testscip-shell system . . test. "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
18515 catscip-shell system . . cat. >>confdefs.h <<EOF
18516 #define `echoscip-shell system . . echo. "HAVE_$ac_hdr" | $as_tr_cpp` 1
18517 EOF
18518
18519 ac_header_dirent=$ac_hdr; break
18520 fi
18521
18522 done
18523 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18524 if testscip-shell system . . test. $ac_header_dirent = dirent.h; then
18525 echoscip-shell system . . echo. "$as_me:18525: checking for opendir in -ldir" >&5
18526 echoscip-shell system . . echo. $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
18527 if testscip-shell system . . test. "${ac_cv_lib_dir_opendir+set}" = set; then
18528 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
18529 else
18530 ac_check_lib_save_LIBS=$LIBS
18531 LIBS="-ldir $LIBS"
18532 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
18533 #line 18533 "configure"
18534 #include "confdefs.h"
18535
18536 /* Override any gcc2 internal prototype to avoid an error. */
18537 #ifdef __cplusplus
18538 extern "C"
18539 #endif
18540 /* We use char because int might match the return type of a gcc2
18541 builtin and then its argument prototype would still apply. */
18542 char opendir (void);
18543 int
18544 main (void)
18545 {
18546 opendir ();
18547 ;
18548 return 0;
18549 }
18550 _ACEOF
18551 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
18552 if { (eval echo "$as_me:18552: \"$ac_link\"") >&5
18553 (eval $ac_link) 2>&5
18554 ac_status=$?
18555 echoscip-shell system . . echo. "$as_me:18555: \$? = $ac_status" >&5
18556 (exit "$ac_status"); } &&
18557 { ac_try='test -s "conftest$ac_exeext"'
18558 { (eval echo "$as_me:18558: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18560 ac_status=$?
18561 echoscip-shell system . . echo. "$as_me:18561: \$? = $ac_status" >&5
18562 (exit "$ac_status"); }; }; then
18563 ac_cv_lib_dir_opendir=yes
18564 else
18565 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
18566 catscip-shell system . . cat. "conftest.$ac_ext" >&5
18567 ac_cv_lib_dir_opendir=no
18568 fi
18569 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18570 LIBS=$ac_check_lib_save_LIBS
18571 fi
18572 echoscip-shell system . . echo. "$as_me:18572: result: $ac_cv_lib_dir_opendir" >&5
18573 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
18574 if testscip-shell system . . test. "$ac_cv_lib_dir_opendir" = yes; then
18575 LIBS="$LIBS -ldir"
18576 fi
18577
18578 else
18579 echoscip-shell system . . echo. "$as_me:18579: checking for opendir in -lx" >&5
18580 echoscip-shell system . . echo. $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
18581 if testscip-shell system . . test. "${ac_cv_lib_x_opendir+set}" = set; then
18582 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584 ac_check_lib_save_LIBS=$LIBS
18585 LIBS="-lx $LIBS"
18586 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
18587 #line 18587 "configure"
18588 #include "confdefs.h"
18589
18590 /* Override any gcc2 internal prototype to avoid an error. */
18591 #ifdef __cplusplus
18592 extern "C"
18593 #endif
18594 /* We use char because int might match the return type of a gcc2
18595 builtin and then its argument prototype would still apply. */
18596 char opendir (void);
18597 int
18598 main (void)
18599 {
18600 opendir ();
18601 ;
18602 return 0;
18603 }
18604 _ACEOF
18605 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
18606 if { (eval echo "$as_me:18606: \"$ac_link\"") >&5
18607 (eval $ac_link) 2>&5
18608 ac_status=$?
18609 echoscip-shell system . . echo. "$as_me:18609: \$? = $ac_status" >&5
18610 (exit "$ac_status"); } &&
18611 { ac_try='test -s "conftest$ac_exeext"'
18612 { (eval echo "$as_me:18612: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18614 ac_status=$?
18615 echoscip-shell system . . echo. "$as_me:18615: \$? = $ac_status" >&5
18616 (exit "$ac_status"); }; }; then
18617 ac_cv_lib_x_opendir=yes
18618 else
18619 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
18620 catscip-shell system . . cat. "conftest.$ac_ext" >&5
18621 ac_cv_lib_x_opendir=no
18622 fi
18623 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18624 LIBS=$ac_check_lib_save_LIBS
18625 fi
18626 echoscip-shell system . . echo. "$as_me:18626: result: $ac_cv_lib_x_opendir" >&5
18627 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_x_opendir" >&6
18628 if testscip-shell system . . test. "$ac_cv_lib_x_opendir" = yes; then
18629 LIBS="$LIBS -lx"
18630 fi
18631
18632 fi
18633
18634 echoscip-shell system . . echo. "$as_me:18634: checking whether time.h and sys/time.h may both be included" >&5
18635 echoscip-shell system . . echo. $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
18636 if testscip-shell system . . test. "${ac_cv_header_time+set}" = set; then
18637 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
18638 else
18639 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
18640 #line 18640 "configure"
18641 #include "confdefs.h"
18642 #include <sys/types.h>
18643 #include <sys/time.h>
18644 #include <time.h>
18645
18646 int
18647 main (void)
18648 {
18649 if ((struct tm *) 0)
18650 return 0;
18651 ;
18652 return 0;
18653 }
18654 _ACEOF
18655 rmscip-shell system . . rm. -f "conftest.$ac_objext"
18656 if { (eval echo "$as_me:18656: \"$ac_compile\"") >&5
18657 (eval $ac_compile) 2>&5
18658 ac_status=$?
18659 echoscip-shell system . . echo. "$as_me:18659: \$? = $ac_status" >&5
18660 (exit "$ac_status"); } &&
18661 { ac_try='test -s "conftest.$ac_objext"'
18662 { (eval echo "$as_me:18662: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18664 ac_status=$?
18665 echoscip-shell system . . echo. "$as_me:18665: \$? = $ac_status" >&5
18666 (exit "$ac_status"); }; }; then
18667 ac_cv_header_time=yes
18668 else
18669 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
18670 catscip-shell system . . cat. "conftest.$ac_ext" >&5
18671 ac_cv_header_time=no
18672 fi
18673 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
18674 fi
18675 echoscip-shell system . . echo. "$as_me:18675: result: $ac_cv_header_time" >&5
18676 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_header_time" >&6
18677 if testscip-shell system . . test. $ac_cv_header_time = yes; then
18678
18679 catscip-shell system . . cat. >>confdefs.h <<\EOF
18680 #define TIME_WITH_SYS_TIME 1
18681 EOF
18682
18683 fi
18684
18685 ### checks for compiler characteristics
18686 ac_ext=c
18687 ac_cpp='$CPP $CPPFLAGS'
18688 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
18689 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
18690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18691 ac_main_return="return"
18692
18693 echoscip-shell system . . echo. "$as_me:18693: checking for an ANSI C-conforming const" >&5
18694 echoscip-shell system . . echo. $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18695 if testscip-shell system . . test. "${ac_cv_c_const+set}" = set; then
18696 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
18697 else
18698 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
18699 #line 18699 "configure"
18700 #include "confdefs.h"
18701
18702 int
18703 main (void)
18704 {
18705 /* FIXME: Include the comments suggested by Paul. */
18706 #ifndef __cplusplus
18707 /* Ultrix mips cc rejects this. */
18708 typedef int charset[2];
18709 const charset x;
18710 /* SunOS 4.1.1 cc rejects this. */
18711 char const *const *ccp;
18712 char **p;
18713 /* NEC SVR4.0.2 mips cc rejects this. */
18714 struct point {int x, y;};
18715 static struct point const zero = {0,0};
18716 /* AIX XL C 1.02.0.0 rejects this.
18717 It does not let you subtract one const X* pointer from another in
18718 an arm of an if-expression whose if-part is not a constant
18719 expression */
18720 const char *g = "string";
18721 ccp = &g + (g ? g-g : 0);
18722 /* HPUX 7.0 cc rejects these. */
18723 ++ccp;
18724 p = (char**) ccp;
18725 ccp = (char const *const *) p;
18726 { /* SCO 3.2v4 cc rejects this. */
18727 static char dummy[20]; char *t = dummy;
18728 char const *s = 0 ? (char *) dummy : (char const *) 0;
18729
18730 *t++ = 0;
18731 (void)s; (void)x; (void)zero;
18732 }
18733 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18734 int x2[] = {25, 17};
18735 const int *foo = &x2[0];
18736 ++foo;
18737 (void)foo;
18738 }
18739 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18740 typedef const int *iptr;
18741 iptr p2 = 0;
18742 ++p2;
18743 (void)p2;
18744 }
18745 { /* AIX XL C 1.02.0.0 rejects this saying
18746 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18747 struct s { int j; const int *ap[3]; };
18748 static struct s foo;
18749 struct s *b = &foo; b->j = 5;
18750 }
18751 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18752 const int foo = 10;
18753 (void)foo;
18754 }
18755 #endif
18756
18757 ;
18758 return 0;
18759 }
18760 _ACEOF
18761 rmscip-shell system . . rm. -f "conftest.$ac_objext"
18762 if { (eval echo "$as_me:18762: \"$ac_compile\"") >&5
18763 (eval $ac_compile) 2>&5
18764 ac_status=$?
18765 echoscip-shell system . . echo. "$as_me:18765: \$? = $ac_status" >&5
18766 (exit "$ac_status"); } &&
18767 { ac_try='test -s "conftest.$ac_objext"'
18768 { (eval echo "$as_me:18768: \"$ac_try\"") >&5
18769 (eval $ac_try) 2>&5
18770 ac_status=$?
18771 echoscip-shell system . . echo. "$as_me:18771: \$? = $ac_status" >&5
18772 (exit "$ac_status"); }; }; then
18773 ac_cv_c_const=yes
18774 else
18775 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
18776 catscip-shell system . . cat. "conftest.$ac_ext" >&5
18777 ac_cv_c_const=no
18778 fi
18779 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest.$ac_ext"
18780 fi
18781 echoscip-shell system . . echo. "$as_me:18781: result: $ac_cv_c_const" >&5
18782 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_c_const" >&6
18783 if testscip-shell system . . test. $ac_cv_c_const = no; then
18784
18785 catscip-shell system . . cat. >>confdefs.h <<\EOF
18786 #define const
18787 EOF
18788
18789 fi
18790
18791 ### Checks for external-data
18792
18793 echoscip-shell system . . echo. "$as_me:18793: checking if data-only library module links" >&5
18794 echoscip-shell system . . echo. $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
18795 if testscip-shell system . . test. "${cf_cv_link_dataonly+set}" = set; then
18796 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
18797 else
18798
18799 rmscip-shell system . . rm. -f conftest.a
18800 catscip-shell system . . cat. >conftest.$ac_ext <<EOF
18801 #line 18801 "configure"
18802 int testdata[3] = { 123, 456, 789 };
18803 EOF
18804 if { (eval echo "$as_me:18804: \"$ac_compile\"") >&5
18805 (eval $ac_compile) 2>&5
18806 ac_status=$?
18807 echoscip-shell system . . echo. "$as_me:18807: \$? = $ac_status" >&5
18808 (exit "$ac_status"); } ; then
18809 mvscip-shell system . . mv. conftest.$OBJEXT data.$OBJEXT && \
18810 ( $AR $ARFLAGS conftest.a data.$OBJEXT ) 2>&5 1>/dev/nullscip-shell filesystem . . `/dev/null`.
18811 fi
18812 rmscip-shell system . . rm. -f conftest.$ac_ext data.$OBJEXT
18813 catscip-shell system . . cat. >conftest.$ac_ext <<EOF
18814 #line 18814 "configure"
18815 extern int testfunc(void);
18816 #if defined(NeXT)
18817 int testfunc(void)
18818 {
18819 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
18820 }
18821 #else
18822 extern int testdata[3];
18823 int testfunc(void)
18824 {
18825 return testdata[0] == 123
18826 && testdata[1] == 456
18827 && testdata[2] == 789;
18828 }
18829 #endif
18830 EOF
18831 if { (eval echo "$as_me:18831: \"$ac_compile\"") >&5
18832 (eval $ac_compile) 2>&5
18833 ac_status=$?
18834 echoscip-shell system . . echo. "$as_me:18834: \$? = $ac_status" >&5
18835 (exit "$ac_status"); }; then
18836 mvscip-shell system . . mv. conftest.$OBJEXT func.$OBJEXT && \
18837 ( $AR $ARFLAGS conftest.a func.$OBJEXT ) 2>&5 1>/dev/nullscip-shell filesystem . . `/dev/null`.
18838 fi
18839 rmscip-shell system . . rm. -f conftest.$ac_ext func.$OBJEXT
18840 ( eval $RANLIB conftest.a ) 2>&5 >/dev/nullscip-shell filesystem . . `/dev/null`.
18841 cf_saveLIBS="$LIBS"
18842 LIBS="conftest.a $LIBS"
18843 if testscip-shell system . . test. "$cross_compiling" = yes; then
18844 cf_cv_link_dataonly=unknown
18845 else
18846 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
18847 #line 18847 "configure"
18848 #include "confdefs.h"
18849
18850 extern int testfunc(void);
18851 int main(void)
18852 {
18853 ${cf_cv_main_return:-return} (!testfunc());
18854 }
18855
18856 _ACEOF
18857 rmscip-shell system . . rm. -f "conftest$ac_exeext"
18858 if { (eval echo "$as_me:18858: \"$ac_link\"") >&5
18859 (eval $ac_link) 2>&5
18860 ac_status=$?
18861 echoscip-shell system . . echo. "$as_me:18861: \$? = $ac_status" >&5
18862 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
18863 { (eval echo "$as_me:18863: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18865 ac_status=$?
18866 echoscip-shell system . . echo. "$as_me:18866: \$? = $ac_status" >&5
18867 (exit "$ac_status"); }; }; then
18868 cf_cv_link_dataonly=yes
18869 else
18870 echoscip-shell system . . echo. "$as_me: program exited with status $ac_status" >&5
18871 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
18872 catscip-shell system . . cat. "conftest.$ac_ext" >&5
18873 cf_cv_link_dataonly=no
18874 fi
18875 rmscip-shell system . . rm. -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
18876 fi
18877 LIBS="$cf_saveLIBS"
18878
18879 fi
18880
18881 echoscip-shell system . . echo. "$as_me:18881: result: $cf_cv_link_dataonly" >&5
18882 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_link_dataonly" >&6
18883
18884 if testscip-shell system . . test. "$cf_cv_link_dataonly" = no ; then
18885
18886 catscip-shell system . . cat. >>confdefs.h <<\EOF
18887 #define BROKEN_LINKER 1
18888 EOF
18889
18890 BROKEN_LINKER=1
18891 fi
18892
18893 ### Checks for library functions.
18894
18895 for ac_header in \
18896 unistd.h \
18897
18898 do
18899 as_ac_Header=`echoscip-shell system . . echo. "ac_cv_header_$ac_header" | $as_tr_sh`
18900 echoscip-shell system . . echo. "$as_me:18900: checking for $ac_header" >&5
18901 echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18903 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
18904 else
18905 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
18906 #line 18906 "configure"
18907 #include "confdefs.h"
18908 #include <$ac_header>
18909 _ACEOF
18910 if { (eval echo "$as_me:18910: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18911 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18912 ac_status=$?
18913 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18914 rmscip-shell system . . rm. -f conftest.er1
18915 catscip-shell system . . cat. conftest.err >&5
18916 echoscip-shell system . . echo. "$as_me:18916: \$? = $ac_status" >&5
18917 (exit "$ac_status"); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then
18918 if testscip-shell system . . test. -s conftest.err; then
18919 ac_cpp_err=$ac_c_preproc_warn_flag
18920 else
18921 ac_cpp_err=
18922 fi
18923 else
18924 ac_cpp_err=yes
18925 fi
18926 if testscip-shell system . . test. -z "$ac_cpp_err"; then
18927 eval "$as_ac_Header=yes"
18928 else
18929 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
18930 catscip-shell system . . cat. "conftest.$ac_ext" >&5
18931 eval "$as_ac_Header=no"
18932 fi
18933 rmscip-shell system . . rm. -f conftest.err "conftest.$ac_ext"
18934 fi
18935 echoscip-shell system . . echo. "$as_me:18935: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
18936 echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
18937 if testscip-shell system . . test. "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
18938 catscip-shell system . . cat. >>confdefs.h <<EOF
18939 #define `echoscip-shell system . . echo. "HAVE_$ac_header" | $as_tr_cpp` 1
18940 EOF
18941
18942 fi
18943 done
18944
18945 echoscip-shell system . . echo. "$as_me:18945: checking for working mkstemp" >&5
18946 echoscip-shell system . . echo. $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
18947 if testscip-shell system . . test. "${cf_cv_func_mkstemp+set}" = set; then
18948 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
18949 else
18950
18951 rmscip-shell system . . rm. -rf ./conftest*
18952 if testscip-shell system . . test. "$cross_compiling" = yes; then
18953 cf_cv_func_mkstemp=maybe
18954 else
18955 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
18956 #line 18956 "configure"
18957 #include "confdefs.h"
18958
18959 $ac_includes_default
18960
18961 int main(void)
18962 {
18963 static char tmpl[] = "conftestXXXXXX";
18964 char name[2][80];
18965 int n;
18966 int result = 0;
18967 int fd;
18968 struct stat sb;
18969
18970 umask(077);
18971 for (n = 0; n < 2; ++n) {
18972 strcpy(name[n], tmpl);
18973 if ((fd = mkstemp(name[n])) >= 0) {
18974 if (!strcmp(name[n], tmpl)
18975 || stat(name[n], &sb) != 0
18976 || (sb.st_mode & S_IFMT) != S_IFREG
18977 || (sb.st_mode & 077) != 0) {
18978 result = 1;
18979 }
18980 close(fd);
18981 }
18982 }
18983 if (result == 0
18984 && !strcmp(name[0], name[1]))
18985 result = 1;
18986 ${cf_cv_main_return:-return}(result);
18987 }
18988
18989 _ACEOF
18990 rmscip-shell system . . rm. -f "conftest$ac_exeext"
18991 if { (eval echo "$as_me:18991: \"$ac_link\"") >&5
18992 (eval $ac_link) 2>&5
18993 ac_status=$?
18994 echoscip-shell system . . echo. "$as_me:18994: \$? = $ac_status" >&5
18995 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
18996 { (eval echo "$as_me:18996: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18998 ac_status=$?
18999 echoscip-shell system . . echo. "$as_me:18999: \$? = $ac_status" >&5
19000 (exit "$ac_status"); }; }; then
19001 cf_cv_func_mkstemp=yes
19002
19003 else
19004 echoscip-shell system . . echo. "$as_me: program exited with status $ac_status" >&5
19005 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
19006 catscip-shell system . . cat. "conftest.$ac_ext" >&5
19007 cf_cv_func_mkstemp=no
19008
19009 fi
19010 rmscip-shell system . . rm. -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
19011 fi
19012
19013 fi
19014 echoscip-shell system . . echo. "$as_me:19014: result: $cf_cv_func_mkstemp" >&5
19015 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_func_mkstemp" >&6
19016 if testscip-shell system . . test. "x$cf_cv_func_mkstemp" = xmaybe ; then
19017 echoscip-shell system . . echo. "$as_me:19017: checking for mkstemp" >&5
19018 echoscip-shell system . . echo. $ECHO_N "checking for mkstemp... $ECHO_C" >&6
19019 if testscip-shell system . . test. "${ac_cv_func_mkstemp+set}" = set; then
19020 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
19021 else
19022 catscip-shell system . . cat. >"conftest.$ac_ext" <<_ACEOF
19023 #line 19023 "configure"
19024 #include "confdefs.h"
19025 #define mkstemp autoconf_temporary
19026 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19027 #undef mkstemp
19028
19029 #ifdef __cplusplus
19030 extern "C"
19031 #endif
19032
19033 /* We use char because int might match the return type of a gcc2
19034 builtin and then its argument prototype would still apply. */
19035 char mkstemp (void);
19036
19037 int
19038 main (void)
19039 {
19040
19041 /* The GNU C library defines stubs for functions which it implements
19042 to always fail with ENOSYS. Some functions are actually named
19043 something starting with __ and the normal name is an alias. */
19044 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
19045 #error found stub for mkstemp
19046 #endif
19047
19048 return mkstemp ();
19049 ;
19050 return 0;
19051 }
19052 _ACEOF
19053 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext"
19054 if { (eval echo "$as_me:19054: \"$ac_link\"") >&5
19055 (eval $ac_link) 2>&5
19056 ac_status=$?
19057 echoscip-shell system . . echo. "$as_me:19057: \$? = $ac_status" >&5
19058 (exit "$ac_status"); } &&
19059 { ac_try='test -s "conftest$ac_exeext"'
19060 { (eval echo "$as_me:19060: \"$ac_try\"") >&5
19061 (eval $ac_try) 2>&5
19062 ac_status=$?
19063 echoscip-shell system . . echo. "$as_me:19063: \$? = $ac_status" >&5
19064 (exit "$ac_status"); }; }; then
19065 ac_cv_func_mkstemp=yes
19066 else
19067 echoscip-shell system . . echo. "$as_me: failed program was:" >&5
19068 catscip-shell system . . cat. "conftest.$ac_ext" >&5
19069 ac_cv_func_mkstemp=no
19070 fi
19071 rmscip-shell system . . rm. -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19072 fi
19073 echoscip-shell system . . echo. "$as_me:19073: result: $ac_cv_func_mkstemp" >&5
19074 echoscip-shell system . . echo. "${ECHO_T}$ac_cv_func_mkstemp" >&6
19075
19076 fi
19077 if testscip-shell system . . test. "x$cf_cv_func_mkstemp" = xyes || testscip-shell system . . test. "x$ac_cv_func_mkstemp" = xyes ; then
19078
19079 catscip-shell system . . cat. >>confdefs.h <<\EOF
19080 #define HAVE_MKSTEMP 1
19081 EOF
19082
19083 fi
19084
19085 if testscip-shell system . . test. -z "$cf_user_CFLAGS" && testscip-shell system . . test. "$with_no_leaks" = no ; then
19086 CFLAGS=`echoscip-shell system . . echo. "${CFLAGS}" | sedscip-shell system . . sed. -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
19087 CXXFLAGS=`echoscip-shell system . . echo. "${CXXFLAGS}" | sedscip-shell system . . sed. -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
19088 fi
19089
19090 cf_with_ada=yes
19091 if testscip-shell system . . test. "$cf_with_ada" != "no" ; then
19092 if testscip-shell system . . test. "$cf_cv_prog_gnat_correct" = yes; then
19093
19094 echoscip-shell system . . echo. "$as_me:19094: checking optimization options for ADAFLAGS" >&5
19095 echoscip-shell system . . echo. $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
19096 case "$CFLAGS" in
19097 (*-g*)
19098
19099 ADAFLAGS="$ADAFLAGS -g"
19100
19101 ;;
19102 esac
19103 case "$CFLAGS" in
19104 (*-O*)
19105 cf_O_flag=`echoscip-shell system . . echo. "$CFLAGS" |sedscip-shell system . . sed. -e 's/^.*-O/-O/' -e 's/[ ].*//'`
19106
19107 ADAFLAGS="$ADAFLAGS $cf_O_flag"
19108
19109 ;;
19110 esac
19111 echoscip-shell system . . echo. "$as_me:19111: result: $ADAFLAGS" >&5
19112 echoscip-shell system . . echo. "${ECHO_T}$ADAFLAGS" >&6
19113
19114 echoscip-shell system . . echo. "$as_me:19114: checking if GNATPREP supports -T option" >&5
19115 echoscip-shell system . . echo. $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
19116 if testscip-shell system . . test. "${cf_cv_gnatprep_opt_t+set}" = set; then
19117 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
19118 else
19119
19120 cf_cv_gnatprep_opt_t=no
19121 gnatprep -T 2>/dev/nullscip-shell filesystem . . `/dev/null`. >/dev/nullscip-shell filesystem . . `/dev/null`. && cf_cv_gnatprep_opt_t=yes
19122
19123 fi
19124 echoscip-shell system . . echo. "$as_me:19124: result: $cf_cv_gnatprep_opt_t" >&5
19125 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
19126 testscip-shell system . . test. "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
19127
19128 echoscip-shell system . . echo. "$as_me:19128: checking if GNAT supports generics" >&5
19129 echoscip-shell system . . echo. $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
19130 case "$cf_cv_gnat_version" in
19131 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
19132 cf_gnat_generics=yes
19133 ;;
19134 (*)
19135 cf_gnat_generics=no
19136 ;;
19137 esac
19138 echoscip-shell system . . echo. "$as_me:19138: result: $cf_gnat_generics" >&5
19139 echoscip-shell system . . echo. "${ECHO_T}$cf_gnat_generics" >&6
19140
19141 if testscip-shell system . . test. "$cf_gnat_generics" = yes
19142 then
19143 cf_compile_generics=generics
19144 cf_generic_objects="\${GENOBJS}"
19145 else
19146 cf_compile_generics=
19147 cf_generic_objects=
19148 fi
19149
19150 echoscip-shell system . . echo. "$as_me:19150: checking if GNAT supports SIGINT" >&5
19151 echoscip-shell system . . echo. $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
19152 if testscip-shell system . . test. "${cf_cv_gnat_sigint+set}" = set; then
19153 echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6
19154 else
19155
19156 rmscip-shell system . . rm. -rf ./conftest* ./*~conftest*
19157 catscip-shell system . . cat. >>conftest.ads <<CF_EOF
19158 with Ada.Interrupts.Names;
19159
19160 package ConfTest is
19161
19162 pragma Warnings (Off); -- the next pragma exists since 3.11p
19163 pragma Unreserve_All_Interrupts;
19164 pragma Warnings (On);
19165
19166 protected Process is
19167 procedure Stop;
19168 function Continue return Boolean;
19169 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
19170 private
19171 Done : Boolean := False;
19172 end Process;
19173
19174 end ConfTest;
19175 CF_EOF
19176 catscip-shell system . . cat. >>conftest.adb <<CF_EOF
19177 package body ConfTest is
19178 protected body Process is
19179 procedure Stop is
19180 begin
19181 Done := True;
19182 end Stop;
19183 function Continue return Boolean is
19184 begin
19185 return not Done;
19186 end Continue;
19187 end Process;
19188 end ConfTest;
19189 CF_EOF
19190 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19191 cf_cv_gnat_sigint=yes
19192 else
19193 cf_cv_gnat_sigint=no
19194 fi
19195 rmscip-shell system . . rm. -rf ./conftest* ./*~conftest*
19196
19197 fi
19198 echoscip-shell system . . echo. "$as_me:19198: result: $cf_cv_gnat_sigint" >&5
19199 echoscip-shell system . . echo. "${ECHO_T}$cf_cv_gnat_sigint" >&6
19200
19201 if testscip-shell system . . test. "$cf_cv_gnat_sigint" = yes ; then
19202 USE_GNAT_SIGINT=""
19203 else
19204 USE_GNAT_SIGINT="#"
19205 fi
19206
19207 cf_gnat_libraries=no
19208 cf_gnat_projects=no
19209
19210 if testscip-shell system . . test. "$enable_gnat_projects" != no ; then
19211 echoscip-shell system . . echo. "$as_me:19211: checking if GNAT supports project files" >&5
19212 echoscip-shell system . . echo. $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
19213 case "$cf_cv_gnat_version" in
19214 (3.[0-9]*)
19215 ;;
19216 (*)
19217 case "$cf_cv_system_name" in
19218 (cygwin*|msys*)
19219 ;;
19220 (*)
19221 rmscip-shell system . . rm. -rf ./conftest* ./*~conftest*
19222 if mkdirscip-shell system . . mkdir. conftest.src conftest.bin conftest.lib
19223 then
19224 cd conftest.src
19225 rmscip-shell system . . rm. -rf ./conftest* ./*~conftest*
19226 catscip-shell system . . cat. >>library.gpr <<CF_EOF
19227 project Library is
19228 Kind := External ("LIB_KIND");
19229 for Library_Name use "ConfTest";
19230 for Object_Dir use ".";
19231 for Library_ALI_Dir use External("LIBRARY_DIR");
19232 for Library_Version use External ("SONAME");
19233 for Library_Kind use Kind;
19234 for Library_Dir use External("BUILD_DIR");
19235 Source_Dir := External ("SOURCE_DIR");
19236 for Source_Dirs use (Source_Dir);
19237 end Library;
19238 CF_EOF
19239 catscip-shell system . . cat. >>confpackage.ads <<CF_EOF
19240 package ConfPackage is
19241 procedure conftest;
19242 end ConfPackage;
19243 CF_EOF
19244 catscip-shell system . . cat. >>confpackage.adb <<CF_EOF
19245 with Text_IO;
19246 package body ConfPackage is
19247 procedure conftest is
19248 begin
19249 Text_IO.Put ("Hello World");
19250 Text_IO.New_Line;
19251 end conftest;
19252 end ConfPackage;
19253 CF_EOF
19254 if ( "$cf_ada_make" $ADAFLAGS \
19255 -Plibrary.gpr \
19256 -XBUILD_DIR="`cd ../conftest.bin;pwdscip-shell system . . pwd.`" \
19257 -XLIBRARY_DIR="`scip-shell system . . pwd.cd ../conftest.lib;pwd`" \
19258 -XSOURCE_DIR="`pwd`" \
19259 -XSONAME=libConfTest.so.1 \
19260 -XLIB_KIND=static 1>&5 2>&1 ) ; then
19261 cf_gnat_projects=yes
19262 fi
19263 cd ..
19264 fi
19265 if testscip-shell system . . test. -f conftest.lib/confpackage.ali
19266 then
19267 cf_gnat_libraries=yes
19268 fi
19269 rmscip-shell system . . rm. -rf ./conftest* ./*~conftest*
19270 ;;
19271 esac
19272 ;;
19273 esac
19274 echoscip-shell system . . echo. "$as_me:19274: result: $cf_gnat_projects" >&5
19275 echoscip-shell system . . echo. "${ECHO_T}$cf_gnat_projects" >&6
19276 fi # enable_gnat_projects
19277
19278 if testscip-shell system . . test. "$cf_gnat_projects" = yes
19279 then
19280 echoscip-shell system . . echo. "$as_me:19280: checking if GNAT supports libraries" >&5
19281 echoscip-shell system . . echo. $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
19282 echoscip-shell system . . echo. "$as_me:19282: result: $cf_gnat_libraries" >&5
19283 echoscip-shell system . . echo. "${ECHO_T}$cf_gnat_libraries" >&6
19284 fi
19285
19286 USE_OLD_MAKERULES=""
19287 USE_GNAT_PROJECTS="#"
19288 USE_GNAT_MAKE_GPR="#"
19289 USE_GNAT_GPRBUILD="#"
19290
19291 if testscip-shell system . . test. "$cf_gnat_projects" = yes
19292 then
19293 USE_OLD_MAKERULES="#"
19294 USE_GNAT_PROJECTS=""
19295 if testscip-shell system . . test. "$cf_cv_VERSION_GPRBUILD" != no
19296 then
19297 USE_GNAT_GPRBUILD=""
19298 elif testscip-shell system . . test. "$cf_cv_VERSION_GNATMAKE" != no
19299 then
19300 USE_GNAT_MAKE_GPR=""
19301 else
19302 { echoscip-shell system . . echo. "$as_me:19302: WARNING: use old makefile rules since tools are missing" >&5
19303 echoscip-shell system . . echo. "$as_me: WARNING: use old makefile rules since tools are missing" >&2;}
19304 fi
19305 fi
19306
19307 if testscip-shell system . . test. "$cf_gnat_libraries" = yes
19308 then
19309 USE_GNAT_LIBRARIES=""
19310 else
19311 USE_GNAT_LIBRARIES="#"
19312 fi
19313
19314 echoscip-shell system . . echo. "$as_me:19314: checking for Ada95 compiler" >&5
19315 echoscip-shell system . . echo. $ECHO_N "checking for Ada95 compiler... $ECHO_C" >&6
19316
19317 # Check whether --with-ada-compiler or --without-ada-compiler was given.
19318 if testscip-shell system . . test. "${with_ada_compiler+set}" = set; then
19319 withval="$with_ada_compiler"
19320 cf_ada_compiler=$withval
19321 else
19322 cf_ada_compiler=gnatmake
19323 fi;
19324
19325 echoscip-shell system . . echo. "$as_me:19325: result: $cf_ada_compiler" >&5
19326 echoscip-shell system . . echo. "${ECHO_T}$cf_ada_compiler" >&6
19327
19328 cf_ada_package=terminal_interface
19329
19330 echoscip-shell system . . echo. "$as_me:19330: checking for Ada95 include directory" >&5
19331 echoscip-shell system . . echo. $ECHO_N "checking for Ada95 include directory... $ECHO_C" >&6
19332
19333 # Check whether --with-ada-include or --without-ada-include was given.
19334 if testscip-shell system . . test. "${with_ada_include+set}" = set; then
19335 withval="$with_ada_include"
19336
19337 else
19338 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
19339 fi; if testscip-shell system . . test. -n "$prefix/share/ada/adainclude" ; then
19340
19341 if testscip-shell system . . test. "x$prefix" != xNONE; then
19342 cf_path_syntax="$prefix"
19343 else
19344 cf_path_syntax="$ac_default_prefix"
19345 fi
19346
19347 case "x$withval" in
19348 (x\$\(*\)*|x\'*\'*)
19349 ;;
19350 (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
19351 ;;
19352 (x\$\{*prefix\}*|x\$\{*dir\}*)
19353 eval withval="$withval"
19354 case "x$withval" in
19355 (xNONE/*)
19356 withval=`echoscip-shell system . . echo. "$withval" | sedscip-shell system . . sed. -e s%NONE%$cf_path_syntax%`
19357 ;;
19358 esac
19359 ;;
19360 (xno|xNONE/*)
19361 withval=`echoscip-shell system . . echo. "$withval" | sedscip-shell system . . sed. -e s%NONE%$cf_path_syntax%`
19362 ;;
19363 (*)
19364 { { echoscip-shell system . . echo. "$as_me:19364: error: expected a pathname, not \"$withval\"" >&5
19365 echoscip-shell system . . echo. "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
19366 { (exit 1); exit 1; }; }
19367 ;;
19368 esac
19369
19370 fi
19371 eval ADA_INCLUDE="$withval"
19372
19373 echoscip-shell system . . echo. "$as_me:19373: result: $ADA_INCLUDE" >&5
19374 echoscip-shell system . . echo. "${ECHO_T}$ADA_INCLUDE" >&6
19375
19376 echoscip-shell system . . echo. "$as_me:19376: checking for Ada95 object directory" >&5
19377 echoscip-shell system . . echo. $ECHO_N "checking for Ada95 object directory... $ECHO_C" >&6
19378
19379 # Check whether --with-ada-objects or --without-ada-objects was given.
19380 if testscip-shell system . . test. "${with_ada_objects+set}" = set; then
19381 withval="$with_ada_objects"
19382
19383 else
19384 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
19385 fi; if testscip-shell system . . test. -n "$prefix/lib/ada/adalib" ; then
19386
19387 if testscip-shell system . . test. "x$prefix" != xNONE; then
19388 cf_path_syntax="$prefix"
19389 else
19390 cf_path_syntax="$ac_default_prefix"
19391 fi
19392
19393 case "x$withval" in
19394 (x\$\(*\)*|x\'*\'*)
19395 ;;
19396 (x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
19397 ;;
19398 (x\$\{*prefix\}*|x\$\{*dir\}*)
19399 eval withval="$withval"
19400 case "x$withval" in
19401 (xNONE/*)
19402 withval=`echoscip-shell system . . echo. "$withval" | sedscip-shell system . . sed. -e s%NONE%$cf_path_syntax%`
19403 ;;
19404 esac
19405 ;;
19406 (xno|xNONE/*)
19407 withval=`echoscip-shell system . . echo. "$withval" | sedscip-shell system . . sed. -e s%NONE%$cf_path_syntax%`
19408 ;;
19409 (*)
19410 { { echoscip-shell system . . echo. "$as_me:19410: error: expected a pathname, not \"$withval\"" >&5
19411 echoscip-shell system . . echo. "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
19412 { (exit 1); exit 1; }; }
19413 ;;
19414 esac
19415
19416 fi
19417 eval ADA_OBJECTS="$withval"
19418
19419 echoscip-shell system . . echo. "$as_me:19419: result: $ADA_OBJECTS" >&5
19420 echoscip-shell system . . echo. "${ECHO_T}$ADA_OBJECTS" >&6
19421
19422 echoscip-shell system . . echo. "$as_me:19422: checking whether to build an Ada95 shared library" >&5
19423 echoscip-shell system . . echo. $ECHO_N "checking whether to build an Ada95 shared library... $ECHO_C" >&6
19424
19425 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
19426 if testscip-shell system . . test. "${with_ada_sharedlib+set}" = set; then
19427 withval="$with_ada_sharedlib"
19428 with_ada_sharedlib=$withval
19429 else
19430 with_ada_sharedlib=no
19431 fi;
19432 cf_ada_sharedlib_warn=no
19433
19434 if testscip-shell system . . test. "x$with_ada_sharedlib" != xno
19435 then
19436 if testscip-shell system . . test. "x$cf_gnat_projects" != xyes
19437 then
19438 with_ada_sharedlib=no
19439 cf_ada_sharedlib_warn=yes
19440 fi
19441 fi
19442
19443 echoscip-shell system . . echo. "$as_me:19443: result: $with_ada_sharedlib" >&5
19444 echoscip-shell system . . echo. "${ECHO_T}$with_ada_sharedlib" >&6
19445 if testscip-shell system . . test. "x$cf_ada_sharedlib_warn" != xno
19446 then
19447 { echoscip-shell system . . echo. "$as_me:19447: WARNING: disabling Ada95 shared library since GNAT projects are not supported" >&5
19448 echoscip-shell system . . echo. "$as_me: WARNING: disabling Ada95 shared library since GNAT projects are not supported" >&2;}
19449 fi
19450
19451 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
19452 MAKE_ADA_SHAREDLIB="#"
19453
19454 if testscip-shell system . . test. "x$with_ada_sharedlib" != xno
19455 then
19456 MAKE_ADA_SHAREDLIB=
19457 if testscip-shell system . . test. "x$with_ada_sharedlib" != xyes
19458 then
19459 ADA_SHAREDLIB="$with_ada_sharedlib"
19460 fi
19461 fi
19462
19463 # allow the Ada binding to be renamed
19464
19465 echoscip-shell system . . echo. "$as_me:19465: checking for Ada95 curses library name" >&5
19466 echoscip-shell system . . echo. $ECHO_N "checking for Ada95 curses library name... $ECHO_C" >&6
19467
19468 # Check whether --with-ada-libname or --without-ada-libname was given.
19469 if testscip-shell system . . test. "${with_ada_libname+set}" = set; then
19470 withval="$with_ada_libname"
19471 ADA_LIBNAME=$withval
19472 else
19473 ADA_LIBNAME=AdaCurses
19474 fi;
19475 case "x$ADA_LIBNAME" in
19476 (x|xyes|xno)
19477 ADA_LIBNAME=AdaCurses
19478 ;;
19479 esac
19480
19481 echoscip-shell system . . echo. "$as_me:19481: result: $ADA_LIBNAME" >&5
19482 echoscip-shell system . . echo. "${ECHO_T}$ADA_LIBNAME" >&6
19483
19484 else
19485 { { echoscip-shell system . . echo. "$as_me:19485: error: No usable Ada compiler found" >&5
19486 echoscip-shell system . . echo. "$as_me: error: No usable Ada compiler found" >&2;}
19487 { (exit 1); exit 1; }; }
19488 fi
19489 else
19490 { { echoscip-shell system . . echo. "$as_me:19490: error: The Ada compiler is needed for this package" >&5
19491 echoscip-shell system . . echo. "$as_me: error: The Ada compiler is needed for this package" >&2;}
19492 { (exit 1); exit 1; }; }
19493 fi
19494
19495 ################################################################################
19496
19497 # not needed
19498 TINFO_LDFLAGS2=
19499
19500 TINFO_LIBS=
19501
19502 ### Construct the list of include-directories to be generated
19503
19504 if testscip-shell system . . test. "$srcdir" != "."; then
19505 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
19506 fi
19507 CPPFLAGS="-I../include $CPPFLAGS"
19508 if testscip-shell system . . test. "$srcdir" != "."; then
19509 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
19510 fi
19511 CPPFLAGS="-I. $CPPFLAGS"
19512
19513 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
19514 if testscip-shell system . . test. "$srcdir" != "."; then
19515 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
19516 fi
19517 if testscip-shell system . . test. "$GCC" != yes; then
19518 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19519 elif testscip-shell system . . test. "$includedir" != "/usr/includescip-shell filesystem . . `/usr/include`."; then
19520 if testscip-shell system . . test. "$includedir" = '${prefix}/include' ; then
19521 if testscip-shell system . . test. x$prefix != x/usr ; then
19522 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19523 fi
19524 else
19525 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19526 fi
19527 fi
19528
19529 ### Build up pieces for makefile rules
19530 echoscip-shell system . . echo. "$as_me:19530: checking default library suffix" >&5
19531 echoscip-shell system . . echo. $ECHO_N "checking default library suffix... $ECHO_C" >&6
19532
19533 case $DFT_LWR_MODEL in
19534 (libtool) DFT_ARG_SUFFIX='' ;;
19535 (normal) DFT_ARG_SUFFIX='' ;;
19536 (debug) DFT_ARG_SUFFIX='_g' ;;
19537 (profile) DFT_ARG_SUFFIX='_p' ;;
19538 (shared) DFT_ARG_SUFFIX='' ;;
19539 esac
19540 testscip-shell system . . test. -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
19541 echoscip-shell system . . echo. "$as_me:19541: result: $DFT_ARG_SUFFIX" >&5
19542 echoscip-shell system . . echo. "${ECHO_T}$DFT_ARG_SUFFIX" >&6
19543
19544 echoscip-shell system . . echo. "$as_me:19544: checking default library-dependency suffix" >&5
19545 echoscip-shell system . . echo. $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
19546
19547 case X$DFT_LWR_MODEL in
19548 (Xlibtool)
19549 DFT_LIB_SUFFIX='.la'
19550 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19551 ;;
19552 (Xdebug)
19553 case "$cf_cv_system_name" in
19554 (*-msvc*)
19555 DFT_LIB_SUFFIX='_g.lib'
19556 ;;
19557 (*)
19558 DFT_LIB_SUFFIX='_g.a'
19559 ;;
19560 esac
19561 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19562 ;;
19563 (Xprofile)
19564 case "$cf_cv_system_name" in
19565 (*-msvc*)
19566 DFT_LIB_SUFFIX='_p.lib'
19567 ;;
19568 (*)
19569 DFT_LIB_SUFFIX='_p.a'
19570 ;;
19571 esac
19572 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19573 ;;
19574 (Xshared)
19575 case "$cf_cv_system_name" in
19576 (aix[5-7]*)
19577 DFT_LIB_SUFFIX='.so'
19578 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19579 ;;
19580 (*-msvc*)
19581 DFT_LIB_SUFFIX='.dll'
19582 DFT_DEP_SUFFIX='.dll.lib'
19583 ;;
19584 (cygwin*|msys*|mingw*)
19585 DFT_LIB_SUFFIX='.dll'
19586 DFT_DEP_SUFFIX='.dll.a'
19587 ;;
19588 (darwin*)
19589 DFT_LIB_SUFFIX='.dylib'
19590 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19591 ;;
19592 (hpux*)
19593 case "$target" in
19594 (ia64*)
19595 DFT_LIB_SUFFIX='.so'
19596 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19597 ;;
19598 (*)
19599 DFT_LIB_SUFFIX='.sl'
19600 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19601 ;;
19602 esac
19603 ;;
19604 (*)
19605 DFT_LIB_SUFFIX='.so'
19606 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19607 ;;
19608 esac
19609 ;;
19610 (*)
19611 case "$target" in
19612 (*-msvc*)
19613 DFT_LIB_SUFFIX='.lib'
19614 ;;
19615 (*)
19616 DFT_LIB_SUFFIX='.a'
19617 ;;
19618 esac
19619 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19620 ;;
19621 esac
19622 if testscip-shell system . . test. -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
19623 then
19624 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
19625 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
19626 fi
19627 echoscip-shell system . . echo. "$as_me:19627: result: $DFT_DEP_SUFFIX" >&5
19628 echoscip-shell system . . echo. "${ECHO_T}$DFT_DEP_SUFFIX" >&6
19629
19630 echoscip-shell system . . echo. "$as_me:19630: checking default object directory" >&5
19631 echoscip-shell system . . echo. $ECHO_N "checking default object directory... $ECHO_C" >&6
19632
19633 case $DFT_LWR_MODEL in
19634 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
19635 (normal) DFT_OBJ_SUBDIR='objects' ;;
19636 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
19637 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
19638 (shared)
19639 case "$cf_cv_system_name" in
19640 (cygwin|msys)
19641 DFT_OBJ_SUBDIR='objects' ;;
19642 (*)
19643 DFT_OBJ_SUBDIR='obj_s' ;;
19644 esac
19645 esac
19646 echoscip-shell system . . echo. "$as_me:19646: result: $DFT_OBJ_SUBDIR" >&5
19647 echoscip-shell system . . echo. "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
19648
19649 ### Set up low-level terminfo dependencies for makefiles.
19650
19651 if testscip-shell system . . test. "$DFT_LWR_MODEL" = shared ; then
19652 case $cf_cv_system_name in
19653 (cygwin*)
19654 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
19655 ;;
19656 (msys*)
19657 # "lib" files have ".dll.a" suffix, "msys-" files have ".dll"
19658 ;;
19659 esac
19660 fi
19661
19662 USE_ARG_SUFFIX=${DFT_ARG_SUFFIX}
19663
19664 ABI_SUFFIX=${DFT_ARG_SUFFIX}
19665
19666 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}
19667
19668 ### Construct the list of subdirectories for which we'll customize makefiles
19669 ### with the appropriate compile-rules.
19670
19671 SUB_MAKEFILES="gen/adacurses${USE_ARG_SUFFIX}-config:gen/adacurses-config.in"
19672
19673 catscip-shell system . . cat. >>confdefs.h <<EOF
19674 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
19675 EOF
19676
19677 ################################################################################
19678
19679 TEST_ARG2=
19680
19681 TEST_LIBS2=
19682
19683 NCURSES_SHLIB2="sh -c"
19684
19685 ADA_SUBDIRS="include gen src doc"
19686 if testscip-shell system . . test. "x$cf_with_tests" != "xno" ; then
19687 ADA_SUBDIRS="$ADA_SUBDIRS samples"
19688 fi
19689 for cf_dir in $ADA_SUBDIRS
19690 do
19691 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
19692 done
19693
19694 NCURSES_TREE="#"
19695
19696 EXTERNAL_TREE=
19697
19698 # match layout used by make-tar.sh
19699 ADAHTML_DIR=../doc/ada
19700
19701 if testscip-shell system . . test. "x$cross_compiling" = xyes ; then
19702 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
19703 else
19704 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
19705 fi
19706
19707 ac_config_files="$ac_config_files $SUB_MAKEFILES src/library.gpr:src/library.gpr.in doc/adacurses${DFT_ARG_SUFFIX}-config.1:doc/MKada_config.in Makefile"
19708
19709 ac_config_commands="$ac_config_commands default"
19710
19711 DEFS=-DHAVE_CONFIG_H
19712
19713 catscip-shell system . . cat. >confcache <<\_ACEOF
19714 # This file is a shell script that caches the results of configure
19715 # tests run on this system so they can be shared between configure
19716 # scripts and configure runs, see configure's option --config-cache.
19717 # It is not useful on other systems. If it contains results you don't
19718 # want to keep, you may remove or edit it.
19719 #
19720 # config.status only pays attention to the cache file if you give it
19721 # the --recheck option to rerun configure.
19722 #
19723 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19724 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19725 # following values.
19726
19727 _ACEOF
19728
19729 # The following way of writing the cache mishandles newlines in values,
19730 # but we know of no workaround that is simple, portable, and efficient.
19731 # So, don't put newlines in cache variables' values.
19732 # Ultrix sh set writes to stderr and can't be redirected directly,
19733 # and sets the high bit in the cache file unless we assign to the vars.
19734 {
19735 (set) 2>&1 |
19736 case `(ac_space=' '; set | grepscip-shell system . . grep. ac_space) 2>&1` in
19737 *ac_space=\ *)
19738 # `set' does not quote correctly, so add quotes (double-quote
19739 # substitution turns \\\\ into \\, and sed turns \\ into \).
19740 sedscip-shell system . . sed. -n \
19741 "s/'/'\\\\''/g;
19742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19743 ;;
19744 *)
19745 # `set' quotes correctly as required by POSIX, so do not add quotes.
19746 sedscip-shell system . . sed. -n \
19747 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19748 ;;
19749 esac;
19750 } |
19751 sedscip-shell system . . sed. '
19752 t clear
19753 : clear
19754 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19755 t end
19756 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19757 : end' >>confcache
19758 if cmpscip-shell system . . cmp. -s $cache_file confcache; then :; else
19759 if testscip-shell system . . test. -w $cache_file; then
19760 testscip-shell system . . test. "x$cache_file" != "x/dev/null" && echoscip-shell system . . echo. "updating cache $cache_file"
19761 catscip-shell system . . cat. confcache >$cache_file
19762 else
19763 echoscip-shell system . . echo. "not updating unwritable cache $cache_file"
19764 fi
19765 fi
19766 rmscip-shell system . . rm. -f confcache
19767
19768 testscip-shell system . . test. "x$prefix" = xNONE && prefix=$ac_default_prefix
19769 # Let make expand exec_prefix.
19770 testscip-shell system . . test. "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19771
19772 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19773 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19774 # trailing colons and then remove the whole line if VPATH becomes empty
19775 # (actually we leave an empty line to preserve line numbers).
19776 if testscip-shell system . . test. "x$srcdir" = x.; then
19777 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19778 s/:*\$(srcdir):*/:/;
19779 s/:*\${srcdir}:*/:/;
19780 s/:*@srcdir@:*/:/;
19781 s/^\([^=]*=[ ]*\):*/\1/;
19782 s/:*$//;
19783 s/^[^=]*=[ ]*$//;
19784 }'
19785 fi
19786
19787 DEFS=-DHAVE_CONFIG_H
19788
19789 : "${CONFIG_STATUS=./config.status}"
19790 ac_clean_files_save=$ac_clean_files
19791 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19792 { echoscip-shell system . . echo. "$as_me:19792: creating $CONFIG_STATUS" >&5
19793 echoscip-shell system . . echo. "$as_me: creating $CONFIG_STATUS" >&6;}
19794 catscip-shell system . . cat. >"$CONFIG_STATUS" <<_ACEOF
19795 #! $SHELL
19796 # Generated automatically by configure.
19797 # Run this file to recreate the current configuration.
19798 # Compiler output produced by configure, useful for debugging
19799 # configure, is in config.log if it exists.
19800
19801 me=\`echo "\$0" | sed -e 's,.*\\/,,'\`
19802
19803 debug=false
19804 SHELL=\${CONFIG_SHELL-$SHELL}
19805 ac_cs_invocation="\$0 \$@"
19806
19807 CLICOLOR_FORCE= GREP_OPTIONS=
19808 unset CLICOLOR_FORCE GREP_OPTIONS
19809 _ACEOF
19810
19811 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<\_ACEOF
19812 # Be Bourne compatible
19813 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19814 emulate sh
19815 NULLCMD=:
19816 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19817 set -o posix
19818 fi
19819
19820 # Name of the executable.
19821 as_me=`echo "$0" |sed 's,.*[\\/],,'`
19822
19823 if expr a : '\(a\)' >/dev/null 2>&1; then
19824 as_expr="expr"
19825 else
19826 as_expr="false"
19827 fi
19828
19829 rm -f conf$$ conf$$.exe conf$$.file
19830 echo >conf$$.file
19831 if ln -s conf$$.file conf$$ 2>/dev/null; then
19832 # We could just check for DJGPP; but this test a) works b) is more generic
19833 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19834 if test -f conf$$.exe; then
19835 # Don't use ln at all; we don't have any links
19836 as_ln_s='cp -p'
19837 else
19838 as_ln_s='ln -s'
19839 fi
19840 elif ln conf$$.file conf$$ 2>/dev/null; then
19841 as_ln_s='ln'
19842 else
19843 as_ln_s='cp -p'
19844 fi
19845 rm -f conf$$ conf$$.exe conf$$.file
19846
19847 as_executable_p="test -f"
19848
19849 # Support unset when possible.
19850 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19851 as_unset="unset"
19852 else
19853 as_unset="false"
19854 fi
19855
19856 # NLS nuisances.
19857 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
19858 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
19859 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
19860 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
19861 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
19862 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
19863 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
19864 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
19865
19866 # IFS
19867 # We need space, tab and new line, in precisely that order.
19868 as_nl='
19869 '
19870 IFS=" $as_nl"
19871
19872 # CDPATH.
19873 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
19874
19875 exec 6>&1
19876
19877 _ACEOF
19878
19879 # Files that config.status was made for.
19880 if testscip-shell system . . test. -n "$ac_config_files"; then
19881 echoscip-shell system . . echo. "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
19882 fi
19883
19884 if testscip-shell system . . test. -n "$ac_config_headers"; then
19885 echoscip-shell system . . echo. "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
19886 fi
19887
19888 if testscip-shell system . . test. -n "$ac_config_links"; then
19889 echoscip-shell system . . echo. "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
19890 fi
19891
19892 if testscip-shell system . . test. -n "$ac_config_commands"; then
19893 echoscip-shell system . . echo. "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
19894 fi
19895
19896 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<\EOF
19897
19898 ac_cs_usage="\
19899 \`$as_me' instantiates files from templates according to the
19900 current configuration.
19901
19902 Usage: $0 [OPTIONS] [FILE]...
19903
19904 -h, --help print this help, then exit
19905 -V, --version print version number, then exit
19906 -d, --debug don't remove temporary files
19907 --recheck update $as_me by reconfiguring in the same conditions
19908 --file=FILE[:TEMPLATE]
19909 instantiate the configuration file FILE
19910 --header=FILE[:TEMPLATE]
19911 instantiate the configuration header FILE
19912
19913 Configuration files:
19914 $config_files
19915
19916 Configuration headers:
19917 $config_headers
19918
19919 Configuration commands:
19920 $config_commands
19921
19922 Report bugs to <[email protected]>."
19923 EOF
19924
19925 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<EOF
19926 ac_cs_version="\\
19927 config.status
19928 configured by $0, generated by GNU Autoconf 2.52.20260412,
19929 with options \\"`echo "scip-shell system . . echo.$ac_configure_args" | sed 'scip-shell system . . sed.s/[\\""\`\$]/\\\\&/g'`\\"
19930
19931 Copyright 2003-2023,2025 Thomas E. Dickey
19932 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19933 Free Software Foundation, Inc.
19934 This config.status script is free software; the Free Software Foundation
19935 gives unlimited permission to copy, distribute and modify it."
19936 srcdir="$srcdir"
19937 INSTALL="$INSTALL"
19938 EOF
19939
19940 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<\EOF
19941 # If no file are specified by the user, then we need to provide default
19942 # value. By we need to know if files were specified by the user.
19943 ac_need_defaults=:
19944 while test $# != 0
19945 do
19946 case $1 in
19947 --*=*)
19948 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19949 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19950 shift
19951 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19952 shift
19953 ;;
19954 -*);;
19955 *) # This is not an option, so the user has probably given explicit
19956 # arguments.
19957 ac_need_defaults=false;;
19958 esac
19959
19960 case $1 in
19961 # Handling of the options.
19962 EOF
19963 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<EOF
19964 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19965 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19966 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19967 EOF
19968 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<\EOF
19969 --version | --vers* | -V )
19970 echo "$ac_cs_version"; exit 0 ;;
19971 --he | --h)
19972 # Conflict between --help and --header
19973 { { echo "$as_me:19973: error: ambiguous option: $1
19974 Try \`$0 --help' for more information." >&5
19975 echo "$as_me: error: ambiguous option: $1
19976 Try \`$0 --help' for more information." >&2;}
19977 { (exit 1); exit 1; }; };;
19978 --help | --hel | -h )
19979 echo "$ac_cs_usage"; exit 0 ;;
19980 --debug | --d* | -d )
19981 debug=: ;;
19982 --file | --fil | --fi | --f )
19983 shift
19984 CONFIG_FILES="$CONFIG_FILES $1"
19985 ac_need_defaults=false;;
19986 --header | --heade | --head | --hea )
19987 shift
19988 CONFIG_HEADERS="$CONFIG_HEADERS $1"
19989 ac_need_defaults=false;;
19990
19991 # This is an error.
19992 -*) { { echo "$as_me:19992: error: unrecognized option: $1
19993 Try \`$0 --help' for more information." >&5
19994 echo "$as_me: error: unrecognized option: $1
19995 Try \`$0 --help' for more information." >&2;}
19996 { (exit 1); exit 1; }; } ;;
19997
19998 *) ac_config_targets="$ac_config_targets $1" ;;
19999
20000 esac
20001 shift
20002 done
20003
20004 exec 5>>config.log
20005 cat >&5 << _ACEOF
20006
20007 ## ----------------------- ##
20008 ## Running config.status. ##
20009 ## ----------------------- ##
20010
20011 This file was extended by $as_me 2.52.20260412, executed with
20012 CONFIG_FILES = $CONFIG_FILES
20013 CONFIG_HEADERS = $CONFIG_HEADERS
20014 CONFIG_LINKS = $CONFIG_LINKS
20015 CONFIG_COMMANDS = $CONFIG_COMMANDS
20016 > "$ac_cs_invocation"
20017 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20018
20019 _ACEOF
20020 EOF
20021
20022 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<EOF
20023 #
20024 # INIT-COMMANDS section.
20025 #
20026
20027 ### Special initialization commands, used to pass information from the
20028 ### configuration-run into config.status
20029
20030 AWK="$AWK"
20031 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
20032 DFT_LWR_MODEL="$DFT_LWR_MODEL"
20033 LIB_NAME="$LIB_NAME"
20034 LIB_PREFIX="$LIB_PREFIX"
20035 LIB_SUFFIX="$LIB_SUFFIX"
20036 LN_S="$LN_S"
20037 NCURSES_MAJOR="$NCURSES_MAJOR"
20038 NCURSES_MINOR="$NCURSES_MINOR"
20039 NCURSES_PATCH="$NCURSES_PATCH"
20040 PACKAGE="$PACKAGE"
20041 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
20042 cf_cv_VERSION_GNATMAKE=$cf_cv_VERSION_GNATMAKE
20043 cf_cv_VERSION_GPRBUILD=$cf_cv_VERSION_GPRBUILD
20044 cf_cv_abi_version="$cf_cv_abi_version"
20045 cf_cv_rel_version="$cf_cv_rel_version"
20046 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
20047 cf_cv_shared_soname='$cf_cv_shared_soname'
20048 cf_cv_shlib_version="$cf_cv_shlib_version"
20049 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
20050 cf_cv_system_name="$cf_cv_system_name"
20051 host="$host"
20052 target="$target"
20053
20054 EOF
20055
20056 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<\EOF
20057 for ac_config_target in $ac_config_targets
20058 do
20059 case "$ac_config_target" in
20060 # Handling of arguments.
20061 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
20062 "src/library.gpr" ) CONFIG_FILES="$CONFIG_FILES src/library.gpr:src/library.gpr.in" ;;
20063 "doc/adacurses${DFT_ARG_SUFFIX}-config.1" ) CONFIG_FILES="$CONFIG_FILES doc/adacurses${DFT_ARG_SUFFIX}-config.1:doc/MKada_config.in" ;;
20064 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20065 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20066 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
20067 *) { { echo "$as_me:20067: error: invalid argument: $ac_config_target" >&5
20068 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20069 { (exit 1); exit 1; }; };;
20070 esac
20071 done
20072
20073 # If the user did not use the arguments to specify the items to instantiate,
20074 # then the envvar interface is used. Set only those that are not.
20075 # We use the long form for the default assignment because of an extremely
20076 # bizarre bug on SunOS 4.1.3.
20077 if "$ac_need_defaults"; then
20078 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20079 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20080 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20081 fi
20082
20083 # Create a temporary directory, and hook for its removal unless debugging.
20084 $debug ||
20085 {
20086 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20087 trap '{ (exit 1); exit 1; }' 1 2 13 15
20088 }
20089
20090 # Create a (secure) tmp directory for tmp files.
20091 : "${TMPDIR=/tmp}"
20092 {
20093 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
20094 test -n "$tmp" && test -d "$tmp"
20095 } ||
20096 {
20097 tmp=$TMPDIR/cs$$-$RANDOM
20098 (umask 077 && mkdir "$tmp")
20099 } ||
20100 {
20101 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
20102 { (exit 1); exit 1; }
20103 }
20104
20105 EOF
20106
20107 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<EOF
20108
20109 #
20110 # CONFIG_FILES section.
20111 #
20112
20113 # No need to generate the scripts if there are no CONFIG_FILES.
20114 # This happens for instance when ./config.status config.h
20115 if test -n "\$CONFIG_FILES"; then
20116 # Protect against being on the right side of a sed subst in config.status.
20117 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20118 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >"\$tmp"/subs.sed <<\\CEOF
20119 s,@SHELL@,$SHELL,;t t
20120 s,@exec_prefix@,$exec_prefix,;t t
20121 s,@prefix@,$prefix,;t t
20122 s,@program_transform_name@,$program_transform_name,;t t
20123 s,@bindir@,$bindir,;t t
20124 s,@sbindir@,$sbindir,;t t
20125 s,@libexecdir@,$libexecdir,;t t
20126 s,@datarootdir@,$datarootdir,;t t
20127 s,@datadir@,$datadir,;t t
20128 s,@sysconfdir@,$sysconfdir,;t t
20129 s,@sharedstatedir@,$sharedstatedir,;t t
20130 s,@localstatedir@,$localstatedir,;t t
20131 s,@runstatedir@,$runstatedir,;t t
20132 s,@libdir@,$libdir,;t t
20133 s,@includedir@,$includedir,;t t
20134 s,@oldincludedir@,$oldincludedir,;t t
20135 s,@infodir@,$infodir,;t t
20136 s,@mandir@,$mandir,;t t
20137 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20138 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20139 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20140 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20141 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20142 s,@build_alias@,$build_alias,;t t
20143 s,@host_alias@,$host_alias,;t t
20144 s,@target_alias@,$target_alias,;t t
20145 s,@ECHO_C@,$ECHO_C,;t t
20146 s,@ECHO_N@,$ECHO_N,;t t
20147 s,@ECHO_T@,$ECHO_T,;t t
20148 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20149 s,@DEFS@,$DEFS,;t t
20150 s,@LIBS@,$LIBS,;t t
20151 s,@PACKAGE@,$PACKAGE,;t t
20152 s,@top_builddir@,$top_builddir,;t t
20153 s,@build@,$build,;t t
20154 s,@build_cpu@,$build_cpu,;t t
20155 s,@build_vendor@,$build_vendor,;t t
20156 s,@build_os@,$build_os,;t t
20157 s,@host@,$host,;t t
20158 s,@host_cpu@,$host_cpu,;t t
20159 s,@host_vendor@,$host_vendor,;t t
20160 s,@host_os@,$host_os,;t t
20161 s,@target@,$target,;t t
20162 s,@target_cpu@,$target_cpu,;t t
20163 s,@target_vendor@,$target_vendor,;t t
20164 s,@target_os@,$target_os,;t t
20165 s,@GREP@,$GREP,;t t
20166 s,@FGREP@,$FGREP,;t t
20167 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
20168 s,@M4_exists@,$M4_exists,;t t
20169 s,@cf_ada_make@,$cf_ada_make,;t t
20170 s,@cf_ada_config@,$cf_ada_config,;t t
20171 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
20172 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
20173 s,@cf_cv_path_gnatgcc@,$cf_cv_path_gnatgcc,;t t
20174 s,@CC@,$CC,;t t
20175 s,@CFLAGS@,$CFLAGS,;t t
20176 s,@LDFLAGS@,$LDFLAGS,;t t
20177 s,@CPPFLAGS@,$CPPFLAGS,;t t
20178 s,@ac_ct_CC@,$ac_ct_CC,;t t
20179 s,@EXEEXT@,$EXEEXT,;t t
20180 s,@OBJEXT@,$OBJEXT,;t t
20181 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
20182 s,@CPP@,$CPP,;t t
20183 s,@EGREP@,$EGREP,;t t
20184 s,@AWK@,$AWK,;t t
20185 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20186 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20187 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20188 s,@LN_S@,$LN_S,;t t
20189 s,@GLOB_FULLPATH_POSIX@,$GLOB_FULLPATH_POSIX,;t t
20190 s,@GLOB_FULLPATH_OTHER@,$GLOB_FULLPATH_OTHER,;t t
20191 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
20192 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
20193 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20194 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20195 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
20196 s,@SET_MAKE@,$SET_MAKE,;t t
20197 s,@MAKE_NO_PHONY@,$MAKE_NO_PHONY,;t t
20198 s,@MAKE_PHONY@,$MAKE_PHONY,;t t
20199 s,@CTAGS@,$CTAGS,;t t
20200 s,@ETAGS@,$ETAGS,;t t
20201 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
20202 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
20203 s,@RANLIB@,$RANLIB,;t t
20204 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20205 s,@LD@,$LD,;t t
20206 s,@ac_ct_LD@,$ac_ct_LD,;t t
20207 s,@AR@,$AR,;t t
20208 s,@ac_ct_AR@,$ac_ct_AR,;t t
20209 s,@ARFLAGS@,$ARFLAGS,;t t
20210 s,@DESTDIR@,$DESTDIR,;t t
20211 s,@SET_DESTDIR@,$SET_DESTDIR,;t t
20212 s,@MERGE_PREFIX@,$MERGE_PREFIX,;t t
20213 s,@BUILD_CC@,$BUILD_CC,;t t
20214 s,@BUILD_CPP@,$BUILD_CPP,;t t
20215 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20216 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20217 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20218 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
20219 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20220 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
20221 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
20222 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
20223 s,@REQUIRE_PKG@,$REQUIRE_PKG,;t t
20224 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
20225 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
20226 s,@cf_cv_screen@,$cf_cv_screen,;t t
20227 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
20228 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
20229 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
20230 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
20231 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
20232 s,@cf_cv_enable_sigwinch@,$cf_cv_enable_sigwinch,;t t
20233 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
20234 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
20235 s,@CC_G_OPT@,$CC_G_OPT,;t t
20236 s,@LD_MODEL@,$LD_MODEL,;t t
20237 s,@shlibdir@,$shlibdir,;t t
20238 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
20239 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
20240 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
20241 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
20242 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
20243 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
20244 s,@LINK_PROGS@,$LINK_PROGS,;t t
20245 s,@LINK_TESTS@,$LINK_TESTS,;t t
20246 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
20247 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
20248 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
20249 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
20250 s,@RPATH_LIST@,$RPATH_LIST,;t t
20251 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
20252 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
20253 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
20254 s,@PTHREAD@,$PTHREAD,;t t
20255 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
20256 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
20257 s,@ECHO_LT@,$ECHO_LT,;t t
20258 s,@ECHO_LD@,$ECHO_LD,;t t
20259 s,@RULE_CC@,$RULE_CC,;t t
20260 s,@SHOW_CC@,$SHOW_CC,;t t
20261 s,@ECHO_CC@,$ECHO_CC,;t t
20262 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
20263 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
20264 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
20265 s,@ADAFLAGS@,$ADAFLAGS,;t t
20266 s,@ADA_TRACE@,$ADA_TRACE,;t t
20267 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
20268 s,@cf_compile_generics@,$cf_compile_generics,;t t
20269 s,@cf_generic_objects@,$cf_generic_objects,;t t
20270 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
20271 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
20272 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
20273 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
20274 s,@USE_GNAT_MAKE_GPR@,$USE_GNAT_MAKE_GPR,;t t
20275 s,@USE_GNAT_GPRBUILD@,$USE_GNAT_GPRBUILD,;t t
20276 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
20277 s,@cf_ada_package@,$cf_ada_package,;t t
20278 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
20279 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
20280 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
20281 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
20282 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
20283 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
20284 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
20285 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
20286 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
20287 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
20288 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
20289 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
20290 s,@ABI_SUFFIX@,$ABI_SUFFIX,;t t
20291 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
20292 s,@TEST_ARG2@,$TEST_ARG2,;t t
20293 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
20294 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
20295 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
20296 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
20297 s,@EXTERNAL_TREE@,$EXTERNAL_TREE,;t t
20298 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
20299 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
20300 CEOF
20301
20302 EOF
20303
20304 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<\EOF
20305 # Split the substitutions into bite-sized pieces for seds with
20306 # small command number limits, like on Digital OSF/1 and HP-UX.
20307 ac_max_sed_lines=48
20308 ac_sed_frag=1 # Number of current file.
20309 ac_beg=1 # First line for current file.
20310 ac_end=$ac_max_sed_lines # Line after last line for current file.
20311 ac_more_lines=:
20312 ac_sed_cmds=
20313 while "$ac_more_lines"; do
20314 if test "$ac_beg" -gt 1; then
20315 sed "1,${ac_beg}d; ${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
20316 else
20317 sed "${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
20318 fi
20319 if test ! -s "$tmp"/subs.frag; then
20320 ac_more_lines=false
20321 else
20322 # The purpose of the label and of the branching condition is to
20323 # speed up the sed processing (if there are no `@' at all, there
20324 # is no need to browse any of the substitutions).
20325 # These are the two extra sed commands mentioned above.
20326 (echo ':t
20327 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && sed -e 's/\\\\*$//g' -e 's/$/\\/' -e 's/;t t\\/;t t/' -e 't' -e '3,'$ac_max_sed_lines's/$/\\/' "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed
20328 # It is possible to make a multiline substitution using escaped newlines.
20329 # Ensure that we do not split the substitution between script fragments.
20330 ac_BEG=$ac_end
20331 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
20332 sed "1,${ac_BEG}d; ${ac_END}p; q" "$tmp"/subs.sed >"$tmp"/subs.next
20333 if test -s "$tmp"/subs.next; then
20334 grep '^s,@[^@,][^@,]*@,.*$' "$tmp"/subs.next | grep -v '^s,@.*;t t$' >"$tmp"/subs.edit
20335 if test ! -s "$tmp"/subs.edit; then
20336 grep "^s,@[^@,][^@,]*@,.*,;t t$" "$tmp"/subs.next >"$tmp"/subs.edit
20337 if test ! -s "$tmp"/subs.edit; then
20338 if test "$ac_beg" -gt 1; then
20339 ac_end=`expr "$ac_end" - 1`
20340 continue
20341 fi
20342 fi
20343 fi
20344 fi
20345
20346 if test -z "$ac_sed_cmds"; then
20347 ac_sed_cmds="sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
20348 else
20349 ac_sed_cmds="$ac_sed_cmds | sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
20350 fi
20351 ac_sed_frag=`expr "$ac_sed_frag" + 1`
20352 ac_beg=$ac_end
20353 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
20354 fi
20355 done
20356 if test -z "$ac_sed_cmds"; then
20357 ac_sed_cmds="cat"
20358 fi
20359 fi # test -n "$CONFIG_FILES"
20360
20361 EOF
20362 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<\EOF
20363 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20364 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20365 case "$ac_file" in
20366 - | *:- | *:-:* ) # input from stdin
20367 cat >"$tmp"/stdin
20368 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20369 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20370 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20371 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20372 * ) ac_file_in=$ac_file.in ;;
20373 esac
20374
20375 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20376 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20377 X"$ac_file" : 'X\(//\)[^/]' \| \
20378 X"$ac_file" : 'X\(//\)$' \| \
20379 X"$ac_file" : 'X\(/\)' \| \
20380 . : '\(.\)' 2>/dev/null ||
20381 echo X"$ac_file" |
20382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20384 /^X\(\/\/\)$/{ s//\1/; q; }
20385 /^X\(\/\).*/{ s//\1/; q; }
20386 s/.*/./; q'`
20387 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20388 { case "$ac_dir" in
20389 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
20390 *) as_incr_dir=.;;
20391 esac
20392 as_dummy="$ac_dir"
20393 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
20394 case $as_mkdir_dir in
20395 # Skip DOS drivespec
20396 ?:) as_incr_dir=$as_mkdir_dir ;;
20397 *)
20398 as_incr_dir=$as_incr_dir/$as_mkdir_dir
20399 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
20400 ;;
20401 esac
20402 done; }
20403
20404 ac_dir_suffix="/`echo "$ac_dir"|sed 's,^\./,,'`"
20405 # A "../" for each directory in $ac_dir_suffix.
20406 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
20407 else
20408 ac_dir_suffix= ac_dots=
20409 fi
20410
20411 case "$srcdir" in
20412 .) ac_srcdir=.
20413 if test -z "$ac_dots"; then
20414 ac_top_srcdir=.
20415 else
20416 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
20417 fi ;;
20418 [\\/]* | ?:[\\/]* )
20419 ac_srcdir="$srcdir$ac_dir_suffix";
20420 ac_top_srcdir="$srcdir" ;;
20421 *) # Relative path.
20422 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
20423 ac_top_srcdir="$ac_dots$srcdir" ;;
20424 esac
20425
20426 case $INSTALL in
20427 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20428 *) ac_INSTALL=$ac_dots$INSTALL ;;
20429 esac
20430
20431 if test x"$ac_file" != x-; then
20432 { echo "$as_me:20432: creating $ac_file" >&5
20433 echo "$as_me: creating $ac_file" >&6;}
20434 rm -f "$ac_file"
20435 fi
20436 # Let's still pretend it is `configure' which instantiates (i.e., don't
20437 # use $as_me), people would be surprised to read:
20438 # /* config.h. Generated automatically by config.status. */
20439 configure_input="Generated automatically from `echo $ac_file_in |
20440 sed 's,.*/,,'` by configure."
20441
20442 # First look for the input files in the build tree, otherwise in the
20443 # src tree.
20444 ac_file_inputs=`IFS=:
20445 for f in $ac_file_in; do
20446 case $f in
20447 -) echo "$tmp"/stdin ;;
20448 [\\/$]*)
20449 # Absolute (can't be DOS-style, as IFS=:)
20450 test -f "$f" || { { echo "$as_me:20450: error: cannot find input file: $f" >&5
20451 echo "$as_me: error: cannot find input file: $f" >&2;}
20452 { (exit 1); exit 1; }; }
20453 echo "$f";;
20454 *) # Relative
20455 if test -f "$f"; then
20456 # Build tree
20457 echo "$f"
20458 elif test -f "$srcdir/$f"; then
20459 # Source tree
20460 echo "$srcdir/$f"
20461 else
20462 # /dev/null tree
20463 { { echo "$as_me:20463: error: cannot find input file: $f" >&5
20464 echo "$as_me: error: cannot find input file: $f" >&2;}
20465 { (exit 1); exit 1; }; }
20466 fi;;
20467 esac
20468 done` || { (exit 1); exit 1; }
20469 EOF
20470 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<\EOF
20471 ac_warn_datarootdir=no
20472 if test x"$ac_file" != x-; then
20473 for ac_item in $ac_file_inputs
20474 do
20475 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
20476 if test -n "$ac_seen"; then
20477 ac_used=`grep '@datarootdir@' "$ac_item"`
20478 if test -z "$ac_used"; then
20479 { echo "$as_me:20479: WARNING: datarootdir was used implicitly but not set:
20480 $ac_seen" >&5
20481 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
20482 $ac_seen" >&2;}
20483 ac_warn_datarootdir=yes
20484 fi
20485 fi
20486 ac_seen=`grep '${datarootdir}' "$ac_item"`
20487 if test -n "$ac_seen"; then
20488 { echo "$as_me:20488: WARNING: datarootdir was used explicitly but not set:
20489 $ac_seen" >&5
20490 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
20491 $ac_seen" >&2;}
20492 ac_warn_datarootdir=yes
20493 fi
20494 done
20495 fi
20496
20497 if test "x$ac_warn_datarootdir" = xyes; then
20498 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
20499 fi
20500
20501 EOF
20502 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<EOF
20503 sed "$ac_vpsub
20504 $extrasub
20505 EOF
20506 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<\EOF
20507 :t
20508 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20509 s,@configure_input@,$configure_input,;t t
20510 s,@srcdir@,$ac_srcdir,;t t
20511 s,@top_srcdir@,$ac_top_srcdir,;t t
20512 s,@INSTALL@,$ac_INSTALL,;t t
20513 " $ac_file_inputs | (eval "$ac_sed_cmds") >"$tmp"/out
20514 rm -f "$tmp"/stdin
20515 EOF
20516 testscip-shell system . . test. -n "${FGREP}" || FGREP="grep -F"
20517 testscip-shell system . . test. -n "${EGREP}" || EGREP="grep -E"
20518 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<EOF
20519 test -n "\${FGREP}" || FGREP="$FGREP"
20520 test -n "\${EGREP}" || EGREP="$EGREP"
20521 EOF
20522 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<\EOF
20523 if test x"$ac_file" != x-; then
20524 cp "$tmp/out" "$ac_file"
20525
20526 for ac_name in prefix exec_prefix datarootdir
20527 do
20528 ac_seen=`$FGREP -n '${'$ac_name'[:=].*}' "$ac_file"`
20529 if test -n "$ac_seen"; then
20530 ac_init=`$EGREP '[ ]*'$ac_name'[ ]*=' "$ac_file"`
20531 if test -z "$ac_init"; then
20532 ac_seen=`echo "$ac_seen" |sed -e 's,^,'"$ac_file"':,'`
20533 { echo "$as_me:20533: WARNING: Variable $ac_name is used but was not set:
20534 $ac_seen" >&5
20535 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
20536 $ac_seen" >&2;}
20537 fi
20538 fi
20539 done
20540 $EGREP -n '@[a-z_][a-z_0-9]+@' "$ac_file" >"$tmp"/out
20541 $EGREP -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>"$tmp"/out
20542 if test -s "$tmp"/out; then
20543 ac_seen=`sed -e 's,^,'"$ac_file"':,' < "$tmp"/out`
20544 { echo "$as_me:20544: WARNING: Some variables may not be substituted:
20545 $ac_seen" >&5
20546 echo "$as_me: WARNING: Some variables may not be substituted:
20547 $ac_seen" >&2;}
20548 fi
20549 else
20550 cat "$tmp"/out
20551 fi
20552 rm -f "$tmp"/out
20553
20554 done
20555 EOF
20556 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<\EOF
20557
20558 #
20559 # CONFIG_HEADER section.
20560 #
20561
20562 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20563 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20564 #
20565 # ac_d sets the value in "#define NAME VALUE" lines.
20566 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20567 ac_dB='[ ].*$,\1#\2'
20568 ac_dC=' '
20569 ac_dD=',;t'
20570 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20571 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20572 ac_iB='\([ ]\),\1#\2define\3'
20573 ac_iC=' '
20574 ac_iD='\4,;t'
20575 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20576 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20577 ac_uB='$,\1#\2define\3'
20578 ac_uC=' '
20579 ac_uD=',;t'
20580
20581 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20582 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20583 case "$ac_file" in
20584 - | *:- | *:-:* ) # input from stdin
20585 cat >"$tmp"/stdin
20586 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20587 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20588 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20589 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20590 * ) ac_file_in=$ac_file.in ;;
20591 esac
20592
20593 test x"$ac_file" != x- && { echo "$as_me:20593: creating $ac_file" >&5
20594 echo "$as_me: creating $ac_file" >&6;}
20595
20596 # First look for the input files in the build tree, otherwise in the
20597 # src tree.
20598 ac_file_inputs=`IFS=:
20599 for f in $ac_file_in; do
20600 case $f in
20601 -) echo "$tmp"/stdin ;;
20602 [\\/$]*)
20603 # Absolute (can't be DOS-style, as IFS=:)
20604 test -f "$f" || { { echo "$as_me:20604: error: cannot find input file: $f" >&5
20605 echo "$as_me: error: cannot find input file: $f" >&2;}
20606 { (exit 1); exit 1; }; }
20607 echo $f;;
20608 *) # Relative
20609 if test -f "$f"; then
20610 # Build tree
20611 echo $f
20612 elif test -f "$srcdir/$f"; then
20613 # Source tree
20614 echo "$srcdir/$f"
20615 else
20616 # /dev/null tree
20617 { { echo "$as_me:20617: error: cannot find input file: $f" >&5
20618 echo "$as_me: error: cannot find input file: $f" >&2;}
20619 { (exit 1); exit 1; }; }
20620 fi;;
20621 esac
20622 done` || { (exit 1); exit 1; }
20623 # Remove the trailing spaces.
20624 sed 's/[ ]*$//' $ac_file_inputs >"$tmp"/in
20625
20626 EOF
20627
20628 # Transform confdefs.h into a list of #define's. We won't use it as a sed
20629 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
20630 # be either 'cat' or 'sort'.
20631 catscip-shell system . . cat. confdefs.h | uniqscip-shell system . . uniq. >conftest.vals
20632
20633 # Break up conftest.vals because some shells have a limit on
20634 # the size of here documents, and old seds have small limits too.
20635
20636 rmscip-shell system . . rm. -f conftest.tail
20637 echoscip-shell system . . echo. ' rm -f conftest.frag' >> "$CONFIG_STATUS"
20638 while grepscip-shell system . . grep. . conftest.vals >/dev/nullscip-shell filesystem . . `/dev/null`.
20639 do
20640 # Write chunks of a limited-size here document to conftest.frag.
20641 echoscip-shell system . . echo. ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS"
20642 sedscip-shell system . . sed. "${ac_max_here_lines}q" conftest.vals | sedscip-shell system . . sed. -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
20643 echoscip-shell system . . echo. 'CEOF' >> "$CONFIG_STATUS"
20644 sedscip-shell system . . sed. "1,${ac_max_here_lines}d" conftest.vals > conftest.tail
20645 rmscip-shell system . . rm. -f conftest.vals
20646 mvscip-shell system . . mv. conftest.tail conftest.vals
20647 done
20648 rmscip-shell system . . rm. -f conftest.vals
20649
20650 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
20651 # marker @DEFS@.
20652 echoscip-shell system . . echo. ' cat >> conftest.edit <<CEOF
20653 /@DEFS@/r conftest.frag
20654 /@DEFS@/d
20655 CEOF
20656 sed -f conftest.edit "$tmp"/in > "$tmp"/out
20657 rm -f "$tmp"/in
20658 mv "$tmp"/out "$tmp"/in
20659 rm -f conftest.edit conftest.frag
20660 ' >> "$CONFIG_STATUS"
20661
20662 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<\EOF
20663 # Let's still pretend it is `configure' which instantiates (i.e., don't
20664 # use $as_me), people would be surprised to read:
20665 # /* config.h. Generated automatically by config.status. */
20666 if test x"$ac_file" = x-; then
20667 echo "/* Generated automatically by configure. */" >"$tmp"/config.h
20668 else
20669 echo "/* $ac_file. Generated automatically by configure. */" >"$tmp"/config.h
20670 fi
20671 cat "$tmp"/in >>"$tmp"/config.h
20672 rm -f "$tmp"/in
20673 if test x"$ac_file" != x-; then
20674 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
20675 { echo "$as_me:20675: $ac_file is unchanged" >&5
20676 echo "$as_me: $ac_file is unchanged" >&6;}
20677 else
20678 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20679 X"$ac_file" : 'X\(//\)[^/]' \| \
20680 X"$ac_file" : 'X\(//\)$' \| \
20681 X"$ac_file" : 'X\(/\)' \| \
20682 . : '\(.\)' 2>/dev/null ||
20683 echo X"$ac_file" |
20684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20686 /^X\(\/\/\)$/{ s//\1/; q; }
20687 /^X\(\/\).*/{ s//\1/; q; }
20688 s/.*/./; q'`
20689 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20690 { case "$ac_dir" in
20691 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
20692 *) as_incr_dir=.;;
20693 esac
20694 as_dummy="$ac_dir"
20695 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
20696 case $as_mkdir_dir in
20697 # Skip DOS drivespec
20698 ?:) as_incr_dir=$as_mkdir_dir ;;
20699 *)
20700 as_incr_dir=$as_incr_dir/$as_mkdir_dir
20701 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
20702 ;;
20703 esac
20704 done; }
20705
20706 fi
20707 rm -f "$ac_file"
20708 mv "$tmp/config.h" "$ac_file"
20709 fi
20710 else
20711 cat "$tmp"/config.h
20712 rm -f "$tmp"/config.h
20713 fi
20714 done
20715 EOF
20716 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<\EOF
20717 #
20718 # CONFIG_COMMANDS section.
20719 #
20720 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20721 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20722 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20723
20724 case "$ac_dest" in
20725 default )
20726 $AWK -v PACKAGE=$PACKAGE -f $srcdir/mk-pkg.awk </dev/null >> Makefile
20727 if test -z "$USE_OLD_MAKERULES" ; then
20728 $AWK -f $srcdir/mk-1st.awk <$srcdir/src/modules >>src/Makefile
20729 fi
20730 ;;
20731 esac
20732 done
20733 EOF
20734
20735 catscip-shell system . . cat. >>"$CONFIG_STATUS" <<\EOF
20736
20737 { (exit 0); exit 0; }
20738 EOF
20739 chmodscip-shell system . . chmod. +x "$CONFIG_STATUS"
20740 ac_clean_files=$ac_clean_files_save
20741
20742 # configure is writing to config.log, and then calls config.status.
20743 # config.status does its own redirection, appending to config.log.
20744 # Unfortunately, on DOS this fails, as config.log is still kept open
20745 # by configure, so config.status won't be able to write to it; its
20746 # output is simply discarded. So we exec the FD to /dev/null,
20747 # effectively closing config.log, so it can be properly (re)opened and
20748 # appended to by config.status. When coming back to configure, we
20749 # need to make the FD available again.
20750 if testscip-shell system . . test. "$no_create" != yes; then
20751 ac_cs_success=:
20752 exec 5>/dev/nullscip-shell filesystem . . `/dev/null`.
20753 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
20754 exec 5>>config.log
20755 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20756 # would make configure fail if this is the last instruction.
20757 "$ac_cs_success" || { (exit 1); exit 1; }
20758 fi
20759
20760 ${MAKE:-make} preinstall