HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #471

Ticket #471: xut-0.2.1.patch

File xut-0.2.1.patch, 1.7 KB (added by michaelvoliveira, 5 years ago)

Patch to drop libm

  • configure

    diff -Naur xut/configure xut-haiku/configure
    old new  
    59835983fi 
    59845984 
    59855985# Math 
    5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 
    5987 $as_echo_n "checking for main in -lm... " >&6; } 
     5986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroot" >&5 
     5987$as_echo_n "checking for main in -lroot... " >&6; } 
    59885988if test "${ac_cv_lib_m_main+set}" = set; then : 
    59895989  $as_echo_n "(cached) " >&6 
    59905990else 
    59915991  ac_check_lib_save_LIBS=$LIBS 
    5992 LIBS="-lm  $LIBS" 
     5992LIBS="$LIBS" 
    59935993cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
    59945994/* end confdefs.h.  */ 
    59955995 
    … …  
    60186018#define HAVE_LIBM 1 
    60196019_ACEOF 
    60206020 
    6021   LIBS="-lm $LIBS" 
     6021  LIBS="$LIBS" 
    60226022 
    60236023else 
    60246024  as_fn_error "Couldn't find math lib. Something is wrong with your C/C++ distribution" "$LINENO" 5 
  • configure.in

    diff -Naur xut/configure.in xut-haiku/configure.in
    old new  
    6868AC_CHECK_LIB([SDL_image], [main], [], [AC_MSG_ERROR(Couldn't find SDL_image. Please go to http://www.libsdl.org/projects/SDL_image and get it!)]) 
    6969AC_CHECK_LIB([SDL_ttf], [main], [], [AC_MSG_ERROR(Couldn't find SDL_ttf. Please go to http://www.libsdl.org/projects/SDL_ttf and get it!)]) 
    7070# Math 
    71 AC_CHECK_LIB([m], [main], [], [AC_MSG_ERROR(Couldn't find math lib. Something is wrong with your C/C++ distribution)]) 
     71AC_CHECK_LIB([root], [main], [], [AC_MSG_ERROR(Couldn't find math lib. Something is wrong with your C/C++ distribution)]) 
    7272# Cal3D 
    7373AC_CHECK_LIB([cal3d], [main], [], [AC_MSG_ERROR(Couldn't find cal3d. Go to http://home.gna.org/cal3d and get it.)]) 
    7474#the intl is needed on not gnu systems 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/