diff --git a/acinclude.m4 b/acinclude.m4 deleted file mode 100644 index fa3d0aa41..000000000 --- a/acinclude.m4 +++ /dev/null @@ -1,503 +0,0 @@ -dnl @synopsis AC_CXX_HAVE_STL -dnl -dnl If the compiler supports the Standard Template Library, define HAVE_STL. -dnl -dnl @version $Id: acinclude.m4,v 1.2 2006/02/24 00:09:19 wmayer Exp $ -dnl @author Luc Maisonobe -dnl -AC_DEFUN([AC_CXX_HAVE_STL], -[AC_CACHE_CHECK(whether the compiler supports Standard Template Library, -ac_cv_cxx_have_stl, -[AC_REQUIRE([AC_CXX_NAMESPACES]) - AC_LANG_SAVE - AC_LANG_CPLUSPLUS - AC_TRY_COMPILE([#include -#include -#ifdef HAVE_NAMESPACES -using namespace std; -#endif],[list x; x.push_back(5); -list::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;], - ac_cv_cxx_have_stl=yes, ac_cv_cxx_have_stl=no) - AC_LANG_RESTORE -]) -if test "$ac_cv_cxx_have_stl" = yes; then - AC_DEFINE(HAVE_STL,,[define if the compiler supports Standard Template Library]) -fi -]) -dnl @synopsis AC_CXX_HAVE_STD -dnl -dnl If the compiler supports ISO C++ standard library (i.e., can include the -dnl files iostream, map, iomanip and cmath}), define HAVE_STD. -dnl -dnl @version $Id: acinclude.m4,v 1.2 2006/02/24 00:09:19 wmayer Exp $ -dnl @author Luc Maisonobe -dnl -AC_DEFUN([AC_CXX_HAVE_STD], -[AC_CACHE_CHECK(whether the compiler supports ISO C++ standard library, -ac_cv_cxx_have_std, -[AC_REQUIRE([AC_CXX_NAMESPACES]) - AC_LANG_SAVE - AC_LANG_CPLUSPLUS - AC_TRY_COMPILE([#include -#include -#include -#include -#ifdef HAVE_NAMESPACES -using namespace std; -#endif],[return 0;], - ac_cv_cxx_have_std=yes, ac_cv_cxx_have_std=no) - AC_LANG_RESTORE -]) -if test "$ac_cv_cxx_have_std" = yes; then - AC_DEFINE(HAVE_STD,,[define if the compiler supports ISO C++ standard library]) -fi -]) -dnl @synopsis AC_CXX_NAMESPACES -dnl -dnl If the compiler can prevent names clashes using namespaces, define -dnl HAVE_NAMESPACES. -dnl -dnl @version $Id: acinclude.m4,v 1.2 2006/02/24 00:09:19 wmayer Exp $ -dnl @author Luc Maisonobe -dnl -AC_DEFUN([AC_CXX_NAMESPACES], -[AC_CACHE_CHECK(whether the compiler implements namespaces, -ac_cv_cxx_namespaces, -[AC_LANG_SAVE - AC_LANG_CPLUSPLUS - AC_TRY_COMPILE([namespace Outer { namespace Inner { int i = 0; }}], - [using namespace Outer::Inner; return i;], - ac_cv_cxx_namespaces=yes, ac_cv_cxx_namespaces=no) - AC_LANG_RESTORE -]) -if test "$ac_cv_cxx_namespaces" = yes; then - AC_DEFINE(HAVE_NAMESPACES,,[define if the compiler implements namespaces]) -fi -]) -dnl @synopsis AC_CXX_HAVE_SSTREAM -dnl -dnl If sstream (part of Standard C++ Library) exists -dnl define HAVE_SSTREAM. -dnl -dnl @version ac_cxx_have_std.m4 Tue Mar 28 18:20:26 CEST 2000 -dnl @author Thomas Sondergaard thomass@deltadata.dk -dnl -AC_DEFUN([AC_CXX_HAVE_SSTREAM], -[AC_CACHE_CHECK(for sstream, -ac_cv_cxx_have_sstream, -[AC_REQUIRE([AC_CXX_NAMESPACES]) - AC_LANG_SAVE - AC_LANG_CPLUSPLUS - AC_TRY_COMPILE([#include -#ifdef HAVE_NAMESPACES -using namespace std; -#endif],[return 0;], - ac_cv_cxx_have_sstream=yes, ac_cv_cxx_have_sstream=no) - AC_LANG_RESTORE -]) -if test "$ac_cv_cxx_have_sstream" = yes; then - AC_DEFINE(HAVE_SSTREAM,1,[define if the compiler supports sstream]) -fi -]) -dnl @synopsis AC_CXX_HAVE_STD_IOSTREAM -dnl -dnl If std iostream (part of Standard C++ Library) exists -dnl define HAVE_STD_IOSTREAM. -dnl -dnl @version ac_cxx_have_std.m4 Tue Mar 28 18:20:26 CEST 2000 -dnl @author Thomas Sondergaard thomass@deltadata.dk -dnl -AC_DEFUN([AC_CXX_HAVE_STD_IOSTREAM], -[AC_CACHE_CHECK(for std iostream, -ac_cv_cxx_have_std_iostream, -[AC_REQUIRE([AC_CXX_NAMESPACES]) - AC_LANG_SAVE - AC_LANG_CPLUSPLUS - AC_TRY_COMPILE([ -#include -#include -#include -#ifdef HAVE_NAMESPACES -using namespace std; -#endif -],[return 0;], - ac_cv_cxx_have_std_iostream=yes, ac_cv_cxx_have_std_iostream=no) - AC_LANG_RESTORE -]) -if test "$ac_cv_cxx_have_std_iostream" = yes; then - AC_DEFINE(HAVE_STD_IOSTREAM,,[define if the compiler has std compliant iostream library]) -fi -]) -dnl @synopsis FREECAD_AC_HAVE_QT(MINIMUM_VERSION) -dnl -dnl @summary Search for Trolltech's Qt GUI framework. -dnl -dnl Checks for the Qt4 library and its tools uic, moc and rcc. -dnl -dnl The following variables are exported: -dnl -dnl QT_DIR -dnl QT_CXXFLAGS -dnl QT_LIBS -dnl QT_MOC -dnl QT_UIC -dnl QT_RCC -dnl -AC_DEFUN([FREECAD_AC_HAVE_QT], -[ - -AC_ARG_WITH([qt4-dir], - AC_HELP_STRING([--with-qt4-dir=DIR], [give prefix location of Qt4]), - [fc_qt4_dir="$withval"], - [fc_qt4_dir="/usr/share/qt4"]) - -AC_ARG_WITH([qt4-include], - AC_HELP_STRING([--with-qt4-include=DIR], [give include prefix of Qt4]), - [fc_qt4_include="$withval"], - [fc_qt4_include="$fc_qt4_dir/include"]) - -AC_ARG_WITH([qt4-lib], - AC_HELP_STRING([--with-qt4-lib=DIR], [give library path to Qt4]), - [fc_qt4_lib="$withval"], - [fc_qt4_lib="$fc_qt4_dir/lib"]) - -AC_ARG_WITH([qt4-bin], - AC_HELP_STRING([--with-qt4-bin=DIR], [give path to Qt4 utilities (moc, uic, rcc)]), - [fc_qt4_bin="$withval"], - [fc_qt4_bin="$fc_qt4_dir/bin"]) - -AC_ARG_WITH([qt4-framework], - AC_HELP_STRING([--with-qt4-framework], - [give prefix path to the Qt4 framework on Mac OS X]), - [fc_qt4_frm="$withval"], - [fc_qt4_frm=""]) - -AC_MSG_CHECKING(for host) -AC_MSG_RESULT($host_os) -case $host_os in - mingw32*) - fc_qt4_lib_core="-L$fc_qt4_lib -lQtCore" - QT_LIBS="-L$fc_qt4_lib -lopengl32 -lglu32 -lgdi32 -luser32 -lmingw32 -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-s -Wl,-subsystem,windows" - QT_CXXFLAGS="-I$fc_qt4_include -I$fc_qt4_include/QtCore -I$fc_qt4_include/QtGui -I$fc_qt4_include/QtOpenGL -I$fc_qt4_include/QtSvg -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -frtti -fexceptions" - ;; - darwin*) - AC_PATH_XTRA - if test -d $fc_qt4_frm/QtCore.framework; then - ac_save_ldflags_fw=$LDFLAGS - LDFLAGS="$LDFLAGS -F$fc_qt4_frm -framework QtCore" - AC_CACHE_CHECK( - [whether Qt is installed as framework], - ac_cv_have_qt_framework, - [AC_TRY_LINK([#include - #include ], - [printf("%s\n", qVersion());], - [ac_cv_have_qt_framework=yes], - [ac_cv_have_qt_framework=no]) - ]) - LDFLAGS=$ac_save_ldflags_fw - else - ac_cv_have_qt_framework=no - fi - if test "$ac_cv_have_qt_framework" = yes; then - # Qt as framework installed - fc_qt4_lib_core="-Wl,-F$fc_qt4_frm -Wl,-framework,QtCore" - QT_LIBS="-Wl,-F$fc_qt4_frm" - #QT_LIBS="$QT_LIBS -Wl,-framework,Qt3Support" - QT_LIBS="$QT_LIBS -Wl,-framework,QtGui" - QT_LIBS="$QT_LIBS -Wl,-framework,QtOpenGL" - QT_LIBS="$QT_LIBS -Wl,-framework,QtCore" - QT_LIBS="$QT_LIBS -Wl,-framework,QtNetwork" - QT_LIBS="$QT_LIBS -Wl,-framework,QtXml" - QT_LIBS="$QT_LIBS -Wl,-framework,QtSql" - QT_LIBS="$QT_LIBS -Wl,-framework,QtSvg" - # Separated libs - QT4_CORE_LIBS="-Wl,-F$fc_qt4_frm -Wl,-framework,QtCore" - - QT_CXXFLAGS="-F$fc_qt4_frm -I$fc_qt4_frm/Qt3Support.framework/Headers" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_frm/QtGui.framework/Headers" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_frm/QtCore.framework/Headers" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_frm/QtOpenGL.framework/Headers" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_frm/QtNetwork.framework/Headers" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_frm/QtSvg.framework/Headers" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_frm/QtXml.framework/Headers" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_frm/QtUiTools.framework/Headers" - # Separated flags - QT4_CORE_CXXFLAGS="-F$fc_qt4_frm -I$fc_qt4_frm/QtCore.framework/Headers" - # QtUiTools doesn't seem to be available as framework - #QT_CXXFLAGS="$QT_CXXFLAGS -I/usr/include/QtUiTools" - # QtWebKit check - fc_ac_save_cppflags=$CPPFLAGS - CPPFLAGS="$QT_CXXFLAGS -I$fc_qt4_frm/QtWebKit.framework/Headers" - AC_MSG_CHECKING([whether QtWebKit is available]) - AC_TRY_COMPILE([#include ], [], - [ - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_frm/QtWebKit.framework/Headers" - QT_LIBS="$QT_LIBS -Wl,-framework,QtWebKit" - AC_MSG_RESULT(yes)], - AC_MSG_RESULT(no)) - CPPFLAGS=$fc_ac_save_cppflags - else - # Qt not as framework installed - fc_qt4_lib_core="-L$fc_qt4_lib -lQtCore" - QT_LIBS="-L$fc_qt4_lib -lQtCore -lQtGui -lQt3Support -lQtNetwork -lQtOpenGL -lQtSvg -lQtXml" - QT_CXXFLAGS="-I$fc_qt4_include -I$fc_qt4_include/Qt3Support" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_include/QtGui" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_include/QtCore" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_include/QtOpenGL" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_include/QtNetwork" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_include/QtSvg" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_include/QtXml" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_include/QtUiTools" - # Separated flags and libs - QT4_CORE_CXXFLAGS="-I$fc_qt4_include -I$fc_qt4_include/QtCore" - QT4_CORE_LIBS="-L$fc_qt4_lib -lQtCore" - # QtWebKit check - fc_ac_save_cppflags=$CPPFLAGS - CPPFLAGS="$QT_CXXFLAGS -I$fc_qt4_include/QtWebKit" - AC_MSG_CHECKING([whether QtWebKit is available]) - AC_TRY_COMPILE([#include ], [], - [ - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_include/QtWebKit" - QT_LIBS="$QT_LIBS -lQtWebKit" - AC_MSG_RESULT(yes)], - AC_MSG_RESULT(no)) - CPPFLAGS=$fc_ac_save_cppflags - fi - ;; - *) # UNIX/Linux based - AC_PATH_XTRA - fc_qt4_lib_core="-L$fc_qt4_lib -lQtCore" - QT_LIBS="-L$fc_qt4_lib -lQtCore -lQtGui -lQt3Support -lQtNetwork -lQtOpenGL -lQtSvg -lQtXml $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" - QT_CXXFLAGS="-I$fc_qt4_include -I$fc_qt4_include/Qt3Support" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_include/QtGui" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_include/QtCore" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_include/QtOpenGL" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_include/QtNetwork" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_include/QtSvg" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_include/QtXml" - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_include/QtUiTools $X_CFLAGS" - # QtWebKit check - fc_ac_save_cppflags=$CPPFLAGS - CPPFLAGS="-I$fc_qt4_include -I$fc_qt4_include/QtWebKit" - AC_MSG_CHECKING([whether QtWebKit is available]) - AC_TRY_LINK([#include ], [], - [ - QT_CXXFLAGS="$QT_CXXFLAGS -I$fc_qt4_include/QtWebKit" - QT_LIBS="$QT_LIBS -lQtWebKit" - AC_MSG_RESULT(yes)], - AC_MSG_RESULT(no)) - CPPFLAGS=$fc_ac_save_cppflags - #QT4_CXXFLAGS="-I$fc_qt4_include" - #QT4_LIBS="-L$fc_qt4_lib $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" - # Separated flags and libs - QT4_CORE_CXXFLAGS="-I$fc_qt4_include -I$fc_qt4_include/QtCore" - QT4_CORE_LIBS="-L$fc_qt4_lib -lQtCore" - #QT4_GUI_CXXFLAGS="-I$fc_qt4_include/QtGui" - #QT4_GUI_LIBS="-lQtGui" - #QT4_NETWORK_CFLAGS="-I$fc_qt4_include/QtNetwork" - #QT4_NETWORK_LIBS="-lQtNetwork" - #QT4_XML_CFLAGS="-I$fc_qt4_include/QtXml" - #QT4_XML_LIBS="-lQtXml" - ;; -esac - -min_qt_version=ifelse([$1], ,4.0.0, $1) - -AC_MSG_CHECKING(for Qt >= $min_qt_version) -QT_MOC="$fc_qt4_bin/moc" -QT_UIC="$fc_qt4_bin/uic" -QT_RCC="$fc_qt4_bin/rcc" - -# Now we check whether we can actually build a Qt app. -cat > myqt.h << EOF -#include -class Test : public QObject -{ -Q_OBJECT -public: - Test() {} - ~Test() {} -public slots: - void receive() {} -signals: - void send(); -}; -EOF - -cat > myqt.cpp << EOF -#include "myqt.h" -#include -#include -#include -#include -#include -#include -int main( int argc, char **argv ) -{ - QCoreApplication app( argc, argv ); - Test t; - QObject::connect( &t, SIGNAL(send()), &t, SLOT(receive()) ); - - // major, minor, patch - QString version = "$min_qt_version"; - QStringList numbers = version.split('.'); - - int shift[[3]] = {16,8,0}; - int minversion = 0, i = 0; - for (QStringList::ConstIterator it = numbers.begin(); it != numbers.end(); ++it, ++i) { - bool ok; - int val = (*it).toInt(&ok); - if (ok) { - minversion = minversion + (val << shift[[i]]); - } - } - - exit(QT_VERSION < minversion); -} -EOF - -bnv_try_1="$QT_MOC myqt.h -o moc_myqt.cpp" -AC_TRY_EVAL(bnv_try_1) -if test x"$ac_status" != x0; then - AC_MSG_ERROR([Cannot find Qt meta object compiler (moc), bye...]) -fi - -bnv_try_2="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o moc_myqt.o moc_myqt.cpp" -AC_TRY_EVAL(bnv_try_2) -if test x"$ac_status" != x0; then - AC_MSG_ERROR([Failed to compile source file created by Qt meta object compiler (moc), bye...]) -fi - -bnv_try_3="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o myqt.o myqt.cpp" -AC_TRY_EVAL(bnv_try_3) -if test x"$ac_status" != x0; then - AC_MSG_ERROR([Failed to compile Qt test app, bye...]) -fi - -# Make sure not to link against X11 libs so that configure succeeds whithout xserver started -bnv_try_4="$CXX myqt.o moc_myqt.o $fc_qt4_lib_core $LIBS -o myqt" -AC_TRY_EVAL(bnv_try_4) -if test x"$ac_status" != x0; then - AC_MSG_ERROR([Failed to link with Qt, bye...]) -fi - -AS_IF([AM_RUN_LOG([./myqt])], - [AC_MSG_RESULT(yes)], - [AC_MSG_ERROR([Version of Qt4 found but < $min_qt_version]) -]) - -rm -f moc_myqt.cpp myqt.h myqt.cpp myqt.o myqt moc_myqt.o - -if test -d $fc_qt4_dir; then - QT_DIR="$fc_qt4_dir" -else - QT_DIR="" -fi - -AC_SUBST(QT_DIR) -AC_SUBST(QT_CXXFLAGS) -AC_SUBST(QT_LIBS) -AC_SUBST(QT4_CORE_CXXFLAGS) -AC_SUBST(QT4_CORE_LIBS) -AC_SUBST(QT_UIC) -AC_SUBST(QT_MOC) -AC_SUBST(QT_RCC) -]) -dnl @synopsis FREECAD_AC_HAVE_BOOST -dnl -dnl @summary Search for boost header and library files. -dnl -dnl -AC_DEFUN([FREECAD_AC_HAVE_BOOST], -[ -AC_MSG_CHECKING(for boost) - -AC_ARG_WITH(boost-include, - AC_HELP_STRING([--with-boost-include=DIR], [Path to the boost header files]), - [fc_boost_incs=$withval], [fc_boost_incs=/usr/include]) - -AC_ARG_WITH(boost-lib, - AC_HELP_STRING([--with-boost-lib=DIR], [Path to the boost library files]), - [fc_boost_libs=$withval], [fc_boost_libs=/usr/lib]) - -fc_boost_ac_save_cppflags=$CPPFLAGS -fc_boost_ac_save_ldflags=$LDFLAGS -fc_boost_ac_save_libs=$LIBS -CPPFLAGS="$CPPFLAGS -I$fc_boost_incs" -LDFLAGS="$LDFLAGS -L$fc_boost_libs" -LIBS="-lboost_program_options-mt" - -AC_TRY_LINK([#include ], - [namespace po = boost::program_options; - po::options_description generic("Generic options"); - generic.add_options() - ("version,v", "print version string") - ("help", "produce help message"); - ], - [AC_MSG_RESULT(yes)], - [AC_MSG_ERROR(failed)]) - - - -AC_MSG_CHECKING(for boost >= 1.35.0) - -cat > boost.cpp << EOF -#include -#include -#include - -int main(int argc, char **argv) -{ - exit(BOOST_VERSION >= 103500); -} -EOF - -# Depending on boost version decide if boost_system is required -boost_try="$CXX boost.cpp $CPPFLAGS -o boost" -AC_TRY_EVAL(boost_try) -if test x"$ac_status" != x0; then - AC_MSG_ERROR([Failed to get version of boost, bye...]) -fi - -AS_IF([AM_RUN_LOG([./boost])], - [ac_cv_boost_system=no], - [ac_cv_boost_system=yes -]) -AC_MSG_RESULT($ac_cv_boost_system) -rm -f boost.cpp boost - -BOOST_FILESYSTEM_LIB="-lboost_filesystem-mt" -BOOST_PROGOPTIONS_LIB="-lboost_program_options-mt" -BOOST_SIGNALS_LIB="-lboost_signals-mt" -BOOST_SYSTEM_LIB="" -BOOST_REGEX_LIB="-lboost_regex-mt" -if test x"$ac_cv_boost_system" = xyes; then - LIBS="-lboost_system-mt" - AC_MSG_CHECKING(for boost system library) - AC_TRY_LINK([#include ], - [ boost::system::error_code error_code; std::string message(error_code.message()); return 0; ], - [BOOST_SYSTEM_LIB="-lboost_system-mt"], - [BOOST_SYSTEM_LIB=""]) - - if test "x$BOOST_SYSTEM_LIB" = "x"; then - AC_MSG_RESULT(no) - AC_MSG_ERROR(Unable to link with the boost::system library) - else - AC_MSG_RESULT(yes) - fi -fi - -AC_SUBST(BOOST_FILESYSTEM_LIB) -AC_SUBST(BOOST_PROGOPTIONS_LIB) -AC_SUBST(BOOST_SIGNALS_LIB) -AC_SUBST(BOOST_SYSTEM_LIB) -AC_SUBST(BOOST_REGEX_LIB) - - -CPPFLAGS=$fc_boost_ac_save_cppflags -LDFLAGS=$fc_boost_ac_save_ldflags -LIBS=$fc_boost_ac_save_libs - -all_includes="$all_includes -I$fc_boost_incs" -all_libraries="$all_libraries -L$fc_boost_libs" -]) diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index 6c410b02f..000000000 --- a/autogen.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash -# autogen.sh -# Run this script to generate all initial makefiles. - -# Get version and revision number -MAJ=0 -MIN=13 -REV=0 - -#if svn --xml info >/dev/null 2>&1; then -# REV=`svn --xml info | tr -d '\r\n' | sed -e 's/.*.*/\1/'` -#elif svn --version --quiet >/dev/null 2>&1; then -# REV=`svn info | grep "^Revision:" | cut -d" " -f2` -#fi -# count all lines that don't match this string -REV=`git rev-list HEAD | grep -cv "*"` - -# if revision.m4 does not exist, create it -REV_FILE=revision.m4 -#if [ -f $REV_FILE ]; then -# echo "$REV_FILE found" -#else -# echo "m4_define([FREECAD_MAJOR], $MAJ)" > $REV_FILE -# echo "m4_define([FREECAD_MINOR], $MIN)" >> $REV_FILE -# echo "m4_define([FREECAD_MICRO], $REV)" >> $REV_FILE -# echo "$REV_FILE created" -#fi -echo "m4_define([FREECAD_MAJOR], $MAJ)" > $REV_FILE -echo "m4_define([FREECAD_MINOR], $MIN)" >> $REV_FILE -echo "m4_define([FREECAD_MICRO], $REV)" >> $REV_FILE - -# create m4 subdirectory which fails for some older versions of autotools -[ -d m4 ] || mkdir m4 - -if which glibtoolize > /dev/null 2>&1; then - echo "calling glibtoolize" - glibtoolize --force --copy -elif which libtoolize > /dev/null 2>&1; then - echo "calling libtoolize" - libtoolize --force --copy -else - echo "can't find libtoolize or glibtoolize" - exit 1 -fi - -# http://www.gnu.org/software/hello/manual/automake/Macro-Search-Path.html -if [ -d /usr/local/share/aclocal ]; then - echo "calling aclocal -I /usr/local/share/aclocal" - aclocal -I /usr/local/share/aclocal -else - echo "calling aclocal" - aclocal -fi - -echo "calling autoheader" -autoheader - -echo "calling automake" -automake --add-missing --copy - -echo "calling autoconf" -autoconf - -echo "Done" -echo "Please run configure." - -# touch file to update Version.h -touch src/Build/Version.h.in - diff --git a/build.sh b/build.sh deleted file mode 100755 index e079ca5f2..000000000 --- a/build.sh +++ /dev/null @@ -1,8 +0,0 @@ -#! /bin/sh - -# We almost need to specify the switches for the OpenCascade library to make -# configure running successfully. -# CASROOT=${CASROOT:-/opt/OpenCASCADE6.2.0/ros} -#./configure CXXFLAGS="-fno-strict-aliasing" LDFLAGS="-Wl,-z,defs" --with-occ-include=$CASROOT/inc --with-occ-lib=$CASROOT/Linux/lib -./configure CXXFLAGS="-fno-strict-aliasing -Wno-write-strings" LDFLAGS="-Wl,-z,defs" - diff --git a/configure.ac b/configure.ac deleted file mode 100644 index 469e00ca7..000000000 --- a/configure.ac +++ /dev/null @@ -1,1113 +0,0 @@ -dnl -*- Autoconf -*- -dnl Process this file with autoconf to produce a configure script. -AC_PREREQ(2.50) - -dnl Init stuff -dnl ************************************************************************** -dnl release version number info -m4_include([revision.m4]) - -AC_INIT(FreeCAD,[FREECAD_MAJOR.FREECAD_MINOR.FREECAD_MICRO],[wmayer@users.sourceforge.net], FreeCAD) -AC_CONFIG_AUX_DIR([m4]) -AM_INIT_AUTOMAKE([tar-ustar foreign]) -AM_CONFIG_HEADER([config.h]) -AC_CONFIG_MACRO_DIR([m4]) -AC_LANG_CPLUSPLUS - -dnl Default install directory is your home directory -dnl ************************************************************************** -AC_PREFIX_DEFAULT($HOME/FreeCAD) - -dnl Version number -dnl ************************************************************************** -dnl Shared library versioning -dnl GENERIC_LIBRARY_VERSION=1:2:0 -dnl | | | -dnl +------+ | +---+ -dnl | | | -dnl current:revision:age -dnl | | | -dnl | | +- increment if interfaces have been added -dnl | | set to zero if interfaces have been removed -dnl | | or changed -dnl | +- increment if source code has changed -dnl | set to zero if current is incremented -dnl +- increment if interfaces have been added, removed or changed - -LIB_CURRENT=2 -LIB_REVISION=0 -LIB_AGE=0 -AC_SUBST(LIB_CURRENT) -AC_SUBST(LIB_REVISION) -AC_SUBST(LIB_AGE) - -dnl Required headers -dnl (mainly for OpenCASCADE 5.2, we need also config.h for cfg's) -dnl ************************************************************************** -AC_LANG([C++]) -AC_MSG_CHECKING([ for C++ header files ]) -AC_CHECK_HEADERS(istream ostream istream fstream ios iomanip iostream) -AC_CHECK_HEADERS(iomanip.h limits.h values.h float.h) -AC_CHECK_HEADERS(siginfo.h bits/sigset.h bstring.h sys/types.h sys/select.h) -AC_CHECK_HEADERS(sys/filio.h sys/mman.h libc.h) -AC_CHECK_HEADERS([sstream],,[AC_MSG_ERROR([This header is needed. Bye.])]) - -AC_CXX_HAVE_STD_IOSTREAM - -dnl Checking for C/C++ compiler -dnl ************************************************************************** -AC_PROG_CXX -AC_PROG_CC -AC_ENABLE_SHARED(yes) -AC_ENABLE_STATIC(no) - -dnl Checking for Fortran compiler -dnl ************************************************************************** -AC_PROG_F77() -AC_FC_SRCEXT(f) -AC_FC_LIBRARY_LDFLAGS -AC_FC_WRAPPERS - -dnl Checking for programs -dnl ************************************************************************** -AC_LIBTOOL_DLOPEN -AC_PROG_LIBTOOL -AC_PROG_LN_S -#AC_PROG_YACC -#AM_PROG_LEX - - -AC_PATH_PROG(SWIG, swig, false) -if test "$SWIG" = false ; then - AC_MSG_WARN([Can't find SWIG installation]) - HAVE_SWIG=0 - AM_CONDITIONAL(HAVE_SWIG_FOUND, false) -else - HAVE_SWIG=1 - AM_CONDITIONAL(HAVE_SWIG_FOUND, true) -fi -AC_SUBST(HAVE_SWIG) - -dnl Defines in config.h -dnl ************************************************************************** -AC_DEFINE_UNQUOTED(HAVE_GETENVIRONMENTVARIABLE, 1, [Define to use GetEnvironmentVariable() instead of getenv()]) -AC_DEFINE_UNQUOTED(HAVE_GL_GL_H, 1, [define if the GL header should be included as GL/gl.h]) -AC_DEFINE_UNQUOTED(HAVE_QGLFORMAT_EQ_OP, 1, [Define this to 1 if operator==(QGLFormat&, QGLFormat&) is available]) -AC_DEFINE_UNQUOTED(HAVE_QGLFORMAT_SETOVERLAY, 1, [Define this to 1 if QGLFormat::setOverlay() is available]) -AC_DEFINE_UNQUOTED(HAVE_QGLWIDGET_SETAUTOBUFFERSWAP, 1, [Define this to 1 if QGLWidget::setAutoBufferSwap() is available]) -AC_DEFINE_UNQUOTED(HAVE_QT_KEYPAD_DEFINE, 1, [Define this if Qt::Keypad is available]) -AC_DEFINE_UNQUOTED(HAVE_QWIDGET_SHOWFULLSCREEN, 1, [Define this if QWidget::showFullScreen() is available]) -AC_DEFINE_UNQUOTED(HAVE_SYS_TYPES_H, 1, [Define to 1 if you have the header file.]) -AC_DEFINE_UNQUOTED(USE_STD_IOSTREAM, 1, [Define to 1 to build zipios++ sources with iostream.]) -AC_DEFINE_UNQUOTED(OCE_HAVE_CLIMITS, 1, [Define to 1 to build with OCE instead of OCC.]) -AC_DEFINE_UNQUOTED(OCE_HAVE_IOSTREAM, 1, [Define to 1 to build with OCE instead of OCC.]) -AC_DEFINE_UNQUOTED(OCE_HAVE_IOMANIP, 1, [Define to 1 to build with OCE instead of OCC.]) - -dnl Check if you want to use GUI, or not (currently disabled) -dnl ************************************************************************** -dnl -#AC_ARG_ENABLE([gui], -# AC_HELP_STRING([--enable-gui], [Enable GUI (you can disable this feature to use FreeCAD in server mode)]), -# [case $enableval in -# no | false) fc_set_gui=false ;; -# *) fc_set_gui=true ;; -# esac], -# [fc_set_gui=true]) -# -#if $fc_set_gui; then -# echo "not yet done" -#fi -# -#if test "x$use_glx" = "xyes"; then -# AM_CONDITIONAL(FREECAD_BUILD_GUI, true) -#else -# AM_CONDITIONAL(FREECAD_BUILD_GUI, false) -#fi -#if FREECAD_BUILD_GUI -# ... in Makefile.am -#endif - -## DEFAULT INCLUDE/LIB PATHS -#all_includes="$all_includes -I/usr/include -I/usr/local/include" -#all_libraries="$all_libraries -L/usr/lib -L/usr/local/lib" - -dnl ************************************************************************* -dnl -dnl Checking for libraries. -dnl -dnl ************************************************************************* - -dnl checking for zlib -dnl ************************************************************************** -AC_CHECK_LIB(z, inflate, [cv_libz=yes], [cv_libz=no]) - -if test "$cv_libz" != "yes"; then - AC_MSG_ERROR([ - **** Cannot find the zlib library. **** - ]) -fi - -dnl checking for Python -dnl ************************************************************************** -dnl AC_MSG_CHECKING([for Python]) -dnl fc_py_ver=`python -c "import sys; print sys.version[[:3]]"`; -dnl if test x$fc_py_ver = x; then -dnl AC_MSG_ERROR([ -dnl **** Cannot find Python interpreter. **** -dnl ]) -dnl fi; -dnl AC_MSG_RESULT([yes]) -dnl -dnl dnl Additional test to force version number of >= 2.5 -dnl AC_MSG_CHECKING([for Python version >= 2.5]) -dnl prog="import sys -dnl s=0x02050000 -dnl sys.exit(sys.hexversion < s)" -dnl AS_IF([AM_RUN_LOG([python -c "$prog"])], -dnl [AC_MSG_RESULT([yes])], -dnl [AC_MSG_ERROR([ -dnl **** Install Python version 2.5 or later **** -dnl ])]) - -AC_ARG_WITH(python-version, - AC_HELP_STRING([--with-python-version=VER], [Choose the required Python version]), - [fc_py_ver=$withval], - [fc_py_ver=2.5]) - -dnl At least version 2.5 required -AM_PATH_PYTHON($fc_py_ver) - - -AC_ARG_WITH(python-include, - AC_HELP_STRING([--with-python-include=DIR], [Path to the Python header files]), - [fc_py_incs=$withval], - [fc_py_incs=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_python_inc()"`]) - -AC_ARG_WITH(python-lib, - AC_HELP_STRING([--with-python-lib=DIR], [Path to the Python library files]), - [fc_py_libs=$withval], - [fc_py_libs=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBDIR')"`]) - -fc_py_ac_save_cppflags=$CPPFLAGS -fc_py_ac_save_ldflags=$LDFLAGS -fc_py_ac_save_libs=$LIBS -CPPFLAGS="$CPPFLAGS -I$fc_py_incs" -LDFLAGS="$LDFLAGS -L$fc_py_libs" -LIBS="-lpython$PYTHON_VERSION -lpthread -ldl -lutil -lm" - -dnl Small test program that only works with Python 2.5 and higher -fc_cv_lib_py_avail=no -AC_CHECK_HEADER(Python.h,[ -AC_MSG_CHECKING([for libpython$PYTHON_VERSION]) -AC_TRY_LINK([#include "Python.h"], - [Py_Initialize(); - const char* sys = "sys"; - PyImport_AddModule(sys); - Py_Finalize();], - [fc_cv_lib_py_avail=yes - AC_MSG_RESULT(yes)], - AC_MSG_RESULT(no))]) - -CPPFLAGS=$fc_py_ac_save_cppflags -LDFLAGS=$fc_py_ac_save_ldflags -LIBS=$fc_py_ac_save_libs - -if test x"$fc_cv_lib_py_avail" = xyes; then - all_includes="$all_includes -I$fc_py_incs" - all_libraries="$all_libraries -L$fc_py_libs" - - AC_SUBST([PYTHON_LIB], [python$PYTHON_VERSION]) -else - AC_MSG_ERROR([ - **** Cannot find Python$PYTHON_VERSION devel files. **** - ]) -fi - - -dnl checking for PyQt4 utilities -dnl ************************************************************************** -#AC_PATH_PROG(PYUIC4, pyuic4, false) -#if test "$PYUIC4" = false ; then -# AC_MSG_ERROR([Can't find pyuic4 utility]) -#fi -#AC_PATH_PROG(PYRCC4, pyrcc4, true) -#if test "$PYRCC4" = false ; then -# AC_MSG_ERROR([Can't find pyrcc4 utility]) -#fi -#AC_SUBST(PYUIC4) -#AC_SUBST(PYRCC4) - - -dnl checking for PyCXX & zipios++ -dnl ************************************************************************** -fc_make_no_dfsg_package=yes -AC_ARG_ENABLE(no-dfsg-tarball, - AC_HELP_STRING([--enable-no-dfsg-tarball], [Use local sources of PyCXX & zipios++ packages [[default=yes]]]), - [fc_make_no_dfsg_package=$enableval],[fc_make_no_dfsg_package=yes]) -# check if local versions of PyCXX & zipios++ are part of these sources -if test x"$fc_make_no_dfsg_package" = xyes; then - fc_py_ac_save_cppflags=$CPPFLAGS - CPPFLAGS="$CPPFLAGS -I$srcdir -I$srcdir/src" - AC_TRY_COMPILE([#include "src/CXX/Version.hxx"], [], - [], [fc_make_no_dfsg_package=no]) - CPPFLAGS=$fc_py_ac_save_cppflags -fi -AM_CONDITIONAL(MAKE_NO_DFSG_PACKAGE, test x"$fc_make_no_dfsg_package" = xyes) -AC_MSG_RESULT(Use local sources of PyCXX & zipios++... $fc_make_no_dfsg_package) - - -dnl checking for existence of (system-wide) PyCXX & zipios++ headers -dnl ************************************************************************** -ZIPIOS_LIB="" -if test x"$fc_make_no_dfsg_package" != xyes; then - fc_py_ac_save_cppflags=$CPPFLAGS - CPPFLAGS="$CPPFLAGS -I$fc_py_incs" - ZIPIOS_LIB="-lzipios" - AC_MSG_CHECKING(for PyCXX headers) - AC_TRY_COMPILE([#include ], [], - [AC_MSG_RESULT(yes)], - [AC_MSG_RESULT(no);AC_MSG_ERROR(Cannot find the PyCXX headers)]) - AC_MSG_CHECKING(for zipios++ headers) - AC_TRY_COMPILE([#include ], [], - [AC_MSG_RESULT(yes)], - [AC_MSG_RESULT(no);AC_MSG_ERROR(Cannot find the zipios++ headers)]) - CPPFLAGS=$fc_py_ac_save_cppflags -fi -AC_SUBST(ZIPIOS_LIB) - - -dnl checking for xerces-c -dnl ************************************************************************** -AC_MSG_CHECKING([for xerces-c]) -AC_ARG_WITH(xercesc-include, - AC_HELP_STRING([--with-xercesc-include=DIR], [Path to the xerces-c header files]), - [fc_xer_incs=$withval], - [fc_xer_incs=/usr/include]) - -AC_CHECK_FILE($fc_xer_incs/xercesc,, - [AC_CHECK_FILE(/usr/local/include/xercesc,[fc_xer_incs=/usr/local/include])]) - -AC_ARG_WITH(xercesc-lib, - AC_HELP_STRING([--with-xercesc-lib=DIR], [Path to the xerces-c library files]), - [fc_xer_libs=$withval], - [fc_xer_libs=/usr/lib]) - -fc_xer_ac_save_cppflags=$CPPFLAGS -fc_xer_ac_save_ldflags=$LDFLAGS -fc_xer_ac_save_libs=$LIBS -CPPFLAGS="$CPPFLAGS -I$fc_xer_incs" -LDFLAGS="$LDFLAGS -L$fc_xer_libs" -LIBS="-lxerces-c" - -fc_cv_lib_xer_avail=no -AC_CHECK_HEADER(xercesc/framework/XMLBuffer.hpp,[ -AC_MSG_CHECKING([whether xerces lib is available]) -AC_TRY_LINK([#include ], - [XERCES_CPP_NAMESPACE_USE - XMLBuffer buf;], - [fc_cv_lib_xer_avail=yes - AC_MSG_RESULT(yes)], - AC_MSG_RESULT(no))]) - -CPPFLAGS=$fc_xer_ac_save_cppflags -LDFLAGS=$fc_xer_ac_save_ldflags -LIBS=$fc_xer_ac_save_libs - -if test x"$fc_cv_lib_xer_avail" = xyes; then - all_includes="$all_includes -I$fc_xer_incs" - all_libraries="$all_libraries -L$fc_xer_libs" -else - AC_MSG_ERROR([ - **** Cannot find xerces devel files. **** - ]) -fi - - -dnl checking for ANN -dnl ************************************************************************** -dnl AC_MSG_CHECKING([for ANN]) -dnl AC_ARG_WITH(ann-include, -dnl AC_HELP_STRING([--with-ann-include=DIR], [Path to the ANN header files]), -dnl [fc_ann_incs=$withval], -dnl [fc_ann_incs=/usr/include]) -dnl -dnl AC_CHECK_FILE($fc_ann_incs/ANN,, -dnl [AC_CHECK_FILE(/usr/local/include/ANN,[fc_ann_incs=/usr/local/include])]) -dnl -dnl AC_ARG_WITH(ann-lib, -dnl AC_HELP_STRING([--with-ann-lib=DIR], [Path to the ANN library files]), -dnl [fc_ann_libs=$withval], -dnl [fc_ann_libs=/usr/lib]) -dnl -dnl fc_ann_ac_save_cppflags=$CPPFLAGS -dnl fc_ann_ac_save_ldflags=$LDFLAGS -dnl fc_ann_ac_save_libs=$LIBS -dnl CPPFLAGS="$CPPFLAGS -I$fc_ann_incs" -dnl LDFLAGS="$LDFLAGS -L$fc_ann_libs" -dnl LIBS="-lann" -dnl -dnl fc_cv_lib_ann_avail=no -dnl AC_CHECK_HEADER(ANN/ANN.h,[ -dnl AC_MSG_CHECKING([whether ANN lib is available]) -dnl AC_TRY_LINK([#include ], -dnl [ANNkd_tree ann;], -dnl [fc_cv_lib_ann_avail=yes -dnl AC_MSG_RESULT(yes)], -dnl AC_MSG_RESULT(no))]) -dnl -dnl CPPFLAGS=$fc_ann_ac_save_cppflags -dnl LDFLAGS=$fc_ann_ac_save_ldflags -dnl LIBS=$fc_ann_ac_save_libs -dnl -dnl if test x"$fc_cv_lib_ann_avail" = xyes; then -dnl all_includes="$all_includes -I$fc_ann_incs" -dnl all_libraries="$all_libraries -L$fc_ann_libs" -dnl else -dnl AC_MSG_ERROR([ -dnl **** Cannot find ANN devel files. **** -dnl ]) -dnl fi - - -dnl checking for eigen2 -dnl ************************************************************************** -dnl AC_MSG_CHECKING([for eigen2]) -dnl AC_ARG_WITH(eigen2-include, -dnl AC_HELP_STRING([--with-eigen2-include=DIR], [Path to the eigen2 header files]), -dnl [fc_eig_incs=$withval], -dnl [fc_eig_incs=/usr/include/eigen2]) -dnl -dnl AC_CHECK_FILE($fc_eig_incs/Eigen,, -dnl [AC_CHECK_FILE(/usr/local/include/eigen2,[fc_eig_incs=/usr/local/include/eigen2])]) -dnl -dnl fc_eig_ac_save_cppflags=$CPPFLAGS -dnl CPPFLAGS="$CPPFLAGS -I$fc_eig_incs" -dnl -dnl # Check a file which is present in Eigen2 but not in Eigen3 -dnl fc_cv_lib_eig_avail=no -dnl AC_CHECK_HEADER(Eigen/NewStdVector, -dnl fc_cv_lib_eig_avail=yes,) -dnl -dnl CPPFLAGS=$fc_eig_ac_save_cppflags -dnl -dnl if test x"$fc_cv_lib_eig_avail" = xyes; then -dnl AC_SUBST([EIGEN2_INC], [$fc_eig_incs]) -dnl else -dnl AC_MSG_WARN([ -dnl **** Cannot find eigen2 devel files. -dnl Modules that depend on this library cannot be built. **** -dnl ]) -dnl fi - -dnl AM_CONDITIONAL(HAVE_EIGEN2, test x"$fc_cv_lib_eig_avail" = xyes) - - -dnl checking for eigen3 -dnl ************************************************************************** -AC_MSG_CHECKING([for eigen3]) -AC_ARG_WITH(eigen3-include, - AC_HELP_STRING([--with-eigen3-include=DIR], [Path to the eigen3 header files]), - [fc_eig_incs=$withval], - [fc_eig_incs=/usr/include/eigen3]) - -AC_CHECK_FILE($fc_eig_incs/Eigen,, - [AC_CHECK_FILE(/usr/local/include/eigen3,[fc_eig_incs=/usr/local/include/eigen3])]) - -fc_eig_ac_save_cppflags=$CPPFLAGS -CPPFLAGS="$CPPFLAGS -I$fc_eig_incs" - -# Check a file which is present in Eigen3 but not in Eigen2 -fc_cv_lib_eig_avail=no -AC_CHECK_HEADER(Eigen/Eigenvalues, - fc_cv_lib_eig_avail=yes,) - -CPPFLAGS=$fc_eig_ac_save_cppflags - -if test x"$fc_cv_lib_eig_avail" = xyes; then - AC_SUBST([EIGEN3_INC], [$fc_eig_incs]) -else - AC_MSG_WARN([ - **** Cannot find eigen3 devel files. - Modules that depend on this library cannot be built. **** - ]) -fi - -AM_CONDITIONAL(HAVE_EIGEN3, test x"$fc_cv_lib_eig_avail" = xyes) - -dnl checking for boost -dnl ****************** - -FREECAD_AC_HAVE_BOOST - - -dnl checking for Qt -dnl *************** - -FREECAD_AC_HAVE_QT(4.3) - - -dnl checking for Coin -dnl ************************************************************************** - -SIM_AC_HAVE_COIN_IFELSE(,AC_MSG_ERROR([ - **** Cannot find Coin devel files. **** - ])) - -AC_SUBST([sim_ac_coin_includedir]) -AC_SUBST([sim_ac_coin_cppflags]) -AC_SUBST([sim_ac_coin_ldflags]) -AC_SUBST([sim_ac_coin_libs]) - -dnl checking for SoQt -dnl ************************************************************************** - -SIM_AC_HAVE_SOQT_IFELSE(,AC_MSG_ERROR([ - **** Cannot find SoQt devel files. **** - ])) - -AC_SUBST([sim_ac_soqt_includedir]) -AC_SUBST([sim_ac_soqt_cppflags]) -AC_SUBST([sim_ac_soqt_ldflags]) -AC_SUBST([sim_ac_soqt_libs]) - -dnl ************************************************************************** -dnl checking for optional libraies -dnl ************************************************************************** - -dnl checking for OpenGL libs -dnl ************************************************************************** -case $host_os in - mingw32*) - GL_LIBS="-lopengl32 -lglu32" - ;; - darwin*) - GL_LIBS="-Wl,-F/System/Library/Frameworks -Wl,-framework,OpenGL" - ;; - linux*|kfreebsd*-gnu*) - GL_LIBS="-lGL -lGLU" - ;; -esac -AC_SUBST(GL_LIBS) - -dnl checking for OpenCascade -dnl ************************************************************************** -dnl Check if CASROOT is set and estimate where the include and libs could be -if test x"$CASROOT" != x; then - fc_occ_incs_test="$CASROOT/inc" - fc_occ_libs_test="$CASROOT/Linux/lib" -else - fc_occ_incs_test=/usr/include/opencascade - fc_occ_libs_test=/usr/lib -fi - -AC_CHECKING([OpenCascade]) -AC_ARG_WITH(occ-include, - AC_HELP_STRING([--with-occ-include=DIR], [Path to the OpenCascade header files]), - [fc_occ_incs=$withval], - [fc_occ_incs=$fc_occ_incs_test]) - -AC_ARG_WITH(occ-lib, - AC_HELP_STRING([--with-occ-lib=DIR], [Path to the OpenCascade library files]), - [fc_occ_libs=$withval], - [fc_occ_libs=$fc_occ_libs_test]) - -fc_occ_ac_save_cppflags=$CPPFLAGS -fc_occ_ac_save_ldflags=$LDFLAGS -fc_occ_ac_save_libs=$LIBS -CPPFLAGS="$CPPFLAGS -I$fc_occ_incs" -LDFLAGS="$LDFLAGS -L$fc_occ_libs" -LIBS="-ldl -lTKernel" - -fc_cv_lib_occ_avail=no -AC_CHECK_HEADER(Standard.hxx,[ -AC_MSG_CHECKING([whether OCC libs are available]) -AC_TRY_LINK([#define HAVE_IOSTREAM 1 - #include ], - [gp_Pnt pt(0,0,0);], - [fc_cv_lib_occ_avail=yes - AC_MSG_RESULT(yes)], - AC_MSG_RESULT(no))]) - -# Checking for version >= 6.1 -LIBS="-ldl -lTKernel -lTKMesh -lTKG2d -lTKG3d -lTKTopAlgo -lTKMath -lTKBRep -lTKGeomBase -lTKGeomAlgo" -fc_cv_lib_occ_ver_6=no -if test x"$fc_cv_lib_occ_avail" = xyes; then - AC_CHECK_HEADER(Standard.hxx,[ - AC_MSG_CHECKING([whether OCC is >= 6.1]) - AC_TRY_LINK([#define HAVE_IOSTREAM 1 - #include ], - [gp_Pnt pt(0,0,0);], - [fc_cv_lib_occ_ver_6=yes - AC_MSG_RESULT(yes)], - AC_MSG_RESULT(no))]) -fi - -CPPFLAGS=$fc_occ_ac_save_cppflags -LDFLAGS=$fc_occ_ac_save_ldflags -LIBS=$fc_occ_ac_save_libs - -if test x"$fc_cv_lib_occ_avail" = xyes; then - AC_SUBST([OCC_INC], [$fc_occ_incs]) - AC_SUBST([OCC_LIB], [$fc_occ_libs]) -else - AC_MSG_WARN([ - **** Cannot find OpenCASCADE devel files. - Modules that depend on this library cannot be built. **** - ]) -fi - -AM_CONDITIONAL(HAVE_OPENCASCADE, test x"$fc_cv_lib_occ_avail" = xyes) -AM_CONDITIONAL(OCC_VERSION6, test x"$fc_cv_lib_occ_ver_6" = xyes) - - -dnl checking for Salome SMESH -dnl ************************************************************************** -#AC_MSG_CHECKING([for Salome SMESH]) -#AC_ARG_WITH(smesh-include, -# AC_HELP_STRING([--with-smesh-include=DIR], [Path to the Salome SMESH header files]), -# [fc_smesh_incs=$withval], -# [fc_smesh_incs=/usr/include]) -# -#AC_CHECK_FILE($fc_smesh_incs/SMESH_Gen.hxx,, -# [AC_CHECK_FILE(/usr/local/include/smesh,[fc_smesh_incs=/usr/local/include])]) -# -#AC_ARG_WITH(smesh-lib, -# AC_HELP_STRING([--with-smesh-lib=DIR], [Path to the Salome SMESH library files]), -# [fc_smesh_libs=$withval], -# [fc_smesh_libs=/usr/lib]) -# -#fc_smesh_ac_save_cppflags=$CPPFLAGS -#fc_smesh_ac_save_ldflags=$LDFLAGS -#fc_smesh_ac_save_libs=$LIBS -#CPPFLAGS="$CPPFLAGS -I$fc_smesh_incs -I$OCC_INC" -#LDFLAGS="$LDFLAGS -L$fc_smesh_libs" -#LIBS="-lSMESH" -# -#fc_cv_lib_smesh_avail=no -#AC_CHECK_HEADER(SMESH_Gen.hxx,[ -#AC_MSG_CHECKING([whether SMESH lib is available]) -#AC_TRY_LINK([#include ], -# [SMESH_Gen meshgen;], -# [fc_cv_lib_smesh_avail=yes -# AC_MSG_RESULT(yes)], -# AC_MSG_RESULT(no))]) -# -#CPPFLAGS=$fc_smesh_ac_save_cppflags -#LDFLAGS=$fc_smesh_ac_save_ldflags -#LIBS=$fc_smesh_ac_save_libs -# -#if test x"$fc_cv_lib_smesh_avail" = xyes; then -# AC_SUBST([SMESH_INCLUDE], [$fc_smesh_incs]) -# AC_SUBST([SMESH_LIBRARY], [$fc_smesh_libs]) -#else -# AC_MSG_WARN([ -# **** Cannot find Salome SMESH devel files. **** -# ]) -#fi -# -#AM_CONDITIONAL(HAVE_SALOMESMESH, test x"$fc_cv_lib_smesh_avail" = xyes) - -# check whether netgen support has to be enabled -AC_ARG_ENABLE(netgen,[--enable-netgen use netgen [default=no]],enable_netgen=$enableval,enable_netgen=no) -if test "$enable_netgen" = "yes"; then - AC_CHECK_HEADERS([nglib.h]) -fi -AM_CONDITIONAL(NETGEN, test "$enable_netgen" = "yes") - -AC_TRY_COMPILE( [], - [int array[((int)sizeof(void*))-6];], - [enable_stdmeshers_64bit="yes"], - [enable_stdmeshers_64bit="no"] ) -AM_CONDITIONAL(STDMESHERS64BIT, test "$enable_stdmeshers_64bit" = "yes") - - -dnl checking for spnav library (for 3d mouse support) -dnl ************************************************************************** -AC_MSG_CHECKING([for spnav]) -AC_ARG_WITH(spnav-include, - AC_HELP_STRING([--with-spnav-include=DIR], [Path to the spnav header files]), - [fc_spnav_incs=$withval], - [fc_spnav_incs=/usr/include]) - -fc_spnav_ac_save_cppflags=$CPPFLAGS -CPPFLAGS="$CPPFLAGS -I$fc_spnav_incs" - -fc_cv_lib_spnav_avail=no -AC_CHECK_HEADER(spnav.h, - fc_cv_lib_spnav_avail=yes,) - -CPPFLAGS=$fc_spnav_ac_save_cppflags - -if test x"$fc_cv_lib_spnav_avail" = xyes; then - AC_SUBST([SPNAV_INC], [$fc_spnav_incs]) -else - AC_MSG_WARN([ - **** Cannot find spnav devel files. - No support for 3D SpaceNavigator. **** - ]) -fi - -AM_CONDITIONAL(HAVE_SPNAV_FOUND, test x"$fc_cv_lib_spnav_avail" = xyes) - - -dnl checking for matplotlib -dnl ************************************************************************** -fc_matplotlib_avail=no -AC_MSG_CHECKING([for matplotlib]) -fc_matplotlib_ver=`python -c "import matplotlib as m; print m.__version__;"`; -if test x$fc_py_ver = x; then - AC_MSG_WARN([ - **** Cannot find matplotlib Python module. - Plot Module will not available until matplotlib is installed **** - ]) -else - fc_matplotlib_avail=yes -fi; -AC_MSG_RESULT([yes]) -AM_CONDITIONAL(HAVE_MATPLOTLIB, test x"$fc_matplotlib_avail" = xyes) - -#--------------------------------------------------------------------- -# -# Check if 64-bit platform -# -#--------------------------------------------------------------------- -AC_MSG_CHECKING([if platform is 64-bit (-D_OCC64)]) -AC_TRY_COMPILE( [], - [int array[((int)sizeof(void*))-6];], - [AC_MSG_RESULT([yes]); CPPFLAGS="$CPPFLAGS -D_OCC64"; case $platform in Linux*) CPPFLAGS="$CPPFLAGS -m64";; esac], - [AC_MSG_RESULT([no])] ) - -#AC_MSG_CHECKING([if platform is 64-bit (-D_OCC64)]) -#AC_TRY_COMPILE([],[int array[6-(int)sizeof(void*)];],[AC_MSG_RESULT(no)], -# [AC_MSG_RESULT(yes); OCC_INC_FLAG="$OCC_INC_FLAG -D_OCC64"]) - -dnl checking for WildMagic3 -dnl ************************************************************************** -dnl AC_CHECKING([WildMagic3]) -dnl AC_ARG_WITH(wm3-include, -dnl AC_HELP_STRING([--with-wm3-include=DIR], [Path to the WildMagic3 header files]), -dnl [fc_wm3_incs=$withval], -dnl [fc_wm3_incs=/usr/include/WildMagic3/Include]) -dnl -dnl AC_ARG_WITH(wm3-lib, -dnl AC_HELP_STRING([--with-wm3-lib=DIR], [Path to the WildMagic3 library files]), -dnl [fc_wm3_libs=$withval], -dnl [fc_wm3_libs=/usr/lib]) -dnl -dnl AC_CHECK_FILE($fc_wm3_incs/Wm3Query.h,fc_wm3_ver=340,fc_wm3_ver=330) -dnl -dnl Set the appropriate library name -dnl if test x"$fc_wm3_ver" = x"330"; then -dnl fc_wm3_lib="WildMagic3" -dnl fc_wm3_txt="Version <= 3.3.0" -dnl else -dnl fc_wm3_lib="Wm3Foundation" -dnl fc_wm3_txt="Version >= 3.4.0" -dnl fi -dnl -dnl fc_wm3_ac_save_cppflags=$CPPFLAGS -dnl fc_wm3_ac_save_ldflags=$LDFLAGS -dnl fc_wm3_ac_save_libs=$LIBS -dnl CPPFLAGS="$CPPFLAGS -I$fc_wm3_incs" -dnl LDFLAGS="$LDFLAGS -L$fc_wm3_libs" -dnl LIBS="-l$fc_wm3_lib" -dnl -dnl fc_cv_lib_wm3_avail=no -dnl AC_CHECK_HEADER(Wm3Math.h,[ -dnl AC_MSG_CHECKING([whether WildMagic lib is available]) -dnl AC_TRY_LINK([#include ], -dnl [double val = Wm3::Math::Cos(0.0);], -dnl [fc_cv_lib_wm3_avail=yes -dnl AC_MSG_RESULT(yes)], -dnl AC_MSG_RESULT(no))]) -dnl -dnl CPPFLAGS=$fc_wm3_ac_save_cppflags -dnl LDFLAGS=$fc_wm3_ac_save_ldflags -dnl LIBS=$fc_wm3_ac_save_libs -dnl -dnl if test x"$fc_cv_lib_wm3_avail" = xyes; then -dnl AC_SUBST([WM3_CFLAGS], [-I$fc_wm3_incs]) -dnl AC_SUBST([WM3_LDFLAGS], [-L$fc_wm3_libs]) -dnl AC_SUBST([WM3_LIBS], [-l$fc_wm3_lib]) -dnl AC_SUBST([WM3_VERSION], [$fc_wm3_ver]) -dnl else -dnl AC_MSG_WARN([ -dnl **** Cannot find WildMagic devel files. -dnl Modules that depend on this library cannot be built. **** -dnl ]) -dnl fi -dnl -dnl AM_CONDITIONAL(WM3_LIBRARY_FILES, test x"$fc_cv_lib_wm3_avail" = xyes) - -dnl checking for GTS -dnl ************************************************************************** -dnl -dnl AC_PATH_PROG(GTSCONFIG, gts-config, false, $PATH) -dnl if test x"$GTSCONFIG" != xfalse; then -dnl fc_gts_incs=`gts-config --cflags` -dnl fc_gts_libs=`gts-config --libs` -dnl -dnl AC_SUBST([GTS_CFLAGS], [$fc_gts_incs]) -dnl AC_SUBST([GTS_LIBS], [$fc_gts_libs]) -dnl else -dnl AC_MSG_WARN([ -dnl **** Cannot find GTS library files. -dnl Modules that depend on this library cannot be built. **** -dnl ]) -dnl fi -dnl -dnl AM_CONDITIONAL(HAVE_GTS, test x"$GTSCONFIG" != xfalse) - -dnl checking for OpenCV -dnl ************************************************************************** - -dnl HAVE_OPENCV=false -dnl PKG_CHECK_MODULES(opencv, opencv, [HAVE_OPENCV=true], [true]) -dnl if test x$HAVE_OPENCV = xfalse; then -dnl AC_MSG_WARN([ -dnl **** Cannot find OpenCV library files. -dnl Modules that depend on this library cannot be built. **** -dnl ]) -dnl fi -dnl -dnl AM_CONDITIONAL([HAVE_OPENCV], [test x$HAVE_OPENCV = xtrue]) - -dnl ************************************************************************** - -AC_SUBST(all_includes) -AC_SUBST(all_libraries) - -dnl Check if you want to have log info, or not -dnl ************************************************************************** - -AC_ARG_ENABLE([loginfo], - AC_HELP_STRING([--enable-loginfo], [Enable log information (disabled by default)]), - [case $enableval in - no | false) fc_set_loginfo=false ;; - *) fc_set_loginfo=true ;; - esac], - [fc_set_loginfo=false]) - -if $fc_set_loginfo; then - CPPFLAGS="$CPPFLAGS -DFC_DEBUG" -fi - -AC_ARG_ENABLE([template], - AC_HELP_STRING([--enable-template], [Enable the build of the _TEMPLATE_ module (disabled by default)]), - [case $enableval in - no | false) fc_set_template=false ;; - *) fc_set_template=true ;; - esac], - [fc_set_template=false]) - -AM_CONDITIONAL(BUILD_TEMPLATE, test x"$fc_set_template" = xtrue) - -AC_ARG_ENABLE([sandbox], - AC_HELP_STRING([--enable-sandbox], [Enable the build of the Sandbox module (disabled by default)]), - [case $enableval in - no | false) fc_set_sandbox=false ;; - *) fc_set_sandbox=true ;; - esac], - [fc_set_sandbox=false]) - -AM_CONDITIONAL(BUILD_SANDBOX, test x"$fc_set_sandbox" = xtrue) - -AC_ARG_ENABLE([assembly], - AC_HELP_STRING([--enable-assembly], [Enable the build of the Assembly module (disabled by default)]), - [case $enableval in - no | false) fc_set_assembly=false ;; - *) fc_set_assembly=true ;; - esac], - [fc_set_assembly=false]) - -AM_CONDITIONAL(BUILD_ASSEMBLY, test x"$fc_set_assembly" = xtrue) - -AC_ARG_ENABLE([cam], - AC_HELP_STRING([--enable-cam], [Enable the build of the Cam module (disabled by default)]), - [case $enableval in - no | false) fc_set_cam=false ;; - *) fc_set_cam=true ;; - esac], - [fc_set_cam=false]) - -AM_CONDITIONAL(BUILD_CAM, test x"$fc_set_cam" = xtrue) - -dnl Check if you want debug information enabled, or not -dnl ************************************************************************** - -AC_ARG_ENABLE([debug], - AC_HELP_STRING([--enable-debug], [Enable debug information (enabled by default)]), - [case $enableval in - no | false) fc_set_debug=false ;; - *) fc_set_debug=true ;; - esac], - [fc_set_debug=true]) -if $fc_set_debug; then - CPPFLAGS="$CPPFLAGS -g -D_DEBUG" -else - CPPFLAGS="$CPPFLAGS -O2 -DNDEBUG" -fi - -dnl Check if you want thread support, or not (currently disabled, thread support is forced) -dnl ************************************************************************** - -CPPFLAGS="$CPPFLAGS -D_REENTRANT" -LDFLAGS="$LDFLAGS -lpthread" -fc_set_thread=true - -#AC_ARG_ENABLE([thread], -# AC_HELP_STRING([--enable-thread], [Enable thread support]), -# [case $enableval in -# no | false) fc_set_thread=false ;; -# *) fc_set_thread=true ;; -# esac], -# [fc_set_thread=true]) -#if $fc_set_thread; then -# AC_CHECK_HEADER([pthread.h]) -# AC_CHECK_LIB([pthread],[pthread_create]) -# if test "$ac_cv_header_pthread_h" != yes -o \ -# "$ac_cv_lib_pthread_pthread_create" != yes; then -# AC_MSG_ERROR([POSIX threads (pthreads) not working. Bye.]) -# else -## this is apparently needed for some versions of autoconf/automake -## LIBS="-lpthread $LIBS" -## CXXFLAGS="$CXXFLAGS -D_REENTRANT" -# CPPFLAGS="$CPPFLAGS -D_REENTRANT" -# LDFLAGS="-lpthread" -# fi -#else -# CPPFLAGS="$CPPFLAGS -DNO_FC_THREAD" -#fi - -dnl Check if you want compiler warnings enabled, or not -dnl ************************************************************************** - -AC_ARG_ENABLE([warnings], - AC_HELP_STRING([--enable-warnings], [Enable compiler warnings (enabled by default)]), - [case $enableval in - no | false) fc_set_warn=false ;; - *) fc_set_warn=true ;; - esac], - [fc_set_warn=true]) -if $fc_set_warn; then -# CPPFLAGS="$CPPFLAGS -Wall -W" - CPPFLAGS="$CPPFLAGS -Wall" -else - CPPFLAGS="$CPPFLAGS -w" -fi - -dnl Check if you want precompiled headers (PCH) enabled, or not -dnl *********************************************************** -dnl -dnl enableval=no -dnl AC_MSG_CHECKING([whether to use precompiled headers]) -dnl AC_ARG_ENABLE(pch, -dnl AC_HELP_STRING([--enable-pch], -dnl [use precompiled headers, if available])) -dnl case "${enableval}" in -dnl yes) -dnl AC_MSG_RESULT(yes) -dnl COMP_FLAGS="$COMP_FLAGS -Winvalid-pch" -dnl ;; -dnl no) -dnl AC_MSG_RESULT(no) -dnl ;; -dnl *) -dnl AC_MSG_ERROR([bad value ${enableval} for --enable-pch, needs yes or no]) -dnl ;; -dnl esac -dnl AM_CONDITIONAL(USE_PRECOMPILED_HEADERS, test x"$enableval" = xyes) -dnl -dnl CFLAGS="$COMP_FLAGS $OPT_FLAGS" -dnl CXXFLAGS="$COMP_FLAGS $OPT_FLAGS" -dnl ************************************************************************** -dnl Use this Makefile.am -dnl if USE_PRECOMPILED_HEADERS -dnl PreCompiled.h.gch: PreCompiled.h -dnl $(CXXCOMPILE) -xc++-header -o $@ $< -dnl -dnl PRECOMPILED = PreCompiled.h.gch -dnl else -dnl PRECOMPILED = -dnl endif -dnl -dnl BUILT_SOURCES=\ -dnl $(PRECOMPILED) -dnl ************************************************************************** - -dnl Define DISTCHECK_CONFIGURE_FLAGS -dnl ************************************************************************** -DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS CXXFLAGS=\"-fno-strict-aliasing -Wno-write-strings\" LDFLAGS=\"-Wl,-z,defs\"" -AC_SUBST(DISTCHECK_CONFIGURE_FLAGS) - -CXX=g++ -CXXFLAGS="$CXXFLAGS -Wno-deprecated -frtti" - -dnl doxygen -dnl ************************************************************************** -AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, true, false) -AM_CONDITIONAL(HAVE_DOXYGEN,$HAVE_DOXYGEN) -if test $HAVE_DOXYGEN = "false"; then - AC_MSG_WARN([doxygen not found]) -fi - -DOXYGEN_OUTPUT_DIR="." -AC_SUBST(DOXYGEN_OUTPUT_DIR) - -DOXYGEN_INPUT_LIST="$srcdir/src/CXX $srcdir/src/zipios++ $srcdir/src/3rdParty $srcdir/src/Build $srcdir/src/Base $srcdir/src/App $srcdir/src/Gui $srcdir/src/Mod $srcdir/src/Main $srcdir/src/Doc" -AC_SUBST(DOXYGEN_INPUT_LIST) - -DOXYGEN_EXCLUDE_LIST="$srcdir/src/Tools $srcdir/src/3rdParty/CxImage $srcdir/src/3rdParty/Pivy $srcdir/src/3rdParty/Pivy-0.5" -AC_SUBST(DOXYGEN_EXCLUDE_LIST) - -DOXYGEN_IMAGE_PATH="$srcdir/src/Gui/Icons" -AC_SUBST(DOXYGEN_IMAGE_PATH) - -DOXYGEN_INCLUDE_PATH="$srcdir/src/Doc/doxygen-headers" -AC_SUBST(DOXYGEN_INCLUDE_PATH) - -#AC_CONFIG_FILES([src/Doc/doxygen-headers/Inventor/fields/SoSubField.h:$sim_ac_coin_includedir/Inventor/fields/SoSubField.h]) - -dnl ************************************************************************** - -AC_CONFIG_FILES([Makefile -data/Makefile -data/examples/Makefile -src/Makefile -src/Build/Makefile -src/3rdParty/Makefile -src/3rdParty/salomesmesh/Makefile -src/Base/Makefile -src/App/Makefile -src/Gui/Makefile -src/Gui/Icons/Makefile -src/Gui/Language/Makefile -src/Gui/propertyeditor/Makefile -src/Gui/iisTaskPanel/Makefile -src/Gui/TaskView/Makefile -src/Main/Makefile -src/Doc/Makefile -src/Doc/BuildDevDoc.cfg -src/Mod/Makefile -src/Mod/Assembly/App/Makefile -src/Mod/Assembly/Gui/Resources/Makefile -src/Mod/Assembly/Gui/Makefile -src/Mod/Assembly/Makefile -src/Mod/Cam/App/Makefile -src/Mod/Cam/Gui/Makefile -src/Mod/Cam/Makefile -src/Mod/Part/Makefile -src/Mod/Part/App/Makefile -src/Mod/Part/Gui/Makefile -src/Mod/Import/Makefile -src/Mod/Import/Gui/Makefile -src/Mod/Raytracing/Makefile -src/Mod/Raytracing/App/Makefile -src/Mod/Raytracing/Gui/Makefile -src/Mod/Raytracing/Templates/Makefile -src/Mod/Mesh/Makefile -src/Mod/Mesh/App/Makefile -src/Mod/Mesh/Gui/Makefile -src/Mod/MeshPart/Makefile -src/Mod/MeshPart/App/Makefile -src/Mod/MeshPart/Gui/Makefile -src/Mod/MeshPart/Gui/Resources/Makefile -src/Mod/Fem/Makefile -src/Mod/Fem/App/Makefile -src/Mod/Fem/Gui/Makefile -src/Mod/Fem/Gui/Resources/Makefile -src/Mod/PartDesign/Makefile -src/Mod/PartDesign/App/Makefile -src/Mod/PartDesign/Gui/Makefile -src/Mod/PartDesign/Gui/Resources/Makefile -src/Mod/PartDesign/Scripts/Makefile -src/Mod/Sketcher/Makefile -src/Mod/Sketcher/App/Makefile -src/Mod/Sketcher/App/freegcs/Makefile -src/Mod/Sketcher/Gui/Makefile -src/Mod/Sketcher/Gui/Resources/Makefile -src/Mod/Sketcher/Templates/Makefile -src/Mod/Points/Makefile -src/Mod/Points/App/Makefile -src/Mod/Points/Gui/Makefile -src/Mod/Image/Makefile -src/Mod/Image/App/Makefile -src/Mod/Image/Gui/Makefile -src/Mod/Drawing/Makefile -src/Mod/Drawing/App/Makefile -src/Mod/Drawing/Gui/Makefile -src/Mod/Drawing/Gui/Resources/Makefile -src/Mod/Drawing/Templates/Makefile -src/Mod/ReverseEngineering/Makefile -src/Mod/ReverseEngineering/App/Makefile -src/Mod/ReverseEngineering/Gui/Makefile -src/Mod/ReverseEngineering/Gui/Resources/Makefile -src/Mod/Inspection/Makefile -src/Mod/Inspection/App/Makefile -src/Mod/Inspection/Gui/Makefile -src/Mod/Robot/Makefile -src/Mod/Robot/App/Makefile -src/Mod/Robot/Gui/Makefile -src/Mod/Robot/Gui/Resources/Makefile -src/Mod/Robot/Lib/Makefile -src/Mod/Complete/Makefile -src/Mod/Complete/App/Makefile -src/Mod/Complete/Gui/Makefile -src/Mod/Complete/Gui/Resources/Makefile -src/Mod/Draft/Makefile -src/Mod/Arch/Makefile -src/Mod/Test/Makefile -src/Mod/Test/Gui/Makefile -src/Mod/Web/Makefile -src/Mod/Web/Gui/Makefile -src/Mod/Web/Gui/Resources/Makefile -src/Mod/Start/Makefile -src/Mod/Start/App/Makefile -src/Mod/Start/Gui/Makefile -src/Mod/Start/Gui/Resources/Makefile -src/Mod/Start/StartPage/Makefile -src/Mod/Idf/Makefile -src/Mod/TemplatePyMod/Makefile -src/Mod/Sandbox/Makefile -src/Mod/Sandbox/App/Makefile -src/Mod/Sandbox/Gui/Makefile -src/Mod/Ship/Makefile -src/Mod/OpenSCAD/Makefile -src/Mod/Plot/Makefile -src/Tools/Makefile -src/Tools/_TEMPLATE_/Makefile -src/Tools/_TEMPLATE_/App/Makefile -src/Tools/_TEMPLATE_/Gui/Makefile -]) -#src/3rdParty/Pivy/Makefile - -AC_OUTPUT - -dnl Show a configuration report -dnl ************************************************************************** - -AC_MSG_NOTICE([ - - ************************************************************************** - - FreeCAD configuration settings: - - C++ compiler: $CXX - Python version: $PYTHON_VERSION - Log info enabled: $fc_set_loginfo - Debug info enabled: $fc_set_debug - Thread enabled (forced): $fc_set_thread - RTTI enabled (forced): true - Compiler warnings enabled: $fc_set_warn - installation prefix: $prefix - enable-assembly: $fc_set_assembly - enable-cam: $fc_set_cam - enable-sandbox: $fc_set_sandbox - enable-template: $fc_set_template - Now, run 'make' to build FreeCAD. - - ************************************************************************** -]) - -dnl ************************************************************************** - diff --git a/mkinstalldirs b/mkinstalldirs deleted file mode 100644 index d2d5f21b6..000000000 --- a/mkinstalldirs +++ /dev/null @@ -1,111 +0,0 @@ -#! /bin/sh -# mkinstalldirs --- make directory hierarchy -# Author: Noah Friedman -# Created: 1993-05-16 -# Public domain - -errstatus=0 -dirmode="" - -usage="\ -Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." - -# process command line arguments -while test $# -gt 0 ; do - case $1 in - -h | --help | --h*) # -h for help - echo "$usage" 1>&2 - exit 0 - ;; - -m) # -m PERM arg - shift - test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } - dirmode=$1 - shift - ;; - --) # stop option processing - shift - break - ;; - -*) # unknown option - echo "$usage" 1>&2 - exit 1 - ;; - *) # first non-opt arg - break - ;; - esac -done - -for file -do - if test -d "$file"; then - shift - else - break - fi -done - -case $# in - 0) exit 0 ;; -esac - -case $dirmode in - '') - if mkdir -p -- . 2>/dev/null; then - echo "mkdir -p -- $*" - exec mkdir -p -- "$@" - fi - ;; - *) - if mkdir -m "$dirmode" -p -- . 2>/dev/null; then - echo "mkdir -m $dirmode -p -- $*" - exec mkdir -m "$dirmode" -p -- "$@" - fi - ;; -esac - -for file -do - set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` - shift - - pathcomp= - for d - do - pathcomp="$pathcomp$d" - case $pathcomp in - -*) pathcomp=./$pathcomp ;; - esac - - if test ! -d "$pathcomp"; then - echo "mkdir $pathcomp" - - mkdir "$pathcomp" || lasterr=$? - - if test ! -d "$pathcomp"; then - errstatus=$lasterr - else - if test ! -z "$dirmode"; then - echo "chmod $dirmode $pathcomp" - lasterr="" - chmod "$dirmode" "$pathcomp" || lasterr=$? - - if test ! -z "$lasterr"; then - errstatus=$lasterr - fi - fi - fi - fi - - pathcomp="$pathcomp/" - done -done - -exit $errstatus - -# Local Variables: -# mode: shell-script -# sh-indentation: 2 -# End: -# mkinstalldirs ends here