📄 configure.in
字号:
dnldnl This file is an input file used by the GNU "autoconf" program todnl generate the file "configure", which is run during installationdnl to configure the system for the local environment.dnldnl configure.in: Jan 1996dnl (schoenfr@ibr.cs.tu-bs,de)dnldnl This is for the Fuzzy Clustering Analysis tool ``fcluster''.dnlAC_INIT(fuzzy.cc)dnl default installation path:ac_default_prefix=/usr/localAC_PROG_INSTALL#### --with-debug: debug version wanted ?##AC_ARG_WITH(debug, [ --with-debug create a -g compiled binary], DEBUG='-DDEBUG -g', DEBUG='-O')AC_ARG_WITH(optdebug, [ --with-optdebug create a -g -O compiled binary], DEBUG='-Wall -Wno-unused -DDEBUG -O -g')AC_SUBST(DEBUG)#----------------------------------------------------------------------------# Check for the existence of various libraries.#----------------------------------------------------------------------------AC_CHECK_LIB(ieee, main, [LIBS="$LIBS -lieee"])AC_SUBST(LIBS)#-------------------------------------------------------------------------# Check to use dbmalloc (optional and only recommended for debugging)# --with-dbmalloc#-------------------------------------------------------------------------AC_ARG_WITH(dbmalloc, [ --with-dbmalloc add dbmalloc library (internal use - not recomended)], dm=1, dm=0)if test $dm = 1 ; then ### XXX: fix me (check paths...): DBMALLOC_INC="-I/usr/local/include/dbmalloc" DBMALLOC_LIB="-ldbmalloc"fiAC_SUBST(DBMALLOC_INC)AC_SUBST(DBMALLOC_LIB)#--------------------------------------------------------------------# Locate the X11 header files and the X11 library archive. Try# the ac_find_x macro first, but if it doesn't find the X stuff# (e.g. because there's no xmkmf program) then check through# a list of possible directories.#--------------------------------------------------------------------AC_CHECK_PROG(xmkmf_ok, xmkmf, 1, 0)if test $xmkmf_ok = 1; then AC_PATH_Xfiif test "$XINCLUDE_DIR" != ""; then x_includes="$XINCLUDE_DIR"fiif test "$x_includes" = /usr/include; then XINCLUDES="# no special path needed"elif test "$x_includes" != ""; then XINCLUDES=" -I$x_includes"else AC_CHECKING(for X11 header files) XINCLUDES="# no special path needed" AC_TRY_CPP([#include <X11/Intrinsic.h>], , XINCLUDES="nope") if test "$XINCLUDES" = nope; then dirs="/usr/unsupported/include /usr/local/include /usr/X11R6/include /usr/X386/include /usr/include/X11R4 /usr/X11R5/include /usr/include/X11R5 /usr/openwin/include /usr/X11/include" for i in $dirs ; do if test -r $i/X11/Intrinsic.h; then XINCLUDES=" -I$i" fi done fifiif test "$XINCLUDES" = nope; then AC_WARN(Couldn't find any X11 include files) XINCLUDES="# no include files found"fiAC_SUBST(XINCLUDES)if test "$XLIBRARY_DIR" != ""; then x_libraries="$XLIBRARY_DIR"fiif test "$x_libraries" = /usr/lib; then XLIBSW=-lX11elif test "$x_libraries" != ""; then XLIBSW="-L$x_libraries -lX11"else AC_CHECKING(for X11 library archive) AC_CHECK_LIB(X11, main, XLIBSW="-lX11", XLIBSW=nope) if test "$XLIBSW" = nope; then dirs="/usr/unsupported/lib /usr/local/lib /usr/X11R6/lib /usr/X386/lib /usr/lib/X11R4 /usr/X11R5/lib /usr/lib/X11R5 /usr/openwin/lib /usr/X11/lib" for i in $dirs ; do if test -r $i/libX11.a; then XLIBSW="-L$i -lX11" fi done fifiif test "$XLIBSW" = nope ; then AC_CHECK_LIB(Xwindow, main, XLIBSW=-lXwindow)fiif test "$XLIBSW" = nope ; then AC_WARN(Couldn't find the X11 library archive. Using -lX11.) XLIBSW=-lX11fiAC_SUBST(XLIBSW)## create the Makefile:AC_OUTPUT(Makefile)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -