- Timestamp:
- May 27, 2015, 1:51:38 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- f7d59bf
- Parents:
- 4d51835
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
r4d51835 r42336618 5320 5320 5321 5321 # Checks for library functions. 5322 for ac_header in stdlib.h5323 do :5324 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"5325 if test "x$ac_cv_header_stdlib_h" = xyes; then :5326 cat >>confdefs.h <<_ACEOF5327 #define HAVE_STDLIB_H 15328 _ACEOF5329 5330 fi5331 5332 done5333 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&55335 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }5336 if ${ac_cv_func_malloc_0_nonnull+:} false; then :5337 $as_echo_n "(cached) " >&65338 else5339 if test "$cross_compiling" = yes; then :5340 ac_cv_func_malloc_0_nonnull=no5341 else5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext5343 /* end confdefs.h. */5344 #if defined STDC_HEADERS || defined HAVE_STDLIB_H5345 # include <stdlib.h>5346 #else5347 char *malloc ();5348 #endif5349 5350 int5351 main ()5352 {5353 return ! malloc (0);5354 ;5355 return 0;5356 }5357 _ACEOF5358 if ac_fn_c_try_run "$LINENO"; then :5359 ac_cv_func_malloc_0_nonnull=yes5360 else5361 ac_cv_func_malloc_0_nonnull=no5362 fi5363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \5364 conftest.$ac_objext conftest.beam conftest.$ac_ext5365 fi5366 5367 fi5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&55369 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }5370 if test $ac_cv_func_malloc_0_nonnull = yes; then :5371 5372 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h5373 5374 else5375 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h5376 5377 case " $LIBOBJS " in5378 *" malloc.$ac_objext "* ) ;;5379 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"5380 ;;5381 esac5382 5383 5384 $as_echo "#define malloc rpl_malloc" >>confdefs.h5385 5386 fi5387 5388 5389 for ac_header in stdlib.h5390 do :5391 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"5392 if test "x$ac_cv_header_stdlib_h" = xyes; then :5393 cat >>confdefs.h <<_ACEOF5394 #define HAVE_STDLIB_H 15395 _ACEOF5396 5397 fi5398 5399 done5400 5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&55402 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }5403 if ${ac_cv_func_realloc_0_nonnull+:} false; then :5404 $as_echo_n "(cached) " >&65405 else5406 if test "$cross_compiling" = yes; then :5407 ac_cv_func_realloc_0_nonnull=no5408 else5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext5410 /* end confdefs.h. */5411 #if defined STDC_HEADERS || defined HAVE_STDLIB_H5412 # include <stdlib.h>5413 #else5414 char *realloc ();5415 #endif5416 5417 int5418 main ()5419 {5420 return ! realloc (0, 0);5421 ;5422 return 0;5423 }5424 _ACEOF5425 if ac_fn_c_try_run "$LINENO"; then :5426 ac_cv_func_realloc_0_nonnull=yes5427 else5428 ac_cv_func_realloc_0_nonnull=no5429 fi5430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \5431 conftest.$ac_objext conftest.beam conftest.$ac_ext5432 fi5433 5434 fi5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&55436 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }5437 if test $ac_cv_func_realloc_0_nonnull = yes; then :5438 5439 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h5440 5441 else5442 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h5443 5444 case " $LIBOBJS " in5445 *" realloc.$ac_objext "* ) ;;5446 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"5447 ;;5448 esac5449 5450 5451 $as_echo "#define realloc rpl_realloc" >>confdefs.h5452 5453 fi5454 5455 5456 5322 for ac_func in memset putenv strchr strtol 5457 5323 do :
Note: See TracChangeset
for help on using the changeset viewer.