⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 http://gaul.sourceforge.net/ 这里大部分人讨论的是在Matlab里实现GA的toolbox.以上为一个GA的C语言的软件包.如果你想利用GA做优化算法,非常有用.而且有
💻 IN
📖 第 1 页 / 共 3 页
字号:
	     [AC_TRY_COMPILE(,	     [_Bool blah = (_Bool)0;],	     gaul__bool="yes", gaul__bool="no")])if test "x$gaul__bool" = "xno" && test "x$gaul_header_stdbool_h" = "xyes"; then  AC_TRY_COMPILE([#include <stdbool.h>],           [_Bool blah = (_Bool)0;],           gaul__bool="yes", gaul__bool="no")fiif test "x$gaul__bool" = "xyes"; then  AC_DEFINE(HAVE__BOOL, 1, [Define if compiler has built-in _Bool type.])fi# Where the linker must look!CFLAGS="$CFLAGS $INCLUDES"#LIBS="$LIBS"#LIBS="$LIBS $MPILIBS"## Add code to config.status to generate a platform dependent configuration# file for installation.#AC_OUTPUT_COMMANDS([  if ( test -n "$CONFIG_FILES" && test -n "$CONFIG_HEADERS" ); then    # If both these vars are non-empty, then config.status wasn't run by    # automake rules (which always set one or the other to empty).    CONFIG_OTHER=${CONFIG_OTHER-util/gaul/gaul_config.h}  fi  case "$CONFIG_OTHER" in  *util/gaul/gaul_config.h*)    outfile=util/gaul/gaul_config.h    stampfile=util/gaul/stamp-gaul_config    tmpfile=${outfile}.tmp    dirname="sed s,^.*/,,g"    echo creating $outfile    cat > $tmpfile << _EOF_/******************************************************************** * * DO NOT EDIT THIS FILE!  It was automatically generated from: *    configure.in and `echo $outfile|$dirname`.in *    on host: `(hostname || uname -n) 2>/dev/null | sed 1q` * ********************************************************************/#ifndef GAUL_CONFIG_H_INCLUDED#define GAUL_CONFIG_H_INCLUDED_EOF_    cat $outfile.in >> $tmpfile        echo "/* $outfile.in */" >> $tmpfile    # Add the code to include these headers only if autoconf has    # shown them to be present.    if test x$ac_cv_header_pwd_h = xyes; then      echo '#include <pwd.h>' >> $tmpfile    fi    if test x$ac_cv_header_sys_select_h = xyes; then      echo '#include <sys/select.h>' >> $tmpfile    fi    if test x$ac_cv_header_sys_signal_h = xyes; then      echo '#include <sys/signal.h>' >> $tmpfile    fi    if test x$ac_cv_header_sys_time_h = xyes; then      echo '#include <sys/time.h>' >> $tmpfile    fi    if test x$ac_cv_header_sys_types_h = xyes; then      echo '#include <sys/types.h>' >> $tmpfile    fi    if test x$ac_cv_header_sys_wait_h = xyes; then      echo '#include <sys/wait.h>' >> $tmpfile    fi    if test x$ac_cv_header_limits_h = xyes; then      echo '#include <limits.h>' >> $tmpfile    fi    if test x$ac_cv_header_unistd_h = xyes; then      echo '#include <unistd.h>' >> $tmpfile    fi    if test x$ac_cv_header_string_h = xyes; then      echo '#include <string.h>' >> $tmpfile    elif test x$ac_cv_header_strings_h = xyes; then      echo '#include <strings.h>' >> $tmpfile    fi    cat >> $tmpfile << _EOF_#ifndef errno/* Some sytems #define this! */extern int errno;#endif_EOF_    if test "x$gaul_header_stdbool_h" = "xyes"; then      echo '#define HAVE_STDBOOL_H 1' >> $tmpfile    fi    if test "x$gaul__bool" = "xyes"; then      echo '#define HAVE__BOOL 1' >> $tmpfile    fi    cat >> $tmpfile << _EOF_/* * Explicitly tested functions for this platform: */_EOF_    if test "x$ac_cv_func_memcpy" = "xyes"; then      echo '#define HAVE_MEMCPY 1' >> $tmpfile    else      echo '#define HAVE_MEMCPY 0' >> $tmpfile    fi    if test "x$ac_cv_func_min" = "xyes"; then      echo '#define HAVE_MIN 1' >> $tmpfile    else      echo '#define HAVE_MIN 0' >> $tmpfile    fi    if test "x$ac_cv_func_max" = "xyes"; then      echo '#define HAVE_MAX 1' >> $tmpfile    else      echo '#define HAVE_MAX 0' >> $tmpfile    fi    if test "x$ac_cv_func_sincos" = "xyes"; then      echo '#define HAVE_SINCOS 1' >> $tmpfile    else      echo '#define HAVE_SINCOS 0' >> $tmpfile    fi    if test "x$ac_cv_func_strdup" = "xyes"; then      echo '#define HAVE_STRDUP 1' >> $tmpfile    else      echo '#define HAVE_STRDUP 0' >> $tmpfile    fi    if test "x$ac_cv_func_strndup" = "xyes"; then      echo '#define HAVE_STRNDUP 1' >> $tmpfile    else      echo '#define HAVE_STRNDUP 0' >> $tmpfile    fi    if test "x$ac_cv_func_strcpy" = "xyes"; then      echo '#define HAVE_STRCPY 1' >> $tmpfile    else      echo '#define HAVE_STRCPY 0' >> $tmpfile    fi    if test "x$ac_cv_func_strncpy" = "xyes"; then      echo '#define HAVE_STRNCPY 1' >> $tmpfile    else      echo '#define HAVE_STRNCPY 0' >> $tmpfile    fi    if test "x$ac_cv_func_strcmp" = "xyes"; then      echo '#define HAVE_STRCMP 1' >> $tmpfile    else      echo '#define HAVE_STRCMP 0' >> $tmpfile    fi    if test "x$ac_cv_func_strncmp" = "xyes"; then      echo '#define HAVE_STRNCMP 1' >> $tmpfile    else      echo '#define HAVE_STRNCMP 0' >> $tmpfile    fi    if test "x$ac_cv_func_strlen" = "xyes"; then      echo '#define HAVE_STRLEN 1' >> $tmpfile    else      echo '#define HAVE_STRLEN 0' >> $tmpfile    fi    if test "x$ac_cv_func_strpbrk" = "xyes"; then      echo '#define HAVE_STRPBRK 1' >> $tmpfile    else      echo '#define HAVE_STRPBRK 0' >> $tmpfile    fi    if test "x$ac_cv_func_strsep" = "xyes"; then      echo '#define HAVE_STRSEP 1' >> $tmpfile    else      echo '#define HAVE_STRSEP 0' >> $tmpfile    fi    if test "x$ac_cv_func_strcasecmp" = "xyes"; then      echo '#define HAVE_STRCASECMP 1' >> $tmpfile    else      echo '#define HAVE_STRCASECMP 0' >> $tmpfile    fi    if test "x$ac_cv_func_strncasecmp" = "xyes"; then      echo '#define HAVE_STRNCASECMP 1' >> $tmpfile    else      echo '#define HAVE_STRNCASECMP 0' >> $tmpfile    fi    if test "x$ac_cv_func_usleep" = "xyes"; then      echo '#define HAVE_USLEEP 1' >> $tmpfile    else      echo '#define HAVE_USLEEP 0' >> $tmpfile    fi    if test "x$ac_cv_func_snooze" = "xyes"; then      echo '#define HAVE_SNOOZE 1' >> $tmpfile    else      echo '#define HAVE_SNOOZE 0' >> $tmpfile    fi    if test "x$ac_cv_func_index" = "xyes"; then      echo '#define HAVE_INDEX 1' >> $tmpfile    else      echo '#define HAVE_INDEX 0' >> $tmpfile    fi    if test "x$ac_cv_func_waitpid" = "xyes"; then      echo '#define HAVE_WAITPID 1' >> $tmpfile    else      echo '#define HAVE_WAITPID 0' >> $tmpfile    fi    if test "x$ac_cv_func_gethostname" = "xyes"; then      echo '#define HAVE_GETHOSTNAME 1' >> $tmpfile    else      echo '#define HAVE_GETHOSTNAME 0' >> $tmpfile    fi    if test "x$ac_cv_func_bcmp" = "xyes"; then      echo '#define HAVE_BCMP 1' >> $tmpfile    else      echo '#define HAVE_BCMP 0' >> $tmpfile    fi    if test "x$ac_cv_func_bcopy" = "xyes"; then      echo '#define HAVE_BCOPY 1' >> $tmpfile    else      echo '#define HAVE_BCOPY 0' >> $tmpfile    fi    if test "x$MEMORY_CHUNKS_MIMIC" = "x1"; then      echo '#define MEMORY_CHUNKS_MIMIC 1' >> $tmpfile    else      echo '#define MEMORY_CHUNKS_MIMIC 0' >> $tmpfile    fi    cat >> $tmpfile << _EOF_/* * Explicitly tested headers for this platform: */_EOF_    if test x$ac_cv_header_limits_h = xyes; then      echo '#define HAVE_LIMITS_H 1' >> $tmpfile    else      echo '#define HAVE_LIMIT_H 0' >> $tmpfile    fi    cat >> $tmpfile << _EOF_/* * These functions were not explicitely tested. * The probably will be tested in future versions, but * for now they are not needed. */#define HAVE_FDOPEN 1#define HAVE_GETPWUID 1#define HAVE_SELECT 1#define HAVE_ATEXIT 1#define HAVE_ON_EXIT 1#define HAVE_MEMSCAN 1#define HAVE_MEMREV 1#define HAVE_MEMCHR 1#define HAVE_MEMMEM 1#define HAVE_MEMCMP 1#define HAVE_STRCHR 1#define HAVE_STRRCHR 1#define HAVE_STRCAT 1#define HAVE_STRCATV 1#define HAVE_STRREV 1#define HAVE_STRSPN 1#define HAVE_STRCSPN 1#define HAVE_STRERROR 1#define HAVE_STRLCAT 1#define HAVE_STRLCPY 1#define HAVE_STRSTR 1#define HAVE_STRPBRK 1#define HAVE_STRSEP 1#define HAVE_STRNFILL 1#define HAVE_STRSIGNAL 1#define HAVE_VSNPRINTF 1#define HAVE_SNPRINTF 1#define HAVE_STRLEN 1#define HAVE_STRNCPY 1#define HAVE_STRTOD 1#define HAVE_STRTOK 1#define HAVE_MEMSET 1#define HAVE_IPOW 0#define HAVE_DPOW 0#define GA_MAJOR_VERSION ${GA_MAJOR_VERSION}#define GA_MINOR_VERSION ${GA_MINOR_VERSION}#define GA_LT_MINOR_VERSION ${GA_LT_MINOR_VERSION}#define GA_PATCH_VERSION ${GA_PATCH_VERSION}#define GA_VERSION_STRING "${GA_MAJOR_VERSION}.${GA_MINOR_VERSION}-${GA_PATCH_VERSION}"#define GA_UNAME_STRING "`uname -a`"#define GA_BUILD_DATE_STRING "`date +%d/%m/%y`"#define V3_QUICK ${V3_QUICK}#define W32_CRIPPLED ${W32_CRIPPLED}#define HAVE_SLANG ${HAVE_SLANG}#define HAVE_MPI ${HAVE_MPI}#define HAVE_PTHREADS ${HAVE_PTHREADS}#define USE_OPENMP ${USE_OPENMP}#define GAUL_DETERMINISTIC_OPENMP 1#define AVLTREE_KEY_TYPE unsigned long#define GA_NUM_PROCESSES_ENVVAR_STRING "${GA_NUM_PROCESSES_ENVVAR_STRING}"#define GA_NUM_THREADS_ENVVAR_STRING "${GA_NUM_THREADS_ENVVAR_STRING}"#define USE_CHROMO_CHUNKS ${USE_CHROMO_CHUNKS}#define USE_OPTIMISED_MEMSET 1#define MEMORY_ALLOC_SAFE ${MEMORY_ALLOC_SAFE}#define MEMORY_ALLOC_DEBUG ${MEMORY_ALLOC_DEBUG}#endif /* GAUL_CONFIG_H_INCLUDED */_EOF_    if cmp -s $tmpfile $outfile; then      echo $outfile is unchanged      rm -f $tmpfile    else      mv $tmpfile $outfile      touch $stampfile    fi    ;;  esac],[ac_cv_header_pwd_h=$ac_cv_header_pwd_hac_cv_header_sys_select_h=$ac_cv_header_sys_select_hac_cv_header_sys_signal_h=$ac_cv_header_sys_signal_hac_cv_header_sys_time_h=$ac_cv_header_sys_time_hac_cv_header_sys_types_h=$ac_cv_header_sys_types_hac_cv_header_sys_wait_h=$ac_cv_header_sys_wait_hac_cv_header_limits_h=$ac_cv_header_limits_hac_cv_header_unistd_h=$ac_cv_header_unistd_hac_cv_header_string_h=$ac_cv_header_string_hac_cv_header_strings_h=$ac_cv_header_strings_hac_cv_func_bcmp=$ac_cv_func_bcmpac_cv_func_bcopy=$ac_cv_func_bcopyac_cv_func_gethostname=$ac_cv_func_gethostnameac_cv_func_index=$ac_cv_func_indexac_cv_func_memcpy=$ac_cv_func_memcpyac_cv_func_min=$ac_cv_func_minac_cv_func_max=$ac_cv_func_maxac_cv_func_sincos=$ac_cv_func_sincosac_cv_func_snooze=$ac_cv_func_snoozeac_cv_func_strdup=$ac_cv_func_strdupac_cv_func_strndup=$ac_cv_func_strndupac_cv_func_strcpy=$ac_cv_func_strcpyac_cv_func_strncpy=$ac_cv_func_strncpyac_cv_func_strcmp=$ac_cv_func_strcmpac_cv_func_strncmp=$ac_cv_func_strncmpac_cv_func_strcasecmp=$ac_cv_func_strcasecmpac_cv_func_strncasecmp=$ac_cv_func_strncasecmpac_cv_func_strlen=$ac_cv_func_strlenac_cv_func_strpbrk=$ac_cv_func_strpbrkac_cv_func_strsep=$ac_cv_func_strsepac_cv_func_usleep=$ac_cv_func_usleepac_cv_func_waitpid=$ac_cv_func_waitpidgaul_header_stdbool_h=$gaul_header_stdbool_hgaul__bool=$gaul__boolGA_MAJOR_VERSION=$GA_MAJOR_VERSIONGA_MINOR_VERSION=$GA_MINOR_VERSIONGA_LT_MINOR_VERSION=$GA_LT_MINOR_VERSIONGA_PATCH_VERSION=$GA_PATCH_VERSIONGA_VERSION_STRING=$GA_VERSION_STRINGV3_QUICK=$V3_QUICKW32_CRIPPLED=$W32_CRIPPLEDHAVE_SLANG=$HAVE_SLANGHAVE_MPI=$HAVE_MPIHAVE_PTHREADS=$HAVE_PTHREADSUSE_OPENMP=$USE_OPENMPGA_NUM_PROCESSES_ENVVAR_STRING=$GA_NUM_PROCESSES_ENVVAR_STRINGGA_NUM_THREADS_ENVVAR_STRING=$GA_NUM_THREADS_ENVVAR_STRINGUSE_CHROMO_CHUNKS=$USE_CHROMO_CHUNKSMEMORY_ALLOC_SAFE=$MEMORY_ALLOC_SAFEMEMORY_ALLOC_DEBUG=$MEMORY_ALLOC_DEBUGMEMORY_CHUNKS_MIMIC=$MEMORY_CHUNKS_MIMIC])AC_OUTPUT([Makefile util/Makefile src/Makefile tests/Makefile debian/Makefile],	[test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h.in]	)echo \"************************************************************************  GAUL has been configured successfully.  In summary:  Version:                    ${GA_VERSION}  Source code location:       ${srcdir}  Host system type:           ${host}  Target system type:         ${target}  Debugging level:            ${debug}  C compiler:                 ${CC}  C compiler flags:           ${CFLAGS}  Additional include flags:   ${INCLUDES}  Install path:               ${prefix}  Use S-Lang:                 ${WILL_USE_SLANG}  Use MPI:                    ${WILL_USE_MPI}  Use pthreads:               ${WILL_USE_PTHREADS}************************************************************************"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -