* fports.c (scm_fgets): Return if the last char in a chunk is
[bpt/guile.git] / aclocal.m4
CommitLineData
5aadf8c1
MG
1dnl aclocal.m4 generated automatically by aclocal 1.2c
2
3dnl Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
4dnl This Makefile.in is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved.
7
8dnl This program is distributed in the hope that it will be useful,
9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11dnl PARTICULAR PURPOSE.
ebf50833 12
3a629497
JB
13dnl On the NeXT, #including <utime.h> doesn't give you a definition for
14dnl struct utime, unless you #define _POSIX_SOURCE.
15
16AC_DEFUN(GUILE_STRUCT_UTIMBUF, [
17 AC_CACHE_CHECK([whether we need POSIX to get struct utimbuf],
18 guile_cv_struct_utimbuf_needs_posix,
19 [AC_TRY_CPP([
20#ifdef __EMX__
21#include <sys/utime.h>
22#else
23#include <utime.h>
24#endif
25struct utime blah;
26],
27 guile_cv_struct_utimbuf_needs_posix=no,
28 guile_cv_struct_utimbuf_needs_posix=yes)])
29 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
30 AC_DEFINE(UTIMBUF_NEEDS_POSIX)
31 fi])
32
33
34
35
36dnl
37dnl Apparently, at CMU they have a weird version of libc.h that is
38dnl installed in /usr/local/include and conflicts with unistd.h.
39dnl In these situations, we should not #include libc.h.
40dnl This test arranges to #define LIBC_H_WITH_UNISTD_H iff libc.h is
41dnl present on the system, and is safe to #include.
42dnl
43AC_DEFUN([GUILE_HEADER_LIBC_WITH_UNISTD],
44 [
45 AC_CHECK_HEADERS(libc.h unistd.h)
46 AC_CACHE_CHECK(
47 "whether libc.h and unistd.h can be included together",
48 guile_cv_header_libc_with_unistd,
49 [
50 if test "$ac_cv_header_libc_h" = "no"; then
51 guile_cv_header_libc_with_unistd="no"
52 elif test "$ac_cv_header_unistd.h" = "no"; then
53 guile_cv_header_libc_with_unistd="yes"
54 else
55 AC_TRY_COMPILE(
56 [
57# include <libc.h>
58# include <unistd.h>
59 ],
60 [],
61 [guile_cv_header_libc_with_unistd=yes],
62 [guile_cv_header_libc_with_unistd=no]
63 )
64 fi
65 ]
66 )
67 if test "$guile_cv_header_libc_with_unistd" = yes; then
68 AC_DEFINE(LIBC_H_WITH_UNISTD_H)
69 fi
70 ]
71)
72
0b89e78e
MD
73
74
75dnl This is needed when we want to check for the same function repeatedly
76dnl with other parameters, such as libraries, varying.
77dnl
78dnl GUILE_NAMED_CHECK_FUNC(FUNCTION, TESTNAME,
79dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
80AC_DEFUN(GUILE_NAMED_CHECK_FUNC,
81[AC_MSG_CHECKING([for $1])
82AC_CACHE_VAL(ac_cv_func_$1_$2,
83[AC_TRY_LINK(
84dnl Don't include <ctype.h> because on OSF/1 3.0 it includes <sys/types.h>
85dnl which includes <sys/select.h> which contains a prototype for
86dnl select. Similarly for bzero.
87[/* System header to define __stub macros and hopefully few prototypes,
88 which can conflict with char $1(); below. */
89#include <assert.h>
90/* Override any gcc2 internal prototype to avoid an error. */
91]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus
92extern "C"
93#endif
94])dnl
95[/* We use char because int might match the return type of a gcc2
96 builtin and then its argument prototype would still apply. */
97char $1();
98], [
99/* The GNU C library defines this for functions which it implements
100 to always fail with ENOSYS. Some functions are actually named
101 something starting with __ and the normal name is an alias. */
102#if defined (__stub_$1) || defined (__stub___$1)
103choke me
104#else
105$1();
106#endif
107], eval "ac_cv_func_$1_$2=yes", eval "ac_cv_func_$1_$2=no")])
108if eval "test \"`echo '$ac_cv_func_'$1'_'$2`\" = yes"; then
109 AC_MSG_RESULT(yes)
110 ifelse([$3], , :, [$3])
111else
112 AC_MSG_RESULT(no)
113ifelse([$4], , , [$4
114])dnl
115fi
116])
117
db1e65d5
TP
118
119
120dnl Check checks whether dlsym (if present) requires a leading underscore.
121dnl Written by Dan Hagerty <hag@ai.mit.edu> for scsh-0.5.0.
122AC_DEFUN(GUILE_DLSYM_USCORE, [
123 AC_MSG_CHECKING(for underscore before symbols)
124 AC_CACHE_VAL(guile_cv_uscore,[
125 echo "main(){int i=1;}
126 fnord(){int i=23; int ltuae=42;}" > conftest.c
127 ${CC} conftest.c > /dev/null
128 if (nm a.out | grep _fnord) > /dev/null; then
129 guile_cv_uscore=yes
130 else
131 guile_cv_uscore=no
132 fi])
133 AC_MSG_RESULT($guile_cv_uscore)
134 rm -f conftest.c a.out
135
136 if test $guile_cv_uscore = yes; then
137 AC_DEFINE(USCORE)
138
139 if test $ac_cv_func_dlopen = yes -o $ac_cv_lib_dl_dlopen = yes ; then
140 AC_MSG_CHECKING(whether dlsym always adds an underscore for us)
141 AC_CACHE_VAL(guile_cv_dlsym_adds_uscore,AC_TRY_RUN( [
142#include <dlfcn.h>
143#include <stdio.h>
144fnord() { int i=42;}
145main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
146 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
147 if(ptr1 && !ptr2) exit(0); } exit(1); }
148], [guile_cv_dlsym_adds_uscore=yes
5aadf8c1
MG
149 AC_DEFINE(DLSYM_ADDS_USCORE) ], guile_cv_dlsym_adds_uscore=no,
150 guile_cv_dlsym_adds_uscore=no))
db1e65d5
TP
151
152 AC_MSG_RESULT($guile_cv_dlsym_adds_uscore)
153 fi
154 fi
155])
156
733943b9
TT
157# Do all the work for Automake. This macro actually does too much --
158# some checks are only needed if your package does certain things.
159# But this isn't really a big deal.
160
161# serial 1
162
163dnl Usage:
1dc9c5b0 164dnl AM_INIT_AUTOMAKE(package,version, [no-define])
733943b9
TT
165
166AC_DEFUN(AM_INIT_AUTOMAKE,
167[AC_REQUIRE([AM_PROG_INSTALL])
168PACKAGE=[$1]
169AC_SUBST(PACKAGE)
733943b9
TT
170VERSION=[$2]
171AC_SUBST(VERSION)
c7b6463e
JB
172dnl test to see if srcdir already configured
173if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
174 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
175fi
1dc9c5b0
JB
176ifelse([$3],,
177AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
178AC_DEFINE_UNQUOTED(VERSION, "$VERSION"))
733943b9
TT
179AM_SANITY_CHECK
180AC_ARG_PROGRAM
1dc9c5b0
JB
181dnl FIXME This is truly gross.
182missing_dir=`cd $ac_aux_dir && pwd`
183AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
184AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
185AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
186AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
187AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
733943b9
TT
188AC_PROG_MAKE_SET])
189
190
191# serial 1
192
193AC_DEFUN(AM_PROG_INSTALL,
194[AC_REQUIRE([AC_PROG_INSTALL])
195test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
196AC_SUBST(INSTALL_SCRIPT)dnl
ebf50833 197])
733943b9
TT
198
199#
200# Check to make sure that the build environment is sane.
201#
202
203AC_DEFUN(AM_SANITY_CHECK,
204[AC_MSG_CHECKING([whether build environment is sane])
1dc9c5b0
JB
205# Just in case
206sleep 1
733943b9 207echo timestamp > conftestfile
1dc9c5b0
JB
208# Do `set' in a subshell so we don't clobber the current shell's
209# arguments. Must try -L first in case configure is actually a
210# symlink; some systems play weird games with the mod time of symlinks
211# (eg FreeBSD returns the mod time of the symlink's containing
212# directory).
213if (
214 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
5aadf8c1 215 if test "[$]*" = "X"; then
1dc9c5b0
JB
216 # -L didn't work.
217 set X `ls -t $srcdir/configure conftestfile`
218 fi
219 test "[$]2" = conftestfile
220 )
733943b9
TT
221then
222 # Ok.
223 :
224else
225 AC_MSG_ERROR([newly created file is older than distributed files!
226Check your system clock])
227fi
228rm -f conftest*
229AC_MSG_RESULT(yes)])
230
1dc9c5b0
JB
231dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
232dnl The program must properly implement --version.
233AC_DEFUN(AM_MISSING_PROG,
234[AC_MSG_CHECKING(for working $2)
235# Run test in a subshell; some versions of sh will print an error if
236# an executable is not found, even if stderr is redirected.
c7b6463e
JB
237# Redirect stdin to placate older versions of autoconf. Sigh.
238if ($2 --version) < /dev/null > /dev/null 2>&1; then
1dc9c5b0
JB
239 $1=$2
240 AC_MSG_RESULT(found)
241else
242 $1="$3/missing $2"
243 AC_MSG_RESULT(missing)
244fi
245AC_SUBST($1)])
246
15ae1bee
MD
247# Add --enable-maintainer-mode option to configure.
248# From Jim Meyering
249
250# serial 1
251
252AC_DEFUN(AM_MAINTAINER_MODE,
253[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
254 dnl maintainer-mode is disabled by default
255 AC_ARG_ENABLE(maintainer-mode,
256[ --enable-maintainer-mode enable make rules and dependencies not useful
257 (and sometimes confusing) to the casual installer],
258 USE_MAINTAINER_MODE=$enableval,
259 USE_MAINTAINER_MODE=no)
260 AC_MSG_RESULT($USE_MAINTAINER_MODE)
261 if test $USE_MAINTAINER_MODE = yes; then
262 MAINT=
263 else
264 MAINT='#M#'
265 fi
266 AC_SUBST(MAINT)dnl
267]
268)
269
3a629497
JB
270# Like AC_CONFIG_HEADER, but automatically create stamp file.
271
272AC_DEFUN(AM_CONFIG_HEADER,
273[AC_PREREQ([2.12])
274AC_CONFIG_HEADER([$1])
275dnl When config.status generates a header, we must update the stamp-h file.
276dnl This file resides in the same directory as the config header
277dnl that is generated. We must strip everything past the first ":",
278dnl and everything past the last "/".
279AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
c7b6463e
JB
280ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
281<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
282<<am_indx=1
283for am_file in <<$1>>; do
284 case " <<$>>CONFIG_HEADERS " in
285 *" <<$>>am_file "*<<)>>
286 echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
287 ;;
288 esac
289 am_indx=`expr "<<$>>am_indx" + 1`
290done<<>>dnl>>)
3a629497
JB
291changequote([,]))])
292
5aadf8c1 293
86c5044a 294# serial 15 AM_PROG_LIBTOOL
5aadf8c1
MG
295AC_DEFUN(AM_PROG_LIBTOOL,
296[AC_REQUIRE([AC_CANONICAL_HOST])
297AC_REQUIRE([AC_PROG_RANLIB])
298AC_REQUIRE([AC_PROG_CC])
299AC_REQUIRE([AM_PROG_LD])
300AC_REQUIRE([AM_PROG_NM])
301AC_REQUIRE([AC_PROG_LN_S])
302
303# Always use our own libtool.
304LIBTOOL='$(SHELL) $(top_builddir)/libtool'
305AC_SUBST(LIBTOOL)
306
307dnl Allow the --disable-shared flag to stop us from building shared libs.
308AC_ARG_ENABLE(shared,
309[ --enable-shared build shared libraries [default=yes]],
310[if test "$enableval" = no; then
86c5044a 311 enable_shared=no
5aadf8c1 312else
86c5044a 313 enable_shared=yes
5aadf8c1
MG
314fi])
315libtool_shared=
316test "$enable_shared" = no && libtool_shared=" --disable-shared"
317
318dnl Allow the --disable-static flag to stop us from building static libs.
319AC_ARG_ENABLE(static,
320[ --enable-static build static libraries [default=yes]],
321[if test "$enableval" = no; then
86c5044a 322 enable_static=no
5aadf8c1 323else
86c5044a 324 enable_static=yes
5aadf8c1
MG
325fi])
326libtool_static=
327test "$enable_static" = no && libtool_static=" --disable-static"
328
329libtool_flags="$libtool_shared$libtool_static"
330test "$silent" = yes && libtool_flags="$libtool_flags --silent"
331test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
332test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
333
334# Some flags need to be propagated to the compiler or linker for good
335# libtool support.
336[case "$host" in
337*-*-irix6*)
338 ac_save_CFLAGS="$CFLAGS"
86c5044a
MD
339 # -n32 always needs to be added to the linker when using GCC.
340 test "$ac_cv_prog_gcc" = yes && CFLAGS="$CFLAGS -n32"
341 for f in '-32' '-64' '-cckr' '-n32' '-mips1' '-mips2' '-mips3' '-mips4'; do
342 if echo " $CC $CFLAGS " | egrep -e "[ ]$f[ ]" > /dev/null; then
343 LD="${LD-ld} $f"
344 fi
5aadf8c1
MG
345 done
346 CFLAGS="$ac_save_CFLAGS"
347 ;;
348
349*-*-sco3.2v5*)
350 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
351 CFLAGS="$CFLAGS -belf"
352 ;;
353esac]
354
355# Actually configure libtool. ac_aux_dir is where install-sh is found.
356CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
357LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
358${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
359$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
360|| AC_MSG_ERROR([libtool configure failed])
361])
362
363# AM_PROG_LD - find the path to the GNU or non-GNU linker
364AC_DEFUN(AM_PROG_LD,
365[AC_ARG_WITH(gnu-ld,
366[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
367test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
368AC_REQUIRE([AC_PROG_CC])
369ac_prog=ld
370if test "$ac_cv_prog_gcc" = yes; then
371 # Check if gcc -print-prog-name=ld gives a path.
372 AC_MSG_CHECKING([for ld used by GCC])
373 ac_prog=`($CC -print-prog-name=ld) 2>&5`
374 case "$ac_prog" in
375 # Accept absolute paths.
ef0f106f
TP
376 /*)
377 test -z "$LD" && LD="$ac_prog"
378 ;;
5aadf8c1
MG
379 "")
380 # If it fails, then pretend we aren't using GCC.
381 ac_prog=ld
382 ;;
383 *)
384 # If it is relative, then search for the first ld in PATH.
385 with_gnu_ld=unknown
386 ;;
387 esac
388elif test "$with_gnu_ld" = yes; then
389 AC_MSG_CHECKING([for GNU ld])
390else
391 AC_MSG_CHECKING([for non-GNU ld])
392fi
393AC_CACHE_VAL(ac_cv_path_LD,
394[if test -z "$LD"; then
395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
396 for ac_dir in $PATH; do
397 test -z "$ac_dir" && ac_dir=.
398 if test -f "$ac_dir/$ac_prog"; then
399 ac_cv_path_LD="$ac_dir/$ac_prog"
400 # Check to see if the program is GNU ld. I'd rather use --version,
401 # but apparently some GNU ld's only accept -v.
402 # Break only if it was the GNU/non-GNU ld that we prefer.
403 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
404 test "$with_gnu_ld" != no && break
405 else
406 test "$with_gnu_ld" != yes && break
407 fi
408 fi
409 done
410 IFS="$ac_save_ifs"
411else
412 ac_cv_path_LD="$LD" # Let the user override the test with a path.
413fi])
414LD="$ac_cv_path_LD"
415if test -n "$LD"; then
416 AC_MSG_RESULT($LD)
417else
418 AC_MSG_RESULT(no)
419fi
420test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
421AC_SUBST(LD)
422AM_PROG_LD_GNU
423])
424
425AC_DEFUN(AM_PROG_LD_GNU,
426[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
427[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
428if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
429 ac_cv_prog_gnu_ld=yes
430else
431 ac_cv_prog_gnu_ld=no
432fi])
433])
434
435# AM_PROG_NM - find the path to a BSD-compatible name lister
436AC_DEFUN(AM_PROG_NM,
437[AC_MSG_CHECKING([for BSD-compatible nm])
438AC_CACHE_VAL(ac_cv_path_NM,
439[case "$NM" in
440/*)
441 ac_cv_path_NM="$NM" # Let the user override the test with a path.
442 ;;
443*)
444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
445 for ac_dir in /usr/ucb $PATH /bin; do
446 test -z "$ac_dir" && dir=.
447 if test -f $ac_dir/nm; then
448 # Check to see if the nm accepts a BSD-compat flag.
449 if ($ac_dir/nm -B /dev/null 2>&1; exit 0) | grep /dev/null >/dev/null; then
450 ac_cv_path_NM="$ac_dir/nm -B"
451 elif ($ac_dir/nm -p /dev/null 2>&1; exit 0) | grep /dev/null >/dev/null; then
452 ac_cv_path_NM="$ac_dir/nm -p"
453 else
454 ac_cv_path_NM="$ac_dir/nm"
455 fi
456 break
457 fi
458 done
459 IFS="$ac_save_ifs"
460 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
461 ;;
462esac])
463NM="$ac_cv_path_NM"
464AC_MSG_RESULT([$NM])
465AC_SUBST(NM)
466])
467
3a629497
JB
468dnl
469dnl CY_AC_WITH_THREADS determines which thread library the user intends
470dnl to put underneath guile. Pass it the path to find the guile top-level
471dnl source directory. Eg CY_AC_WITH_THREADS(../..) for tcl/unix.
472dnl
473
474AC_DEFUN([CY_AC_WITH_THREADS],[
475AC_CACHE_CHECK("threads package type",cy_cv_threads_package,[
476AC_CACHE_VAL(cy_cv_threads_cflags,[
477AC_CACHE_VAL(cy_cv_threads_libs,[
478use_threads=no;
479AC_ARG_WITH(threads,[ --with-threads thread interface],
480 use_threads=$withval, use_threads=no)
481test -n "$use_threads" || use_threads=qt
482threads_package=unknown
483if test "$use_threads" != no; then
484dnl
485dnl Test for the qt threads package - used for cooperative threads
486dnl This may not necessarily be built yet - so just check for the
487dnl header files.
488dnl
489 if test "$use_threads" = yes || test "$use_threads" = qt; then
ec06dd30
AG
490 # Look for qt in source directory.
491 if test -f $srcdir/qt/qt.c; then
492 qtsrcdir="`(cd $srcdir; pwd)`/qt"
3a629497 493 threads_package=COOP
ec06dd30 494 cy_cv_threads_cflags="-I$qtsrcdir -I../qt"
5aadf8c1 495 cy_cv_threads_libs="../qt/libqthreads.a"
3a629497
JB
496 fi
497 else
498 if test -f $use_threads/qt.c; then
499 # FIXME seems as though we should try to use an installed qt here.
500 threads_package=COOP
501 cy_cv_threads_cflags="-I$use_threads -I../qt"
5aadf8c1 502 cy_cv_threads_libs="../qt/libqthreads.a"
3a629497
JB
503 fi
504 fi
505 if test "$use_threads" = pthreads; then
506 # Look for pthreads in srcdir. See above to understand why
507 # we always set threads_package.
508 if test -f $srcdir/../../pthreads/pthreads/queue.c \
509 || test -f $srcdir/../pthreads/pthreads/queue.c; then
510 threads_package=MIT
511 cy_cv_threads_cflags="-I$srcdir/../../pthreads/include"
512 cy_cv_threads_libs="-L../../pthreads/lib -lpthread"
513 fi
514 fi
515 saved_CPP="$CPPFLAGS"
516 saved_LD="$LDFLAGS"
517 saved_LIBS="$LIBS"
518 if test "$threads_package" = unknown; then
519dnl
520dnl Test for the FSU threads package
521dnl
522 CPPFLAGS="-I$use_threads/include"
523 LDFLAGS="-L$use_threads/lib"
524 LIBS="-lgthreads -lmalloc"
525 AC_TRY_LINK([#include <pthread.h>],[
526pthread_equal(NULL,NULL);
527], threads_package=FSU)
528 fi
529 if test "$threads_package" = unknown; then
530dnl
531dnl Test for the MIT threads package
532dnl
533 LIBS="-lpthread"
534 AC_TRY_LINK([#include <pthread.h>],[
535pthread_equal(NULL,NULL);
536], threads_package=MIT)
537 fi
538 if test "$threads_package" = unknown; then
539dnl
540dnl Test for the PCthreads package
541dnl
542 LIBS="-lpthreads"
543 AC_TRY_LINK([#include <pthread.h>],[
544pthread_equal(NULL,NULL);
545], threads_package=PCthreads)
546 fi
547dnl
548dnl Set the appropriate flags!
549dnl
550 cy_cv_threads_cflags="$CPPFLAGS $cy_cv_threads_cflags"
551 cy_cv_threads_libs="$LDFLAGS $LIBS $cy_cv_threads_libs"
552 cy_cv_threads_package=$threads_package
553 CPPFLAGS="$saved_CPP"
554 LDFLAGS="$saved_LD"
555 LIBS="$saved_LIBS"
556 if test "$threads_package" = unknown; then
557 AC_MSG_ERROR("cannot find thread library installation")
558 fi
559fi
560])
561])
562],
563dnl
564dnl Set flags according to what is cached.
565dnl
566CPPFLAGS="$cy_cv_threads_cflags"
567LIBS="$cy_cv_threads_libs"
568)
569])
570