Changeset 3930
- Timestamp:
- 11/14/06 10:15:28 (7 years ago)
- Location:
- vic/branches/mpeg4
- Files:
-
- 5 modified
-
codec/h263/h263.h (modified) (1 diff)
-
configure (modified) (91 diffs)
-
configure.in (modified) (1 diff)
-
configure.in.head (modified) (1 diff)
-
configure.in.tk (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vic/branches/mpeg4/codec/h263/h263.h
r902 r3930 1 1 /* 2 2 */ 3 #include " ../config.h"3 #include "config.h" 4 4 #include "DataTypes.h" 5 5 #include "structs.h" -
vic/branches/mpeg4/configure
r3929 r3930 1 1 #! /bin/sh 2 3 2 # Guess values for system-dependent variables and create Makefiles. 4 # Generated automatically using autoconf version 2.13 5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 3 # Generated by GNU Autoconf 2.59. 6 4 # 5 # Copyright (C) 2003 Free Software Foundation, Inc. 7 6 # This configure script is free software; the Free Software Foundation 8 7 # gives unlimited permission to copy, distribute and modify it. 9 10 # Defaults: 11 ac_help= 8 ## --------------------- ## 9 ## M4sh Initialization. ## 10 ## --------------------- ## 11 12 # Be Bourne compatible 13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21 fi 22 DUALCASE=1; export DUALCASE # for MKS sh 23 24 # Support unset when possible. 25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27 else 28 as_unset=false 29 fi 30 31 32 # Work around bugs in pre-3.0 UWIN ksh. 33 $as_unset ENV MAIL MAILPATH 34 PS1='$ ' 35 PS2='> ' 36 PS4='+ ' 37 38 # NLS nuisances. 39 for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43 do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49 done 50 51 # Required to use basename. 52 if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54 else 55 as_expr=false 56 fi 57 58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60 else 61 as_basename=false 62 fi 63 64 65 # Name of the executable. 66 as_me=`$as_basename "$0" || 67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71 echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78 # PATH needs CR, and LINENO needs CR and PATH. 79 # Avoid depending upon Character Ranges. 80 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83 as_cr_digits='0123456789' 84 as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86 # The user is always right. 87 if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97 fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110 for as_dir in $PATH 111 do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115 done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132 do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152 done 153 ;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184 } 185 186 187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189 ' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192 esac 193 194 if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196 else 197 as_expr=false 198 fi 199 200 rm -f conf$$ conf$$.exe conf$$.file 201 echo >conf$$.file 202 if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211 elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213 else 214 as_ln_s='cp -p' 215 fi 216 rm -f conf$$ conf$$.exe conf$$.file 217 218 if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220 else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223 fi 224 225 as_executable_p="test -f" 226 227 # Sed expression to map a string onto a valid CPP name. 228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230 # Sed expression to map a string onto a valid variable name. 231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234 # IFS 235 # We need space, tab and new line, in precisely that order. 236 as_nl=' 237 ' 238 IFS=" $as_nl" 239 240 # CDPATH. 241 $as_unset CDPATH 242 243 244 # Name of the host. 245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246 # so uname gets run too. 247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249 exec 6>&1 250 251 # 252 # Initializations. 253 # 12 254 ac_default_prefix=/usr/local 13 # Any additions from configure.in: 14 ac_help="$ac_help 15 --enable-debug build with debugging enabled" 16 ac_help="$ac_help 17 --enable-ipv6 build with ipv6 enabled" 18 ac_help="$ac_help 19 --with-fore=path specify a pathname for fore atm" 20 ac_help="$ac_help 21 --with-ucltcl=path specify a pathname for UCL's tcl" 22 ac_help="$ac_help 23 --with-tcl=path specify a pathname for tcl" 24 ac_help="$ac_help 25 --with-ucltk=path specify a pathname for UCL's tk" 26 ac_help="$ac_help 27 --with-tk=path specify a pathname for tk" 28 ac_help="$ac_help 29 --with-aix-shm=path specify a pathname for the AIX shm X extension library file" 30 ac_help="$ac_help 31 --with-qcam=dir specify directory with qcam.h for Connectix QuickCam device driver" 32 ac_help="$ac_help 33 --disable-ffmpeg-co Enable or disable ffmpeg svn checkout" 34 ac_help="$ac_help 35 --disable-x264-co Enable or disable x264 svn checkout" 36 ac_help="$ac_help 37 --with-ffmpeginc=dir specify the prefix directory of ffmpeg header" 38 ac_help="$ac_help 39 --with-ffmpeglib=dir specify the directory of ffmpeg library" 40 ac_help="$ac_help 41 --with-x264inc=dir specify the directory of x264 header" 42 ac_help="$ac_help 43 --with-x264lib=dir specify the directory of x264 library" 44 ac_help="$ac_help 45 --disable-cpudetect Enable or disable runtime cpu detection" 46 ac_help="$ac_help 47 --disable-h261as Enable or disable the h261as codec" 48 ac_help="$ac_help 49 --enable-dvdecode Enable or disable dv decoding" 50 ac_help="$ac_help 51 --enable-xvideo Enable or disable Xvideo rendering" 52 ac_help="$ac_help 53 --enable-v4l2old Enable or disable old Video4Linux2 grabber" 54 ac_help="$ac_help 55 --enable-XvGrabber Enable or disable old XvGrabber" 255 ac_config_libobj_dir=. 256 cross_compiling=no 257 subdirs= 258 MFLAGS= 259 MAKEFLAGS= 260 SHELL=${CONFIG_SHELL-/bin/sh} 261 262 # Maximum number of lines to put in a shell here document. 263 # This variable seems obsolete. It should probably be removed, and 264 # only ac_max_sed_lines should be used. 265 : ${ac_max_here_lines=38} 266 267 # Identity of this package. 268 PACKAGE_NAME= 269 PACKAGE_TARNAME= 270 PACKAGE_VERSION= 271 PACKAGE_STRING= 272 PACKAGE_BUGREPORT= 273 274 ac_unique_file="main.cpp" 275 # Factoring default headers for most tests. 276 ac_includes_default="\ 277 #include <stdio.h> 278 #if HAVE_SYS_TYPES_H 279 # include <sys/types.h> 280 #endif 281 #if HAVE_SYS_STAT_H 282 # include <sys/stat.h> 283 #endif 284 #if STDC_HEADERS 285 # include <stdlib.h> 286 # include <stddef.h> 287 #else 288 # if HAVE_STDLIB_H 289 # include <stdlib.h> 290 # endif 291 #endif 292 #if HAVE_STRING_H 293 # if !STDC_HEADERS && HAVE_MEMORY_H 294 # include <memory.h> 295 # endif 296 # include <string.h> 297 #endif 298 #if HAVE_STRINGS_H 299 # include <strings.h> 300 #endif 301 #if HAVE_INTTYPES_H 302 # include <inttypes.h> 303 #else 304 # if HAVE_STDINT_H 305 # include <stdint.h> 306 # endif 307 #endif 308 #if HAVE_UNISTD_H 309 # include <unistd.h> 310 #endif" 311 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP V_INCLUDE_X11 V_LIB_X11 V_INCLUDE_TCL V_LIB_TCL V_LIBRARY_TCL V_TKDOSNAMES V_INCLUDE_TK V_LIB_TK V_LIBRARY_TK V_LIB_FFMPEG V_LIB_X264 V_INCLUDE_GRABBER V_LIB_GRABBER V_OBJ_GRABBER V_LIB_XIL V_OBJ_XIL V_OBJ V_LIB V_CODEC_LIB V_STATIC V_TAR_TARGET V_ALL V_CCOPT V_CCOPT_H261 V_TAR_EXTRA V_DEFINE V_SIGRET V_SHELL V_TARCMD V_INCLUDE V_BROKEN_OBJ V_OBJ_CRYPT LIBOBJS LTLIBOBJS' 313 ac_subst_files='' 56 314 57 315 # Initialize some variables set by options. 316 ac_init_help= 317 ac_init_version=false 58 318 # The variables have the same names as the options, with 59 319 # dashes changed to underlines. 60 build=NONE 61 cache_file=./config.cache 320 cache_file=/dev/null 62 321 exec_prefix=NONE 63 host=NONE64 322 no_create= 65 nonopt=NONE66 323 no_recursion= 67 324 prefix=NONE … … 72 329 site= 73 330 srcdir= 74 target=NONE75 331 verbose= 76 332 x_includes=NONE 77 333 x_libraries=NONE 334 335 # Installation directory options. 336 # These are left unexpanded so users can "make install exec_prefix=/foo" 337 # and all the variables that are supposed to be based on exec_prefix 338 # by default will actually change. 339 # Use braces instead of parens because sh, perl, etc. also accept them. 78 340 bindir='${exec_prefix}/bin' 79 341 sbindir='${exec_prefix}/sbin' … … 89 351 mandir='${prefix}/man' 90 352 91 # Initialize some other variables.92 subdirs=93 MFLAGS= MAKEFLAGS=94 SHELL=${CONFIG_SHELL-/bin/sh}95 # Maximum number of lines to put in a shell here document.96 ac_max_here_lines=1297 98 353 ac_prev= 99 354 for ac_option 100 355 do 101 102 356 # If the previous option needs an argument, assign it. 103 357 if test -n "$ac_prev"; then … … 107 361 fi 108 362 109 case "$ac_option" in 110 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 111 *) ac_optarg= ;; 112 esac 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 113 364 114 365 # Accept the important Cygnus configure options, so we can diagnose typos. 115 366 116 case "$ac_option"in367 case $ac_option in 117 368 118 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 119 370 ac_prev=bindir ;; 120 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 121 bindir= "$ac_optarg";;372 bindir=$ac_optarg ;; 122 373 123 374 -build | --build | --buil | --bui | --bu) 124 ac_prev=build ;;375 ac_prev=build_alias ;; 125 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 126 build ="$ac_optarg";;377 build_alias=$ac_optarg ;; 127 378 128 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ … … 131 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 132 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 133 cache_file="$ac_optarg" ;; 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 134 388 135 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) … … 137 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 138 392 | --da=*) 139 datadir= "$ac_optarg";;393 datadir=$ac_optarg ;; 140 394 141 395 -disable-* | --disable-*) 142 ac_feature=`e cho $ac_option|sed -e 's/-*disable-//'`396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 143 397 # Reject names that are not valid shell variable names. 144 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then145 { echo " configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }146 fi147 ac_feature=`echo $ac_feature | sed 's/-/_/g'`148 eval "enable_$ {ac_feature}=no" ;;398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 149 403 150 404 -enable-* | --enable-*) 151 ac_feature=`e cho $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 152 406 # Reject names that are not valid shell variable names. 153 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then154 { echo " configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }155 fi156 ac_feature=`echo $ac_feature | sed 's/-/_/g'`157 case "$ac_option"in158 *=*) ;;407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 159 413 *) ac_optarg=yes ;; 160 414 esac 161 eval "enable_$ {ac_feature}='$ac_optarg'" ;;415 eval "enable_$ac_feature='$ac_optarg'" ;; 162 416 163 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 168 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 169 423 | --exec=* | --exe=* | --ex=*) 170 exec_prefix= "$ac_optarg";;424 exec_prefix=$ac_optarg ;; 171 425 172 426 -gas | --gas | --ga | --g) … … 174 428 with_gas=yes ;; 175 429 176 -help | --help | --hel | --he) 177 # Omit some internal or obsolete options to make the list less imposing. 178 # This message is too long to be a string in the A/UX 3.1 sh. 179 cat << EOF 180 Usage: configure [options] [host] 181 Options: [defaults in brackets after descriptions] 182 Configuration: 183 --cache-file=FILE cache test results in FILE 184 --help print this message 185 --no-create do not create output files 186 --quiet, --silent do not print \`checking...' messages 187 --version print the version of autoconf that created configure 188 Directory and file names: 189 --prefix=PREFIX install architecture-independent files in PREFIX 190 [$ac_default_prefix] 191 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 192 [same as prefix] 193 --bindir=DIR user executables in DIR [EPREFIX/bin] 194 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 195 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 196 --datadir=DIR read-only architecture-independent data in DIR 197 [PREFIX/share] 198 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 199 --sharedstatedir=DIR modifiable architecture-independent data in DIR 200 [PREFIX/com] 201 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 202 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 203 --includedir=DIR C header files in DIR [PREFIX/include] 204 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 205 --infodir=DIR info documentation in DIR [PREFIX/info] 206 --mandir=DIR man documentation in DIR [PREFIX/man] 207 --srcdir=DIR find the sources in DIR [configure dir or ..] 208 --program-prefix=PREFIX prepend PREFIX to installed program names 209 --program-suffix=SUFFIX append SUFFIX to installed program names 210 --program-transform-name=PROGRAM 211 run sed PROGRAM on installed program names 212 EOF 213 cat << EOF 214 Host type: 215 --build=BUILD configure for building on BUILD [BUILD=HOST] 216 --host=HOST configure for HOST [guessed] 217 --target=TARGET configure for TARGET [TARGET=HOST] 218 Features and packages: 219 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 220 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 221 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 222 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 223 --x-includes=DIR X include files are in DIR 224 --x-libraries=DIR X library files are in DIR 225 EOF 226 if test -n "$ac_help"; then 227 echo "--enable and --with options recognized:$ac_help" 228 fi 229 exit 0 ;; 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 230 436 231 437 -host | --host | --hos | --ho) 232 ac_prev=host ;;438 ac_prev=host_alias ;; 233 439 -host=* | --host=* | --hos=* | --ho=*) 234 host ="$ac_optarg";;440 host_alias=$ac_optarg ;; 235 441 236 442 -includedir | --includedir | --includedi | --included | --include \ … … 239 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 240 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 241 includedir= "$ac_optarg";;447 includedir=$ac_optarg ;; 242 448 243 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 244 450 ac_prev=infodir ;; 245 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 246 infodir= "$ac_optarg";;452 infodir=$ac_optarg ;; 247 453 248 454 -libdir | --libdir | --libdi | --libd) 249 455 ac_prev=libdir ;; 250 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 251 libdir= "$ac_optarg";;457 libdir=$ac_optarg ;; 252 458 253 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ … … 256 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 257 463 | --libexe=* | --libex=* | --libe=*) 258 libexecdir= "$ac_optarg";;464 libexecdir=$ac_optarg ;; 259 465 260 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ … … 265 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 266 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 267 localstatedir= "$ac_optarg";;473 localstatedir=$ac_optarg ;; 268 474 269 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 270 476 ac_prev=mandir ;; 271 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 272 mandir= "$ac_optarg";;478 mandir=$ac_optarg ;; 273 479 274 480 -nfp | --nfp | --nf) … … 277 483 278 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 279 | --no-cr | --no-c )485 | --no-cr | --no-c | -n) 280 486 no_create=yes ;; 281 487 … … 291 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 292 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 293 oldincludedir= "$ac_optarg";;499 oldincludedir=$ac_optarg ;; 294 500 295 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 296 502 ac_prev=prefix ;; 297 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 298 prefix= "$ac_optarg";;504 prefix=$ac_optarg ;; 299 505 300 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ … … 303 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 304 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 305 program_prefix= "$ac_optarg";;511 program_prefix=$ac_optarg ;; 306 512 307 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ … … 310 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 311 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 312 program_suffix= "$ac_optarg";;518 program_suffix=$ac_optarg ;; 313 519 314 520 -program-transform-name | --program-transform-name \ … … 327 533 | --program-trans=* | --program-tran=* \ 328 534 | --progr-tra=* | --program-tr=* | --program-t=*) 329 program_transform_name= "$ac_optarg";;535 program_transform_name=$ac_optarg ;; 330 536 331 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ … … 337 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 338 544 | --sbi=* | --sb=*) 339 sbindir= "$ac_optarg";;545 sbindir=$ac_optarg ;; 340 546 341 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ … … 348 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 349 555 | --sha=* | --sh=*) 350 sharedstatedir= "$ac_optarg";;556 sharedstatedir=$ac_optarg ;; 351 557 352 558 -site | --site | --sit) 353 559 ac_prev=site ;; 354 560 -site=* | --site=* | --sit=*) 355 site= "$ac_optarg";;561 site=$ac_optarg ;; 356 562 357 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 358 564 ac_prev=srcdir ;; 359 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 360 srcdir= "$ac_optarg";;566 srcdir=$ac_optarg ;; 361 567 362 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ … … 365 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 366 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 367 sysconfdir= "$ac_optarg";;573 sysconfdir=$ac_optarg ;; 368 574 369 575 -target | --target | --targe | --targ | --tar | --ta | --t) 370 ac_prev=target ;;576 ac_prev=target_alias ;; 371 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 372 target ="$ac_optarg";;578 target_alias=$ac_optarg ;; 373 579 374 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 375 581 verbose=yes ;; 376 582 377 -version | --version | --versio | --versi | --vers) 378 echo "configure generated by autoconf version 2.13" 379 exit 0 ;; 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 380 585 381 586 -with-* | --with-*) 382 ac_package=`e cho $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 383 588 # Reject names that are not valid shell variable names. 384 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then385 { echo " configure: error: $ac_package: invalid package name" 1>&2; exit 1; }386 fi589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 387 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 388 case "$ac_option"in389 *=*) ;;593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 390 595 *) ac_optarg=yes ;; 391 596 esac 392 eval "with_$ {ac_package}='$ac_optarg'" ;;597 eval "with_$ac_package='$ac_optarg'" ;; 393 598 394 599 -without-* | --without-*) 395 ac_package=`e cho $ac_option|sed -e 's/-*without-//'`600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 396 601 # Reject names that are not valid shell variable names. 397 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then398 { echo " configure: error: $ac_package: invalid package name" 1>&2; exit 1; }399 fi400 ac_package=`echo $ac_package | sed 's/-/_/g'`401 eval "with_$ {ac_package}=no" ;;602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 402 607 403 608 --x) … … 410 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 411 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 412 x_includes= "$ac_optarg";;617 x_includes=$ac_optarg ;; 413 618 414 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ … … 417 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 418 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 419 x_libraries="$ac_optarg" ;; 420 421 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627 Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 422 629 ;; 423 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 424 641 *) 425 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 426 echo "configure: warning: $ac_option: invalid host type" 1>&2 427 fi 428 if test "x$nonopt" != xNONE; then 429 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 430 fi 431 nonopt="$ac_option" 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 432 647 ;; 433 648 … … 436 651 437 652 if test -n "$ac_prev"; then 438 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 439 fi 440 441 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 442 443 # File descriptor usage: 444 # 0 standard input 445 # 1 file creation 446 # 2 errors and warnings 447 # 3 some systems may open it to /dev/tty 448 # 4 used on the Kubota Titan 449 # 6 checking for... messages and results 450 # 5 compiler messages saved in config.log 451 if test "$silent" = yes; then 452 exec 6>/dev/null 453 else 454 exec 6>&1 455 fi 456 exec 5>./config.log 457 458 echo "\ 459 This file contains any messages produced by compilers while 460 running configure, to aid debugging if configure makes a mistake. 461 " 1>&5 462 463 # Strip out --no-create and --no-recursion so they do not pile up. 464 # Also quote any args containing shell metacharacters. 465 ac_configure_args= 466 for ac_arg 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656 fi 657 658 # Be sure to have absolute paths. 659 for ac_var in exec_prefix prefix 467 660 do 468 case "$ac_arg" in 469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 470 | --no-cr | --no-c) ;; 471 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 472 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 473 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 474 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 475 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 476 666 esac 477 667 done 478 668 479 # NLS nuisances. 480 # Only set these to C if already set. These must not be set unconditionally 481 # because not all systems understand e.g. LANG=C (notably SCO). 482 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 483 # Non-C LC_CTYPE values break the ctype check. 484 if test "${LANG+set}" = set; then LANG=C; export LANG; fi 485 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 486 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 487 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 488 489 # confdefs.h avoids OS command line length limits that DEFS can exceed. 490 rm -rf conftest* confdefs.h 491 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 492 echo > confdefs.h 493 494 # A filename unique to this package, relative to the directory that 495 # configure is in, which we can look for to find out if srcdir is correct. 496 ac_unique_file=main.cpp 669 # Be sure to have absolute paths. 670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672 do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679 done 680 681 # There might be people who depend on the old broken behavior: `$host' 682 # used to hold the argument of --host etc. 683 # FIXME: To remove some day. 684 build=$build_alias 685 host=$host_alias 686 target=$target_alias 687 688 # FIXME: To remove some day. 689 if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697 fi 698 699 ac_tool_prefix= 700 test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702 test "$silent" = yes && exec 6>/dev/null 703 497 704 498 705 # Find the source files, if location was not specified. … … 500 707 ac_srcdir_defaulted=yes 501 708 # Try the directory containing this script, then its parent. 502 ac_prog=$0 503 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 504 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715 echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 505 721 srcdir=$ac_confdir 506 722 if test ! -r $srcdir/$ac_unique_file; then … … 512 728 if test ! -r $srcdir/$ac_unique_file; then 513 729 if test "$ac_srcdir_defaulted" = yes; then 514 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 515 732 else 516 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 517 735 fi 518 736 fi 519 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 520 737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741 ac_env_build_alias_set=${build_alias+set} 742 ac_env_build_alias_value=$build_alias 743 ac_cv_env_build_alias_set=${build_alias+set} 744 ac_cv_env_build_alias_value=$build_alias 745 ac_env_host_alias_set=${host_alias+set} 746 ac_env_host_alias_value=$host_alias 747 ac_cv_env_host_alias_set=${host_alias+set} 748 ac_cv_env_host_alias_value=$host_alias 749 ac_env_target_alias_set=${target_alias+set} 750 ac_env_target_alias_value=$target_alias 751 ac_cv_env_target_alias_set=${target_alias+set} 752 ac_cv_env_target_alias_value=$target_alias 753 ac_env_CC_set=${CC+set} 754 ac_env_CC_value=$CC 755 ac_cv_env_CC_set=${CC+set} 756 ac_cv_env_CC_value=$CC 757 ac_env_CFLAGS_set=${CFLAGS+set} 758 ac_env_CFLAGS_value=$CFLAGS 759 ac_cv_env_CFLAGS_set=${CFLAGS+set} 760 ac_cv_env_CFLAGS_value=$CFLAGS 761 ac_env_LDFLAGS_set=${LDFLAGS+set} 762 ac_env_LDFLAGS_value=$LDFLAGS 763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764 ac_cv_env_LDFLAGS_value=$LDFLAGS 765 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766 ac_env_CPPFLAGS_value=$CPPFLAGS 767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769 ac_env_CXX_set=${CXX+set} 770 ac_env_CXX_value=$CXX 771 ac_cv_env_CXX_set=${CXX+set} 772 ac_cv_env_CXX_value=$CXX 773 ac_env_CXXFLAGS_set=${CXXFLAGS+set} 774 ac_env_CXXFLAGS_value=$CXXFLAGS 775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS 777 ac_env_CPP_set=${CPP+set} 778 ac_env_CPP_value=$CPP 779 ac_cv_env_CPP_set=${CPP+set} 780 ac_cv_env_CPP_value=$CPP 781 782 # 783 # Report the --help message. 784 # 785 if test "$ac_init_help" = "long"; then 786 # Omit some internal or obsolete options to make the list less imposing. 787 # This message is too long to be a string in the A/UX 3.1 sh. 788 cat <<_ACEOF 789 \`configure' configures this package to adapt to many kinds of systems. 790 791 Usage: $0 [OPTION]... [VAR=VALUE]... 792 793 To assign environment variables (e.g., CC, CFLAGS...), specify them as 794 VAR=VALUE. See below for descriptions of some of the useful variables. 795 796 Defaults for the options are specified in brackets. 797 798 Configuration: 799 -h, --help display this help and exit 800 --help=short display options specific to this package 801 --help=recursive display the short help of all the included packages 802 -V, --version display version information and exit 803 -q, --quiet, --silent do not print \`checking...' messages 804 --cache-file=FILE cache test results in FILE [disabled] 805 -C, --config-cache alias for \`--cache-file=config.cache' 806 -n, --no-create do not create output files 807 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 808 809 _ACEOF 810 811 cat <<_ACEOF 812 Installation directories: 813 --prefix=PREFIX install architecture-independent files in PREFIX 814 [$ac_default_prefix] 815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 816 [PREFIX] 817 818 By default, \`make install' will install all the files in 819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 820 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 821 for instance \`--prefix=\$HOME'. 822 823 For better control, use the options below. 824 825 Fine tuning of the installation directories: 826 --bindir=DIR user executables [EPREFIX/bin] 827 --sbindir=DIR system admin executables [EPREFIX/sbin] 828 --libexecdir=DIR program executables [EPREFIX/libexec] 829 --datadir=DIR read-only architecture-independent data [PREFIX/share] 830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 832 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 833 --libdir=DIR object code libraries [EPREFIX/lib] 834 --includedir=DIR C header files [PREFIX/include] 835 --oldincludedir=DIR C header files for non-gcc [/usr/include] 836 --infodir=DIR info documentation [PREFIX/info] 837 --mandir=DIR man documentation [PREFIX/man] 838 _ACEOF 839 840 cat <<\_ACEOF 841 842 System types: 843 --build=BUILD configure for building on BUILD [guessed] 844 --host=HOST cross-compile to build programs to run on HOST [BUILD] 845 --target=TARGET configure for building compilers for TARGET [HOST] 846 _ACEOF 847 fi 848 849 if test -n "$ac_init_help"; then 850 851 cat <<\_ACEOF 852 853 Optional Features: 854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 856 --enable-debug build with debugging enabled 857 --enable-ipv6 build with ipv6 enabled 858 --disable-ffmpeg-co Enable or disable ffmpeg svn checkout 859 --disable-x264-co Enable or disable x264 svn checkout 860 --disable-cpudetect Enable or disable runtime cpu detection 861 --disable-h261as Enable or disable the h261as codec 862 --enable-dvdecode Enable or disable dv decoding 863 --enable-xvideo Enable or disable Xvideo rendering 864 --enable-v4l2old Enable or disable old Video4Linux2 grabber 865 --enable-XvGrabber Enable or disable old XvGrabber 866 867 Optional Packages: 868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 870 --with-fore=path specify a pathname for fore atm 871 --with-ucltcl=path specify a pathname for UCL's tcl 872 --with-tcl=path specify a pathname for tcl 873 --with-ucltk=path specify a pathname for UCL's tk 874 --with-tk=path specify a pathname for tk 875 --with-aix-shm=path specify a pathname for the AIX shm X extension library file 876 --with-qcam=dir specify directory with qcam.h for Connectix QuickCam device driver 877 --with-ffmpeginc=dir specify the prefix directory of ffmpeg header 878 --with-ffmpeglib=dir specify the directory of ffmpeg library 879 --with-x264inc=dir specify the directory of x264 header 880 --with-x264lib=dir specify the directory of x264 library 881 882 Some influential environment variables: 883 CC C compiler command 884 CFLAGS C compiler flags 885 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 886 nonstandard directory <lib dir> 887 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 888 headers in a nonstandard directory <include dir> 889 CXX C++ compiler command 890 CXXFLAGS C++ compiler flags 891 CPP C preprocessor 892 893 Use these variables to override the choices made by `configure' or to help 894 it to find libraries and programs with nonstandard names/locations. 895 896 _ACEOF 897 fi 898 899 if test "$ac_init_help" = "recursive"; then 900 # If there are subdirs, report their specific --help. 901 ac_popdir=`pwd` 902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 903 test -d $ac_dir || continue 904 ac_builddir=. 905 906 if test "$ac_dir" != .; then 907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 908 # A "../" for each directory in $ac_dir_suffix. 909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 910 else 911 ac_dir_suffix= ac_top_builddir= 912 fi 913 914 case $srcdir in 915 .) # No --srcdir option. We are building in place. 916 ac_srcdir=. 917 if test -z "$ac_top_builddir"; then 918 ac_top_srcdir=. 919 else 920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 921 fi ;; 922 [\\/]* | ?:[\\/]* ) # Absolute path. 923 ac_srcdir=$srcdir$ac_dir_suffix; 924 ac_top_srcdir=$srcdir ;; 925 *) # Relative path. 926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 927 ac_top_srcdir=$ac_top_builddir$srcdir ;; 928 esac 929 930 # Do not use `cd foo && pwd` to compute absolute paths, because 931 # the directories may not exist. 932 case `pwd` in 933 .) ac_abs_builddir="$ac_dir";; 934 *) 935 case "$ac_dir" in 936 .) ac_abs_builddir=`pwd`;; 937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 938 *) ac_abs_builddir=`pwd`/"$ac_dir";; 939 esac;; 940 esac 941 case $ac_abs_builddir in 942 .) ac_abs_top_builddir=${ac_top_builddir}.;; 943 *) 944 case ${ac_top_builddir}. in 945 .) ac_abs_top_builddir=$ac_abs_builddir;; 946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 948 esac;; 949 esac 950 case $ac_abs_builddir in 951 .) ac_abs_srcdir=$ac_srcdir;; 952 *) 953 case $ac_srcdir in 954 .) ac_abs_srcdir=$ac_abs_builddir;; 955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 957 esac;; 958 esac 959 case $ac_abs_builddir in 960 .) ac_abs_top_srcdir=$ac_top_srcdir;; 961 *) 962 case $ac_top_srcdir in 963 .) ac_abs_top_srcdir=$ac_abs_builddir;; 964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 966 esac;; 967 esac 968 969 cd $ac_dir 970 # Check for guested configure; otherwise get Cygnus style configure. 971 if test -f $ac_srcdir/configure.gnu; then 972 echo 973 $SHELL $ac_srcdir/configure.gnu --help=recursive 974 elif test -f $ac_srcdir/configure; then 975 echo 976 $SHELL $ac_srcdir/configure --help=recursive 977 elif test -f $ac_srcdir/configure.ac || 978 test -f $ac_srcdir/configure.in; then 979 echo 980 $ac_configure --help 981 else 982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 983 fi 984 cd $ac_popdir 985 done 986 fi 987 988 test -n "$ac_init_help" && exit 0 989 if $ac_init_version; then 990 cat <<\_ACEOF 991 992 Copyright (C) 2003 Free Software Foundation, Inc. 993 This configure script is free software; the Free Software Foundation 994 gives unlimited permission to copy, distribute and modify it. 995 _ACEOF 996 exit 0 997 fi 998 exec 5>config.log 999 cat >&5 <<_ACEOF 1000 This file contains any messages produced by compilers while 1001 running configure, to aid debugging if configure makes a mistake. 1002 1003 It was created by $as_me, which was 1004 generated by GNU Autoconf 2.59. Invocation command line was 1005 1006 $ $0 $@ 1007 1008 _ACEOF 1009 { 1010 cat <<_ASUNAME 1011 ## --------- ## 1012 ## Platform. ## 1013 ## --------- ## 1014 1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1016 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1017 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1018 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1019 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1020 1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1023 1024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1027 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1031 1032 _ASUNAME 1033 1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1035 for as_dir in $PATH 1036 do 1037 IFS=$as_save_IFS 1038 test -z "$as_dir" && as_dir=. 1039 echo "PATH: $as_dir" 1040 done 1041 1042 } >&5 1043 1044 cat >&5 <<_ACEOF 1045 1046 1047 ## ----------- ## 1048 ## Core tests. ## 1049 ## ----------- ## 1050 1051 _ACEOF 1052 1053 1054 # Keep a trace of the command line. 1055 # Strip out --no-create and --no-recursion so they do not pile up. 1056 # Strip out --silent because we don't want to record it for future runs. 1057 # Also quote any args containing shell meta-characters. 1058 # Make two passes to allow for proper duplicate-argument suppression. 1059 ac_configure_args= 1060 ac_configure_args0= 1061 ac_configure_args1= 1062 ac_sep= 1063 ac_must_keep_next=false 1064 for ac_pass in 1 2 1065 do 1066 for ac_arg 1067 do 1068 case $ac_arg in 1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1071 | -silent | --silent | --silen | --sile | --sil) 1072 continue ;; 1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1075 esac 1076 case $ac_pass in 1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1078 2) 1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1080 if test $ac_must_keep_next = true; then 1081 ac_must_keep_next=false # Got value, back to normal. 1082 else 1083 case $ac_arg in 1084 *=* | --config-cache | -C | -disable-* | --disable-* \ 1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1087 | -with-* | --with-* | -without-* | --without-* | --x) 1088 case "$ac_configure_args0 " in 1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1090 esac 1091 ;; 1092 -* ) ac_must_keep_next=true ;; 1093 esac 1094 fi 1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1096 # Get rid of the leading space. 1097 ac_sep=" " 1098 ;; 1099 esac 1100 done 1101 done 1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1104 1105 # When interrupted or exit'd, cleanup temporary files, and complete 1106 # config.log. We remove comments because anyway the quotes in there 1107 # would cause problems or look ugly. 1108 # WARNING: Be sure not to use single quotes in there, as some shells, 1109 # such as our DU 5.0 friend, will then `close' the trap. 1110 trap 'exit_status=$? 1111 # Save into config.log some information that might help in debugging. 1112 { 1113 echo 1114 1115 cat <<\_ASBOX 1116 ## ---------------- ## 1117 ## Cache variables. ## 1118 ## ---------------- ## 1119 _ASBOX 1120 echo 1121 # The following way of writing the cache mishandles newlines in values, 1122 { 1123 (set) 2>&1 | 1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1125 *ac_space=\ *) 1126 sed -n \ 1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1129 ;; 1130 *) 1131 sed -n \ 1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1133 ;; 1134 esac; 1135 } 1136 echo 1137 1138 cat <<\_ASBOX 1139 ## ----------------- ## 1140 ## Output variables. ## 1141 ## ----------------- ## 1142 _ASBOX 1143 echo 1144 for ac_var in $ac_subst_vars 1145 do 1146 eval ac_val=$`echo $ac_var` 1147 echo "$ac_var='"'"'$ac_val'"'"'" 1148 done | sort 1149 echo 1150 1151 if test -n "$ac_subst_files"; then 1152 cat <<\_ASBOX 1153 ## ------------- ## 1154 ## Output files. ## 1155 ## ------------- ## 1156 _ASBOX 1157 echo 1158 for ac_var in $ac_subst_files 1159 do 1160 eval ac_val=$`echo $ac_var` 1161 echo "$ac_var='"'"'$ac_val'"'"'" 1162 done | sort 1163 echo 1164 fi 1165 1166 if test -s confdefs.h; then 1167 cat <<\_ASBOX 1168 ## ----------- ## 1169 ## confdefs.h. ## 1170 ## ----------- ## 1171 _ASBOX 1172 echo 1173 sed "/^$/d" confdefs.h | sort 1174 echo 1175 fi 1176 test "$ac_signal" != 0 && 1177 echo "$as_me: caught signal $ac_signal" 1178 echo "$as_me: exit $exit_status" 1179 } >&5 1180 rm -f core *.core && 1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1182 exit $exit_status 1183 ' 0 1184 for ac_signal in 1 2 13 15; do 1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1186 done 1187 ac_signal=0 1188 1189 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1190 rm -rf conftest* confdefs.h 1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1192 echo >confdefs.h 1193 1194 # Predefined preprocessor variables. 1195 1196 cat >>confdefs.h <<_ACEOF 1197 #define PACKAGE_NAME "$PACKAGE_NAME" 1198 _ACEOF 1199 1200 1201 cat >>confdefs.h <<_ACEOF 1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1203 _ACEOF 1204 1205 1206 cat >>confdefs.h <<_ACEOF 1207 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1208 _ACEOF 1209 1210 1211 cat >>confdefs.h <<_ACEOF 1212 #define PACKAGE_STRING "$PACKAGE_STRING" 1213 _ACEOF 1214 1215 1216 cat >>confdefs.h <<_ACEOF 1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1218 _ACEOF 1219 1220 1221 # Let the site file select an alternate cache file if it wants to. 521 1222 # Prefer explicitly selected file to automatically selected ones. 522 1223 if test -z "$CONFIG_SITE"; then … … 529 1230 for ac_site_file in $CONFIG_SITE; do 530 1231 if test -r "$ac_site_file"; then 531 echo "loading site script $ac_site_file" 1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1233 echo "$as_me: loading site script $ac_site_file" >&6;} 1234 sed 's/^/| /' "$ac_site_file" >&5 532 1235 . "$ac_site_file" 533 1236 fi … … 535 1238 536 1239 if test -r "$cache_file"; then 537 echo "loading cache $cache_file" 538 . $cache_file 539 else 540 echo "creating cache $cache_file" 541 > $cache_file 1240 # Some versions of bash will fail to source /dev/null (special 1241 # files actually), so we avoid doing that. 1242 if test -f "$cache_file"; then 1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1244 echo "$as_me: loading cache $cache_file" >&6;} 1245 case $cache_file in 1246 [\\/]* | ?:[\\/]* ) . $cache_file;; 1247 *) . ./$cache_file;; 1248 esac 1249 fi 1250 else 1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1252 echo "$as_me: creating cache $cache_file" >&6;} 1253 >$cache_file 1254 fi 1255 1256 # Check that the precious variables saved in the cache have kept the same 1257 # value. 1258 ac_cache_corrupted=false 1259 for ac_var in `(set) 2>&1 | 1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1262 eval ac_new_set=\$ac_env_${ac_var}_set 1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1264 eval ac_new_val="\$ac_env_${ac_var}_value" 1265 case $ac_old_set,$ac_new_set in 1266 set,) 1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1269 ac_cache_corrupted=: ;; 1270 ,set) 1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1273 ac_cache_corrupted=: ;; 1274 ,);; 1275 *) 1276 if test "x$ac_old_val" != "x$ac_new_val"; then 1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1280 echo "$as_me: former value: $ac_old_val" >&2;} 1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1282 echo "$as_me: current value: $ac_new_val" >&2;} 1283 ac_cache_corrupted=: 1284 fi;; 1285 esac 1286 # Pass precious variables to config.status. 1287 if test "$ac_new_set" = set; then 1288 case $ac_new_val in 1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1291 *) ac_arg=$ac_var=$ac_new_val ;; 1292 esac 1293 case " $ac_configure_args " in 1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1296 esac 1297 fi 1298 done 1299 if $ac_cache_corrupted; then 1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1304 { (exit 1); exit 1; }; } 542 1305 fi 543 1306 544 1307 ac_ext=c 545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.546 1308 ac_cpp='$CPP $CPPFLAGS' 547 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 548 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 549 cross_compiling=$ac_cv_prog_cc_cross 550 551 ac_exeext= 552 ac_objext=o 553 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 554 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 555 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 556 ac_n= ac_c=' 557 ' ac_t=' ' 558 else 559 ac_n=-n ac_c= ac_t= 560 fi 561 else 562 ac_n= ac_c='\c' ac_t= 563 fi 1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 564 1329 565 1330 … … 624 1389 ac_install_sh="$ac_aux_dir/install.sh -c" 625 1390 break 1391 elif test -f $ac_dir/shtool; then 1392 ac_aux_dir=$ac_dir 1393 ac_install_sh="$ac_aux_dir/shtool install -c" 1394 break 626 1395 fi 627 1396 done 628 1397 if test -z "$ac_aux_dir"; then 629 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 630 fi 631 ac_config_guess=$ac_aux_dir/config.guess 632 ac_config_sub=$ac_aux_dir/config.sub 633 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 634 635 636 # Do some error checking and defaulting for the host and target type. 637 # The inputs are: 638 # configure --host=HOST --target=TARGET --build=BUILD NONOPT 639 # 640 # The rules are: 641 # 1. You are not allowed to specify --host, --target, and nonopt at the 642 # same time. 643 # 2. Host defaults to nonopt. 644 # 3. If nonopt is not specified, then host defaults to the current host, 645 # as determined by config.guess. 646 # 4. Target and build default to nonopt. 647 # 5. If nonopt is not specified, then target and build default to host. 1398 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1399 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1400 { (exit 1); exit 1; }; } 1401 fi 1402 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1403 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1404 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1405 1406 # Make sure we can run config.sub. 1407 $ac_config_sub sun4 >/dev/null 2>&1 || 1408 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1409 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1410 { (exit 1); exit 1; }; } 1411 1412 echo "$as_me:$LINENO: checking build system type" >&5 1413 echo $ECHO_N "checking build system type... $ECHO_C" >&6 1414 if test "${ac_cv_build+set}" = set; then 1415 echo $ECHO_N "(cached) $ECHO_C" >&6 1416 else 1417 ac_cv_build_alias=$build_alias 1418 test -z "$ac_cv_build_alias" && 1419 ac_cv_build_alias=`$ac_config_guess` 1420 test -z "$ac_cv_build_alias" && 1421 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1422 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1423 { (exit 1); exit 1; }; } 1424 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1425 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1426 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1427 { (exit 1); exit 1; }; } 1428 1429 fi 1430 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1431 echo "${ECHO_T}$ac_cv_build" >&6 1432 build=$ac_cv_build 1433 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1434 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1435 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1436 1437 1438 echo "$as_me:$LINENO: checking host system type" >&5 1439 echo $ECHO_N "checking host system type... $ECHO_C" >&6 1440 if test "${ac_cv_host+set}" = set; then 1441 echo $ECHO_N "(cached) $ECHO_C" >&6 1442 else 1443 ac_cv_host_alias=$host_alias 1444 test -z "$ac_cv_host_alias" && 1445 ac_cv_host_alias=$ac_cv_build_alias 1446 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1447 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1448 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1449 { (exit 1); exit 1; }; } 1450 1451 fi 1452 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1453 echo "${ECHO_T}$ac_cv_host" >&6 1454 host=$ac_cv_host 1455 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1456 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1457 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1458 1459 1460 echo "$as_me:$LINENO: checking target system type" >&5 1461 echo $ECHO_N "checking target system type... $ECHO_C" >&6 1462 if test "${ac_cv_target+set}" = set; then 1463 echo $ECHO_N "(cached) $ECHO_C" >&6 1464 else 1465 ac_cv_target_alias=$target_alias 1466 test "x$ac_cv_target_alias" = "x" && 1467 ac_cv_target_alias=$ac_cv_host_alias 1468 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1470 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1471 { (exit 1); exit 1; }; } 1472 1473 fi 1474 echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1475 echo "${ECHO_T}$ac_cv_target" >&6 1476 target=$ac_cv_target 1477 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1478 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1479 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1480 648 1481 649 1482 # The aliases save the names the user supplied, while $host etc. 650 1483 # will get canonicalized. 651 case $host---$target---$nonopt in 652 NONE---*---* | *---NONE---* | *---*---NONE) ;; 653 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 654 esac 655 656 657 # Make sure we can run config.sub. 658 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 659 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 660 fi 661 662 echo $ac_n "checking host system type""... $ac_c" 1>&6 663 echo "configure:664: checking host system type" >&5 664 665 host_alias=$host 666 case "$host_alias" in 667 NONE) 668 case $nonopt in 669 NONE) 670 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 671 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 672 fi ;; 673 *) host_alias=$nonopt ;; 674 esac ;; 675 esac 676 677 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 678 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 679 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 680 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 681 echo "$ac_t""$host" 1>&6 682 683 echo $ac_n "checking target system type""... $ac_c" 1>&6 684 echo "configure:685: checking target system type" >&5 685 686 target_alias=$target 687 case "$target_alias" in 688 NONE) 689 case $nonopt in 690 NONE) target_alias=$host_alias ;; 691 *) target_alias=$nonopt ;; 692 esac ;; 693 esac 694 695 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 696 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 697 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 698 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 699 echo "$ac_t""$target" 1>&6 700 701 echo $ac_n "checking build system type""... $ac_c" 1>&6 702 echo "configure:703: checking build system type" >&5 703 704 build_alias=$build 705 case "$build_alias" in 706 NONE) 707 case $nonopt in 708 NONE) build_alias=$host_alias ;; 709 *) build_alias=$nonopt ;; 710 esac ;; 711 esac 712 713 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 714 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 715 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 716 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 717 echo "$ac_t""$build" 1>&6 718 719 test "$host_alias" != "$target_alias" && 1484 test -n "$target_alias" && 720 1485 test "$program_prefix$program_suffix$program_transform_name" = \ 721 1486 NONENONEs,x,x, && 722 1487 program_prefix=${target_alias}- 723 1488 724 725 # Extract the first word of "gcc", so it can be a program name with args. 726 set dummy gcc; ac_word=$2 727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 728 echo "configure:729: checking for $ac_word" >&5 729 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 730 echo $ac_n "(cached) $ac_c" 1>&6 1489 ac_ext=c 1490 ac_cpp='$CPP $CPPFLAGS' 1491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1493 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1494 if test -n "$ac_tool_prefix"; then 1495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1496 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1497 echo "$as_me:$LINENO: checking for $ac_word" >&5 1498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1499 if test "${ac_cv_prog_CC+set}" = set; then 1500 echo $ECHO_N "(cached) $ECHO_C" >&6 731 1501 else 732 1502 if test -n "$CC"; then 733 1503 ac_cv_prog_CC="$CC" # Let the user override the test. 734 1504 else 735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 736 ac_dummy="$PATH" 737 for ac_dir in $ac_dummy; do 738 test -z "$ac_dir" && ac_dir=. 739 if test -f $ac_dir/$ac_word; then 740 ac_cv_prog_CC="gcc" 741 break 742 fi 743 done 744 IFS="$ac_save_ifs" 745 fi 746 fi 747 CC="$ac_cv_prog_CC" 1505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1506 for as_dir in $PATH 1507 do 1508 IFS=$as_save_IFS 1509 test -z "$as_dir" && as_dir=. 1510 for ac_exec_ext in '' $ac_executable_extensions; do 1511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1512 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1514 break 2 1515 fi 1516 done 1517 done 1518 1519 fi 1520 fi 1521 CC=$ac_cv_prog_CC 748 1522 if test -n "$CC"; then 749 echo "$ac_t""$CC" 1>&6 750 else 751 echo "$ac_t""no" 1>&6 752 fi 753 1523 echo "$as_me:$LINENO: result: $CC" >&5 1524 echo "${ECHO_T}$CC" >&6 1525 else 1526 echo "$as_me:$LINENO: result: no" >&5 1527 echo "${ECHO_T}no" >&6 1528 fi 1529 1530 fi 1531 if test -z "$ac_cv_prog_CC"; then 1532 ac_ct_CC=$CC 1533 # Extract the first word of "gcc", so it can be a program name with args. 1534 set dummy gcc; ac_word=$2 1535 echo "$as_me:$LINENO: checking for $ac_word" >&5 1536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1538 echo $ECHO_N "(cached) $ECHO_C" >&6 1539 else 1540 if test -n "$ac_ct_CC"; then 1541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1542 else 1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1544 for as_dir in $PATH 1545 do 1546 IFS=$as_save_IFS 1547 test -z "$as_dir" && as_dir=. 1548 for ac_exec_ext in '' $ac_executable_extensions; do 1549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1550 ac_cv_prog_ac_ct_CC="gcc" 1551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1552 break 2 1553 fi 1554 done 1555 done 1556 1557 fi 1558 fi 1559 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1560 if test -n "$ac_ct_CC"; then 1561 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1562 echo "${ECHO_T}$ac_ct_CC" >&6 1563 else 1564 echo "$as_me:$LINENO: result: no" >&5 1565 echo "${ECHO_T}no" >&6 1566 fi 1567 1568 CC=$ac_ct_CC 1569 else 1570 CC="$ac_cv_prog_CC" 1571 fi 1572 1573 if test -z "$CC"; then 1574 if test -n "$ac_tool_prefix"; then 1575 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1576 set dummy ${ac_tool_prefix}cc; ac_word=$2 1577 echo "$as_me:$LINENO: checking for $ac_word" >&5 1578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1579 if test "${ac_cv_prog_CC+set}" = set; then 1580 echo $ECHO_N "(cached) $ECHO_C" >&6 1581 else 1582 if test -n "$CC"; then 1583 ac_cv_prog_CC="$CC" # Let the user override the test. 1584 else 1585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1586 for as_dir in $PATH 1587 do 1588 IFS=$as_save_IFS 1589 test -z "$as_dir" && as_dir=. 1590 for ac_exec_ext in '' $ac_executable_extensions; do 1591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1592 ac_cv_prog_CC="${ac_tool_prefix}cc" 1593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1594 break 2 1595 fi 1596 done 1597 done 1598 1599 fi 1600 fi 1601 CC=$ac_cv_prog_CC 1602 if test -n "$CC"; then 1603 echo "$as_me:$LINENO: result: $CC" >&5 1604 echo "${ECHO_T}$CC" >&6 1605 else 1606 echo "$as_me:$LINENO: result: no" >&5 1607 echo "${ECHO_T}no" >&6 1608 fi 1609 1610 fi 1611 if test -z "$ac_cv_prog_CC"; then 1612 ac_ct_CC=$CC 1613 # Extract the first word of "cc", so it can be a program name with args. 1614 set dummy cc; ac_word=$2 1615 echo "$as_me:$LINENO: checking for $ac_word" >&5 1616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1617 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1618 echo $ECHO_N "(cached) $ECHO_C" >&6 1619 else 1620 if test -n "$ac_ct_CC"; then 1621 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1622 else 1623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1624 for as_dir in $PATH 1625 do 1626 IFS=$as_save_IFS 1627 test -z "$as_dir" && as_dir=. 1628 for ac_exec_ext in '' $ac_executable_extensions; do 1629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1630 ac_cv_prog_ac_ct_CC="cc" 1631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1632 break 2 1633 fi 1634 done 1635 done 1636 1637 fi 1638 fi 1639 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1640 if test -n "$ac_ct_CC"; then 1641 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1642 echo "${ECHO_T}$ac_ct_CC" >&6 1643 else 1644 echo "$as_me:$LINENO: result: no" >&5 1645 echo "${ECHO_T}no" >&6 1646 fi 1647 1648 CC=$ac_ct_CC 1649 else 1650 CC="$ac_cv_prog_CC" 1651 fi 1652 1653 fi 754 1654 if test -z "$CC"; then 755 1655 # Extract the first word of "cc", so it can be a program name with args. 756 1656 set dummy cc; ac_word=$2 757 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6758 echo "configure:759: checking for $ac_word" >&5759 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then760 echo $ ac_n "(cached) $ac_c" 1>&61657 echo "$as_me:$LINENO: checking for $ac_word" >&5 1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1659 if test "${ac_cv_prog_CC+set}" = set; then 1660 echo $ECHO_N "(cached) $ECHO_C" >&6 761 1661 else 762 1662 if test -n "$CC"; then 763 1663 ac_cv_prog_CC="$CC" # Let the user override the test. 764 1664 else 765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"766 1665 ac_prog_rejected=no 767 ac_dummy="$PATH" 768 for ac_dir in $ac_dummy; do 769 test -z "$ac_dir" && ac_dir=. 770 if test -f $ac_dir/$ac_word; then 771 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 772 ac_prog_rejected=yes 773 continue 774 fi 775 ac_cv_prog_CC="cc" 776 break 777 fi 778 done 779 IFS="$ac_save_ifs" 1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1667 for as_dir in $PATH 1668 do 1669 IFS=$as_save_IFS 1670 test -z "$as_dir" && as_dir=. 1671 for ac_exec_ext in '' $ac_executable_extensions; do 1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1673 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1674 ac_prog_rejected=yes 1675 continue 1676 fi 1677 ac_cv_prog_CC="cc" 1678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1679 break 2 1680 fi 1681 done 1682 done 1683 780 1684 if test $ac_prog_rejected = yes; then 781 1685 # We found a bogon in the path, so make sure we never use it. 782 1686 set dummy $ac_cv_prog_CC 783 1687 shift 784 if test $# -gt0; then1688 if test $# != 0; then 785 1689 # We chose a different compiler from the bogus one. 786 1690 # However, it has the same basename, so the bogon will be chosen 787 1691 # first if we set CC to just the basename; use the full file name. 788 1692 shift 789 set dummy "$ac_dir/$ac_word" "$@" 790 shift 791 ac_cv_prog_CC="$@" 1693 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 792 1694 fi 793 1695 fi 794 1696 fi 795 1697 fi 796 CC= "$ac_cv_prog_CC"1698 CC=$ac_cv_prog_CC 797 1699 if test -n "$CC"; then 798 echo "$ac_t""$CC" 1>&6 799 else 800 echo "$ac_t""no" 1>&6 801 fi 802 803 if test -z "$CC"; then 804 case "`uname -s`" in 805 *win32* | *WIN32*) 806 # Extract the first word of "cl", so it can be a program name with args. 807 set dummy cl; ac_word=$2 808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 809 echo "configure:810: checking for $ac_word" >&5 810 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 811 echo $ac_n "(cached) $ac_c" 1>&6 1700 echo "$as_me:$LINENO: result: $CC" >&5 1701 echo "${ECHO_T}$CC" >&6 1702 else 1703 echo "$as_me:$LINENO: result: no" >&5 1704 echo "${ECHO_T}no" >&6 1705 fi 1706 1707 fi 1708 if test -z "$CC"; then 1709 if test -n "$ac_tool_prefix"; then 1710 for ac_prog in cl 1711 do 1712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1714 echo "$as_me:$LINENO: checking for $ac_word" >&5 1715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1716 if test "${ac_cv_prog_CC+set}" = set; then 1717 echo $ECHO_N "(cached) $ECHO_C" >&6 812 1718 else 813 1719 if test -n "$CC"; then 814 1720 ac_cv_prog_CC="$CC" # Let the user override the test. 815 1721 else 816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 817 ac_dummy="$PATH" 818 for ac_dir in $ac_dummy; do 819 test -z "$ac_dir" && ac_dir=. 820 if test -f $ac_dir/$ac_word; then 821 ac_cv_prog_CC="cl" 822 break 1722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1723 for as_dir in $PATH 1724 do 1725 IFS=$as_save_IFS 1726 test -z "$as_dir" && as_dir=. 1727 for ac_exec_ext in '' $ac_executable_extensions; do 1728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1729 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1731 break 2 1732 fi 1733 done 1734 done 1735 1736 fi 1737 fi 1738 CC=$ac_cv_prog_CC 1739 if test -n "$CC"; then 1740 echo "$as_me:$LINENO: result: $CC" >&5 1741 echo "${ECHO_T}$CC" >&6 1742 else 1743 echo "$as_me:$LINENO: result: no" >&5 1744 echo "${ECHO_T}no" >&6 1745 fi 1746 1747 test -n "$CC" && break 1748 done 1749 fi 1750 if test -z "$CC"; then 1751 ac_ct_CC=$CC 1752 for ac_prog in cl 1753 do 1754 # Extract the first word of "$ac_prog", so it can be a program name with args. 1755 set dummy $ac_prog; ac_word=$2 1756 echo "$as_me:$LINENO: checking for $ac_word" >&5 1757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1759 echo $ECHO_N "(cached) $ECHO_C" >&6 1760 else 1761 if test -n "$ac_ct_CC"; then 1762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1763 else 1764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1765 for as_dir in $PATH 1766 do 1767 IFS=$as_save_IFS 1768 test -z "$as_dir" && as_dir=. 1769 for ac_exec_ext in '' $ac_executable_extensions; do 1770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1771 ac_cv_prog_ac_ct_CC="$ac_prog" 1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1773 break 2 1774 fi 1775 done 1776 done 1777 1778 fi 1779 fi 1780 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1781 if test -n "$ac_ct_CC"; then 1782 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1783 echo "${ECHO_T}$ac_ct_CC" >&6 1784 else 1785 echo "$as_me:$LINENO: result: no" >&5 1786 echo "${ECHO_T}no" >&6 1787 fi 1788 1789 test -n "$ac_ct_CC" && break 1790 done 1791 1792 CC=$ac_ct_CC 1793 fi 1794 1795 fi 1796 1797 1798 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1799 See \`config.log' for more details." >&5 1800 echo "$as_me: error: no acceptable C compiler found in \$PATH 1801 See \`config.log' for more details." >&2;} 1802 { (exit 1); exit 1; }; } 1803 1804 # Provide some information about the compiler. 1805 echo "$as_me:$LINENO:" \ 1806 "checking for C compiler version" >&5 1807 ac_compiler=`set X $ac_compile; echo $2` 1808 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1809 (eval $ac_compiler --version </dev/null >&5) 2>&5 1810 ac_status=$? 1811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1812 (exit $ac_status); } 1813 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1814 (eval $ac_compiler -v </dev/null >&5) 2>&5 1815 ac_status=$? 1816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1817 (exit $ac_status); } 1818 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1819 (eval $ac_compiler -V </dev/null >&5) 2>&5 1820 ac_status=$? 1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1822 (exit $ac_status); } 1823 1824 cat >conftest.$ac_ext <<_ACEOF 1825 /* confdefs.h. */ 1826 _ACEOF 1827 cat confdefs.h >>conftest.$ac_ext 1828 cat >>conftest.$ac_ext <<_ACEOF 1829 /* end confdefs.h. */ 1830 1831 int 1832 main () 1833 { 1834 1835 ; 1836 return 0; 1837 } 1838 _ACEOF 1839 ac_clean_files_save=$ac_clean_files 1840 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1841 # Try to create an executable without -o first, disregard a.out. 1842 # It will help us diagnose broken compilers, and finding out an intuition 1843 # of exeext. 1844 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1845 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1846 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1847 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1848 (eval $ac_link_default) 2>&5 1849 ac_status=$? 1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1851 (exit $ac_status); }; then 1852 # Find the output, starting from the most likely. This scheme is 1853 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1854 # resort. 1855 1856 # Be careful to initialize this variable, since it used to be cached. 1857 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1858 ac_cv_exeext= 1859 # b.out is created by i960 compilers. 1860 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1861 do 1862 test -f "$ac_file" || continue 1863 case $ac_file in 1864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1865 ;; 1866 conftest.$ac_ext ) 1867 # This is the source file. 1868 ;; 1869 [ab].out ) 1870 # We found the default executable, but exeext='' is most 1871 # certainly right. 1872 break;; 1873 *.* ) 1874 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1875 # FIXME: I believe we export ac_cv_exeext for Libtool, 1876 # but it would be cool to find out if it's true. Does anybody 1877 # maintain Libtool? --akim. 1878 export ac_cv_exeext 1879 break;; 1880 * ) 1881 break;; 1882 esac 1883 done 1884 else 1885 echo "$as_me: failed program was:" >&5 1886 sed 's/^/| /' conftest.$ac_ext >&5 1887 1888 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 1889 See \`config.log' for more details." >&5 1890 echo "$as_me: error: C compiler cannot create executables 1891 See \`config.log' for more details." >&2;} 1892 { (exit 77); exit 77; }; } 1893 fi 1894 1895 ac_exeext=$ac_cv_exeext 1896 echo "$as_me:$LINENO: result: $ac_file" >&5 1897 echo "${ECHO_T}$ac_file" >&6 1898 1899 # Check the compiler produces executables we can run. If not, either 1900 # the compiler is broken, or we cross compile. 1901 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1902 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1903 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1904 # If not cross compiling, check that we can run a simple program. 1905 if test "$cross_compiling" != yes; then 1906 if { ac_try='./$ac_file' 1907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1908 (eval $ac_try) 2>&5 1909 ac_status=$? 1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1911 (exit $ac_status); }; }; then 1912 cross_compiling=no 1913 else 1914 if test "$cross_compiling" = maybe; then 1915 cross_compiling=yes 1916 else 1917 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1918 If you meant to cross compile, use \`--host'. 1919 See \`config.log' for more details." >&5 1920 echo "$as_me: error: cannot run C compiled programs. 1921 If you meant to cross compile, use \`--host'. 1922 See \`config.log' for more details." >&2;} 1923 { (exit 1); exit 1; }; } 823 1924 fi 824 done825 IFS="$ac_save_ifs"826 fi827 fi828 CC="$ac_cv_prog_CC"829 if test -n "$CC"; then830 echo "$ac_t""$CC" 1>&6831 else832 echo "$ac_t""no" 1>&6833 fi834 ;;835 esac836 1925 fi 837 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 838 fi 839 840 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 841 echo "configure:842: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 842 843 ac_ext=c 844 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 845 ac_cpp='$CPP $CPPFLAGS' 846 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 847 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 848 cross_compiling=$ac_cv_prog_cc_cross 849 850 cat > conftest.$ac_ext << EOF 851 852 #line 853 "configure" 853 #include "confdefs.h" 854 855 main(){return(0);} 856 EOF 857 if { (eval echo configure:858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 858 ac_cv_prog_cc_works=yes 859 # If we can't run a trivial program, we are probably using a cross compiler. 860 if (./conftest; exit) 2>/dev/null; then 861 ac_cv_prog_cc_cross=no 862 else 863 ac_cv_prog_cc_cross=yes 864 fi 865 else 866 echo "configure: failed program was:" >&5 867 cat conftest.$ac_ext >&5 868 ac_cv_prog_cc_works=no 869 fi 870 rm -fr conftest* 871 ac_ext=c 872 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 873 ac_cpp='$CPP $CPPFLAGS' 874 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 875 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 876 cross_compiling=$ac_cv_prog_cc_cross 877 878 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 879 if test $ac_cv_prog_cc_works = no; then 880 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 881 fi 882 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 883 echo "configure:884: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 884 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 885 cross_compiling=$ac_cv_prog_cc_cross 886 887 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 888 echo "configure:889: checking whether we are using GNU C" >&5 889 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 890 echo $ac_n "(cached) $ac_c" 1>&6 891 else 892 cat > conftest.c <<EOF 893 #ifdef __GNUC__ 894 yes; 1926 fi 1927 echo "$as_me:$LINENO: result: yes" >&5 1928 echo "${ECHO_T}yes" >&6 1929 1930 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1931 ac_clean_files=$ac_clean_files_save 1932 # Check the compiler produces executables we can run. If not, either 1933 # the compiler is broken, or we cross compile. 1934 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1935 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1936 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1937 echo "${ECHO_T}$cross_compiling" >&6 1938 1939 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1940 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1942 (eval $ac_link) 2>&5 1943 ac_status=$? 1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1945 (exit $ac_status); }; then 1946 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1947 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1948 # work properly (i.e., refer to `conftest.exe'), while it won't with 1949 # `rm'. 1950 for ac_file in conftest.exe conftest conftest.*; do 1951 test -f "$ac_file" || continue 1952 case $ac_file in 1953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1954 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1955 export ac_cv_exeext 1956 break;; 1957 * ) break;; 1958 esac 1959 done 1960 else 1961 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1962 See \`config.log' for more details." >&5 1963 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1964 See \`config.log' for more details." >&2;} 1965 { (exit 1); exit 1; }; } 1966 fi 1967 1968 rm -f conftest$ac_cv_exeext 1969 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1970 echo "${ECHO_T}$ac_cv_exeext" >&6 1971 1972 rm -f conftest.$ac_ext 1973 EXEEXT=$ac_cv_exeext 1974 ac_exeext=$EXEEXT 1975 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1976 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1977 if test "${ac_cv_objext+set}" = set; then 1978 echo $ECHO_N "(cached) $ECHO_C" >&6 1979 else 1980 cat >conftest.$ac_ext <<_ACEOF 1981 /* confdefs.h. */ 1982 _ACEOF 1983 cat confdefs.h >>conftest.$ac_ext 1984 cat >>conftest.$ac_ext <<_ACEOF 1985 /* end confdefs.h. */ 1986 1987 int 1988 main () 1989 { 1990 1991 ; 1992 return 0; 1993 } 1994 _ACEOF 1995 rm -f conftest.o conftest.obj 1996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1997 (eval $ac_compile) 2>&5 1998 ac_status=$? 1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2000 (exit $ac_status); }; then 2001 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2002 case $ac_file in 2003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2004 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2005 break;; 2006 esac 2007 done 2008 else 2009 echo "$as_me: failed program was:" >&5 2010 sed 's/^/| /' conftest.$ac_ext >&5 2011 2012 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2013 See \`config.log' for more details." >&5 2014 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2015 See \`config.log' for more details." >&2;} 2016 { (exit 1); exit 1; }; } 2017 fi 2018 2019 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2020 fi 2021 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2022 echo "${ECHO_T}$ac_cv_objext" >&6 2023 OBJEXT=$ac_cv_objext 2024 ac_objext=$OBJEXT 2025 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2026 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2027 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2028 echo $ECHO_N "(cached) $ECHO_C" >&6 2029 else 2030 cat >conftest.$ac_ext <<_ACEOF 2031 /* confdefs.h. */ 2032 _ACEOF 2033 cat confdefs.h >>conftest.$ac_ext 2034 cat >>conftest.$ac_ext <<_ACEOF 2035 /* end confdefs.h. */ 2036 2037 int 2038 main () 2039 { 2040 #ifndef __GNUC__ 2041 choke me 895 2042 #endif 896 EOF 897 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 898 ac_cv_prog_gcc=yes 899 else 900 ac_cv_prog_gcc=no 901 fi 902 fi 903 904 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 905 906 if test $ac_cv_prog_gcc = yes; then 907 GCC=yes 908 else 909 GCC= 910 fi 911 912 ac_test_CFLAGS="${CFLAGS+set}" 913 ac_save_CFLAGS="$CFLAGS" 914 CFLAGS= 915 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 916 echo "configure:917: checking whether ${CC-cc} accepts -g" >&5 917 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 918 echo $ac_n "(cached) $ac_c" 1>&6 919 else 920 echo 'void f(){}' > conftest.c 921 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2043 2044 ; 2045 return 0; 2046 } 2047 _ACEOF 2048 rm -f conftest.$ac_objext 2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2050 (eval $ac_compile) 2>conftest.er1 2051 ac_status=$? 2052 grep -v '^ *+' conftest.er1 >conftest.err 2053 rm -f conftest.er1 2054 cat conftest.err >&5 2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2056 (exit $ac_status); } && 2057 { ac_try='test -z "$ac_c_werror_flag" 2058 || test ! -s conftest.err' 2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2060 (eval $ac_try) 2>&5 2061 ac_status=$? 2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2063 (exit $ac_status); }; } && 2064 { ac_try='test -s conftest.$ac_objext' 2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2066 (eval $ac_try) 2>&5 2067 ac_status=$? 2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2069 (exit $ac_status); }; }; then 2070 ac_compiler_gnu=yes 2071 else 2072 echo "$as_me: failed program was:" >&5 2073 sed 's/^/| /' conftest.$ac_ext >&5 2074 2075 ac_compiler_gnu=no 2076 fi 2077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2078 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2079 2080 fi 2081 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2082 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2083 GCC=`test $ac_compiler_gnu = yes && echo yes` 2084 ac_test_CFLAGS=${CFLAGS+set} 2085 ac_save_CFLAGS=$CFLAGS 2086 CFLAGS="-g" 2087 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2088 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2089 if test "${ac_cv_prog_cc_g+set}" = set; then 2090 echo $ECHO_N "(cached) $ECHO_C" >&6 2091 else 2092 cat >conftest.$ac_ext <<_ACEOF 2093 /* confdefs.h. */ 2094 _ACEOF 2095 cat confdefs.h >>conftest.$ac_ext 2096 cat >>conftest.$ac_ext <<_ACEOF 2097 /* end confdefs.h. */ 2098 2099 int 2100 main () 2101 { 2102 2103 ; 2104 return 0; 2105 } 2106 _ACEOF 2107 rm -f conftest.$ac_objext 2108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2109 (eval $ac_compile) 2>conftest.er1 2110 ac_status=$? 2111 grep -v '^ *+' conftest.er1 >conftest.err 2112 rm -f conftest.er1 2113 cat conftest.err >&5 2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2115 (exit $ac_status); } && 2116 { ac_try='test -z "$ac_c_werror_flag" 2117 || test ! -s conftest.err' 2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2119 (eval $ac_try) 2>&5 2120 ac_status=$? 2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2122 (exit $ac_status); }; } && 2123 { ac_try='test -s conftest.$ac_objext' 2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2125 (eval $ac_try) 2>&5 2126 ac_status=$? 2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2128 (exit $ac_status); }; }; then 922 2129 ac_cv_prog_cc_g=yes 923 2130 else 924 ac_cv_prog_cc_g=no 925 fi 926 rm -f conftest* 927 928 fi 929 930 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 2131 echo "$as_me: failed program was:" >&5 2132 sed 's/^/| /' conftest.$ac_ext >&5 2133 2134 ac_cv_prog_cc_g=no 2135 fi 2136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2137 fi 2138 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2139 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 931 2140 if test "$ac_test_CFLAGS" = set; then 932 CFLAGS= "$ac_save_CFLAGS"2141 CFLAGS=$ac_save_CFLAGS 933 2142 elif test $ac_cv_prog_cc_g = yes; then 934 2143 if test "$GCC" = yes; then … … 944 2153 fi 945 2154 fi 946 947 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 2155 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2156 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2157 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2158 echo $ECHO_N "(cached) $ECHO_C" >&6 2159 else 2160 ac_cv_prog_cc_stdc=no 2161 ac_save_CC=$CC 2162 cat >conftest.$ac_ext <<_ACEOF 2163 /* confdefs.h. */ 2164 _ACEOF 2165 cat confdefs.h >>conftest.$ac_ext 2166 cat >>conftest.$ac_ext <<_ACEOF 2167 /* end confdefs.h. */ 2168 #include <stdarg.h> 2169 #include <stdio.h> 2170 #include <sys/types.h> 2171 #include <sys/stat.h> 2172 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2173 struct buf { int x; }; 2174 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2175 static char *e (p, i) 2176 char **p; 2177 int i; 2178 { 2179 return p[i]; 2180 } 2181 static char *f (char * (*g) (char **, int), char **p, ...) 2182 { 2183 char *s; 2184 va_list v; 2185 va_start (v,p); 2186 s = g (p, va_arg (v,int)); 2187 va_end (v); 2188 return s; 2189 } 2190 2191 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2192 function prototypes and stuff, but not '\xHH' hex character constants. 2193 These don't provoke an error unfortunately, instead are silently treated 2194 as 'x'. The following induces an error, until -std1 is added to get 2195 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2196 array size at least. It's necessary to write '\x00'==0 to get something 2197 that's true only with -std1. */ 2198 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2199 2200 int test (int i, double x); 2201 struct s1 {int (*f) (int a);}; 2202 struct s2 {int (*f) (double a);}; 2203 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2204 int argc; 2205 char **argv; 2206 int 2207 main () 2208 { 2209 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2210 ; 2211 return 0; 2212 } 2213 _ACEOF 2214 # Don't try gcc -ansi; that turns off useful extensions and 2215 # breaks some systems' header files. 2216 # AIX -qlanglvl=ansi 2217 # Ultrix and OSF/1 -std1 2218 # HP-UX 10.20 and later -Ae 2219 # HP-UX older versions -Aa -D_HPUX_SOURCE 2220 # SVR4 -Xc -D__EXTENSIONS__ 2221 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 948 2222 do 949 # Extract the first word of "$ac_prog", so it can be a program name with args. 950 set dummy $ac_prog; ac_word=$2 951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 952 echo "configure:953: checking for $ac_word" >&5 953 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 954 echo $ac_n "(cached) $ac_c" 1>&6 2223 CC="$ac_save_CC $ac_arg" 2224 rm -f conftest.$ac_objext 2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2226 (eval $ac_compile) 2>conftest.er1 2227 ac_status=$? 2228 grep -v '^ *+' conftest.er1 >conftest.err 2229 rm -f conftest.er1 2230 cat conftest.err >&5 2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2232 (exit $ac_status); } && 2233 { ac_try='test -z "$ac_c_werror_flag" 2234 || test ! -s conftest.err' 2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2236 (eval $ac_try) 2>&5 2237 ac_status=$? 2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2239 (exit $ac_status); }; } && 2240 { ac_try='test -s conftest.$ac_objext' 2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2242 (eval $ac_try) 2>&5 2243 ac_status=$? 2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2245 (exit $ac_status); }; }; then 2246 ac_cv_prog_cc_stdc=$ac_arg 2247 break 2248 else 2249 echo "$as_me: failed program was:" >&5 2250 sed 's/^/| /' conftest.$ac_ext >&5 2251 2252 fi 2253 rm -f conftest.err conftest.$ac_objext 2254 done 2255 rm -f conftest.$ac_ext conftest.$ac_objext 2256 CC=$ac_save_CC 2257 2258 fi 2259 2260 case "x$ac_cv_prog_cc_stdc" in 2261 x|xno) 2262 echo "$as_me:$LINENO: result: none needed" >&5 2263 echo "${ECHO_T}none needed" >&6 ;; 2264 *) 2265 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2266 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2267 CC="$CC $ac_cv_prog_cc_stdc" ;; 2268 esac 2269 2270 # Some people use a C++ compiler to compile C. Since we use `exit', 2271 # in C++ we need to declare it. In case someone uses the same compiler 2272 # for both compiling C and C++ we need to have the C++ compiler decide 2273 # the declaration of exit, since it's the most demanding environment. 2274 cat >conftest.$ac_ext <<_ACEOF 2275 #ifndef __cplusplus 2276 choke me 2277 #endif 2278 _ACEOF 2279 rm -f conftest.$ac_objext 2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2281 (eval $ac_compile) 2>conftest.er1 2282 ac_status=$? 2283 grep -v '^ *+' conftest.er1 >conftest.err 2284 rm -f conftest.er1 2285 cat conftest.err >&5 2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2287 (exit $ac_status); } && 2288 { ac_try='test -z "$ac_c_werror_flag" 2289 || test ! -s conftest.err' 2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2291 (eval $ac_try) 2>&5 2292 ac_status=$? 2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2294 (exit $ac_status); }; } && 2295 { ac_try='test -s conftest.$ac_objext' 2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2297 (eval $ac_try) 2>&5 2298 ac_status=$? 2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2300 (exit $ac_status); }; }; then 2301 for ac_declaration in \ 2302 '' \ 2303 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2304 'extern "C" void std::exit (int); using std::exit;' \ 2305 'extern "C" void exit (int) throw ();' \ 2306 'extern "C" void exit (int);' \ 2307 'void exit (int);' 2308 do 2309 cat >conftest.$ac_ext <<_ACEOF 2310 /* confdefs.h. */ 2311 _ACEOF 2312 cat confdefs.h >>conftest.$ac_ext 2313 cat >>conftest.$ac_ext <<_ACEOF 2314 /* end confdefs.h. */ 2315 $ac_declaration 2316 #include <stdlib.h> 2317 int 2318 main () 2319 { 2320 exit (42); 2321 ; 2322 return 0; 2323 } 2324 _ACEOF 2325 rm -f conftest.$ac_objext 2326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2327 (eval $ac_compile) 2>conftest.er1 2328 ac_status=$? 2329 grep -v '^ *+' conftest.er1 >conftest.err 2330 rm -f conftest.er1 2331 cat conftest.err >&5 2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2333 (exit $ac_status); } && 2334 { ac_try='test -z "$ac_c_werror_flag" 2335 || test ! -s conftest.err' 2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2337 (eval $ac_try) 2>&5 2338 ac_status=$? 2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2340 (exit $ac_status); }; } && 2341 { ac_try='test -s conftest.$ac_objext' 2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2343 (eval $ac_try) 2>&5 2344 ac_status=$? 2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2346 (exit $ac_status); }; }; then 2347 : 2348 else 2349 echo "$as_me: failed program was:" >&5 2350 sed 's/^/| /' conftest.$ac_ext >&5 2351 2352 continue 2353 fi 2354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2355 cat >conftest.$ac_ext <<_ACEOF 2356 /* confdefs.h. */ 2357 _ACEOF 2358 cat confdefs.h >>conftest.$ac_ext 2359 cat >>conftest.$ac_ext <<_ACEOF 2360 /* end confdefs.h. */ 2361 $ac_declaration 2362 int 2363 main () 2364 { 2365 exit (42); 2366 ; 2367 return 0; 2368 } 2369 _ACEOF 2370 rm -f conftest.$ac_objext 2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2372 (eval $ac_compile) 2>conftest.er1 2373 ac_status=$? 2374 grep -v '^ *+' conftest.er1 >conftest.err 2375 rm -f conftest.er1 2376 cat conftest.err >&5 2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2378 (exit $ac_status); } && 2379 { ac_try='test -z "$ac_c_werror_flag" 2380 || test ! -s conftest.err' 2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2382 (eval $ac_try) 2>&5 2383 ac_status=$? 2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2385 (exit $ac_status); }; } && 2386 { ac_try='test -s conftest.$ac_objext' 2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2388 (eval $ac_try) 2>&5 2389 ac_status=$? 2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2391 (exit $ac_status); }; }; then 2392 break 2393 else 2394 echo "$as_me: failed program was:" >&5 2395 sed 's/^/| /' conftest.$ac_ext >&5 2396 2397 fi 2398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2399 done 2400 rm -f conftest* 2401 if test -n "$ac_declaration"; then 2402 echo '#ifdef __cplusplus' >>confdefs.h 2403 echo $ac_declaration >>confdefs.h 2404 echo '#endif' >>confdefs.h 2405 fi 2406 2407 else 2408 echo "$as_me: failed program was:" >&5 2409 sed 's/^/| /' conftest.$ac_ext >&5 2410 2411 fi 2412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2413 ac_ext=c 2414 ac_cpp='$CPP $CPPFLAGS' 2415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2417 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2418 2419 ac_ext=cc 2420 ac_cpp='$CXXCPP $CPPFLAGS' 2421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2424 if test -n "$ac_tool_prefix"; then 2425 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2426 do 2427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2429 echo "$as_me:$LINENO: checking for $ac_word" >&5 2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2431 if test "${ac_cv_prog_CXX+set}" = set; then 2432 echo $ECHO_N "(cached) $ECHO_C" >&6 955 2433 else 956 2434 if test -n "$CXX"; then 957 2435 ac_cv_prog_CXX="$CXX" # Let the user override the test. 958 2436 else 959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 960 ac_dummy="$PATH" 961 for ac_dir in $ac_dummy; do 962 test -z "$ac_dir" && ac_dir=. 963 if test -f $ac_dir/$ac_word; then 964 ac_cv_prog_CXX="$ac_prog" 965 break 966 fi 2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2438 for as_dir in $PATH 2439 do 2440 IFS=$as_save_IFS 2441 test -z "$as_dir" && as_dir=. 2442 for ac_exec_ext in '' $ac_executable_extensions; do 2443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2444 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2446 break 2 2447 fi 2448 done 2449 done 2450 2451 fi 2452 fi 2453 CXX=$ac_cv_prog_CXX 2454 if test -n "$CXX"; then 2455 echo "$as_me:$LINENO: result: $CXX" >&5 2456 echo "${ECHO_T}$CXX" >&6 2457 else 2458 echo "$as_me:$LINENO: result: no" >&5 2459 echo "${ECHO_T}no" >&6 2460 fi 2461 2462 test -n "$CXX" && break 967 2463 done 968 IFS="$ac_save_ifs" 969 fi 970 fi 971 CXX="$ac_cv_prog_CXX" 972 if test -n "$CXX"; then 973 echo "$ac_t""$CXX" 1>&6 974 else 975 echo "$ac_t""no" 1>&6 976 fi 977 978 test -n "$CXX" && break 2464 fi 2465 if test -z "$CXX"; then 2466 ac_ct_CXX=$CXX 2467 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2468 do 2469 # Extract the first word of "$ac_prog", so it can be a program name with args. 2470 set dummy $ac_prog; ac_word=$2 2471 echo "$as_me:$LINENO: checking for $ac_word" >&5 2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2473 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2474 echo $ECHO_N "(cached) $ECHO_C" >&6 2475 else 2476 if test -n "$ac_ct_CXX"; then 2477 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2478 else 2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2480 for as_dir in $PATH 2481 do 2482 IFS=$as_save_IFS 2483 test -z "$as_dir" && as_dir=. 2484 for ac_exec_ext in '' $ac_executable_extensions; do 2485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2486 ac_cv_prog_ac_ct_CXX="$ac_prog" 2487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2488 break 2 2489 fi 979 2490 done 980 test -n "$CXX" || CXX="gcc" 981 982 983 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 984 echo "configure:985: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 985 986 ac_ext=C 987 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 988 ac_cpp='$CXXCPP $CPPFLAGS' 989 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 990 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 991 cross_compiling=$ac_cv_prog_cxx_cross 992 993 cat > conftest.$ac_ext << EOF 994 995 #line 996 "configure"996 #include "confdefs.h" 997 998 int main(){return(0);} 999 EOF 1000 if { (eval echo configure:1001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1001 ac_cv_prog_cxx_works=yes 1002 # If we can't run a trivial program, we are probably using a cross compiler. 1003 if (./conftest; exit) 2>/dev/null; then1004 ac_cv_prog_cxx_cross=no 1005 else 1006 ac_cv_prog_cxx_cross=yes1007 fi1008 else 1009 echo "configure: failed program was:" >&51010 cat conftest.$ac_ext>&51011 ac_cv_prog_cxx_works=no1012 fi 1013 rm -fr conftest* 1014 ac_ext=c 1015 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1016 ac_cpp='$CPP $CPPFLAGS' 1017 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1018 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1019 cross_compiling=$ac_cv_prog_cc_cross 1020 1021 echo "$a c_t""$ac_cv_prog_cxx_works" 1>&61022 if test $ac_cv_prog_cxx_works = no; then 1023 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 1024 fi 1025 e cho $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&61026 echo "configure:1027: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1027 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1028 cross_compiling=$ac_cv_prog_cxx_cross 1029 1030 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1031 echo "configure:1032: checking whether we are using GNU C++" >&5 1032 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1033 echo $ac_n "(cached) $ac_c" 1>&6 1034 else 1035 cat > conftest.C <<EOF 1036 #if def __GNUC__1037 yes;2491 done 2492 2493 fi 2494 fi 2495 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2496 if test -n "$ac_ct_CXX"; then 2497 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2498 echo "${ECHO_T}$ac_ct_CXX" >&6 2499 else 2500 echo "$as_me:$LINENO: result: no" >&5 2501 echo "${ECHO_T}no" >&6 2502 fi 2503 2504 test -n "$ac_ct_CXX" && break 2505 done 2506 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 2507 2508 CXX=$ac_ct_CXX 2509 fi 2510 2511 2512 # Provide some information about the compiler. 2513 echo "$as_me:$LINENO:" \ 2514 "checking for C++ compiler version" >&5 2515 ac_compiler=`set X $ac_compile; echo $2` 2516 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2517 (eval $ac_compiler --version </dev/null >&5) 2>&5 2518 ac_status=$? 2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2520 (exit $ac_status); } 2521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2522 (eval $ac_compiler -v </dev/null >&5) 2>&5 2523 ac_status=$? 2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2525 (exit $ac_status); } 2526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2527 (eval $ac_compiler -V </dev/null >&5) 2>&5 2528 ac_status=$? 2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2530 (exit $ac_status); } 2531 2532 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2533 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2534 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2535 echo $ECHO_N "(cached) $ECHO_C" >&6 2536 else 2537 cat >conftest.$ac_ext <<_ACEOF 2538 /* confdefs.h. */ 2539 _ACEOF 2540 cat confdefs.h >>conftest.$ac_ext 2541 cat >>conftest.$ac_ext <<_ACEOF 2542 /* end confdefs.h. */ 2543 2544 int 2545 main () 2546 { 2547 #ifndef __GNUC__ 2548 choke me 1038 2549 #endif 1039 EOF 1040 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1041 ac_cv_prog_gxx=yes 1042 else 1043 ac_cv_prog_gxx=no 1044 fi 1045 fi 1046 1047 echo "$ac_t""$ac_cv_prog_gxx" 1>&6 1048 1049 if test $ac_cv_prog_gxx = yes; then 1050 GXX=yes 1051 else 1052 GXX= 1053 fi 1054 1055 ac_test_CXXFLAGS="${CXXFLAGS+set}" 1056 ac_save_CXXFLAGS="$CXXFLAGS" 1057 CXXFLAGS= 1058 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1059 echo "configure:1060: checking whether ${CXX-g++} accepts -g" >&5 1060 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1061 echo $ac_n "(cached) $ac_c" 1>&6 1062 else 1063 echo 'void f(){}' > conftest.cc 1064 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 2550 2551 ; 2552 return 0; 2553 } 2554 _ACEOF 2555 rm -f conftest.$ac_objext 2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2557 (eval $ac_compile) 2>conftest.er1 2558 ac_status=$? 2559 grep -v '^ *+' conftest.er1 >conftest.err 2560 rm -f conftest.er1 2561 cat conftest.err >&5 2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2563 (exit $ac_status); } && 2564 { ac_try='test -z "$ac_cxx_werror_flag" 2565 || test ! -s conftest.err' 2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2567 (eval $ac_try) 2>&5 2568 ac_status=$? 2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2570 (exit $ac_status); }; } && 2571 { ac_try='test -s conftest.$ac_objext' 2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2573 (eval $ac_try) 2>&5 2574 ac_status=$? 2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2576 (exit $ac_status); }; }; then 2577 ac_compiler_gnu=yes 2578 else 2579 echo "$as_me: failed program was:" >&5 2580 sed 's/^/| /' conftest.$ac_ext >&5 2581 2582 ac_compiler_gnu=no 2583 fi 2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2585 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2586 2587 fi 2588 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2589 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2590 GXX=`test $ac_compiler_gnu = yes && echo yes` 2591 ac_test_CXXFLAGS=${CXXFLAGS+set} 2592 ac_save_CXXFLAGS=$CXXFLAGS 2593 CXXFLAGS="-g" 2594 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2595 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2596 if test "${ac_cv_prog_cxx_g+set}" = set; then 2597 echo $ECHO_N "(cached) $ECHO_C" >&6 2598 else 2599 cat >conftest.$ac_ext <<_ACEOF 2600 /* confdefs.h. */ 2601 _ACEOF 2602 cat confdefs.h >>conftest.$ac_ext 2603 cat >>conftest.$ac_ext <<_ACEOF 2604 /* end confdefs.h. */ 2605 2606 int 2607 main () 2608 { 2609 2610 ; 2611 return 0; 2612 } 2613 _ACEOF 2614 rm -f conftest.$ac_objext 2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2616 (eval $ac_compile) 2>conftest.er1 2617 ac_status=$? 2618 grep -v '^ *+' conftest.er1 >conftest.err 2619 rm -f conftest.er1 2620 cat conftest.err >&5 2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2622 (exit $ac_status); } && 2623 { ac_try='test -z "$ac_cxx_werror_flag" 2624 || test ! -s conftest.err' 2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2626 (eval $ac_try) 2>&5 2627 ac_status=$? 2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2629 (exit $ac_status); }; } && 2630 { ac_try='test -s conftest.$ac_objext' 2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2632 (eval $ac_try) 2>&5 2633 ac_status=$? 2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2635 (exit $ac_status); }; }; then 1065 2636 ac_cv_prog_cxx_g=yes 1066 2637 else 1067 ac_cv_prog_cxx_g=no 1068 fi 1069 rm -f conftest* 1070 1071 fi 1072 1073 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 2638 echo "$as_me: failed program was:" >&5 2639 sed 's/^/| /' conftest.$ac_ext >&5 2640 2641 ac_cv_prog_cxx_g=no 2642 fi 2643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2644 fi 2645 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2646 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 1074 2647 if test "$ac_test_CXXFLAGS" = set; then 1075 CXXFLAGS= "$ac_save_CXXFLAGS"2648 CXXFLAGS=$ac_save_CXXFLAGS 1076 2649 elif test $ac_cv_prog_cxx_g = yes; then 1077 2650 if test "$GXX" = yes; then … … 1087 2660 fi 1088 2661 fi 1089 1090 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1091 echo "configure:1092: checking how to run the C preprocessor" >&5 2662 for ac_declaration in \ 2663 '' \ 2664 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2665 'extern "C" void std::exit (int); using std::exit;' \ 2666 'extern "C" void exit (int) throw ();' \ 2667 'extern "C" void exit (int);' \ 2668 'void exit (int);' 2669 do 2670 cat >conftest.$ac_ext <<_ACEOF 2671 /* confdefs.h. */ 2672 _ACEOF 2673 cat confdefs.h >>conftest.$ac_ext 2674 cat >>conftest.$ac_ext <<_ACEOF 2675 /* end confdefs.h. */ 2676 $ac_declaration 2677 #include <stdlib.h> 2678 int 2679 main () 2680 { 2681 exit (42); 2682 ; 2683 return 0; 2684 } 2685 _ACEOF 2686 rm -f conftest.$ac_objext 2687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2688 (eval $ac_compile) 2>conftest.er1 2689 ac_status=$? 2690 grep -v '^ *+' conftest.er1 >conftest.err 2691 rm -f conftest.er1 2692 cat conftest.err >&5 2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2694 (exit $ac_status); } && 2695 { ac_try='test -z "$ac_cxx_werror_flag" 2696 || test ! -s conftest.err' 2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2698 (eval $ac_try) 2>&5 2699 ac_status=$? 2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2701 (exit $ac_status); }; } && 2702 { ac_try='test -s conftest.$ac_objext' 2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2704 (eval $ac_try) 2>&5 2705 ac_status=$? 2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2707 (exit $ac_status); }; }; then 2708 : 2709 else 2710 echo "$as_me: failed program was:" >&5 2711 sed 's/^/| /' conftest.$ac_ext >&5 2712 2713 continue 2714 fi 2715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2716 cat >conftest.$ac_ext <<_ACEOF 2717 /* confdefs.h. */ 2718 _ACEOF 2719 cat confdefs.h >>conftest.$ac_ext 2720 cat >>conftest.$ac_ext <<_ACEOF 2721 /* end confdefs.h. */ 2722 $ac_declaration 2723 int 2724 main () 2725 { 2726 exit (42); 2727 ; 2728 return 0; 2729 } 2730 _ACEOF 2731 rm -f conftest.$ac_objext 2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2733 (eval $ac_compile) 2>conftest.er1 2734 ac_status=$? 2735 grep -v '^ *+' conftest.er1 >conftest.err 2736 rm -f conftest.er1 2737 cat conftest.err >&5 2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2739 (exit $ac_status); } && 2740 { ac_try='test -z "$ac_cxx_werror_flag" 2741 || test ! -s conftest.err' 2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2743 (eval $ac_try) 2>&5 2744 ac_status=$? 2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2746 (exit $ac_status); }; } && 2747 { ac_try='test -s conftest.$ac_objext' 2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2749 (eval $ac_try) 2>&5 2750 ac_status=$? 2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2752 (exit $ac_status); }; }; then 2753 break 2754 else 2755 echo "$as_me: failed program was:" >&5 2756 sed 's/^/| /' conftest.$ac_ext >&5 2757 2758 fi 2759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2760 done 2761 rm -f conftest* 2762 if test -n "$ac_declaration"; then 2763 echo '#ifdef __cplusplus' >>confdefs.h 2764 echo $ac_declaration >>confdefs.h 2765 echo '#endif' >>confdefs.h 2766 fi 2767 2768 ac_ext=c 2769 ac_cpp='$CPP $CPPFLAGS' 2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2773 2774 2775 ac_ext=c 2776 ac_cpp='$CPP $CPPFLAGS' 2777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2779 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2780 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2781 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 1092 2782 # On Suns, sometimes $CPP names a directory. 1093 2783 if test -n "$CPP" && test -d "$CPP"; then … … 1095 2785 fi 1096 2786 if test -z "$CPP"; then 1097 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1098 echo $ac_n "(cached) $ac_c" 1>&6 1099 else 1100 # This must be in double quotes, not single quotes, because CPP may get 1101 # substituted into the Makefile and "${CC-cc}" will confuse make. 1102 CPP="${CC-cc} -E" 2787 if test "${ac_cv_prog_CPP+set}" = set; then 2788 echo $ECHO_N "(cached) $ECHO_C" >&6 2789 else 2790 # Double quotes because CPP needs to be expanded 2791 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2792 do 2793 ac_preproc_ok=false 2794 for ac_c_preproc_warn_flag in '' yes 2795 do 2796 # Use a header file that comes with gcc, so configuring glibc 2797 # with a fresh cross-compiler works. 2798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2799 # <limits.h> exists even on freestanding compilers. 1103 2800 # On the NeXT, cc -E runs the code through the compiler's parser, 1104 # not just through cpp. 1105 cat > conftest.$ac_ext <<EOF 1106 #line 1107 "configure" 1107 #include "confdefs.h" 1108 #include <assert.h> 1109 Syntax Error 1110 EOF 1111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1112 { (eval echo configure:1113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1114 if test -z "$ac_err"; then 2801 # not just through cpp. "Syntax error" is here to catch this case. 2802 cat >conftest.$ac_ext <<_ACEOF 2803 /* confdefs.h. */ 2804 _ACEOF 2805 cat confdefs.h >>conftest.$ac_ext 2806 cat >>conftest.$ac_ext <<_ACEOF 2807 /* end confdefs.h. */ 2808 #ifdef __STDC__ 2809 # include <limits.h> 2810 #else 2811 # include <assert.h> 2812 #endif 2813 Syntax error 2814 _ACEOF 2815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2817 ac_status=$? 2818 grep -v '^ *+' conftest.er1 >conftest.err 2819 rm -f conftest.er1 2820 cat conftest.err >&5 2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2822 (exit $ac_status); } >/dev/null; then 2823 if test -s conftest.err; then 2824 ac_cpp_err=$ac_c_preproc_warn_flag 2825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2826 else 2827 ac_cpp_err= 2828 fi 2829 else 2830 ac_cpp_err=yes 2831 fi 2832 if test -z "$ac_cpp_err"; then 1115 2833 : 1116 2834 else 1117 echo "$ac_err" >&5 1118 echo "configure: failed program was:" >&5 1119 cat conftest.$ac_ext >&5 1120 rm -rf conftest* 1121 CPP="${CC-cc} -E -traditional-cpp" 1122 cat > conftest.$ac_ext <<EOF 1123 #line 1124 "configure" 1124 #include "confdefs.h" 1125 #include <assert.h> 1126 Syntax Error 1127 EOF 1128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1129 { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1131 if test -z "$ac_err"; then 2835 echo "$as_me: failed program was:" >&5 2836 sed 's/^/| /' conftest.$ac_ext >&5 2837 2838 # Broken: fails on valid input. 2839 continue 2840 fi 2841 rm -f conftest.err conftest.$ac_ext 2842 2843 # OK, works on sane cases. Now check whether non-existent headers 2844 # can be detected and how. 2845 cat >conftest.$ac_ext <<_ACEOF 2846 /* confdefs.h. */ 2847 _ACEOF 2848 cat confdefs.h >>conftest.$ac_ext 2849 cat >>conftest.$ac_ext <<_ACEOF 2850 /* end confdefs.h. */ 2851 #include <ac_nonexistent.h> 2852 _ACEOF 2853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2855 ac_status=$? 2856 grep -v '^ *+' conftest.er1 >conftest.err 2857 rm -f conftest.er1 2858 cat conftest.err >&5 2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2860 (exit $ac_status); } >/dev/null; then 2861 if test -s conftest.err; then 2862 ac_cpp_err=$ac_c_preproc_warn_flag 2863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2864 else 2865 ac_cpp_err= 2866 fi 2867 else 2868 ac_cpp_err=yes 2869 fi 2870 if test -z "$ac_cpp_err"; then 2871 # Broken: success on invalid input. 2872 continue 2873 else 2874 echo "$as_me: failed program was:" >&5 2875 sed 's/^/| /' conftest.$ac_ext >&5 2876 2877 # Passes both tests. 2878 ac_preproc_ok=: 2879 break 2880 fi 2881 rm -f conftest.err conftest.$ac_ext 2882 2883 done 2884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2885 rm -f conftest.err conftest.$ac_ext 2886 if $ac_preproc_ok; then 2887 break 2888 fi 2889 2890 done 2891 ac_cv_prog_CPP=$CPP 2892 2893 fi 2894 CPP=$ac_cv_prog_CPP 2895 else 2896 ac_cv_prog_CPP=$CPP 2897 fi 2898 echo "$as_me:$LINENO: result: $CPP" >&5 2899 echo "${ECHO_T}$CPP" >&6 2900 ac_preproc_ok=false 2901 for ac_c_preproc_warn_flag in '' yes 2902 do 2903 # Use a header file that comes with gcc, so configuring glibc 2904 # with a fresh cross-compiler works. 2905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2906 # <limits.h> exists even on freestanding compilers. 2907 # On the NeXT, cc -E runs the code through the compiler's parser, 2908 # not just through cpp. "Syntax error" is here to catch this case. 2909 cat >conftest.$ac_ext <<_ACEOF 2910 /* confdefs.h. */ 2911 _ACEOF 2912 cat confdefs.h >>conftest.$ac_ext 2913 cat >>conftest.$ac_ext <<_ACEOF 2914 /* end confdefs.h. */ 2915 #ifdef __STDC__ 2916 # include <limits.h> 2917 #else 2918 # include <assert.h> 2919 #endif 2920 Syntax error 2921 _ACEOF 2922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2924 ac_status=$? 2925 grep -v '^ *+' conftest.er1 >conftest.err 2926 rm -f conftest.er1 2927 cat conftest.err >&5 2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2929 (exit $ac_status); } >/dev/null; then 2930 if test -s conftest.err; then 2931 ac_cpp_err=$ac_c_preproc_warn_flag 2932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2933 else 2934 ac_cpp_err= 2935 fi 2936 else 2937 ac_cpp_err=yes 2938 fi 2939 if test -z "$ac_cpp_err"; then 1132 2940 : 1133 2941 else 1134 echo "$ac_err" >&5 1135 echo "configure: failed program was:" >&5 1136 cat conftest.$ac_ext >&5 1137 rm -rf conftest* 1138 CPP="${CC-cc} -nologo -E" 1139 cat > conftest.$ac_ext <<EOF 1140 #line 1141 "configure" 1141 #include "confdefs.h" 1142 #include <assert.h> 1143 Syntax Error 1144 EOF 1145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1146 { (eval echo configure:1147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1148 if test -z "$ac_err"; then 2942 echo "$as_me: failed program was:" >&5 2943 sed 's/^/| /' conftest.$ac_ext >&5 2944 2945 # Broken: fails on valid input. 2946 continue 2947 fi 2948 rm -f conftest.err conftest.$ac_ext 2949 2950 # OK, works on sane cases. Now check whether non-existent headers 2951 # can be detected and how. 2952 cat >conftest.$ac_ext <<_ACEOF 2953 /* confdefs.h. */ 2954 _ACEOF 2955 cat confdefs.h >>conftest.$ac_ext 2956 cat >>conftest.$ac_ext <<_ACEOF 2957 /* end confdefs.h. */ 2958 #include <ac_nonexistent.h> 2959 _ACEOF 2960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2962 ac_status=$? 2963 grep -v '^ *+' conftest.er1 >conftest.err 2964 rm -f conftest.er1 2965 cat conftest.err >&5 2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2967 (exit $ac_status); } >/dev/null; then 2968 if test -s conftest.err; then 2969 ac_cpp_err=$ac_c_preproc_warn_flag 2970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2971 else 2972 ac_cpp_err= 2973 fi 2974 else 2975 ac_cpp_err=yes 2976 fi 2977 if test -z "$ac_cpp_err"; then 2978 # Broken: success on invalid input. 2979 continue 2980 else 2981 echo "$as_me: failed program was:" >&5 2982 sed 's/^/| /' conftest.$ac_ext >&5 2983 2984 # Passes both tests. 2985 ac_preproc_ok=: 2986 break 2987 fi 2988 rm -f conftest.err conftest.$ac_ext 2989 2990 done 2991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2992 rm -f conftest.err conftest.$ac_ext 2993 if $ac_preproc_ok; then 1149 2994 : 1150 2995 else 1151 echo "$ac_err" >&5 1152 echo "configure: failed program was:" >&5 1153 cat conftest.$ac_ext >&5 1154 rm -rf conftest* 1155 CPP=/lib/cpp 1156 fi 1157 rm -f conftest* 1158 fi 1159 rm -f conftest* 1160 fi 1161 rm -f conftest* 1162 ac_cv_prog_CPP="$CPP" 1163 fi 1164 CPP="$ac_cv_prog_CPP" 1165 else 1166 ac_cv_prog_CPP="$CPP" 1167 fi 1168 echo "$ac_t""$CPP" 1>&6 1169 1170 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1171 echo "configure:1172: checking for ANSI C header files" >&5 1172 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1173 echo $ac_n "(cached) $ac_c" 1>&6 1174 else 1175 cat > conftest.$ac_ext <<EOF 1176 #line 1177 "configure" 1177 #include "confdefs.h" 2996 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2997 See \`config.log' for more details." >&5 2998 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2999 See \`config.log' for more details." >&2;} 3000 { (exit 1); exit 1; }; } 3001 fi 3002 3003 ac_ext=c 3004 ac_cpp='$CPP $CPPFLAGS' 3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3008 3009 3010 echo "$as_me:$LINENO: checking for egrep" >&5 3011 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3012 if test "${ac_cv_prog_egrep+set}" = set; then 3013 echo $ECHO_N "(cached) $ECHO_C" >&6 3014 else 3015 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3016 then ac_cv_prog_egrep='grep -E' 3017 else ac_cv_prog_egrep='egrep' 3018 fi 3019 fi 3020 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3021 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3022 EGREP=$ac_cv_prog_egrep 3023 3024 3025 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3026 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3027 if test "${ac_cv_header_stdc+set}" = set; then 3028 echo $ECHO_N "(cached) $ECHO_C" >&6 3029 else 3030 cat >conftest.$ac_ext <<_ACEOF 3031 /* confdefs.h. */ 3032 _ACEOF 3033 cat confdefs.h >>conftest.$ac_ext 3034 cat >>conftest.$ac_ext <<_ACEOF 3035 /* end confdefs.h. */ 1178 3036 #include <stdlib.h> 1179 3037 #include <stdarg.h> 1180 3038 #include <string.h> 1181 3039 #include <float.h> 1182 EOF 1183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1184 { (eval echo configure:1185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1186 if test -z "$ac_err"; then 1187 rm -rf conftest* 3040 3041 int 3042 main () 3043 { 3044 3045 ; 3046 return 0; 3047 } 3048 _ACEOF 3049 rm -f conftest.$ac_objext 3050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3051 (eval $ac_compile) 2>conftest.er1 3052 ac_status=$? 3053 grep -v '^ *+' conftest.er1 >conftest.err 3054 rm -f conftest.er1 3055 cat conftest.err >&5 3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3057 (exit $ac_status); } && 3058 { ac_try='test -z "$ac_c_werror_flag" 3059 || test ! -s conftest.err' 3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3061 (eval $ac_try) 2>&5 3062 ac_status=$? 3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3064 (exit $ac_status); }; } && 3065 { ac_try='test -s conftest.$ac_objext' 3066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3067 (eval $ac_try) 2>&5 3068 ac_status=$? 3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3070 (exit $ac_status); }; }; then 1188 3071 ac_cv_header_stdc=yes 1189 3072 else 1190 echo "$ac_err" >&5 1191 echo "configure: failed program was:" >&5 1192 cat conftest.$ac_ext >&5 1193 rm -rf conftest* 1194 ac_cv_header_stdc=no 1195 fi 1196 rm -f conftest* 3073 echo "$as_me: failed program was:" >&5 3074 sed 's/^/| /' conftest.$ac_ext >&5 3075 3076 ac_cv_header_stdc=no 3077 fi 3078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1197 3079 1198 3080 if test $ac_cv_header_stdc = yes; then 1199 3081 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1200 cat > conftest.$ac_ext <<EOF 1201 #line 1202 "configure" 1202 #include "confdefs.h" 3082 cat >conftest.$ac_ext <<_ACEOF 3083 /* confdefs.h. */ 3084 _ACEOF 3085 cat confdefs.h >>conftest.$ac_ext 3086 cat >>conftest.$ac_ext <<_ACEOF 3087 /* end confdefs.h. */ 1203 3088 #include <string.h> 1204 EOF 3089 3090 _ACEOF 1205 3091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1206 egrep"memchr" >/dev/null 2>&1; then3092 $EGREP "memchr" >/dev/null 2>&1; then 1207 3093 : 1208 3094 else 1209 rm -rf conftest*1210 3095 ac_cv_header_stdc=no 1211 3096 fi … … 1216 3101 if test $ac_cv_header_stdc = yes; then 1217 3102 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1218 cat > conftest.$ac_ext <<EOF 1219 #line 1220 "configure" 1220 #include "confdefs.h" 3103 cat >conftest.$ac_ext <<_ACEOF 3104 /* confdefs.h. */ 3105 _ACEOF 3106 cat confdefs.h >>conftest.$ac_ext 3107 cat >>conftest.$ac_ext <<_ACEOF 3108 /* end confdefs.h. */ 1221 3109 #include <stdlib.h> 1222 EOF 3110 3111 _ACEOF 1223 3112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1224 egrep"free" >/dev/null 2>&1; then3113 $EGREP "free" >/dev/null 2>&1; then 1225 3114 : 1226 3115 else 1227 rm -rf conftest*1228 3116 ac_cv_header_stdc=no 1229 3117 fi … … 1234 3122 if test $ac_cv_header_stdc = yes; then 1235 3123 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1236 if test "$cross_compiling" = yes; then3124 if test "$cross_compiling" = yes; then 1237 3125 : 1238 3126 else 1239 cat > conftest.$ac_ext <<EOF 1240 #line 1241 "configure" 1241 #include "confdefs.h" 3127 cat >conftest.$ac_ext <<_ACEOF 3128 /* confdefs.h. */ 3129 _ACEOF 3130 cat confdefs.h >>conftest.$ac_ext 3131 cat >>conftest.$ac_ext <<_ACEOF 3132 /* end confdefs.h. */ 1242 3133 #include <ctype.h> 1243 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1244 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3134 #if ((' ' & 0x0FF) == 0x020) 3135 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3136 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3137 #else 3138 # define ISLOWER(c) \ 3139 (('a' <= (c) && (c) <= 'i') \ 3140 || ('j' <= (c) && (c) <= 'r') \ 3141 || ('s' <= (c) && (c) <= 'z')) 3142 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3143 #endif 3144 1245 3145 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1246 int main () { int i; for (i = 0; i < 256; i++) 1247 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1248 exit (0); } 1249 1250 EOF 1251 if { (eval echo configure:1252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1252 then 3146 int 3147 main () 3148 { 3149 int i; 3150 for (i = 0; i < 256; i++) 3151 if (XOR (islower (i), ISLOWER (i)) 3152 || toupper (i) != TOUPPER (i)) 3153 exit(2); 3154 exit (0); 3155 } 3156 _ACEOF 3157 rm -f conftest$ac_exeext 3158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3159 (eval $ac_link) 2>&5 3160 ac_status=$? 3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3164 (eval $ac_try) 2>&5 3165 ac_status=$? 3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3167 (exit $ac_status); }; }; then 1253 3168 : 1254 3169 else 1255 echo "configure: failed program was:" >&5 1256 cat conftest.$ac_ext >&5 1257 rm -fr conftest* 1258 ac_cv_header_stdc=no 1259 fi 1260 rm -fr conftest* 1261 fi 1262 1263 fi 1264 fi 1265 1266 echo "$ac_t""$ac_cv_header_stdc" 1>&6 3170 echo "$as_me: program exited with status $ac_status" >&5 3171 echo "$as_me: failed program was:" >&5 3172 sed 's/^/| /' conftest.$ac_ext >&5 3173 3174 ( exit $ac_status ) 3175 ac_cv_header_stdc=no 3176 fi 3177 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3178 fi 3179 fi 3180 fi 3181 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3182 echo "${ECHO_T}$ac_cv_header_stdc" >&6 1267 3183 if test $ac_cv_header_stdc = yes; then 1268 cat >> confdefs.h <<\EOF 3184 3185 cat >>confdefs.h <<\_ACEOF 1269 3186 #define STDC_HEADERS 1 1270 EOF 1271 1272 fi 1273 1274 for ac_hdr in string.h malloc.h 3187 _ACEOF 3188 3189 fi 3190 3191 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3202 inttypes.h stdint.h unistd.h 1275 3203 do 1276 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1277 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1278 echo "configure:1279: checking for $ac_hdr" >&5 1279 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1280 echo $ac_n "(cached) $ac_c" 1>&6 1281 else 1282 cat > conftest.$ac_ext <<EOF 1283 #line 1284 "configure" 1284 #include "confdefs.h" 1285 #include <$ac_hdr> 1286 EOF 1287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1288 { (eval echo configure:1289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1290 if test -z "$ac_err"; then 1291 rm -rf conftest* 1292 eval "ac_cv_header_$ac_safe=yes" 1293 else 1294 echo "$ac_err" >&5 1295 echo "configure: failed program was:" >&5 1296 cat conftest.$ac_ext >&5 1297 rm -rf conftest* 1298 eval "ac_cv_header_$ac_safe=no" 1299 fi 1300 rm -f conftest* 1301 fi 1302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1303 echo "$ac_t""yes" 1>&6 1304 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1305 cat >> confdefs.h <<EOF 1306 #define $ac_tr_hdr 1 1307 EOF 1308 1309 else 1310 echo "$ac_t""no" 1>&6 1311 fi 3204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3205 echo "$as_me:$LINENO: checking for $ac_header" >&5 3206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3207 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3208 echo $ECHO_N "(cached) $ECHO_C" >&6 3209 else 3210 cat >conftest.$ac_ext <<_ACEOF 3211 /* confdefs.h. */ 3212 _ACEOF 3213 cat confdefs.h >>conftest.$ac_ext 3214 cat >>conftest.$ac_ext <<_ACEOF 3215 /* end confdefs.h. */ 3216 $ac_includes_default 3217 3218 #include <$ac_header> 3219 _ACEOF 3220 rm -f conftest.$ac_objext 3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3222 (eval $ac_compile) 2>conftest.er1 3223 ac_status=$? 3224 grep -v '^ *+' conftest.er1 >conftest.err 3225 rm -f conftest.er1 3226 cat conftest.err >&5 3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3228 (exit $ac_status); } && 3229 { ac_try='test -z "$ac_c_werror_flag" 3230 || test ! -s conftest.err' 3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3232 (eval $ac_try) 2>&5 3233 ac_status=$? 3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3235 (exit $ac_status); }; } && 3236 { ac_try='test -s conftest.$ac_objext' 3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3238 (eval $ac_try) 2>&5 3239 ac_status=$? 3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3241 (exit $ac_status); }; }; then 3242 eval "$as_ac_Header=yes" 3243 else 3244 echo "$as_me: failed program was:" >&5 3245 sed 's/^/| /' conftest.$ac_ext >&5 3246 3247 eval "$as_ac_Header=no" 3248 fi 3249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3250 fi 3251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3253 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3254 cat >>confdefs.h <<_ACEOF 3255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3256 _ACEOF 3257 3258 fi 3259 3260 done 3261 3262 3263 3264 3265 for ac_header in string.h malloc.h 3266 do 3267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3268 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3269 echo "$as_me:$LINENO: checking for $ac_header" >&5 3270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3271 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3272 echo $ECHO_N "(cached) $ECHO_C" >&6 3273 fi 3274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3276 else 3277 # Is the header compilable? 3278 echo "$as_me:$LINENO: checking $ac_header usability" >&5 3279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3280 cat >conftest.$ac_ext <<_ACEOF 3281 /* confdefs.h. */ 3282 _ACEOF 3283 cat confdefs.h >>conftest.$ac_ext 3284 cat >>conftest.$ac_ext <<_ACEOF 3285 /* end confdefs.h. */ 3286 $ac_includes_default 3287 #include <$ac_header> 3288 _ACEOF 3289 rm -f conftest.$ac_objext 3290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3291 (eval $ac_compile) 2>conftest.er1 3292 ac_status=$? 3293 grep -v '^ *+' conftest.er1 >conftest.err 3294 rm -f conftest.er1 3295 cat conftest.err >&5 3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3297 (exit $ac_status); } && 3298 { ac_try='test -z "$ac_c_werror_flag" 3299 || test ! -s conftest.err' 3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3301 (eval $ac_try) 2>&5 3302 ac_status=$? 3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3304 (exit $ac_status); }; } && 3305 { ac_try='test -s conftest.$ac_objext' 3306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3307 (eval $ac_try) 2>&5 3308 ac_status=$? 3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3310 (exit $ac_status); }; }; then 3311 ac_header_compiler=yes 3312 else 3313 echo "$as_me: failed program was:" >&5 3314 sed 's/^/| /' conftest.$ac_ext >&5 3315 3316 ac_header_compiler=no 3317 fi 3318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3320 echo "${ECHO_T}$ac_header_compiler" >&6 3321 3322 # Is the header present? 3323 echo "$as_me:$LINENO: checking $ac_header presence" >&5 3324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3325 cat >conftest.$ac_ext <<_ACEOF 3326 /* confdefs.h. */ 3327 _ACEOF 3328 cat confdefs.h >>conftest.$ac_ext 3329 cat >>conftest.$ac_ext <<_ACEOF 3330 /* end confdefs.h. */ 3331 #include <$ac_header> 3332 _ACEOF 3333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3335 ac_status=$? 3336 grep -v '^ *+' conftest.er1 >conftest.err 3337 rm -f conftest.er1 3338 cat conftest.err >&5 3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3340 (exit $ac_status); } >/dev/null; then 3341 if test -s conftest.err; then 3342 ac_cpp_err=$ac_c_preproc_warn_flag 3343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3344 else 3345 ac_cpp_err= 3346 fi 3347 else 3348 ac_cpp_err=yes 3349 fi 3350 if test -z "$ac_cpp_err"; then 3351 ac_header_preproc=yes 3352 else 3353 echo "$as_me: failed program was:" >&5 3354 sed 's/^/| /' conftest.$ac_ext >&5 3355 3356 ac_header_preproc=no 3357 fi 3358 rm -f conftest.err conftest.$ac_ext 3359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3360 echo "${ECHO_T}$ac_header_preproc" >&6 3361 3362 # So? What about this header? 3363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3364 yes:no: ) 3365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3369 ac_header_preproc=yes 3370 ;; 3371 no:yes:* ) 3372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3379 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3384 ( 3385 cat <<\_ASBOX 3386 ## ------------------------------------------ ## 3387 ## Report this to the AC_PACKAGE_NAME lists. ## 3388 ## ------------------------------------------ ## 3389 _ASBOX 3390 ) | 3391 sed "s/^/$as_me: WARNING: /" >&2 3392 ;; 3393 esac 3394 echo "$as_me:$LINENO: checking for $ac_header" >&5 3395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3396 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3397 echo $ECHO_N "(cached) $ECHO_C" >&6 3398 else 3399 eval "$as_ac_Header=\$ac_header_preproc" 3400 fi 3401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3403 3404 fi 3405 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3406 cat >>confdefs.h <<_ACEOF 3407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3408 _ACEOF 3409 3410 fi 3411 1312 3412 done 1313 3413 … … 1323 3423 V_SIGRET="void" 1324 3424 1325 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 1326 echo "configure:1327: checking for main in -lXbsd" >&5 1327 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 1328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1329 echo $ac_n "(cached) $ac_c" 1>&6 1330 else 1331 ac_save_LIBS="$LIBS" 3425 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 3426 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 3427 if test "${ac_cv_lib_Xbsd_main+set}" = set; then 3428 echo $ECHO_N "(cached) $ECHO_C" >&6 3429 else 3430 ac_check_lib_save_LIBS=$LIBS 1332 3431 LIBS="-lXbsd $LIBS" 1333 cat > conftest.$ac_ext <<EOF 1334 #line 1335 "configure" 1335 #include "confdefs.h" 1336 1337 int main() { 1338 main() 1339 ; return 0; } 1340 EOF 1341 if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1342 rm -rf conftest* 1343 eval "ac_cv_lib_$ac_lib_var=yes" 1344 else 1345 echo "configure: failed program was:" >&5 1346 cat conftest.$ac_ext >&5 1347 rm -rf conftest* 1348 eval "ac_cv_lib_$ac_lib_var=no" 1349 fi 1350 rm -f conftest* 1351 LIBS="$ac_save_LIBS" 1352 1353 fi 1354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1355 echo "$ac_t""yes" 1>&6 3432 cat >conftest.$ac_ext <<_ACEOF 3433 /* confdefs.h. */ 3434 _ACEOF 3435 cat confdefs.h >>conftest.$ac_ext 3436 cat >>conftest.$ac_ext <<_ACEOF 3437 /* end confdefs.h. */ 3438 3439 3440 int 3441 main () 3442 { 3443 main (); 3444 ; 3445 return 0; 3446 } 3447 _ACEOF 3448 rm -f conftest.$ac_objext conftest$ac_exeext 3449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3450 (eval $ac_link) 2>conftest.er1 3451 ac_status=$? 3452 grep -v '^ *+' conftest.er1 >conftest.err 3453 rm -f conftest.er1 3454 cat conftest.err >&5 3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3456 (exit $ac_status); } && 3457 { ac_try='test -z "$ac_c_werror_flag" 3458 || test ! -s conftest.err' 3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3460 (eval $ac_try) 2>&5 3461 ac_status=$? 3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3463 (exit $ac_status); }; } && 3464 { ac_try='test -s conftest$ac_exeext' 3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3466 (eval $ac_try) 2>&5 3467 ac_status=$? 3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3469 (exit $ac_status); }; }; then 3470 ac_cv_lib_Xbsd_main=yes 3471 else 3472 echo "$as_me: failed program was:" >&5 3473 sed 's/^/| /' conftest.$ac_ext >&5 3474 3475 ac_cv_lib_Xbsd_main=no 3476 fi 3477 rm -f conftest.err conftest.$ac_objext \ 3478 conftest$ac_exeext conftest.$ac_ext 3479 LIBS=$ac_check_lib_save_LIBS 3480 fi 3481 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 3482 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 3483 if test $ac_cv_lib_Xbsd_main = yes; then 1356 3484 V_LIB="$V_LIB -lXbsd" 1357 else 1358 echo "$ac_t""no" 1>&6 1359 fi 1360 1361 echo $ac_n "checking for poll in -lsocket""... $ac_c" 1>&6 1362 echo "configure:1363: checking for poll in -lsocket" >&5 1363 ac_lib_var=`echo socket'_'poll | sed 'y%./+-%__p_%'` 1364 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1365 echo $ac_n "(cached) $ac_c" 1>&6 1366 else 1367 ac_save_LIBS="$LIBS" 3485 fi 3486 3487 echo "$as_me:$LINENO: checking for poll in -lsocket" >&5 3488 echo $ECHO_N "checking for poll in -lsocket... $ECHO_C" >&6 3489 if test "${ac_cv_lib_socket_poll+set}" = set; then 3490 echo $ECHO_N "(cached) $ECHO_C" >&6 3491 else 3492 ac_check_lib_save_LIBS=$LIBS 1368 3493 LIBS="-lsocket $LIBS" 1369 cat > conftest.$ac_ext <<EOF 1370 #line 1371 "configure" 1371 #include "confdefs.h" 3494 cat >conftest.$ac_ext <<_ACEOF 3495 /* confdefs.h. */ 3496 _ACEOF 3497 cat confdefs.h >>conftest.$ac_ext 3498 cat >>conftest.$ac_ext <<_ACEOF 3499 /* end confdefs.h. */ 3500 1372 3501 /* Override any gcc2 internal prototype to avoid an error. */ 3502 #ifdef __cplusplus 3503 extern "C" 3504 #endif 1373 3505 /* We use char because int might match the return type of a gcc2 1374 builtin and then its argument prototype would still apply. */ 1375 char poll(); 1376 1377 int main() { 1378 poll() 1379 ; return 0; } 1380 EOF 1381 if { (eval echo configure:1382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1382 rm -rf conftest* 1383 eval "ac_cv_lib_$ac_lib_var=yes" 1384 else 1385 echo "configure: failed program was:" >&5 1386 cat conftest.$ac_ext >&5 1387 rm -rf conftest* 1388 eval "ac_cv_lib_$ac_lib_var=no" 1389 fi 1390 rm -f conftest* 1391 LIBS="$ac_save_LIBS" 1392 1393 fi 1394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1395 echo "$ac_t""yes" 1>&6 3506 builtin and then its argument prototype would still apply. */ 3507 char poll (); 3508 int 3509 main () 3510 { 3511 poll (); 3512 ; 3513 return 0; 3514 } 3515 _ACEOF 3516 rm -f conftest.$ac_objext conftest$ac_exeext 3517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3518 (eval $ac_link) 2>conftest.er1 3519 ac_status=$? 3520 grep -v '^ *+' conftest.er1 >conftest.err 3521 rm -f conftest.er1 3522 cat conftest.err >&5 3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3524 (exit $ac_status); } && 3525 { ac_try='test -z "$ac_c_werror_flag" 3526 || test ! -s conftest.err' 3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3528 (eval $ac_try) 2>&5 3529 ac_status=$? 3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3531 (exit $ac_status); }; } && 3532 { ac_try='test -s conftest$ac_exeext' 3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3534 (eval $ac_try) 2>&5 3535 ac_status=$? 3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3537 (exit $ac_status); }; }; then 3538 ac_cv_lib_socket_poll=yes 3539 else 3540 echo "$as_me: failed program was:" >&5 3541 sed 's/^/| /' conftest.$ac_ext >&5 3542 3543 ac_cv_lib_socket_poll=no 3544 fi 3545 rm -f conftest.err conftest.$ac_objext \ 3546 conftest$ac_exeext conftest.$ac_ext 3547 LIBS=$ac_check_lib_save_LIBS 3548 fi 3549 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_poll" >&5 3550 echo "${ECHO_T}$ac_cv_lib_socket_poll" >&6 3551 if test $ac_cv_lib_socket_poll = yes; then 1396 3552 V_LIB="$V_LIB -lsocket" 1397 else1398 echo "$ac_t""no" 1>&61399 3553 fi 1400 3554 … … 1402 3556 # nsl lib seems to cause problems on IRIX 1403 3557 if test `echo "$target_os" | sed 's/\..*//'` != irix6 ; then 1404 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 1405 echo "configure:1406: checking for gethostbyname in -lnsl" >&5 1406 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 1407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1408 echo $ac_n "(cached) $ac_c" 1>&6 1409 else 1410 ac_save_LIBS="$LIBS" 3558 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 3559 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 3560 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 3561 echo $ECHO_N "(cached) $ECHO_C" >&6 3562 else 3563 ac_check_lib_save_LIBS=$LIBS 1411 3564 LIBS="-lnsl $LIBS" 1412 cat > conftest.$ac_ext <<EOF 1413 #line 1414 "configure" 1414 #include "confdefs.h" 3565 cat >conftest.$ac_ext <<_ACEOF 3566 /* confdefs.h. */ 3567 _ACEOF 3568 cat confdefs.h >>conftest.$ac_ext 3569 cat >>conftest.$ac_ext <<_ACEOF 3570 /* end confdefs.h. */ 3571 1415 3572 /* Override any gcc2 internal prototype to avoid an error. */ 3573 #ifdef __cplusplus 3574 extern "C" 3575 #endif 1416 3576 /* We use char because int might match the return type of a gcc2 1417 builtin and then its argument prototype would still apply. */ 1418 char gethostbyname(); 1419 1420 int main() { 1421 gethostbyname() 1422 ; return 0; } 1423 EOF 1424 if { (eval echo configure:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1425 rm -rf conftest* 1426 eval "ac_cv_lib_$ac_lib_var=yes" 1427 else 1428 echo "configure: failed program was:" >&5 1429 cat conftest.$ac_ext >&5 1430 rm -rf conftest* 1431 eval "ac_cv_lib_$ac_lib_var=no" 1432 fi 1433 rm -f conftest* 1434 LIBS="$ac_save_LIBS" 1435 1436 fi 1437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1438 echo "$ac_t""yes" 1>&6 3577 builtin and then its argument prototype would still apply. */ 3578 char gethostbyname (); 3579 int 3580 main () 3581 { 3582 gethostbyname (); 3583 ; 3584 return 0; 3585 } 3586 _ACEOF 3587 rm -f conftest.$ac_objext conftest$ac_exeext 3588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3589 (eval $ac_link) 2>conftest.er1 3590 ac_status=$? 3591 grep -v '^ *+' conftest.er1 >conftest.err 3592 rm -f conftest.er1 3593 cat conftest.err >&5 3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3595 (exit $ac_status); } && 3596 { ac_try='test -z "$ac_c_werror_flag" 3597 || test ! -s conftest.err' 3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3599 (eval $ac_try) 2>&5 3600 ac_status=$? 3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3602 (exit $ac_status); }; } && 3603 { ac_try='test -s conftest$ac_exeext' 3604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3605 (eval $ac_try) 2>&5 3606 ac_status=$? 3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3608 (exit $ac_status); }; }; then 3609 ac_cv_lib_nsl_gethostbyname=yes 3610 else 3611 echo "$as_me: failed program was:" >&5 3612 sed 's/^/| /' conftest.$ac_ext >&5 3613 3614 ac_cv_lib_nsl_gethostbyname=no 3615 fi 3616 rm -f conftest.err conftest.$ac_objext \ 3617 conftest$ac_exeext conftest.$ac_ext 3618 LIBS=$ac_check_lib_save_LIBS 3619 fi 3620 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 3621 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 3622 if test $ac_cv_lib_nsl_gethostbyname = yes; then 1439 3623 V_LIB="$V_LIB -lnsl" 1440 else1441 echo "$ac_t""no" 1>&61442 3624 fi 1443 3625 … … 1455 3637 else 1456 3638 V_CCOPT="-O2" 1457 fi 1458 3639 fi; 1459 3640 1460 3641 # Check whether --enable-ipv6 or --disable-ipv6 was given. … … 1464 3645 else 1465 3646 ipv6=no 1466 fi 3647 fi; 1467 3648 1468 3649 … … 1473 3654 else 1474 3655 d="" 1475 fi 1476 3656 fi; 1477 3657 if test "$d" = "" ; then 1478 3658 if test -d /usr/src/local/fore ; then … … 1510 3690 done 1511 3691 3692 case "$target" in 3693 *-*-darwin*) 3694 aquatcl=yes 3695 aquatk=yes 3696 ;; 3697 esac 3698 3699 if test $aquatk != "yes"; then 1512 3700 1513 3701 xlibdirs="\ … … 1543 3731 echo "checking for X11 header files" 1544 3732 if test "$x_includes" = NONE ; then 1545 cat > conftest.$ac_ext <<EOF 1546 #line 1547 "configure" 1547 #include "confdefs.h" 3733 cat >conftest.$ac_ext <<_ACEOF 3734 /* confdefs.h. */ 3735 _ACEOF 3736 cat confdefs.h >>conftest.$ac_ext 3737 cat >>conftest.$ac_ext <<_ACEOF 3738 /* end confdefs.h. */ 1548 3739 #include <X11/Intrinsic.h> 1549 EOF 1550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1551 { (eval echo configure:1552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1553 if test -z "$ac_err"; then 1554 rm -rf conftest* 3740 _ACEOF 3741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3743 ac_status=$? 3744 grep -v '^ *+' conftest.er1 >conftest.err 3745 rm -f conftest.er1 3746 cat conftest.err >&5 3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3748 (exit $ac_status); } >/dev/null; then 3749 if test -s conftest.err; then 3750 ac_cpp_err=$ac_c_preproc_warn_flag 3751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3752 else 3753 ac_cpp_err= 3754 fi 3755 else 3756 ac_cpp_err=yes 3757 fi 3758 if test -z "$ac_cpp_err"; then 1555 3759 x_includes="" 1556 3760 else 1557 echo "$ac_err" >&5 1558 echo "configure: failed program was:" >&5 1559 cat conftest.$ac_ext >&5 1560 rm -rf conftest* 3761 echo "$as_me: failed program was:" >&5 3762 sed 's/^/| /' conftest.$ac_ext >&5 3763 1561 3764 x_includes=NONE 1562 3765 fi 1563 rm -f conftest *3766 rm -f conftest.err conftest.$ac_ext 1564 3767 if test "$x_includes" = NONE ; then 1565 3768 for i in $xincdirs ; do … … 1575 3778 fi 1576 3779 fi 1577 if test -n "$x_includes" ; then 3780 if test -n "$x_includes" ; then 1578 3781 V_INCLUDE_X11="-isystem $x_includes" 1579 3782 1580 3783 fi 1581 3784 1582 3785 echo "checking for X11 library archive" 1583 3786 if test "$x_libraries" = NONE ; then 1584 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 1585 echo "configure:1586: checking for XOpenDisplay in -lX11" >&5 1586 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 1587 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1588 echo $ac_n "(cached) $ac_c" 1>&6 1589 else 1590 ac_save_LIBS="$LIBS" 3787 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5 3788 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 3789 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 3790 echo $ECHO_N "(cached) $ECHO_C" >&6 3791 else 3792 ac_check_lib_save_LIBS=$LIBS 1591 3793 LIBS="-lX11 $LIBS" 1592 cat > conftest.$ac_ext <<EOF 1593 #line 1594 "configure" 1594 #include "confdefs.h" 3794 cat >conftest.$ac_ext <<_ACEOF 3795 /* confdefs.h. */ 3796 _ACEOF 3797 cat confdefs.h >>conftest.$ac_ext 3798 cat >>conftest.$ac_ext <<_ACEOF 3799 /* end confdefs.h. */ 3800 1595 3801 /* Override any gcc2 internal prototype to avoid an error. */ 3802 #ifdef __cplusplus 3803 extern "C" 3804 #endif 1596 3805 /* We use char because int might match the return type of a gcc2 1597 builtin and then its argument prototype would still apply. */ 1598 char XOpenDisplay(); 1599 1600 int main() { 1601 XOpenDisplay() 1602 ; return 0; } 1603 EOF 1604 if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1605 rm -rf conftest* 1606 eval "ac_cv_lib_$ac_lib_var=yes" 1607 else 1608 echo "configure: failed program was:" >&5 1609 cat conftest.$ac_ext >&5 1610 rm -rf conftest* 1611 eval "ac_cv_lib_$ac_lib_var=no" 1612 fi 1613 rm -f conftest* 1614 LIBS="$ac_save_LIBS" 1615 1616 fi 1617 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1618 echo "$ac_t""yes" 1>&6 3806 builtin and then its argument prototype would still apply. */ 3807 char XOpenDisplay (); 3808 int 3809 main () 3810 { 3811 XOpenDisplay (); 3812 ; 3813 return 0; 3814 } 3815 _ACEOF 3816 rm -f conftest.$ac_objext conftest$ac_exeext 3817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3818 (eval $ac_link) 2>conftest.er1 3819 ac_status=$? 3820 grep -v '^ *+' conftest.er1 >conftest.err 3821 rm -f conftest.er1 3822 cat conftest.err >&5 3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3824 (exit $ac_status); } && 3825 { ac_try='test -z "$ac_c_werror_flag" 3826 || test ! -s conftest.err' 3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3828 (eval $ac_try) 2>&5 3829 ac_status=$? 3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3831 (exit $ac_status); }; } && 3832 { ac_try='test -s conftest$ac_exeext' 3833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3834 (eval $ac_try) 2>&5 3835 ac_status=$? 3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3837 (exit $ac_status); }; }; then 3838 ac_cv_lib_X11_XOpenDisplay=yes 3839 else 3840 echo "$as_me: failed program was:" >&5 3841 sed 's/^/| /' conftest.$ac_ext >&5 3842 3843 ac_cv_lib_X11_XOpenDisplay=no 3844 fi 3845 rm -f conftest.err conftest.$ac_objext \ 3846 conftest$ac_exeext conftest.$ac_ext 3847 LIBS=$ac_check_lib_save_LIBS 3848 fi 3849 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5 3850 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 3851 if test $ac_cv_lib_X11_XOpenDisplay = yes; then 1619 3852 x_libraries="" 1620 3853 else 1621 echo "$ac_t""no" 1>&6 1622 x_libraries=NONE 3854 x_libraries=NONE 1623 3855 fi 1624 3856 … … 1641 3873 if test -n "$V_SHM" ; then 1642 3874 if test -z "$x_libraries" ; then 1643 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6 1644 echo "configure:1645: checking for XShmAttach in -lXext" >&5 1645 ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'` 1646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1647 echo $ac_n "(cached) $ac_c" 1>&6 1648 else 1649 ac_save_LIBS="$LIBS" 3875 echo "$as_me:$LINENO: checking for XShmAttach in -lXext" >&5 3876 echo $ECHO_N "checking for XShmAttach in -lXext... $ECHO_C" >&6 3877 if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then 3878 echo $ECHO_N "(cached) $ECHO_C" >&6 3879 else 3880 ac_check_lib_save_LIBS=$LIBS 1650 3881 LIBS="-lXext -lX11 $LIBS" 1651 cat > conftest.$ac_ext <<EOF 1652 #line 1653 "configure" 1653 #include "confdefs.h" 3882 cat >conftest.$ac_ext <<_ACEOF 3883 /* confdefs.h. */ 3884 _ACEOF 3885 cat confdefs.h >>conftest.$ac_ext 3886 cat >>conftest.$ac_ext <<_ACEOF 3887 /* end confdefs.h. */ 3888 1654 3889 /* Override any gcc2 internal prototype to avoid an error. */ 3890 #ifdef __cplusplus 3891 extern "C" 3892 #endif 1655 3893 /* We use char because int might match the return type of a gcc2 1656 builtin and then its argument prototype would still apply. */ 1657 char XShmAttach(); 1658 1659 int main() { 1660 XShmAttach() 1661 ; return 0; } 1662 EOF 1663 if { (eval echo configure:1664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1664 rm -rf conftest* 1665 eval "ac_cv_lib_$ac_lib_var=yes" 1666 else 1667 echo "configure: failed program was:" >&5 1668 cat conftest.$ac_ext >&5 1669 rm -rf conftest* 1670 eval "ac_cv_lib_$ac_lib_var=no" 1671 fi 1672 rm -f conftest* 1673 LIBS="$ac_save_LIBS" 1674 1675 fi 1676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1677 echo "$ac_t""yes" 1>&6 3894 builtin and then its argument prototype would still apply. */ 3895 char XShmAttach (); 3896 int 3897 main () 3898 { 3899 XShmAttach (); 3900 ; 3901 return 0; 3902 } 3903 _ACEOF 3904 rm -f conftest.$ac_objext conftest$ac_exeext 3905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3906 (eval $ac_link) 2>conftest.er1 3907 ac_status=$? 3908 grep -v '^ *+' conftest.er1 >conftest.err 3909 rm -f conftest.er1 3910 cat conftest.err >&5 3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3912 (exit $ac_status); } && 3913 { ac_try='test -z "$ac_c_werror_flag" 3914 || test ! -s conftest.err' 3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3916 (eval $ac_try) 2>&5 3917 ac_status=$? 3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3919 (exit $ac_status); }; } && 3920 { ac_try='test -s conftest$ac_exeext' 3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3922 (eval $ac_try) 2>&5 3923 ac_status=$? 3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3925 (exit $ac_status); }; }; then 3926 ac_cv_lib_Xext_XShmAttach=yes 3927 else 3928 echo "$as_me: failed program was:" >&5 3929 sed 's/^/| /' conftest.$ac_ext >&5 3930 3931 ac_cv_lib_Xext_XShmAttach=no 3932 fi 3933 rm -f conftest.err conftest.$ac_objext \ 3934 conftest$ac_exeext conftest.$ac_ext 3935 LIBS=$ac_check_lib_save_LIBS 3936 fi 3937 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmAttach" >&5 3938 echo "${ECHO_T}$ac_cv_lib_Xext_XShmAttach" >&6 3939 if test $ac_cv_lib_Xext_XShmAttach = yes; then 1678 3940 V_Xext="-lXext" 1679 3941 else 1680 echo "$ac_t""no" 1>&6 1681 V_Xext=NONE 3942 V_Xext=NONE 1682 3943 fi 1683 3944 … … 1705 3966 1706 3967 3968 fi 3969 1707 3970 1708 3971 # Check whether --with-ucltcl or --without-ucltcl was given. … … 1712 3975 else 1713 3976 ucltcl="" 1714 fi 3977 fi; 1715 3978 1716 3979 … … 1721 3984 else 1722 3985 d="" 1723 fi 1724 1725 if test "$ucltcl" != no; then 1726 if test -z "$ucltcl"; then 3986 fi; 3987 3988 if test "$aquatcl" == yes; then 3989 V_LIB_TCL="-framework Tcl" 3990 V_LIBRARY_TCL=/Library/Frameworks/Tcl.framework/Versions/8.4/Resources/Scripts 3991 V_INCLUDE_TCL="-I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tcl.framework/PrivateHeaders" 3992 elif test "$ucltcl" != no; then 3993 if test -z "$ucltcl"; then 1727 3994 # UCL defaults 1728 3995 ucltcl=../tcl-8.0 … … 1733 4000 fi 1734 4001 V_INCLUDE_TCL="-I$ucltcl/generic" 1735 case "$target" in 4002 case "$target" in 1736 4003 *-*-freebsd*) 1737 4004 V_LIB_TCL="$ucltcl/unix/libtcl80.a" … … 1744 4011 V_LIBRARY_TCL=$ucltcl/library 1745 4012 echo "Using UCL's tcl-8.0: $ucltcl" 1746 1747 elif test "$d" != "" ; then 4013 4014 elif test "$d" != "" ; then 1748 4015 echo "Not using UCL tcl - You're on your own!" 1749 if test ! -d $d ; then 4016 if test ! -d $d ; then 1750 4017 echo "'$d' is not a directory" 1751 4018 exit 1 … … 1757 4024 fi 1758 4025 places="$d/lib/libtcl8.0.so \ 4026 $d/lib/libtcl8.0.dylib \ 1759 4027 $d/lib/libtcl8.0.a \ 1760 4028 $d/lib/libtcl.so \ 4029 $d/lib/libtcl.dylib \ 1761 4030 $d/lib/libtcl.a" 1762 4031 V_LIB_TCL=FAIL … … 1787 4056 else 1788 4057 echo "Not using UCL tcl - You're on your own!" 1789 cat > conftest.$ac_ext <<EOF 1790 #line 1791 "configure" 1791 #include "confdefs.h" 4058 cat >conftest.$ac_ext <<_ACEOF 4059 /* confdefs.h. */ 4060 _ACEOF 4061 cat confdefs.h >>conftest.$ac_ext 4062 cat >>conftest.$ac_ext <<_ACEOF 4063 /* end confdefs.h. */ 1792 4064 #include <tcl.h> 1793 EOF 1794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1795 { (eval echo configure:1796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1797 if test -z "$ac_err"; then 1798 rm -rf conftest* 4065 _ACEOF 4066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4068 ac_status=$? 4069 grep -v '^ *+' conftest.er1 >conftest.err 4070 rm -f conftest.er1 4071 cat conftest.err >&5 4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4073 (exit $ac_status); } >/dev/null; then 4074 if test -s conftest.err; then 4075 ac_cpp_err=$ac_c_preproc_warn_flag 4076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4077 else 4078 ac_cpp_err= 4079 fi 4080 else 4081 ac_cpp_err=yes 4082 fi 4083 if test -z "$ac_cpp_err"; then 1799 4084 V_INCLUDE_TCL="" 1800 4085 else 1801 echo "$ac_err" >&5 1802 echo "configure: failed program was:" >&5 1803 cat conftest.$ac_ext >&5 1804 rm -rf conftest* 4086 echo "$as_me: failed program was:" >&5 4087 sed 's/^/| /' conftest.$ac_ext >&5 4088 1805 4089 V_INCLUDE_TCL=FAIL 1806 4090 fi 1807 rm -f conftest *4091 rm -f conftest.err conftest.$ac_ext 1808 4092 if test "$V_INCLUDE_TCL" = FAIL; then 1809 4093 echo "checking for tcl.h" … … 1831 4115 fi 1832 4116 fi 1833 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6 1834 echo "configure:1835: checking for main in -ltcl8.0" >&5 1835 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'` 1836 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1837 echo $ac_n "(cached) $ac_c" 1>&6 1838 else 1839 ac_save_LIBS="$LIBS" 4117 echo "$as_me:$LINENO: checking for main in -ltcl8.0" >&5 4118 echo $ECHO_N "checking for main in -ltcl8.0... $ECHO_C" >&6 4119 if test "${ac_cv_lib_tcl8_0_main+set}" = set; then 4120 echo $ECHO_N "(cached) $ECHO_C" >&6 4121 else 4122 ac_check_lib_save_LIBS=$LIBS 1840 4123 LIBS="-ltcl8.0 $LIBS" 1841 cat > conftest.$ac_ext <<EOF 1842 #line 1843 "configure" 1843 #include "confdefs.h" 1844 1845 int main() { 1846 main() 1847 ; return 0; } 1848 EOF 1849 if { (eval echo configure:1850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1850 rm -rf conftest* 1851 eval "ac_cv_lib_$ac_lib_var=yes" 1852 else 1853 echo "configure: failed program was:" >&5 1854 cat conftest.$ac_ext >&5 1855 rm -rf conftest* 1856 eval "ac_cv_lib_$ac_lib_var=no" 1857 fi 1858 rm -f conftest* 1859 LIBS="$ac_save_LIBS" 1860 1861 fi 1862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1863 echo "$ac_t""yes" 1>&6 4124 cat >conftest.$ac_ext <<_ACEOF 4125 /* confdefs.h. */ 4126 _ACEOF 4127 cat confdefs.h >>conftest.$ac_ext 4128 cat >>conftest.$ac_ext <<_ACEOF 4129 /* end confdefs.h. */ 4130 4131 4132 int 4133 main () 4134 { 4135 main (); 4136 ; 4137 return 0; 4138 } 4139 _ACEOF 4140 rm -f conftest.$ac_objext conftest$ac_exeext 4141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4142 (eval $ac_link) 2>conftest.er1 4143 ac_status=$? 4144 grep -v '^ *+' conftest.er1 >conftest.err 4145 rm -f conftest.er1 4146 cat conftest.err >&5 4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4148 (exit $ac_status); } && 4149 { ac_try='test -z "$ac_c_werror_flag" 4150 || test ! -s conftest.err' 4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4152 (eval $ac_try) 2>&5 4153 ac_status=$? 4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4155 (exit $ac_status); }; } && 4156 { ac_try='test -s conftest$ac_exeext' 4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4158 (eval $ac_try) 2>&5 4159 ac_status=$? 4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4161 (exit $ac_status); }; }; then 4162 ac_cv_lib_tcl8_0_main=yes 4163 else 4164 echo "$as_me: failed program was:" >&5 4165 sed 's/^/| /' conftest.$ac_ext >&5 4166 4167 ac_cv_lib_tcl8_0_main=no 4168 fi 4169 rm -f conftest.err conftest.$ac_objext \ 4170 conftest$ac_exeext conftest.$ac_ext 4171 LIBS=$ac_check_lib_save_LIBS 4172 fi 4173 echo "$as_me:$LINENO: result: $ac_cv_lib_tcl8_0_main" >&5 4174 echo "${ECHO_T}$ac_cv_lib_tcl8_0_main" >&6 4175 if test $ac_cv_lib_tcl8_0_main = yes; then 1864 4176 V_LIB_TCL="-ltcl8.0" 1865 4177 else 1866 echo "$ac_t""no" 1>&6 1867 V_LIB_TCL="FAIL" 4178 V_LIB_TCL="FAIL" 1868 4179 fi 1869 4180 … … 1931 4242 1932 4243 4244 1933 4245 # Check whether --with-ucltk or --without-ucltk was given. 1934 4246 if test "${with_ucltk+set}" = set; then … … 1937 4249 else 1938 4250 ucltk="" 1939 fi 4251 fi; 1940 4252 1941 4253 … … 1946 4258 else 1947 4259 d="" 1948 fi 1949 1950 1951 if test "$ucltk" != no; then 1952 if test -z "$ucltk"; then 4260 fi; 4261 4262 if test "$aquatk" == yes; then 4263 V_LIB_TK="-framework Tk" 4264 V_LIBRARY_TK=/Library/Frameworks/Tk.framework/Versions/8.4/Resources/Scripts 4265 V_INCLUDE_TK="-I/Library/Frameworks/Tk.framework/Headers -I/Library/Frameworks/Tk.framework/PrivateHeaders" 4266 elif test "$ucltk" != no; then 4267 if test -z "$ucltk"; then 1953 4268 # UCL defaults 1954 4269 ucltk=../tk-8.0 … … 1960 4275 V_INCLUDE_TK="-I$ucltk/generic" 1961 4276 1962 case "$target" in 4277 case "$target" in 1963 4278 *-*-freebsd*) 1964 4279 V_LIB_TK="$ucltk/unix/libtk80.a" … … 1970 4285 V_LIBRARY_TK=$ucltk/library 1971 4286 echo "Using UCL's tk-8.0: $ucltk" 1972 1973 elif test "$d" != "" ; then 4287 4288 elif test "$d" != "" ; then 1974 4289 echo "Not using UCL tk - You're on your own!" 1975 if test ! -d $d ; then 4290 if test ! -d $d ; then 1976 4291 echo "'$d' is not a directory" 1977 4292 exit 1 … … 2012 4327 else 2013 4328 echo "Not using UCL tk - You're on your own!" 2014 cat > conftest.$ac_ext <<EOF 2015 #line 2016 "configure" 2016 #include "confdefs.h" 4329 cat >conftest.$ac_ext <<_ACEOF 4330 /* confdefs.h. */ 4331 _ACEOF 4332 cat confdefs.h >>conftest.$ac_ext 4333 cat >>conftest.$ac_ext <<_ACEOF 4334 /* end confdefs.h. */ 2017 4335 #include <tk.h> 2018 EOF 2019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2020 { (eval echo configure:2021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2021 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2022 if test -z "$ac_err"; then 2023 rm -rf conftest* 4336 _ACEOF 4337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4339 ac_status=$? 4340 grep -v '^ *+' conftest.er1 >conftest.err 4341 rm -f conftest.er1 4342 cat conftest.err >&5 4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4344 (exit $ac_status); } >/dev/null; then 4345 if test -s conftest.err; then 4346 ac_cpp_err=$ac_c_preproc_warn_flag 4347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4348 else 4349 ac_cpp_err= 4350 fi 4351 else 4352 ac_cpp_err=yes 4353 fi 4354 if test -z "$ac_cpp_err"; then 2024 4355 V_INCLUDE_TK="" 2025 4356 else 2026 echo "$ac_err" >&5 2027 echo "configure: failed program was:" >&5 2028 cat conftest.$ac_ext >&5 2029 rm -rf conftest* 4357 echo "$as_me: failed program was:" >&5 4358 sed 's/^/| /' conftest.$ac_ext >&5 4359 2030 4360 V_INCLUDE_TK=FAIL 2031 4361 fi 2032 rm -f conftest *4362 rm -f conftest.err conftest.$ac_ext 2033 4363 if test "$V_INCLUDE_TK" = FAIL; then 2034 4364 echo "checking for tk.h" … … 2058 4388 fi 2059 4389 fi 2060 echo $ac_n "checking for main in -ltk8.0""... $ac_c" 1>&6 2061 echo "configure:2062: checking for main in -ltk8.0" >&5 2062 ac_lib_var=`echo tk8.0'_'main | sed 'y%./+-%__p_%'` 2063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2064 echo $ac_n "(cached) $ac_c" 1>&6 2065 else 2066 ac_save_LIBS="$LIBS" 4390 echo "$as_me:$LINENO: checking for main in -ltk8.0" >&5 4391 echo $ECHO_N "checking for main in -ltk8.0... $ECHO_C" >&6 4392 if test "${ac_cv_lib_tk8_0_main+set}" = set; then 4393 echo $ECHO_N "(cached) $ECHO_C" >&6 4394 else 4395 ac_check_lib_save_LIBS=$LIBS 2067 4396 LIBS="-ltk8.0 $LIBS" 2068 cat > conftest.$ac_ext <<EOF 2069 #line 2070 "configure" 2070 #include "confdefs.h" 2071 2072 int main() { 2073 main() 2074 ; return 0; } 2075 EOF 2076 if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2077 rm -rf conftest* 2078 eval "ac_cv_lib_$ac_lib_var=yes" 2079 else 2080 echo "configure: failed program was:" >&5 2081 cat conftest.$ac_ext >&5 2082 rm -rf conftest* 2083 eval "ac_cv_lib_$ac_lib_var=no" 2084 fi 2085 rm -f conftest* 2086 LIBS="$ac_save_LIBS" 2087 2088 fi 2089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2090 echo "$ac_t""yes" 1>&6 4397 cat >conftest.$ac_ext <<_ACEOF 4398 /* confdefs.h. */ 4399 _ACEOF 4400 cat confdefs.h >>conftest.$ac_ext 4401 cat >>conftest.$ac_ext <<_ACEOF 4402 /* end confdefs.h. */ 4403 4404 4405 int 4406 main () 4407 { 4408 main (); 4409 ; 4410 return 0; 4411 } 4412 _ACEOF 4413 rm -f conftest.$ac_objext conftest$ac_exeext 4414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4415 (eval $ac_link) 2>conftest.er1 4416 ac_status=$? 4417 grep -v '^ *+' conftest.er1 >conftest.err 4418 rm -f conftest.er1 4419 cat conftest.err >&5 4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4421 (exit $ac_status); } && 4422 { ac_try='test -z "$ac_c_werror_flag" 4423 || test ! -s conftest.err' 4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4425 (eval $ac_try) 2>&5 4426 ac_status=$? 4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4428 (exit $ac_status); }; } && 4429 { ac_try='test -s conftest$ac_exeext' 4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4431 (eval $ac_try) 2>&5 4432 ac_status=$? 4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4434 (exit $ac_status); }; }; then 4435 ac_cv_lib_tk8_0_main=yes 4436 else 4437 echo "$as_me: failed program was:" >&5 4438 sed 's/^/| /' conftest.$ac_ext >&5 4439 4440 ac_cv_lib_tk8_0_main=no 4441 fi 4442 rm -f conftest.err conftest.$ac_objext \ 4443 conftest$ac_exeext conftest.$ac_ext 4444 LIBS=$ac_check_lib_save_LIBS 4445 fi 4446 echo "$as_me:$LINENO: result: $ac_cv_lib_tk8_0_main" >&5 4447 echo "${ECHO_T}$ac_cv_lib_tk8_0_main" >&6 4448 if test $ac_cv_lib_tk8_0_main = yes; then 2091 4449 V_LIB_TK="-ltk8.0" 2092 4450 else 2093 echo "$ac_t""no" 1>&6 2094 V_LIB_TK="FAIL" 4451 V_LIB_TK="FAIL" 2095 4452 fi 2096 4453 … … 2119 4476 fi 2120 4477 done 2121 if test "$V_LIB_TK" = FAIL; then 4478 if test "$V_LIB_TK" = FAIL; then 2122 4479 echo "can't find libtk.a" 2123 4480 exit 1 … … 2181 4538 V_LIB_X264="" 2182 4539 4540 2183 4541 # Check whether --with-aix-shm or --without-aix-shm was given. 2184 4542 if test "${with_aix_shm+set}" = set; then … … 2187 4545 else 2188 4546 lib="" 2189 fi 2190 4547 fi; 2191 4548 if test "$lib" != "" ; then 2192 4549 if test ! -r $lib ; then … … 2199 4556 fi 2200 4557 4558 2201 4559 # Check whether --with-qcam or --without-qcam was given. 2202 4560 if test "${with_qcam+set}" = set; then … … 2205 4563 else 2206 4564 qcamdir="" 2207 fi 2208 4565 fi; 2209 4566 if test "$qcamdir" != "" -a ! -r $qcamdir/qcam.h ; then 2210 4567 echo "'$dir/qcam.h' does not exist" … … 2218 4575 else 2219 4576 ffmpegco="yes" 2220 fi 2221 4577 fi; 2222 4578 if test "$ffmpegco" = "yes" ; then 2223 4579 echo "checking out ffmpeg from svn://svn.mplayerhq.hu/ffmpeg/trunk..." … … 2235 4591 else 2236 4592 x264co="yes" 2237 fi 2238 4593 fi; 2239 4594 if test "$x264co" = "yes" ; then 2240 4595 echo "checking out x264 from svn co svn://svn.videolan.org/x264/trunk..." … … 2246 4601 fi 2247 4602 4603 2248 4604 # Check whether --with-ffmpeginc or --without-ffmpeginc was given. 2249 4605 if test "${with_ffmpeginc+set}" = set; then … … 2252 4608 else 2253 4609 ffmpeginc="" 2254 fi 4610 fi; 2255 4611 2256 4612 # Check whether --with-ffmpeglib or --without-ffmpeglib was given. … … 2260 4616 else 2261 4617 ffmpeglib="" 2262 fi 2263 4618 fi; 2264 4619 2265 4620 if test "$ffmpegco" != "yes"; then … … 2278 4633 echo "checking for FFmpeg headers...yes" 2279 4634 V_INCLUDE="$V_INCLUDE -I$ffmpeginc" 2280 4635 2281 4636 else 2282 4637 2283 ac_safe=`echo "ffmpeg/avcodec.h" | sed 'y%./+-%__p_%'` 2284 echo $ac_n "checking for ffmpeg/avcodec.h""... $ac_c" 1>&6 2285 echo "configure:2286: checking for ffmpeg/avcodec.h" >&5 2286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2287 echo $ac_n "(cached) $ac_c" 1>&6 2288 else 2289 cat > conftest.$ac_ext <<EOF 2290 #line 2291 "configure" 2291 #include "confdefs.h" 4638 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then 4639 echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5 4640 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6 4641 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then 4642 echo $ECHO_N "(cached) $ECHO_C" >&6 4643 fi 4644 echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5 4645 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6 4646 else 4647 # Is the header compilable? 4648 echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5 4649 echo $ECHO_N "checking ffmpeg/avcodec.h usability... $ECHO_C" >&6 4650 cat >conftest.$ac_ext <<_ACEOF 4651 /* confdefs.h. */ 4652 _ACEOF 4653 cat confdefs.h >>conftest.$ac_ext 4654 cat >>conftest.$ac_ext <<_ACEOF 4655 /* end confdefs.h. */ 4656 $ac_includes_default 2292 4657 #include <ffmpeg/avcodec.h> 2293 EOF 2294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2295 { (eval echo configure:2296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2297 if test -z "$ac_err"; then 2298 rm -rf conftest* 2299 eval "ac_cv_header_$ac_safe=yes" 2300 else 2301 echo "$ac_err" >&5 2302 echo "configure: failed program was:" >&5 2303 cat conftest.$ac_ext >&5 2304 rm -rf conftest* 2305 eval "ac_cv_header_$ac_safe=no" 2306 fi 2307 rm -f conftest* 2308 fi 2309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2310 echo "$ac_t""yes" 1>&6 4658 _ACEOF 4659 rm -f conftest.$ac_objext 4660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4661 (eval $ac_compile) 2>conftest.er1 4662 ac_status=$? 4663 grep -v '^ *+' conftest.er1 >conftest.err 4664 rm -f conftest.er1 4665 cat conftest.err >&5 4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4667 (exit $ac_status); } && 4668 { ac_try='test -z "$ac_c_werror_flag" 4669 || test ! -s conftest.err' 4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4671 (eval $ac_try) 2>&5 4672 ac_status=$? 4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4674 (exit $ac_status); }; } && 4675 { ac_try='test -s conftest.$ac_objext' 4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4677 (eval $ac_try) 2>&5 4678 ac_status=$? 4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4680 (exit $ac_status); }; }; then 4681 ac_header_compiler=yes 4682 else 4683 echo "$as_me: failed program was:" >&5 4684 sed 's/^/| /' conftest.$ac_ext >&5 4685 4686 ac_header_compiler=no 4687 fi 4688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4690 echo "${ECHO_T}$ac_header_compiler" >&6 4691 4692 # Is the header present? 4693 echo "$as_me:$LINENO: checking ffmpeg/avcodec.h presence" >&5 4694 echo $ECHO_N "checking ffmpeg/avcodec.h presence... $ECHO_C" >&6 4695 cat >conftest.$ac_ext <<_ACEOF 4696 /* confdefs.h. */ 4697 _ACEOF 4698 cat confdefs.h >>conftest.$ac_ext 4699 cat >>conftest.$ac_ext <<_ACEOF 4700 /* end confdefs.h. */ 4701 #include <ffmpeg/avcodec.h> 4702 _ACEOF 4703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4705 ac_status=$? 4706 grep -v '^ *+' conftest.er1 >conftest.err 4707 rm -f conftest.er1 4708 cat conftest.err >&5 4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4710 (exit $ac_status); } >/dev/null; then 4711 if test -s conftest.err; then 4712 ac_cpp_err=$ac_c_preproc_warn_flag 4713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4714 else 4715 ac_cpp_err= 4716 fi 4717 else 4718 ac_cpp_err=yes 4719 fi 4720 if test -z "$ac_cpp_err"; then 4721 ac_header_preproc=yes 4722 else 4723 echo "$as_me: failed program was:" >&5 4724 sed 's/^/| /' conftest.$ac_ext >&5 4725 4726 ac_header_preproc=no 4727 fi 4728 rm -f conftest.err conftest.$ac_ext 4729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4730 echo "${ECHO_T}$ac_header_preproc" >&6 4731 4732 # So? What about this header? 4733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4734 yes:no: ) 4735 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5 4736 echo "$as_me: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4737 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&5 4738 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&2;} 4739 ac_header_preproc=yes 4740 ;; 4741 no:yes:* ) 4742 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&5 4743 echo "$as_me: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&2;} 4744 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&5 4745 echo "$as_me: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&2;} 4746 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&5 4747 echo "$as_me: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&2;} 4748 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&5 4749 echo "$as_me: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&2;} 4750 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&5 4751 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&2;} 4752 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&5 4753 echo "$as_me: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&2;} 4754 ( 4755 cat <<\_ASBOX 4756 ## ------------------------------------------ ## 4757 ## Report this to the AC_PACKAGE_NAME lists. ## 4758 ## ------------------------------------------ ## 4759 _ASBOX 4760 ) | 4761 sed "s/^/$as_me: WARNING: /" >&2 4762 ;; 4763 esac 4764 echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5 4765 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6 4766 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then 4767 echo $ECHO_N "(cached) $ECHO_C" >&6 4768 else 4769 ac_cv_header_ffmpeg_avcodec_h=$ac_header_preproc 4770 fi 4771 echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5 4772 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6 4773 4774 fi 4775 if test $ac_cv_header_ffmpeg_avcodec_h = yes; then 2311 4776 : 2312 4777 else 2313 echo "$ac_t""no" 1>&62314 4778 2315 4779 echo "Error! you need to have avcodec.h around." 2316 4780 exit -1 2317 2318 fi 2319 2320 ac_safe=`echo "ffmpeg/avutil.h" | sed 'y%./+-%__p_%'` 2321 echo $ac_n "checking for ffmpeg/avutil.h""... $ac_c" 1>&6 2322 echo "configure:2323: checking for ffmpeg/avutil.h" >&5 2323 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2324 echo $ac_n "(cached) $ac_c" 1>&6 2325 else 2326 cat > conftest.$ac_ext <<EOF 2327 #line 2328 "configure" 2328 #include "confdefs.h" 4781 4782 fi 4783 4784 4785 if test "${ac_cv_header_ffmpeg_avutil_h+set}" = set; then 4786 echo "$as_me:$LINENO: checking for ffmpeg/avutil.h" >&5 4787 echo $ECHO_N "checking for ffmpeg/avutil.h... $ECHO_C" >&6 4788 if test "${ac_cv_header_ffmpeg_avutil_h+set}" = set; then 4789 echo $ECHO_N "(cached) $ECHO_C" >&6 4790 fi 4791 echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avutil_h" >&5 4792 echo "${ECHO_T}$ac_cv_header_ffmpeg_avutil_h" >&6 4793 else 4794 # Is the header compilable? 4795 echo "$as_me:$LINENO: checking ffmpeg/avutil.h usability" >&5 4796 echo $ECHO_N "checking ffmpeg/avutil.h usability... $ECHO_C" >&6 4797 cat >conftest.$ac_ext <<_ACEOF 4798 /* confdefs.h. */ 4799 _ACEOF 4800 cat confdefs.h >>conftest.$ac_ext 4801 cat >>conftest.$ac_ext <<_ACEOF 4802 /* end confdefs.h. */ 4803 $ac_includes_default 2329 4804 #include <ffmpeg/avutil.h> 2330 EOF 2331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2332 { (eval echo configure:2333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2334 if test -z "$ac_err"; then 2335 rm -rf conftest* 2336 eval "ac_cv_header_$ac_safe=yes" 2337 else 2338 echo "$ac_err" >&5 2339 echo "configure: failed program was:" >&5 2340 cat conftest.$ac_ext >&5 2341 rm -rf conftest* 2342 eval "ac_cv_header_$ac_safe=no" 2343 fi 2344 rm -f conftest* 2345 fi 2346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2347 echo "$ac_t""yes" 1>&6 4805 _ACEOF 4806 rm -f conftest.$ac_objext 4807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4808 (eval $ac_compile) 2>conftest.er1 4809 ac_status=$? 4810 grep -v '^ *+' conftest.er1 >conftest.err 4811 rm -f conftest.er1 4812 cat conftest.err >&5 4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4814 (exit $ac_status); } && 4815 { ac_try='test -z "$ac_c_werror_flag" 4816 || test ! -s conftest.err' 4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4818 (eval $ac_try) 2>&5 4819 ac_status=$? 4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4821 (exit $ac_status); }; } && 4822 { ac_try='test -s conftest.$ac_objext' 4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4824 (eval $ac_try) 2>&5 4825 ac_status=$? 4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4827 (exit $ac_status); }; }; then 4828 ac_header_compiler=yes 4829 else 4830 echo "$as_me: failed program was:" >&5 4831 sed 's/^/| /' conftest.$ac_ext >&5 4832 4833 ac_header_compiler=no 4834 fi 4835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4837 echo "${ECHO_T}$ac_header_compiler" >&6 4838 4839 # Is the header present? 4840 echo "$as_me:$LINENO: checking ffmpeg/avutil.h presence" >&5 4841 echo $ECHO_N "checking ffmpeg/avutil.h presence... $ECHO_C" >&6 4842 cat >conftest.$ac_ext <<_ACEOF 4843 /* confdefs.h. */ 4844 _ACEOF 4845 cat confdefs.h >>conftest.$ac_ext 4846 cat >>conftest.$ac_ext <<_ACEOF 4847 /* end confdefs.h. */ 4848 #include <ffmpeg/avutil.h> 4849 _ACEOF 4850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4852 ac_status=$? 4853 grep -v '^ *+' conftest.er1 >conftest.err 4854 rm -f conftest.er1 4855 cat conftest.err >&5 4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4857 (exit $ac_status); } >/dev/null; then 4858 if test -s conftest.err; then 4859 ac_cpp_err=$ac_c_preproc_warn_flag 4860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4861 else 4862 ac_cpp_err= 4863 fi 4864 else 4865 ac_cpp_err=yes 4866 fi 4867 if test -z "$ac_cpp_err"; then 4868 ac_header_preproc=yes 4869 else 4870 echo "$as_me: failed program was:" >&5 4871 sed 's/^/| /' conftest.$ac_ext >&5 4872 4873 ac_header_preproc=no 4874 fi 4875 rm -f conftest.err conftest.$ac_ext 4876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4877 echo "${ECHO_T}$ac_header_preproc" >&6 4878 4879 # So? What about this header? 4880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4881 yes:no: ) 4882 { echo "$as_me:$LINENO: WARNING: ffmpeg/avutil.h: accepted by the compiler, rejected by the preprocessor!" >&5 4883 echo "$as_me: WARNING: ffmpeg/avutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4884 { echo "$as_me:$LINENO: WARNING: ffmpeg/avutil.h: proceeding with the compiler's result" >&5 4885 echo "$as_me: WARNING: ffmpeg/avutil.h: proceeding with the compiler's result" >&2;} 4886 ac_header_preproc=yes 4887 ;; 4888 no:yes:* ) 4889 { echo "$as_me:$LINENO: WARNING: ffmpeg/avutil.h: present but cannot be compiled" >&5 4890 echo "$as_me: WARNING: ffmpeg/avutil.h: present but cannot be compiled" >&2;} 4891 { echo "$as_me:$LINENO: WARNING: ffmpeg/avutil.h: check for missing prerequisite headers?" >&5 4892 echo "$as_me: WARNING: ffmpeg/avutil.h: check for missing prerequisite headers?" >&2;} 4893 { echo "$as_me:$LINENO: WARNING: ffmpeg/avutil.h: see the Autoconf documentation" >&5 4894 echo "$as_me: WARNING: ffmpeg/avutil.h: see the Autoconf documentation" >&2;} 4895 { echo "$as_me:$LINENO: WARNING: ffmpeg/avutil.h: section \"Present But Cannot Be Compiled\"" >&5 4896 echo "$as_me: WARNING: ffmpeg/avutil.h: section \"Present But Cannot Be Compiled\"" >&2;} 4897 { echo "$as_me:$LINENO: WARNING: ffmpeg/avutil.h: proceeding with the preprocessor's result" >&5 4898 echo "$as_me: WARNING: ffmpeg/avutil.h: proceeding with the preprocessor's result" >&2;} 4899 { echo "$as_me:$LINENO: WARNING: ffmpeg/avutil.h: in the future, the compiler will take precedence" >&5 4900 echo "$as_me: WARNING: ffmpeg/avutil.h: in the future, the compiler will take precedence" >&2;} 4901 ( 4902 cat <<\_ASBOX 4903 ## ------------------------------------------ ## 4904 ## Report this to the AC_PACKAGE_NAME lists. ## 4905 ## ------------------------------------------ ## 4906 _ASBOX 4907 ) | 4908 sed "s/^/$as_me: WARNING: /" >&2 4909 ;; 4910 esac 4911 echo "$as_me:$LINENO: checking for ffmpeg/avutil.h" >&5 4912 echo $ECHO_N "checking for ffmpeg/avutil.h... $ECHO_C" >&6 4913 if test "${ac_cv_header_ffmpeg_avutil_h+set}" = set; then 4914 echo $ECHO_N "(cached) $ECHO_C" >&6 4915 else 4916 ac_cv_header_ffmpeg_avutil_h=$ac_header_preproc 4917 fi 4918 echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avutil_h" >&5 4919 echo "${ECHO_T}$ac_cv_header_ffmpeg_avutil_h" >&6 4920 4921 fi 4922 if test $ac_cv_header_ffmpeg_avutil_h = yes; then 2348 4923 : 2349 4924 else 2350 echo "$ac_t""no" 1>&62351 4925 2352 4926 echo "Error! you need to have avutil.h around." 2353 4927 exit -1 2354 2355 fi 2356 2357 ac_safe=`echo "ffmpeg/swscale.h" | sed 'y%./+-%__p_%'` 2358 echo $ac_n "checking for ffmpeg/swscale.h""... $ac_c" 1>&6 2359 echo "configure:2360: checking for ffmpeg/swscale.h" >&5 2360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2361 echo $ac_n "(cached) $ac_c" 1>&6 2362 else 2363 cat > conftest.$ac_ext <<EOF 2364 #line 2365 "configure" 2365 #include "confdefs.h" 4928 4929 fi 4930 4931 4932 if test "${ac_cv_header_ffmpeg_swscale_h+set}" = set; then 4933 echo "$as_me:$LINENO: checking for ffmpeg/swscale.h" >&5 4934 echo $ECHO_N "checking for ffmpeg/swscale.h... $ECHO_C" >&6 4935 if test "${ac_cv_header_ffmpeg_swscale_h+set}" = set; then 4936 echo $ECHO_N "(cached) $ECHO_C" >&6 4937 fi 4938 echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_swscale_h" >&5 4939 echo "${ECHO_T}$ac_cv_header_ffmpeg_swscale_h" >&6 4940 else 4941 # Is the header compilable? 4942 echo "$as_me:$LINENO: checking ffmpeg/swscale.h usability" >&5 4943 echo $ECHO_N "checking ffmpeg/swscale.h usability... $ECHO_C" >&6 4944 cat >conftest.$ac_ext <<_ACEOF 4945 /* confdefs.h. */ 4946 _ACEOF 4947 cat confdefs.h >>conftest.$ac_ext 4948 cat >>conftest.$ac_ext <<_ACEOF 4949 /* end confdefs.h. */ 4950 $ac_includes_default 2366 4951 #include <ffmpeg/swscale.h> 2367 EOF 2368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2369 { (eval echo configure:2370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2371 if test -z "$ac_err"; then 2372 rm -rf conftest* 2373 eval "ac_cv_header_$ac_safe=yes" 2374 else 2375 echo "$ac_err" >&5 2376 echo "configure: failed program was:" >&5 2377 cat conftest.$ac_ext >&5 2378 rm -rf conftest* 2379 eval "ac_cv_header_$ac_safe=no" 2380 fi 2381 rm -f conftest* 2382 fi 2383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2384 echo "$ac_t""yes" 1>&6 4952 _ACEOF 4953 rm -f conftest.$ac_objext 4954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4955 (eval $ac_compile) 2>conftest.er1 4956 ac_status=$? 4957 grep -v '^ *+' conftest.er1 >conftest.err 4958 rm -f conftest.er1 4959 cat conftest.err >&5 4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4961 (exit $ac_status); } && 4962 { ac_try='test -z "$ac_c_werror_flag" 4963 || test ! -s conftest.err' 4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4965 (eval $ac_try) 2>&5 4966 ac_status=$? 4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4968 (exit $ac_status); }; } && 4969 { ac_try='test -s conftest.$ac_objext' 4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4971 (eval $ac_try) 2>&5 4972 ac_status=$? 4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4974 (exit $ac_status); }; }; then 4975 ac_header_compiler=yes 4976 else 4977 echo "$as_me: failed program was:" >&5 4978 sed 's/^/| /' conftest.$ac_ext >&5 4979 4980 ac_header_compiler=no 4981 fi 4982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4984 echo "${ECHO_T}$ac_header_compiler" >&6 4985 4986 # Is the header present? 4987 echo "$as_me:$LINENO: checking ffmpeg/swscale.h presence" >&5 4988 echo $ECHO_N "checking ffmpeg/swscale.h presence... $ECHO_C" >&6 4989 cat >conftest.$ac_ext <<_ACEOF 4990 /* confdefs.h. */ 4991 _ACEOF 4992 cat confdefs.h >>conftest.$ac_ext 4993 cat >>conftest.$ac_ext <<_ACEOF 4994 /* end confdefs.h. */ 4995 #include <ffmpeg/swscale.h> 4996 _ACEOF 4997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4999 ac_status=$? 5000 grep -v '^ *+' conftest.er1 >conftest.err 5001 rm -f conftest.er1 5002 cat conftest.err >&5 5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5004 (exit $ac_status); } >/dev/null; then 5005 if test -s conftest.err; then 5006 ac_cpp_err=$ac_c_preproc_warn_flag 5007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5008 else 5009 ac_cpp_err= 5010 fi 5011 else 5012 ac_cpp_err=yes 5013 fi 5014 if test -z "$ac_cpp_err"; then 5015 ac_header_preproc=yes 5016 else 5017 echo "$as_me: failed program was:" >&5 5018 sed 's/^/| /' conftest.$ac_ext >&5 5019 5020 ac_header_preproc=no 5021 fi 5022 rm -f conftest.err conftest.$ac_ext 5023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5024 echo "${ECHO_T}$ac_header_preproc" >&6 5025 5026 # So? What about this header? 5027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5028 yes:no: ) 5029 { echo "$as_me:$LINENO: WARNING: ffmpeg/swscale.h: accepted by the compiler, rejected by the preprocessor!" >&5 5030 echo "$as_me: WARNING: ffmpeg/swscale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5031 { echo "$as_me:$LINENO: WARNING: ffmpeg/swscale.h: proceeding with the compiler's result" >&5 5032 echo "$as_me: WARNING: ffmpeg/swscale.h: proceeding with the compiler's result" >&2;} 5033 ac_header_preproc=yes 5034 ;; 5035 no:yes:* ) 5036 { echo "$as_me:$LINENO: WARNING: ffmpeg/swscale.h: present but cannot be compiled" >&5 5037 echo "$as_me: WARNING: ffmpeg/swscale.h: present but cannot be compiled" >&2;} 5038 { echo "$as_me:$LINENO: WARNING: ffmpeg/swscale.h: check for missing prerequisite headers?" >&5 5039 echo "$as_me: WARNING: ffmpeg/swscale.h: check for missing prerequisite headers?" >&2;} 5040 { echo "$as_me:$LINENO: WARNING: ffmpeg/swscale.h: see the Autoconf documentation" >&5 5041 echo "$as_me: WARNING: ffmpeg/swscale.h: see the Autoconf documentation" >&2;} 5042 { echo "$as_me:$LINENO: WARNING: ffmpeg/swscale.h: section \"Present But Cannot Be Compiled\"" >&5 5043 echo "$as_me: WARNING: ffmpeg/swscale.h: section \"Present But Cannot Be Compiled\"" >&2;} 5044 { echo "$as_me:$LINENO: WARNING: ffmpeg/swscale.h: proceeding with the preprocessor's result" >&5 5045 echo "$as_me: WARNING: ffmpeg/swscale.h: proceeding with the preprocessor's result" >&2;} 5046 { echo "$as_me:$LINENO: WARNING: ffmpeg/swscale.h: in the future, the compiler will take precedence" >&5 5047 echo "$as_me: WARNING: ffmpeg/swscale.h: in the future, the compiler will take precedence" >&2;} 5048 ( 5049 cat <<\_ASBOX 5050 ## ------------------------------------------ ## 5051 ## Report this to the AC_PACKAGE_NAME lists. ## 5052 ## ------------------------------------------ ## 5053 _ASBOX 5054 ) | 5055 sed "s/^/$as_me: WARNING: /" >&2 5056 ;; 5057 esac 5058 echo "$as_me:$LINENO: checking for ffmpeg/swscale.h" >&5 5059 echo $ECHO_N "checking for ffmpeg/swscale.h... $ECHO_C" >&6 5060 if test "${ac_cv_header_ffmpeg_swscale_h+set}" = set; then 5061 echo $ECHO_N "(cached) $ECHO_C" >&6 5062 else 5063 ac_cv_header_ffmpeg_swscale_h=$ac_header_preproc 5064 fi 5065 echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_swscale_h" >&5 5066 echo "${ECHO_T}$ac_cv_header_ffmpeg_swscale_h" >&6 5067 5068 fi 5069 if test $ac_cv_header_ffmpeg_swscale_h = yes; then 2385 5070 : 2386 5071 else 2387 echo "$ac_t""no" 1>&62388 5072 2389 5073 echo "Error! you need to have swscale.h around." 2390 5074 exit -1 2391 2392 fi 5075 5076 fi 5077 2393 5078 2394 5079 fi … … 2404 5089 V_LIB_FFMPEG="-L$ffmpeglib -lavcodec -lavutil -lswscale" 2405 5090 else 2406 echo $ac_n "checking for main in -lavcodec""... $ac_c" 1>&6 2407 echo " configure:2408: checking for main in -lavcodec" >&52408 ac_lib_var=`echo avcodec'_'main | sed 'y%./+-%__p_%'` 2409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then2410 echo $ ac_n "(cached) $ac_c" 1>&62411 else 2412 ac_ save_LIBS="$LIBS"5091 5092 echo "$as_me:$LINENO: checking for main in -lavcodec" >&5 5093 echo $ECHO_N "checking for main in -lavcodec... $ECHO_C" >&6 5094 if test "${ac_cv_lib_avcodec_main+set}" = set; then 5095 echo $ECHO_N "(cached) $ECHO_C" >&6 5096 else 5097 ac_check_lib_save_LIBS=$LIBS 2413 5098 LIBS="-lavcodec $LIBS" 2414 cat > conftest.$ac_ext <<EOF 2415 #line 2416 "configure" 2416 #include "confdefs.h" 2417 2418 int main() { 2419 main() 2420 ; return 0; } 2421 EOF 2422 if { (eval echo configure:2423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2423 rm -rf conftest* 2424 eval "ac_cv_lib_$ac_lib_var=yes" 2425 else 2426 echo "configure: failed program was:" >&5 2427 cat conftest.$ac_ext >&5 2428 rm -rf conftest* 2429 eval "ac_cv_lib_$ac_lib_var=no" 2430 fi 2431 rm -f conftest* 2432 LIBS="$ac_save_LIBS" 2433 2434 fi 2435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2436 echo "$ac_t""yes" 1>&6 2437 ac_tr_lib=HAVE_LIB`echo avcodec | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2438 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2439 cat >> confdefs.h <<EOF 2440 #define $ac_tr_lib 1 2441 EOF 5099 cat >conftest.$ac_ext <<_ACEOF 5100 /* confdefs.h. */ 5101 _ACEOF 5102 cat confdefs.h >>conftest.$ac_ext 5103 cat >>conftest.$ac_ext <<_ACEOF 5104 /* end confdefs.h. */ 5105 5106 5107 int 5108 main () 5109 { 5110 main (); 5111 ; 5112 return 0; 5113 } 5114 _ACEOF 5115 rm -f conftest.$ac_objext conftest$ac_exeext 5116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5117 (eval $ac_link) 2>conftest.er1 5118 ac_status=$? 5119 grep -v '^ *+' conftest.er1 >conftest.err 5120 rm -f conftest.er1 5121 cat conftest.err >&5 5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5123 (exit $ac_status); } && 5124 { ac_try='test -z "$ac_c_werror_flag" 5125 || test ! -s conftest.err' 5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5127 (eval $ac_try) 2>&5 5128 ac_status=$? 5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5130 (exit $ac_status); }; } && 5131 { ac_try='test -s conftest$ac_exeext' 5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5133 (eval $ac_try) 2>&5 5134 ac_status=$? 5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5136 (exit $ac_status); }; }; then 5137 ac_cv_lib_avcodec_main=yes 5138 else 5139 echo "$as_me: failed program was:" >&5 5140 sed 's/^/| /' conftest.$ac_ext >&5 5141 5142 ac_cv_lib_avcodec_main=no 5143 fi 5144 rm -f conftest.err conftest.$ac_objext \ 5145 conftest$ac_exeext conftest.$ac_ext 5146 LIBS=$ac_check_lib_save_LIBS 5147 fi 5148 echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_main" >&5 5149 echo "${ECHO_T}$ac_cv_lib_avcodec_main" >&6 5150 if test $ac_cv_lib_avcodec_main = yes; then 5151 cat >>confdefs.h <<_ACEOF 5152 #define HAVE_LIBAVCODEC 1 5153 _ACEOF 2442 5154 2443 5155 LIBS="-lavcodec $LIBS" 2444 5156 2445 5157 else 2446 echo "$ac_t""no" 1>&62447 5158 2448 5159 echo "Error! you need to have libavcodec around." 2449 5160 exit -1 2450 2451 fi 2452 2453 echo $ac_n "checking for main in -lavutil""... $ac_c" 1>&6 2454 echo " configure:2455: checking for main in -lavutil" >&52455 ac_lib_var=`echo avutil'_'main | sed 'y%./+-%__p_%'` 2456 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then2457 echo $ ac_n "(cached) $ac_c" 1>&62458 else 2459 ac_ save_LIBS="$LIBS"5161 5162 fi 5163 5164 5165 echo "$as_me:$LINENO: checking for main in -lavutil" >&5 5166 echo $ECHO_N "checking for main in -lavutil... $ECHO_C" >&6 5167 if test "${ac_cv_lib_avutil_main+set}" = set; then 5168 echo $ECHO_N "(cached) $ECHO_C" >&6 5169 else 5170 ac_check_lib_save_LIBS=$LIBS 2460 5171 LIBS="-lavutil $LIBS" 2461 cat > conftest.$ac_ext <<EOF 2462 #line 2463 "configure" 2463 #include "confdefs.h" 2464 2465 int main() { 2466 main() 2467 ; return 0; } 2468 EOF 2469 if { (eval echo configure:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2470 rm -rf conftest* 2471 eval "ac_cv_lib_$ac_lib_var=yes" 2472 else 2473 echo "configure: failed program was:" >&5 2474 cat conftest.$ac_ext >&5 2475 rm -rf conftest* 2476 eval "ac_cv_lib_$ac_lib_var=no" 2477 fi 2478 rm -f conftest* 2479 LIBS="$ac_save_LIBS" 2480 2481 fi 2482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2483 echo "$ac_t""yes" 1>&6 2484 ac_tr_lib=HAVE_LIB`echo avutil | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2485 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2486 cat >> confdefs.h <<EOF 2487 #define $ac_tr_lib 1 2488 EOF 5172 cat >conftest.$ac_ext <<_ACEOF 5173 /* confdefs.h. */ 5174 _ACEOF 5175 cat confdefs.h >>conftest.$ac_ext 5176 cat >>conftest.$ac_ext <<_ACEOF 5177 /* end confdefs.h. */ 5178 5179 5180 int 5181 main () 5182 { 5183 main (); 5184 ; 5185 return 0; 5186 } 5187 _ACEOF 5188 rm -f conftest.$ac_objext conftest$ac_exeext 5189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5190 (eval $ac_link) 2>conftest.er1 5191 ac_status=$? 5192 grep -v '^ *+' conftest.er1 >conftest.err 5193 rm -f conftest.er1 5194 cat conftest.err >&5 5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5196 (exit $ac_status); } && 5197 { ac_try='test -z "$ac_c_werror_flag" 5198 || test ! -s conftest.err' 5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5200 (eval $ac_try) 2>&5 5201 ac_status=$? 5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5203 (exit $ac_status); }; } && 5204 { ac_try='test -s conftest$ac_exeext' 5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5206 (eval $ac_try) 2>&5 5207 ac_status=$? 5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5209 (exit $ac_status); }; }; then 5210 ac_cv_lib_avutil_main=yes 5211 else 5212 echo "$as_me: failed program was:" >&5 5213 sed 's/^/| /' conftest.$ac_ext >&5 5214 5215 ac_cv_lib_avutil_main=no 5216 fi 5217 rm -f conftest.err conftest.$ac_objext \ 5218 conftest$ac_exeext conftest.$ac_ext 5219 LIBS=$ac_check_lib_save_LIBS 5220 fi 5221 echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_main" >&5 5222 echo "${ECHO_T}$ac_cv_lib_avutil_main" >&6 5223 if test $ac_cv_lib_avutil_main = yes; then 5224 cat >>confdefs.h <<_ACEOF 5225 #define HAVE_LIBAVUTIL 1 5226 _ACEOF 2489 5227 2490 5228 LIBS="-lavutil $LIBS" 2491 5229 2492 5230 else 2493 echo "$ac_t""no" 1>&62494 5231 2495 5232 echo "Error! you need to have libavutil around." 2496 5233 exit -1 2497 2498 fi 2499 2500 echo $ac_n "checking for main in -lswscale""... $ac_c" 1>&6 2501 echo " configure:2502: checking for main in -lswscale" >&52502 ac_lib_var=`echo swscale'_'main | sed 'y%./+-%__p_%'` 2503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then2504 echo $ ac_n "(cached) $ac_c" 1>&62505 else 2506 ac_ save_LIBS="$LIBS"5234 5235 fi 5236 5237 5238 echo "$as_me:$LINENO: checking for main in -lswscale" >&5 5239 echo $ECHO_N "checking for main in -lswscale... $ECHO_C" >&6 5240 if test "${ac_cv_lib_swscale_main+set}" = set; then 5241 echo $ECHO_N "(cached) $ECHO_C" >&6 5242 else 5243 ac_check_lib_save_LIBS=$LIBS 2507 5244 LIBS="-lswscale $LIBS" 2508 cat > conftest.$ac_ext <<EOF 2509 #line 2510 "configure" 2510 #include "confdefs.h" 2511 2512 int main() { 2513 main() 2514 ; return 0; } 2515 EOF 2516 if { (eval echo configure:2517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2517 rm -rf conftest* 2518 eval "ac_cv_lib_$ac_lib_var=yes" 2519 else 2520 echo "configure: failed program was:" >&5 2521 cat conftest.$ac_ext >&5 2522 rm -rf conftest* 2523 eval "ac_cv_lib_$ac_lib_var=no" 2524 fi 2525 rm -f conftest* 2526 LIBS="$ac_save_LIBS" 2527 2528 fi 2529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2530 echo "$ac_t""yes" 1>&6 2531 ac_tr_lib=HAVE_LIB`echo swscale | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2532 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2533 cat >> confdefs.h <<EOF 2534 #define $ac_tr_lib 1 2535 EOF 5245 cat >conftest.$ac_ext <<_ACEOF 5246 /* confdefs.h. */ 5247 _ACEOF 5248 cat confdefs.h >>conftest.$ac_ext 5249 cat >>conftest.$ac_ext <<_ACEOF 5250 /* end confdefs.h. */ 5251 5252 5253 int 5254 main () 5255 { 5256 main (); 5257 ; 5258 return 0; 5259 } 5260 _ACEOF 5261 rm -f conftest.$ac_objext conftest$ac_exeext 5262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5263 (eval $ac_link) 2>conftest.er1 5264 ac_status=$? 5265 grep -v '^ *+' conftest.er1 >conftest.err 5266 rm -f conftest.er1 5267 cat conftest.err >&5 5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5269 (exit $ac_status); } && 5270 { ac_try='test -z "$ac_c_werror_flag" 5271 || test ! -s conftest.err' 5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5273 (eval $ac_try) 2>&5 5274 ac_status=$? 5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5276 (exit $ac_status); }; } && 5277 { ac_try='test -s conftest$ac_exeext' 5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5279 (eval $ac_try) 2>&5 5280 ac_status=$? 5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5282 (exit $ac_status); }; }; then 5283 ac_cv_lib_swscale_main=yes 5284 else 5285 echo "$as_me: failed program was:" >&5 5286 sed 's/^/| /' conftest.$ac_ext >&5 5287 5288 ac_cv_lib_swscale_main=no 5289 fi 5290 rm -f conftest.err conftest.$ac_objext \ 5291 conftest$ac_exeext conftest.$ac_ext 5292 LIBS=$ac_check_lib_save_LIBS 5293 fi 5294 echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_main" >&5 5295 echo "${ECHO_T}$ac_cv_lib_swscale_main" >&6 5296 if test $ac_cv_lib_swscale_main = yes; then 5297 cat >>confdefs.h <<_ACEOF 5298 #define HAVE_LIBSWSCALE 1 5299 _ACEOF 2536 5300 2537 5301 LIBS="-lswscale $LIBS" 2538 5302 2539 5303 else 2540 echo "$ac_t""no" 1>&62541 5304 2542 5305 echo "Error! you need to have libswscale around." 2543 5306 exit -1 2544 5307 2545 5308 fi 2546 5309 2547 5310 V_LIB_FFMPEG="-lavcodec -lavutil -lswscale" 2548 5311 fi 2549 fi 5312 fi 5313 2550 5314 2551 5315 # Check whether --with-x264inc or --without-x264inc was given. … … 2555 5319 else 2556 5320 x264inc="" 2557 fi 5321 fi; 2558 5322 2559 5323 # Check whether --with-x264lib or --without-x264lib was given. … … 2563 5327 else 2564 5328 x264lib="" 2565 fi 2566 2567 if test "x264co" != "yes" ; then 5329 fi; 5330 if test "$x264co" != "yes" ; then 2568 5331 if test "$x264inc" != "" ; then 2569 5332 if test ! -r $x264inc/x264.h ; then … … 2586 5349 V_LIB_X264="-L$x264lib -lx264" 2587 5350 else 2588 echo $ac_n "checking for main in -lx264""... $ac_c" 1>&6 2589 echo " configure:2590: checking for main in -lx264" >&52590 ac_lib_var=`echo x264'_'main | sed 'y%./+-%__p_%'` 2591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then2592 echo $ ac_n "(cached) $ac_c" 1>&62593 else 2594 ac_ save_LIBS="$LIBS"5351 5352 echo "$as_me:$LINENO: checking for main in -lx264" >&5 5353 echo $ECHO_N "checking for main in -lx264... $ECHO_C" >&6 5354 if test "${ac_cv_lib_x264_main+set}" = set; then 5355 echo $ECHO_N "(cached) $ECHO_C" >&6 5356 else 5357 ac_check_lib_save_LIBS=$LIBS 2595 5358 LIBS="-lx264 $LIBS" 2596 cat > conftest.$ac_ext <<EOF 2597 #line 2598 "configure" 2598 #include "confdefs.h" 2599 2600 int main() { 2601 main() 2602 ; return 0; } 2603 EOF 2604 if { (eval echo configure:2605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2605 rm -rf conftest* 2606 eval "ac_cv_lib_$ac_lib_var=yes" 2607 else 2608 echo "configure: failed program was:" >&5 2609 cat conftest.$ac_ext >&5 2610 rm -rf conftest* 2611 eval "ac_cv_lib_$ac_lib_var=no" 2612 fi 2613 rm -f conftest* 2614 LIBS="$ac_save_LIBS" 2615 2616 fi 2617 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2618 echo "$ac_t""yes" 1>&6 2619 ac_tr_lib=HAVE_LIB`echo x264 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2620 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2621 cat >> confdefs.h <<EOF 2622 #define $ac_tr_lib 1 2623 EOF 5359 cat >conftest.$ac_ext <<_ACEOF 5360 /* confdefs.h. */ 5361 _ACEOF 5362 cat confdefs.h >>conftest.$ac_ext 5363 cat >>conftest.$ac_ext <<_ACEOF 5364 /* end confdefs.h. */ 5365 5366 5367 int 5368 main () 5369 { 5370 main (); 5371 ; 5372 return 0; 5373 } 5374 _ACEOF 5375 rm -f conftest.$ac_objext conftest$ac_exeext 5376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5377 (eval $ac_link) 2>conftest.er1 5378 ac_status=$? 5379 grep -v '^ *+' conftest.er1 >conftest.err 5380 rm -f conftest.er1 5381 cat conftest.err >&5 5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5383 (exit $ac_status); } && 5384 { ac_try='test -z "$ac_c_werror_flag" 5385 || test ! -s conftest.err' 5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5387 (eval $ac_try) 2>&5 5388 ac_status=$? 5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5390 (exit $ac_status); }; } && 5391 { ac_try='test -s conftest$ac_exeext' 5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5393 (eval $ac_try) 2>&5 5394 ac_status=$? 5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5396 (exit $ac_status); }; }; then 5397 ac_cv_lib_x264_main=yes 5398 else 5399 echo "$as_me: failed program was:" >&5 5400 sed 's/^/| /' conftest.$ac_ext >&5 5401 5402 ac_cv_lib_x264_main=no 5403 fi 5404 rm -f conftest.err conftest.$ac_objext \ 5405 conftest$ac_exeext conftest.$ac_ext 5406 LIBS=$ac_check_lib_save_LIBS 5407 fi 5408 echo "$as_me:$LINENO: result: $ac_cv_lib_x264_main" >&5 5409 echo "${ECHO_T}$ac_cv_lib_x264_main" >&6 5410 if test $ac_cv_lib_x264_main = yes; then 5411 cat >>confdefs.h <<_ACEOF 5412 #define HAVE_LIBX264 1 5413 _ACEOF 2624 5414 2625 5415 LIBS="-lx264 $LIBS" 2626 5416 2627 5417 else 2628 echo "$ac_t""no" 1>&62629 5418 2630 5419 echo "Error! you need to have libx264 around." 2631 5420 exit -1 2632 5421 2633 5422 fi 2634 5423 … … 2644 5433 else 2645 5434 cpudetect="yes" 2646 fi 2647 5435 fi; 2648 5436 if test "$arch" = "x86_32" -o "$arch" = "x86_64"; then 2649 5437 if test "$cpudetect" = "yes"; then … … 2662 5450 else 2663 5451 h261as=yes 2664 fi 2665 5452 fi; 2666 5453 if test "$h261as" = "yes"; then 2667 5454 V_OBJ="$V_OBJ codec/p64/p64as.o codec/decoder-h261as.o codec/encoder-h261as.o" … … 2676 5463 else 2677 5464 dvdecode=no 2678 fi 2679 5465 fi; 2680 5466 if test "$dvdecode" = "yes"; then 2681 echo $ac_n "checking for main in -ldv""... $ac_c" 1>&6 2682 echo " configure:2683: checking for main in -ldv" >&52683 ac_lib_var=`echo dv'_'main | sed 'y%./+-%__p_%'` 2684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then2685 echo $ ac_n "(cached) $ac_c" 1>&62686 else 2687 ac_ save_LIBS="$LIBS"5467 5468 echo "$as_me:$LINENO: checking for main in -ldv" >&5 5469 echo $ECHO_N "checking for main in -ldv... $ECHO_C" >&6 5470 if test "${ac_cv_lib_dv_main+set}" = set; then 5471 echo $ECHO_N "(cached) $ECHO_C" >&6 5472 else 5473 ac_check_lib_save_LIBS=$LIBS 2688 5474 LIBS="-ldv $LIBS" 2689 cat > conftest.$ac_ext <<EOF 2690 #line 2691 "configure" 2691 #include "confdefs.h" 2692 2693 int main() { 2694 main() 2695 ; return 0; } 2696 EOF 2697 if { (eval echo configure:2698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2698 rm -rf conftest* 2699 eval "ac_cv_lib_$ac_lib_var=yes" 2700 else 2701 echo "configure: failed program was:" >&5 2702 cat conftest.$ac_ext >&5 2703 rm -rf conftest* 2704 eval "ac_cv_lib_$ac_lib_var=no" 2705 fi 2706 rm -f conftest* 2707 LIBS="$ac_save_LIBS" 2708 2709 fi 2710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2711 echo "$ac_t""yes" 1>&6 2712 ac_tr_lib=HAVE_LIB`echo dv | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2713 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2714 cat >> confdefs.h <<EOF 2715 #define $ac_tr_lib 1 2716 EOF 5475 cat >conftest.$ac_ext <<_ACEOF 5476 /* confdefs.h. */ 5477 _ACEOF 5478 cat confdefs.h >>conftest.$ac_ext 5479 cat >>conftest.$ac_ext <<_ACEOF 5480 /* end confdefs.h. */ 5481 5482 5483 int 5484 main () 5485 { 5486 main (); 5487 ; 5488 return 0; 5489 } 5490 _ACEOF 5491 rm -f conftest.$ac_objext conftest$ac_exeext 5492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5493 (eval $ac_link) 2>conftest.er1 5494 ac_status=$? 5495 grep -v '^ *+' conftest.er1 >conftest.err 5496 rm -f conftest.er1 5497 cat conftest.err >&5 5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5499 (exit $ac_status); } && 5500 { ac_try='test -z "$ac_c_werror_flag" 5501 || test ! -s conftest.err' 5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5503 (eval $ac_try) 2>&5 5504 ac_status=$? 5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5506 (exit $ac_status); }; } && 5507 { ac_try='test -s conftest$ac_exeext' 5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5509 (eval $ac_try) 2>&5 5510 ac_status=$? 5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5512 (exit $ac_status); }; }; then 5513 ac_cv_lib_dv_main=yes 5514 else 5515 echo "$as_me: failed program was:" >&5 5516 sed 's/^/| /' conftest.$ac_ext >&5 5517 5518 ac_cv_lib_dv_main=no 5519 fi 5520 rm -f conftest.err conftest.$ac_objext \ 5521 conftest$ac_exeext conftest.$ac_ext 5522 LIBS=$ac_check_lib_save_LIBS 5523 fi 5524 echo "$as_me:$LINENO: result: $ac_cv_lib_dv_main" >&5 5525 echo "${ECHO_T}$ac_cv_lib_dv_main" >&6 5526 if test $ac_cv_lib_dv_main = yes; then 5527 cat >>confdefs.h <<_ACEOF 5528 #define HAVE_LIBDV 1 5529 _ACEOF 2717 5530 2718 5531 LIBS="-ldv $LIBS" 2719 5532 2720 5533 else 2721 echo "$ac_t""no" 1>&62722 5534 2723 5535 echo "Error! libdv not available. Please install libdv." 2724 5536 exit 1 2725 2726 fi 2727 2728 for ac_hdr in libdv/dv.h 5537 5538 fi 5539 5540 5541 for ac_header in libdv/dv.h 2729 5542 do 2730 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2731 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2732 echo "configure:2733: checking for $ac_hdr" >&5 2733 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2734 echo $ac_n "(cached) $ac_c" 1>&6 2735 else 2736 cat > conftest.$ac_ext <<EOF 2737 #line 2738 "configure" 2738 #include "confdefs.h" 2739 #include <$ac_hdr> 2740 EOF 2741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2742 { (eval echo configure:2743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2744 if test -z "$ac_err"; then 2745 rm -rf conftest* 2746 eval "ac_cv_header_$ac_safe=yes" 2747 else 2748 echo "$ac_err" >&5 2749 echo "configure: failed program was:" >&5 2750 cat conftest.$ac_ext >&5 2751 rm -rf conftest* 2752 eval "ac_cv_header_$ac_safe=no" 2753 fi 2754 rm -f conftest* 2755 fi 2756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2757 echo "$ac_t""yes" 1>&6 2758 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2759 cat >> confdefs.h <<EOF 2760 #define $ac_tr_hdr 1 2761 EOF 2762 2763 else 2764 echo "$ac_t""no" 1>&6 2765 echo "Error! libdv/dv.h not found. Please install libdv developer package." 5543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5544 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5545 echo "$as_me:$LINENO: checking for $ac_header" >&5 5546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5547 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5548 echo $ECHO_N "(cached) $ECHO_C" >&6 5549 fi 5550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5552 else 5553 # Is the header compilable? 5554 echo "$as_me:$LINENO: checking $ac_header usability" >&5 5555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5556 cat >conftest.$ac_ext <<_ACEOF 5557 /* confdefs.h. */ 5558 _ACEOF 5559 cat confdefs.h >>conftest.$ac_ext 5560 cat >>conftest.$ac_ext <<_ACEOF 5561 /* end confdefs.h. */ 5562 $ac_includes_default 5563 #include <$ac_header> 5564 _ACEOF 5565 rm -f conftest.$ac_objext 5566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5567 (eval $ac_compile) 2>conftest.er1 5568 ac_status=$? 5569 grep -v '^ *+' conftest.er1 >conftest.err 5570 rm -f conftest.er1 5571 cat conftest.err >&5 5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5573 (exit $ac_status); } && 5574 { ac_try='test -z "$ac_c_werror_flag" 5575 || test ! -s conftest.err' 5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5577 (eval $ac_try) 2>&5 5578 ac_status=$? 5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5580 (exit $ac_status); }; } && 5581 { ac_try='test -s conftest.$ac_objext' 5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5583 (eval $ac_try) 2>&5 5584 ac_status=$? 5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5586 (exit $ac_status); }; }; then 5587 ac_header_compiler=yes 5588 else 5589 echo "$as_me: failed program was:" >&5 5590 sed 's/^/| /' conftest.$ac_ext >&5 5591 5592 ac_header_compiler=no 5593 fi 5594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5596 echo "${ECHO_T}$ac_header_compiler" >&6 5597 5598 # Is the header present? 5599 echo "$as_me:$LINENO: checking $ac_header presence" >&5 5600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5601 cat >conftest.$ac_ext <<_ACEOF 5602 /* confdefs.h. */ 5603 _ACEOF 5604 cat confdefs.h >>conftest.$ac_ext 5605 cat >>conftest.$ac_ext <<_ACEOF 5606 /* end confdefs.h. */ 5607 #include <$ac_header> 5608 _ACEOF 5609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5611 ac_status=$? 5612 grep -v '^ *+' conftest.er1 >conftest.err 5613 rm -f conftest.er1 5614 cat conftest.err >&5 5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5616 (exit $ac_status); } >/dev/null; then 5617 if test -s conftest.err; then 5618 ac_cpp_err=$ac_c_preproc_warn_flag 5619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5620 else<
