llvm.org GIT mirror llvm / 6bfead3
LLVM doesn't use libelf. Remove libelf configurey. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75643 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 11 years ago
4 changed file(s) with 0 addition(s) and 97 deletion(s). Raw diff Collapse all Expand all
863863 dnl===
864864 dnl===-----------------------------------------------------------------------===
865865
866 dnl libelf is for sparc only; we can ignore it if we don't have it
867 AC_CHECK_LIB(elf, elf_begin)
868866 AC_CHECK_LIB(m,sin)
869867 if test "$llvm_cv_os_type" = "MingW" ; then
870868 AC_CHECK_LIB(imagehlp, main)
2735227352 { echo "$as_me:$LINENO: result: ok" >&5
2735327353 echo "${ECHO_T}ok" >&6; }
2735427354
27355
27356
27357 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27358 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27359 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27360 echo $ECHO_N "(cached) $ECHO_C" >&6
27361 else
27362 ac_check_lib_save_LIBS=$LIBS
27363 LIBS="-lelf $LIBS"
27364 cat >conftest.$ac_ext <<_ACEOF
27365 /* confdefs.h. */
27366 _ACEOF
27367 cat confdefs.h >>conftest.$ac_ext
27368 cat >>conftest.$ac_ext <<_ACEOF
27369 /* end confdefs.h. */
27370
27371 /* Override any GCC internal prototype to avoid an error.
27372 Use char because int might match the return type of a GCC
27373 builtin and then its argument prototype would still apply. */
27374 #ifdef __cplusplus
27375 extern "C"
27376 #endif
27377 char elf_begin ();
27378 int
27379 main ()
27380 {
27381 return elf_begin ();
27382 ;
27383 return 0;
27384 }
27385 _ACEOF
27386 rm -f conftest.$ac_objext conftest$ac_exeext
27387 if { (ac_try="$ac_link"
27388 case "(($ac_try" in
27389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27390 *) ac_try_echo=$ac_try;;
27391 esac
27392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27393 (eval "$ac_link") 2>conftest.er1
27394 ac_status=$?
27395 grep -v '^ *+' conftest.er1 >conftest.err
27396 rm -f conftest.er1
27397 cat conftest.err >&5
27398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399 (exit $ac_status); } &&
27400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27401 { (case "(($ac_try" in
27402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27403 *) ac_try_echo=$ac_try;;
27404 esac
27405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27406 (eval "$ac_try") 2>&5
27407 ac_status=$?
27408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409 (exit $ac_status); }; } &&
27410 { ac_try='test -s conftest$ac_exeext'
27411 { (case "(($ac_try" in
27412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27413 *) ac_try_echo=$ac_try;;
27414 esac
27415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27416 (eval "$ac_try") 2>&5
27417 ac_status=$?
27418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419 (exit $ac_status); }; }; then
27420 ac_cv_lib_elf_elf_begin=yes
27421 else
27422 echo "$as_me: failed program was:" >&5
27423 sed 's/^/| /' conftest.$ac_ext >&5
27424
27425 ac_cv_lib_elf_elf_begin=no
27426 fi
27427
27428 rm -f core conftest.err conftest.$ac_objext \
27429 conftest$ac_exeext conftest.$ac_ext
27430 LIBS=$ac_check_lib_save_LIBS
27431 fi
27432 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27433 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27434 if test $ac_cv_lib_elf_elf_begin = yes; then
27435 cat >>confdefs.h <<_ACEOF
27436 #define HAVE_LIBELF 1
27437 _ACEOF
27438
27439 LIBS="-lelf $LIBS"
27440
27441 fi
27442
27443
2744427355 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
2744527356 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
2744627357 if test "${ac_cv_lib_m_sin+set}" = set; then
179179
180180 /* Define if you have the libdl library or equivalent. */
181181 #undef HAVE_LIBDL
182
183 /* Define to 1 if you have the `elf' library (-lelf). */
184 #undef HAVE_LIBELF
185182
186183 /* Define to 1 if you have the `imagehlp' library (-limagehlp). */
187184 #cmakedefine HAVE_LIBIMAGEHLP ${HAVE_LIBIMAGEHLP}
182182
183183 /* Define if you have the libdl library or equivalent. */
184184 #undef HAVE_LIBDL
185
186 /* Define to 1 if you have the `elf' library (-lelf). */
187 #undef HAVE_LIBELF
188185
189186 /* Define to 1 if you have the `imagehlp' library (-limagehlp). */
190187 #undef HAVE_LIBIMAGEHLP