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

📄 configure

📁 This piece of software was written as a replacement and extension for Tripwire. Tripwire is an exce
💻
📖 第 1 页 / 共 5 页
字号:
then  case "$LEX" in  flex*) ac_lib=fl ;;  *) ac_lib=l ;;  esac  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6echo "configure:1325: checking for yywrap in -l$ac_lib" >&5ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_save_LIBS="$LIBS"LIBS="-l$ac_lib  $LIBS"cat > conftest.$ac_ext <<EOF#line 1333 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error.  *//* We use char because int might match the return type of a gcc2    builtin and then its argument prototype would still apply.  */char yywrap();int main() {yywrap(); return 0; }EOFif { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  echo "$ac_t""yes" 1>&6  LEXLIB="-l$ac_lib"else  echo "$ac_t""no" 1>&6fifiecho $ac_n "checking lex output file root""... $ac_c" 1>&6echo "configure:1367: checking lex output file root" >&5if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  # The minimal lex program is just a single line: %%.  But some broken lexes# (Solaris, I think it was) want two %% lines, so accommodate them.echo '%%%%' | $LEXif test -f lex.yy.c; then  ac_cv_prog_lex_root=lex.yyelif test -f lexyy.c; then  ac_cv_prog_lex_root=lexyyelse  { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }fifiecho "$ac_t""$ac_cv_prog_lex_root" 1>&6LEX_OUTPUT_ROOT=$ac_cv_prog_lex_rootecho $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6echo "configure:1388: checking whether yytext is a pointer" >&5if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  # POSIX says lex can declare yytext either as a pointer or an array; the# default is implementation-dependent. Figure out which it is, since# not all implementations provide the %pointer and %array declarations.ac_cv_prog_lex_yytext_pointer=noecho 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.cac_save_LIBS="$LIBS"LIBS="$LIBS $LEXLIB"cat > conftest.$ac_ext <<EOF#line 1400 "configure"#include "confdefs.h"`cat $LEX_OUTPUT_ROOT.c`int main() {; return 0; }EOFif { (eval echo configure:1407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  ac_cv_prog_lex_yytext_pointer=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5firm -f conftest*LIBS="$ac_save_LIBS"rm -f "${LEX_OUTPUT_ROOT}.c"fiecho "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6if test $ac_cv_prog_lex_yytext_pointer = yes; then  cat >> confdefs.h <<\EOF#define YYTEXT_POINTER 1EOFfiif test "x${LEX}" != "xflex"; then        echo "AIDE requires GNU flex"        exit 5fiecho $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6echo "configure:1437: checking for ${CC-cc} option to accept ANSI C" >&5if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  am_cv_prog_cc_stdc=noac_save_CC="$CC"# Don't try gcc -ansi; that turns off useful extensions and# breaks some systems' header files.# AIX			-qlanglvl=ansi# Ultrix and OSF/1	-std1# HP-UX			-Aa -D_HPUX_SOURCE# SVR4			-Xc -D__EXTENSIONS__for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"do  CC="$ac_save_CC $ac_arg"  cat > conftest.$ac_ext <<EOF#line 1453 "configure"#include "confdefs.h"#include <stdarg.h>#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */struct buf { int x; };FILE * (*rcsopen) (struct buf *, struct stat *, int);static char *e (p, i)     char **p;     int i;{  return p[i];}static char *f (char * (*g) (char **, int), char **p, ...){  char *s;  va_list v;  va_start (v,p);  s = g (p, va_arg (v,int));  va_end (v);  return s;}int test (int i, double x);struct s1 {int (*f) (int a);};struct s2 {int (*f) (double a);};int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);int argc;char **argv;int main() {return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];; return 0; }EOFif { (eval echo configure:1490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  am_cv_prog_cc_stdc="$ac_arg"; breakelse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5firm -f conftest*doneCC="$ac_save_CC"fiif test -z "$am_cv_prog_cc_stdc"; then  echo "$ac_t""none needed" 1>&6else  echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6ficase "x$am_cv_prog_cc_stdc" in  x|xno) ;;  *) CC="$CC $am_cv_prog_cc_stdc" ;;esacecho $ac_n "checking whether build environment is sane""... $ac_c" 1>&6echo "configure:1515: checking whether build environment is sane" >&5# Just in casesleep 1echo timestamp > conftestfile# Do `set' in a subshell so we don't clobber the current shell's# arguments.  Must try -L first in case configure is actually a# symlink; some systems play weird games with the mod time of symlinks# (eg FreeBSD returns the mod time of the symlink's containing# directory).if (   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`   if test "$*" = "X"; then      # -L didn't work.      set X `ls -t $srcdir/configure conftestfile`   fi   if test "$*" != "X $srcdir/configure conftestfile" \      && test "$*" != "X conftestfile $srcdir/configure"; then      # If neither matched, then we have a broken ls.  This can happen      # if, for instance, CONFIG_SHELL is bash and it inherits a      # broken ls alias from the environment.  This has actually      # happened.  Such a system could not be considered "sane".      { echo "configure: error: ls -t appears to fail.  Make sure there is not a brokenalias in your environment" 1>&2; exit 1; }   fi   test "$2" = conftestfile   )then   # Ok.   :else   { echo "configure: error: newly created file is older than distributed files!Check your system clock" 1>&2; exit 1; }firm -f conftest*echo "$ac_t""yes" 1>&6echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6echo "configure:1553: checking whether to enable maintainer-specific portions of Makefiles" >&5    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.if test "${enable_maintainer_mode+set}" = set; then  enableval="$enable_maintainer_mode"  USE_MAINTAINER_MODE=$enablevalelse  USE_MAINTAINER_MODE=nofi  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6  if test $USE_MAINTAINER_MODE = yes; then  MAINTAINER_MODE_TRUE=  MAINTAINER_MODE_FALSE='#'else  MAINTAINER_MODE_TRUE='#'  MAINTAINER_MODE_FALSE=fi  MAINT=$MAINTAINER_MODE_TRUE  if test "$program_transform_name" = s,x,x,; then  program_transform_name=else  # Double any \ or $.  echo might interpret backslashes.  cat <<\EOF_SED > conftestseds,\\,\\\\,g; s,\$,$$,gEOF_SED  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"  rm -f conftestsedfitest "$program_prefix" != NONE &&  program_transform_name="s,^,${program_prefix},; $program_transform_name"# Use a double $ so make ignores it.test "$program_suffix" != NONE &&  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"# sed with no file args requires a program.test "$program_transform_name" = "" && program_transform_name="s,x,x,"# Check whether --with-extra-includes or --without-extra-includes was given.if test "${with_extra_includes+set}" = set; then  withval="$with_extra_includes"   CPPFLAGS="$CFLAGS $withval" fi# Check whether --with-extra-libs or --without-extra-libs was given.if test "${with_extra_libs+set}" = set; then  withval="$with_extra_libs"   LDFLAGS="$LDFLAGS $withval" fi# Check whether --with-extra-link-libs or --without-extra-link-libs was given.if test "${with_extra_link_libs+set}" = set; then  withval="$with_extra_link_libs"   LIBS="$LIBS $withval" fi    if test $ac_cv_prog_gcc = yes; then    LD_STATIC_FLAG='-static'    case "$host_os" in    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)	# PIC is the default for these OSes.	;;    aix*)	# Below there is a dirty hack to force normal static linking with -ldl	# The problem is because libdl dynamically linked with both libc and	# libC (AIX C++ library), which obviously doesn't included in libraries	# list by gcc. This cause undefined symbols with -static flags.	# This hack allows C programs to be linked with "-static -ldl", but	# we not sure about C++ programs.	LD_STATIC_FLAG="$LD_STATIC_FLAG ${wl}-lC"	;;    cygwin* | mingw* | os2*)	# We can build DLLs from non-PIC.	;;    amigaos*)	# FIXME: we need at least 68020 code to build shared libraries, but	# adding the `-m68020' flag to GCC prevents building anything better,	# like `-m68040'.	## pic_flag='-m68020 -resident32 -malways-restore-a4'	;;    sysv4*MP*)	## if test -d /usr/nec; then	## pic_flag=-Kconform_pic	## fi	;;    *)	## pic_flag='-fPIC'	;;    esacelse    # PORTME Check for PIC flags for the system compiler.    case "$host_os" in    aix3* | aix4*)	# All AIX code is PIC.	LD_STATIC_FLAG='-bnso -bI:/lib/syscalls.exp'	;;	    hpux9* | hpux10* | hpux11*)	# Is there a better LD_STATIC_FLAG that works with the bundled CC?	## wl='-Wl,'	LD_STATIC_FLAG="${wl}-a ${wl}archive"	## pic_flag='+Z'	;;	    irix5* | irix6*)	## wl='-Wl,'	LD_STATIC_FLAG='-non_shared'	# PIC (with -KPIC) is the default.	;;	    cygwin* | mingw* | os2*)	# We can build DLLs from non-PIC.	;;	    osf3* | osf4* | osf5*)	# All OSF/1 code is PIC.	## wl='-Wl,'	LD_STATIC_FLAG='-non_shared'	;;	    sco3.2v5*)	## pic_flag='-Kpic'	LD_STATIC_FLAG='-dn'	## special_shlib_compile_flags='-belf'	;;	    solaris*)	## pic_flag='-KPIC'	LD_STATIC_FLAG='-Bstatic'	## wl='-Wl,'	;;	    sunos4*)	## pic_flag='-PIC'	LD_STATIC_FLAG='-Bstatic'	## wl='-Qoption ld '	;;	    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)	## pic_flag='-KPIC'	LD_STATIC_FLAG='-Bstatic'	## wl='-Wl,'	;;	    uts4*)	## pic_flag='-pic'	LD_STATIC_FLAG='-Bstatic'	;;    sysv4*MP*)	if test -d /usr/nec ;then	## pic_flag='-Kconform_pic'	LD_STATIC_FLAG='-Bstatic'	fi	;;    *)	## can_build_shared=no	;;    esacfiCFLAGS="$LD_STATIC_FLAG"CPPFLAGS="$LD_STATIC_FLAG"echo $ac_n "checking for library containing syslog""... $ac_c" 1>&6echo "configure:1730: checking for library containing syslog" >&5if eval "test \"`echo '$''{'ac_cv_search_syslog'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_func_search_save_LIBS="$LIBS"ac_cv_search_syslog="no"cat > conftest.$ac_ext <<EOF#line 1737 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error.  *//* We use char because int might match the return type of a gcc2    builtin and then its argument prototype would still apply.  */char syslog();int main() {syslog(); return 0; }EOFif { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  ac_cv_search_syslog="none required"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5firm -f conftest*test "$ac_cv_search_syslog" = "no" && for i in bsd socket inet; doLIBS="-l$i  $ac_func_search_save_LIBS"

⌨️ 快捷键说明

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