gnet-config.in

来自「GNet是一个简单的网络库。它是目标定向的」· IN 代码 · 共 101 行

IN
101
字号
#!/bin/sh# This script was borrowed from Gtk (and Glib)glib_libs="@GLIB_LIBS@ @GTHREAD_LIBS@"glib_cflags="@GLIB_CFLAGS@ @GTHREAD_CFLAGS@"pthread_libs="@pthread_libs@"prefix=@prefix@exec_prefix=@exec_prefix@exec_prefix_set=nocflags="-I@includedir@/gnet -I@libdir@/gnet/include"libs="-L@libdir@ -lgnet"usage(){	cat <<EOFUsage: gnet-config [OPTIONS] [LIBRARIES]Options:	[--prefix[=DIR]]	[--exec-prefix[=DIR]]	[--version]	[--libs]	[--cflags]Libraries:	gnetEOF	exit $1}if test $# -eq 0; then	usage 1 1>&2filib_gnet=yeswhile test $# -gt 0; do  case "$1" in  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;  *) optarg= ;;  esac  case $1 in    --prefix=*)      prefix=$optarg      if test $exec_prefix_set = no ; then        exec_prefix=$optarg      fi      ;;    --prefix)      echo_prefix=yes      ;;    --exec-prefix=*)      exec_prefix=$optarg      exec_prefix_set=yes      ;;    --exec-prefix)      echo_exec_prefix=yes      ;;    --version)      echo @GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@.@GNET_MICRO_VERSION@      ;;    --cflags)      echo_cflags=yes      ;;    --libs)      echo_libs=yes      ;;    gnet)      lib_gnet=yes      ;;    *)      usage 1 1>&2      ;;  esac  shiftdoneif test "$echo_prefix" = "yes"; then	echo $prefixfiif test "$echo_exec_prefix" = "yes"; then	echo $exec_prefixfiif test "$echo_cflags" = "yes"; then      cflags="$glib_cflags $cflags"      # Include @includedir@ if it's in a non-standard place      if test @includedir@ != /usr/include ; then        cflags="$cflags -I@includedir@"      fi      echo $cflagsfiif test "$echo_libs" = "yes"; then      libs="$libs $glib_libs $pthread_libs"      echo $libsfi      

⌨️ 快捷键说明

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