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

📄 configure

📁 linux下支持P2P的客户端程序,采用了Gnutella的方法,其中有实现Gnutella的具体源码,是一个基于p2p环境下的音乐共享软件,有助于对P2P的研究
💻
📖 第 1 页 / 共 5 页
字号:
#line 1642 "configure"#include "confdefs.h"#include <gtk/gtk.h>#include <stdio.h>#include <stdlib.h>int main (){  int major, minor, micro;  char *tmp_version;  system ("touch conf.gtktest");  /* HP/UX 9 (%@#!) writes to sscanf strings */  tmp_version = g_strdup("$min_gtk_version");  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {     printf("%s, bad version string\n", "$min_gtk_version");     exit(1);   }  if ((gtk_major_version != $gtk_config_major_version) ||      (gtk_minor_version != $gtk_config_minor_version) ||      (gtk_micro_version != $gtk_config_micro_version))    {      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,             gtk_major_version, gtk_minor_version, gtk_micro_version);      printf ("*** was found! If gtk-config was correct, then it is best\n");      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");      printf("*** required on your system.\n");      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");      printf("*** before re-running configure\n");    } #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||	   (gtk_minor_version != GTK_MINOR_VERSION) ||           (gtk_micro_version != GTK_MICRO_VERSION))    {      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);      printf("*** library (version %d.%d.%d)\n",	     gtk_major_version, gtk_minor_version, gtk_micro_version);    }#endif /* defined (GTK_MAJOR_VERSION) ... */  else    {      if ((gtk_major_version > major) ||        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))      {        return 0;       }     else      {        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",               gtk_major_version, gtk_minor_version, gtk_micro_version);        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",	       major, minor, micro);        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");        printf("***\n");        printf("*** If you have already installed a sufficiently new version, this error\n");        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");        printf("*** being found. The easiest way to fix this is to remove the old version\n");        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");        printf("*** correct copy of gtk-config. (In this case, you will have to\n");        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");        printf("*** so that the correct libraries are found at run-time))\n");      }    }  return 1;}EOFif { (eval echo configure:1720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen  :else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -fr conftest*  no_gtk=yesfirm -fr conftest*fi       CFLAGS="$ac_save_CFLAGS"       LIBS="$ac_save_LIBS"     fi  fi  if test "x$no_gtk" = x ; then     echo "$ac_t""yes" 1>&6     :       else     echo "$ac_t""no" 1>&6     if test "$GTK_CONFIG" = "no" ; then       echo "*** The gtk-config script installed by GTK could not be found"       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"       echo "*** your path, or set the GTK_CONFIG environment variable to the"       echo "*** full path to gtk-config."     else       if test -f conf.gtktest ; then        :       else          echo "*** Could not run GTK test program, checking why..."          CFLAGS="$CFLAGS $GTK_CFLAGS"          LIBS="$LIBS $GTK_LIBS"          cat > conftest.$ac_ext <<EOF#line 1754 "configure"#include "confdefs.h"#include <gtk/gtk.h>#include <stdio.h>int main() { return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ; return 0; }EOFif { (eval echo configure:1764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*   echo "*** The test program compiled, but did not run. This usually means"          echo "*** that the run-time linker is not finding GTK or finding the wrong"          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"          echo "*** to the installed location  Also, make sure you have run ldconfig if that"          echo "*** is required on your system"	  echo "***"          echo "*** If you have an old version installed, it is best to remove it, although"          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"          echo "***"          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"          echo "*** came with the system with the command"          echo "***"          echo "***    rpm --erase --nodeps gtk gtk-devel" else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*   echo "*** The test program failed to compile or link. See the file config.log for the"          echo "*** exact error that occured. This usually means GTK was incorrectly installed"          echo "*** or that you have moved GTK since it was installed. In the latter case, you"          echo "*** may want to edit the gtk-config script: $GTK_CONFIG" firm -f conftest*          CFLAGS="$ac_save_CFLAGS"          LIBS="$ac_save_LIBS"       fi     fi     GTK_CFLAGS=""     GTK_LIBS=""     { echo "configure: error: Cannot find GTK: Is gtk-config in path?" 1>&2; exit 1; }  fi      rm -f conf.gtktestif test "x${datadir}" = 'x${prefix}/share'; then  if test "x${prefix}" = "xNONE"; then    cat >> confdefs.h <<EOF#define PACKAGE_DATA_DIR "${ac_default_prefix}/share/${PACKAGE}"EOF  else    cat >> confdefs.h <<EOF#define PACKAGE_DATA_DIR "${prefix}/share/${PACKAGE}"EOF  fielse  cat >> confdefs.h <<EOF#define PACKAGE_DATA_DIR "${datadir}/${PACKAGE}"EOFfipackagesrcdir=`cd $srcdir && pwd`cat >> confdefs.h <<EOF#define PACKAGE_SOURCE_DIR "${packagesrcdir}"EOF# Check whether --enable-memory-debug or --disable-memory-debug was given.if test "${enable_memory_debug+set}" = set; then  enableval="$enable_memory_debug"  :fiif test -n "$enable_memory_debug"; then   echo Enabling additional memory debuging code.   cat >> confdefs.h <<EOF#define NEWTELLA_MEMORY_DEBUG "1"EOFficase "$target" in*-*-solaris*)	cat >> confdefs.h <<EOF#define SOLARIS "1"EOF	;;esacfor ac_func in inet_atondoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:1854: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1859 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,    which can conflict with char $ac_func(); below.  */#include <assert.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 $ac_func();int main() {/* The GNU C library defines this for functions which it implements    to always fail with ENOSYS.  Some functions are actually named    something starting with __ and the normal name is an alias.  */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_func_$ac_func=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then  echo "$ac_t""yes" 1>&6    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF else  echo "$ac_t""no" 1>&6fidoneif test $ac_cv_func_inet_aton = no; then	  # inet_aton is not in the default libraries.  See if it's in some other.	for lib in resolv; do		echo $ac_n "checking for inet_aton in -l$lib""... $ac_c" 1>&6echo "configure:1910: checking for inet_aton in -l$lib" >&5ac_lib_var=`echo $lib'_'inet_aton | 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$lib  $LIBS"cat > conftest.$ac_ext <<EOF#line 1918 "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 inet_aton();int main() {inet_aton(); return 0; }EOFif { (eval echo configure:1929: \"$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  LIBS="$LIBS -l$lib"; breakelse  echo "$ac_t""no" 1>&6fi	donefiif test "x$GCC" = "xyes"; then  case " $CFLAGS " in  *[\ \	]-Wall[\ \	]*) ;;  *) CFLAGS="$CFLAGS -Wall" ;;  esacfitrap '' 1 2 15cat > confcache <<\EOF# This file is a shell script that caches the results of configure# tests run on this system so they can be shared between configure# scripts and configure runs.  It is not useful on other systems.# If it contains results you don't want to keep, you may remove or edit it.## By default, configure uses ./config.cache as the cache file,# creating it if it does not exist already.  You can give configure# the --cache-file=FILE option to use a different cache file; that is# what configure does when it calls configure scripts in# subdirectories, so they share the cache.# Giving --cache-file=/dev/null disables caching, for debugging configure.# config.status only pays attention to the cache file if you give it the# --recheck option to rerun configure.#EOF# The following way of writing the cache mishandles newlines in values,# but we know of no workaround that is simple, portable, and efficient.# So, don't put newlines in cache variables' values.# Ultrix sh set writes to stderr and can't be redirected directly,# and sets the high bit in the cache file unless we assign to the vars.(set) 2>&1 |  case `(ac_space=' '; set | grep ac_space) 2>&1` in  *ac_space=\ *)    # `set' does not quote correctly, so add quotes (double-quote substitution    # turns \\\\ into \\, and sed turns \\ into \).    sed -n \      -e "s/'/'\\\\''/g" \      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"    ;;  *)    # `set' quotes correctly as required by POSIX, so do not add quotes.    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'    ;;  esac >> confcacheif cmp -s $cache_file confcache; then  :else  if test -w $cache_file; then    echo "updating cache $cache_file"    cat confcache > $cache_file  else    echo "not updating unwritable cache $cache_file"  fifirm -f confcachetrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15test "x$prefix" = xNONE && prefix=$ac_default_prefix# Let make expand exec_prefix.test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'# Any assignment to VPATH causes Sun make to only execute# the first set of double-colon rules, so remove it if not needed.# If there is a colon in the path, we need to keep it.if test "x$srcdir" = x.; then  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'fitrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15DEFS=-DHAVE_CONFIG_H# Without the "./", some shells look in PATH for config.status.: ${CONFIG_STATUS=./config.status}echo creating $CONFIG_STATUSrm -f $CONFIG_STATUScat > $CONFIG_STATUS <<EOF#! /bin/sh# Generated automatically by configure.# Run this file to recreate the current configuration.# This directory was configured as follows,# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:## $0 $ac_configure_args## Compiler output produced by configure, useful for debugging# configure, is in ./config.log if it exists.ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"for ac_optiondo  case "\$ac_option" in  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;  -version | --version | --versio | --versi | --vers 

⌨️ 快捷键说明

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