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

📄 configure

📁 linux系统下的音频通信
💻
📖 第 1 页 / 共 5 页
字号:
if { (eval echo configure:1850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/nullthen  tk_ok=termioselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -fr conftest*  tk_ok=nofirm -fr conftest*fiif test $tk_ok = termios; then    cat >> confdefs.h <<\EOF#define USE_TERMIOS 1EOFelseif test "$cross_compiling" = yes; then  tk_ok=noelse  cat > conftest.$ac_ext <<EOF#line 1872 "configure"#include "confdefs.h"#include <termio.h>main(){    struct termio t;    if (ioctl(0, TCGETA, &t) == 0) {	t.c_cflag |= CBAUD | PARENB | PARODD | CSIZE | CSTOPB;	return 0;    }    return 1;}EOFif { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/nullthen  tk_ok=termioelse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -fr conftest*  tk_ok=nofirm -fr conftest*fiif test $tk_ok = termio; then    cat >> confdefs.h <<\EOF#define USE_TERMIO 1EOFelseif test "$cross_compiling" = yes; then  tk_ok=noneelse  cat > conftest.$ac_ext <<EOF#line 1909 "configure"#include "confdefs.h"#include <sgtty.h>main(){    struct sgttyb t;    if (ioctl(0, TIOCGETP, &t) == 0) {	t.sg_ospeed = 0;	t.sg_flags |= ODDP | EVENP | RAW;	return 0;    }    return 1;}EOFif { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/nullthen  tk_ok=sgttyelse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -fr conftest*  tk_ok=nonefirm -fr conftest*fiif test $tk_ok = sgtty; then    cat >> confdefs.h <<\EOF#define USE_SGTTY 1EOFfififiecho "$ac_t""$tk_ok" 1>&6#--------------------------------------------------------------------#	Include sys/select.h if it exists and if it supplies things#	that appear to be useful and aren't already in sys/types.h.#	This appears to be true only on the RS/6000 under AIX.  Some#	systems like OSF/1 have a sys/select.h that's of no use, and#	other systems like SCO UNIX have a sys/select.h that's#	pernicious.  If "fd_set" isn't defined anywhere then set a#	special flag.#--------------------------------------------------------------------echo $ac_n "checking fd_set and sys/select""... $ac_c" 1>&6echo "configure:1958: checking fd_set and sys/select" >&5cat > conftest.$ac_ext <<EOF#line 1960 "configure"#include "confdefs.h"#include <sys/types.h>int main() {fd_set readMask, writeMask;; return 0; }EOFif { (eval echo configure:1967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  tk_ok=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  tk_ok=nofirm -f conftest*if test $tk_ok = no; then    cat > conftest.$ac_ext <<EOF#line 1979 "configure"#include "confdefs.h"#include <sys/select.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "fd_mask" >/dev/null 2>&1; then  rm -rf conftest*  tk_ok=yesfirm -f conftest*    if test $tk_ok = yes; then	cat >> confdefs.h <<\EOF#define HAVE_SYS_SELECT_H 1EOF    fifiecho "$ac_t""$tk_ok" 1>&6if test $tk_ok = no; then    cat >> confdefs.h <<\EOF#define NO_FD_SET 1EOFfi#------------------------------------------------------------------------------#       Find out all about time handling differences.#------------------------------------------------------------------------------for ac_hdr in sys/time.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:2013: checking for $ac_hdr" >&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 2018 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:2023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`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    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOF else  echo "$ac_t""no" 1>&6fidoneecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6echo "configure:2050: checking whether time.h and sys/time.h may both be included" >&5if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 2055 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/time.h>#include <time.h>int main() {struct tm *tp;; return 0; }EOFif { (eval echo configure:2064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  ac_cv_header_time=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  ac_cv_header_time=nofirm -f conftest*fiecho "$ac_t""$ac_cv_header_time" 1>&6if test $ac_cv_header_time = yes; then  cat >> confdefs.h <<\EOF#define TIME_WITH_SYS_TIME 1EOFfiecho $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6echo "configure:2085: checking whether struct tm is in sys/time.h or time.h" >&5if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 2090 "configure"#include "confdefs.h"#include <sys/types.h>#include <time.h>int main() {struct tm *tp; tp->tm_sec;; return 0; }EOFif { (eval echo configure:2098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  ac_cv_struct_tm=time.helse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  ac_cv_struct_tm=sys/time.hfirm -f conftest*fiecho "$ac_t""$ac_cv_struct_tm" 1>&6if test $ac_cv_struct_tm = sys/time.h; then  cat >> confdefs.h <<\EOF#define TM_IN_SYS_TIME 1EOFfiecho $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6echo "configure:2119: checking for tm_zone in struct tm" >&5if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 2124 "configure"#include "confdefs.h"#include <sys/types.h>#include <$ac_cv_struct_tm>int main() {struct tm tm; tm.tm_zone;; return 0; }EOFif { (eval echo configure:2132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  ac_cv_struct_tm_zone=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  ac_cv_struct_tm_zone=nofirm -f conftest*fiecho "$ac_t""$ac_cv_struct_tm_zone" 1>&6if test "$ac_cv_struct_tm_zone" = yes; then  cat >> confdefs.h <<\EOF#define HAVE_TM_ZONE 1EOFelse  echo $ac_n "checking for tzname""... $ac_c" 1>&6echo "configure:2152: checking for tzname" >&5if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 2157 "configure"#include "confdefs.h"#include <time.h>#ifndef tzname /* For SGI.  */extern char *tzname[]; /* RS6000 and others reject char **tzname.  */#endifint main() {atoi(*tzname);; return 0; }EOFif { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then  rm -rf conftest*  ac_cv_var_tzname=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  ac_cv_var_tzname=nofirm -f conftest*fiecho "$ac_t""$ac_cv_var_tzname" 1>&6  if test $ac_cv_var_tzname = yes; then    cat >> confdefs.h <<\EOF#define HAVE_TZNAME 1EOF  fifiecho $ac_n "checking tm_tzadj in struct tm""... $ac_c" 1>&6echo "configure:2190: checking tm_tzadj in struct tm" >&5cat > conftest.$ac_ext <<EOF#line 2192 "configure"#include "confdefs.h"#include <time.h>int main() {struct tm tm; tm.tm_tzadj;; return 0; }EOFif { (eval echo configure:2199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  cat >> confdefs.h <<\EOF#define HAVE_TM_TZADJ 1EOF         echo "$ac_t""yes" 1>&6else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  echo "$ac_t""no" 1>&6firm -f conftest*echo $ac_n "checking tm_gmtoff in struct tm""... $ac_c" 1>&6echo "configure:2215: checking tm_gmtoff in struct tm" >&5cat > conftest.$ac_ext <<EOF#line 2217 "configure"#include "confdefs.h"#include <time.h>int main() {struct tm tm; tm.tm_gmtoff;; return 0; }EOFif { (eval echo configure:2224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  cat >> confdefs.h <<\EOF#define HAVE_TM_GMTOFF 1EOF         echo "$ac_t""yes" 1>&6else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  echo "$ac_t""no" 1>&6firm -f conftest*## Its important to include time.h in this check, as some systems (like convex)# have timezone functions, etc.#have_timezone=noecho $ac_n "checking long timezone variable""... $ac_c" 1>&6echo "configure:2245: checking long timezone variable" >&5cat > conftest.$ac_ext <<EOF#line 2247 "configure"#include "confdefs.h"#include <time.h>int main() {extern long timezone;         timezone += 1;         exit (0);; return 0; }EOFif { (eval echo configure:2256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  have_timezone=yes	 cat >> confdefs.h <<\EOF#define HAVE_TIMEZONE_VAR 1EOF         echo "$ac_t""yes" 1>&6else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  echo "$ac_t""no" 1>&6firm -f conftest*## On some systems (eg IRIX 6.2), timezone is a time_t and not a long.#if test "$have_timezone" = no; then   echo $ac_n "checking time_t timezone variable""... $ac_c" 1>&6echo "configure:2277: checking time_t timezone variable" >&5   cat > conftest.$ac_ext <<EOF#line 2279 "configure"#include "confdefs.h"#include <time.h>int main() {extern time_t timezone;         timezone += 1;         exit (0);; return 0; }EOFif { (eval echo configure:2288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  cat >> confdefs.h <<\EOF#define HAVE_TIMEZONE_VAR 1EOF         echo "$ac_t""yes" 1>&6else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  echo "$ac_t""no" 1>&6firm -f conftest*fi## AIX does not have a timezone field in struct tm. When the AIX bsd# library is used, the timezone global and the gettimeofday methods are# to be a

⌨️ 快捷键说明

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