llvm.org GIT mirror llvm / 342a343
Update configure and config.h.in from r74621. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74623 91177308-0d34-0410-b5e6-96231b3b80d8 Jeffrey Yasskin 11 years ago
2 changed file(s) with 116 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
3135531355
3135631356
3135731357
31358
31359
31360 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31358 for ac_func in mktemp realpath sbrk setrlimit strdup
31359 do
31360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31364 echo $ECHO_N "(cached) $ECHO_C" >&6
31365 else
31366 cat >conftest.$ac_ext <<_ACEOF
31367 /* confdefs.h. */
31368 _ACEOF
31369 cat confdefs.h >>conftest.$ac_ext
31370 cat >>conftest.$ac_ext <<_ACEOF
31371 /* end confdefs.h. */
31372 /* Define $ac_func to an innocuous variant, in case declares $ac_func.
31373 For example, HP-UX 11i declares gettimeofday. */
31374 #define $ac_func innocuous_$ac_func
31375
31376 /* System header to define __stub macros and hopefully few prototypes,
31377 which can conflict with char $ac_func (); below.
31378 Prefer to if __STDC__ is defined, since
31379 exists even on freestanding compilers. */
31380
31381 #ifdef __STDC__
31382 # include
31383 #else
31384 # include
31385 #endif
31386
31387 #undef $ac_func
31388
31389 /* Override any GCC internal prototype to avoid an error.
31390 Use char because int might match the return type of a GCC
31391 builtin and then its argument prototype would still apply. */
31392 #ifdef __cplusplus
31393 extern "C"
31394 #endif
31395 char $ac_func ();
31396 /* The GNU C library defines this for functions which it implements
31397 to always fail with ENOSYS. Some functions are actually named
31398 something starting with __ and the normal name is an alias. */
31399 #if defined __stub_$ac_func || defined __stub___$ac_func
31400 choke me
31401 #endif
31402
31403 int
31404 main ()
31405 {
31406 return $ac_func ();
31407 ;
31408 return 0;
31409 }
31410 _ACEOF
31411 rm -f conftest.$ac_objext conftest$ac_exeext
31412 if { (ac_try="$ac_link"
31413 case "(($ac_try" in
31414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31415 *) ac_try_echo=$ac_try;;
31416 esac
31417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31418 (eval "$ac_link") 2>conftest.er1
31419 ac_status=$?
31420 grep -v '^ *+' conftest.er1 >conftest.err
31421 rm -f conftest.er1
31422 cat conftest.err >&5
31423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424 (exit $ac_status); } &&
31425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31426 { (case "(($ac_try" in
31427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31428 *) ac_try_echo=$ac_try;;
31429 esac
31430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31431 (eval "$ac_try") 2>&5
31432 ac_status=$?
31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 (exit $ac_status); }; } &&
31435 { ac_try='test -s conftest$ac_exeext'
31436 { (case "(($ac_try" in
31437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31438 *) ac_try_echo=$ac_try;;
31439 esac
31440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31441 (eval "$ac_try") 2>&5
31442 ac_status=$?
31443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31444 (exit $ac_status); }; }; then
31445 eval "$as_ac_var=yes"
31446 else
31447 echo "$as_me: failed program was:" >&5
31448 sed 's/^/| /' conftest.$ac_ext >&5
31449
31450 eval "$as_ac_var=no"
31451 fi
31452
31453 rm -f core conftest.err conftest.$ac_objext \
31454 conftest$ac_exeext conftest.$ac_ext
31455 fi
31456 ac_res=`eval echo '${'$as_ac_var'}'`
31457 { echo "$as_me:$LINENO: result: $ac_res" >&5
31458 echo "${ECHO_T}$ac_res" >&6; }
31459 if test `eval echo '${'$as_ac_var'}'` = yes; then
31460 cat >>confdefs.h <<_ACEOF
31461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31462 _ACEOF
31463
31464 fi
31465 done
31466
31467
31468
31469
31470 for ac_func in strerror strerror_r strerror_s
3136131471 do
3136231472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3136331473 { echo "$as_me:$LINENO: checking for $ac_func" >&5
367367
368368 /* Define to 1 if you have the `strerror_r' function. */
369369 #undef HAVE_STRERROR_R
370
371 /* Define to 1 if you have the `strerror_s' function. */
372 #undef HAVE_STRERROR_S
370373
371374 /* Define to 1 if you have the header file. */
372375 #undef HAVE_STRINGS_H