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

📄 configure

📁 关系型数据库 Postgresql 6.5.2
💻
📖 第 1 页 / 共 4 页
字号:
cross_compiling=$ac_cv_prog_cc_crossif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then    ac_n= ac_c='' ac_t='	'  else    ac_n=-n ac_c= ac_t=  fielse  ac_n= ac_c='\c' ac_t=fiecho "*** configuring psqlodbc ***"if test -d ../../interfacesthen	echo "psqlodbc can be configured either standalone or integrated"	echo "into the Postgres main distribution."	echo "It appears that you are running the standalone configure"	echo "from within the main distribution. The recommended (and required)"	echo "procedure is to configure ODBC using the integrated configuration"	echo "procedure using the --with-odbc option."	exitfiTEMPLATEDIR=./templateif test "$prefix" = "NONE"then	if test -d "/share"	then		ODBCINST=/share/odbcinst.ini	else		ODBCINST=/etc/odbcinst.ini	fielse	ODBCINST=$prefix/odbcinst.inifiac_aux_dir=for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do  if test -f $ac_dir/install-sh; then    ac_aux_dir=$ac_dir    ac_install_sh="$ac_aux_dir/install-sh -c"    break  elif test -f $ac_dir/install.sh; then    ac_aux_dir=$ac_dir    ac_install_sh="$ac_aux_dir/install.sh -c"    break  fidoneif test -z "$ac_aux_dir"; then  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }fiac_config_guess=$ac_aux_dir/config.guessac_config_sub=$ac_aux_dir/config.subac_configure=$ac_aux_dir/configure # This should be Cygnus configure.# Make sure we can run config.sub.if $ac_config_sub sun4 >/dev/null 2>&1; then :else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }fiecho $ac_n "checking host system type""... $ac_c" 1>&6echo "configure:583: checking host system type" >&5host_alias=$hostcase "$host_alias" inNONE)  case $nonopt in  NONE)    if host_alias=`$ac_config_guess`; then :    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }    fi ;;  *) host_alias=$nonopt ;;  esac ;;esachost=`$ac_config_sub $host_alias`host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`echo "$ac_t""$host" 1>&6case "$host_os" in solaris*)        case "$host_cpu" in          sparc) os=solaris_sparc ;;           i386) os=solaris_i386 ;;        esac ;;   sunos*) os=sunos4 ;;     aux*) os=aux ;;   linux*) os=linux ;;    bsdi*) os=bsdi ;; freebsd*|netbsd*|openbsd*) os=bsd ;;    dgux*) os=dgux ;;     aix*) os=aix ;;nextstep*) os=nextstep ;;  ultrix*) os=ultrix4 ;;    irix*) os=irix5  ;;    hpux*) os=hpux ;;     osf*) os=alpha ;;     sco*) os=sco ;; machten*) os=machten ;;  cygwin*) os=win ;; sysv4.2*)       case "$host_vendor" in               univel) os=univel ;;                    *) os=unknown ;;       esac ;;   sysv4*) os=svr4 ;;*) echo ""   echo "*************************************************************"   echo "configure does not currently recognize your operating system,"   echo "therefore you must do a manual configuration of:"   echo "$host_os"   echo "Please contact scrappy@hub.org to see about rectifying this, "   echo "including the above 'checking host system type...' line "   echo "*************************************************************"   echo ""   exit;;esacPORTNAME=${os}echo "checking echo setting..."if echo '\c' | grep -s c >/dev/null 2>&1then	ECHO_N="echo -n"	ECHO_C=""else	ECHO_N="echo"	ECHO_C='\c'fiecho $ac_n "checking setting template to""... $ac_c" 1>&6echo "configure:661: checking setting template to" >&5# Check whether --with-template or --without-template was given.if test "${with_template+set}" = set; then  withval="$with_template"    TEMPLATE=$withval else    host_no_ver=`echo "$host" | sed 's/[0-9.]*$//'`		GUESS=`grep "$host_no_ver" $TEMPLATEDIR/.similar | sed 's/.*=//' | tail -1`		if test "$GUESS"		then   TEMPLATE="$GUESS"		else   TEMPLATE=`uname -s | tr A-Z a-z`		fi	fiecho "$ac_t""$TEMPLATE" 1>&6if test ! -d "$TEMPLATEDIR"then	cat << EOT**************************************************************You seem to be missing the template directory needed byconfigure. If you just copied the source from the Postgresdistribution you should instead have issued the command'make standalone' which would have built a distributioncontaining the necessary template directory. The otheroption is that your trying to build from the sourcewhich is meant to be placed in the Postgres distributiondirectory 'interfaces/odbc'. Depending on your case either get thestandalone source from the following Web site:	www.insightdist.com/psqlodbc/or issue the 'make standalone' command from the'interfaces/odbc' directory of your Postgres Distribution,or copy the distribution file you have to your Postgresdistribution's 'interfaces/odbc' directory and tryagain.If neither of these is the case than please complainkindly to the maintainers; their e-mail addresses canbe found in the Readme files.*************************************************************EOTexitelseif test ! -f "$TEMPLATEDIR/$TEMPLATE"then	cat <<EOTPlease select a template from the ones listed below.  If notemplate is available, then select the 'generic' one andconsider emailling scrappy@hub.org with the above line whichstarts 'checking host system type...'**************************************************************EOT	TEMPLATE=generic	GUESS=`grep "^$host_no_ver=" $TEMPLATEDIR/.similar 2>/dev/null`	if test ! "$GUESS"	then	host_no_ver=`echo "$host" | sed 's/[0-9.]*$//'`		GUESS=`grep "$host_no_ver" $TEMPLATEDIR/.similar 2>/dev/null`	fi	if test "$GUESS"	then		TEMPLATE=`echo $GUESS | sed 's/.*=//'`	fi	export TEMPLATE	ls $TEMPLATEDIR	echo "**************************************************************"	$ECHO_N "Appropriate template file { $TEMPLATE }: $ECHO_C"	read a	if test "$a." != "."	then		TEMPLATE=$a	fi	if test ! -f $TEMPLATEDIR/$TEMPLATE	then		echo "You must choose an appropriate template file."		exit	fififiTEMPLATE=$TEMPLATEDIR/$TEMPLATE export TEMPLATEecho ""AROPT=`grep '^AROPT:' $TEMPLATE | awk -F: '{print $2}'`SHARED_LIB=`grep '^SHARED_LIB:' $TEMPLATE | awk -F: '{print $2}'`CFLAGS=`grep '^CFLAGS:' $TEMPLATE | awk -F: '{print $2}'`SRCH_INC=`grep '^SRCH_INC:' $TEMPLATE | awk -F: '{print $2}'`SRCH_LIB=`grep '^SRCH_LIB:' $TEMPLATE | awk -F: '{print $2}'`DLSUFFIX=`grep '^DLSUFFIX:' $TEMPLATE | awk -F: '{print $2}'`DL_LIB=`grep '^DL_LIB:' $TEMPLATE | awk -F: '{print $2}'`CC=`grep '^CC:' $TEMPLATE | awk -F: '{print $2}'`LIBS=`grep '^LIBS:' $TEMPLATE | awk -F: '{print $2}'`a=$SRCH_INCCPPFLAGS=`echo "$a" | sed 's@  *@ @g; s@^\([^ ]\)@-I\1@; s@ \([^ ]\)@ -I\1@g'`export CPPFLAGSecho "- setting CPPFLAGS=$CPPFLAGS"a=$SRCH_LIBLDFLAGS=`echo "$a" | sed 's@  *@ @g; s@^\([^ ]\)@-L\1@; s@ \([^ ]\)@ -L\1@g'`export LDFLAGSecho "- setting LDFLAGS=$LDFLAGS"echo $ac_n "checking setting ODBCINST""... $ac_c" 1>&6echo "configure:773: checking setting ODBCINST" >&5# Check whether --with-odbcinst or --without-odbcinst was given.if test "${with_odbcinst+set}" = set; then  withval="$with_odbcinst"  cat >> confdefs.h <<EOF#define ODBCINST ${with_odbcinst}EOF echo "$ac_t""$with_odbcinst" 1>&6else  cat >> confdefs.h <<EOF#define ODBCINST /etc/odbcinst.iniEOF echo "$ac_t""${ODBCINST}" 1>&6fiif test "X$with_compiler" != "X"then        CC=$with_compilerelse        # Extract the first word of "gcc", so it can be a program name with args.set dummy gcc; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:799: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test -n "$CC"; then  ac_cv_prog_CC="$CC" # Let the user override the test.else  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"  for ac_dir in $PATH; do    test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      ac_cv_prog_CC="gcc"      break    fi  done  IFS="$ac_save_ifs"fifiCC="$ac_cv_prog_CC"if test -n "$CC"; then  echo "$ac_t""$CC" 1>&6else  echo "$ac_t""no" 1>&6fiif test -z "$CC"; then  # Extract the first word of "cc", so it can be a program name with args.set dummy cc; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:828: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test -n "$CC"; then  ac_cv_prog_CC="$CC" # Let the user override the test.else  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"  ac_prog_rejected=no  for ac_dir in $PATH; do    test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then        ac_prog_rejected=yes	continue      fi      ac_cv_prog_CC="cc"      break    fi  done  IFS="$ac_save_ifs"if test $ac_prog_rejected = yes; then  # We found a bogon in the path, so make sure we never use it.  set dummy $ac_cv_prog_CC  shift  if test $# -gt 0; then    # We chose a different compiler from the bogus one.    # However, it has the same basename, so the bogon will be chosen    # first if we set CC to just the basename; use the full file name.    shift    set dummy "$ac_dir/$ac_word" "$@"    shift    ac_cv_prog_CC="$@"  fifififiCC="$ac_cv_prog_CC"if test -n "$CC"; then  echo "$ac_t""$CC" 1>&6else  echo "$ac_t""no" 1>&6fi  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }fiecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6echo "configure:876: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5ac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crosscat > conftest.$ac_ext <<EOF#line 886 "configure"#include "confdefs.h"main(){return(0);}EOFif { (eval echo configure:890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then  ac_cv_prog_cc_works=yes  # If we can't run a trivial program, we are probably using a cross compiler.  if (./conftest; exit) 2>/dev/null; then    ac_cv_prog_cc_cross=no  else    ac_cv_prog_cc_cross=yes  fielse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  ac_cv_prog_cc_works=nofirm -fr conftest*echo "$ac_t""$ac_cv_prog_cc_works" 1>&6if test $ac_cv_prog_cc_works = no; then  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }fiecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6echo "configure:910: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6cross_compiling=$ac_cv_prog_cc_crossecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6echo "configure:915: checking whether we are using GNU C" >&5if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.c <<EOF#ifdef __GNUC__  yes;#endifEOFif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  ac_cv_prog_gcc=yeselse  ac_cv_prog_gcc=nofifiecho "$ac_t""$ac_cv_prog_gcc" 1>&6if test $ac_cv_prog_gcc = yes; then  GCC=yes  ac_test_CFLAGS="${CFLAGS+set}"  ac_save_CFLAGS="$CFLAGS"  CFLAGS=  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6echo "configure:939: checking whether ${CC-cc} accepts -g" >&5if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  echo 'void f(){}' > conftest.cif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then  ac_cv_prog_cc_g=yeselse  ac_cv_prog_cc_g=nofirm -f conftest*fiecho "$ac_t""$ac_cv_prog_cc_g" 1>&6  if test "$ac_test_CFLAGS" = set; then    CFLAGS="$ac_save_CFLAGS"  elif test $ac_cv_prog_cc_g = yes; then    CFLAGS="-g -O2"  else    CFLAGS="-O2"  fielse  GCC=  test "${CFLAGS+set}" = set || CFLAGS="-g"fifiecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6echo "configure:971: checking how to run the C preprocessor" >&5# On Suns, sometimes $CPP names a directory.if test -n "$CPP" && test -d "$CPP"; then  CPP=fiif test -z "$CPP"; thenif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else    # This must be in double quotes, not single quotes, because CPP may get  # substituted into the Makefile and "${CC-cc}" will confuse make.  CPP="${CC-cc} -E"  # On the NeXT, cc -E runs the code through the compiler's parser,  # not just through cpp.  cat > conftest.$ac_ext <<EOF#line 986 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; then  :else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  CPP="${CC-cc} -E -traditional-cpp"  cat > conftest.$ac_ext <<EOF#line 1003 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; then  :else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  CPP=/lib/cppfirm -f conftest*firm -f conftest*  ac_cv_prog_CPP="$CPP"fi  CPP="$ac_cv_prog_CPP"

⌨️ 快捷键说明

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