[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libcvd-members] libcvd configure configure.in
From: |
Edward Rosten |
Subject: |
[libcvd-members] libcvd configure configure.in |
Date: |
Tue, 16 Jan 2007 23:04:29 +0000 |
CVSROOT: /cvsroot/libcvd
Module name: libcvd
Changes by: Edward Rosten <edrosten> 07/01/16 23:04:29
Modified files:
. : configure configure.in
Log message:
Moved posix_memalign in to compatibility options (ie it should be
present)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/configure?cvsroot=libcvd&r1=1.77&r2=1.78
http://cvs.savannah.gnu.org/viewcvs/libcvd/configure.in?cvsroot=libcvd&r1=1.76&r2=1.77
Patches:
Index: configure
===================================================================
RCS file: /cvsroot/libcvd/libcvd/configure,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -b -r1.77 -r1.78
--- configure 28 Nov 2006 16:55:30 -0000 1.77
+++ configure 16 Jan 2007 23:04:28 -0000 1.78
@@ -310,7 +310,7 @@
# include <unistd.h>
#endif"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME
PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix
program_transform_name bindir sbindir libexecdir datadir sysconfdir
sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir
build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS AWK CC
CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX build
build_cpu build_vendor build_os host host_cpu host_vendor host_os have_sse
have_mmxext have_sse2 have_64bit OFLAGS INSTALL_PROGRAM INSTALL_SCRIPT
INSTALL_DATA LN_S RANLIB ac_ct_RANLIB CXXCPP EGREP osx_hacks have_toon
have_lapack major minor have_dvbuffer have_v4l1buffer have_v4l2buffer
have_o2buffer have_qtbuffer have_videodisplay have_pthread have_jpeg have_tiff
have_png have_ffmpeg fast_pointers fast_force docs cpu progs testprogs LIBOBJS
LTLIBOBJS debug_options debug_all_options'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME
PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix
program_transform_name bindir sbindir libexecdir datadir sysconfdir
sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir
build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS AWK CC
CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX build
build_cpu build_vendor build_os host host_cpu host_vendor host_os have_sse
have_mmxext have_sse2 have_64bit OFLAGS INSTALL_PROGRAM INSTALL_SCRIPT
INSTALL_DATA LN_S RANLIB ac_ct_RANLIB CXXCPP EGREP osx_hacks have_toon
have_lapack major minor have_dvbuffer have_v4l1buffer have_v4l2buffer
have_o2buffer have_qtbuffer have_videodisplay have_pthread have_jpeg have_tiff
have_png have_ffmpeg have_memalign fast_pointers fast_force docs cpu progs
testprogs LIBOBJS LTLIBOBJS debug_options debug_all_options'
ac_subst_files=''
# Initialize some variables set by options.
@@ -5740,7 +5740,6 @@
fi
fi
-
echo "$as_me:$LINENO: checking kernel major number" >&5
echo $ECHO_N "checking kernel major number... $ECHO_C" >&6
kernel_major=`uname -r | $AWK -F'[.-]' '{print $1}'`
@@ -8008,6 +8007,60 @@
dodginess_options="$dodginess_options missing_c99_feenableexcept"
fi
+echo "$as_me:$LINENO: checking for posix_memalign" >&5
+echo $ECHO_N "checking for posix_memalign... $ECHO_C" >&6
+a=0
+cat >conftest.$ac_ext <<_ACEOF
+#include <stdlib.h>
+ int main(){void* mem;
posix_memalign(&mem,16,100); return 0;}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_cxx_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ a=1
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+if test $a == 1
+then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ cat >>confdefs.h <<\_ACEOF
+#define CVD_HAVE_MEMALIGN 1
+_ACEOF
+
+ have_memalign=yes
+
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+ have_memalign=no
+
+ dodginess_options="$dodginess_options no_posix_memalign"
+fi
+
################################################################################
#
# Fast options
@@ -8834,6 +8887,7 @@
s,@have_tiff@,$have_tiff,;t t
s,@have_png@,$have_png,;t t
s,@have_ffmpeg@,$have_ffmpeg,;t t
+s,@have_memalign@,$have_memalign,;t t
s,@fast_pointers@,$fast_pointers,;t t
s,@fast_force@,$fast_force,;t t
s,@docs@,$docs,;t t
Index: configure.in
===================================================================
RCS file: /cvsroot/libcvd/libcvd/configure.in,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -b -r1.76 -r1.77
--- configure.in 28 Nov 2006 16:55:30 -0000 1.76
+++ configure.in 16 Jan 2007 23:04:29 -0000 1.77
@@ -663,20 +663,6 @@
fi
fi
- AC_MSG_CHECKING(for posix_memalign)
- a=0
- AC_COMPILE_IFELSE([#include <stdlib.h>
- int main(){void* mem;
posix_memalign(&mem,16,100); return 0;}],[a=1])
- if test $a == 1
- then
- AC_MSG_RESULT(yes)
- AC_DEFINE(CVD_HAVE_MEMALIGN, 1)
- AC_SUBST(have_memalign,yes)
- else
- AC_MSG_RESULT(no)
- AC_SUBST(have_memalign,no)
- fi
-
AC_MSG_CHECKING([kernel major number])
kernel_major=[`uname -r | $AWK -F'[.-]' '{print $1}'`]
AC_MSG_RESULT($kernel_major)
@@ -982,6 +968,21 @@
dodginess_options="$dodginess_options missing_c99_feenableexcept"
fi
+AC_MSG_CHECKING(for posix_memalign)
+a=0
+AC_COMPILE_IFELSE([#include <stdlib.h>
+ int main(){void* mem;
posix_memalign(&mem,16,100); return 0;}],[a=1])
+if test $a == 1
+then
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(CVD_HAVE_MEMALIGN, 1)
+ AC_SUBST(have_memalign,yes)
+else
+ AC_MSG_RESULT(no)
+ AC_SUBST(have_memalign,no)
+ dodginess_options="$dodginess_options no_posix_memalign"
+fi
+
################################################################################
#
# Fast options
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libcvd-members] libcvd configure configure.in,
Edward Rosten <=