apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr hints.m4
Date Fri, 09 Feb 2001 17:49:51 GMT
trawick     01/02/09 09:49:49

  Modified:    .        hints.m4
  Log:
  Stop hardcoding the math library.  APR autodetects the need for -lm for
  modf().  (Some platforms may require a different test to be added.)
  Submitted by:	Greg Stein
  
  Revision  Changes    Path
  1.39      +3 -12     apr/hints.m4
  
  Index: hints.m4
  ===================================================================
  RCS file: /home/cvs/apr/hints.m4,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- hints.m4	2001/02/08 18:58:36	1.38
  +++ hints.m4	2001/02/09 17:49:44	1.39
  @@ -55,23 +55,18 @@
               ;;
           *-ibm-aix4.2)
   	    APR_ADDTO(CFLAGS, [-U__STR__])
  -	    APR_ADDTO(LDFLAGS, [-lm])
   	    ;;
           *-ibm-aix4.2.*)
               APR_ADDTO(CFLAGS, [-U__STR__])
  -            APR_ADDTO(LDFLAGS, [-lm])
               ;;
           *-ibm-aix4.3)
   	    APR_ADDTO(CFLAGS, [-D_USE_IRS -U__STR__])
  -	    APR_ADDTO(LDFLAGS, [-lm])
   	    ;;
           *-ibm-aix4.3.*)
               APR_ADDTO(CFLAGS, [-D_USE_IRS -U__STR__])
  -            APR_ADDTO(LDFLAGS, [-lm])
               ;;
           *-ibm-aix*)
   	    APR_ADDTO(CFLAGS, [-U__STR__])
  -	    APR_ADDTO(LDFLAGS, [-lm])
   	    ;;
           esac
           dnl Must do a check for gcc or egcs here, to get the right options  
  @@ -97,7 +92,7 @@
   	;;
       *-hp-hpux11.*)
   	APR_ADDTO(CFLAGS, [-DHPUX11])
  -	APR_ADDTO(LIBS, [-lm -lpthread])
  +	APR_ADDTO(LIBS, [-lpthread])
   	;;
       *-hp-hpux10.*)
    	case $host in
  @@ -110,15 +105,12 @@
   	;;
       *-hp-hpux*)
   	APR_ADDTO(CFLAGS, [-DHPUX])
  -	APR_ADDTO(LIBS, [-lm])
   	;;
       *-linux-*)
           case `uname -r` in
   	    2.2* ) APR_ADDTO(CFLAGS, [-DLINUX=2])
  -	           APR_ADDTO(LIBS, [-lm])
   	           ;;
   	    2.0* ) APR_ADDTO(CFLAGS, [-DLINUX=2])
  -	           APR_ADDTO(LIBS, [-lm])
   	           ;;
   	    1.* )  APR_ADDTO(CFLAGS, [-DLINUX=1])
   	           ;;
  @@ -128,7 +120,7 @@
   	;;
       *-GNU*)
   	APR_ADDTO(CFLAGS, [-DHURD])
  -	APR_ADDTO(LIBS, [-lm -lcrypt])
  +	APR_ADDTO(LIBS, [-lcrypt])
   	;;
       *-lynx-lynxos)
   	APR_ADDTO(CFLAGS, [-D__NO_INCLUDE_WARN__ -DLYNXOS])
  @@ -166,7 +158,6 @@
   	;;
       *-dec-osf*)
   	APR_ADDTO(CFLAGS, [-DOSF1])
  -	APR_ADDTO(LIBS, [-lm])
   	;;
       *-qnx)
   	APR_ADDTO(CFLAGS, [-DQNX])
  @@ -189,7 +180,7 @@
   	;;
       *-sco5*)
   	APR_ADDTO(CFLAGS, [-DSCO5])
  -	APR_ADDTO(LIBS, [-lsocket -lmalloc -lprot -ltinfo -lx -lm])
  +	APR_ADDTO(LIBS, [-lsocket -lmalloc -lprot -ltinfo -lx])
   	;;
       *-sco_sv*|*-SCO_SV*)
   	APR_ADDTO(CFLAGS, [-DSCO])
  
  
  

Mime
View raw message