📄 configure
字号:
if test -z "$ac_need_trad"; then ac_prog='#include <termio.h>Autoconf TCGETA' cat > conftest.${ac_ext} <<EOF#include "confdefs.h"$ac_progEOFeval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then rm -rf conftest* ac_need_trad=1firm -f conftest* fi test -n "$ac_need_trad" && CC="$CC -traditional"fi# Make sure to not get the incompatible SysV /etc/install and# /usr/sbin/install, which might be in PATH before a BSD-like install,# or the SunOS /usr/etc/install directory, or the AIX /bin/install,# or the AFS install, which mishandles nonexistent args, or# /usr/ucb/install on SVR4, which tries to use the nonexistent group# `staff', or /sbin/install on IRIX which has incompatible command-line# syntax. Sigh.## On most BSDish systems install is in /usr/bin, not /usr/ucb# anyway.# This turns out not to be true, so the mere pathname isn't an indication# of whether the program works. What we really need is a set of tests for# the install program to see if it actually works in all the required ways.## Avoid using ./install, which might have been erroneously created# by make from ./install.sh.if test -z "${INSTALL}"; then test -n "$silent" || echo "checking for a BSD compatible install" IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do case "$ac_dir" in ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. for ac_prog in installbsd scoinst install; do if test -f $ac_dir/$ac_prog; then if test $ac_prog = install && grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. # OSF/1 installbsd also uses dspmsg, but is usable. : else INSTALL="$ac_dir/$ac_prog -c" break 2 fi fi done ;; esac done IFS="$ac_save_ifs"fiif test -z "$INSTALL"; then # As a last resort, use the slow shell script. for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do if test -f $ac_dir/install.sh; then INSTALL="$ac_dir/install.sh -c"; break fi donefiif test -z "$INSTALL"; then echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1fitest -n "$verbose" && echo " setting INSTALL to $INSTALL"# Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.# It thinks the first close brace ends the variable substitution.test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'test -n "$verbose" && echo " setting INSTALL_PROGRAM to $INSTALL_PROGRAM"test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'test -n "$verbose" && echo " setting INSTALL_DATA to $INSTALL_DATA"if test -z "$RANLIB"; then # Extract the first word of `ranlib', so it can be a program name with args. set ac_dummy ranlib; ac_word=$2 test -n "$silent" || echo "checking for $ac_word" 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 RANLIB="ranlib" break fi done IFS="$ac_save_ifs"fitest -z "$RANLIB" && RANLIB=":"test -n "$RANLIB" && test -n "$verbose" && echo " setting RANLIB to $RANLIB"test -n "$silent" || echo "checking for BSD string and memory functions"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"#include <strings.h>int main() { return 0; }int t() { rindex(0, 0); bzero(0, 0);; return 0; }EOFif eval $ac_compile; then :else rm -rf conftest* {test -n "$verbose" && \echo " defining USG"echo "#define" USG "1" >> confdefs.hDEFS="$DEFS -DUSG=1"ac_sed_defs="${ac_sed_defs}\${ac_dA}USG\${ac_dB}USG\${ac_dC}1\${ac_dD}\${ac_uA}USG\${ac_uB}USG\${ac_uC}1\${ac_uD}\${ac_eA}USG\${ac_eB}USG\${ac_eC}1\${ac_eD}"}firm -f conftest*for ac_func in strcasecmp sigholddoac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`test -n "$silent" || echo "checking for ${ac_func}"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"#include <ctype.h>int main() { return 0; }int t() { /* 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/* Override any gcc2 internal prototype to avoid an error. */extern char ${ac_func}(); ${ac_func}();#endif; return 0; }EOFif eval $ac_compile; then rm -rf conftest* {test -n "$verbose" && \echo " defining ${ac_tr_func}"echo "#define" ${ac_tr_func} "1" >> confdefs.hDEFS="$DEFS -D${ac_tr_func}=1"ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}\${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}\${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}"}firm -f conftest*donefor ac_hdr in unistd.h stdlib.h varargs.h string.h alloca.h \ dirent.h sys/ptem.h sys/pte.h sys/stream.h termcap.h \ termio.hdoac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`test -n "$silent" || echo "checking for ${ac_hdr}"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"#include <${ac_hdr}>EOF# Some shells (Coherent) do redirections in the wrong order, so need# the parens.ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`if test -z "$ac_err"; then rm -rf conftest* {test -n "$verbose" && \echo " defining ${ac_tr_hdr}"echo "#define" ${ac_tr_hdr} "1" >> confdefs.hDEFS="$DEFS -D${ac_tr_hdr}=1"ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}\${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}\${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}"}firm -f conftest*donetest -n "$silent" || echo "checking for sys/file.h"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"#include <sys/file.h>EOF# Some shells (Coherent) do redirections in the wrong order, so need# the parens.ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`if test -z "$ac_err"; then :else rm -rf conftest* {test -n "$verbose" && \echo " defining NO_SYS_FILE"echo "#define" NO_SYS_FILE "1" >> confdefs.hDEFS="$DEFS -DNO_SYS_FILE=1"ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_SYS_FILE\${ac_dB}NO_SYS_FILE\${ac_dC}1\${ac_dD}\${ac_uA}NO_SYS_FILE\${ac_uB}NO_SYS_FILE\${ac_uC}1\${ac_uD}\${ac_eA}NO_SYS_FILE\${ac_eB}NO_SYS_FILE\${ac_eC}1\${ac_eD}"}firm -f conftest*if test -z "$have_tiocgwinsz"; thentest -n "$silent" || echo "checking for TIOCGWINSZ in sys/ioctl.h"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"#include <sys/types.h>#include <sys/ioctl.h>int main() { return 0; }int t() { int x = TIOCGWINSZ;; return 0; }EOFif eval $ac_compile; then rm -rf conftest* {test -n "$verbose" && \echo " defining GWINSZ_IN_SYS_IOCTL"echo "#define" GWINSZ_IN_SYS_IOCTL "1" >> confdefs.hDEFS="$DEFS -DGWINSZ_IN_SYS_IOCTL=1"ac_sed_defs="${ac_sed_defs}\${ac_dA}GWINSZ_IN_SYS_IOCTL\${ac_dB}GWINSZ_IN_SYS_IOCTL\${ac_dC}1\${ac_dD}\${ac_uA}GWINSZ_IN_SYS_IOCTL\${ac_uB}GWINSZ_IN_SYS_IOCTL\${ac_uC}1\${ac_uD}\${ac_eA}GWINSZ_IN_SYS_IOCTL\${ac_eB}GWINSZ_IN_SYS_IOCTL\${ac_eC}1\${ac_eD}"}firm -f conftest*fitest -n "$silent" || echo "checking for programs able to redeclare getpw functions"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"#include <sys/types.h>#include <pwd.h>extern struct passwd *getpwuid();int main() { return 0; }int t() { struct passwd *z; z = getpwuid(0);; return 0; }EOFif eval $ac_compile; then :else rm -rf conftest* {test -n "$verbose" && \echo " defining HAVE_GETPW_DECLS"echo "#define" HAVE_GETPW_DECLS "1" >> confdefs.hDEFS="$DEFS -DHAVE_GETPW_DECLS=1"ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_GETPW_DECLS\${ac_dB}HAVE_GETPW_DECLS\${ac_dC}1\${ac_dD}\${ac_uA}HAVE_GETPW_DECLS\${ac_uB}HAVE_GETPW_DECLS\${ac_uC}1\${ac_uD}\${ac_eA}HAVE_GETPW_DECLS\${ac_eB}HAVE_GETPW_DECLS\${ac_eC}1\${ac_eD}"}firm -f conftest*# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works# for constant arguments. Useless!test -n "$silent" || echo "checking for working alloca.h"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"#include <alloca.h>int main() { return 0; }int t() { char *p = alloca(2 * sizeof(int));; return 0; }EOFif eval $ac_compile; then rm -rf conftest* {test -n "$verbose" && \echo " defining HAVE_ALLOCA_H"echo "#define" HAVE_ALLOCA_H "1" >> confdefs.hDEFS="$DEFS -DHAVE_ALLOCA_H=1"ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA_H\${ac_dB}HAVE_ALLOCA_H\${ac_dC}1\${ac_dD}\${ac_uA}HAVE_ALLOCA_H\${ac_uB}HAVE_ALLOCA_H\${ac_uC}1\${ac_uD}\${ac_eA}HAVE_ALLOCA_H\${ac_eB}HAVE_ALLOCA_H\${ac_eC}1\${ac_eD}"}firm -f conftest*ac_decl="#ifdef __GNUC__#define alloca __builtin_alloca#else#if HAVE_ALLOCA_H#include <alloca.h>#else#ifdef _AIX #pragma alloca#elsechar *alloca ();#endif#endif#endif"test -n "$silent" || echo "checking for alloca"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"$ac_declint main() { return 0; }int t() { char *p = (char *) alloca(1);; return 0; }EOFif eval $ac_compile; then rm -rf conftest* {test -n "$verbose" && \echo " defining HAVE_ALLOCA"echo "#define" HAVE_ALLOCA "1" >> confdefs.hDEFS="$DEFS -DHAVE_ALLOCA=1"ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA\${ac_dB}HAVE_ALLOCA\${ac_dC}1\${ac_dD}\${ac_uA}HAVE_ALLOCA\${ac_uB}HAVE_ALLOCA\${ac_uC}1\${ac_uD}\${ac_eA}HAVE_ALLOCA\${ac_eB}HAVE_ALLOCA\${ac_eC}1\${ac_eD}"}else rm -rf conftest* ac_alloca_missing=1cat > conftest.${ac_ext} <<EOF#include "confdefs.h"#if defined(CRAY) && ! defined(CRAY2)winnitude#elselossage#endifEOFeval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"if egrep "winnitude" conftest.out >/dev/null 2>&1; then rm -rf conftest* test -n "$silent" || echo "checking for _getb67"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"#include <ctype.h>int main() { return 0; }int t() { /* 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__getb67) || defined (__stub____getb67)choke me#else/* Override any gcc2 internal prototype to avoid an error. */extern char _getb67(); _getb67();#endif; return 0; }EOFif eval $ac_compile; then rm -rf conftest* {test -n "$verbose" && \echo " defining" CRAY_STACKSEG_END to be "_getb67"echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.hDEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}_getb67\${ac_dD}\${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}_getb67\${ac_uD}\${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}_getb67\${ac_eD}"}else rm -rf conftest* test -n "$silent" || echo "checking for GETB67"cat > conftest.${ac_ext} <<EOF#include "confdefs.h"#include <ctype.h>int main() { return 0; }int t() { /* 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_GETB67) || defined (__stub___GETB67)choke me#else/* Override any gcc2 internal prototype to avoid an error. */extern char GETB67(); GETB67();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -