]> git.pld-linux.org Git - packages/findutils.git/commitdiff
- hack in autoconf script for remove linking binaries with librt (patch
authorkloczek <kloczek@pld-linux.org>
Thu, 15 Mar 2001 05:42:41 +0000 (05:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  from rawhide).

Changed files:
    findutils-nolibrt.patch -> 1.1

findutils-nolibrt.patch [new file with mode: 0644]

diff --git a/findutils-nolibrt.patch b/findutils-nolibrt.patch
new file mode 100644 (file)
index 0000000..a5dda44
--- /dev/null
@@ -0,0 +1,145 @@
+--- findutils-4.1.6/configure.nolibrt  Thu Feb  8 23:23:51 2001
++++ findutils-4.1.6/configure  Thu Feb  8 23:25:00 2001
+@@ -11088,142 +11088,6 @@
+ fi
+-  # used by sleep and shred
+-  # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
+-  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
+-  echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" 1>&6
+-echo "configure:9791: checking for library containing clock_gettime" 1>&5
+-if test "${ac_cv_search_clock_gettime+set}" = set; then
+-  echo $ECHO_N "(cached) $ECHO_C" 1>&6
+-else
+-  ac_func_search_save_LIBS="$LIBS"
+-ac_cv_search_clock_gettime="no"
+-cat >conftest.$ac_ext <<EOF
+-#line 9798 "configure"
+-#include "confdefs.h"
+-
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-#ifdef __cplusplus
+-extern "C"
+-#endif
+-/* We use char because int might match the return type of a gcc2
+-   builtin and then its argument prototype would still apply.  */
+-char clock_gettime ();
+-int
+-main ()
+-{
+-clock_gettime ();
+-  ;
+-  return 0;
+-}
+-EOF
+-if { (eval echo configure:9815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+-  ac_cv_search_clock_gettime="none required"
+-else
+-  echo "configure: failed program was:" >&5
+-  cat conftest.$ac_ext >&5
+-fi
+-rm -f conftest*
+-test "$ac_cv_search_clock_gettime" = "no" && for ac_lib in rt posix4; do
+-LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
+-cat >conftest.$ac_ext <<EOF
+-#line 9825 "configure"
+-#include "confdefs.h"
+-
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-#ifdef __cplusplus
+-extern "C"
+-#endif
+-/* We use char because int might match the return type of a gcc2
+-   builtin and then its argument prototype would still apply.  */
+-char clock_gettime ();
+-int
+-main ()
+-{
+-clock_gettime ();
+-  ;
+-  return 0;
+-}
+-EOF
+-if { (eval echo configure:9842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+-  ac_cv_search_clock_gettime="-l$ac_lib"
+-break
+-else
+-  echo "configure: failed program was:" >&5
+-  cat conftest.$ac_ext >&5
+-fi
+-rm -f conftest*
+-done
+-LIBS="$ac_func_search_save_LIBS"
+-fi
+-echo "$ECHO_T""$ac_cv_search_clock_gettime" 1>&6
+-if test "$ac_cv_search_clock_gettime" != "no"; then
+-  test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
+-
+-fi
+-
+-  #
+-
+-for ac_func in clock_gettime
+-do
+-ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
+-echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
+-echo "configure:9862: checking for $ac_func" 1>&5
+-if eval "test \"\${$ac_ac_var+set}\" = set"; then
+-  echo $ECHO_N "(cached) $ECHO_C" 1>&6
+-else
+-  cat >conftest.$ac_ext <<EOF
+-#line 9867 "configure"
+-#include "confdefs.h"
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char $ac_func(); below.  */
+-#include <assert.h>
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-#ifdef __cplusplus
+-extern "C"
+-#endif
+-/* We use char because int might match the return type of a gcc2
+-   builtin and then its argument prototype would still apply.  */
+-char $ac_func();
+-char (*f)();
+-
+-int
+-main ()
+-{
+-
+-/* The GNU C library defines this for functions which it implements
+-    to always fail with ENOSYS.  Some functions are actually named
+-    something starting with __ and the normal name is an alias.  */
+-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+-choke me
+-#else
+-f = $ac_func;
+-#endif
+-
+-  ;
+-  return 0;
+-}
+-EOF
+-if { (eval echo configure:9895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+-  eval "$ac_ac_var=yes"
+-else
+-  echo "configure: failed program was:" >&5
+-  cat conftest.$ac_ext >&5
+-  eval "$ac_ac_var=no"
+-fi
+-rm -f conftest*
+-fi
+-echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
+-if test `eval echo '${'$ac_ac_var'}'` = yes; then
+-  cat >>confdefs.h <<EOF
+-#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
+-EOF
+-
+-fi
+-done
+-
+-  #
+-
+ for ac_func in gettimeofday
+ do
+ ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
This page took 0.09544 seconds and 4 git commands to generate.