[PD-cvs] externals/zexy/src configure.ac,1.14,1.15

IOhannes m zmölnig zmoelnig at users.sourceforge.net
Sat Jan 7 18:19:12 CET 2006


Update of /cvsroot/pure-data/externals/zexy/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7850

Modified Files:
	configure.ac 
Log Message:
use AC_CHECK_CFLAGS to check for -fPIC and -mms-bitfields


Index: configure.ac
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/configure.ac,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** configure.ac	21 Dec 2005 09:10:08 -0000	1.14
--- configure.ac	7 Jan 2006 17:19:10 -0000	1.15
***************
*** 123,154 ****
  dnl why is there no generic compiler-check for a given flag ?
  dnl it would make things so easy: AC_CHECK_FLAG([-mms-bitfields],,)
! AC_MSG_CHECKING("ms-bitfields")
! cat > conftest.c << EOF
! int main(){
!   return 0;
! }
! EOF
! if ${CC} ${INCLUDES} ${DFLAGS} -o conftest.o conftest.c ${CFLAGS} -mms-bitfields > /dev/null 2>&1
! then
!   echo "yes"
!   CFLAGS="${CFLAGS} -mms-bitfields"
! else
!   echo "no"
! fi
  
  if test "x$enable_PIC" != "xno"; then
! AC_MSG_CHECKING("PIC")
! cat > conftest.c << EOF
! int main(){
!   return 0;
! }
! EOF
! if ${CC} ${INCLUDES} ${DFLAGS} -o conftest.o conftest.c ${CFLAGS} -fPIC > /dev/null 2>&1
! then
!   echo "yes"
!   CFLAGS="${CFLAGS} -fPIC"
! else
!   echo "no"
! fi
  fi
  
--- 123,130 ----
  dnl why is there no generic compiler-check for a given flag ?
  dnl it would make things so easy: AC_CHECK_FLAG([-mms-bitfields],,)
! AC_CHECK_CFLAGS([-mms-bitfields])
  
  if test "x$enable_PIC" != "xno"; then
!  AC_CHECK_CFLAGS([-fPIC])
  fi
  





More information about the Pd-cvs mailing list