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

📄 configure.in

📁 xorp源码hg
💻 IN
📖 第 1 页 / 共 2 页
字号:
    nready = select(2, &fds, &fds, &fds, NULL);  ], tecla_cv_select=yes, tecla_cv_select=no)])dnl If the select function was available, arrange for HAVE_SELECT todnl be defined by CFLAGS.if test $tecla_cv_select = yes; then  AC_DEFINE(HAVE_SELECT)fidnl Check if this system supports the system V pseudo terminal interface.AC_CACHE_CHECK(for SysV pseudo-terminals, tecla_cv_sysv_pty, [  AC_TRY_LINK([#include <stdlib.h>#include <unistd.h>#include <stropts.h>  ], [    char *name = ptsname(0);    int i1 = grantpt(0);    int i2 = unlockpt(0);    int i3 = ioctl(0, I_PUSH, "ptem");    return 0;  ], tecla_cv_sysv_pty=yes, tecla_cv_sysv_pty=no)])dnl If the system-V pseudo-terminal interface is available, arrangednl for HAVE_SYSV_PTY to be defined by CFLAGS.if test $tecla_cv_sysv_pty = yes; then  AC_DEFINE(HAVE_SYSV_PTY)fidnl The following variable contains the extension to append todnl "libtecla" and "libtecla_r" when creating shared libraries on thednl target platform.  This is system dependent and is ignored ifdnl LINK_SHARED remains an empty string. On most platforms thatdnl support shared libaries, this will be .so.$MAJOR_VER, wherednl MAJOR_VER is the major version number described above, which ondnl some systems, tells the run-time loader if the program beingdnl loaded is binary compatible with a given version of the librarydnl (see the discussion of MAJOR_VER near the top of this file).dnl The following empty default can be overriden on a system by systemdnl basis later in this file.AC_SUBST(SHARED_EXT)SHARED_EXT=""dnl When a shared library is installed with the extension $SHARED_EXT,dnl you can optionally produce other copies of this library withdnl different extensions. This is done using symbolic or hard links,dnl depending on what is available on the current filesystem, and thednl extensions to use for these links are listed in the followingdnl variable, separated by spaces. The following empty default can bednl overriden on a system by system basis later in this file.AC_SUBST(SHARED_ALT)SHARED_ALT=""dnl The following variable lists extra compilation flags needed todnl create object files that can be included in shared libraries.dnl Normally one would include a flag to tell the C compiler todnl compile position-independent code. This option commonly includesdnl the acronym 'pic'.AC_SUBST(SHARED_CFLAGS)SHARED_CFLAGS=""dnl On systems that support shared libraries, the following variablednl provides the command needed to make a shared library. In thisdnl variable, $$@ will be replaced with the name of the shareddnl library, $$(LIB_OBJECTS) will be replaced with a space separateddnl list of the object files that are to be included in the library,dnl and libtecla$$(SUFFIX) will be the name of the library beingdnl built, minus the system-specific extension (eg. libtecla ordnl libtecla_r).  If LINK_SHARED is left as an empty string, shareddnl library creation will not attempted. If your system supportsdnl shared library creation, you should override the default value ofdnl this variable in the target-specific case statement later in thisdnl file.AC_SUBST(LINK_SHARED)LINK_SHARED=""dnl The following bourne shell case statement is where systemdnl dependencies can be added.  In particular, if your system supportsdnl shared library creation, the following switch is the place todnl configure it. To do so you will first need to find out what targetdnl type was just assigned by the AC_CANONICAL_SYSTEM macro executeddnl previously.  The target type of your current system can bednl determined by cd'ing to the top level directory of the tecladnl distribution, and typing the command "sh config.guess". This willdnl report what autoconf thinks the system type is. Note that thisdnl will be very specific, so if you know that the configurationdnl parameters that you are about to provide apply to differentdnl versions of the current system type, you can express this in thednl case statement by using a wild-card in place of the versiondnl number, or by using an | alternation to list one or more versiondnl names. Beware that autoconf uses [] as quote characters, so if youdnl want to use a regexp character range like [a-z], you should writednl this as [[a-z]].case $target in*solaris*)  AC_DEFINE(__EXTENSIONS__)  SHARED_EXT=".so.${MAJOR_VER}"  SHARED_ALT=".so"  LINK_SHARED='$${LD} -G -M $$(srcdir)/libtecla.map -o $$@ -h $$(@F) -z defs -i $$(LIB_OBJECTS) $$(LIBS) -lc'  SHARED_CFLAGS="-Kpic"  case $CC in  */cc|cc) SHARED_CFLAGS="$SHARED_CFLAGS -xstrconst" ;;  gcc) CFLAGS="-I/usr/include $CFLAGS" ;;  esac  case $target in  *sparc*) SHARED_CFLAGS="$SHARED_CFLAGS -xregs=no%appl"  esac  ;;*linux*)  SHARED_EXT=".so.${MAJOR_VER}.${MINOR_VER}.${MICRO_VER}"  SHARED_ALT=".so .so.${MAJOR_VER}"dnl See if the installed version of Gnu ld accepts version scripts.  AC_CACHE_CHECK([for --version-script in GNU ld], tecla_cv_gnu_ld_script, [    if (echo 'void dummy(void) {return;}' > dummy.c; $CC -c -fpic dummy.c; \         $LD -o dummy.so dummy.o -shared --version-script=$srcdir/libtecla.map) 1>&2 2>/dev/null; then      tecla_cv_gnu_ld_script=yes    else      tecla_cv_gnu_ld_script=no    fi    rm -f dummy.c dummy.o dummy.so  ])  if test $tecla_cv_gnu_ld_script = yes; then    VERSION_OPT='--version-script=$$(srcdir)/libtecla.map'  else    VERSION_OPT=''  fi  LINK_SHARED='$${LD} -o $$@ -soname libtecla$$(SUFFIX).so.'${MAJOR_VER}' -shared '$VERSION_OPT' $$(LIB_OBJECTS) $$(LIBS) -lc'  SHARED_CFLAGS="-fpic"  ;;*hpux*)  SHARED_EXT=".${MAJOR_VER}"  SHARED_ALT=".sl"  LINK_SHARED='$${LD} -b +h $$(@F) +k +vshlibunsats -o $$@ -c libtecla.map.opt $$(LIB_OBJECTS) $$(LIBS) -lc'  SHARED_CFLAGS="+z"  ;;*dec-osf*)  AC_DEFINE(_OSF_SOURCE)  ;;esacdnl The following statement checks to see if the GNU C compiler hasdnl been chosen instead of the normal compiler of the host operatingdnl system. If it has, and shared library creation has beendnl configured, it replaces the shared-library-specific C compilationdnl flags with those supported by gcc. Also append the gcc run-timednl library to the shared library link line.if test "$GCC"_ = "yes"_ && test "$LINK_SHARED"_ != "_" ; then  SHARED_CFLAGS="-fpic"  case $target_os in  sparc*solaris*) SHARED_CFLAGS="$SHARED_CFLAGS -mno-app-regs"  esac  LINK_SHARED="$LINK_SHARED `$CC -print-libgcc-file-name`"fidnl The following variable will list which types of libraries,dnl "static", and possibly "shared", are to be created and installed.AC_SUBST(TARGET_LIBS)dnl If shared library creation has been configured, add shareddnl libraries to the list of libraries to be built.if test "$LINK_SHARED"_ != "_"; then  TARGET_LIBS="static shared"else  TARGET_LIBS="static"  LINK_SHARED="@:"fidnl The following directive must always be the last line of anydnl autoconf script. It causes autoconf to create the configurednl script, which for each argument of AC_OUTPUT, will look for adnl filename formed by appending ".in" to the argument, preprocessdnl that file, replacing @VAR@ directives with the corresponding valuednl of the specified shell variable VAR, as set above in this file,dnl and write the resulting output to the filename given in thednl argument. Note that only shell variables that were exported abovednl with the AC_SUBST() directive will be substituted in @VAR@dnl directives (some macros like AC_PROG_CC also call AC_SUBST for youdnl for the variables that they output).AC_OUTPUT(Makefile)

⌨️ 快捷键说明

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