Daily bump.
[gcc.git] / libstdc++-v3 / configure.in
1 # Process this file with autoconf to produce a configure script, like so:
2 # aclocal && autoconf && autoheader && automake
3
4 AC_PREREQ(2.13)
5 AC_INIT(src/ios.cc)
6
7 # This works around the fact that libtool configuration may change LD
8 # for this particular configuration, but some shells, instead of
9 # keeping the changes in LD private, export them just because LD is
10 # exported. Only used at the end of this file.
11 ORIGINAL_LD_FOR_MULTILIBS=$LD
12
13 PACKAGE=libstdc++
14 AC_SUBST(PACKAGE)
15 # For libtool versioning info, format is CURRENT:REVISION:AGE
16 libtool_VERSION=6:0:0
17 AC_SUBST(libtool_VERSION)
18
19 GLIBCPP_TOPREL_CONFIGURE
20
21 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
22 #
23 # You will slowly go insane if you do not grok the following fact: when
24 # building v3 as part of the compiler, the top-level /target/ becomes the
25 # library's /host/. `configure' then causes --target to default to --host,
26 # exactly like any other package using autoconf. Therefore, 'target' and
27 # 'host' will always be the same. This makes sense both for native and
28 # cross compilers, just think about it for a little while. :-)
29 #
30 # Also, if v3 is being configured as part of a cross compiler, the top-level
31 # configure script will pass the "real" host as $with_cross_host.
32 #
33 # AC 2.5x sets target_alias iff the user specified --target, but we use it
34 # everywhere, so we set it here just to be sure. In AC 2.13
35 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
36 AC_CANONICAL_SYSTEM
37 target_alias=${target_alias-$target}
38 AC_SUBST(target_alias)
39
40 # Runs configure.target, finds CC, CXX and assorted other critical bits.
41 # Must run this before the GLIBCPP_ENABLE_* macros below.
42 GLIBCPP_CONFIGURE(.)
43
44 AM_INIT_AUTOMAKE($PACKAGE, $gcc_version)
45 AM_CONFIG_HEADER(config.h)
46
47 AC_LIBTOOL_DLOPEN
48 AM_PROG_LIBTOOL
49 AC_SUBST(enable_shared)
50 AC_SUBST(enable_static)
51
52 # Check for c++ or library specific bits that don't require linking.
53 #GLIBCPP_CHECK_COMPILER_VERSION
54 GLIBCPP_CHECK_GNU_MAKE
55
56 # Enable all the variable C++ stuff. C_MBCHAR must come early.
57 GLIBCPP_ENABLE_CSTDIO
58 GLIBCPP_ENABLE_CLOCALE
59 GLIBCPP_ENABLE_CHEADERS([$c_model])
60 GLIBCPP_ENABLE_C_MBCHAR([yes])
61 GLIBCPP_ENABLE_C99([yes])
62 GLIBCPP_ENABLE_LONG_LONG([yes])
63 GLIBCPP_ENABLE_THREADS
64 GLIBCPP_ENABLE_SJLJ_EXCEPTIONS
65 GLIBCPP_ENABLE_LIBUNWIND_EXCEPTIONS
66 GLIBCPP_ENABLE_CONCEPT_CHECKS
67 GLIBCPP_ENABLE_CXX_FLAGS
68 GLIBCPP_ENABLE_DEBUG([no])
69 GLIBCPP_ENABLE_DEBUG_FLAGS([none])
70
71 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
72 AC_CHECK_HEADERS(string.h stdlib.h)
73
74 # No surprises, no surprises...
75 if test $ATOMICITYH = cpu/generic ; then
76 AC_MSG_WARN([No native atomic operations are provided yet for this platform.])
77 if test $target_thread_file = single; then
78 AC_MSG_WARN([They cannot be faked when thread support is disabled.])
79 AC_MSG_WARN([Thread-safety of certain classes is not guaranteed.])
80 else
81 AC_MSG_WARN([They will be faked using a mutex.])
82 AC_MSG_WARN([Performance of certain classes will degrade as a result.])
83 fi
84 fi
85
86
87 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
88
89 # We are being configured with some form of cross compiler.
90 GLIBCPP_IS_CROSS_COMPILING=1
91
92 # This lets us hard-code the functionality we know we'll have in the cross
93 # target environment. "Let" is a sugar-coated word placed on an especially
94 # dull and tedious hack, actually.
95 #
96 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
97 # that involve linking, can't be used:
98 # "cannot open sim-crt0.o"
99 # "cannot open crt0.o"
100 # etc. All this is because there currently exists no unified, consistent
101 # way for top level CC information to be passed down to target directories:
102 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
103 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
104 # crosses can be removed.
105
106 # If Canadian cross, then don't pick up tools from the build directory.
107 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
108 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
109 CANADIAN=yes
110 else
111 CANADIAN=no
112 fi
113
114 # Construct crosses by hand, eliminating bits that need ld...
115 # GLIBCPP_CHECK_COMPILER_FEATURES
116 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
117 # GLIBCPP_CHECK_MATH_SUPPORT
118
119 case "$target" in
120 *-linux*)
121 os_include_dir="os/gnu-linux"
122 AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
123 machine/endian.h machine/param.h sys/machine.h sys/types.h \
124 fp.h locale.h float.h inttypes.h])
125 SECTION_FLAGS='-ffunction-sections -fdata-sections'
126 AC_SUBST(SECTION_FLAGS)
127 GLIBCPP_CHECK_LINKER_FEATURES
128 GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
129 GLIBCPP_CHECK_WCHAR_T_SUPPORT
130 AC_DEFINE(HAVE_COPYSIGN)
131 AC_DEFINE(HAVE_COPYSIGNF)
132 AC_DEFINE(HAVE_FINITE)
133 AC_DEFINE(HAVE_FINITEF)
134 AC_DEFINE(HAVE_FREXPF)
135 AC_DEFINE(HAVE_HYPOTF)
136 AC_DEFINE(HAVE_ISINF)
137 AC_DEFINE(HAVE_ISINFF)
138 AC_DEFINE(HAVE_ISNAN)
139 AC_DEFINE(HAVE_ISNANF)
140 AC_DEFINE(HAVE_SINCOS)
141 AC_DEFINE(HAVE_SINCOSF)
142 if test x"long_double_math_on_this_cpu" = x"yes"; then
143 AC_DEFINE(HAVE_FINITEL)
144 AC_DEFINE(HAVE_HYPOTL)
145 AC_DEFINE(HAVE_ISINFL)
146 AC_DEFINE(HAVE_ISNANL)
147 fi
148 ;;
149 *-hpux*)
150 # Check for available headers.
151 AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
152 machine/endian.h machine/param.h sys/machine.h sys/types.h \
153 fp.h locale.h float.h inttypes.h])
154 SECTION_FLAGS='-ffunction-sections -fdata-sections'
155 AC_SUBST(SECTION_FLAGS)
156 GLIBCPP_CHECK_LINKER_FEATURES
157 GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
158 GLIBCPP_CHECK_WCHAR_T_SUPPORT
159 os_include_dir="os/hpux"
160 AC_DEFINE(HAVE_COPYSIGN)
161 AC_DEFINE(HAVE_COPYSIGNF)
162 AC_DEFINE(HAVE_FREXPF)
163 AC_DEFINE(HAVE_HYPOT)
164 case "$target" in
165 *-hpux10*)
166 AC_DEFINE(HAVE_FINITE)
167 AC_DEFINE(HAVE_FINITEF)
168 AC_DEFINE(HAVE_ISINF)
169 AC_DEFINE(HAVE_ISINFF)
170 AC_DEFINE(HAVE_ISNAN)
171 AC_DEFINE(HAVE_ISNANF)
172 ;;
173 esac
174
175 ;;
176 *-netbsd*)
177 # Check for available headers.
178 AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
179 machine/endian.h machine/param.h sys/machine.h sys/types.h \
180 fp.h locale.h float.h inttypes.h])
181 SECTION_FLAGS='-ffunction-sections -fdata-sections'
182 AC_SUBST(SECTION_FLAGS)
183 GLIBCPP_CHECK_LINKER_FEATURES
184 GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
185 GLIBCPP_CHECK_WCHAR_T_SUPPORT
186 os_include_dir="os/bsd/netbsd"
187 AC_DEFINE(HAVE_COPYSIGN)
188 AC_DEFINE(HAVE_COPYSIGNF)
189 AC_DEFINE(HAVE_FINITEF)
190 AC_DEFINE(HAVE_FINITE)
191 AC_DEFINE(HAVE_FREXPF)
192 AC_DEFINE(HAVE_HYPOTF)
193 AC_DEFINE(HAVE_ISINF)
194 AC_DEFINE(HAVE_ISINFF)
195 AC_DEFINE(HAVE_ISNAN)
196 AC_DEFINE(HAVE_ISNANF)
197 if test x"long_double_math_on_this_cpu" = x"yes"; then
198 AC_DEFINE(HAVE_FINITEL)
199 AC_DEFINE(HAVE_ISINFL)
200 AC_DEFINE(HAVE_ISNANL)
201 fi
202 ;;
203 *-freebsd*)
204 # Check for available headers.
205 AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
206 machine/endian.h machine/param.h sys/machine.h sys/types.h \
207 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
208 sys/time.h unistd.h])
209 SECTION_FLAGS='-ffunction-sections -fdata-sections'
210 AC_SUBST(SECTION_FLAGS)
211 GLIBCPP_CHECK_LINKER_FEATURES
212 GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
213 GLIBCPP_CHECK_WCHAR_T_SUPPORT
214 os_include_dir="os/bsd/freebsd"
215 AC_DEFINE(HAVE_LC_MESSAGES)
216 AC_DEFINE(HAVE_DRAND48)
217 AC_DEFINE(HAVE_GETPAGESIZE)
218 AC_DEFINE(HAVE_SETENV)
219 AC_DEFINE(HAVE_SIGSETJMP)
220 AC_DEFINE(HAVE_COPYSIGN)
221 AC_DEFINE(HAVE_COPYSIGNF)
222 AC_DEFINE(HAVE_FINITEF)
223 AC_DEFINE(HAVE_FINITE)
224 AC_DEFINE(HAVE_FREXPF)
225 AC_DEFINE(HAVE_HYPOT)
226 AC_DEFINE(HAVE_HYPOTF)
227 AC_DEFINE(HAVE_ISINF)
228 AC_DEFINE(HAVE_ISNAN)
229 AC_DEFINE(HAVE_ISNANF)
230 if test x"long_double_math_on_this_cpu" = x"yes"; then
231 AC_DEFINE(HAVE_FINITEL)
232 AC_DEFINE(HAVE_ISINFL)
233 AC_DEFINE(HAVE_ISNANL)
234 fi
235 ;;
236 *-mingw32*)
237 AC_CHECK_HEADERS([sys/types.h locale.h float.h])
238 GLIBCPP_CHECK_LINKER_FEATURES
239 GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
240 GLIBCPP_CHECK_WCHAR_T_SUPPORT
241 os_include_dir="os/mingw32"
242 ;;
243 *-windiss*)
244 os_include_dir="os/windiss"
245 ;;
246 changequote(,)dnl
247 *-qnx6.[12]*)
248 changequote([,])dnl
249 SECTION_FLAGS='-ffunction-sections -fdata-sections'
250 AC_SUBST(SECTION_FLAGS)
251 GLIBCPP_CHECK_LINKER_FEATURES
252 GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
253 GLIBCPP_CHECK_WCHAR_T_SUPPORT
254 os_include_dir="os/qnx/qnx6.1"
255 AC_DEFINE(HAVE_COSF)
256 AC_DEFINE(HAVE_COSL)
257 AC_DEFINE(HAVE_COSHF)
258 AC_DEFINE(HAVE_COSHL)
259 AC_DEFINE(HAVE_LOGF)
260 AC_DEFINE(HAVE_LOGL)
261 AC_DEFINE(HAVE_LOG10F)
262 AC_DEFINE(HAVE_LOG10L)
263 AC_DEFINE(HAVE_SINF)
264 AC_DEFINE(HAVE_SINL)
265 AC_DEFINE(HAVE_SINHF)
266 AC_DEFINE(HAVE_SINHL)
267 ;;
268 *)
269 os_include_dir="os/newlib"
270 AC_DEFINE(HAVE_HYPOT)
271 ;;
272 esac
273
274 case "$target" in
275 *-mingw32*)
276 ;;
277 *-windiss*)
278 AC_DEFINE(HAVE_ACOSF)
279 AC_DEFINE(HAVE_ASINF)
280 AC_DEFINE(HAVE_ATAN2F)
281 AC_DEFINE(HAVE_ATANF)
282 AC_DEFINE(HAVE_CEILF)
283 AC_DEFINE(HAVE_COPYSIGN)
284 AC_DEFINE(HAVE_COPYSIGNF)
285 AC_DEFINE(HAVE_COSF)
286 AC_DEFINE(HAVE_COSHF)
287 AC_DEFINE(HAVE_EXPF)
288 AC_DEFINE(HAVE_FABSF)
289 AC_DEFINE(HAVE_FLOORF)
290 AC_DEFINE(HAVE_FMODF)
291 AC_DEFINE(HAVE_FREXPF)
292 AC_DEFINE(HAVE_LDEXPF)
293 AC_DEFINE(HAVE_LOG10F)
294 AC_DEFINE(HAVE_LOGF)
295 AC_DEFINE(HAVE_MODFF)
296 AC_DEFINE(HAVE_POWF)
297 AC_DEFINE(HAVE_SINF)
298 AC_DEFINE(HAVE_SINHF)
299 AC_DEFINE(HAVE_SQRTF)
300 AC_DEFINE(HAVE_TANF)
301 AC_DEFINE(HAVE_TANHF)
302 ;;
303 *-freebsd*)
304 # Must replicate generic section since we don't have strtof or strtold.
305 AC_DEFINE(HAVE_MMAP)
306 AC_DEFINE(HAVE_ACOSF)
307 AC_DEFINE(HAVE_ASINF)
308 AC_DEFINE(HAVE_ATAN2F)
309 AC_DEFINE(HAVE_ATANF)
310 AC_DEFINE(HAVE_CEILF)
311 AC_DEFINE(HAVE_COPYSIGN)
312 AC_DEFINE(HAVE_COPYSIGNF)
313 AC_DEFINE(HAVE_COSF)
314 AC_DEFINE(HAVE_COSHF)
315 AC_DEFINE(HAVE_EXPF)
316 AC_DEFINE(HAVE_FABSF)
317 AC_DEFINE(HAVE_FLOORF)
318 AC_DEFINE(HAVE_FMODF)
319 AC_DEFINE(HAVE_FREXPF)
320 AC_DEFINE(HAVE_LDEXPF)
321 AC_DEFINE(HAVE_LOG10F)
322 AC_DEFINE(HAVE_LOGF)
323 AC_DEFINE(HAVE_MODFF)
324 AC_DEFINE(HAVE_POWF)
325 AC_DEFINE(HAVE_SINF)
326 AC_DEFINE(HAVE_SINHF)
327 AC_DEFINE(HAVE_SQRTF)
328 AC_DEFINE(HAVE_TANF)
329 AC_DEFINE(HAVE_TANHF)
330 ;;
331 *)
332 # GLIBCPP_CHECK_STDLIB_SUPPORT
333 AC_DEFINE(HAVE_STRTOF)
334 AC_DEFINE(HAVE_STRTOLD)
335 # AC_FUNC_MMAP
336 AC_DEFINE(HAVE_MMAP)
337
338 AC_DEFINE(HAVE_ACOSF)
339 AC_DEFINE(HAVE_ASINF)
340 AC_DEFINE(HAVE_ATAN2F)
341 AC_DEFINE(HAVE_ATANF)
342 AC_DEFINE(HAVE_CEILF)
343 AC_DEFINE(HAVE_COPYSIGN)
344 AC_DEFINE(HAVE_COPYSIGNF)
345 AC_DEFINE(HAVE_COSF)
346 AC_DEFINE(HAVE_COSHF)
347 AC_DEFINE(HAVE_EXPF)
348 AC_DEFINE(HAVE_FABSF)
349 AC_DEFINE(HAVE_FLOORF)
350 AC_DEFINE(HAVE_FMODF)
351 AC_DEFINE(HAVE_FREXPF)
352 AC_DEFINE(HAVE_LDEXPF)
353 AC_DEFINE(HAVE_LOG10F)
354 AC_DEFINE(HAVE_LOGF)
355 AC_DEFINE(HAVE_MODFF)
356 AC_DEFINE(HAVE_POWF)
357 AC_DEFINE(HAVE_SINF)
358 AC_DEFINE(HAVE_SINHF)
359 AC_DEFINE(HAVE_SQRTF)
360 AC_DEFINE(HAVE_TANF)
361 AC_DEFINE(HAVE_TANHF)
362 ;;
363 esac
364
365 # At some point, we should differentiate between architectures
366 # like x86, which have long double versions, and alpha/powerpc/etc.,
367 # which don't. For the time being, punt.
368 if test x"long_double_math_on_this_cpu" = x"yes"; then
369 AC_DEFINE(HAVE_ACOSL)
370 AC_DEFINE(HAVE_ASINL)
371 AC_DEFINE(HAVE_ATAN2L)
372 AC_DEFINE(HAVE_ATANL)
373 AC_DEFINE(HAVE_CEILL)
374 AC_DEFINE(HAVE_COPYSIGNL)
375 AC_DEFINE(HAVE_COSL)
376 AC_DEFINE(HAVE_COSHL)
377 AC_DEFINE(HAVE_EXPL)
378 AC_DEFINE(HAVE_FABSL)
379 AC_DEFINE(HAVE_FLOORL)
380 AC_DEFINE(HAVE_FMODL)
381 AC_DEFINE(HAVE_FREXPL)
382 AC_DEFINE(HAVE_LDEXPL)
383 AC_DEFINE(HAVE_LOG10L)
384 AC_DEFINE(HAVE_LOGL)
385 AC_DEFINE(HAVE_MODFL)
386 AC_DEFINE(HAVE_POWL)
387 AC_DEFINE(HAVE_SINCOSL)
388 AC_DEFINE(HAVE_SINL)
389 AC_DEFINE(HAVE_SINHL)
390 AC_DEFINE(HAVE_SQRTL)
391 AC_DEFINE(HAVE_TANL)
392 AC_DEFINE(HAVE_TANHL)
393 fi
394
395 else
396
397 # We are being configured natively. We can do more elaborate tests
398 # that include AC_TRY_COMPILE now, as the linker is assumed to be
399 # working.
400 GLIBCPP_IS_CROSS_COMPILING=0
401 CANADIAN=no
402
403 # Check for available headers.
404 AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
405 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h])
406
407 GLIBCPP_CHECK_COMPILER_FEATURES
408 GLIBCPP_CHECK_LINKER_FEATURES
409 GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
410 GLIBCPP_CHECK_MATH_SUPPORT
411 GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
412 GLIBCPP_CHECK_WCHAR_T_SUPPORT
413 GLIBCPP_CHECK_STDLIB_SUPPORT
414 AC_LC_MESSAGES
415
416 AC_TRY_COMPILE([
417 #include <setjmp.h>
418 ], [sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);],
419 [AC_DEFINE(HAVE_SIGSETJMP, 1, [Define if sigsetjmp is available. ])
420 ])
421
422 AC_FUNC_MMAP
423
424 # Establish limits on memory usage during 'make check'
425 GLIBCPP_CONFIGURE_TESTSUITE
426 fi
427
428 # This depends on the possibly-skipped linker test above.
429 GLIBCPP_ENABLE_SYMVERS([yes])
430
431 # Propagate the target-specific source directories through the build chain.
432 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
433 # uses it, and it only gets used in this file.)
434 OS_INC_SRCDIR=config/${os_include_dir}
435 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
436 AC_SUBST(OS_INC_SRCDIR)
437 AC_SUBST(ATOMICITY_INC_SRCDIR)
438
439 # Set up cross-compile flags
440 AC_SUBST(GLIBCPP_IS_CROSS_COMPILING) dnl Unused so far.
441 AM_CONDITIONAL(CANADIAN, test "$CANADIAN" = yes)
442
443 AC_CACHE_SAVE
444
445 if test "${multilib}" = "yes"; then
446 multilib_arg="--enable-multilib"
447 else
448 multilib_arg=
449 fi
450
451 # Export all the install information
452 GLIBCPP_EXPORT_INSTALL_INFO
453
454 # Export all the include and flag information to Makefiles.
455 GLIBCPP_EXPORT_INCLUDES
456 GLIBCPP_EXPORT_FLAGS
457
458 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
459 grep "enable shared" > /dev/null; then
460 LIBSUPCXX_PICFLAGS=-prefer-pic
461 else
462 LIBSUPCXX_PICFLAGS=
463 fi
464 AC_SUBST(LIBSUPCXX_PICFLAGS)
465
466 # Generate the various Makefiles, include files, and scripts.
467 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
468 # and libsupc++/Makefile.am so that multilib installs will end up
469 # installed in the correct place. To work around this not being passed
470 # down from config-ml.in -> top_srcdir/Makefile.am ->
471 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
472 AC_OUTPUT(Makefile \
473 include/Makefile src/Makefile \
474 libmath/Makefile libio/Makefile libsupc++/Makefile \
475 po/Makefile testsuite/Makefile mkcheck testsuite_flags,
476 [test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
477 if test -n "$CONFIG_FILES"; then
478 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
479 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
480 # Ony modify Makefiles that are just being created.
481 case " $CONFIG_FILES" in
482 *" Makefile"*)
483 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
484 ;;
485 esac
486 case $CONFIG_FILES in
487 *src/Makefile*)
488 grep '^MULTISUBDIR =' Makefile >> src/Makefile
489 ;;
490 esac
491 case $CONFIG_FILES in
492 *libsupc++/Makefile*)
493 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
494 ;;
495 esac
496 fi
497 fi
498 chmod +x mkcheck
499 chmod +x testsuite_flags],
500 srcdir=${srcdir}
501 host=${host}
502 target=${target}
503 with_target_subdir=${with_target_subdir}
504 with_build_subdir=${with_build_subdir}
505 with_multisubdir=${with_multisubdir}
506 ac_configure_args="${multilib_arg} ${ac_configure_args}"
507 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
508 glibcpp_basedir=${glibcpp_basedir}
509 CC="${CC}"
510 CXX="${CXX}"
511 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
512 )
513 dnl In autoconf 2.5x, AC_OUTPUT is replaced by three AC_ macros:
514 dnl AC_CONFIG_FILES(Makefile \
515 dnl include/Makefile src/Makefile \
516 dnl libmath/Makefile libio/Makefile libsupc++/Makefile \
517 dnl po/Makefile testsuite/Makefile mkcheck testsuite_flags)
518 dnl AC_CONFIG_COMMANDS([default],
519 dnl [if test -n "$CONFIG_FILES"; then
520 dnl # Ony modify Makefiles that are just being created.
521 dnl case " $CONFIG_FILES" in
522 dnl *" Makefile"*)
523 dnl ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
524 dnl ;;
525 dnl esac
526 dnl case $CONFIG_FILES in
527 dnl *src/Makefile*)
528 dnl grep '^MULTISUBDIR =' Makefile >> src/Makefile
529 dnl ;;
530 dnl esac
531 dnl case $CONFIG_FILES in
532 dnl *libsupc++/Makefile*)
533 dnl grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
534 dnl ;;
535 dnl esac
536 dnl fi
537 dnl chmod +x mkcheck
538 dnl chmod +x testsuite_flags
539 dnl ],
540 dnl srcdir=${srcdir}
541 dnl host=${host}
542 dnl target=${target}
543 dnl with_multisubdir=${with_multisubdir}
544 dnl ac_configure_args="${multilib_arg} ${ac_configure_args}"
545 dnl CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
546 dnl glibcpp_basedir=${glibcpp_basedir}
547 dnl CC="${CC}"
548 dnl CXX="${CXX}"
549 dnl )
550 dnl AC_OUTPUT
551
552
553 # Sanity checking & User-visible messages.
554 # Checks down here, otherwise they get scrolled off before
555 # the user will notice.
556
557 # Trying to get more people to read documentation. Possibly remove
558 # check and warn all the time. There is no "informational" AC_MSG_
559 # macro, so these are going to be printed even when --quiet/--silent
560 # is given.
561 if test ! -f stamp-sanity-warned; then
562 touch stamp-sanity-warned
563 echo ""
564 echo "Please make certain that you read the installation information here:"
565 echo " faster => ${srcdir}/docs/html/install.html"
566 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
567 echo ""
568 echo "and the configuration information here:"
569 echo " faster => ${srcdir}/docs/html/configopts.html"
570 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
571 echo ""
572 echo "before proceeding with ${_cv_gnu_make_command}."
573 echo ""
574 fi