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

📄 configure.in,v

📁 Lin-Kernighan heuristic for the TSP and minimum weight perfect matching
💻 IN,V
📖 第 1 页 / 共 3 页
字号:
head	1.53;access;symbols	zero-five-zero:1.53	zero-four-seventeen:1.51	zero-four-ten:1.48	zero-four-nine:1.47	zero-four-eight:1.47	zero-four-five:1.46	zero-four-three:1.46	zero-four-zero:1.44;locks	neto:1.53; strict;comment	@# @;1.53date	2000.09.17.04.24.57;	author neto;	state Exp;branches;next	1.52;1.52date	99.01.14.19.12.22;	author neto;	state Exp;branches;next	1.51;1.51date	98.10.17.22.17.26;	author neto;	state Exp;branches;next	1.50;1.50date	98.10.15.17.20.04;	author neto;	state Exp;branches;next	1.49;1.49date	98.10.10.16.14.54;	author neto;	state Exp;branches;next	1.48;1.48date	98.08.23.21.41.53;	author neto;	state Exp;branches;next	1.47;1.47date	98.08.14.20.41.16;	author neto;	state Exp;branches;next	1.46;1.46date	98.07.31.17.11.12;	author neto;	state Exp;branches;next	1.45;1.45date	98.07.16.23.06.22;	author neto;	state Exp;branches;next	1.44;1.44date	98.07.16.22.04.54;	author neto;	state Exp;branches;next	1.43;1.43date	98.05.24.01.52.14;	author neto;	state Exp;branches;next	1.42;1.42date	98.05.22.20.40.47;	author neto;	state Exp;branches;next	1.41;1.41date	98.03.14.20.07.18;	author neto;	state Exp;branches;next	1.40;1.40date	97.12.17.22.53.47;	author neto;	state Exp;branches;next	1.39;1.39date	97.12.05.21.03.49;	author neto;	state Exp;branches;next	1.38;1.38date	97.11.27.19.11.12;	author neto;	state Exp;branches;next	1.37;1.37date	97.10.31.20.55.06;	author neto;	state Exp;branches;next	1.36;1.36date	97.10.16.19.02.45;	author neto;	state Exp;branches;next	1.35;1.35date	97.10.10.22.04.48;	author neto;	state Exp;branches;next	1.34;1.34date	97.08.15.20.33.17;	author neto;	state Exp;branches;next	1.33;1.33date	97.08.15.16.49.13;	author neto;	state Exp;branches;next	1.32;1.32date	97.07.10.15.00.31;	author neto;	state Exp;branches;next	1.31;1.31date	97.07.02.21.01.49;	author neto;	state Exp;branches;next	1.30;1.30date	97.07.02.19.34.49;	author neto;	state Exp;branches;next	1.29;1.29date	97.06.20.23.00.33;	author neto;	state Exp;branches;next	1.28;1.28date	97.06.20.22.36.12;	author neto;	state Exp;branches;next	1.27;1.27date	97.06.20.22.30.37;	author neto;	state Exp;branches;next	1.26;1.26date	97.06.20.21.58.18;	author neto;	state Exp;branches;next	1.25;1.25date	97.06.19.19.47.37;	author neto;	state Exp;branches;next	1.24;1.24date	97.06.19.19.00.13;	author neto;	state Exp;branches;next	1.23;1.23date	97.06.19.18.51.46;	author neto;	state Exp;branches;next	1.22;1.22date	97.06.18.20.17.17;	author neto;	state Exp;branches;next	1.21;1.21date	97.06.18.14.25.57;	author neto;	state Exp;branches;next	1.20;1.20date	97.06.13.18.54.33;	author neto;	state Exp;branches;next	1.19;1.19date	97.06.12.19.56.46;	author neto;	state Exp;branches;next	1.18;1.18date	97.06.04.20.42.00;	author neto;	state Exp;branches;next	1.17;1.17date	97.06.02.20.42.55;	author neto;	state Exp;branches;next	1.16;1.16date	97.06.02.20.32.27;	author neto;	state Exp;branches;next	1.15;1.15date	97.06.02.20.29.35;	author neto;	state Exp;branches;next	1.14;1.14date	97.05.27.18.11.26;	author neto;	state Exp;branches;next	1.13;1.13date	97.05.16.22.22.37;	author neto;	state Exp;branches;next	1.12;1.12date	97.05.16.22.17.58;	author neto;	state Exp;branches;next	1.11;1.11date	97.05.16.21.41.02;	author neto;	state Exp;branches;next	1.10;1.10date	97.05.16.21.27.10;	author neto;	state Exp;branches;next	1.9;1.9date	97.05.15.20.01.14;	author neto;	state Exp;branches;next	1.8;1.8date	97.05.15.18.55.59;	author neto;	state Exp;branches;next	1.7;1.7date	97.05.14.20.06.13;	author neto;	state Exp;branches;next	1.6;1.6date	97.05.14.18.14.21;	author neto;	state Exp;branches;next	1.5;1.5date	97.05.14.16.06.39;	author neto;	state Exp;branches;next	1.4;1.4date	97.05.13.19.00.43;	author neto;	state Exp;branches;next	1.3;1.3date	97.05.12.21.29.34;	author neto;	state Exp;branches;next	;desc@Input to configuration file.  This is processed by Autoconf.@1.53log@Upgrade to 0.5.0@text@dnl Process this file with autoconf to produce a configure script.dnl Configuration input file for LK.dnl vi: set tabstop=4 shiftwidth=4:dnl $Id: configure.in,v 1.52 1999/01/14 19:12:22 neto Exp neto $dnl      Copyright (C) 1997 David Netodnl   dnl      This program is free software; you can redistribute it and/or modifydnl      it under the terms of the GNU General Public License as published bydnl      the Free Software Foundation; either version 2, or (at your option)dnl      any later version.dnl   dnl      This program is distributed in the hope that it will be useful,dnl      but WITHOUT ANY WARRANTY; without even the implied warranty ofdnl      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See thednl      GNU General Public License for more details.dnl   dnl      You should have received a copy of the GNU General Public Licensednl      along with this program; if not, write to the Free Softwarednl      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MAdnl      02111-1307, USA.dnl Prologue ###########################################AC_INIT(src/lk.w)AC_REVISION($Revision: 1.52 $)dnlAC_PREREQ(2.12)dnl This was written in conjunction with Autoconf 2.12.dnl Initialize Automake 1.3AM_INIT_AUTOMAKE(lk,0.5.0)dnl PACKAGE=lk AC_SUBST(PACKAGE)dnl Be Win32-friendly, at least for Cygwin32 installations.AM_CYGWIN32dnl Must create config.h.in (Maybe use autoheader) dnl (Put config.h in AC_OUTPUT macro?)  No.AM_CONFIG_HEADER(config.h) dnl Default place for installation.  Without this, the default is /usr/localAC_PREFIX_DEFAULT(/home/neto/lk)dnl We use VERSION_STRING within the progs.AC_DEFINE_UNQUOTED(VERSION_STRING,"$VERSION")dnl Allow configuration on AIX by enabling certain BSD library functions.dnl (This may or may not define _ALL_SOURCE.)dnl AC_AIXdnl Determine host type; defines host_cpu, host_vendor, host_os, amongdnl other things.AC_CANONICAL_HOSTdnl Checks for programs ###############################AC_PROG_CCdnl SGI boxes, use the SGI compiler and -xansiif test $GCC = yes; then	C_DIALECT="-ansi -pedantic"	C_WARNINGS="-Wall -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes -Wmissing-prototypes"else	C_DIALECT=""	C_WARNINGS=""fiCFLAGS="$C_DIALECT $C_WARNINGS $CFLAGS"AC_SUBST(CFLAGS)dnl The scripts that process output from LK require Perl and Bashdnl I also use a Perl script to post-process literate Pizza programsAC_PATH_PROG(PERL,perl)AC_PATH_PROG(BASH,bash)dnl CWEB programs ctangle and cweave are optional since C, Pizza, and Javadnl sources are included.  dnl But to modify the source and recompile, you really should have CWEB.  :)dnl TeX is required to make dvi documentation.dnl TEXINPUTS is inherited from the user's environment at TeX time.dnl mp is MetaPost, for figures.AC_PATH_PROG(CTANGLE,ctangle)AC_PATH_PROG(CWEAVE,cweave)AC_PATH_PROG(TEX,tex)AC_PATH_PROG(LATEX,latex2e)if test -z "$LATEX"; then	AC_PATH_PROG(LATEX,latex)fiAC_PATH_PROG(DVIPS,dvips)if test -z "$DVIPS"; then	AC_PATH_PROG(DVIPS,dvipsk)fiAC_PATH_PROG(MP,mp)dnl For CWEB programs, -bhp turns off banner, happy, progress outputdnl But put CWEAVEFLAGS and CTANGLEFLAGS after the default flags sodnl the user can override on the make command line.CTANGLEFLAGS_DEFAULT=-bhp AC_SUBST(CTANGLEFLAGS_DEFAULT)CWEAVEFLAGS_DEFAULT=-bhp AC_SUBST(CWEAVEFLAGS_DEFAULT)if test -z "$CTANGLE"; then    CTANGLE_CMD='@@echo "Sorry, ctangle is not installed, so I cannot make $@@ from $<" 1>&2; exit 1;';dnl	PIZZATANGLE_CMD=$CTANGLE_CMDdnl	JAVATANGLE_CMD=$CTANGLE_CMDelse    # -bhp turns off the banner, happy and progress messages.	# We use $*.w instead of $< because we might use this command line to	# make something with a .ch file as the dependency.    CTANGLE_CMD='if test -f $(srcdir)/$*.ch; then \\\        $(CTANGLE) $(CTANGLEFLAGS_DEFAULT) $(CTANGLEFLAGS) $(srcdir)/$*.w $(srcdir)/$*.ch; \\\	else \\\		$(CTANGLE) $(CTANGLEFLAGS_DEFAULT) $(CTANGLEFLAGS) $(srcdir)/$*.w; \\\	fi';dnl    PIZZATANGLE_CMD='if test -f $(srcdir)/$*.ch; then \\\dnl        $(CTANGLE) $(CTANGLEFLAGS_DEFAULT) $(CTANGLEFLAGS) $(srcdir)/$*.pw $(srcdir)/$*.ch; \\\dnl	else \\\dnl		$(CTANGLE) $(CTANGLEFLAGS_DEFAULT) $(CTANGLEFLAGS) $<; \\\dnl	fi';dnl    JAVATANGLE_CMD='if test -f $(srcdir)/$*.ch; then \\\dnl        $(CTANGLE) $(CTANGLEFLAGS_DEFAULT) $(CTANGLEFLAGS) $(srcdir)/$*.jw $(srcdir)/$*.ch; \\\dnl	else \\\dnl		$(CTANGLE) $(CTANGLEFLAGS_DEFAULT) $(CTANGLEFLAGS) $<; \\\dnl	fi';fiif test -z "$CWEAVE"; then	CWEAVE_CMD='@@echo "Sorry, cweave is not installed, so I cannot make $@@ from $<" 1>&2; exit 1;';dnl	PIZZAWEAVE_CMD=$CWEAVE_CMDdnl	JAVAWEAVE_CMD=$CWEAVE_CMDelse	# -bhp turns off the banner, happy and progress messages.	CWEAVE_CMD='if test -f $(srcdir)/$*.ch; then \\\		$(CWEAVE) $(CWEAVEFLAGS_DEFAULT) $(CWEAVEFLAGS) $(srcdir)/$*.w $(srcdir)/$*.ch; \\\	else \\\		$(CWEAVE) $(CWEAVEFLAGS_DEFAULT) $(CWEAVEFLAGS) $<; \\\	fi';dnl	PIZZAWEAVE_CMD='if test -f $(srcdir)/$*.ch; then \\\dnl		$(CWEAVE) $(CWEAVEFLAGS_DEFAULT) $(CWEAVEFLAGS) $(srcdir)/$*.pw $(srcdir)/$*.ch; \\\dnl	else \\\dnl		$(CWEAVE) $(CWEAVEFLAGS_DEFAULT) $(CWEAVEFLAGS) $<; \\\dnl	fi';dnl	JAVAWEAVE_CMD='if test -f $(srcdir)/$*.ch; then \\\dnl		$(CWEAVE) $(CWEAVEFLAGS_DEFAULT) $(CWEAVEFLAGS) $(srcdir)/$*.jw $(srcdir)/$*.ch; \\\dnl	else \\\dnl		$(CWEAVE) $(CWEAVEFLAGS_DEFAULT) $(CWEAVEFLAGS) $<; \\\dnl	fi';fiif test -z "$TEX"; then 	TEX_CMD='@@echo "Sorry, TeX is not installed, so I cannot make $@@ from $<" 1>&2; exit 1;';else	TEX_CMD='$(TEX) $(TEXFLAGS) $<;';fiif test -z "$LATEX"; then 	LATEX_CMD='@@echo "Sorry, LaTeX is not installed, so I cannot make $@@ from $<" 1>&2; exit 1;';else	LATEX_CMD='$(LATEX) $(LATEXFLAGS) $<;';fiif test -z "$DVIPS"; then 	DVIPS_CMD='@@echo "Sorry, LaTeX is not installed, so I cannot make $@@ from $<" 1>&2; exit 1;';else	DVIPS_CMD='$(DVIPS) $(DVIPSFLAGS) $< -o $@@;';fiif test -z "$MP"; then 	MP_CMD='@@echo "Sorry, MetaPost is not installed, so I cannot make $@@ from $<" 1>&2; exit 1;';else	MP_CMD='$(MP) $(MPFLAGS) $< \\bye;';fiAC_SUBST(CTANGLE_CMD)dnl AC_SUBST(PIZZATANGLE_CMD)dnl AC_SUBST(JAVATANGLE_CMD)AC_SUBST(CWEAVE_CMD)dnl AC_SUBST(PIZZAWEAVE_CMD)dnl AC_SUBST(JAVAWEAVE_CMD)AC_SUBST(TEX_CMD)AC_SUBST(LATEX_CMD)AC_SUBST(DVIPS_CMD)AC_SUBST(MP_CMD)dnl The tsp instance generators in the tspgen directory are written indnl literate Pizza.  They need the CWEB suite to be built from sources.dnl To be compiled, they need a Pizza compiler, which I call pizzac,dnl a non-standard name; I think the Pizza web sites suggest dnl pc as the pizza compiler name.dnl AC_PATH_PROG(PIZZAC,pizzac)dnl if test -z "$PIZZAC"; thendnl 	echo yeahdnl 	PIZZAC_CMD='@@echo "Sorry, a Pizza compiler is not installed as pizzac, so I cannot make $@@ from $<" 1>&2; exit 1;';dnl elsednl 	PIZZAC_CMD='$(PIZZAC) $(PIZZACFLAGS) $<;';dnl fidnl AC_SUBST(PIZZAC_CMD)dnl AC_PATH_PROG(JAVAC,javac)dnl if test -z "$JAVAC"; thendnl 	JAVAC_CMD='@@echo "Sorry, a Java compiler is not installed as javac, so I cannot make $@@ from $<" 1>&2; exit 1;';dnl elsednl 	JAVAC_CMD='$(JAVAC) $(JAVACFLAGS) $<;';dnl fidnl AC_SUBST(JAVAC_CMD)dnl Checks for libraries ##############################dnl `sqrt' is an arbitrary function in the math library, -lmAC_CHECK_LIB(m, sqrt)dnl Solaris 2.4 is strange because it puts getrusage and other BSD functionsdnl in -lucb.dnl The user might have to have /usr/ucblib in their LD_LIBRARY_PATH.dnl What about other systems?AC_CHECK_LIB(ucb, getrusage)dnl Checks for header files ###########################AC_HEADER_STDCAC_CHECK_HEADERS(limits.h sys/time.h unistd.h time.h)dnl Header files on Solaris and IRIX are missing some prototypes.dnl We provide prototypes for standard things only.OS_IS_SUNOS=0; OS_HAS_BROKEN_HEADERS=0;case $host_os in	solaris* | sunos* ) OS_HAS_BROKEN_HEADERS=1 OS_IS_SUNOS=1 ;;	irix*) OS_HAS_BROKEN_HEADERS=1 ;;esacAC_DEFINE_UNQUOTED(OS_HAS_BROKEN_HEADERS,$OS_HAS_BROKEN_HEADERS)dnl We have to jump through hoops to properly get `[' and `]' becausednl Autoconf does some funny substitutions, destryoing my sed expression.dnl At one point I used echo -e to define lbr and rbr, but that doesn'tdnl work on Solaris 2.4.lbr=`echo ' ' | tr ' ' '\133'`rbr=`echo ' ' | tr ' ' '\135'`OS_VERSION_MAJOR=`uname -r | sed -e 's/\('$lbr'0-9'$rbr'*\)\..*/\1/'`OS_VERSION_MINOR=`uname -r | sed -e 's/'$lbr'0-9'$rbr'*\.\('$lbr'0-9'$rbr'*\).*/\1/'`dnl echo host is $host_cpu $host_vendor $host_os dnl echo OS_VERSION_MAJOR is $OS_VERSION_MAJORdnl echo OS_VERSION_MINOR is $OS_VERSION_MINORAC_DEFINE_UNQUOTED(OS_IS_SUNOS,$OS_IS_SUNOS)AC_DEFINE_UNQUOTED(OS_VERSION_MAJOR,$OS_VERSION_MAJOR)AC_DEFINE_UNQUOTED(OS_VERSION_MINOR,$OS_VERSION_MINOR)dnl Checks for typedefs ###############################AC_TYPE_SIZE_Tdnl Checks for structures #############################dnl struct rusagednl Checks for compiler characteristics ###############AC_C_CONSTAC_C_INLINEcase "$ac_cv_c_inline" in	no) AC_DEFINE(COMPILER_SUPPORTS_INLINE,0) ;;	*) AC_DEFINE(COMPILER_SUPPORTS_INLINE,1) ;;esacAC_C_LONG_DOUBLEdnl Do the most significant bytes come first in a word?AC_C_BIGENDIANdnl Find sizes of variables of various sizesAC_CHECK_SIZEOF(short)AC_CHECK_SIZEOF(int)AC_CHECK_SIZEOF(unsigned int)AC_CHECK_SIZEOF(long)AC_CHECK_SIZEOF(long long)dnl Checks for library functions ######################AC_FUNC_VPRINTFAC_CHECK_FUNCS(getrusage getpagesize gethostname strdup time ctime getopt nrand48)dnl See if the library defines optarg, optind, opterr, and optopt, all requireddnl by getoptAC_TRY_LINK([	#if HAVE_UNISTD_H		#define _POSIX_C_SOURCE 2		#include <unistd.h>	#endif	#include <stdlib.h>	],[{extern char *optarg; extern int optind, opterr, optopt;}],	AC_DEFINE_UNQUOTED(LIBRARY_DEFINES_OPTARG_ETC,1),	AC_DEFINE_UNQUOTED(LIBRARY_DEFINES_OPTARG_ETC,0))dnl Now see if the headers also *declare* those functions.AC_TRY_LINK([	#if HAVE_UNISTD_H		#define _POSIX_C_SOURCE 2		#include <unistd.h>	#endif	#include <stdlib.h>	],[{char *foo = optarg;}],	AC_DEFINE_UNQUOTED(HEADERS_DECLARE_OPTARG_ETC,1),	AC_DEFINE_UNQUOTED(HEADERS_DECLARE_OPTARG_ETC,0))dnl Checks system services ############################dnl Epilogue ##########################################dnl The "test" for generating stamp-h is needed by Automake when usingdnl macro AC_CONFIGURE_HEADER.AC_OUTPUT([\Makefile \gen.pl \genhk.pl \doitall \

⌨️ 快捷键说明

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