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

📄 configure

📁 一个机器人平台
💻
📖 第 1 页 / 共 5 页
字号:
char connect();int main() {connect(); return 0; }EOFif { (eval echo configure:1676: \"$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    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`  cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF  LIBS="-lsocket $LIBS"else  echo "$ac_t""no" 1>&6fi# Check whether --with-rtk or --without-rtk was given.if test "${with_rtk+set}" = set; then  withval="$with_rtk"  RTK_DIR=$with_rtkelse  RTK_DIR=$prefixfiac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6echo "configure:1719: checking for jpeglib.h" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1724 "configure"#include "confdefs.h"#include <jpeglib.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then  rm -rf conftest*  eval "ac_cv_header_$ac_safe=yes"else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "$ac_t""yes" 1>&6  cat >> confdefs.h <<\EOF#define HAVE_JPEGLIB_H 1EOF  LIBJPEG="-ljpeg"else  echo "$ac_t""no" 1>&6fi# Extract the first word of "gtk-config", so it can be a program name with args.set dummy gtk-config; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1759: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_have_gtk'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test -n "$have_gtk"; then  ac_cv_prog_have_gtk="$have_gtk" # Let the user override the test.else  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"  ac_dummy="$PATH"  for ac_dir in $ac_dummy; do    test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      ac_cv_prog_have_gtk="yes"      break    fi  done  IFS="$ac_save_ifs"  test -z "$ac_cv_prog_have_gtk" && ac_cv_prog_have_gtk="no"fifihave_gtk="$ac_cv_prog_have_gtk"if test -n "$have_gtk"; then  echo "$ac_t""$have_gtk" 1>&6else  echo "$ac_t""no" 1>&6fiif test "x$have_gtk" = "xyes"; then  if test "x$RTK_DIR" = "xNONE"; then    echo $ac_n "checking for rtk_init in -lrtk""... $ac_c" 1>&6echo "configure:1789: checking for rtk_init in -lrtk" >&5ac_lib_var=`echo rtk'_'rtk_init | 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="-lrtk $LIBJPEG `gtk-config --libs gtk gthread` $LIBS"cat > conftest.$ac_ext <<EOF#line 1797 "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 rtk_init();int main() {rtk_init(); return 0; }EOFif { (eval echo configure:1808: \"$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  echo $ac_n "checking for LIBRTK_VERSION_2_2 in -lrtk""... $ac_c" 1>&6echo "configure:1824: checking for LIBRTK_VERSION_2_2 in -lrtk" >&5ac_lib_var=`echo rtk'_'LIBRTK_VERSION_2_2 | 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="-lrtk $LIBJPEG `gtk-config --libs gtk gthread` $LIBS"cat > conftest.$ac_ext <<EOF#line 1832 "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 LIBRTK_VERSION_2_2();int main() {LIBRTK_VERSION_2_2(); return 0; }EOFif { (eval echo configure:1843: \"$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  with_rtk=yeselse  echo "$ac_t""no" 1>&6echo "configure: warning: Your librtk installation is too old (< 2.2)." 1>&2        echo "configure: warning: Either download a newer version of librtk" 1>&2        echo "configure: warning: or pass --without-rtk to configure." 1>&2        { echo "configure: error: RTK is too old" 1>&2; exit 1; }fielse  echo "$ac_t""no" 1>&6with_rtk=nofi    RTK_CPPFLAGS="`gtk-config --cflags`"    RTK_LDADD="-lrtk $LIBJPEG `gtk-config --libs gtk gthread`"  elif test ! "x$RTK_DIR" = "xno"; then    echo $ac_n "checking for rtk_init in -lrtk""... $ac_c" 1>&6echo "configure:1876: checking for rtk_init in -lrtk" >&5ac_lib_var=`echo rtk'_'rtk_init | 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="-lrtk -L$RTK_DIR/lib $LIBJPEG `gtk-config --libs gtk gthread` $LIBS"cat > conftest.$ac_ext <<EOF#line 1884 "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 rtk_init();int main() {rtk_init(); return 0; }EOFif { (eval echo configure:1895: \"$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  echo $ac_n "checking for LIBRTK_VERSION_2_2 in -lrtk""... $ac_c" 1>&6echo "configure:1911: checking for LIBRTK_VERSION_2_2 in -lrtk" >&5ac_lib_var=`echo rtk'_'LIBRTK_VERSION_2_2 | 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="-lrtk -L$RTK_DIR/lib $LIBJPEG `gtk-config --libs gtk gthread` $LIBS"cat > conftest.$ac_ext <<EOF#line 1919 "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 LIBRTK_VERSION_2_2();int main() {LIBRTK_VERSION_2_2(); return 0; }EOFif { (eval echo configure:1930: \"$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  with_rtk=yes        RTK_CPPFLAGS="-I$RTK_DIR/include `gtk-config --cflags`"        RTK_LDADD="-L$RTK_DIR/lib -lrtk $LIBJPEG `gtk-config --libs gtk gthread`"else  echo "$ac_t""no" 1>&6echo "configure: warning: Your librtk installation is too old (< 2.2)." 1>&2        echo "configure: warning: Either download a newer version of librtk" 1>&2        echo "configure: warning: or pass --without-rtk to configure." 1>&2        { echo "configure: error: RTK is too old" 1>&2; exit 1; }fielse  echo "$ac_t""no" 1>&6with_rtk=nofi  fielse  with_rtk=nofiif test "x$with_rtk" = "xno"; then  echo "configure: warning: ***************************************************" 1>&2  echo "configure: warning: Couldn't find RTK so I won't build RTK-based GUIs" 1>&2  echo "configure: warning: Maybe you should download and install RTK?" 1>&2  echo "configure: warning: If you have RTK installed, try --with-rtk=path" 1>&2  echo "configure: warning: ***************************************************" 1>&2fiif test x$with_rtk = xyes; then  WITH_RTK_TRUE=  WITH_RTK_FALSE='#'else  WITH_RTK_TRUE='#'  WITH_RTK_FALSE=fiif test "x$with_rtk" = "xyes"; then  with_gui=yes  cat >> confdefs.h <<\EOF#define INCLUDE_RTK2 1EOF  GUI_LIB=librtkstage.a  GUI_LIBPATH=rtkstage/$GUI_LIB  GUI_LDADD=$RTK_LDADD  GUI_CPPFLAGS=$RTK_CPPFLAGSelse  with_gui=nofi# Check whether --with-player or --without-player was given.if test "${with_player+set}" = set; then  withval="$with_player"  PLAYER_DIR=$with_playerelse  PLAYER_DIR=$prefixfiif test "x$PLAYER_DIR" = "xNONE"; then  ac_safe=`echo "player.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for player.h""... $ac_c" 1>&6echo "configure:2020: checking for player.h" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 2025 "configure"#include "confdefs.h"#include <player.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:2030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then  rm -rf conftest*  eval "ac_cv_header_$ac_safe=yes"else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "$ac_t""yes" 1>&6  with_player=yes                  PLAYER_CPPFLAGS=""                  PLAYER_LDADD="-lplayerpacket -lplayerqueue -lplayerclient"else  echo "$ac_t""no" 1>&6with_player=nofielse  echo $ac_n "checking for $PLAYER_DIR/include/player.h""... $ac_c" 1>&6echo "configure:2056: checking for $PLAYER_DIR/include/player.h" >&5  if test -f $PLAYER_DIR/include/player.h; then    echo "$ac_t""yes" 1>&6    PLAYER_CPPFLAGS="-I$PLAYER_DIR/include"    PLAYER_LDADD="-L$PLAYER_DIR/lib -lplayerqueue -lplayerpacket -lplayerclient"  elif test -f $PLAYER_DIR/server/player.h; then    echo "$ac_t""yes" 1>&6    PLAYER_CPPFLAGS="-I$PLAYER_DIR/server -I$PLAYER_DIR/server/drivers/stage -I$PLAYER_DIR/client_libs/libplayerpacket -I$PLAYER_DIR/client_libs/c -I$PLAYER_DIR/client_libs/c++"    PLAYER_LDADD="-L$PLAYER_DIR/server -lplayerqueue -L$PLAYER_DIR/client_libs/libplayerpacket -lplayerpacket -L$PLAYER_DIR/client_libs/c++ -lplayerclient"  else    with_player=no  fifiif test "x$with_player" = "xno"; then  echo "$ac_t""Could not find player.h.  Player is required to build Stage." 1>&6  echo "$ac_t""You can specify a path to Player like this:" 1>&6  echo "$ac_t""    ./configure --with-player=<Player prefix dir>" 1>&6  { echo "configure: error: Configuration aborted. Fix the Player path." 1>&2; exit 1; }fiac_safe=`echo "/usr/X11R6/lib/X11/rgb.txt" | sed 'y%./+-%

⌨️ 快捷键说明

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