📄 configure
字号:
exec 6>&1fiexec 5>./config.logecho "\This file contains any messages produced by compilers whilerunning configure, to aid debugging if configure makes a mistake." 1>&5# Strip out --no-create and --no-recursion so they do not pile up.# Also quote any args containing shell metacharacters.ac_configure_args=for ac_argdo case "$ac_arg" in -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; *) ac_configure_args="$ac_configure_args $ac_arg" ;; esacdone# NLS nuisances.# Only set these to C if already set. These must not be set unconditionally# because not all systems understand e.g. LANG=C (notably SCO).# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!# Non-C LC_CTYPE values break the ctype check.if test "${LANG+set}" = set; then LANG=C; export LANG; fiif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fiif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fiif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi# confdefs.h avoids OS command line length limits that DEFS can exceed.rm -rf conftest* confdefs.h# AIX cpp loses on an empty file, so make sure it contains at least a newline.echo > confdefs.h# A filename unique to this package, relative to the directory that# configure is in, which we can look for to find out if srcdir is correct.ac_unique_file=include/idn/converter.h# Find the source files, if location was not specified.if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_prog=$0 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fielse ac_srcdir_defaulted=nofiif test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } else { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } fifisrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`# Prefer explicitly selected file to automatically selected ones.if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fififor ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then echo "loading site script $ac_site_file" . "$ac_site_file" fidoneif test -r "$cache_file"; then echo "loading cache $cache_file" . $cache_fileelse echo "creating cache $cache_file" > $cache_filefiac_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${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crossac_exeext=ac_objext=oif (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=fiac_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 ${CONFIG_SHELL-/bin/sh} $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:582: checking host system type" >&5host_alias=$hostcase "$host_alias" inNONE) case $nonopt in NONE) if host_alias=`${CONFIG_SHELL-/bin/sh} $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=`${CONFIG_SHELL-/bin/sh} $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>&6debug=no# Check whether --enable-debug or --disable-debug was given.if test "${enable_debug+set}" = set; then enableval="$enable_debug" debug=$enablevalficase "$debug" inyes) CFLAGS="$CFLAGS -DDEBUG" ;;esacmdnkit_compat=noCOMPAT_TRUE="#"COMPAT_FALSE=# Check whether --enable-mdnkit-compat or --disable-mdnkit-compat was given.if test "${enable_mdnkit_compat+set}" = set; then enableval="$enable_mdnkit_compat" mdnkit_compat=$enablevalficase "$mdnkit_compat" inyes) COMPAT_TRUE= COMPAT_FALSE="#" cat >> confdefs.h <<\EOF#define ENABLE_MDNKIT_COMPAT 1EOF ;;no) ;;*) { echo "configure: error: You must specify yes or no to --enable-runidn option." 1>&2; exit 1; } ;;esacextraace=no# Check whether --enable-extra-ace or --disable-extra-ace was given.if test "${enable_extra_ace+set}" = set; then enableval="$enable_extra_ace" extraace=$enablevalficase "$extraace" inno) ;;yes) cat >> confdefs.h <<\EOF#define IDN_EXTRA_ACE 1EOF ;;*) { echo "configure: error: You must specify yes or no to --enable-extra-ace option." 1>&2; exit 1; } ;;esacUTF8_NAME=no# Check whether --with-utf8 or --without-utf8 was given.if test "${with_utf8+set}" = set; then withval="$with_utf8" UTF8_NAME=$withvalficase "$UTF8_NAME" inno) UTF8_NAME=UTF-8 ;;yes) { echo "configure: error: You must specify NAME to --with-utf8 option." 1>&2; exit 1; } ;;*) cat >> confdefs.h <<EOF#define IDN_UTF8_ENCODING_NAME "$UTF8_NAME"EOF ;;esacliteonly=noLITEONLY_TRUE="#"LITEONLY_FALSE=# Check whether --enable-liteonly or --disable-liteonly was given.if test "${enable_liteonly+set}" = set; then enableval="$enable_liteonly" liteonly=$enablevalficase "$liteonly" inno) ;;yes) if test "$install_runidn" = yes ; then { echo "configure: error: you can't set value \"yes\" to --enable-runidn and --enable-liteonly simultaneously, because runidn requires iconv support of generic libidnkit." 1>&2; exit 1; } fi LITEONLY_TRUE= LITEONLY_FALSE="#" ;;*) { echo "configure: error: You must specify yes or no to --enable-liteonly option." 1>&2; exit 1; } ;;esacinstall_runidn=noRUNIDN_TRUE="#"RUNIDN_FALSE=# Check whether --enable-runidn or --disable-runidn was given.if test "${enable_runidn+set}" = set; then enableval="$enable_runidn" install_runidn=$enablevalficase "$install_runidn" inno) ;;yes) if test "$liteonly" = yes ; then { echo "configure: error: you can't set value \"yes\" to --enable-runidn and --enable-liteonly simultaneously, because runidn requires iconv support of generic libidnkit." 1>&2; exit 1; } fi RUNIDN_TRUE= RUNIDN_FALSE="#" ;;*) { echo "configure: error: You must specify yes or no to --enable-runidn option." 1>&2; exit 1; } ;;esacICONVINC=ICONVLIB=libiconv=unspec# Check whether --with-libiconv or --without-libiconv was given.if test "${with_libiconv+set}" = set; then withval="$with_libiconv" libiconv=$withvalficase "$libiconv" inunspec) ;;no) ICONVINC= ICONVLIB= ;;yes) if test "$liteonly" = yes ; then { echo "configure: error: you can't set iconv options at all when you set value \"yes\" to --enable-liteonly, because lite library does not have iconv support." 1>&2; exit 1; } fi if test X$prefix = XNONE ; then libiconv=$ac_default_prefix else libiconv=$prefix fi ICONVINC="-I$libiconv/include" ICONVLIB="-L$libiconv/lib -R$libiconv/lib -liconv" ;;*) if test "$liteonly" = yes ; then { echo "configure: error: you can't set iconv options at all when you set value \"yes\" to --enable-liteonly, because lite library does not have iconv support." 1>&2; exit 1; } fi ICONVINC="-I$libiconv/include" ICONVLIB="-L$libiconv/lib -R$libiconv/lib -liconv" ;;esaciconv_include=unspec# Check whether --with-iconv-include or --without-iconv-include was given.if test "${with_iconv_include+set}" = set; then withval="$with_iconv_include" iconv_include=$withvalficase "$iconv_include" inunspec) ;;no) ICONVINC= ;;yes) if test "$liteonly" = yes ; then { echo "configure: error: you can't set iconv options at all when you set value \"yes\" to --enable-liteonly, because lite library does not have iconv support." 1>&2; exit 1; } fi echo "configure: warning: You must supply DIR to --with-iconv-include option. Ignored." 1>&2 ICONVINC= ;;*) if test "$liteonly" = yes ; then { echo "configure: error: you can't set iconv options at all when you set value \"yes\" to --enable-liteonly, because lite library does not have iconv support." 1>&2; exit 1; } fi ICONVINC="-I$iconv_include" ;;esacif test "X$ICONVINC" != X ; then iconv_include="`echo X$ICONVINC | sed -e 's/^X-I//'`" if test ! -f "$iconv_include/iconv.h" ; then { echo "configure: error: iconv.h doesn't exist in $iconv_include" 1>&2; exit 1; } fifiiconv=unspec# Check whether --with-iconv or --without-iconv was given.if test "${with_iconv+set}" = set; then withval="$with_iconv" iconv=$withvalficase "$iconv" inunspec) ;;no) ICONVLIB= ;;yes) if test "$liteonly" = yes ; then { echo "configure: error: you can't set iconv options at all when you set value \"yes\" to --enable-liteonly, because lite library does not have iconv support." 1>&2; exit 1; } fi echo "configure: warning: You must supply LIB to --with-iconv option. -liconv is assumed." 1>&2 ICONVLIB=-liconv ;;*) if test "$liteonly" = yes ; then { echo "configure: error: you can't set iconv options at all when you set value \"yes\" to --enable-liteonly, because lite library does not have iconv support." 1>&2; exit 1; } fi ICONVLIB=$iconv ;;esac# Check whether --with-iconv-sofile or --without-iconv-sofile was given.if test "${with_iconv_sofile+set}" = set; then withval="$with_iconv_sofile" iconv_file=$withvalelse iconv_file=guessfiICONVSOFILE=case "$iconv_file" inno) ICONVSOFILE=none ;;yes) if test "$liteonly" = yes ; then { echo "configure: error: you can't set iconv options at all when you set value \"yes\" to --enable-liteonly, because lite library does not have iconv support." 1>&2; exit 1; } fi { echo "configure: error: You must supply PATH to --with-iconv-sofile option." 1>&2; exit 1; } ;;guess) if test "$liteonly" != yes ; then if test "$ICONVLIB" = ""; then ICONVSOFILE=none else echo $ac_n "checking pathname of iconv shared library""... $ac_c" 1>&6echo "configure:870: checking pathname of iconv shared library" >&5 ic_libdir= ic_libname= case "$host" in *-hpux*) SO=sl ;; *) SO=so ;; esac for arg in $ICONVLIB; do case "$arg" in -L*) ic_libdir="$ic_libdir `echo $arg | sed s/-L//`" ;;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -