Changeset 3061 for branches/blt4
- Timestamp:
- Jun 27, 2012, 8:38:30 AM (12 years ago)
- Location:
- branches/blt4/packages/vizservers
- Files:
-
- 6 deleted
- 39 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/packages/vizservers/configure
r2936 r3061 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.6 3for vizservers 0.1.3 # Generated by GNU Autoconf 2.69 for vizservers 0.1. 4 4 # 5 5 # Report bugs to <rappture@nanohub.org>. 6 6 # 7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 7 # 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9 # 10 # 9 11 # This configure script is free software; the Free Software Foundation 10 12 # gives unlimited permission to copy, distribute and modify it. 11 ## -------------------- -##12 ## M4sh Initialization. 13 ## -------------------- -##13 ## -------------------- ## 14 ## M4sh Initialization. ## 15 ## -------------------- ## 14 16 15 17 # Be more Bourne compatible 16 18 DUALCASE=1; export DUALCASE # for MKS sh 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 20 emulate sh 19 21 NULLCMD=: … … 23 25 setopt NO_GLOB_SUBST 24 26 else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 27 32 esac 28 29 fi 30 31 32 33 34 # PATH needs CR 35 # Avoid depending upon Character Ranges. 36 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39 as_cr_digits='0123456789' 40 as_cr_alnum=$as_cr_Letters$as_cr_digits 33 fi 34 41 35 42 36 as_nl=' … … 47 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 43 # Prefer a ksh shell builtin over an external printf program on Solaris, 44 # but without wasting forks for bash or zsh. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 50 as_echo='printf %s\n' 51 51 as_echo_n='printf %s' … … 58 58 as_echo_n_body='eval 59 59 arg=$1; 60 case $arg in 60 case $arg in #( 61 61 *"$as_nl"*) 62 62 expr "X$arg" : "X\\(.*\\)$as_nl"; … … 81 81 fi 82 82 83 # Support unset when possible.84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then85 as_unset=unset86 else87 as_unset=false88 fi89 90 83 91 84 # IFS … … 97 90 98 91 # Find who we are. Look in the path if we contain no directory separator. 99 case $0 in 92 as_myself= 93 case $0 in #(( 100 94 *[\\/]* ) as_myself=$0 ;; 101 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 104 98 IFS=$as_save_IFS 105 99 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break107 done100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 108 102 IFS=$as_save_IFS 109 103 … … 117 111 if test ! -f "$as_myself"; then 118 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120 fi 121 122 # Work around bugs in pre-3.0 UWIN ksh. 123 for as_var in ENV MAIL MAILPATH 124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 113 exit 1 114 fi 115 116 # Unset variables that we do not need and which cause bugs (e.g. in 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118 # suppresses any "Segmentation fault" message there. '((' could 119 # trigger a bug in pdksh 5.2.14. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125 123 done 126 124 PS1='$ ' … … 134 132 export LANGUAGE 135 133 136 # Required to use basename. 134 # CDPATH. 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137 # Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142 # neutralization value for shells without unset; and this also 143 # works around shells that cannot unset nonexistent variables. 144 # Preserve -v and -x to the replacement shell. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155 # Admittedly, this is quite paranoid, since all the known shells bail 156 # out after a failed `exec'. 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170 else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176 esac 177 fi 178 " 179 as_required="as_fn_return () { (exit \$1); } 180 as_fn_success () { as_fn_return 0; } 181 as_fn_failure () { as_fn_return 1; } 182 as_fn_ret_success () { return 0; } 183 as_fn_ret_failure () { return 1; } 184 185 exitcode=0 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 194 fi 195 test x\$exitcode = x0 || exit 1 196 test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204 else 205 as_have_required=no 206 fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209 else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211 as_found=false 212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213 do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227 fi 228 fi 229 done;; 230 esac 231 as_found=false 232 done 233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236 fi; } 237 IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243 # neutralization value for shells without unset; and this also 244 # works around shells that cannot unset nonexistent variables. 245 # Preserve -v and -x to the replacement shell. 246 BASH_ENV=/dev/null 247 ENV=/dev/null 248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249 case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254 esac 255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256 # Admittedly, this is quite paranoid, since all the known shells bail 257 # out after a failed `exec'. 258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259 exit 255 260 fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270 $0: rappture@nanohub.org about your system, including any 271 $0: error possibly output before this message. Then install 272 $0: a modern shell, or manually run the script under such a 273 $0: shell if you do have one." 274 fi 275 exit 1 276 fi 277 fi 278 fi 279 SHELL=${CONFIG_SHELL-/bin/sh} 280 export SHELL 281 # Unset more variables known to interfere with behavior of common tools. 282 CLICOLOR_FORCE= GREP_OPTIONS= 283 unset CLICOLOR_FORCE GREP_OPTIONS 284 285 ## --------------------- ## 286 ## M4sh Shell Functions. ## 287 ## --------------------- ## 288 # as_fn_unset VAR 289 # --------------- 290 # Portably unset VAR. 291 as_fn_unset () 292 { 293 { eval $1=; unset $1;} 294 } 295 as_unset=as_fn_unset 296 297 # as_fn_set_status STATUS 298 # ----------------------- 299 # Set $? to STATUS, without forking. 300 as_fn_set_status () 301 { 302 return $1 303 } # as_fn_set_status 304 305 # as_fn_exit STATUS 306 # ----------------- 307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308 as_fn_exit () 309 { 310 set +e 311 as_fn_set_status $1 312 exit $1 313 } # as_fn_exit 314 315 # as_fn_mkdir_p 316 # ------------- 317 # Create "$as_dir" as a directory, including parents if necessary. 318 as_fn_mkdir_p () 319 { 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337 $as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361 } # as_fn_mkdir_p 362 363 # as_fn_executable_p FILE 364 # ----------------------- 365 # Test if FILE is an executable regular file. 366 as_fn_executable_p () 367 { 368 test -f "$1" && test -x "$1" 369 } # as_fn_executable_p 370 # as_fn_append VAR VALUE 371 # ---------------------- 372 # Append the text in VALUE to the end of the definition contained in VAR. Take 373 # advantage of any shell optimizations that allow amortized linear growth over 374 # repeated appends, instead of the typical quadratic growth present in naive 375 # implementations. 376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381 else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386 fi # as_fn_append 387 388 # as_fn_arith ARG... 389 # ------------------ 390 # Perform arithmetic evaluation on the ARGs, and store the result in the 391 # global $as_val. Take advantage of shells that can avoid forks. The arguments 392 # must be portable across $(()) and expr. 393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398 else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403 fi # as_fn_arith 404 405 406 # as_fn_error STATUS ERROR [LINENO LOG_FD] 407 # ---------------------------------------- 408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410 # script with STATUS, using 1 if that was 0. 411 as_fn_error () 412 { 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420 } # as_fn_error 421 137 422 if expr a : '\(a\)' >/dev/null 2>&1 && 138 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then … … 148 433 fi 149 434 150 151 # Name of the executable. 435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437 else 438 as_dirname=false 439 fi 440 152 441 as_me=`$as_basename -- "$0" || 153 442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ … … 169 458 s/.*/./; q'` 170 459 171 # CDPATH. 172 $as_unset CDPATH 173 174 175 if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178 else 179 as_have_required=no 180 fi 181 182 if test $as_have_required = yes && (eval ": 183 (as_func_return () { 184 (exit \$1) 185 } 186 as_func_success () { 187 as_func_return 0 188 } 189 as_func_failure () { 190 as_func_return 1 191 } 192 as_func_ret_success () { 193 return 0 194 } 195 as_func_ret_failure () { 196 return 1 197 } 198 199 exitcode=0 200 if as_func_success; then 201 : 202 else 203 exitcode=1 204 echo as_func_success failed. 205 fi 206 207 if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210 fi 211 212 if as_func_ret_success; then 213 : 214 else 215 exitcode=1 216 echo as_func_ret_success failed. 217 fi 218 219 if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222 fi 223 224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226 else 227 exitcode=1 228 echo positional parameters were not saved. 229 fi 230 231 test \$exitcode = 0) || { (exit 1); exit 1; } 232 233 ( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238 ") 2> /dev/null; then 239 : 240 else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244 do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253 done 254 IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268 else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271 esac 272 273 fi 274 275 276 : 277 _ASEOF 278 }; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289 else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292 esac 293 294 fi 295 296 297 : 298 (as_func_return () { 299 (exit $1) 300 } 301 as_func_success () { 302 as_func_return 0 303 } 304 as_func_failure () { 305 as_func_return 1 306 } 307 as_func_ret_success () { 308 return 0 309 } 310 as_func_ret_failure () { 311 return 1 312 } 313 314 exitcode=0 315 if as_func_success; then 316 : 317 else 318 exitcode=1 319 echo as_func_success failed. 320 fi 321 322 if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325 fi 326 327 if as_func_ret_success; then 328 : 329 else 330 exitcode=1 331 echo as_func_ret_success failed. 332 fi 333 334 if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337 fi 338 339 if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341 else 342 exitcode=1 343 echo positional parameters were not saved. 344 fi 345 346 test $exitcode = 0) || { (exit 1); exit 1; } 347 348 ( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354 _ASEOF 355 }; then 356 break 357 fi 358 359 fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369 fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378 fi 379 380 381 fi 382 383 fi 384 385 386 387 (eval "as_func_return () { 388 (exit \$1) 389 } 390 as_func_success () { 391 as_func_return 0 392 } 393 as_func_failure () { 394 as_func_return 1 395 } 396 as_func_ret_success () { 397 return 0 398 } 399 as_func_ret_failure () { 400 return 1 401 } 402 403 exitcode=0 404 if as_func_success; then 405 : 406 else 407 exitcode=1 408 echo as_func_success failed. 409 fi 410 411 if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414 fi 415 416 if as_func_ret_success; then 417 : 418 else 419 exitcode=1 420 echo as_func_ret_success failed. 421 fi 422 423 if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426 fi 427 428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430 else 431 exitcode=1 432 echo positional parameters were not saved. 433 fi 434 435 test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441 } 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 # Avoid depending upon Character Ranges. 461 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464 as_cr_digits='0123456789' 465 as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 460 473 sed -n ' 461 474 p … … 474 487 ' >$as_me.lineno && 475 488 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 479 495 # Don't try to exec as it changes $[0], causing all sort of problems 480 496 # (the dirname of $[0] is not the place where we might find the … … 485 501 } 486 502 487 488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then489 as_dirname=dirname490 else491 as_dirname=false492 fi493 494 503 ECHO_C= ECHO_N= ECHO_T= 495 case `echo -n x` in 504 case `echo -n x` in #((((( 496 505 -n*) 497 case `echo 'x \c'` in506 case `echo 'xy\c'` in 498 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 500 511 esac;; 501 512 *) 502 513 ECHO_N='-n';; 503 514 esac 504 if expr a : '\(a\)' >/dev/null 2>&1 &&505 test "X`expr 00001 : '.*\(...\)'`" = X001; then506 as_expr=expr507 else508 as_expr=false509 fi510 515 511 516 rm -f conf$$ conf$$.exe conf$$.file … … 522 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p '.529 # In both cases, we have to default to `cp -pR'. 525 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p '531 as_ln_s='cp -pR' 527 532 elif ln conf$$.file conf$$ 2>/dev/null; then 528 533 as_ln_s=ln 529 534 else 530 as_ln_s='cp -p '535 as_ln_s='cp -pR' 531 536 fi 532 537 else 533 as_ln_s='cp -p '538 as_ln_s='cp -pR' 534 539 fi 535 540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file … … 537 542 538 543 if mkdir -p . 2>/dev/null; then 539 as_mkdir_p= :544 as_mkdir_p='mkdir -p "$as_dir"' 540 545 else 541 546 test -d ./-p && rmdir ./-p … … 543 548 fi 544 549 545 if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547 else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565 fi 566 as_executable_p=$as_test_x 550 as_test_x='test -x' 551 as_executable_p=as_fn_executable_p 567 552 568 553 # Sed expression to map a string onto a valid CPP name. … … 573 558 574 559 575 576 exec 7<&0 </dev/null6>&1560 test -n "$DJDIR" || exec 7<&0 </dev/null 561 exec 6>&1 577 562 578 563 # Name of the host. 579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 580 565 # so uname gets run too. 581 566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` … … 592 577 MFLAGS= 593 578 MAKEFLAGS= 594 SHELL=${CONFIG_SHELL-/bin/sh}595 579 596 580 # Identity of this package. … … 600 584 PACKAGE_STRING='vizservers 0.1' 601 585 PACKAGE_BUGREPORT='rappture@nanohub.org' 586 PACKAGE_URL='' 602 587 603 588 # Factoring default headers for most tests. … … 736 721 prefix 737 722 exec_prefix 723 PACKAGE_URL 738 724 PACKAGE_BUGREPORT 739 725 PACKAGE_STRING … … 834 820 835 821 case $ac_option in 836 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 837 *) ac_optarg=yes ;; 822 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 823 *=) ac_optarg= ;; 824 *) ac_optarg=yes ;; 838 825 esac 839 826 … … 880 867 # Reject names that are not valid shell variable names. 881 868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 882 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 883 { (exit 1); exit 1; }; } 869 as_fn_error $? "invalid feature name: $ac_useropt" 884 870 ac_useropt_orig=$ac_useropt 885 871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 907 893 # Reject names that are not valid shell variable names. 908 894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 909 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 910 { (exit 1); exit 1; }; } 895 as_fn_error $? "invalid feature name: $ac_useropt" 911 896 ac_useropt_orig=$ac_useropt 912 897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 1112 1097 # Reject names that are not valid shell variable names. 1113 1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1114 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1115 { (exit 1); exit 1; }; } 1099 as_fn_error $? "invalid package name: $ac_useropt" 1116 1100 ac_useropt_orig=$ac_useropt 1117 1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 1129 1113 # Reject names that are not valid shell variable names. 1130 1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1131 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1132 { (exit 1); exit 1; }; } 1115 as_fn_error $? "invalid package name: $ac_useropt" 1133 1116 ac_useropt_orig=$ac_useropt 1134 1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 1160 1143 x_libraries=$ac_optarg ;; 1161 1144 1162 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1163 Try \`$0 --help' for more information." >&2 1164 { (exit 1); exit 1; }; } 1145 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1146 Try \`$0 --help' for more information" 1165 1147 ;; 1166 1148 … … 1168 1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1169 1151 # Reject names that are not valid shell variable names. 1170 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1171 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1172 { (exit 1); exit 1; }; } 1152 case $ac_envvar in #( 1153 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1154 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1155 esac 1173 1156 eval $ac_envvar=\$ac_optarg 1174 1157 export $ac_envvar ;; … … 1179 1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1180 1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1181 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}1164 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1182 1165 ;; 1183 1166 … … 1187 1170 if test -n "$ac_prev"; then 1188 1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1189 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1190 { (exit 1); exit 1; }; } 1172 as_fn_error $? "missing argument to $ac_option" 1191 1173 fi 1192 1174 … … 1194 1176 case $enable_option_checking in 1195 1177 no) ;; 1196 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1197 { (exit 1); exit 1; }; } ;; 1178 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1198 1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1199 1180 esac … … 1218 1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1219 1200 esac 1220 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1221 { (exit 1); exit 1; }; } 1201 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1222 1202 done 1223 1203 … … 1233 1213 if test "x$build_alias" = x; then 1234 1214 cross_compiling=maybe 1235 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.1236 If a cross compiler is detected then cross compile mode will be used." >&21237 1215 elif test "x$build_alias" != "x$host_alias"; then 1238 1216 cross_compiling=yes … … 1249 1227 ac_ls_di=`ls -di .` && 1250 1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1251 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1252 { (exit 1); exit 1; }; } 1229 as_fn_error $? "working directory cannot be determined" 1253 1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1254 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1255 { (exit 1); exit 1; }; } 1231 as_fn_error $? "pwd does not report name of working directory" 1256 1232 1257 1233 … … 1292 1268 if test ! -r "$srcdir/$ac_unique_file"; then 1293 1269 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1294 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1295 { (exit 1); exit 1; }; } 1270 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1296 1271 fi 1297 1272 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1298 1273 ac_abs_confdir=`( 1299 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1300 { (exit 1); exit 1; }; } 1274 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1301 1275 pwd)` 1302 1276 # When building in place, set srcdir=. … … 1338 1312 --help=recursive display the short help of all the included packages 1339 1313 -V, --version display version information and exit 1340 -q, --quiet, --silent do not print \`checking ...' messages1314 -q, --quiet, --silent do not print \`checking ...' messages 1341 1315 --cache-file=FILE cache test results in FILE [disabled] 1342 1316 -C, --config-cache alias for \`--cache-file=config.cache' … … 1421 1395 nonstandard directory <lib dir> 1422 1396 LIBS libraries to pass to the linker, e.g. -l<library> 1423 CPPFLAGS C/C++/Objective Cpreprocessor flags, e.g. -I<include dir> if1397 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1424 1398 you have headers in a nonstandard directory <include dir> 1425 1399 CPP C preprocessor … … 1496 1470 cat <<\_ACEOF 1497 1471 vizservers configure 0.1 1498 generated by GNU Autoconf 2.63 1499 1500 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1501 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1472 generated by GNU Autoconf 2.69 1473 1474 Copyright (C) 2012 Free Software Foundation, Inc. 1502 1475 This configure script is free software; the Free Software Foundation 1503 1476 gives unlimited permission to copy, distribute and modify it. … … 1505 1478 exit 1506 1479 fi 1480 1481 ## ------------------------ ## 1482 ## Autoconf initialization. ## 1483 ## ------------------------ ## 1484 1485 # ac_fn_c_try_compile LINENO 1486 # -------------------------- 1487 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1488 ac_fn_c_try_compile () 1489 { 1490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1491 rm -f conftest.$ac_objext 1492 if { { ac_try="$ac_compile" 1493 case "(($ac_try" in 1494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1495 *) ac_try_echo=$ac_try;; 1496 esac 1497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1498 $as_echo "$ac_try_echo"; } >&5 1499 (eval "$ac_compile") 2>conftest.err 1500 ac_status=$? 1501 if test -s conftest.err; then 1502 grep -v '^ *+' conftest.err >conftest.er1 1503 cat conftest.er1 >&5 1504 mv -f conftest.er1 conftest.err 1505 fi 1506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1507 test $ac_status = 0; } && { 1508 test -z "$ac_c_werror_flag" || 1509 test ! -s conftest.err 1510 } && test -s conftest.$ac_objext; then : 1511 ac_retval=0 1512 else 1513 $as_echo "$as_me: failed program was:" >&5 1514 sed 's/^/| /' conftest.$ac_ext >&5 1515 1516 ac_retval=1 1517 fi 1518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1519 as_fn_set_status $ac_retval 1520 1521 } # ac_fn_c_try_compile 1522 1523 # ac_fn_c_try_cpp LINENO 1524 # ---------------------- 1525 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1526 ac_fn_c_try_cpp () 1527 { 1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1529 if { { ac_try="$ac_cpp conftest.$ac_ext" 1530 case "(($ac_try" in 1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1532 *) ac_try_echo=$ac_try;; 1533 esac 1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1535 $as_echo "$ac_try_echo"; } >&5 1536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1537 ac_status=$? 1538 if test -s conftest.err; then 1539 grep -v '^ *+' conftest.err >conftest.er1 1540 cat conftest.er1 >&5 1541 mv -f conftest.er1 conftest.err 1542 fi 1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1544 test $ac_status = 0; } > conftest.i && { 1545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1546 test ! -s conftest.err 1547 }; then : 1548 ac_retval=0 1549 else 1550 $as_echo "$as_me: failed program was:" >&5 1551 sed 's/^/| /' conftest.$ac_ext >&5 1552 1553 ac_retval=1 1554 fi 1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1556 as_fn_set_status $ac_retval 1557 1558 } # ac_fn_c_try_cpp 1559 1560 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1561 # ------------------------------------------------------- 1562 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1563 # the include files in INCLUDES and setting the cache variable VAR 1564 # accordingly. 1565 ac_fn_c_check_header_mongrel () 1566 { 1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1568 if eval \${$3+:} false; then : 1569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1570 $as_echo_n "checking for $2... " >&6; } 1571 if eval \${$3+:} false; then : 1572 $as_echo_n "(cached) " >&6 1573 fi 1574 eval ac_res=\$$3 1575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1576 $as_echo "$ac_res" >&6; } 1577 else 1578 # Is the header compilable? 1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1580 $as_echo_n "checking $2 usability... " >&6; } 1581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1582 /* end confdefs.h. */ 1583 $4 1584 #include <$2> 1585 _ACEOF 1586 if ac_fn_c_try_compile "$LINENO"; then : 1587 ac_header_compiler=yes 1588 else 1589 ac_header_compiler=no 1590 fi 1591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1593 $as_echo "$ac_header_compiler" >&6; } 1594 1595 # Is the header present? 1596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1597 $as_echo_n "checking $2 presence... " >&6; } 1598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1599 /* end confdefs.h. */ 1600 #include <$2> 1601 _ACEOF 1602 if ac_fn_c_try_cpp "$LINENO"; then : 1603 ac_header_preproc=yes 1604 else 1605 ac_header_preproc=no 1606 fi 1607 rm -f conftest.err conftest.i conftest.$ac_ext 1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1609 $as_echo "$ac_header_preproc" >&6; } 1610 1611 # So? What about this header? 1612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1613 yes:no: ) 1614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1615 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1617 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1618 ;; 1619 no:yes:* ) 1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1621 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1623 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1625 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1627 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1629 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1630 ( $as_echo "## ----------------------------------- ## 1631 ## Report this to rappture@nanohub.org ## 1632 ## ----------------------------------- ##" 1633 ) | sed "s/^/$as_me: WARNING: /" >&2 1634 ;; 1635 esac 1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1637 $as_echo_n "checking for $2... " >&6; } 1638 if eval \${$3+:} false; then : 1639 $as_echo_n "(cached) " >&6 1640 else 1641 eval "$3=\$ac_header_compiler" 1642 fi 1643 eval ac_res=\$$3 1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1645 $as_echo "$ac_res" >&6; } 1646 fi 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1648 1649 } # ac_fn_c_check_header_mongrel 1650 1651 # ac_fn_c_try_run LINENO 1652 # ---------------------- 1653 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1654 # that executables *can* be run. 1655 ac_fn_c_try_run () 1656 { 1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1658 if { { ac_try="$ac_link" 1659 case "(($ac_try" in 1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1661 *) ac_try_echo=$ac_try;; 1662 esac 1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1664 $as_echo "$ac_try_echo"; } >&5 1665 (eval "$ac_link") 2>&5 1666 ac_status=$? 1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1668 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1669 { { case "(($ac_try" in 1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1671 *) ac_try_echo=$ac_try;; 1672 esac 1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1674 $as_echo "$ac_try_echo"; } >&5 1675 (eval "$ac_try") 2>&5 1676 ac_status=$? 1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1678 test $ac_status = 0; }; }; then : 1679 ac_retval=0 1680 else 1681 $as_echo "$as_me: program exited with status $ac_status" >&5 1682 $as_echo "$as_me: failed program was:" >&5 1683 sed 's/^/| /' conftest.$ac_ext >&5 1684 1685 ac_retval=$ac_status 1686 fi 1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1689 as_fn_set_status $ac_retval 1690 1691 } # ac_fn_c_try_run 1692 1693 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1694 # ------------------------------------------------------- 1695 # Tests whether HEADER exists and can be compiled using the include files in 1696 # INCLUDES, setting the cache variable VAR accordingly. 1697 ac_fn_c_check_header_compile () 1698 { 1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1701 $as_echo_n "checking for $2... " >&6; } 1702 if eval \${$3+:} false; then : 1703 $as_echo_n "(cached) " >&6 1704 else 1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1706 /* end confdefs.h. */ 1707 $4 1708 #include <$2> 1709 _ACEOF 1710 if ac_fn_c_try_compile "$LINENO"; then : 1711 eval "$3=yes" 1712 else 1713 eval "$3=no" 1714 fi 1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1716 fi 1717 eval ac_res=\$$3 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1719 $as_echo "$ac_res" >&6; } 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1721 1722 } # ac_fn_c_check_header_compile 1723 1724 # ac_fn_c_try_link LINENO 1725 # ----------------------- 1726 # Try to link conftest.$ac_ext, and return whether this succeeded. 1727 ac_fn_c_try_link () 1728 { 1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730 rm -f conftest.$ac_objext conftest$ac_exeext 1731 if { { ac_try="$ac_link" 1732 case "(($ac_try" in 1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1734 *) ac_try_echo=$ac_try;; 1735 esac 1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1737 $as_echo "$ac_try_echo"; } >&5 1738 (eval "$ac_link") 2>conftest.err 1739 ac_status=$? 1740 if test -s conftest.err; then 1741 grep -v '^ *+' conftest.err >conftest.er1 1742 cat conftest.er1 >&5 1743 mv -f conftest.er1 conftest.err 1744 fi 1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1746 test $ac_status = 0; } && { 1747 test -z "$ac_c_werror_flag" || 1748 test ! -s conftest.err 1749 } && test -s conftest$ac_exeext && { 1750 test "$cross_compiling" = yes || 1751 test -x conftest$ac_exeext 1752 }; then : 1753 ac_retval=0 1754 else 1755 $as_echo "$as_me: failed program was:" >&5 1756 sed 's/^/| /' conftest.$ac_ext >&5 1757 1758 ac_retval=1 1759 fi 1760 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1761 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1762 # interfere with the next link command; also delete a directory that is 1763 # left behind by Apple's compiler. We do this before executing the actions. 1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1766 as_fn_set_status $ac_retval 1767 1768 } # ac_fn_c_try_link 1769 1770 # ac_fn_cxx_try_compile LINENO 1771 # ---------------------------- 1772 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1773 ac_fn_cxx_try_compile () 1774 { 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 rm -f conftest.$ac_objext 1777 if { { ac_try="$ac_compile" 1778 case "(($ac_try" in 1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1780 *) ac_try_echo=$ac_try;; 1781 esac 1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1783 $as_echo "$ac_try_echo"; } >&5 1784 (eval "$ac_compile") 2>conftest.err 1785 ac_status=$? 1786 if test -s conftest.err; then 1787 grep -v '^ *+' conftest.err >conftest.er1 1788 cat conftest.er1 >&5 1789 mv -f conftest.er1 conftest.err 1790 fi 1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1792 test $ac_status = 0; } && { 1793 test -z "$ac_cxx_werror_flag" || 1794 test ! -s conftest.err 1795 } && test -s conftest.$ac_objext; then : 1796 ac_retval=0 1797 else 1798 $as_echo "$as_me: failed program was:" >&5 1799 sed 's/^/| /' conftest.$ac_ext >&5 1800 1801 ac_retval=1 1802 fi 1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1804 as_fn_set_status $ac_retval 1805 1806 } # ac_fn_cxx_try_compile 1807 1808 # ac_fn_cxx_try_cpp LINENO 1809 # ------------------------ 1810 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1811 ac_fn_cxx_try_cpp () 1812 { 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1814 if { { ac_try="$ac_cpp conftest.$ac_ext" 1815 case "(($ac_try" in 1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1817 *) ac_try_echo=$ac_try;; 1818 esac 1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1820 $as_echo "$ac_try_echo"; } >&5 1821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1822 ac_status=$? 1823 if test -s conftest.err; then 1824 grep -v '^ *+' conftest.err >conftest.er1 1825 cat conftest.er1 >&5 1826 mv -f conftest.er1 conftest.err 1827 fi 1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1829 test $ac_status = 0; } > conftest.i && { 1830 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1831 test ! -s conftest.err 1832 }; then : 1833 ac_retval=0 1834 else 1835 $as_echo "$as_me: failed program was:" >&5 1836 sed 's/^/| /' conftest.$ac_ext >&5 1837 1838 ac_retval=1 1839 fi 1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1841 as_fn_set_status $ac_retval 1842 1843 } # ac_fn_cxx_try_cpp 1844 1845 # ac_fn_cxx_try_run LINENO 1846 # ------------------------ 1847 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1848 # that executables *can* be run. 1849 ac_fn_cxx_try_run () 1850 { 1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1852 if { { ac_try="$ac_link" 1853 case "(($ac_try" in 1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1855 *) ac_try_echo=$ac_try;; 1856 esac 1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1858 $as_echo "$ac_try_echo"; } >&5 1859 (eval "$ac_link") 2>&5 1860 ac_status=$? 1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1862 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1863 { { case "(($ac_try" in 1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1865 *) ac_try_echo=$ac_try;; 1866 esac 1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1868 $as_echo "$ac_try_echo"; } >&5 1869 (eval "$ac_try") 2>&5 1870 ac_status=$? 1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1872 test $ac_status = 0; }; }; then : 1873 ac_retval=0 1874 else 1875 $as_echo "$as_me: program exited with status $ac_status" >&5 1876 $as_echo "$as_me: failed program was:" >&5 1877 sed 's/^/| /' conftest.$ac_ext >&5 1878 1879 ac_retval=$ac_status 1880 fi 1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1883 as_fn_set_status $ac_retval 1884 1885 } # ac_fn_cxx_try_run 1886 1887 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 1888 # ---------------------------------------------- 1889 # Tries to find the compile-time value of EXPR in a program that includes 1890 # INCLUDES, setting VAR accordingly. Returns whether the value could be 1891 # computed 1892 ac_fn_cxx_compute_int () 1893 { 1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1895 if test "$cross_compiling" = yes; then 1896 # Depending upon the size, compute the lo and hi bounds. 1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1898 /* end confdefs.h. */ 1899 $4 1900 int 1901 main () 1902 { 1903 static int test_array [1 - 2 * !(($2) >= 0)]; 1904 test_array [0] = 0; 1905 return test_array [0]; 1906 1907 ; 1908 return 0; 1909 } 1910 _ACEOF 1911 if ac_fn_cxx_try_compile "$LINENO"; then : 1912 ac_lo=0 ac_mid=0 1913 while :; do 1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1915 /* end confdefs.h. */ 1916 $4 1917 int 1918 main () 1919 { 1920 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1921 test_array [0] = 0; 1922 return test_array [0]; 1923 1924 ; 1925 return 0; 1926 } 1927 _ACEOF 1928 if ac_fn_cxx_try_compile "$LINENO"; then : 1929 ac_hi=$ac_mid; break 1930 else 1931 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1932 if test $ac_lo -le $ac_mid; then 1933 ac_lo= ac_hi= 1934 break 1935 fi 1936 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1937 fi 1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1939 done 1940 else 1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1942 /* end confdefs.h. */ 1943 $4 1944 int 1945 main () 1946 { 1947 static int test_array [1 - 2 * !(($2) < 0)]; 1948 test_array [0] = 0; 1949 return test_array [0]; 1950 1951 ; 1952 return 0; 1953 } 1954 _ACEOF 1955 if ac_fn_cxx_try_compile "$LINENO"; then : 1956 ac_hi=-1 ac_mid=-1 1957 while :; do 1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1959 /* end confdefs.h. */ 1960 $4 1961 int 1962 main () 1963 { 1964 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1965 test_array [0] = 0; 1966 return test_array [0]; 1967 1968 ; 1969 return 0; 1970 } 1971 _ACEOF 1972 if ac_fn_cxx_try_compile "$LINENO"; then : 1973 ac_lo=$ac_mid; break 1974 else 1975 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1976 if test $ac_mid -le $ac_hi; then 1977 ac_lo= ac_hi= 1978 break 1979 fi 1980 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1981 fi 1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1983 done 1984 else 1985 ac_lo= ac_hi= 1986 fi 1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1988 fi 1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1990 # Binary search between lo and hi bounds. 1991 while test "x$ac_lo" != "x$ac_hi"; do 1992 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1994 /* end confdefs.h. */ 1995 $4 1996 int 1997 main () 1998 { 1999 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2000 test_array [0] = 0; 2001 return test_array [0]; 2002 2003 ; 2004 return 0; 2005 } 2006 _ACEOF 2007 if ac_fn_cxx_try_compile "$LINENO"; then : 2008 ac_hi=$ac_mid 2009 else 2010 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2011 fi 2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2013 done 2014 case $ac_lo in #(( 2015 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2016 '') ac_retval=1 ;; 2017 esac 2018 else 2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2020 /* end confdefs.h. */ 2021 $4 2022 static long int longval () { return $2; } 2023 static unsigned long int ulongval () { return $2; } 2024 #include <stdio.h> 2025 #include <stdlib.h> 2026 int 2027 main () 2028 { 2029 2030 FILE *f = fopen ("conftest.val", "w"); 2031 if (! f) 2032 return 1; 2033 if (($2) < 0) 2034 { 2035 long int i = longval (); 2036 if (i != ($2)) 2037 return 1; 2038 fprintf (f, "%ld", i); 2039 } 2040 else 2041 { 2042 unsigned long int i = ulongval (); 2043 if (i != ($2)) 2044 return 1; 2045 fprintf (f, "%lu", i); 2046 } 2047 /* Do not output a trailing newline, as this causes \r\n confusion 2048 on some platforms. */ 2049 return ferror (f) || fclose (f) != 0; 2050 2051 ; 2052 return 0; 2053 } 2054 _ACEOF 2055 if ac_fn_cxx_try_run "$LINENO"; then : 2056 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2057 else 2058 ac_retval=1 2059 fi 2060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2061 conftest.$ac_objext conftest.beam conftest.$ac_ext 2062 rm -f conftest.val 2063 2064 fi 2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2066 as_fn_set_status $ac_retval 2067 2068 } # ac_fn_cxx_compute_int 2069 2070 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2071 # --------------------------------------------------------- 2072 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2073 # the include files in INCLUDES and setting the cache variable VAR 2074 # accordingly. 2075 ac_fn_cxx_check_header_mongrel () 2076 { 2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2078 if eval \${$3+:} false; then : 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2080 $as_echo_n "checking for $2... " >&6; } 2081 if eval \${$3+:} false; then : 2082 $as_echo_n "(cached) " >&6 2083 fi 2084 eval ac_res=\$$3 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2086 $as_echo "$ac_res" >&6; } 2087 else 2088 # Is the header compilable? 2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2090 $as_echo_n "checking $2 usability... " >&6; } 2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2092 /* end confdefs.h. */ 2093 $4 2094 #include <$2> 2095 _ACEOF 2096 if ac_fn_cxx_try_compile "$LINENO"; then : 2097 ac_header_compiler=yes 2098 else 2099 ac_header_compiler=no 2100 fi 2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2103 $as_echo "$ac_header_compiler" >&6; } 2104 2105 # Is the header present? 2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2107 $as_echo_n "checking $2 presence... " >&6; } 2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2109 /* end confdefs.h. */ 2110 #include <$2> 2111 _ACEOF 2112 if ac_fn_cxx_try_cpp "$LINENO"; then : 2113 ac_header_preproc=yes 2114 else 2115 ac_header_preproc=no 2116 fi 2117 rm -f conftest.err conftest.i conftest.$ac_ext 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2119 $as_echo "$ac_header_preproc" >&6; } 2120 2121 # So? What about this header? 2122 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2123 yes:no: ) 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2125 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2127 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2128 ;; 2129 no:yes:* ) 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2131 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2133 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2135 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2137 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2139 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2140 ( $as_echo "## ----------------------------------- ## 2141 ## Report this to rappture@nanohub.org ## 2142 ## ----------------------------------- ##" 2143 ) | sed "s/^/$as_me: WARNING: /" >&2 2144 ;; 2145 esac 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2147 $as_echo_n "checking for $2... " >&6; } 2148 if eval \${$3+:} false; then : 2149 $as_echo_n "(cached) " >&6 2150 else 2151 eval "$3=\$ac_header_compiler" 2152 fi 2153 eval ac_res=\$$3 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2155 $as_echo "$ac_res" >&6; } 2156 fi 2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2158 2159 } # ac_fn_cxx_check_header_mongrel 2160 2161 # ac_fn_cxx_try_link LINENO 2162 # ------------------------- 2163 # Try to link conftest.$ac_ext, and return whether this succeeded. 2164 ac_fn_cxx_try_link () 2165 { 2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2167 rm -f conftest.$ac_objext conftest$ac_exeext 2168 if { { ac_try="$ac_link" 2169 case "(($ac_try" in 2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2171 *) ac_try_echo=$ac_try;; 2172 esac 2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2174 $as_echo "$ac_try_echo"; } >&5 2175 (eval "$ac_link") 2>conftest.err 2176 ac_status=$? 2177 if test -s conftest.err; then 2178 grep -v '^ *+' conftest.err >conftest.er1 2179 cat conftest.er1 >&5 2180 mv -f conftest.er1 conftest.err 2181 fi 2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2183 test $ac_status = 0; } && { 2184 test -z "$ac_cxx_werror_flag" || 2185 test ! -s conftest.err 2186 } && test -s conftest$ac_exeext && { 2187 test "$cross_compiling" = yes || 2188 test -x conftest$ac_exeext 2189 }; then : 2190 ac_retval=0 2191 else 2192 $as_echo "$as_me: failed program was:" >&5 2193 sed 's/^/| /' conftest.$ac_ext >&5 2194 2195 ac_retval=1 2196 fi 2197 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2198 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2199 # interfere with the next link command; also delete a directory that is 2200 # left behind by Apple's compiler. We do this before executing the actions. 2201 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2203 as_fn_set_status $ac_retval 2204 2205 } # ac_fn_cxx_try_link 2206 2207 # ac_fn_cxx_check_func LINENO FUNC VAR 2208 # ------------------------------------ 2209 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2210 ac_fn_cxx_check_func () 2211 { 2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2214 $as_echo_n "checking for $2... " >&6; } 2215 if eval \${$3+:} false; then : 2216 $as_echo_n "(cached) " >&6 2217 else 2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2219 /* end confdefs.h. */ 2220 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2221 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2222 #define $2 innocuous_$2 2223 2224 /* System header to define __stub macros and hopefully few prototypes, 2225 which can conflict with char $2 (); below. 2226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2227 <limits.h> exists even on freestanding compilers. */ 2228 2229 #ifdef __STDC__ 2230 # include <limits.h> 2231 #else 2232 # include <assert.h> 2233 #endif 2234 2235 #undef $2 2236 2237 /* Override any GCC internal prototype to avoid an error. 2238 Use char because int might match the return type of a GCC 2239 builtin and then its argument prototype would still apply. */ 2240 #ifdef __cplusplus 2241 extern "C" 2242 #endif 2243 char $2 (); 2244 /* The GNU C library defines this for functions which it implements 2245 to always fail with ENOSYS. Some functions are actually named 2246 something starting with __ and the normal name is an alias. */ 2247 #if defined __stub_$2 || defined __stub___$2 2248 choke me 2249 #endif 2250 2251 int 2252 main () 2253 { 2254 return $2 (); 2255 ; 2256 return 0; 2257 } 2258 _ACEOF 2259 if ac_fn_cxx_try_link "$LINENO"; then : 2260 eval "$3=yes" 2261 else 2262 eval "$3=no" 2263 fi 2264 rm -f core conftest.err conftest.$ac_objext \ 2265 conftest$ac_exeext conftest.$ac_ext 2266 fi 2267 eval ac_res=\$$3 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2269 $as_echo "$ac_res" >&6; } 2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2271 2272 } # ac_fn_cxx_check_func 2273 2274 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2275 # --------------------------------------------------------- 2276 # Tests whether HEADER exists and can be compiled using the include files in 2277 # INCLUDES, setting the cache variable VAR accordingly. 2278 ac_fn_cxx_check_header_compile () 2279 { 2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2282 $as_echo_n "checking for $2... " >&6; } 2283 if eval \${$3+:} false; then : 2284 $as_echo_n "(cached) " >&6 2285 else 2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2287 /* end confdefs.h. */ 2288 $4 2289 #include <$2> 2290 _ACEOF 2291 if ac_fn_cxx_try_compile "$LINENO"; then : 2292 eval "$3=yes" 2293 else 2294 eval "$3=no" 2295 fi 2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2297 fi 2298 eval ac_res=\$$3 2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2300 $as_echo "$ac_res" >&6; } 2301 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2302 2303 } # ac_fn_cxx_check_header_compile 1507 2304 cat >config.log <<_ACEOF 1508 2305 This file contains any messages produced by compilers while … … 1510 2307 1511 2308 It was created by vizservers $as_me 0.1, which was 1512 generated by GNU Autoconf 2.6 3. Invocation command line was2309 generated by GNU Autoconf 2.69. Invocation command line was 1513 2310 1514 2311 $ $0 $@ … … 1546 2343 IFS=$as_save_IFS 1547 2344 test -z "$as_dir" && as_dir=. 1548 $as_echo "PATH: $as_dir"1549 done2345 $as_echo "PATH: $as_dir" 2346 done 1550 2347 IFS=$as_save_IFS 1551 2348 … … 1584 2381 esac 1585 2382 case $ac_pass in 1586 1) a c_configure_args0="$ac_configure_args0'$ac_arg'" ;;2383 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1587 2384 2) 1588 a c_configure_args1="$ac_configure_args1'$ac_arg'"2385 as_fn_append ac_configure_args1 " '$ac_arg'" 1589 2386 if test $ac_must_keep_next = true; then 1590 2387 ac_must_keep_next=false # Got value, back to normal. … … 1602 2399 esac 1603 2400 fi 1604 a c_configure_args="$ac_configure_args'$ac_arg'"2401 as_fn_append ac_configure_args " '$ac_arg'" 1605 2402 ;; 1606 2403 esac 1607 2404 done 1608 2405 done 1609 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0;}1610 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1;}2406 { ac_configure_args0=; unset ac_configure_args0;} 2407 { ac_configure_args1=; unset ac_configure_args1;} 1611 2408 1612 2409 # When interrupted or exit'd, cleanup temporary files, and complete … … 1620 2417 echo 1621 2418 1622 cat <<\_ASBOX 1623 ## ---------------- ## 2419 $as_echo "## ---------------- ## 1624 2420 ## Cache variables. ## 1625 ## ---------------- ## 1626 _ASBOX 2421 ## ---------------- ##" 1627 2422 echo 1628 2423 # The following way of writing the cache mishandles newlines in values, … … 1633 2428 *${as_nl}*) 1634 2429 case $ac_var in #( 1635 *_cv_*) { $as_echo "$as_me:$ LINENO: WARNING: cache variable $ac_var contains a newline" >&52430 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1636 2431 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1637 2432 esac … … 1639 2434 _ | IFS | as_nl) ;; #( 1640 2435 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1641 *) $as_unset $ac_var;;2436 *) { eval $ac_var=; unset $ac_var;} ;; 1642 2437 esac ;; 1643 2438 esac … … 1658 2453 echo 1659 2454 1660 cat <<\_ASBOX 1661 ## ----------------- ## 2455 $as_echo "## ----------------- ## 1662 2456 ## Output variables. ## 1663 ## ----------------- ## 1664 _ASBOX 2457 ## ----------------- ##" 1665 2458 echo 1666 2459 for ac_var in $ac_subst_vars … … 1675 2468 1676 2469 if test -n "$ac_subst_files"; then 1677 cat <<\_ASBOX 1678 ## ------------------- ## 2470 $as_echo "## ------------------- ## 1679 2471 ## File substitutions. ## 1680 ## ------------------- ## 1681 _ASBOX 2472 ## ------------------- ##" 1682 2473 echo 1683 2474 for ac_var in $ac_subst_files … … 1693 2484 1694 2485 if test -s confdefs.h; then 1695 cat <<\_ASBOX 1696 ## ----------- ## 2486 $as_echo "## ----------- ## 1697 2487 ## confdefs.h. ## 1698 ## ----------- ## 1699 _ASBOX 2488 ## ----------- ##" 1700 2489 echo 1701 2490 cat confdefs.h … … 1711 2500 ' 0 1712 2501 for ac_signal in 1 2 13 15; do 1713 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal2502 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1714 2503 done 1715 2504 ac_signal=0 … … 1718 2507 rm -f -r conftest* confdefs.h 1719 2508 2509 $as_echo "/* confdefs.h */" > confdefs.h 2510 1720 2511 # Predefined preprocessor variables. 1721 2512 … … 1724 2515 _ACEOF 1725 2516 1726 1727 2517 cat >>confdefs.h <<_ACEOF 1728 2518 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1729 2519 _ACEOF 1730 2520 1731 1732 2521 cat >>confdefs.h <<_ACEOF 1733 2522 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1734 2523 _ACEOF 1735 2524 1736 1737 2525 cat >>confdefs.h <<_ACEOF 1738 2526 #define PACKAGE_STRING "$PACKAGE_STRING" 1739 2527 _ACEOF 1740 2528 1741 1742 2529 cat >>confdefs.h <<_ACEOF 1743 2530 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2531 _ACEOF 2532 2533 cat >>confdefs.h <<_ACEOF 2534 #define PACKAGE_URL "$PACKAGE_URL" 1744 2535 _ACEOF 1745 2536 … … 1750 2541 ac_site_file2=NONE 1751 2542 if test -n "$CONFIG_SITE"; then 1752 ac_site_file1=$CONFIG_SITE 2543 # We do not want a PATH search for config.site. 2544 case $CONFIG_SITE in #(( 2545 -*) ac_site_file1=./$CONFIG_SITE;; 2546 */*) ac_site_file1=$CONFIG_SITE;; 2547 *) ac_site_file1=./$CONFIG_SITE;; 2548 esac 1753 2549 elif test "x$prefix" != xNONE; then 1754 2550 ac_site_file1=$prefix/share/config.site … … 1761 2557 do 1762 2558 test "x$ac_site_file" = xNONE && continue 1763 if test -r "$ac_site_file"; then1764 { $as_echo "$as_me:$ LINENO: loading site script $ac_site_file" >&52559 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1765 2561 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1766 2562 sed 's/^/| /' "$ac_site_file" >&5 1767 . "$ac_site_file" 2563 . "$ac_site_file" \ 2564 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2566 as_fn_error $? "failed to load site script $ac_site_file 2567 See \`config.log' for more details" "$LINENO" 5; } 1768 2568 fi 1769 2569 done 1770 2570 1771 2571 if test -r "$cache_file"; then 1772 # Some versions of bash will fail to source /dev/null (special 1773 # files actually), so we avoid doing that.1774 if test -f "$cache_file"; then1775 { $as_echo "$as_me:$ LINENO: loading cache $cache_file" >&52572 # Some versions of bash will fail to source /dev/null (special files 2573 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2574 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2575 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1776 2576 $as_echo "$as_me: loading cache $cache_file" >&6;} 1777 2577 case $cache_file in … … 1781 2581 fi 1782 2582 else 1783 { $as_echo "$as_me:$ LINENO: creating cache $cache_file" >&52583 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1784 2584 $as_echo "$as_me: creating cache $cache_file" >&6;} 1785 2585 >$cache_file … … 1796 2596 case $ac_old_set,$ac_new_set in 1797 2597 set,) 1798 { $as_echo "$as_me:$ LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&52598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1799 2599 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1800 2600 ac_cache_corrupted=: ;; 1801 2601 ,set) 1802 { $as_echo "$as_me:$ LINENO: error: \`$ac_var' was not set in the previous run" >&52602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 1803 2603 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1804 2604 ac_cache_corrupted=: ;; … … 1810 2610 ac_new_val_w=`echo x $ac_new_val` 1811 2611 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1812 { $as_echo "$as_me:$ LINENO: error: \`$ac_var' has changed since the previous run:" >&52612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 1813 2613 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1814 2614 ac_cache_corrupted=: 1815 2615 else 1816 { $as_echo "$as_me:$ LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&52616 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1817 2617 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1818 2618 eval $ac_var=\$ac_old_val 1819 2619 fi 1820 { $as_echo "$as_me:$ LINENO: former value: \`$ac_old_val'" >&52620 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 1821 2621 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1822 { $as_echo "$as_me:$ LINENO: current value: \`$ac_new_val'" >&52622 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 1823 2623 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1824 2624 fi;; … … 1832 2632 case " $ac_configure_args " in 1833 2633 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1834 *) a c_configure_args="$ac_configure_args'$ac_arg'" ;;2634 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1835 2635 esac 1836 2636 fi 1837 2637 done 1838 2638 if $ac_cache_corrupted; then 1839 { $as_echo "$as_me:$ LINENO: error: in \`$ac_pwd':" >&52639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1840 2640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1841 { $as_echo "$as_me:$ LINENO: error: changes in the environment can compromise the build" >&52641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 1842 2642 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1843 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1844 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1845 { (exit 1); exit 1; }; } 1846 fi 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 2643 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2644 fi 2645 ## -------------------- ## 2646 ## Main body of script. ## 2647 ## -------------------- ## 1871 2648 1872 2649 ac_ext=c … … 1894 2671 done 1895 2672 if test -z "$ac_aux_dir"; then 1896 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cf \"$srcdir\"/cf" >&5 1897 $as_echo "$as_me: error: cannot find install-sh or install.sh in cf \"$srcdir\"/cf" >&2;} 1898 { (exit 1); exit 1; }; } 2673 as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5 1899 2674 fi 1900 2675 … … 1913 2688 1914 2689 # Check whether --with-tcllib was given. 1915 if test "${with_tcllib+set}" = set; then 2690 if test "${with_tcllib+set}" = set; then : 1916 2691 withval=$with_tcllib; with_tcllib=$withval 1917 2692 else … … 1922 2697 1923 2698 # Check whether --with-rappture was given. 1924 if test "${with_rappture+set}" = set; then 2699 if test "${with_rappture+set}" = set; then : 1925 2700 withval=$with_rappture; with_rappture=$withval 1926 2701 else … … 1931 2706 1932 2707 # Check whether --with-vtk-includes was given. 1933 if test "${with_vtk_includes+set}" = set; then 2708 if test "${with_vtk_includes+set}" = set; then : 1934 2709 withval=$with_vtk_includes; with_vtk_includes=$withval 1935 2710 else … … 1940 2715 1941 2716 # Check whether --with-vtk-libs was given. 1942 if test "${with_vtk_libs+set}" = set; then 2717 if test "${with_vtk_libs+set}" = set; then : 1943 2718 withval=$with_vtk_libs; with_vtk_libs=$withval 1944 2719 else … … 1949 2724 1950 2725 # Check whether --with-vtk was given. 1951 if test "${with_vtk+set}" = set; then 2726 if test "${with_vtk+set}" = set; then : 1952 2727 withval=$with_vtk; with_vtk=$withval 1953 2728 else … … 1964 2739 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1965 2740 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1966 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&52741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1967 2742 $as_echo_n "checking for $ac_word... " >&6; } 1968 if test "${ac_cv_prog_CC+set}" = set; then2743 if ${ac_cv_prog_CC+:} false; then : 1969 2744 $as_echo_n "(cached) " >&6 1970 2745 else … … 1977 2752 IFS=$as_save_IFS 1978 2753 test -z "$as_dir" && as_dir=. 1979 for ac_exec_ext in '' $ac_executable_extensions; do1980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2754 for ac_exec_ext in '' $ac_executable_extensions; do 2755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1981 2756 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1982 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1983 2758 break 2 1984 2759 fi 1985 2760 done 1986 done2761 done 1987 2762 IFS=$as_save_IFS 1988 2763 … … 1991 2766 CC=$ac_cv_prog_CC 1992 2767 if test -n "$CC"; then 1993 { $as_echo "$as_me:$ LINENO: result: $CC" >&52768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 1994 2769 $as_echo "$CC" >&6; } 1995 2770 else 1996 { $as_echo "$as_me:$ LINENO: result: no" >&52771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1997 2772 $as_echo "no" >&6; } 1998 2773 fi … … 2004 2779 # Extract the first word of "gcc", so it can be a program name with args. 2005 2780 set dummy gcc; ac_word=$2 2006 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&52781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2007 2782 $as_echo_n "checking for $ac_word... " >&6; } 2008 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then2783 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2009 2784 $as_echo_n "(cached) " >&6 2010 2785 else … … 2017 2792 IFS=$as_save_IFS 2018 2793 test -z "$as_dir" && as_dir=. 2019 for ac_exec_ext in '' $ac_executable_extensions; do2020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2794 for ac_exec_ext in '' $ac_executable_extensions; do 2795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2021 2796 ac_cv_prog_ac_ct_CC="gcc" 2022 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2023 2798 break 2 2024 2799 fi 2025 2800 done 2026 done2801 done 2027 2802 IFS=$as_save_IFS 2028 2803 … … 2031 2806 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2032 2807 if test -n "$ac_ct_CC"; then 2033 { $as_echo "$as_me:$ LINENO: result: $ac_ct_CC" >&52808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2034 2809 $as_echo "$ac_ct_CC" >&6; } 2035 2810 else 2036 { $as_echo "$as_me:$ LINENO: result: no" >&52811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2037 2812 $as_echo "no" >&6; } 2038 2813 fi … … 2043 2818 case $cross_compiling:$ac_tool_warned in 2044 2819 yes:) 2045 { $as_echo "$as_me:$ LINENO: WARNING: using cross tools not prefixed with host triplet" >&52820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2046 2821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2047 2822 ac_tool_warned=yes ;; … … 2057 2832 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2058 2833 set dummy ${ac_tool_prefix}cc; ac_word=$2 2059 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&52834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2060 2835 $as_echo_n "checking for $ac_word... " >&6; } 2061 if test "${ac_cv_prog_CC+set}" = set; then2836 if ${ac_cv_prog_CC+:} false; then : 2062 2837 $as_echo_n "(cached) " >&6 2063 2838 else … … 2070 2845 IFS=$as_save_IFS 2071 2846 test -z "$as_dir" && as_dir=. 2072 for ac_exec_ext in '' $ac_executable_extensions; do2073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2847 for ac_exec_ext in '' $ac_executable_extensions; do 2848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2074 2849 ac_cv_prog_CC="${ac_tool_prefix}cc" 2075 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2076 2851 break 2 2077 2852 fi 2078 2853 done 2079 done2854 done 2080 2855 IFS=$as_save_IFS 2081 2856 … … 2084 2859 CC=$ac_cv_prog_CC 2085 2860 if test -n "$CC"; then 2086 { $as_echo "$as_me:$ LINENO: result: $CC" >&52861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2087 2862 $as_echo "$CC" >&6; } 2088 2863 else 2089 { $as_echo "$as_me:$ LINENO: result: no" >&52864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2090 2865 $as_echo "no" >&6; } 2091 2866 fi … … 2097 2872 # Extract the first word of "cc", so it can be a program name with args. 2098 2873 set dummy cc; ac_word=$2 2099 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&52874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2100 2875 $as_echo_n "checking for $ac_word... " >&6; } 2101 if test "${ac_cv_prog_CC+set}" = set; then2876 if ${ac_cv_prog_CC+:} false; then : 2102 2877 $as_echo_n "(cached) " >&6 2103 2878 else … … 2111 2886 IFS=$as_save_IFS 2112 2887 test -z "$as_dir" && as_dir=. 2113 for ac_exec_ext in '' $ac_executable_extensions; do2114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2888 for ac_exec_ext in '' $ac_executable_extensions; do 2889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2115 2890 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2116 2891 ac_prog_rejected=yes … … 2118 2893 fi 2119 2894 ac_cv_prog_CC="cc" 2120 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2121 2896 break 2 2122 2897 fi 2123 2898 done 2124 done2899 done 2125 2900 IFS=$as_save_IFS 2126 2901 … … 2141 2916 CC=$ac_cv_prog_CC 2142 2917 if test -n "$CC"; then 2143 { $as_echo "$as_me:$ LINENO: result: $CC" >&52918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2144 2919 $as_echo "$CC" >&6; } 2145 2920 else 2146 { $as_echo "$as_me:$ LINENO: result: no" >&52921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2147 2922 $as_echo "no" >&6; } 2148 2923 fi … … 2156 2931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2157 2932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2158 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&52933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2159 2934 $as_echo_n "checking for $ac_word... " >&6; } 2160 if test "${ac_cv_prog_CC+set}" = set; then2935 if ${ac_cv_prog_CC+:} false; then : 2161 2936 $as_echo_n "(cached) " >&6 2162 2937 else … … 2169 2944 IFS=$as_save_IFS 2170 2945 test -z "$as_dir" && as_dir=. 2171 for ac_exec_ext in '' $ac_executable_extensions; do2172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2946 for ac_exec_ext in '' $ac_executable_extensions; do 2947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2173 2948 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2174 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2175 2950 break 2 2176 2951 fi 2177 2952 done 2178 done2953 done 2179 2954 IFS=$as_save_IFS 2180 2955 … … 2183 2958 CC=$ac_cv_prog_CC 2184 2959 if test -n "$CC"; then 2185 { $as_echo "$as_me:$ LINENO: result: $CC" >&52960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2186 2961 $as_echo "$CC" >&6; } 2187 2962 else 2188 { $as_echo "$as_me:$ LINENO: result: no" >&52963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2189 2964 $as_echo "no" >&6; } 2190 2965 fi … … 2200 2975 # Extract the first word of "$ac_prog", so it can be a program name with args. 2201 2976 set dummy $ac_prog; ac_word=$2 2202 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&52977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2203 2978 $as_echo_n "checking for $ac_word... " >&6; } 2204 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then2979 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2205 2980 $as_echo_n "(cached) " >&6 2206 2981 else … … 2213 2988 IFS=$as_save_IFS 2214 2989 test -z "$as_dir" && as_dir=. 2215 for ac_exec_ext in '' $ac_executable_extensions; do2216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2990 for ac_exec_ext in '' $ac_executable_extensions; do 2991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2217 2992 ac_cv_prog_ac_ct_CC="$ac_prog" 2218 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2219 2994 break 2 2220 2995 fi 2221 2996 done 2222 done2997 done 2223 2998 IFS=$as_save_IFS 2224 2999 … … 2227 3002 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2228 3003 if test -n "$ac_ct_CC"; then 2229 { $as_echo "$as_me:$ LINENO: result: $ac_ct_CC" >&53004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2230 3005 $as_echo "$ac_ct_CC" >&6; } 2231 3006 else 2232 { $as_echo "$as_me:$ LINENO: result: no" >&53007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2233 3008 $as_echo "no" >&6; } 2234 3009 fi … … 2243 3018 case $cross_compiling:$ac_tool_warned in 2244 3019 yes:) 2245 { $as_echo "$as_me:$ LINENO: WARNING: using cross tools not prefixed with host triplet" >&53020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2246 3021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2247 3022 ac_tool_warned=yes ;; … … 2254 3029 2255 3030 2256 test -z "$CC" && { { $as_echo "$as_me:$ LINENO: error: in \`$ac_pwd':" >&53031 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2257 3032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2258 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2259 See \`config.log' for more details." >&5 2260 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2261 See \`config.log' for more details." >&2;} 2262 { (exit 1); exit 1; }; }; } 3033 as_fn_error $? "no acceptable C compiler found in \$PATH 3034 See \`config.log' for more details" "$LINENO" 5; } 2263 3035 2264 3036 # Provide some information about the compiler. 2265 $as_echo "$as_me:$ LINENO: checking for C compiler version" >&53037 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2266 3038 set X $ac_compile 2267 3039 ac_compiler=$2 2268 { (ac_try="$ac_compiler --version >&5" 3040 for ac_option in --version -v -V -qversion; do 3041 { { ac_try="$ac_compiler $ac_option >&5" 2269 3042 case "(($ac_try" in 2270 3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2271 3044 *) ac_try_echo=$ac_try;; 2272 3045 esac 2273 eval ac_try_echo="\"\$as_me:$ LINENO: $ac_try_echo\""2274 $as_echo "$ac_try_echo" )>&52275 (eval "$ac_compiler --version >&5") 2>&53046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3047 $as_echo "$ac_try_echo"; } >&5 3048 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2276 3049 ac_status=$? 2277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2278 (exit $ac_status); } 2279 { (ac_try="$ac_compiler -v >&5" 2280 case "(($ac_try" in 2281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2282 *) ac_try_echo=$ac_try;; 2283 esac 2284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2285 $as_echo "$ac_try_echo") >&5 2286 (eval "$ac_compiler -v >&5") 2>&5 2287 ac_status=$? 2288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2289 (exit $ac_status); } 2290 { (ac_try="$ac_compiler -V >&5" 2291 case "(($ac_try" in 2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2293 *) ac_try_echo=$ac_try;; 2294 esac 2295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2296 $as_echo "$ac_try_echo") >&5 2297 (eval "$ac_compiler -V >&5") 2>&5 2298 ac_status=$? 2299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2300 (exit $ac_status); } 2301 2302 cat >conftest.$ac_ext <<_ACEOF 2303 /* confdefs.h. */ 2304 _ACEOF 2305 cat confdefs.h >>conftest.$ac_ext 2306 cat >>conftest.$ac_ext <<_ACEOF 3050 if test -s conftest.err; then 3051 sed '10a\ 3052 ... rest of stderr output deleted ... 3053 10q' conftest.err >conftest.er1 3054 cat conftest.er1 >&5 3055 fi 3056 rm -f conftest.er1 conftest.err 3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3058 test $ac_status = 0; } 3059 done 3060 3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2307 3062 /* end confdefs.h. */ 2308 3063 … … 2320 3075 # It will help us diagnose broken compilers, and finding out an intuition 2321 3076 # of exeext. 2322 { $as_echo "$as_me:$ LINENO: checking for C compiler default output file name" >&52323 $as_echo_n "checking for C compiler default output file name... " >&6; }3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3078 $as_echo_n "checking whether the C compiler works... " >&6; } 2324 3079 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2325 3080 … … 2337 3092 rm -f $ac_rmfiles 2338 3093 2339 if { (ac_try="$ac_link_default"3094 if { { ac_try="$ac_link_default" 2340 3095 case "(($ac_try" in 2341 3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2342 3097 *) ac_try_echo=$ac_try;; 2343 3098 esac 2344 eval ac_try_echo="\"\$as_me:$ LINENO: $ac_try_echo\""2345 $as_echo "$ac_try_echo" )>&53099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3100 $as_echo "$ac_try_echo"; } >&5 2346 3101 (eval "$ac_link_default") 2>&5 2347 3102 ac_status=$? 2348 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&52349 (exit $ac_status); }; then3103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3104 test $ac_status = 0; }; then : 2350 3105 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2351 3106 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' … … 2364 3119 break;; 2365 3120 *.* ) 2366 3121 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2367 3122 then :; else 2368 3123 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` … … 2383 3138 ac_file='' 2384 3139 fi 2385 2386 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3140 if test -z "$ac_file"; then : 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3142 $as_echo "no" >&6; } 3143 $as_echo "$as_me: failed program was:" >&5 3144 sed 's/^/| /' conftest.$ac_ext >&5 3145 3146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3148 as_fn_error 77 "C compiler cannot create executables 3149 See \`config.log' for more details" "$LINENO" 5; } 3150 else 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3152 $as_echo "yes" >&6; } 3153 fi 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3155 $as_echo_n "checking for C compiler default output file name... " >&6; } 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2387 3157 $as_echo "$ac_file" >&6; } 2388 if test -z "$ac_file"; then2389 $as_echo "$as_me: failed program was:" >&52390 sed 's/^/| /' conftest.$ac_ext >&52391 2392 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&52393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}2394 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables2395 See \`config.log' for more details." >&52396 $as_echo "$as_me: error: C compiler cannot create executables2397 See \`config.log' for more details." >&2;}2398 { (exit 77); exit 77; }; }; }2399 fi2400 2401 3158 ac_exeext=$ac_cv_exeext 2402 2403 # Check that the compiler produces executables we can run. If not, either2404 # the compiler is broken, or we cross compile.2405 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&52406 $as_echo_n "checking whether the C compiler works... " >&6; }2407 # FIXME: These cross compiler hacks should be removed for Autoconf 3.02408 # If not cross compiling, check that we can run a simple program.2409 if test "$cross_compiling" != yes; then2410 if { ac_try='./$ac_file'2411 { (case "(($ac_try" in2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;2413 *) ac_try_echo=$ac_try;;2414 esac2415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""2416 $as_echo "$ac_try_echo") >&52417 (eval "$ac_try") 2>&52418 ac_status=$?2419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&52420 (exit $ac_status); }; }; then2421 cross_compiling=no2422 else2423 if test "$cross_compiling" = maybe; then2424 cross_compiling=yes2425 else2426 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&52427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}2428 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.2429 If you meant to cross compile, use \`--host'.2430 See \`config.log' for more details." >&52431 $as_echo "$as_me: error: cannot run C compiled programs.2432 If you meant to cross compile, use \`--host'.2433 See \`config.log' for more details." >&2;}2434 { (exit 1); exit 1; }; }; }2435 fi2436 fi2437 fi2438 { $as_echo "$as_me:$LINENO: result: yes" >&52439 $as_echo "yes" >&6; }2440 3159 2441 3160 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2442 3161 ac_clean_files=$ac_clean_files_save 2443 # Check that the compiler produces executables we can run. If not, either 2444 # the compiler is broken, or we cross compile. 2445 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2446 $as_echo_n "checking whether we are cross compiling... " >&6; } 2447 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2448 $as_echo "$cross_compiling" >&6; } 2449 2450 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2451 3163 $as_echo_n "checking for suffix of executables... " >&6; } 2452 if { (ac_try="$ac_link"3164 if { { ac_try="$ac_link" 2453 3165 case "(($ac_try" in 2454 3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2455 3167 *) ac_try_echo=$ac_try;; 2456 3168 esac 2457 eval ac_try_echo="\"\$as_me:$ LINENO: $ac_try_echo\""2458 $as_echo "$ac_try_echo" )>&53169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3170 $as_echo "$ac_try_echo"; } >&5 2459 3171 (eval "$ac_link") 2>&5 2460 3172 ac_status=$? 2461 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&52462 (exit $ac_status); }; then3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3174 test $ac_status = 0; }; then : 2463 3175 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2464 3176 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will … … 2475 3187 done 2476 3188 else 2477 { { $as_echo "$as_me:$ LINENO: error: in \`$ac_pwd':" >&53189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2478 3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2479 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2480 See \`config.log' for more details." >&5 2481 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2482 See \`config.log' for more details." >&2;} 2483 { (exit 1); exit 1; }; }; } 2484 fi 2485 2486 rm -f conftest$ac_cv_exeext 2487 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3191 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3192 See \`config.log' for more details" "$LINENO" 5; } 3193 fi 3194 rm -f conftest conftest$ac_cv_exeext 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2488 3196 $as_echo "$ac_cv_exeext" >&6; } 2489 3197 … … 2491 3199 EXEEXT=$ac_cv_exeext 2492 3200 ac_exeext=$EXEEXT 2493 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2494 $as_echo_n "checking for suffix of object files... " >&6; } 2495 if test "${ac_cv_objext+set}" = set; then 2496 $as_echo_n "(cached) " >&6 2497 else 2498 cat >conftest.$ac_ext <<_ACEOF 2499 /* confdefs.h. */ 2500 _ACEOF 2501 cat confdefs.h >>conftest.$ac_ext 2502 cat >>conftest.$ac_ext <<_ACEOF 3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2503 3202 /* end confdefs.h. */ 2504 3203 #include <stdio.h> 2505 3204 int 2506 3205 main () 2507 3206 { 3207 FILE *f = fopen ("conftest.out", "w"); 3208 return ferror (f) || fclose (f) != 0; 2508 3209 2509 3210 ; … … 2511 3212 } 2512 3213 _ACEOF 2513 rm -f conftest.o conftest.obj 2514 if { (ac_try="$ac_compile" 3214 ac_clean_files="$ac_clean_files conftest.out" 3215 # Check that the compiler produces executables we can run. If not, either 3216 # the compiler is broken, or we cross compile. 3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3218 $as_echo_n "checking whether we are cross compiling... " >&6; } 3219 if test "$cross_compiling" != yes; then 3220 { { ac_try="$ac_link" 2515 3221 case "(($ac_try" in 2516 3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2517 3223 *) ac_try_echo=$ac_try;; 2518 3224 esac 2519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2520 $as_echo "$ac_try_echo") >&5 3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3226 $as_echo "$ac_try_echo"; } >&5 3227 (eval "$ac_link") 2>&5 3228 ac_status=$? 3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3230 test $ac_status = 0; } 3231 if { ac_try='./conftest$ac_cv_exeext' 3232 { { case "(($ac_try" in 3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3234 *) ac_try_echo=$ac_try;; 3235 esac 3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3237 $as_echo "$ac_try_echo"; } >&5 3238 (eval "$ac_try") 2>&5 3239 ac_status=$? 3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3241 test $ac_status = 0; }; }; then 3242 cross_compiling=no 3243 else 3244 if test "$cross_compiling" = maybe; then 3245 cross_compiling=yes 3246 else 3247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3249 as_fn_error $? "cannot run C compiled programs. 3250 If you meant to cross compile, use \`--host'. 3251 See \`config.log' for more details" "$LINENO" 5; } 3252 fi 3253 fi 3254 fi 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3256 $as_echo "$cross_compiling" >&6; } 3257 3258 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3259 ac_clean_files=$ac_clean_files_save 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3261 $as_echo_n "checking for suffix of object files... " >&6; } 3262 if ${ac_cv_objext+:} false; then : 3263 $as_echo_n "(cached) " >&6 3264 else 3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3266 /* end confdefs.h. */ 3267 3268 int 3269 main () 3270 { 3271 3272 ; 3273 return 0; 3274 } 3275 _ACEOF 3276 rm -f conftest.o conftest.obj 3277 if { { ac_try="$ac_compile" 3278 case "(($ac_try" in 3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3280 *) ac_try_echo=$ac_try;; 3281 esac 3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3283 $as_echo "$ac_try_echo"; } >&5 2521 3284 (eval "$ac_compile") 2>&5 2522 3285 ac_status=$? 2523 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&52524 (exit $ac_status); }; then3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3287 test $ac_status = 0; }; then : 2525 3288 for ac_file in conftest.o conftest.obj conftest.*; do 2526 3289 test -f "$ac_file" || continue; … … 2535 3298 sed 's/^/| /' conftest.$ac_ext >&5 2536 3299 2537 { { $as_echo "$as_me:$ LINENO: error: in \`$ac_pwd':" >&53300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2538 3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2539 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2540 See \`config.log' for more details." >&5 2541 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2542 See \`config.log' for more details." >&2;} 2543 { (exit 1); exit 1; }; }; } 2544 fi 2545 3302 as_fn_error $? "cannot compute suffix of object files: cannot compile 3303 See \`config.log' for more details" "$LINENO" 5; } 3304 fi 2546 3305 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2547 3306 fi 2548 { $as_echo "$as_me:$ LINENO: result: $ac_cv_objext" >&53307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2549 3308 $as_echo "$ac_cv_objext" >&6; } 2550 3309 OBJEXT=$ac_cv_objext 2551 3310 ac_objext=$OBJEXT 2552 { $as_echo "$as_me:$ LINENO: checking whether we are using the GNU C compiler" >&53311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2553 3312 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2554 if test "${ac_cv_c_compiler_gnu+set}" = set; then3313 if ${ac_cv_c_compiler_gnu+:} false; then : 2555 3314 $as_echo_n "(cached) " >&6 2556 3315 else 2557 cat >conftest.$ac_ext <<_ACEOF 2558 /* confdefs.h. */ 2559 _ACEOF 2560 cat confdefs.h >>conftest.$ac_ext 2561 cat >>conftest.$ac_ext <<_ACEOF 3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2562 3317 /* end confdefs.h. */ 2563 3318 … … 2573 3328 } 2574 3329 _ACEOF 2575 rm -f conftest.$ac_objext 2576 if { (ac_try="$ac_compile" 2577 case "(($ac_try" in 2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2579 *) ac_try_echo=$ac_try;; 2580 esac 2581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2582 $as_echo "$ac_try_echo") >&5 2583 (eval "$ac_compile") 2>conftest.er1 2584 ac_status=$? 2585 grep -v '^ *+' conftest.er1 >conftest.err 2586 rm -f conftest.er1 2587 cat conftest.err >&5 2588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2589 (exit $ac_status); } && { 2590 test -z "$ac_c_werror_flag" || 2591 test ! -s conftest.err 2592 } && test -s conftest.$ac_objext; then 3330 if ac_fn_c_try_compile "$LINENO"; then : 2593 3331 ac_compiler_gnu=yes 2594 3332 else 2595 $as_echo "$as_me: failed program was:" >&5 2596 sed 's/^/| /' conftest.$ac_ext >&5 2597 2598 ac_compiler_gnu=no 2599 fi 2600 3333 ac_compiler_gnu=no 3334 fi 2601 3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2602 3336 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2603 3337 2604 3338 fi 2605 { $as_echo "$as_me:$ LINENO: result: $ac_cv_c_compiler_gnu" >&53339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2606 3340 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 2607 3341 if test $ac_compiler_gnu = yes; then … … 2612 3346 ac_test_CFLAGS=${CFLAGS+set} 2613 3347 ac_save_CFLAGS=$CFLAGS 2614 { $as_echo "$as_me:$ LINENO: checking whether $CC accepts -g" >&53348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2615 3349 $as_echo_n "checking whether $CC accepts -g... " >&6; } 2616 if test "${ac_cv_prog_cc_g+set}" = set; then3350 if ${ac_cv_prog_cc_g+:} false; then : 2617 3351 $as_echo_n "(cached) " >&6 2618 3352 else … … 2621 3355 ac_cv_prog_cc_g=no 2622 3356 CFLAGS="-g" 2623 cat >conftest.$ac_ext <<_ACEOF 2624 /* confdefs.h. */ 2625 _ACEOF 2626 cat confdefs.h >>conftest.$ac_ext 2627 cat >>conftest.$ac_ext <<_ACEOF 3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2628 3358 /* end confdefs.h. */ 2629 3359 … … 2636 3366 } 2637 3367 _ACEOF 2638 rm -f conftest.$ac_objext 2639 if { (ac_try="$ac_compile" 2640 case "(($ac_try" in 2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2642 *) ac_try_echo=$ac_try;; 2643 esac 2644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2645 $as_echo "$ac_try_echo") >&5 2646 (eval "$ac_compile") 2>conftest.er1 2647 ac_status=$? 2648 grep -v '^ *+' conftest.er1 >conftest.err 2649 rm -f conftest.er1 2650 cat conftest.err >&5 2651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2652 (exit $ac_status); } && { 2653 test -z "$ac_c_werror_flag" || 2654 test ! -s conftest.err 2655 } && test -s conftest.$ac_objext; then 3368 if ac_fn_c_try_compile "$LINENO"; then : 2656 3369 ac_cv_prog_cc_g=yes 2657 3370 else 2658 $as_echo "$as_me: failed program was:" >&5 2659 sed 's/^/| /' conftest.$ac_ext >&5 2660 2661 CFLAGS="" 2662 cat >conftest.$ac_ext <<_ACEOF 2663 /* confdefs.h. */ 2664 _ACEOF 2665 cat confdefs.h >>conftest.$ac_ext 2666 cat >>conftest.$ac_ext <<_ACEOF 3371 CFLAGS="" 3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2667 3373 /* end confdefs.h. */ 2668 3374 … … 2675 3381 } 2676 3382 _ACEOF 2677 rm -f conftest.$ac_objext 2678 if { (ac_try="$ac_compile" 2679 case "(($ac_try" in 2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2681 *) ac_try_echo=$ac_try;; 2682 esac 2683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2684 $as_echo "$ac_try_echo") >&5 2685 (eval "$ac_compile") 2>conftest.er1 2686 ac_status=$? 2687 grep -v '^ *+' conftest.er1 >conftest.err 2688 rm -f conftest.er1 2689 cat conftest.err >&5 2690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2691 (exit $ac_status); } && { 2692 test -z "$ac_c_werror_flag" || 2693 test ! -s conftest.err 2694 } && test -s conftest.$ac_objext; then 2695 : 2696 else 2697 $as_echo "$as_me: failed program was:" >&5 2698 sed 's/^/| /' conftest.$ac_ext >&5 2699 2700 ac_c_werror_flag=$ac_save_c_werror_flag 3383 if ac_fn_c_try_compile "$LINENO"; then : 3384 3385 else 3386 ac_c_werror_flag=$ac_save_c_werror_flag 2701 3387 CFLAGS="-g" 2702 cat >conftest.$ac_ext <<_ACEOF 2703 /* confdefs.h. */ 2704 _ACEOF 2705 cat confdefs.h >>conftest.$ac_ext 2706 cat >>conftest.$ac_ext <<_ACEOF 3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2707 3389 /* end confdefs.h. */ 2708 3390 … … 2715 3397 } 2716 3398 _ACEOF 2717 rm -f conftest.$ac_objext 2718 if { (ac_try="$ac_compile" 2719 case "(($ac_try" in 2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2721 *) ac_try_echo=$ac_try;; 2722 esac 2723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2724 $as_echo "$ac_try_echo") >&5 2725 (eval "$ac_compile") 2>conftest.er1 2726 ac_status=$? 2727 grep -v '^ *+' conftest.er1 >conftest.err 2728 rm -f conftest.er1 2729 cat conftest.err >&5 2730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2731 (exit $ac_status); } && { 2732 test -z "$ac_c_werror_flag" || 2733 test ! -s conftest.err 2734 } && test -s conftest.$ac_objext; then 3399 if ac_fn_c_try_compile "$LINENO"; then : 2735 3400 ac_cv_prog_cc_g=yes 2736 else 2737 $as_echo "$as_me: failed program was:" >&5 2738 sed 's/^/| /' conftest.$ac_ext >&5 2739 2740 2741 fi 2742 3401 fi 2743 3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2744 3403 fi 2745 2746 3404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2747 3405 fi 2748 2749 3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2750 3407 ac_c_werror_flag=$ac_save_c_werror_flag 2751 3408 fi 2752 { $as_echo "$as_me:$ LINENO: result: $ac_cv_prog_cc_g" >&53409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2753 3410 $as_echo "$ac_cv_prog_cc_g" >&6; } 2754 3411 if test "$ac_test_CFLAGS" = set; then … … 2767 3424 fi 2768 3425 fi 2769 { $as_echo "$as_me:$ LINENO: checking for $CC option to accept ISO C89" >&53426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2770 3427 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2771 if test "${ac_cv_prog_cc_c89+set}" = set; then3428 if ${ac_cv_prog_cc_c89+:} false; then : 2772 3429 $as_echo_n "(cached) " >&6 2773 3430 else 2774 3431 ac_cv_prog_cc_c89=no 2775 3432 ac_save_CC=$CC 2776 cat >conftest.$ac_ext <<_ACEOF 2777 /* confdefs.h. */ 2778 _ACEOF 2779 cat confdefs.h >>conftest.$ac_ext 2780 cat >>conftest.$ac_ext <<_ACEOF 3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2781 3434 /* end confdefs.h. */ 2782 3435 #include <stdarg.h> 2783 3436 #include <stdio.h> 2784 #include <sys/types.h> 2785 #include <sys/stat.h> 3437 struct stat; 2786 3438 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2787 3439 struct buf { int x; }; … … 2835 3487 do 2836 3488 CC="$ac_save_CC $ac_arg" 2837 rm -f conftest.$ac_objext 2838 if { (ac_try="$ac_compile" 2839 case "(($ac_try" in 2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2841 *) ac_try_echo=$ac_try;; 2842 esac 2843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2844 $as_echo "$ac_try_echo") >&5 2845 (eval "$ac_compile") 2>conftest.er1 2846 ac_status=$? 2847 grep -v '^ *+' conftest.er1 >conftest.err 2848 rm -f conftest.er1 2849 cat conftest.err >&5 2850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2851 (exit $ac_status); } && { 2852 test -z "$ac_c_werror_flag" || 2853 test ! -s conftest.err 2854 } && test -s conftest.$ac_objext; then 3489 if ac_fn_c_try_compile "$LINENO"; then : 2855 3490 ac_cv_prog_cc_c89=$ac_arg 2856 else 2857 $as_echo "$as_me: failed program was:" >&5 2858 sed 's/^/| /' conftest.$ac_ext >&5 2859 2860 2861 fi 2862 3491 fi 2863 3492 rm -f core conftest.err conftest.$ac_objext 2864 3493 test "x$ac_cv_prog_cc_c89" != "xno" && break … … 2871 3500 case "x$ac_cv_prog_cc_c89" in 2872 3501 x) 2873 { $as_echo "$as_me:$ LINENO: result: none needed" >&53502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 2874 3503 $as_echo "none needed" >&6; } ;; 2875 3504 xno) 2876 { $as_echo "$as_me:$ LINENO: result: unsupported" >&53505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 2877 3506 $as_echo "unsupported" >&6; } ;; 2878 3507 *) 2879 3508 CC="$CC $ac_cv_prog_cc_c89" 2880 { $as_echo "$as_me:$ LINENO: result: $ac_cv_prog_cc_c89" >&53509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 2881 3510 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2882 3511 esac 2883 3512 if test "x$ac_cv_prog_cc_c89" != xno; then : 3513 3514 fi 2884 3515 2885 3516 ac_ext=c … … 2895 3526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2896 3527 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2897 { $as_echo "$as_me:$ LINENO: checking how to run the C preprocessor" >&53528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 2898 3529 $as_echo_n "checking how to run the C preprocessor... " >&6; } 2899 3530 # On Suns, sometimes $CPP names a directory. … … 2902 3533 fi 2903 3534 if test -z "$CPP"; then 2904 if test "${ac_cv_prog_CPP+set}" = set; then3535 if ${ac_cv_prog_CPP+:} false; then : 2905 3536 $as_echo_n "(cached) " >&6 2906 3537 else … … 2917 3548 # On the NeXT, cc -E runs the code through the compiler's parser, 2918 3549 # not just through cpp. "Syntax error" is here to catch this case. 2919 cat >conftest.$ac_ext <<_ACEOF 2920 /* confdefs.h. */ 2921 _ACEOF 2922 cat confdefs.h >>conftest.$ac_ext 2923 cat >>conftest.$ac_ext <<_ACEOF 3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2924 3551 /* end confdefs.h. */ 2925 3552 #ifdef __STDC__ … … 2930 3557 Syntax error 2931 3558 _ACEOF 2932 if { (ac_try="$ac_cpp conftest.$ac_ext" 2933 case "(($ac_try" in 2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2935 *) ac_try_echo=$ac_try;; 2936 esac 2937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2938 $as_echo "$ac_try_echo") >&5 2939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2940 ac_status=$? 2941 grep -v '^ *+' conftest.er1 >conftest.err 2942 rm -f conftest.er1 2943 cat conftest.err >&5 2944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2945 (exit $ac_status); } >/dev/null && { 2946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2947 test ! -s conftest.err 2948 }; then 2949 : 2950 else 2951 $as_echo "$as_me: failed program was:" >&5 2952 sed 's/^/| /' conftest.$ac_ext >&5 2953 3559 if ac_fn_c_try_cpp "$LINENO"; then : 3560 3561 else 2954 3562 # Broken: fails on valid input. 2955 3563 continue 2956 3564 fi 2957 2958 rm -f conftest.err conftest.$ac_ext 3565 rm -f conftest.err conftest.i conftest.$ac_ext 2959 3566 2960 3567 # OK, works on sane cases. Now check whether nonexistent headers 2961 3568 # can be detected and how. 2962 cat >conftest.$ac_ext <<_ACEOF 2963 /* confdefs.h. */ 2964 _ACEOF 2965 cat confdefs.h >>conftest.$ac_ext 2966 cat >>conftest.$ac_ext <<_ACEOF 3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2967 3570 /* end confdefs.h. */ 2968 3571 #include <ac_nonexistent.h> 2969 3572 _ACEOF 2970 if { (ac_try="$ac_cpp conftest.$ac_ext" 2971 case "(($ac_try" in 2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2973 *) ac_try_echo=$ac_try;; 2974 esac 2975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2976 $as_echo "$ac_try_echo") >&5 2977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2978 ac_status=$? 2979 grep -v '^ *+' conftest.er1 >conftest.err 2980 rm -f conftest.er1 2981 cat conftest.err >&5 2982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2983 (exit $ac_status); } >/dev/null && { 2984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2985 test ! -s conftest.err 2986 }; then 3573 if ac_fn_c_try_cpp "$LINENO"; then : 2987 3574 # Broken: success on invalid input. 2988 3575 continue 2989 3576 else 2990 $as_echo "$as_me: failed program was:" >&52991 sed 's/^/| /' conftest.$ac_ext >&52992 2993 3577 # Passes both tests. 2994 3578 ac_preproc_ok=: 2995 3579 break 2996 3580 fi 2997 2998 rm -f conftest.err conftest.$ac_ext 3581 rm -f conftest.err conftest.i conftest.$ac_ext 2999 3582 3000 3583 done 3001 3584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3002 rm -f conftest. err conftest.$ac_ext3003 if $ac_preproc_ok; then 3585 rm -f conftest.i conftest.err conftest.$ac_ext 3586 if $ac_preproc_ok; then : 3004 3587 break 3005 3588 fi … … 3013 3596 ac_cv_prog_CPP=$CPP 3014 3597 fi 3015 { $as_echo "$as_me:$ LINENO: result: $CPP" >&53598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3016 3599 $as_echo "$CPP" >&6; } 3017 3600 ac_preproc_ok=false … … 3024 3607 # On the NeXT, cc -E runs the code through the compiler's parser, 3025 3608 # not just through cpp. "Syntax error" is here to catch this case. 3026 cat >conftest.$ac_ext <<_ACEOF 3027 /* confdefs.h. */ 3028 _ACEOF 3029 cat confdefs.h >>conftest.$ac_ext 3030 cat >>conftest.$ac_ext <<_ACEOF 3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3031 3610 /* end confdefs.h. */ 3032 3611 #ifdef __STDC__ … … 3037 3616 Syntax error 3038 3617 _ACEOF 3039 if { (ac_try="$ac_cpp conftest.$ac_ext" 3040 case "(($ac_try" in 3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3042 *) ac_try_echo=$ac_try;; 3043 esac 3044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3045 $as_echo "$ac_try_echo") >&5 3046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3047 ac_status=$? 3048 grep -v '^ *+' conftest.er1 >conftest.err 3049 rm -f conftest.er1 3050 cat conftest.err >&5 3051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3052 (exit $ac_status); } >/dev/null && { 3053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3054 test ! -s conftest.err 3055 }; then 3056 : 3057 else 3058 $as_echo "$as_me: failed program was:" >&5 3059 sed 's/^/| /' conftest.$ac_ext >&5 3060 3618 if ac_fn_c_try_cpp "$LINENO"; then : 3619 3620 else 3061 3621 # Broken: fails on valid input. 3062 3622 continue 3063 3623 fi 3064 3065 rm -f conftest.err conftest.$ac_ext 3624 rm -f conftest.err conftest.i conftest.$ac_ext 3066 3625 3067 3626 # OK, works on sane cases. Now check whether nonexistent headers 3068 3627 # can be detected and how. 3069 cat >conftest.$ac_ext <<_ACEOF 3070 /* confdefs.h. */ 3071 _ACEOF 3072 cat confdefs.h >>conftest.$ac_ext 3073 cat >>conftest.$ac_ext <<_ACEOF 3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3074 3629 /* end confdefs.h. */ 3075 3630 #include <ac_nonexistent.h> 3076 3631 _ACEOF 3077 if { (ac_try="$ac_cpp conftest.$ac_ext" 3078 case "(($ac_try" in 3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3080 *) ac_try_echo=$ac_try;; 3081 esac 3082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3083 $as_echo "$ac_try_echo") >&5 3084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3085 ac_status=$? 3086 grep -v '^ *+' conftest.er1 >conftest.err 3087 rm -f conftest.er1 3088 cat conftest.err >&5 3089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3090 (exit $ac_status); } >/dev/null && { 3091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3092 test ! -s conftest.err 3093 }; then 3632 if ac_fn_c_try_cpp "$LINENO"; then : 3094 3633 # Broken: success on invalid input. 3095 3634 continue 3096 3635 else 3097 $as_echo "$as_me: failed program was:" >&53098 sed 's/^/| /' conftest.$ac_ext >&53099 3100 3636 # Passes both tests. 3101 3637 ac_preproc_ok=: 3102 3638 break 3103 3639 fi 3104 3105 rm -f conftest.err conftest.$ac_ext 3640 rm -f conftest.err conftest.i conftest.$ac_ext 3106 3641 3107 3642 done 3108 3643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3109 rm -f conftest. err conftest.$ac_ext3110 if $ac_preproc_ok; then 3111 : 3112 else 3113 { { $as_echo "$as_me:$ LINENO: error: in \`$ac_pwd':" >&53644 rm -f conftest.i conftest.err conftest.$ac_ext 3645 if $ac_preproc_ok; then : 3646 3647 else 3648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3114 3649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3115 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3116 See \`config.log' for more details." >&5 3117 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3118 See \`config.log' for more details." >&2;} 3119 { (exit 1); exit 1; }; }; } 3650 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3651 See \`config.log' for more details" "$LINENO" 5; } 3120 3652 fi 3121 3653 … … 3127 3659 3128 3660 3129 { $as_echo "$as_me:$ LINENO: checking for grep that handles long lines and -e" >&53661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3130 3662 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3131 if test "${ac_cv_path_GREP+set}" = set; then3663 if ${ac_cv_path_GREP+:} false; then : 3132 3664 $as_echo_n "(cached) " >&6 3133 3665 else … … 3140 3672 IFS=$as_save_IFS 3141 3673 test -z "$as_dir" && as_dir=. 3142 for ac_prog in grep ggrep; do3674 for ac_prog in grep ggrep; do 3143 3675 for ac_exec_ext in '' $ac_executable_extensions; do 3144 3676 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3145 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; }|| continue3677 as_fn_executable_p "$ac_path_GREP" || continue 3146 3678 # Check for GNU ac_path_GREP and select it if it is found. 3147 3679 # Check for GNU $ac_path_GREP … … 3160 3692 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3161 3693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3162 a c_count=`expr $ac_count + 1`3694 as_fn_arith $ac_count + 1 && ac_count=$as_val 3163 3695 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3164 3696 # Best one so far, save it but keep looking for a better one … … 3175 3707 done 3176 3708 done 3177 done3709 done 3178 3710 IFS=$as_save_IFS 3179 3711 if test -z "$ac_cv_path_GREP"; then 3180 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3181 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3182 { (exit 1); exit 1; }; } 3712 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3183 3713 fi 3184 3714 else … … 3187 3717 3188 3718 fi 3189 { $as_echo "$as_me:$ LINENO: result: $ac_cv_path_GREP" >&53719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3190 3720 $as_echo "$ac_cv_path_GREP" >&6; } 3191 3721 GREP="$ac_cv_path_GREP" 3192 3722 3193 3723 3194 { $as_echo "$as_me:$ LINENO: checking for egrep" >&53724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3195 3725 $as_echo_n "checking for egrep... " >&6; } 3196 if test "${ac_cv_path_EGREP+set}" = set; then3726 if ${ac_cv_path_EGREP+:} false; then : 3197 3727 $as_echo_n "(cached) " >&6 3198 3728 else … … 3208 3738 IFS=$as_save_IFS 3209 3739 test -z "$as_dir" && as_dir=. 3210 for ac_prog in egrep; do3740 for ac_prog in egrep; do 3211 3741 for ac_exec_ext in '' $ac_executable_extensions; do 3212 3742 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3213 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; }|| continue3743 as_fn_executable_p "$ac_path_EGREP" || continue 3214 3744 # Check for GNU ac_path_EGREP and select it if it is found. 3215 3745 # Check for GNU $ac_path_EGREP … … 3228 3758 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3229 3759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3230 a c_count=`expr $ac_count + 1`3760 as_fn_arith $ac_count + 1 && ac_count=$as_val 3231 3761 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3232 3762 # Best one so far, save it but keep looking for a better one … … 3243 3773 done 3244 3774 done 3245 done3775 done 3246 3776 IFS=$as_save_IFS 3247 3777 if test -z "$ac_cv_path_EGREP"; then 3248 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3249 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3250 { (exit 1); exit 1; }; } 3778 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3251 3779 fi 3252 3780 else … … 3256 3784 fi 3257 3785 fi 3258 { $as_echo "$as_me:$ LINENO: result: $ac_cv_path_EGREP" >&53786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3259 3787 $as_echo "$ac_cv_path_EGREP" >&6; } 3260 3788 EGREP="$ac_cv_path_EGREP" 3261 3789 3262 3790 3263 { $as_echo "$as_me:$ LINENO: checking for ANSI C header files" >&53791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3264 3792 $as_echo_n "checking for ANSI C header files... " >&6; } 3265 if test "${ac_cv_header_stdc+set}" = set; then3793 if ${ac_cv_header_stdc+:} false; then : 3266 3794 $as_echo_n "(cached) " >&6 3267 3795 else 3268 cat >conftest.$ac_ext <<_ACEOF 3269 /* confdefs.h. */ 3270 _ACEOF 3271 cat confdefs.h >>conftest.$ac_ext 3272 cat >>conftest.$ac_ext <<_ACEOF 3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3273 3797 /* end confdefs.h. */ 3274 3798 #include <stdlib.h> … … 3285 3809 } 3286 3810 _ACEOF 3287 rm -f conftest.$ac_objext 3288 if { (ac_try="$ac_compile" 3289 case "(($ac_try" in 3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3291 *) ac_try_echo=$ac_try;; 3292 esac 3293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3294 $as_echo "$ac_try_echo") >&5 3295 (eval "$ac_compile") 2>conftest.er1 3296 ac_status=$? 3297 grep -v '^ *+' conftest.er1 >conftest.err 3298 rm -f conftest.er1 3299 cat conftest.err >&5 3300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3301 (exit $ac_status); } && { 3302 test -z "$ac_c_werror_flag" || 3303 test ! -s conftest.err 3304 } && test -s conftest.$ac_objext; then 3811 if ac_fn_c_try_compile "$LINENO"; then : 3305 3812 ac_cv_header_stdc=yes 3306 3813 else 3307 $as_echo "$as_me: failed program was:" >&5 3308 sed 's/^/| /' conftest.$ac_ext >&5 3309 3310 ac_cv_header_stdc=no 3311 fi 3312 3814 ac_cv_header_stdc=no 3815 fi 3313 3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3314 3817 3315 3818 if test $ac_cv_header_stdc = yes; then 3316 3819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3317 cat >conftest.$ac_ext <<_ACEOF 3318 /* confdefs.h. */ 3319 _ACEOF 3320 cat confdefs.h >>conftest.$ac_ext 3321 cat >>conftest.$ac_ext <<_ACEOF 3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3322 3821 /* end confdefs.h. */ 3323 3822 #include <string.h> … … 3325 3824 _ACEOF 3326 3825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3327 $EGREP "memchr" >/dev/null 2>&1; then 3328 : 3826 $EGREP "memchr" >/dev/null 2>&1; then : 3827 3329 3828 else 3330 3829 ac_cv_header_stdc=no … … 3336 3835 if test $ac_cv_header_stdc = yes; then 3337 3836 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3338 cat >conftest.$ac_ext <<_ACEOF 3339 /* confdefs.h. */ 3340 _ACEOF 3341 cat confdefs.h >>conftest.$ac_ext 3342 cat >>conftest.$ac_ext <<_ACEOF 3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3343 3838 /* end confdefs.h. */ 3344 3839 #include <stdlib.h> … … 3346 3841 _ACEOF 3347 3842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3348 $EGREP "free" >/dev/null 2>&1; then 3349 : 3843 $EGREP "free" >/dev/null 2>&1; then : 3844 3350 3845 else 3351 3846 ac_cv_header_stdc=no … … 3357 3852 if test $ac_cv_header_stdc = yes; then 3358 3853 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3359 if test "$cross_compiling" = yes; then 3854 if test "$cross_compiling" = yes; then : 3360 3855 : 3361 3856 else 3362 cat >conftest.$ac_ext <<_ACEOF 3363 /* confdefs.h. */ 3364 _ACEOF 3365 cat confdefs.h >>conftest.$ac_ext 3366 cat >>conftest.$ac_ext <<_ACEOF 3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3367 3858 /* end confdefs.h. */ 3368 3859 #include <ctype.h> … … 3391 3882 } 3392 3883 _ACEOF 3393 rm -f conftest$ac_exeext 3394 if { (ac_try="$ac_link" 3395 case "(($ac_try" in 3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3397 *) ac_try_echo=$ac_try;; 3398 esac 3399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3400 $as_echo "$ac_try_echo") >&5 3401 (eval "$ac_link") 2>&5 3402 ac_status=$? 3403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3405 { (case "(($ac_try" in 3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3407 *) ac_try_echo=$ac_try;; 3408 esac 3409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3410 $as_echo "$ac_try_echo") >&5 3411 (eval "$ac_try") 2>&5 3412 ac_status=$? 3413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3414 (exit $ac_status); }; }; then 3415 : 3416 else 3417 $as_echo "$as_me: program exited with status $ac_status" >&5 3418 $as_echo "$as_me: failed program was:" >&5 3419 sed 's/^/| /' conftest.$ac_ext >&5 3420 3421 ( exit $ac_status ) 3422 ac_cv_header_stdc=no 3423 fi 3424 rm -rf conftest.dSYM 3425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3426 fi 3427 3428 3429 fi 3430 fi 3431 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3884 if ac_fn_c_try_run "$LINENO"; then : 3885 3886 else 3887 ac_cv_header_stdc=no 3888 fi 3889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3890 conftest.$ac_objext conftest.beam conftest.$ac_ext 3891 fi 3892 3893 fi 3894 fi 3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3432 3896 $as_echo "$ac_cv_header_stdc" >&6; } 3433 3897 if test $ac_cv_header_stdc = yes; then 3434 3898 3435 cat >>confdefs.h <<\_ACEOF 3436 #define STDC_HEADERS 1 3437 _ACEOF 3899 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 3438 3900 3439 3901 fi 3440 3902 3441 3903 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3904 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3452 3905 inttypes.h stdint.h unistd.h 3453 do 3454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3455 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3456 $as_echo_n "checking for $ac_header... " >&6; } 3457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3458 $as_echo_n "(cached) " >&6 3459 else 3460 cat >conftest.$ac_ext <<_ACEOF 3461 /* confdefs.h. */ 3462 _ACEOF 3463 cat confdefs.h >>conftest.$ac_ext 3464 cat >>conftest.$ac_ext <<_ACEOF 3465 /* end confdefs.h. */ 3466 $ac_includes_default 3467 3468 #include <$ac_header> 3469 _ACEOF 3470 rm -f conftest.$ac_objext 3471 if { (ac_try="$ac_compile" 3472 case "(($ac_try" in 3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3474 *) ac_try_echo=$ac_try;; 3475 esac 3476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3477 $as_echo "$ac_try_echo") >&5 3478 (eval "$ac_compile") 2>conftest.er1 3479 ac_status=$? 3480 grep -v '^ *+' conftest.er1 >conftest.err 3481 rm -f conftest.er1 3482 cat conftest.err >&5 3483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3484 (exit $ac_status); } && { 3485 test -z "$ac_c_werror_flag" || 3486 test ! -s conftest.err 3487 } && test -s conftest.$ac_objext; then 3488 eval "$as_ac_Header=yes" 3489 else 3490 $as_echo "$as_me: failed program was:" >&5 3491 sed 's/^/| /' conftest.$ac_ext >&5 3492 3493 eval "$as_ac_Header=no" 3494 fi 3495 3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3497 fi 3498 ac_res=`eval 'as_val=${'$as_ac_Header'} 3499 $as_echo "$as_val"'` 3500 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 3501 $as_echo "$ac_res" >&6; } 3502 as_val=`eval 'as_val=${'$as_ac_Header'} 3503 $as_echo "$as_val"'` 3504 if test "x$as_val" = x""yes; then 3906 do : 3907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3908 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3909 " 3910 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3505 3911 cat >>confdefs.h <<_ACEOF 3506 3912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 … … 3527 3933 3528 3934 # Check whether --with-python was given. 3529 if test "${with_python+set}" = set; then 3935 if test "${with_python+set}" = set; then : 3530 3936 withval=$with_python; 3531 3937 else … … 3538 3944 # Extract the first word of "python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args. 3539 3945 set dummy python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2 3540 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&53946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3541 3947 $as_echo_n "checking for $ac_word... " >&6; } 3542 if test "${ac_cv_path_PYTHON+set}" = set; then3948 if ${ac_cv_path_PYTHON+:} false; then : 3543 3949 $as_echo_n "(cached) " >&6 3544 3950 else … … 3553 3959 IFS=$as_save_IFS 3554 3960 test -z "$as_dir" && as_dir=. 3555 for ac_exec_ext in '' $ac_executable_extensions; do3556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then3961 for ac_exec_ext in '' $ac_executable_extensions; do 3962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3557 3963 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 3558 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&53964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3559 3965 break 2 3560 3966 fi 3561 3967 done 3562 done3968 done 3563 3969 IFS=$as_save_IFS 3564 3970 … … 3568 3974 PYTHON=$ac_cv_path_PYTHON 3569 3975 if test -n "$PYTHON"; then 3570 { $as_echo "$as_me:$ LINENO: result: $PYTHON" >&53976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 3571 3977 $as_echo "$PYTHON" >&6; } 3572 3978 else 3573 { $as_echo "$as_me:$ LINENO: result: no" >&53979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3574 3980 $as_echo "no" >&6; } 3575 3981 fi … … 3579 3985 # Extract the first word of "python", so it can be a program name with args. 3580 3986 set dummy python; ac_word=$2 3581 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&53987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3582 3988 $as_echo_n "checking for $ac_word... " >&6; } 3583 if test "${ac_cv_path_PYTHON+set}" = set; then3989 if ${ac_cv_path_PYTHON+:} false; then : 3584 3990 $as_echo_n "(cached) " >&6 3585 3991 else … … 3595 4001 IFS=$as_save_IFS 3596 4002 test -z "$as_dir" && as_dir=. 3597 for ac_exec_ext in '' $ac_executable_extensions; do3598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then4003 for ac_exec_ext in '' $ac_executable_extensions; do 4004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3599 4005 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 3600 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&54006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3601 4007 break 2 3602 4008 fi 3603 4009 done 3604 done4010 done 3605 4011 IFS=$as_save_IFS 3606 4012 … … 3610 4016 PYTHON=$ac_cv_path_PYTHON 3611 4017 if test -n "$PYTHON"; then 3612 { $as_echo "$as_me:$ LINENO: result: $PYTHON" >&54018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 3613 4019 $as_echo "$PYTHON" >&6; } 3614 4020 else 3615 { $as_echo "$as_me:$ LINENO: result: no" >&54021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3616 4022 $as_echo "no" >&6; } 3617 4023 fi … … 3619 4025 3620 4026 fi 3621 { $as_echo "$as_me:$ LINENO: checking for Python version" >&54027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version" >&5 3622 4028 $as_echo_n "checking for Python version... " >&6; } 3623 4029 if test "x${PYTHON}" != "x"; then 3624 4030 PYTHON_VERSION=`${PYTHON} -c "import sys; print sys.version[0:3]"` 3625 4031 fi 3626 { $as_echo "$as_me:$ LINENO: result: $PYTHON_VERSION" >&54032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_VERSION" >&5 3627 4033 $as_echo "$PYTHON_VERSION" >&6; } 3628 4034 fi … … 3630 4036 if test "x${PYTHON_VERSION}" != "x"; then 3631 4037 PYTHON_INCLUDES=$incdir 3632 { $as_echo "$as_me:$ LINENO: checking for Python distutils" >&54038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils" >&5 3633 4039 $as_echo_n "checking for Python distutils... " >&6; } 3634 4040 PYTHON_DISTUTILS="" … … 3638 4044 PYTHON_DISTUTILS="yes" 3639 4045 fi 3640 { $as_echo "$as_me:$ LINENO: result: $PYTHON_DISTUTILS" >&54046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_DISTUTILS" >&5 3641 4047 $as_echo "$PYTHON_DISTUTILS" >&6; } 3642 4048 if test "${PYTHON_DISTUTILS}" = "yes" ; then … … 3645 4051 # Check for Python include path 3646 4052 # 3647 { $as_echo "$as_me:$ LINENO: checking path to Python headers" >&54053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to Python headers" >&5 3648 4054 $as_echo_n "checking path to Python headers... " >&6; } 3649 4055 PYTHON_INCDIR=`${PYTHON} -c "import distutils.sysconfig; \ 3650 4056 print distutils.sysconfig.get_python_inc();"` 3651 { $as_echo "$as_me:$ LINENO: result: $PYTHON_INCDIR" >&54057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCDIR" >&5 3652 4058 $as_echo "$PYTHON_INCDIR" >&6; } 3653 4059 # … … 3662 4068 save_CPPFLAGS=$CPPFLAGS 3663 4069 CPPFLAGS="$CPPFLAGS -I${PYTHON_INCDIR}" 3664 3665 for ac_header in Python.h 3666 do 3667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3669 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3670 $as_echo_n "checking for $ac_header... " >&6; } 3671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3672 $as_echo_n "(cached) " >&6 3673 fi 3674 ac_res=`eval 'as_val=${'$as_ac_Header'} 3675 $as_echo "$as_val"'` 3676 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 3677 $as_echo "$ac_res" >&6; } 3678 else 3679 # Is the header compilable? 3680 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 3681 $as_echo_n "checking $ac_header usability... " >&6; } 3682 cat >conftest.$ac_ext <<_ACEOF 3683 /* confdefs.h. */ 3684 _ACEOF 3685 cat confdefs.h >>conftest.$ac_ext 3686 cat >>conftest.$ac_ext <<_ACEOF 3687 /* end confdefs.h. */ 3688 $ac_includes_default 3689 #include <$ac_header> 3690 _ACEOF 3691 rm -f conftest.$ac_objext 3692 if { (ac_try="$ac_compile" 3693 case "(($ac_try" in 3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3695 *) ac_try_echo=$ac_try;; 3696 esac 3697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3698 $as_echo "$ac_try_echo") >&5 3699 (eval "$ac_compile") 2>conftest.er1 3700 ac_status=$? 3701 grep -v '^ *+' conftest.er1 >conftest.err 3702 rm -f conftest.er1 3703 cat conftest.err >&5 3704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3705 (exit $ac_status); } && { 3706 test -z "$ac_c_werror_flag" || 3707 test ! -s conftest.err 3708 } && test -s conftest.$ac_objext; then 3709 ac_header_compiler=yes 3710 else 3711 $as_echo "$as_me: failed program was:" >&5 3712 sed 's/^/| /' conftest.$ac_ext >&5 3713 3714 ac_header_compiler=no 3715 fi 3716 3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3718 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3719 $as_echo "$ac_header_compiler" >&6; } 3720 3721 # Is the header present? 3722 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 3723 $as_echo_n "checking $ac_header presence... " >&6; } 3724 cat >conftest.$ac_ext <<_ACEOF 3725 /* confdefs.h. */ 3726 _ACEOF 3727 cat confdefs.h >>conftest.$ac_ext 3728 cat >>conftest.$ac_ext <<_ACEOF 3729 /* end confdefs.h. */ 3730 #include <$ac_header> 3731 _ACEOF 3732 if { (ac_try="$ac_cpp conftest.$ac_ext" 3733 case "(($ac_try" in 3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3735 *) ac_try_echo=$ac_try;; 3736 esac 3737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3738 $as_echo "$ac_try_echo") >&5 3739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3740 ac_status=$? 3741 grep -v '^ *+' conftest.er1 >conftest.err 3742 rm -f conftest.er1 3743 cat conftest.err >&5 3744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3745 (exit $ac_status); } >/dev/null && { 3746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3747 test ! -s conftest.err 3748 }; then 3749 ac_header_preproc=yes 3750 else 3751 $as_echo "$as_me: failed program was:" >&5 3752 sed 's/^/| /' conftest.$ac_ext >&5 3753 3754 ac_header_preproc=no 3755 fi 3756 3757 rm -f conftest.err conftest.$ac_ext 3758 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3759 $as_echo "$ac_header_preproc" >&6; } 3760 3761 # So? What about this header? 3762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3763 yes:no: ) 3764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3765 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3767 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3768 ac_header_preproc=yes 3769 ;; 3770 no:yes:* ) 3771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3772 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3774 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3776 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3778 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3780 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3782 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3783 ( cat <<\_ASBOX 3784 ## ----------------------------------- ## 3785 ## Report this to rappture@nanohub.org ## 3786 ## ----------------------------------- ## 3787 _ASBOX 3788 ) | sed "s/^/$as_me: WARNING: /" >&2 3789 ;; 3790 esac 3791 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3792 $as_echo_n "checking for $ac_header... " >&6; } 3793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3794 $as_echo_n "(cached) " >&6 3795 else 3796 eval "$as_ac_Header=\$ac_header_preproc" 3797 fi 3798 ac_res=`eval 'as_val=${'$as_ac_Header'} 3799 $as_echo "$as_val"'` 3800 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 3801 $as_echo "$ac_res" >&6; } 3802 3803 fi 3804 as_val=`eval 'as_val=${'$as_ac_Header'} 3805 $as_echo "$as_val"'` 3806 if test "x$as_val" = x""yes; then 4070 for ac_header in Python.h 4071 do : 4072 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" 4073 if test "x$ac_cv_header_Python_h" = xyes; then : 3807 4074 cat >>confdefs.h <<_ACEOF 3808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp`14075 #define HAVE_PYTHON_H 1 3809 4076 _ACEOF 3810 4077 found=yes … … 3850 4117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3851 4118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3852 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&54119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3853 4120 $as_echo_n "checking for $ac_word... " >&6; } 3854 if test "${ac_cv_prog_RANLIB+set}" = set; then4121 if ${ac_cv_prog_RANLIB+:} false; then : 3855 4122 $as_echo_n "(cached) " >&6 3856 4123 else … … 3863 4130 IFS=$as_save_IFS 3864 4131 test -z "$as_dir" && as_dir=. 3865 for ac_exec_ext in '' $ac_executable_extensions; do3866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then4132 for ac_exec_ext in '' $ac_executable_extensions; do 4133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3867 4134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3868 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&54135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3869 4136 break 2 3870 4137 fi 3871 4138 done 3872 done4139 done 3873 4140 IFS=$as_save_IFS 3874 4141 … … 3877 4144 RANLIB=$ac_cv_prog_RANLIB 3878 4145 if test -n "$RANLIB"; then 3879 { $as_echo "$as_me:$ LINENO: result: $RANLIB" >&54146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3880 4147 $as_echo "$RANLIB" >&6; } 3881 4148 else 3882 { $as_echo "$as_me:$ LINENO: result: no" >&54149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3883 4150 $as_echo "no" >&6; } 3884 4151 fi … … 3890 4157 # Extract the first word of "ranlib", so it can be a program name with args. 3891 4158 set dummy ranlib; ac_word=$2 3892 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&54159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3893 4160 $as_echo_n "checking for $ac_word... " >&6; } 3894 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then4161 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 3895 4162 $as_echo_n "(cached) " >&6 3896 4163 else … … 3903 4170 IFS=$as_save_IFS 3904 4171 test -z "$as_dir" && as_dir=. 3905 for ac_exec_ext in '' $ac_executable_extensions; do3906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then4172 for ac_exec_ext in '' $ac_executable_extensions; do 4173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3907 4174 ac_cv_prog_ac_ct_RANLIB="ranlib" 3908 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&54175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3909 4176 break 2 3910 4177 fi 3911 4178 done 3912 done4179 done 3913 4180 IFS=$as_save_IFS 3914 4181 … … 3917 4184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3918 4185 if test -n "$ac_ct_RANLIB"; then 3919 { $as_echo "$as_me:$ LINENO: result: $ac_ct_RANLIB" >&54186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3920 4187 $as_echo "$ac_ct_RANLIB" >&6; } 3921 4188 else 3922 { $as_echo "$as_me:$ LINENO: result: no" >&54189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3923 4190 $as_echo "no" >&6; } 3924 4191 fi … … 3929 4196 case $cross_compiling:$ac_tool_warned in 3930 4197 yes:) 3931 { $as_echo "$as_me:$ LINENO: WARNING: using cross tools not prefixed with host triplet" >&54198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3932 4199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3933 4200 ac_tool_warned=yes ;; … … 3943 4210 # Step 0.a: Enable 64 bit support? 3944 4211 3945 { $as_echo "$as_me:$ LINENO: checking if 64bit support is requested" >&54212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5 3946 4213 $as_echo_n "checking if 64bit support is requested... " >&6; } 3947 4214 # Check whether --enable-64bit was given. 3948 if test "${enable_64bit+set}" = set; then 4215 if test "${enable_64bit+set}" = set; then : 3949 4216 enableval=$enable_64bit; do64bit=$enableval 3950 4217 else … … 3952 4219 fi 3953 4220 3954 { $as_echo "$as_me:$ LINENO: result: $do64bit" >&54221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5 3955 4222 $as_echo "$do64bit" >&6; } 3956 4223 3957 4224 # Step 0.b: Enable Solaris 64 bit VIS support? 3958 4225 3959 { $as_echo "$as_me:$ LINENO: checking if 64bit Sparc VIS support is requested" >&54226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5 3960 4227 $as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; } 3961 4228 # Check whether --enable-64bit-vis was given. 3962 if test "${enable_64bit_vis+set}" = set; then 4229 if test "${enable_64bit_vis+set}" = set; then : 3963 4230 enableval=$enable_64bit_vis; do64bitVIS=$enableval 3964 4231 else … … 3966 4233 fi 3967 4234 3968 { $as_echo "$as_me:$ LINENO: result: $do64bitVIS" >&54235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5 3969 4236 $as_echo "$do64bitVIS" >&6; } 3970 4237 … … 3978 4245 3979 4246 3980 { $as_echo "$as_me:$ LINENO: checking system version" >&54247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5 3981 4248 $as_echo_n "checking system version... " >&6; } 3982 if test "${tcl_cv_sys_version+set}" = set; then4249 if ${tcl_cv_sys_version+:} false; then : 3983 4250 $as_echo_n "(cached) " >&6 3984 4251 else … … 3989 4256 tcl_cv_sys_version=`uname -s`-`uname -r` 3990 4257 if test "$?" -ne 0 ; then 3991 { $as_echo "$as_me:$ LINENO: WARNING: can't find uname command" >&54258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 3992 4259 $as_echo "$as_me: WARNING: can't find uname command" >&2;} 3993 4260 tcl_cv_sys_version=unknown … … 4006 4273 4007 4274 fi 4008 { $as_echo "$as_me:$ LINENO: result: $tcl_cv_sys_version" >&54275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 4009 4276 $as_echo "$tcl_cv_sys_version" >&6; } 4010 4277 system=$tcl_cv_sys_version … … 4014 4281 # Linux can use either -ldl or -ldld for dynamic loading. 4015 4282 4016 { $as_echo "$as_me:$ LINENO: checking for dlopen in -ldl" >&54283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 4017 4284 $as_echo_n "checking for dlopen in -ldl... " >&6; } 4018 if test "${ac_cv_lib_dl_dlopen+set}" = set; then4285 if ${ac_cv_lib_dl_dlopen+:} false; then : 4019 4286 $as_echo_n "(cached) " >&6 4020 4287 else 4021 4288 ac_check_lib_save_LIBS=$LIBS 4022 4289 LIBS="-ldl $LIBS" 4023 cat >conftest.$ac_ext <<_ACEOF 4024 /* confdefs.h. */ 4025 _ACEOF 4026 cat confdefs.h >>conftest.$ac_ext 4027 cat >>conftest.$ac_ext <<_ACEOF 4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4028 4291 /* end confdefs.h. */ 4029 4292 … … 4043 4306 } 4044 4307 _ACEOF 4045 rm -f conftest.$ac_objext conftest$ac_exeext 4046 if { (ac_try="$ac_link" 4047 case "(($ac_try" in 4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4049 *) ac_try_echo=$ac_try;; 4050 esac 4051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4052 $as_echo "$ac_try_echo") >&5 4053 (eval "$ac_link") 2>conftest.er1 4054 ac_status=$? 4055 grep -v '^ *+' conftest.er1 >conftest.err 4056 rm -f conftest.er1 4057 cat conftest.err >&5 4058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4059 (exit $ac_status); } && { 4060 test -z "$ac_c_werror_flag" || 4061 test ! -s conftest.err 4062 } && test -s conftest$ac_exeext && { 4063 test "$cross_compiling" = yes || 4064 $as_test_x conftest$ac_exeext 4065 }; then 4308 if ac_fn_c_try_link "$LINENO"; then : 4066 4309 ac_cv_lib_dl_dlopen=yes 4067 4310 else 4068 $as_echo "$as_me: failed program was:" >&5 4069 sed 's/^/| /' conftest.$ac_ext >&5 4070 4071 ac_cv_lib_dl_dlopen=no 4072 fi 4073 4074 rm -rf conftest.dSYM 4075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4076 conftest$ac_exeext conftest.$ac_ext 4311 ac_cv_lib_dl_dlopen=no 4312 fi 4313 rm -f core conftest.err conftest.$ac_objext \ 4314 conftest$ac_exeext conftest.$ac_ext 4077 4315 LIBS=$ac_check_lib_save_LIBS 4078 4316 fi 4079 { $as_echo "$as_me:$ LINENO: result: $ac_cv_lib_dl_dlopen" >&54317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 4080 4318 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 4081 if test "x$ac_cv_lib_dl_dlopen" = x ""yes; then4319 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 4082 4320 have_dl=yes 4083 4321 else … … 4111 4349 # Extract the first word of "ar", so it can be a program name with args. 4112 4350 set dummy ar; ac_word=$2 4113 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&54351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4114 4352 $as_echo_n "checking for $ac_word... " >&6; } 4115 if test "${ac_cv_prog_AR+set}" = set; then4353 if ${ac_cv_prog_AR+:} false; then : 4116 4354 $as_echo_n "(cached) " >&6 4117 4355 else … … 4124 4362 IFS=$as_save_IFS 4125 4363 test -z "$as_dir" && as_dir=. 4126 for ac_exec_ext in '' $ac_executable_extensions; do4127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then4364 for ac_exec_ext in '' $ac_executable_extensions; do 4365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4128 4366 ac_cv_prog_AR="ar" 4129 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&54367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4130 4368 break 2 4131 4369 fi 4132 4370 done 4133 done4371 done 4134 4372 IFS=$as_save_IFS 4135 4373 … … 4138 4376 AR=$ac_cv_prog_AR 4139 4377 if test -n "$AR"; then 4140 { $as_echo "$as_me:$ LINENO: result: $AR" >&54378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4141 4379 $as_echo "$AR" >&6; } 4142 4380 else 4143 { $as_echo "$as_me:$ LINENO: result: no" >&54381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4144 4382 $as_echo "no" >&6; } 4145 4383 fi … … 4147 4385 4148 4386 if test "${AR}" = "" ; then 4149 { { $as_echo "$as_me:$LINENO: error: Required archive tool 'ar' not found on PATH." >&5 4150 $as_echo "$as_me: error: Required archive tool 'ar' not found on PATH." >&2;} 4151 { (exit 1); exit 1; }; } 4387 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 4152 4388 fi 4153 4389 STLIB_LD='${AR} cr' … … 4167 4403 ;; 4168 4404 esac 4169 { $as_echo "$as_me:$ LINENO: result: Using $CC for compiling with threads" >&54405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5 4170 4406 $as_echo "Using $CC for compiling with threads" >&6; } 4171 4407 fi … … 4183 4419 if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then 4184 4420 if test "$GCC" = "yes" ; then 4185 { $as_echo "$as_me:$ LINENO: WARNING: 64bit mode not supported with GCC on $system" >&54421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 4186 4422 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 4187 4423 else … … 4238 4474 # known GMT value. 4239 4475 4240 { $as_echo "$as_me:$ LINENO: checking for gettimeofday in -lbsd" >&54476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5 4241 4477 $as_echo_n "checking for gettimeofday in -lbsd... " >&6; } 4242 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then4478 if ${ac_cv_lib_bsd_gettimeofday+:} false; then : 4243 4479 $as_echo_n "(cached) " >&6 4244 4480 else 4245 4481 ac_check_lib_save_LIBS=$LIBS 4246 4482 LIBS="-lbsd $LIBS" 4247 cat >conftest.$ac_ext <<_ACEOF 4248 /* confdefs.h. */ 4249 _ACEOF 4250 cat confdefs.h >>conftest.$ac_ext 4251 cat >>conftest.$ac_ext <<_ACEOF 4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4252 4484 /* end confdefs.h. */ 4253 4485 … … 4267 4499 } 4268 4500 _ACEOF 4269 rm -f conftest.$ac_objext conftest$ac_exeext 4270 if { (ac_try="$ac_link" 4271 case "(($ac_try" in 4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4273 *) ac_try_echo=$ac_try;; 4274 esac 4275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4276 $as_echo "$ac_try_echo") >&5 4277 (eval "$ac_link") 2>conftest.er1 4278 ac_status=$? 4279 grep -v '^ *+' conftest.er1 >conftest.err 4280 rm -f conftest.er1 4281 cat conftest.err >&5 4282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4283 (exit $ac_status); } && { 4284 test -z "$ac_c_werror_flag" || 4285 test ! -s conftest.err 4286 } && test -s conftest$ac_exeext && { 4287 test "$cross_compiling" = yes || 4288 $as_test_x conftest$ac_exeext 4289 }; then 4501 if ac_fn_c_try_link "$LINENO"; then : 4290 4502 ac_cv_lib_bsd_gettimeofday=yes 4291 4503 else 4292 $as_echo "$as_me: failed program was:" >&5 4293 sed 's/^/| /' conftest.$ac_ext >&5 4294 4295 ac_cv_lib_bsd_gettimeofday=no 4296 fi 4297 4298 rm -rf conftest.dSYM 4299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4300 conftest$ac_exeext conftest.$ac_ext 4504 ac_cv_lib_bsd_gettimeofday=no 4505 fi 4506 rm -f core conftest.err conftest.$ac_objext \ 4507 conftest$ac_exeext conftest.$ac_ext 4301 4508 LIBS=$ac_check_lib_save_LIBS 4302 4509 fi 4303 { $as_echo "$as_me:$ LINENO: result: $ac_cv_lib_bsd_gettimeofday" >&54510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5 4304 4511 $as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; } 4305 if test "x$ac_cv_lib_bsd_gettimeofday" = x ""yes; then4512 if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then : 4306 4513 libbsd=yes 4307 4514 else … … 4311 4518 if test $libbsd = yes; then 4312 4519 MATH_LIBS="$MATH_LIBS -lbsd" 4313 cat >>confdefs.h <<\_ACEOF 4314 #define USE_DELTA_FOR_TZ 1 4315 _ACEOF 4520 $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h 4316 4521 4317 4522 fi … … 4330 4535 # is always linked to, for compatibility. 4331 4536 #----------------------------------------------------------- 4332 { $as_echo "$as_me:$ LINENO: checking for inet_ntoa in -lbind" >&54537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5 4333 4538 $as_echo_n "checking for inet_ntoa in -lbind... " >&6; } 4334 if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then4539 if ${ac_cv_lib_bind_inet_ntoa+:} false; then : 4335 4540 $as_echo_n "(cached) " >&6 4336 4541 else 4337 4542 ac_check_lib_save_LIBS=$LIBS 4338 4543 LIBS="-lbind $LIBS" 4339 cat >conftest.$ac_ext <<_ACEOF 4340 /* confdefs.h. */ 4341 _ACEOF 4342 cat confdefs.h >>conftest.$ac_ext 4343 cat >>conftest.$ac_ext <<_ACEOF 4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4344 4545 /* end confdefs.h. */ 4345 4546 … … 4359 4560 } 4360 4561 _ACEOF 4361 rm -f conftest.$ac_objext conftest$ac_exeext 4362 if { (ac_try="$ac_link" 4363 case "(($ac_try" in 4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4365 *) ac_try_echo=$ac_try;; 4366 esac 4367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4368 $as_echo "$ac_try_echo") >&5 4369 (eval "$ac_link") 2>conftest.er1 4370 ac_status=$? 4371 grep -v '^ *+' conftest.er1 >conftest.err 4372 rm -f conftest.er1 4373 cat conftest.err >&5 4374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4375 (exit $ac_status); } && { 4376 test -z "$ac_c_werror_flag" || 4377 test ! -s conftest.err 4378 } && test -s conftest$ac_exeext && { 4379 test "$cross_compiling" = yes || 4380 $as_test_x conftest$ac_exeext 4381 }; then 4562 if ac_fn_c_try_link "$LINENO"; then : 4382 4563 ac_cv_lib_bind_inet_ntoa=yes 4383 4564 else 4384 $as_echo "$as_me: failed program was:" >&5 4385 sed 's/^/| /' conftest.$ac_ext >&5 4386 4387 ac_cv_lib_bind_inet_ntoa=no 4388 fi 4389 4390 rm -rf conftest.dSYM 4391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4392 conftest$ac_exeext conftest.$ac_ext 4565 ac_cv_lib_bind_inet_ntoa=no 4566 fi 4567 rm -f core conftest.err conftest.$ac_objext \ 4568 conftest$ac_exeext conftest.$ac_ext 4393 4569 LIBS=$ac_check_lib_save_LIBS 4394 4570 fi 4395 { $as_echo "$as_me:$ LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&54571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5 4396 4572 $as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; } 4397 if test "x$ac_cv_lib_bind_inet_ntoa" = x ""yes; then4573 if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then : 4398 4574 LIBS="$LIBS -lbind -lsocket" 4399 4575 fi … … 4433 4609 HP-UX-*.11.*) 4434 4610 # Use updated header definitions where possible 4435 cat >>confdefs.h <<\_ACEOF 4436 #define _XOPEN_SOURCE 1 4437 _ACEOF 4611 $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h 4438 4612 # Use the XOPEN network library 4439 cat >>confdefs.h <<\_ACEOF 4440 #define _XOPEN_SOURCE_EXTENDED 1 4441 _ACEOF 4613 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h 4442 4614 # Use the XOPEN network library 4443 4615 LIBS="$LIBS -lxnet" # Use the XOPEN network library … … 4448 4620 SHLIB_SUFFIX=".sl" 4449 4621 fi 4450 { $as_echo "$as_me:$ LINENO: checking for shl_load in -ldld" >&54622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 4451 4623 $as_echo_n "checking for shl_load in -ldld... " >&6; } 4452 if test "${ac_cv_lib_dld_shl_load+set}" = set; then4624 if ${ac_cv_lib_dld_shl_load+:} false; then : 4453 4625 $as_echo_n "(cached) " >&6 4454 4626 else 4455 4627 ac_check_lib_save_LIBS=$LIBS 4456 4628 LIBS="-ldld $LIBS" 4457 cat >conftest.$ac_ext <<_ACEOF 4458 /* confdefs.h. */ 4459 _ACEOF 4460 cat confdefs.h >>conftest.$ac_ext 4461 cat >>conftest.$ac_ext <<_ACEOF 4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4462 4630 /* end confdefs.h. */ 4463 4631 … … 4477 4645 } 4478 4646 _ACEOF 4479 rm -f conftest.$ac_objext conftest$ac_exeext 4480 if { (ac_try="$ac_link" 4481 case "(($ac_try" in 4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4483 *) ac_try_echo=$ac_try;; 4484 esac 4485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4486 $as_echo "$ac_try_echo") >&5 4487 (eval "$ac_link") 2>conftest.er1 4488 ac_status=$? 4489 grep -v '^ *+' conftest.er1 >conftest.err 4490 rm -f conftest.er1 4491 cat conftest.err >&5 4492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4493 (exit $ac_status); } && { 4494 test -z "$ac_c_werror_flag" || 4495 test ! -s conftest.err 4496 } && test -s conftest$ac_exeext && { 4497 test "$cross_compiling" = yes || 4498 $as_test_x conftest$ac_exeext 4499 }; then 4647 if ac_fn_c_try_link "$LINENO"; then : 4500 4648 ac_cv_lib_dld_shl_load=yes 4501 4649 else 4502 $as_echo "$as_me: failed program was:" >&5 4503 sed 's/^/| /' conftest.$ac_ext >&5 4504 4505 ac_cv_lib_dld_shl_load=no 4506 fi 4507 4508 rm -rf conftest.dSYM 4509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4510 conftest$ac_exeext conftest.$ac_ext 4650 ac_cv_lib_dld_shl_load=no 4651 fi 4652 rm -f core conftest.err conftest.$ac_objext \ 4653 conftest$ac_exeext conftest.$ac_ext 4511 4654 LIBS=$ac_check_lib_save_LIBS 4512 4655 fi 4513 { $as_echo "$as_me:$ LINENO: result: $ac_cv_lib_dld_shl_load" >&54656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 4514 4657 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 4515 if test "x$ac_cv_lib_dld_shl_load" = x ""yes; then4658 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 4516 4659 tcl_ok=yes 4517 4660 else … … 4553 4696 ;; 4554 4697 *) 4555 { $as_echo "$as_me:$ LINENO: WARNING: 64bit mode not supported with GCC on $system" >&54698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 4556 4699 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 4557 4700 ;; … … 4566 4709 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) 4567 4710 SHLIB_SUFFIX=".sl" 4568 { $as_echo "$as_me:$ LINENO: checking for shl_load in -ldld" >&54711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 4569 4712 $as_echo_n "checking for shl_load in -ldld... " >&6; } 4570 if test "${ac_cv_lib_dld_shl_load+set}" = set; then4713 if ${ac_cv_lib_dld_shl_load+:} false; then : 4571 4714 $as_echo_n "(cached) " >&6 4572 4715 else 4573 4716 ac_check_lib_save_LIBS=$LIBS 4574 4717 LIBS="-ldld $LIBS" 4575 cat >conftest.$ac_ext <<_ACEOF 4576 /* confdefs.h. */ 4577 _ACEOF 4578 cat confdefs.h >>conftest.$ac_ext 4579 cat >>conftest.$ac_ext <<_ACEOF 4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4580 4719 /* end confdefs.h. */ 4581 4720 … … 4595 4734 } 4596 4735 _ACEOF 4597 rm -f conftest.$ac_objext conftest$ac_exeext 4598 if { (ac_try="$ac_link" 4599 case "(($ac_try" in 4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4601 *) ac_try_echo=$ac_try;; 4602 esac 4603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4604 $as_echo "$ac_try_echo") >&5 4605 (eval "$ac_link") 2>conftest.er1 4606 ac_status=$? 4607 grep -v '^ *+' conftest.er1 >conftest.err 4608 rm -f conftest.er1 4609 cat conftest.err >&5 4610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4611 (exit $ac_status); } && { 4612 test -z "$ac_c_werror_flag" || 4613 test ! -s conftest.err 4614 } && test -s conftest$ac_exeext && { 4615 test "$cross_compiling" = yes || 4616 $as_test_x conftest$ac_exeext 4617 }; then 4736 if ac_fn_c_try_link "$LINENO"; then : 4618 4737 ac_cv_lib_dld_shl_load=yes 4619 4738 else 4620 $as_echo "$as_me: failed program was:" >&5 4621 sed 's/^/| /' conftest.$ac_ext >&5 4622 4623 ac_cv_lib_dld_shl_load=no 4624 fi 4625 4626 rm -rf conftest.dSYM 4627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4628 conftest$ac_exeext conftest.$ac_ext 4739 ac_cv_lib_dld_shl_load=no 4740 fi 4741 rm -f core conftest.err conftest.$ac_objext \ 4742 conftest$ac_exeext conftest.$ac_ext 4629 4743 LIBS=$ac_check_lib_save_LIBS 4630 4744 fi 4631 { $as_echo "$as_me:$ LINENO: result: $ac_cv_lib_dld_shl_load" >&54745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 4632 4746 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 4633 if test "x$ac_cv_lib_dld_shl_load" = x ""yes; then4747 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 4634 4748 tcl_ok=yes 4635 4749 else … … 4710 4824 if test "$do64bit" = "yes" ; then 4711 4825 if test "$GCC" = "yes" ; then 4712 { $as_echo "$as_me:$ LINENO: WARNING: 64bit mode not supported by gcc" >&54826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5 4713 4827 $as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 4714 4828 else … … 4739 4853 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 4740 4854 else 4741 if test "${ac_cv_header_dld_h+set}" = set; then 4742 { $as_echo "$as_me:$LINENO: checking for dld.h" >&5 4743 $as_echo_n "checking for dld.h... " >&6; } 4744 if test "${ac_cv_header_dld_h+set}" = set; then 4745 $as_echo_n "(cached) " >&6 4746 fi 4747 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5 4748 $as_echo "$ac_cv_header_dld_h" >&6; } 4749 else 4750 # Is the header compilable? 4751 { $as_echo "$as_me:$LINENO: checking dld.h usability" >&5 4752 $as_echo_n "checking dld.h usability... " >&6; } 4753 cat >conftest.$ac_ext <<_ACEOF 4754 /* confdefs.h. */ 4755 _ACEOF 4756 cat confdefs.h >>conftest.$ac_ext 4757 cat >>conftest.$ac_ext <<_ACEOF 4758 /* end confdefs.h. */ 4759 $ac_includes_default 4760 #include <dld.h> 4761 _ACEOF 4762 rm -f conftest.$ac_objext 4763 if { (ac_try="$ac_compile" 4764 case "(($ac_try" in 4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4766 *) ac_try_echo=$ac_try;; 4767 esac 4768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4769 $as_echo "$ac_try_echo") >&5 4770 (eval "$ac_compile") 2>conftest.er1 4771 ac_status=$? 4772 grep -v '^ *+' conftest.er1 >conftest.err 4773 rm -f conftest.er1 4774 cat conftest.err >&5 4775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4776 (exit $ac_status); } && { 4777 test -z "$ac_c_werror_flag" || 4778 test ! -s conftest.err 4779 } && test -s conftest.$ac_objext; then 4780 ac_header_compiler=yes 4781 else 4782 $as_echo "$as_me: failed program was:" >&5 4783 sed 's/^/| /' conftest.$ac_ext >&5 4784 4785 ac_header_compiler=no 4786 fi 4787 4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4789 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4790 $as_echo "$ac_header_compiler" >&6; } 4791 4792 # Is the header present? 4793 { $as_echo "$as_me:$LINENO: checking dld.h presence" >&5 4794 $as_echo_n "checking dld.h presence... " >&6; } 4795 cat >conftest.$ac_ext <<_ACEOF 4796 /* confdefs.h. */ 4797 _ACEOF 4798 cat confdefs.h >>conftest.$ac_ext 4799 cat >>conftest.$ac_ext <<_ACEOF 4800 /* end confdefs.h. */ 4801 #include <dld.h> 4802 _ACEOF 4803 if { (ac_try="$ac_cpp conftest.$ac_ext" 4804 case "(($ac_try" in 4805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4806 *) ac_try_echo=$ac_try;; 4807 esac 4808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4809 $as_echo "$ac_try_echo") >&5 4810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4811 ac_status=$? 4812 grep -v '^ *+' conftest.er1 >conftest.err 4813 rm -f conftest.er1 4814 cat conftest.err >&5 4815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4816 (exit $ac_status); } >/dev/null && { 4817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4818 test ! -s conftest.err 4819 }; then 4820 ac_header_preproc=yes 4821 else 4822 $as_echo "$as_me: failed program was:" >&5 4823 sed 's/^/| /' conftest.$ac_ext >&5 4824 4825 ac_header_preproc=no 4826 fi 4827 4828 rm -f conftest.err conftest.$ac_ext 4829 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4830 $as_echo "$ac_header_preproc" >&6; } 4831 4832 # So? What about this header? 4833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4834 yes:no: ) 4835 { $as_echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5 4836 $as_echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4837 { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5 4838 $as_echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;} 4839 ac_header_preproc=yes 4840 ;; 4841 no:yes:* ) 4842 { $as_echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5 4843 $as_echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;} 4844 { $as_echo "$as_me:$LINENO: WARNING: dld.h: check for missing prerequisite headers?" >&5 4845 $as_echo "$as_me: WARNING: dld.h: check for missing prerequisite headers?" >&2;} 4846 { $as_echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5 4847 $as_echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;} 4848 { $as_echo "$as_me:$LINENO: WARNING: dld.h: section \"Present But Cannot Be Compiled\"" >&5 4849 $as_echo "$as_me: WARNING: dld.h: section \"Present But Cannot Be Compiled\"" >&2;} 4850 { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5 4851 $as_echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;} 4852 { $as_echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5 4853 $as_echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;} 4854 ( cat <<\_ASBOX 4855 ## ----------------------------------- ## 4856 ## Report this to rappture@nanohub.org ## 4857 ## ----------------------------------- ## 4858 _ASBOX 4859 ) | sed "s/^/$as_me: WARNING: /" >&2 4860 ;; 4861 esac 4862 { $as_echo "$as_me:$LINENO: checking for dld.h" >&5 4863 $as_echo_n "checking for dld.h... " >&6; } 4864 if test "${ac_cv_header_dld_h+set}" = set; then 4865 $as_echo_n "(cached) " >&6 4866 else 4867 ac_cv_header_dld_h=$ac_header_preproc 4868 fi 4869 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5 4870 $as_echo "$ac_cv_header_dld_h" >&6; } 4871 4872 fi 4873 if test "x$ac_cv_header_dld_h" = x""yes; then 4855 ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" 4856 if test "x$ac_cv_header_dld_h" = xyes; then : 4874 4857 4875 4858 SHLIB_LD="ld -shared" … … 4886 4869 fi 4887 4870 if test $do64bit = yes; then 4888 { $as_echo "$as_me:$ LINENO: checking if compiler accepts -m64 flag" >&54871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5 4889 4872 $as_echo_n "checking if compiler accepts -m64 flag... " >&6; } 4890 if test "${tcl_cv_cc_m64+set}" = set; then4873 if ${tcl_cv_cc_m64+:} false; then : 4891 4874 $as_echo_n "(cached) " >&6 4892 4875 else … … 4894 4877 hold_cflags=$CFLAGS 4895 4878 CFLAGS="$CFLAGS -m64" 4896 cat >conftest.$ac_ext <<_ACEOF 4897 /* confdefs.h. */ 4898 _ACEOF 4899 cat confdefs.h >>conftest.$ac_ext 4900 cat >>conftest.$ac_ext <<_ACEOF 4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4901 4880 /* end confdefs.h. */ 4902 4881 … … 4909 4888 } 4910 4889 _ACEOF 4911 rm -f conftest.$ac_objext conftest$ac_exeext 4912 if { (ac_try="$ac_link" 4913 case "(($ac_try" in 4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4915 *) ac_try_echo=$ac_try;; 4916 esac 4917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4918 $as_echo "$ac_try_echo") >&5 4919 (eval "$ac_link") 2>conftest.er1 4920 ac_status=$? 4921 grep -v '^ *+' conftest.er1 >conftest.err 4922 rm -f conftest.er1 4923 cat conftest.err >&5 4924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4925 (exit $ac_status); } && { 4926 test -z "$ac_c_werror_flag" || 4927 test ! -s conftest.err 4928 } && test -s conftest$ac_exeext && { 4929 test "$cross_compiling" = yes || 4930 $as_test_x conftest$ac_exeext 4931 }; then 4890 if ac_fn_c_try_link "$LINENO"; then : 4932 4891 tcl_cv_cc_m64=yes 4933 4892 else 4934 $as_echo "$as_me: failed program was:" >&5 4935 sed 's/^/| /' conftest.$ac_ext >&5 4936 4937 tcl_cv_cc_m64=no 4938 fi 4939 4940 rm -rf conftest.dSYM 4941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4942 conftest$ac_exeext conftest.$ac_ext 4893 tcl_cv_cc_m64=no 4894 fi 4895 rm -f core conftest.err conftest.$ac_objext \ 4896 conftest$ac_exeext conftest.$ac_ext 4943 4897 CFLAGS=$hold_cflags 4944 4898 fi 4945 { $as_echo "$as_me:$ LINENO: result: $tcl_cv_cc_m64" >&54899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5 4946 4900 $as_echo "$tcl_cv_cc_m64" >&6; } 4947 4901 if test $tcl_cv_cc_m64 = yes; then … … 4963 4917 4964 4918 # XIM peeking works under XFree86. 4965 cat >>confdefs.h <<\_ACEOF 4966 #define PEEK_XCLOSEIM 1 4967 _ACEOF 4919 $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h 4968 4920 4969 4921 … … 4982 4934 LD_SEARCH_FLAGS="" 4983 4935 else 4984 if test "${ac_cv_header_dld_h+set}" = set; then 4985 { $as_echo "$as_me:$LINENO: checking for dld.h" >&5 4986 $as_echo_n "checking for dld.h... " >&6; } 4987 if test "${ac_cv_header_dld_h+set}" = set; then 4988 $as_echo_n "(cached) " >&6 4989 fi 4990 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5 4991 $as_echo "$ac_cv_header_dld_h" >&6; } 4992 else 4993 # Is the header compilable? 4994 { $as_echo "$as_me:$LINENO: checking dld.h usability" >&5 4995 $as_echo_n "checking dld.h usability... " >&6; } 4996 cat >conftest.$ac_ext <<_ACEOF 4997 /* confdefs.h. */ 4998 _ACEOF 4999 cat confdefs.h >>conftest.$ac_ext 5000 cat >>conftest.$ac_ext <<_ACEOF 5001 /* end confdefs.h. */ 5002 $ac_includes_default 5003 #include <dld.h> 5004 _ACEOF 5005 rm -f conftest.$ac_objext 5006 if { (ac_try="$ac_compile" 5007 case "(($ac_try" in 5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5009 *) ac_try_echo=$ac_try;; 5010 esac 5011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5012 $as_echo "$ac_try_echo") >&5 5013 (eval "$ac_compile") 2>conftest.er1 5014 ac_status=$? 5015 grep -v '^ *+' conftest.er1 >conftest.err 5016 rm -f conftest.er1 5017 cat conftest.err >&5 5018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5019 (exit $ac_status); } && { 5020 test -z "$ac_c_werror_flag" || 5021 test ! -s conftest.err 5022 } && test -s conftest.$ac_objext; then 5023 ac_header_compiler=yes 5024 else 5025 $as_echo "$as_me: failed program was:" >&5 5026 sed 's/^/| /' conftest.$ac_ext >&5 5027 5028 ac_header_compiler=no 5029 fi 5030 5031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5032 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5033 $as_echo "$ac_header_compiler" >&6; } 5034 5035 # Is the header present? 5036 { $as_echo "$as_me:$LINENO: checking dld.h presence" >&5 5037 $as_echo_n "checking dld.h presence... " >&6; } 5038 cat >conftest.$ac_ext <<_ACEOF 5039 /* confdefs.h. */ 5040 _ACEOF 5041 cat confdefs.h >>conftest.$ac_ext 5042 cat >>conftest.$ac_ext <<_ACEOF 5043 /* end confdefs.h. */ 5044 #include <dld.h> 5045 _ACEOF 5046 if { (ac_try="$ac_cpp conftest.$ac_ext" 5047 case "(($ac_try" in 5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5049 *) ac_try_echo=$ac_try;; 5050 esac 5051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5052 $as_echo "$ac_try_echo") >&5 5053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5054 ac_status=$? 5055 grep -v '^ *+' conftest.er1 >conftest.err 5056 rm -f conftest.er1 5057 cat conftest.err >&5 5058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5059 (exit $ac_status); } >/dev/null && { 5060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5061 test ! -s conftest.err 5062 }; then 5063 ac_header_preproc=yes 5064 else 5065 $as_echo "$as_me: failed program was:" >&5 5066 sed 's/^/| /' conftest.$ac_ext >&5 5067 5068 ac_header_preproc=no 5069 fi 5070 5071 rm -f conftest.err conftest.$ac_ext 5072 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5073 $as_echo "$ac_header_preproc" >&6; } 5074 5075 # So? What about this header? 5076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5077 yes:no: ) 5078 { $as_echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5 5079 $as_echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5080 { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5 5081 $as_echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;} 5082 ac_header_preproc=yes 5083 ;; 5084 no:yes:* ) 5085 { $as_echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5 5086 $as_echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;} 5087 { $as_echo "$as_me:$LINENO: WARNING: dld.h: check for missing prerequisite headers?" >&5 5088 $as_echo "$as_me: WARNING: dld.h: check for missing prerequisite headers?" >&2;} 5089 { $as_echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5 5090 $as_echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;} 5091 { $as_echo "$as_me:$LINENO: WARNING: dld.h: section \"Present But Cannot Be Compiled\"" >&5 5092 $as_echo "$as_me: WARNING: dld.h: section \"Present But Cannot Be Compiled\"" >&2;} 5093 { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5 5094 $as_echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;} 5095 { $as_echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5 5096 $as_echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;} 5097 ( cat <<\_ASBOX 5098 ## ----------------------------------- ## 5099 ## Report this to rappture@nanohub.org ## 5100 ## ----------------------------------- ## 5101 _ASBOX 5102 ) | sed "s/^/$as_me: WARNING: /" >&2 5103 ;; 5104 esac 5105 { $as_echo "$as_me:$LINENO: checking for dld.h" >&5 5106 $as_echo_n "checking for dld.h... " >&6; } 5107 if test "${ac_cv_header_dld_h+set}" = set; then 5108 $as_echo_n "(cached) " >&6 5109 else 5110 ac_cv_header_dld_h=$ac_header_preproc 5111 fi 5112 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5 5113 $as_echo "$ac_cv_header_dld_h" >&6; } 5114 5115 fi 5116 if test "x$ac_cv_header_dld_h" = x""yes; then 4936 ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" 4937 if test "x$ac_cv_header_dld_h" = xyes; then : 5117 4938 5118 4939 SHLIB_LD="ld -shared" … … 5164 4985 NetBSD-*|FreeBSD-[1-2].*) 5165 4986 # Not available on all versions: check for include file. 5166 if test "${ac_cv_header_dlfcn_h+set}" = set; then 5167 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 5168 $as_echo_n "checking for dlfcn.h... " >&6; } 5169 if test "${ac_cv_header_dlfcn_h+set}" = set; then 5170 $as_echo_n "(cached) " >&6 5171 fi 5172 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 5173 $as_echo "$ac_cv_header_dlfcn_h" >&6; } 5174 else 5175 # Is the header compilable? 5176 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 5177 $as_echo_n "checking dlfcn.h usability... " >&6; } 5178 cat >conftest.$ac_ext <<_ACEOF 5179 /* confdefs.h. */ 5180 _ACEOF 5181 cat confdefs.h >>conftest.$ac_ext 5182 cat >>conftest.$ac_ext <<_ACEOF 5183 /* end confdefs.h. */ 5184 $ac_includes_default 5185 #include <dlfcn.h> 5186 _ACEOF 5187 rm -f conftest.$ac_objext 5188 if { (ac_try="$ac_compile" 5189 case "(($ac_try" in 5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5191 *) ac_try_echo=$ac_try;; 5192 esac 5193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5194 $as_echo "$ac_try_echo") >&5 5195 (eval "$ac_compile") 2>conftest.er1 5196 ac_status=$? 5197 grep -v '^ *+' conftest.er1 >conftest.err 5198 rm -f conftest.er1 5199 cat conftest.err >&5 5200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5201 (exit $ac_status); } && { 5202 test -z "$ac_c_werror_flag" || 5203 test ! -s conftest.err 5204 } && test -s conftest.$ac_objext; then 5205 ac_header_compiler=yes 5206 else 5207 $as_echo "$as_me: failed program was:" >&5 5208 sed 's/^/| /' conftest.$ac_ext >&5 5209 5210 ac_header_compiler=no 5211 fi 5212 5213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5214 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5215 $as_echo "$ac_header_compiler" >&6; } 5216 5217 # Is the header present? 5218 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 5219 $as_echo_n "checking dlfcn.h presence... " >&6; } 5220 cat >conftest.$ac_ext <<_ACEOF 5221 /* confdefs.h. */ 5222 _ACEOF 5223 cat confdefs.h >>conftest.$ac_ext 5224 cat >>conftest.$ac_ext <<_ACEOF 5225 /* end confdefs.h. */ 5226 #include <dlfcn.h> 5227 _ACEOF 5228 if { (ac_try="$ac_cpp conftest.$ac_ext" 5229 case "(($ac_try" in 5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5231 *) ac_try_echo=$ac_try;; 5232 esac 5233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5234 $as_echo "$ac_try_echo") >&5 5235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5236 ac_status=$? 5237 grep -v '^ *+' conftest.er1 >conftest.err 5238 rm -f conftest.er1 5239 cat conftest.err >&5 5240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5241 (exit $ac_status); } >/dev/null && { 5242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5243 test ! -s conftest.err 5244 }; then 5245 ac_header_preproc=yes 5246 else 5247 $as_echo "$as_me: failed program was:" >&5 5248 sed 's/^/| /' conftest.$ac_ext >&5 5249 5250 ac_header_preproc=no 5251 fi 5252 5253 rm -f conftest.err conftest.$ac_ext 5254 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5255 $as_echo "$ac_header_preproc" >&6; } 5256 5257 # So? What about this header? 5258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5259 yes:no: ) 5260 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 5261 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5262 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 5263 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 5264 ac_header_preproc=yes 5265 ;; 5266 no:yes:* ) 5267 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 5268 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 5269 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 5270 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 5271 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 5272 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 5273 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 5274 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 5275 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 5276 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 5277 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 5278 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 5279 ( cat <<\_ASBOX 5280 ## ----------------------------------- ## 5281 ## Report this to rappture@nanohub.org ## 5282 ## ----------------------------------- ## 5283 _ASBOX 5284 ) | sed "s/^/$as_me: WARNING: /" >&2 5285 ;; 5286 esac 5287 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 5288 $as_echo_n "checking for dlfcn.h... " >&6; } 5289 if test "${ac_cv_header_dlfcn_h+set}" = set; then 5290 $as_echo_n "(cached) " >&6 5291 else 5292 ac_cv_header_dlfcn_h=$ac_header_preproc 5293 fi 5294 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 5295 $as_echo "$ac_cv_header_dlfcn_h" >&6; } 5296 5297 fi 5298 if test "x$ac_cv_header_dlfcn_h" = x""yes; then 4987 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 4988 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 5299 4989 5300 4990 # NetBSD/SPARC needs -fPIC, -fpic will not do. … … 5307 4997 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5308 4998 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5309 { $as_echo "$as_me:$ LINENO: checking for ELF" >&54999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 5310 5000 $as_echo_n "checking for ELF... " >&6; } 5311 if test "${tcl_cv_ld_elf+set}" = set; then5001 if ${tcl_cv_ld_elf+:} false; then : 5312 5002 $as_echo_n "(cached) " >&6 5313 5003 else 5314 5004 5315 cat >conftest.$ac_ext <<_ACEOF 5316 /* confdefs.h. */ 5317 _ACEOF 5318 cat confdefs.h >>conftest.$ac_ext 5319 cat >>conftest.$ac_ext <<_ACEOF 5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5320 5006 /* end confdefs.h. */ 5321 5007 … … 5326 5012 _ACEOF 5327 5013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5328 $EGREP "yes" >/dev/null 2>&1; then 5014 $EGREP "yes" >/dev/null 2>&1; then : 5329 5015 tcl_cv_ld_elf=yes 5330 5016 else … … 5334 5020 5335 5021 fi 5336 { $as_echo "$as_me:$ LINENO: result: $tcl_cv_ld_elf" >&55022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 5337 5023 $as_echo "$tcl_cv_ld_elf" >&6; } 5338 5024 if test $tcl_cv_ld_elf = yes; then … … 5393 5079 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5394 5080 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' 5395 { $as_echo "$as_me:$ LINENO: checking for ELF" >&55081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 5396 5082 $as_echo_n "checking for ELF... " >&6; } 5397 if test "${tcl_cv_ld_elf+set}" = set; then5083 if ${tcl_cv_ld_elf+:} false; then : 5398 5084 $as_echo_n "(cached) " >&6 5399 5085 else 5400 5086 5401 cat >conftest.$ac_ext <<_ACEOF 5402 /* confdefs.h. */ 5403 _ACEOF 5404 cat confdefs.h >>conftest.$ac_ext 5405 cat >>conftest.$ac_ext <<_ACEOF 5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5406 5088 /* end confdefs.h. */ 5407 5089 … … 5412 5094 _ACEOF 5413 5095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5414 $EGREP "yes" >/dev/null 2>&1; then 5096 $EGREP "yes" >/dev/null 2>&1; then : 5415 5097 tcl_cv_ld_elf=yes 5416 5098 else … … 5420 5102 5421 5103 fi 5422 { $as_echo "$as_me:$ LINENO: result: $tcl_cv_ld_elf" >&55104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 5423 5105 $as_echo "$tcl_cv_ld_elf" >&6; } 5424 5106 if test $tcl_cv_ld_elf = yes; then … … 5475 5157 case `arch` in 5476 5158 ppc) 5477 { $as_echo "$as_me:$ LINENO: checking if compiler accepts -arch ppc64 flag" >&55159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5 5478 5160 $as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; } 5479 if test "${tcl_cv_cc_arch_ppc64+set}" = set; then5161 if ${tcl_cv_cc_arch_ppc64+:} false; then : 5480 5162 $as_echo_n "(cached) " >&6 5481 5163 else … … 5483 5165 hold_cflags=$CFLAGS 5484 5166 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 5485 cat >conftest.$ac_ext <<_ACEOF 5486 /* confdefs.h. */ 5487 _ACEOF 5488 cat confdefs.h >>conftest.$ac_ext 5489 cat >>conftest.$ac_ext <<_ACEOF 5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5490 5168 /* end confdefs.h. */ 5491 5169 … … 5498 5176 } 5499 5177 _ACEOF 5500 rm -f conftest.$ac_objext conftest$ac_exeext 5501 if { (ac_try="$ac_link" 5502 case "(($ac_try" in 5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5504 *) ac_try_echo=$ac_try;; 5505 esac 5506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5507 $as_echo "$ac_try_echo") >&5 5508 (eval "$ac_link") 2>conftest.er1 5509 ac_status=$? 5510 grep -v '^ *+' conftest.er1 >conftest.err 5511 rm -f conftest.er1 5512 cat conftest.err >&5 5513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5514 (exit $ac_status); } && { 5515 test -z "$ac_c_werror_flag" || 5516 test ! -s conftest.err 5517 } && test -s conftest$ac_exeext && { 5518 test "$cross_compiling" = yes || 5519 $as_test_x conftest$ac_exeext 5520 }; then 5178 if ac_fn_c_try_link "$LINENO"; then : 5521 5179 tcl_cv_cc_arch_ppc64=yes 5522 5180 else 5523 $as_echo "$as_me: failed program was:" >&5 5524 sed 's/^/| /' conftest.$ac_ext >&5 5525 5526 tcl_cv_cc_arch_ppc64=no 5527 fi 5528 5529 rm -rf conftest.dSYM 5530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5531 conftest$ac_exeext conftest.$ac_ext 5181 tcl_cv_cc_arch_ppc64=no 5182 fi 5183 rm -f core conftest.err conftest.$ac_objext \ 5184 conftest$ac_exeext conftest.$ac_ext 5532 5185 CFLAGS=$hold_cflags 5533 5186 fi 5534 { $as_echo "$as_me:$ LINENO: result: $tcl_cv_cc_arch_ppc64" >&55187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5 5535 5188 $as_echo "$tcl_cv_cc_arch_ppc64" >&6; } 5536 5189 if test $tcl_cv_cc_arch_ppc64 = yes; then … … 5539 5192 fi;; 5540 5193 i386) 5541 { $as_echo "$as_me:$ LINENO: checking if compiler accepts -arch x86_64 flag" >&55194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5 5542 5195 $as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; } 5543 if test "${tcl_cv_cc_arch_x86_64+set}" = set; then5196 if ${tcl_cv_cc_arch_x86_64+:} false; then : 5544 5197 $as_echo_n "(cached) " >&6 5545 5198 else … … 5547 5200 hold_cflags=$CFLAGS 5548 5201 CFLAGS="$CFLAGS -arch x86_64" 5549 cat >conftest.$ac_ext <<_ACEOF 5550 /* confdefs.h. */ 5551 _ACEOF 5552 cat confdefs.h >>conftest.$ac_ext 5553 cat >>conftest.$ac_ext <<_ACEOF 5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5554 5203 /* end confdefs.h. */ 5555 5204 … … 5562 5211 } 5563 5212 _ACEOF 5564 rm -f conftest.$ac_objext conftest$ac_exeext 5565 if { (ac_try="$ac_link" 5566 case "(($ac_try" in 5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5568 *) ac_try_echo=$ac_try;; 5569 esac 5570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5571 $as_echo "$ac_try_echo") >&5 5572 (eval "$ac_link") 2>conftest.er1 5573 ac_status=$? 5574 grep -v '^ *+' conftest.er1 >conftest.err 5575 rm -f conftest.er1 5576 cat conftest.err >&5 5577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5578 (exit $ac_status); } && { 5579 test -z "$ac_c_werror_flag" || 5580 test ! -s conftest.err 5581 } && test -s conftest$ac_exeext && { 5582 test "$cross_compiling" = yes || 5583 $as_test_x conftest$ac_exeext 5584 }; then 5213 if ac_fn_c_try_link "$LINENO"; then : 5585 5214 tcl_cv_cc_arch_x86_64=yes 5586 5215 else 5587 $as_echo "$as_me: failed program was:" >&5 5588 sed 's/^/| /' conftest.$ac_ext >&5 5589 5590 tcl_cv_cc_arch_x86_64=no 5591 fi 5592 5593 rm -rf conftest.dSYM 5594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5595 conftest$ac_exeext conftest.$ac_ext 5216 tcl_cv_cc_arch_x86_64=no 5217 fi 5218 rm -f core conftest.err conftest.$ac_objext \ 5219 conftest$ac_exeext conftest.$ac_ext 5596 5220 CFLAGS=$hold_cflags 5597 5221 fi 5598 { $as_echo "$as_me:$ LINENO: result: $tcl_cv_cc_arch_x86_64" >&55222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5 5599 5223 $as_echo "$tcl_cv_cc_arch_x86_64" >&6; } 5600 5224 if test $tcl_cv_cc_arch_x86_64 = yes; then … … 5603 5227 fi;; 5604 5228 *) 5605 { $as_echo "$as_me:$ LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&55229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 5606 5230 $as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 5607 5231 esac … … 5613 5237 fi 5614 5238 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}' 5615 { $as_echo "$as_me:$ LINENO: checking if ld accepts -single_module flag" >&55239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5 5616 5240 $as_echo_n "checking if ld accepts -single_module flag... " >&6; } 5617 if test "${tcl_cv_ld_single_module+set}" = set; then5241 if ${tcl_cv_ld_single_module+:} false; then : 5618 5242 $as_echo_n "(cached) " >&6 5619 5243 else … … 5621 5245 hold_ldflags=$LDFLAGS 5622 5246 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 5623 cat >conftest.$ac_ext <<_ACEOF 5624 /* confdefs.h. */ 5625 _ACEOF 5626 cat confdefs.h >>conftest.$ac_ext 5627 cat >>conftest.$ac_ext <<_ACEOF 5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5628 5248 /* end confdefs.h. */ 5629 5249 … … 5636 5256 } 5637 5257 _ACEOF 5638 rm -f conftest.$ac_objext conftest$ac_exeext 5639 if { (ac_try="$ac_link" 5640 case "(($ac_try" in 5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5642 *) ac_try_echo=$ac_try;; 5643 esac 5644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5645 $as_echo "$ac_try_echo") >&5 5646 (eval "$ac_link") 2>conftest.er1 5647 ac_status=$? 5648 grep -v '^ *+' conftest.er1 >conftest.err 5649 rm -f conftest.er1 5650 cat conftest.err >&5 5651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5652 (exit $ac_status); } && { 5653 test -z "$ac_c_werror_flag" || 5654 test ! -s conftest.err 5655 } && test -s conftest$ac_exeext && { 5656 test "$cross_compiling" = yes || 5657 $as_test_x conftest$ac_exeext 5658 }; then 5258 if ac_fn_c_try_link "$LINENO"; then : 5659 5259 tcl_cv_ld_single_module=yes 5660 5260 else 5661 $as_echo "$as_me: failed program was:" >&5 5662 sed 's/^/| /' conftest.$ac_ext >&5 5663 5664 tcl_cv_ld_single_module=no 5665 fi 5666 5667 rm -rf conftest.dSYM 5668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5669 conftest$ac_exeext conftest.$ac_ext 5261 tcl_cv_ld_single_module=no 5262 fi 5263 rm -f core conftest.err conftest.$ac_objext \ 5264 conftest$ac_exeext conftest.$ac_ext 5670 5265 LDFLAGS=$hold_ldflags 5671 5266 fi 5672 { $as_echo "$as_me:$ LINENO: result: $tcl_cv_ld_single_module" >&55267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5 5673 5268 $as_echo "$tcl_cv_ld_single_module" >&6; } 5674 5269 if test $tcl_cv_ld_single_module = yes; then … … 5684 5279 LDFLAGS="$LDFLAGS -prebind" 5685 5280 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 5686 { $as_echo "$as_me:$ LINENO: checking if ld accepts -search_paths_first flag" >&55281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5 5687 5282 $as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; } 5688 if test "${tcl_cv_ld_search_paths_first+set}" = set; then5283 if ${tcl_cv_ld_search_paths_first+:} false; then : 5689 5284 $as_echo_n "(cached) " >&6 5690 5285 else … … 5692 5287 hold_ldflags=$LDFLAGS 5693 5288 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 5694 cat >conftest.$ac_ext <<_ACEOF 5695 /* confdefs.h. */ 5696 _ACEOF 5697 cat confdefs.h >>conftest.$ac_ext 5698 cat >>conftest.$ac_ext <<_ACEOF 5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5699 5290 /* end confdefs.h. */ 5700 5291 … … 5707 5298 } 5708 5299 _ACEOF 5709 rm -f conftest.$ac_objext conftest$ac_exeext 5710 if { (ac_try="$ac_link" 5711 case "(($ac_try" in 5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5713 *) ac_try_echo=$ac_try;; 5714 esac 5715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5716 $as_echo "$ac_try_echo") >&5 5717 (eval "$ac_link") 2>conftest.er1 5718 ac_status=$? 5719 grep -v '^ *+' conftest.er1 >conftest.err 5720 rm -f conftest.er1 5721 cat conftest.err >&5 5722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5723 (exit $ac_status); } && { 5724 test -z "$ac_c_werror_flag" || 5725 test ! -s conftest.err 5726 } && test -s conftest$ac_exeext && { 5727 test "$cross_compiling" = yes || 5728 $as_test_x conftest$ac_exeext 5729 }; then 5300 if ac_fn_c_try_link "$LINENO"; then : 5730 5301 tcl_cv_ld_search_paths_first=yes 5731 5302 else 5732 $as_echo "$as_me: failed program was:" >&5 5733 sed 's/^/| /' conftest.$ac_ext >&5 5734 5735 tcl_cv_ld_search_paths_first=no 5736 fi 5737 5738 rm -rf conftest.dSYM 5739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5740 conftest$ac_exeext conftest.$ac_ext 5303 tcl_cv_ld_search_paths_first=no 5304 fi 5305 rm -f core conftest.err conftest.$ac_objext \ 5306 conftest$ac_exeext conftest.$ac_ext 5741 5307 LDFLAGS=$hold_ldflags 5742 5308 fi 5743 { $as_echo "$as_me:$ LINENO: result: $tcl_cv_ld_search_paths_first" >&55309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5 5744 5310 $as_echo "$tcl_cv_ld_search_paths_first" >&6; } 5745 5311 if test $tcl_cv_ld_search_paths_first = yes; then … … 5751 5317 PLAT_OBJS=\$\(MAC\_OSX_OBJS\) 5752 5318 PLAT_SRCS=\$\(MAC\_OSX_SRCS\) 5753 { $as_echo "$as_me:$ LINENO: checking whether to use CoreFoundation" >&55319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5 5754 5320 $as_echo_n "checking whether to use CoreFoundation... " >&6; } 5755 5321 # Check whether --enable-corefoundation was given. 5756 if test "${enable_corefoundation+set}" = set; then 5322 if test "${enable_corefoundation+set}" = set; then : 5757 5323 enableval=$enable_corefoundation; tcl_corefoundation=$enableval 5758 5324 else … … 5760 5326 fi 5761 5327 5762 { $as_echo "$as_me:$ LINENO: result: $tcl_corefoundation" >&55328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5 5763 5329 $as_echo "$tcl_corefoundation" >&6; } 5764 5330 if test $tcl_corefoundation = yes; then 5765 { $as_echo "$as_me:$ LINENO: checking for CoreFoundation.framework" >&55331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5 5766 5332 $as_echo_n "checking for CoreFoundation.framework... " >&6; } 5767 if test "${tcl_cv_lib_corefoundation+set}" = set; then5333 if ${tcl_cv_lib_corefoundation+:} false; then : 5768 5334 $as_echo_n "(cached) " >&6 5769 5335 else … … 5777 5343 done; fi 5778 5344 LIBS="$LIBS -framework CoreFoundation" 5779 cat >conftest.$ac_ext <<_ACEOF 5780 /* confdefs.h. */ 5781 _ACEOF 5782 cat confdefs.h >>conftest.$ac_ext 5783 cat >>conftest.$ac_ext <<_ACEOF 5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5784 5346 /* end confdefs.h. */ 5785 5347 #include <CoreFoundation/CoreFoundation.h> … … 5792 5354 } 5793 5355 _ACEOF 5794 rm -f conftest.$ac_objext conftest$ac_exeext 5795 if { (ac_try="$ac_link" 5796 case "(($ac_try" in 5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5798 *) ac_try_echo=$ac_try;; 5799 esac 5800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5801 $as_echo "$ac_try_echo") >&5 5802 (eval "$ac_link") 2>conftest.er1 5803 ac_status=$? 5804 grep -v '^ *+' conftest.er1 >conftest.err 5805 rm -f conftest.er1 5806 cat conftest.err >&5 5807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5808 (exit $ac_status); } && { 5809 test -z "$ac_c_werror_flag" || 5810 test ! -s conftest.err 5811 } && test -s conftest$ac_exeext && { 5812 test "$cross_compiling" = yes || 5813 $as_test_x conftest$ac_exeext 5814 }; then 5356 if ac_fn_c_try_link "$LINENO"; then : 5815 5357 tcl_cv_lib_corefoundation=yes 5816 5358 else 5817 $as_echo "$as_me: failed program was:" >&5 5818 sed 's/^/| /' conftest.$ac_ext >&5 5819 5820 tcl_cv_lib_corefoundation=no 5821 fi 5822 5823 rm -rf conftest.dSYM 5824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5825 conftest$ac_exeext conftest.$ac_ext 5359 tcl_cv_lib_corefoundation=no 5360 fi 5361 rm -f core conftest.err conftest.$ac_objext \ 5362 conftest$ac_exeext conftest.$ac_ext 5826 5363 if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do 5827 5364 eval $v'="$hold_'$v'"' 5828 5365 done; fi; LIBS=$hold_libs 5829 5366 fi 5830 { $as_echo "$as_me:$ LINENO: result: $tcl_cv_lib_corefoundation" >&55367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5 5831 5368 $as_echo "$tcl_cv_lib_corefoundation" >&6; } 5832 5369 if test $tcl_cv_lib_corefoundation = yes; then 5833 5370 LIBS="$LIBS -framework CoreFoundation" 5834 cat >>confdefs.h <<\_ACEOF 5835 #define HAVE_COREFOUNDATION 1 5836 _ACEOF 5371 $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h 5837 5372 5838 5373 else … … 5840 5375 fi 5841 5376 if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then 5842 { $as_echo "$as_me:$ LINENO: checking for 64-bit CoreFoundation" >&55377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5 5843 5378 $as_echo_n "checking for 64-bit CoreFoundation... " >&6; } 5844 if test "${tcl_cv_lib_corefoundation_64+set}" = set; then5379 if ${tcl_cv_lib_corefoundation_64+:} false; then : 5845 5380 $as_echo_n "(cached) " >&6 5846 5381 else … … 5849 5384 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 5850 5385 done 5851 cat >conftest.$ac_ext <<_ACEOF 5852 /* confdefs.h. */ 5853 _ACEOF 5854 cat confdefs.h >>conftest.$ac_ext 5855 cat >>conftest.$ac_ext <<_ACEOF 5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5856 5387 /* end confdefs.h. */ 5857 5388 #include <CoreFoundation/CoreFoundation.h> … … 5864 5395 } 5865 5396 _ACEOF 5866 rm -f conftest.$ac_objext conftest$ac_exeext 5867 if { (ac_try="$ac_link" 5868 case "(($ac_try" in 5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5870 *) ac_try_echo=$ac_try;; 5871 esac 5872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5873 $as_echo "$ac_try_echo") >&5 5874 (eval "$ac_link") 2>conftest.er1 5875 ac_status=$? 5876 grep -v '^ *+' conftest.er1 >conftest.err 5877 rm -f conftest.er1 5878 cat conftest.err >&5 5879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5880 (exit $ac_status); } && { 5881 test -z "$ac_c_werror_flag" || 5882 test ! -s conftest.err 5883 } && test -s conftest$ac_exeext && { 5884 test "$cross_compiling" = yes || 5885 $as_test_x conftest$ac_exeext 5886 }; then 5397 if ac_fn_c_try_link "$LINENO"; then : 5887 5398 tcl_cv_lib_corefoundation_64=yes 5888 5399 else 5889 $as_echo "$as_me: failed program was:" >&5 5890 sed 's/^/| /' conftest.$ac_ext >&5 5891 5892 tcl_cv_lib_corefoundation_64=no 5893 fi 5894 5895 rm -rf conftest.dSYM 5896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5897 conftest$ac_exeext conftest.$ac_ext 5400 tcl_cv_lib_corefoundation_64=no 5401 fi 5402 rm -f core conftest.err conftest.$ac_objext \ 5403 conftest$ac_exeext conftest.$ac_ext 5898 5404 for v in CFLAGS CPPFLAGS LDFLAGS; do 5899 5405 eval $v'="$hold_'$v'"' 5900 5406 done 5901 5407 fi 5902 { $as_echo "$as_me:$ LINENO: result: $tcl_cv_lib_corefoundation_64" >&55408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5 5903 5409 $as_echo "$tcl_cv_lib_corefoundation_64" >&6; } 5904 5410 if test $tcl_cv_lib_corefoundation_64 = no; then 5905 cat >>confdefs.h <<\_ACEOF 5906 #define NO_COREFOUNDATION_64 1 5907 _ACEOF 5411 $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h 5908 5412 5909 5413 fi 5910 5414 fi 5911 5415 fi 5912 cat >>confdefs.h <<\_ACEOF 5913 #define MAC_OSX_TCL 1 5914 _ACEOF 5416 $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h 5915 5417 5916 5418 ;; … … 5927 5429 OS/390-*) 5928 5430 CFLAGS_OPTIMIZE="" # Optimizer is buggy 5929 cat >>confdefs.h <<\_ACEOF 5930 #define _OE_SOCKETS 1 5931 _ACEOF 5431 $as_echo "#define _OE_SOCKETS 1" >>confdefs.h 5932 5432 # needed in sys/socket.h 5933 5433 ;; … … 6070 5570 # won't define thread-safe library routines. 6071 5571 6072 cat >>confdefs.h <<\_ACEOF 6073 #define _REENTRANT 1 6074 _ACEOF 6075 6076 cat >>confdefs.h <<\_ACEOF 6077 #define _POSIX_PTHREAD_SEMANTICS 1 6078 _ACEOF 5572 $as_echo "#define _REENTRANT 1" >>confdefs.h 5573 5574 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6079 5575 6080 5576 … … 6102 5598 # won't define thread-safe library routines. 6103 5599 6104 cat >>confdefs.h <<\_ACEOF 6105 #define _REENTRANT 1 6106 _ACEOF 6107 6108 cat >>confdefs.h <<\_ACEOF 6109 #define _POSIX_PTHREAD_SEMANTICS 1 6110 _ACEOF 5600 $as_echo "#define _REENTRANT 1" >>confdefs.h 5601 5602 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6111 5603 6112 5604 … … 6119 5611 if test "$GCC" = "yes" ; then 6120 5612 if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then 6121 { $as_echo "$as_me:$ LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&55613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 6122 5614 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 6123 5615 else … … 6141 5633 elif test "$arch" = "amd64 i386" ; then 6142 5634 if test "$GCC" = "yes" ; then 6143 { $as_echo "$as_me:$ LINENO: WARNING: 64bit mode not supported with GCC on $system" >&55635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 6144 5636 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 6145 5637 else … … 6149 5641 fi 6150 5642 else 6151 { $as_echo "$as_me:$ LINENO: WARNING: 64bit mode not supported for $arch" >&55643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5 6152 5644 $as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 6153 5645 fi … … 6208 5700 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers 6209 5701 # that don't grok the -Bexport option. Test that it does. 6210 { $as_echo "$as_me:$ LINENO: checking for ld accepts -Bexport flag" >&55702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5 6211 5703 $as_echo_n "checking for ld accepts -Bexport flag... " >&6; } 6212 if test "${tcl_cv_ld_Bexport+set}" = set; then5704 if ${tcl_cv_ld_Bexport+:} false; then : 6213 5705 $as_echo_n "(cached) " >&6 6214 5706 else … … 6216 5708 hold_ldflags=$LDFLAGS 6217 5709 LDFLAGS="$LDFLAGS -Wl,-Bexport" 6218 cat >conftest.$ac_ext <<_ACEOF 6219 /* confdefs.h. */ 6220 _ACEOF 6221 cat confdefs.h >>conftest.$ac_ext 6222 cat >>conftest.$ac_ext <<_ACEOF 5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6223 5711 /* end confdefs.h. */ 6224 5712 … … 6231 5719 } 6232 5720 _ACEOF 6233 rm -f conftest.$ac_objext conftest$ac_exeext 6234 if { (ac_try="$ac_link" 6235 case "(($ac_try" in 6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6237 *) ac_try_echo=$ac_try;; 6238 esac 6239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6240 $as_echo "$ac_try_echo") >&5 6241 (eval "$ac_link") 2>conftest.er1 6242 ac_status=$? 6243 grep -v '^ *+' conftest.er1 >conftest.err 6244 rm -f conftest.er1 6245 cat conftest.err >&5 6246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6247 (exit $ac_status); } && { 6248 test -z "$ac_c_werror_flag" || 6249 test ! -s conftest.err 6250 } && test -s conftest$ac_exeext && { 6251 test "$cross_compiling" = yes || 6252 $as_test_x conftest$ac_exeext 6253 }; then 5721 if ac_fn_c_try_link "$LINENO"; then : 6254 5722 tcl_cv_ld_Bexport=yes 6255 5723 else 6256 $as_echo "$as_me: failed program was:" >&5 6257 sed 's/^/| /' conftest.$ac_ext >&5 6258 6259 tcl_cv_ld_Bexport=no 6260 fi 6261 6262 rm -rf conftest.dSYM 6263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6264 conftest$ac_exeext conftest.$ac_ext 5724 tcl_cv_ld_Bexport=no 5725 fi 5726 rm -f core conftest.err conftest.$ac_objext \ 5727 conftest$ac_exeext conftest.$ac_ext 6265 5728 LDFLAGS=$hold_ldflags 6266 5729 fi 6267 { $as_echo "$as_me:$ LINENO: result: $tcl_cv_ld_Bexport" >&55730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5 6268 5731 $as_echo "$tcl_cv_ld_Bexport" >&6; } 6269 5732 if test $tcl_cv_ld_Bexport = yes; then … … 6276 5739 6277 5740 if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then 6278 { $as_echo "$as_me:$ LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&55741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 6279 5742 $as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 6280 5743 fi … … 6303 5766 6304 5767 if test "x$DL_OBJS" = "xtclLoadAout.o" ; then 6305 { $as_echo "$as_me:$ LINENO: checking sys/exec.h" >&55768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5 6306 5769 $as_echo_n "checking sys/exec.h... " >&6; } 6307 if test "${tcl_cv_sysexec_h+set}" = set; then5770 if ${tcl_cv_sysexec_h+:} false; then : 6308 5771 $as_echo_n "(cached) " >&6 6309 5772 else 6310 5773 6311 cat >conftest.$ac_ext <<_ACEOF 6312 /* confdefs.h. */ 6313 _ACEOF 6314 cat confdefs.h >>conftest.$ac_ext 6315 cat >>conftest.$ac_ext <<_ACEOF 5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6316 5775 /* end confdefs.h. */ 6317 5776 #include <sys/exec.h> … … 6335 5794 } 6336 5795 _ACEOF 6337 rm -f conftest.$ac_objext 6338 if { (ac_try="$ac_compile" 6339 case "(($ac_try" in 6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6341 *) ac_try_echo=$ac_try;; 6342 esac 6343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6344 $as_echo "$ac_try_echo") >&5 6345 (eval "$ac_compile") 2>conftest.er1 6346 ac_status=$? 6347 grep -v '^ *+' conftest.er1 >conftest.err 6348 rm -f conftest.er1 6349 cat conftest.err >&5 6350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6351 (exit $ac_status); } && { 6352 test -z "$ac_c_werror_flag" || 6353 test ! -s conftest.err 6354 } && test -s conftest.$ac_objext; then 5796 if ac_fn_c_try_compile "$LINENO"; then : 6355 5797 tcl_cv_sysexec_h=usable 6356 5798 else 6357 $as_echo "$as_me: failed program was:" >&5 6358 sed 's/^/| /' conftest.$ac_ext >&5 6359 6360 tcl_cv_sysexec_h=unusable 6361 fi 6362 5799 tcl_cv_sysexec_h=unusable 5800 fi 6363 5801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6364 5802 fi 6365 { $as_echo "$as_me:$ LINENO: result: $tcl_cv_sysexec_h" >&55803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5 6366 5804 $as_echo "$tcl_cv_sysexec_h" >&6; } 6367 5805 if test $tcl_cv_sysexec_h = usable; then 6368 cat >>confdefs.h <<\_ACEOF 6369 #define USE_SYS_EXEC_H 1 6370 _ACEOF 5806 $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h 6371 5807 6372 5808 else 6373 { $as_echo "$as_me:$ LINENO: checking a.out.h" >&55809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5 6374 5810 $as_echo_n "checking a.out.h... " >&6; } 6375 if test "${tcl_cv_aout_h+set}" = set; then5811 if ${tcl_cv_aout_h+:} false; then : 6376 5812 $as_echo_n "(cached) " >&6 6377 5813 else 6378 5814 6379 cat >conftest.$ac_ext <<_ACEOF 6380 /* confdefs.h. */ 6381 _ACEOF 6382 cat confdefs.h >>conftest.$ac_ext 6383 cat >>conftest.$ac_ext <<_ACEOF 5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6384 5816 /* end confdefs.h. */ 6385 5817 #include <a.out.h> … … 6403 5835 } 6404 5836 _ACEOF 6405 rm -f conftest.$ac_objext 6406 if { (ac_try="$ac_compile" 6407 case "(($ac_try" in 6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6409 *) ac_try_echo=$ac_try;; 6410 esac 6411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6412 $as_echo "$ac_try_echo") >&5 6413 (eval "$ac_compile") 2>conftest.er1 6414 ac_status=$? 6415 grep -v '^ *+' conftest.er1 >conftest.err 6416 rm -f conftest.er1 6417 cat conftest.err >&5 6418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6419 (exit $ac_status); } && { 6420 test -z "$ac_c_werror_flag" || 6421 test ! -s conftest.err 6422 } && test -s conftest.$ac_objext; then 5837 if ac_fn_c_try_compile "$LINENO"; then : 6423 5838 tcl_cv_aout_h=usable 6424 5839 else 6425 $as_echo "$as_me: failed program was:" >&5 6426 sed 's/^/| /' conftest.$ac_ext >&5 6427 6428 tcl_cv_aout_h=unusable 6429 fi 6430 5840 tcl_cv_aout_h=unusable 5841 fi 6431 5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6432 5843 fi 6433 { $as_echo "$as_me:$ LINENO: result: $tcl_cv_aout_h" >&55844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5 6434 5845 $as_echo "$tcl_cv_aout_h" >&6; } 6435 5846 if test $tcl_cv_aout_h = usable; then 6436 cat >>confdefs.h <<\_ACEOF 6437 #define USE_A_OUT_H 1 6438 _ACEOF 5847 $as_echo "#define USE_A_OUT_H 1" >>confdefs.h 6439 5848 6440 5849 else 6441 { $as_echo "$as_me:$ LINENO: checking sys/exec_aout.h" >&55850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5 6442 5851 $as_echo_n "checking sys/exec_aout.h... " >&6; } 6443 if test "${tcl_cv_sysexecaout_h+set}" = set; then5852 if ${tcl_cv_sysexecaout_h+:} false; then : 6444 5853 $as_echo_n "(cached) " >&6 6445 5854 else 6446 5855 6447 cat >conftest.$ac_ext <<_ACEOF 6448 /* confdefs.h. */ 6449 _ACEOF 6450 cat confdefs.h >>conftest.$ac_ext 6451 cat >>conftest.$ac_ext <<_ACEOF 5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6452 5857 /* end confdefs.h. */ 6453 5858 #include <sys/exec_aout.h> … … 6471 5876 } 6472 5877 _ACEOF 6473 rm -f conftest.$ac_objext 6474 if { (ac_try="$ac_compile" 6475 case "(($ac_try" in 6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6477 *) ac_try_echo=$ac_try;; 6478 esac 6479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6480 $as_echo "$ac_try_echo") >&5 6481 (eval "$ac_compile") 2>conftest.er1 6482 ac_status=$? 6483 grep -v '^ *+' conftest.er1 >conftest.err 6484 rm -f conftest.er1 6485 cat conftest.err >&5 6486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6487 (exit $ac_status); } && { 6488 test -z "$ac_c_werror_flag" || 6489 test ! -s conftest.err 6490 } && test -s conftest.$ac_objext; then 5878 if ac_fn_c_try_compile "$LINENO"; then : 6491 5879 tcl_cv_sysexecaout_h=usable 6492 5880 else 6493 $as_echo "$as_me: failed program was:" >&5 6494 sed 's/^/| /' conftest.$ac_ext >&5 6495 6496 tcl_cv_sysexecaout_h=unusable 6497 fi 6498 5881 tcl_cv_sysexecaout_h=unusable 5882 fi 6499 5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6500 5884 fi 6501 { $as_echo "$as_me:$ LINENO: result: $tcl_cv_sysexecaout_h" >&55885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5 6502 5886 $as_echo "$tcl_cv_sysexecaout_h" >&6; } 6503 5887 if test $tcl_cv_sysexecaout_h = usable; then 6504 cat >>confdefs.h <<\_ACEOF 6505 #define USE_SYS_EXEC_AOUT_H 1 6506 _ACEOF 5888 $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h 6507 5889 6508 5890 else … … 6516 5898 6517 5899 # Check whether --enable-load was given. 6518 if test "${enable_load+set}" = set; then 5900 if test "${enable_load+set}" = set; then : 6519 5901 enableval=$enable_load; tcl_ok=$enableval 6520 5902 else … … 6639 6021 6640 6022 6641 { $as_echo "$as_me:$ LINENO: checking for X" >&56023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 6642 6024 $as_echo_n "checking for X... " >&6; } 6643 6025 6644 6026 6645 6027 # Check whether --with-x was given. 6646 if test "${with_x+set}" = set; then 6028 if test "${with_x+set}" = set; then : 6647 6029 withval=$with_x; 6648 6030 fi … … 6654 6036 else 6655 6037 case $x_includes,$x_libraries in #( 6656 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5 6657 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;} 6658 { (exit 1); exit 1; }; };; #( 6659 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 6038 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 6039 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 6660 6040 $as_echo_n "(cached) " >&6 6661 6041 else … … 6674 6054 _ACEOF 6675 6055 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 6676 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.6056 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 6677 6057 for ac_var in incroot usrlibdir libdir; do 6678 6058 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" … … 6705 6085 ac_x_header_dirs=' 6706 6086 /usr/X11/include 6087 /usr/X11R7/include 6707 6088 /usr/X11R6/include 6708 6089 /usr/X11R5/include … … 6710 6091 6711 6092 /usr/include/X11 6093 /usr/include/X11R7 6712 6094 /usr/include/X11R6 6713 6095 /usr/include/X11R5 … … 6715 6097 6716 6098 /usr/local/X11/include 6099 /usr/local/X11R7/include 6717 6100 /usr/local/X11R6/include 6718 6101 /usr/local/X11R5/include … … 6720 6103 6721 6104 /usr/local/include/X11 6105 /usr/local/include/X11R7 6722 6106 /usr/local/include/X11R6 6723 6107 /usr/local/include/X11R5 … … 6741 6125 # Guess where to find include files, by looking for Xlib.h. 6742 6126 # First, try using that file with no special directory specified. 6743 cat >conftest.$ac_ext <<_ACEOF 6744 /* confdefs.h. */ 6745 _ACEOF 6746 cat confdefs.h >>conftest.$ac_ext 6747 cat >>conftest.$ac_ext <<_ACEOF 6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6748 6128 /* end confdefs.h. */ 6749 6129 #include <X11/Xlib.h> 6750 6130 _ACEOF 6751 if { (ac_try="$ac_cpp conftest.$ac_ext" 6752 case "(($ac_try" in 6753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6754 *) ac_try_echo=$ac_try;; 6755 esac 6756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6757 $as_echo "$ac_try_echo") >&5 6758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6759 ac_status=$? 6760 grep -v '^ *+' conftest.er1 >conftest.err 6761 rm -f conftest.er1 6762 cat conftest.err >&5 6763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6764 (exit $ac_status); } >/dev/null && { 6765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6766 test ! -s conftest.err 6767 }; then 6131 if ac_fn_c_try_cpp "$LINENO"; then : 6768 6132 # We can compile using X headers with no special include directory. 6769 6133 ac_x_includes= 6770 6134 else 6771 $as_echo "$as_me: failed program was:" >&56772 sed 's/^/| /' conftest.$ac_ext >&56773 6774 6135 for ac_dir in $ac_x_header_dirs; do 6775 6136 if test -r "$ac_dir/X11/Xlib.h"; then … … 6779 6140 done 6780 6141 fi 6781 6782 rm -f conftest.err conftest.$ac_ext 6142 rm -f conftest.err conftest.i conftest.$ac_ext 6783 6143 fi # $ac_x_includes = no 6784 6144 … … 6789 6149 ac_save_LIBS=$LIBS 6790 6150 LIBS="-lX11 $LIBS" 6791 cat >conftest.$ac_ext <<_ACEOF 6792 /* confdefs.h. */ 6793 _ACEOF 6794 cat confdefs.h >>conftest.$ac_ext 6795 cat >>conftest.$ac_ext <<_ACEOF 6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6796 6152 /* end confdefs.h. */ 6797 6153 #include <X11/Xlib.h> … … 6804 6160 } 6805 6161 _ACEOF 6806 rm -f conftest.$ac_objext conftest$ac_exeext 6807 if { (ac_try="$ac_link" 6808 case "(($ac_try" in 6809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6810 *) ac_try_echo=$ac_try;; 6811 esac 6812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6813 $as_echo "$ac_try_echo") >&5 6814 (eval "$ac_link") 2>conftest.er1 6815 ac_status=$? 6816 grep -v '^ *+' conftest.er1 >conftest.err 6817 rm -f conftest.er1 6818 cat conftest.err >&5 6819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6820 (exit $ac_status); } && { 6821 test -z "$ac_c_werror_flag" || 6822 test ! -s conftest.err 6823 } && test -s conftest$ac_exeext && { 6824 test "$cross_compiling" = yes || 6825 $as_test_x conftest$ac_exeext 6826 }; then 6162 if ac_fn_c_try_link "$LINENO"; then : 6827 6163 LIBS=$ac_save_LIBS 6828 6164 # We can link X programs with no special library path. 6829 6165 ac_x_libraries= 6830 6166 else 6831 $as_echo "$as_me: failed program was:" >&5 6832 sed 's/^/| /' conftest.$ac_ext >&5 6833 6834 LIBS=$ac_save_LIBS 6167 LIBS=$ac_save_LIBS 6835 6168 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 6836 6169 do … … 6844 6177 done 6845 6178 fi 6846 6847 rm -rf conftest.dSYM 6848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6849 conftest$ac_exeext conftest.$ac_ext 6179 rm -f core conftest.err conftest.$ac_objext \ 6180 conftest$ac_exeext conftest.$ac_ext 6850 6181 fi # $ac_x_libraries = no 6851 6182 … … 6868 6199 6869 6200 if test "$have_x" != yes; then 6870 { $as_echo "$as_me:$ LINENO: result: $have_x" >&56201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 6871 6202 $as_echo "$have_x" >&6; } 6872 6203 no_x=yes … … 6879 6210 ac_x_includes='$x_includes'\ 6880 6211 ac_x_libraries='$x_libraries'" 6881 { $as_echo "$as_me:$ LINENO: result: libraries $x_libraries, headers $x_includes" >&56212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 6882 6213 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 6883 6214 fi … … 6898 6229 # ./install, which can be erroneously created by make from ./install.sh. 6899 6230 # Reject install programs that cannot install multiple files. 6900 { $as_echo "$as_me:$ LINENO: checking for a BSD-compatible install" >&56231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 6901 6232 $as_echo_n "checking for a BSD-compatible install... " >&6; } 6902 6233 if test -z "$INSTALL"; then 6903 if test "${ac_cv_path_install+set}" = set; then6234 if ${ac_cv_path_install+:} false; then : 6904 6235 $as_echo_n "(cached) " >&6 6905 6236 else … … 6909 6240 IFS=$as_save_IFS 6910 6241 test -z "$as_dir" && as_dir=. 6911 # Account for people who put trailing slashes in PATH elements.6912 case $as_dir/ in 6913 ./ | .// | / cC/* | \6242 # Account for people who put trailing slashes in PATH elements. 6243 case $as_dir/ in #(( 6244 ./ | .// | /[cC]/* | \ 6914 6245 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6915 ?: \\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \6246 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 6916 6247 /usr/ucb/* ) ;; 6917 6248 *) … … 6921 6252 for ac_prog in ginstall scoinst install; do 6922 6253 for ac_exec_ext in '' $ac_executable_extensions; do 6923 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then6254 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 6924 6255 if test $ac_prog = install && 6925 6256 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then … … 6950 6281 esac 6951 6282 6952 done6283 done 6953 6284 IFS=$as_save_IFS 6954 6285 … … 6966 6297 fi 6967 6298 fi 6968 { $as_echo "$as_me:$ LINENO: result: $INSTALL" >&56299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 6969 6300 $as_echo "$INSTALL" >&6; } 6970 6301 … … 6980 6311 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6981 6312 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6982 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&56313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6983 6314 $as_echo_n "checking for $ac_word... " >&6; } 6984 if test "${ac_cv_prog_RANLIB+set}" = set; then6315 if ${ac_cv_prog_RANLIB+:} false; then : 6985 6316 $as_echo_n "(cached) " >&6 6986 6317 else … … 6993 6324 IFS=$as_save_IFS 6994 6325 test -z "$as_dir" && as_dir=. 6995 for ac_exec_ext in '' $ac_executable_extensions; do6996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6326 for ac_exec_ext in '' $ac_executable_extensions; do 6327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6997 6328 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6998 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&56329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6999 6330 break 2 7000 6331 fi 7001 6332 done 7002 done6333 done 7003 6334 IFS=$as_save_IFS 7004 6335 … … 7007 6338 RANLIB=$ac_cv_prog_RANLIB 7008 6339 if test -n "$RANLIB"; then 7009 { $as_echo "$as_me:$ LINENO: result: $RANLIB" >&56340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7010 6341 $as_echo "$RANLIB" >&6; } 7011 6342 else 7012 { $as_echo "$as_me:$ LINENO: result: no" >&56343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7013 6344 $as_echo "no" >&6; } 7014 6345 fi … … 7020 6351 # Extract the first word of "ranlib", so it can be a program name with args. 7021 6352 set dummy ranlib; ac_word=$2 7022 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&56353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7023 6354 $as_echo_n "checking for $ac_word... " >&6; } 7024 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then6355 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7025 6356 $as_echo_n "(cached) " >&6 7026 6357 else … … 7033 6364 IFS=$as_save_IFS 7034 6365 test -z "$as_dir" && as_dir=. 7035 for ac_exec_ext in '' $ac_executable_extensions; do7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6366 for ac_exec_ext in '' $ac_executable_extensions; do 6367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7037 6368 ac_cv_prog_ac_ct_RANLIB="ranlib" 7038 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&56369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7039 6370 break 2 7040 6371 fi 7041 6372 done 7042 done6373 done 7043 6374 IFS=$as_save_IFS 7044 6375 … … 7047 6378 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7048 6379 if test -n "$ac_ct_RANLIB"; then 7049 { $as_echo "$as_me:$ LINENO: result: $ac_ct_RANLIB" >&56380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7050 6381 $as_echo "$ac_ct_RANLIB" >&6; } 7051 6382 else 7052 { $as_echo "$as_me:$ LINENO: result: no" >&56383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7053 6384 $as_echo "no" >&6; } 7054 6385 fi … … 7059 6390 case $cross_compiling:$ac_tool_warned in 7060 6391 yes:) 7061 { $as_echo "$as_me:$ LINENO: WARNING: using cross tools not prefixed with host triplet" >&56392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7062 6393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7063 6394 ac_tool_warned=yes ;; … … 7069 6400 fi 7070 6401 7071 { $as_echo "$as_me:$ LINENO: checking whether ln -s works" >&56402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7072 6403 $as_echo_n "checking whether ln -s works... " >&6; } 7073 6404 LN_S=$as_ln_s 7074 6405 if test "$LN_S" = "ln -s"; then 7075 { $as_echo "$as_me:$ LINENO: result: yes" >&56406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7076 6407 $as_echo "yes" >&6; } 7077 6408 else 7078 { $as_echo "$as_me:$ LINENO: result: no, using $LN_S" >&56409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7079 6410 $as_echo "no, using $LN_S" >&6; } 7080 6411 fi 7081 6412 7082 { $as_echo "$as_me:$ LINENO: checking for a thread-safe mkdir -p" >&56413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 7083 6414 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 7084 6415 if test -z "$MKDIR_P"; then 7085 if test "${ac_cv_path_mkdir+set}" = set; then6416 if ${ac_cv_path_mkdir+:} false; then : 7086 6417 $as_echo_n "(cached) " >&6 7087 6418 else … … 7091 6422 IFS=$as_save_IFS 7092 6423 test -z "$as_dir" && as_dir=. 7093 for ac_prog in mkdir gmkdir; do6424 for ac_prog in mkdir gmkdir; do 7094 6425 for ac_exec_ext in '' $ac_executable_extensions; do 7095 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }|| continue6426 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 7096 6427 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 7097 6428 'mkdir (GNU coreutils) '* | \ … … 7103 6434 done 7104 6435 done 7105 done6436 done 7106 6437 IFS=$as_save_IFS 7107 6438 7108 6439 fi 7109 6440 6441 test -d ./--version && rmdir ./--version 7110 6442 if test "${ac_cv_path_mkdir+set}" = set; then 7111 6443 MKDIR_P="$ac_cv_path_mkdir -p" … … 7115 6447 # break other packages using the cache if that directory is 7116 6448 # removed, or if the value is a relative name. 7117 test -d ./--version && rmdir ./--version7118 6449 MKDIR_P="$ac_install_sh -d" 7119 6450 fi 7120 6451 fi 7121 { $as_echo "$as_me:$ LINENO: result: $MKDIR_P" >&56452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 7122 6453 $as_echo "$MKDIR_P" >&6; } 7123 6454 … … 7131 6462 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 7132 6463 set dummy ${ac_tool_prefix}gcc; ac_word=$2 7133 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&56464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7134 6465 $as_echo_n "checking for $ac_word... " >&6; } 7135 if test "${ac_cv_prog_CC+set}" = set; then6466 if ${ac_cv_prog_CC+:} false; then : 7136 6467 $as_echo_n "(cached) " >&6 7137 6468 else … … 7144 6475 IFS=$as_save_IFS 7145 6476 test -z "$as_dir" && as_dir=. 7146 for ac_exec_ext in '' $ac_executable_extensions; do7147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6477 for ac_exec_ext in '' $ac_executable_extensions; do 6478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7148 6479 ac_cv_prog_CC="${ac_tool_prefix}gcc" 7149 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&56480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7150 6481 break 2 7151 6482 fi 7152 6483 done 7153 done6484 done 7154 6485 IFS=$as_save_IFS 7155 6486 … … 7158 6489 CC=$ac_cv_prog_CC 7159 6490 if test -n "$CC"; then 7160 { $as_echo "$as_me:$ LINENO: result: $CC" >&56491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 7161 6492 $as_echo "$CC" >&6; } 7162 6493 else 7163 { $as_echo "$as_me:$ LINENO: result: no" >&56494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7164 6495 $as_echo "no" >&6; } 7165 6496 fi … … 7171 6502 # Extract the first word of "gcc", so it can be a program name with args. 7172 6503 set dummy gcc; ac_word=$2 7173 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&56504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7174 6505 $as_echo_n "checking for $ac_word... " >&6; } 7175 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then6506 if ${ac_cv_prog_ac_ct_CC+:} false; then : 7176 6507 $as_echo_n "(cached) " >&6 7177 6508 else … … 7184 6515 IFS=$as_save_IFS 7185 6516 test -z "$as_dir" && as_dir=. 7186 for ac_exec_ext in '' $ac_executable_extensions; do7187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6517 for ac_exec_ext in '' $ac_executable_extensions; do 6518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7188 6519 ac_cv_prog_ac_ct_CC="gcc" 7189 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&56520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7190 6521 break 2 7191 6522 fi 7192 6523 done 7193 done6524 done 7194 6525 IFS=$as_save_IFS 7195 6526 … … 7198 6529 ac_ct_CC=$ac_cv_prog_ac_ct_CC 7199 6530 if test -n "$ac_ct_CC"; then 7200 { $as_echo "$as_me:$ LINENO: result: $ac_ct_CC" >&56531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 7201 6532 $as_echo "$ac_ct_CC" >&6; } 7202 6533 else 7203 { $as_echo "$as_me:$ LINENO: result: no" >&56534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7204 6535 $as_echo "no" >&6; } 7205 6536 fi … … 7210 6541 case $cross_compiling:$ac_tool_warned in 7211 6542 yes:) 7212 { $as_echo "$as_me:$ LINENO: WARNING: using cross tools not prefixed with host triplet" >&56543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7213 6544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7214 6545 ac_tool_warned=yes ;; … … 7224 6555 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 7225 6556 set dummy ${ac_tool_prefix}cc; ac_word=$2 7226 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&56557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7227 6558 $as_echo_n "checking for $ac_word... " >&6; } 7228 if test "${ac_cv_prog_CC+set}" = set; then6559 if ${ac_cv_prog_CC+:} false; then : 7229 6560 $as_echo_n "(cached) " >&6 7230 6561 else … … 7237 6568 IFS=$as_save_IFS 7238 6569 test -z "$as_dir" && as_dir=. 7239 for ac_exec_ext in '' $ac_executable_extensions; do7240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6570 for ac_exec_ext in '' $ac_executable_extensions; do 6571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7241 6572 ac_cv_prog_CC="${ac_tool_prefix}cc" 7242 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&56573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7243 6574 break 2 7244 6575 fi 7245 6576 done 7246 done6577 done 7247 6578 IFS=$as_save_IFS 7248 6579 … … 7251 6582 CC=$ac_cv_prog_CC 7252 6583 if test -n "$CC"; then 7253 { $as_echo "$as_me:$ LINENO: result: $CC" >&56584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 7254 6585 $as_echo "$CC" >&6; } 7255 6586 else 7256 { $as_echo "$as_me:$ LINENO: result: no" >&56587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7257 6588 $as_echo "no" >&6; } 7258 6589 fi … … 7264 6595 # Extract the first word of "cc", so it can be a program name with args. 7265 6596 set dummy cc; ac_word=$2 7266 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&56597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7267 6598 $as_echo_n "checking for $ac_word... " >&6; } 7268 if test "${ac_cv_prog_CC+set}" = set; then6599 if ${ac_cv_prog_CC+:} false; then : 7269 6600 $as_echo_n "(cached) " >&6 7270 6601 else … … 7278 6609 IFS=$as_save_IFS 7279 6610 test -z "$as_dir" && as_dir=. 7280 for ac_exec_ext in '' $ac_executable_extensions; do7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6611 for ac_exec_ext in '' $ac_executable_extensions; do 6612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7282 6613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 7283 6614 ac_prog_rejected=yes … … 7285 6616 fi 7286 6617 ac_cv_prog_CC="cc" 7287 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&56618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7288 6619 break 2 7289 6620 fi 7290 6621 done 7291 done6622 done 7292 6623 IFS=$as_save_IFS 7293 6624 … … 7308 6639 CC=$ac_cv_prog_CC 7309 6640 if test -n "$CC"; then 7310 { $as_echo "$as_me:$ LINENO: result: $CC" >&56641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 7311 6642 $as_echo "$CC" >&6; } 7312 6643 else 7313 { $as_echo "$as_me:$ LINENO: result: no" >&56644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7314 6645 $as_echo "no" >&6; } 7315 6646 fi … … 7323 6654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7324 6655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7325 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&56656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7326 6657 $as_echo_n "checking for $ac_word... " >&6; } 7327 if test "${ac_cv_prog_CC+set}" = set; then6658 if ${ac_cv_prog_CC+:} false; then : 7328 6659 $as_echo_n "(cached) " >&6 7329 6660 else … … 7336 6667 IFS=$as_save_IFS 7337 6668 test -z "$as_dir" && as_dir=. 7338 for ac_exec_ext in '' $ac_executable_extensions; do7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6669 for ac_exec_ext in '' $ac_executable_extensions; do 6670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7340 6671 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 7341 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&56672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7342 6673 break 2 7343 6674 fi 7344 6675 done 7345 done6676 done 7346 6677 IFS=$as_save_IFS 7347 6678 … … 7350 6681 CC=$ac_cv_prog_CC 7351 6682 if test -n "$CC"; then 7352 { $as_echo "$as_me:$ LINENO: result: $CC" >&56683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 7353 6684 $as_echo "$CC" >&6; } 7354 6685 else 7355 { $as_echo "$as_me:$ LINENO: result: no" >&56686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7356 6687 $as_echo "no" >&6; } 7357 6688 fi … … 7367 6698 # Extract the first word of "$ac_prog", so it can be a program name with args. 7368 6699 set dummy $ac_prog; ac_word=$2 7369 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&56700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7370 6701 $as_echo_n "checking for $ac_word... " >&6; } 7371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then6702 if ${ac_cv_prog_ac_ct_CC+:} false; then : 7372 6703 $as_echo_n "(cached) " >&6 7373 6704 else … … 7380 6711 IFS=$as_save_IFS 7381 6712 test -z "$as_dir" && as_dir=. 7382 for ac_exec_ext in '' $ac_executable_extensions; do7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6713 for ac_exec_ext in '' $ac_executable_extensions; do 6714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7384 6715 ac_cv_prog_ac_ct_CC="$ac_prog" 7385 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&56716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7386 6717 break 2 7387 6718 fi 7388 6719 done 7389 done6720 done 7390 6721 IFS=$as_save_IFS 7391 6722 … … 7394 6725 ac_ct_CC=$ac_cv_prog_ac_ct_CC 7395 6726 if test -n "$ac_ct_CC"; then 7396 { $as_echo "$as_me:$ LINENO: result: $ac_ct_CC" >&56727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 7397 6728 $as_echo "$ac_ct_CC" >&6; } 7398 6729 else 7399 { $as_echo "$as_me:$ LINENO: result: no" >&56730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7400 6731 $as_echo "no" >&6; } 7401 6732 fi … … 7410 6741 case $cross_compiling:$ac_tool_warned in 7411 6742 yes:) 7412 { $as_echo "$as_me:$ LINENO: WARNING: using cross tools not prefixed with host triplet" >&56743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7413 6744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7414 6745 ac_tool_warned=yes ;; … … 7421 6752 7422 6753 7423 test -z "$CC" && { { $as_echo "$as_me:$ LINENO: error: in \`$ac_pwd':" >&56754 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7424 6755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7425 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 7426 See \`config.log' for more details." >&5 7427 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH 7428 See \`config.log' for more details." >&2;} 7429 { (exit 1); exit 1; }; }; } 6756 as_fn_error $? "no acceptable C compiler found in \$PATH 6757 See \`config.log' for more details" "$LINENO" 5; } 7430 6758 7431 6759 # Provide some information about the compiler. 7432 $as_echo "$as_me:$ LINENO: checking for C compiler version" >&56760 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 7433 6761 set X $ac_compile 7434 6762 ac_compiler=$2 7435 { (ac_try="$ac_compiler --version >&5" 6763 for ac_option in --version -v -V -qversion; do 6764 { { ac_try="$ac_compiler $ac_option >&5" 7436 6765 case "(($ac_try" in 7437 6766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7438 6767 *) ac_try_echo=$ac_try;; 7439 6768 esac 7440 eval ac_try_echo="\"\$as_me:$ LINENO: $ac_try_echo\""7441 $as_echo "$ac_try_echo" )>&57442 (eval "$ac_compiler --version >&5") 2>&56769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6770 $as_echo "$ac_try_echo"; } >&5 6771 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7443 6772 ac_status=$? 7444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7445 (exit $ac_status); } 7446 { (ac_try="$ac_compiler -v >&5" 7447 case "(($ac_try" in 7448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7449 *) ac_try_echo=$ac_try;; 7450 esac 7451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7452 $as_echo "$ac_try_echo") >&5 7453 (eval "$ac_compiler -v >&5") 2>&5 7454 ac_status=$? 7455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7456 (exit $ac_status); } 7457 { (ac_try="$ac_compiler -V >&5" 7458 case "(($ac_try" in 7459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7460 *) ac_try_echo=$ac_try;; 7461 esac 7462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7463 $as_echo "$ac_try_echo") >&5 7464 (eval "$ac_compiler -V >&5") 2>&5 7465 ac_status=$? 7466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7467 (exit $ac_status); } 7468 7469 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 6773 if test -s conftest.err; then 6774 sed '10a\ 6775 ... rest of stderr output deleted ... 6776 10q' conftest.err >conftest.er1 6777 cat conftest.er1 >&5 6778 fi 6779 rm -f conftest.er1 conftest.err 6780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6781 test $ac_status = 0; } 6782 done 6783 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 7470 6785 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 7471 if test "${ac_cv_c_compiler_gnu+set}" = set; then6786 if ${ac_cv_c_compiler_gnu+:} false; then : 7472 6787 $as_echo_n "(cached) " >&6 7473 6788 else 7474 cat >conftest.$ac_ext <<_ACEOF 7475 /* confdefs.h. */ 7476 _ACEOF 7477 cat confdefs.h >>conftest.$ac_ext 7478 cat >>conftest.$ac_ext <<_ACEOF 6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7479 6790 /* end confdefs.h. */ 7480 6791 … … 7490 6801 } 7491 6802 _ACEOF 7492 rm -f conftest.$ac_objext 7493 if { (ac_try="$ac_compile" 7494 case "(($ac_try" in 7495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7496 *) ac_try_echo=$ac_try;; 7497 esac 7498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7499 $as_echo "$ac_try_echo") >&5 7500 (eval "$ac_compile") 2>conftest.er1 7501 ac_status=$? 7502 grep -v '^ *+' conftest.er1 >conftest.err 7503 rm -f conftest.er1 7504 cat conftest.err >&5 7505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7506 (exit $ac_status); } && { 7507 test -z "$ac_c_werror_flag" || 7508 test ! -s conftest.err 7509 } && test -s conftest.$ac_objext; then 6803 if ac_fn_c_try_compile "$LINENO"; then : 7510 6804 ac_compiler_gnu=yes 7511 6805 else 7512 $as_echo "$as_me: failed program was:" >&5 7513 sed 's/^/| /' conftest.$ac_ext >&5 7514 7515 ac_compiler_gnu=no 7516 fi 7517 6806 ac_compiler_gnu=no 6807 fi 7518 6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7519 6809 ac_cv_c_compiler_gnu=$ac_compiler_gnu 7520 6810 7521 6811 fi 7522 { $as_echo "$as_me:$ LINENO: result: $ac_cv_c_compiler_gnu" >&56812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 7523 6813 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 7524 6814 if test $ac_compiler_gnu = yes; then … … 7529 6819 ac_test_CFLAGS=${CFLAGS+set} 7530 6820 ac_save_CFLAGS=$CFLAGS 7531 { $as_echo "$as_me:$ LINENO: checking whether $CC accepts -g" >&56821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 7532 6822 $as_echo_n "checking whether $CC accepts -g... " >&6; } 7533 if test "${ac_cv_prog_cc_g+set}" = set; then6823 if ${ac_cv_prog_cc_g+:} false; then : 7534 6824 $as_echo_n "(cached) " >&6 7535 6825 else … … 7538 6828 ac_cv_prog_cc_g=no 7539 6829 CFLAGS="-g" 7540 cat >conftest.$ac_ext <<_ACEOF 7541 /* confdefs.h. */ 7542 _ACEOF 7543 cat confdefs.h >>conftest.$ac_ext 7544 cat >>conftest.$ac_ext <<_ACEOF 6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7545 6831 /* end confdefs.h. */ 7546 6832 … … 7553 6839 } 7554 6840 _ACEOF 7555 rm -f conftest.$ac_objext 7556 if { (ac_try="$ac_compile" 7557 case "(($ac_try" in 7558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7559 *) ac_try_echo=$ac_try;; 7560 esac 7561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7562 $as_echo "$ac_try_echo") >&5 7563 (eval "$ac_compile") 2>conftest.er1 7564 ac_status=$? 7565 grep -v '^ *+' conftest.er1 >conftest.err 7566 rm -f conftest.er1 7567 cat conftest.err >&5 7568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7569 (exit $ac_status); } && { 7570 test -z "$ac_c_werror_flag" || 7571 test ! -s conftest.err 7572 } && test -s conftest.$ac_objext; then 6841 if ac_fn_c_try_compile "$LINENO"; then : 7573 6842 ac_cv_prog_cc_g=yes 7574 6843 else 7575 $as_echo "$as_me: failed program was:" >&5 7576 sed 's/^/| /' conftest.$ac_ext >&5 7577 7578 CFLAGS="" 7579 cat >conftest.$ac_ext <<_ACEOF 7580 /* confdefs.h. */ 7581 _ACEOF 7582 cat confdefs.h >>conftest.$ac_ext 7583 cat >>conftest.$ac_ext <<_ACEOF 6844 CFLAGS="" 6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7584 6846 /* end confdefs.h. */ 7585 6847 … … 7592 6854 } 7593 6855 _ACEOF 7594 rm -f conftest.$ac_objext 7595 if { (ac_try="$ac_compile" 7596 case "(($ac_try" in 7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7598 *) ac_try_echo=$ac_try;; 7599 esac 7600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7601 $as_echo "$ac_try_echo") >&5 7602 (eval "$ac_compile") 2>conftest.er1 7603 ac_status=$? 7604 grep -v '^ *+' conftest.er1 >conftest.err 7605 rm -f conftest.er1 7606 cat conftest.err >&5 7607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7608 (exit $ac_status); } && { 7609 test -z "$ac_c_werror_flag" || 7610 test ! -s conftest.err 7611 } && test -s conftest.$ac_objext; then 7612 : 7613 else 7614 $as_echo "$as_me: failed program was:" >&5 7615 sed 's/^/| /' conftest.$ac_ext >&5 7616 7617 ac_c_werror_flag=$ac_save_c_werror_flag 6856 if ac_fn_c_try_compile "$LINENO"; then : 6857 6858 else 6859 ac_c_werror_flag=$ac_save_c_werror_flag 7618 6860 CFLAGS="-g" 7619 cat >conftest.$ac_ext <<_ACEOF 7620 /* confdefs.h. */ 7621 _ACEOF 7622 cat confdefs.h >>conftest.$ac_ext 7623 cat >>conftest.$ac_ext <<_ACEOF 6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7624 6862 /* end confdefs.h. */ 7625 6863 … … 7632 6870 } 7633 6871 _ACEOF 7634 rm -f conftest.$ac_objext 7635 if { (ac_try="$ac_compile" 7636 case "(($ac_try" in 7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7638 *) ac_try_echo=$ac_try;; 7639 esac 7640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7641 $as_echo "$ac_try_echo") >&5 7642 (eval "$ac_compile") 2>conftest.er1 7643 ac_status=$? 7644 grep -v '^ *+' conftest.er1 >conftest.err 7645 rm -f conftest.er1 7646 cat conftest.err >&5 7647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7648 (exit $ac_status); } && { 7649 test -z "$ac_c_werror_flag" || 7650 test ! -s conftest.err 7651 } && test -s conftest.$ac_objext; then 6872 if ac_fn_c_try_compile "$LINENO"; then : 7652 6873 ac_cv_prog_cc_g=yes 7653 else 7654 $as_echo "$as_me: failed program was:" >&5 7655 sed 's/^/| /' conftest.$ac_ext >&5 7656 7657 7658 fi 7659 6874 fi 7660 6875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7661 6876 fi 7662 7663 6877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7664 6878 fi 7665 7666 6879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7667 6880 ac_c_werror_flag=$ac_save_c_werror_flag 7668 6881 fi 7669 { $as_echo "$as_me:$ LINENO: result: $ac_cv_prog_cc_g" >&56882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 7670 6883 $as_echo "$ac_cv_prog_cc_g" >&6; } 7671 6884 if test "$ac_test_CFLAGS" = set; then … … 7684 6897 fi 7685 6898 fi 7686 { $as_echo "$as_me:$ LINENO: checking for $CC option to accept ISO C89" >&56899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 7687 6900 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 7688 if test "${ac_cv_prog_cc_c89+set}" = set; then6901 if ${ac_cv_prog_cc_c89+:} false; then : 7689 6902 $as_echo_n "(cached) " >&6 7690 6903 else 7691 6904 ac_cv_prog_cc_c89=no 7692 6905 ac_save_CC=$CC 7693 cat >conftest.$ac_ext <<_ACEOF 7694 /* confdefs.h. */ 7695 _ACEOF 7696 cat confdefs.h >>conftest.$ac_ext 7697 cat >>conftest.$ac_ext <<_ACEOF 6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7698 6907 /* end confdefs.h. */ 7699 6908 #include <stdarg.h> 7700 6909 #include <stdio.h> 7701 #include <sys/types.h> 7702 #include <sys/stat.h> 6910 struct stat; 7703 6911 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 7704 6912 struct buf { int x; }; … … 7752 6960 do 7753 6961 CC="$ac_save_CC $ac_arg" 7754 rm -f conftest.$ac_objext 7755 if { (ac_try="$ac_compile" 7756 case "(($ac_try" in 7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7758 *) ac_try_echo=$ac_try;; 7759 esac 7760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7761 $as_echo "$ac_try_echo") >&5 7762 (eval "$ac_compile") 2>conftest.er1 7763 ac_status=$? 7764 grep -v '^ *+' conftest.er1 >conftest.err 7765 rm -f conftest.er1 7766 cat conftest.err >&5 7767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7768 (exit $ac_status); } && { 7769 test -z "$ac_c_werror_flag" || 7770 test ! -s conftest.err 7771 } && test -s conftest.$ac_objext; then 6962 if ac_fn_c_try_compile "$LINENO"; then : 7772 6963 ac_cv_prog_cc_c89=$ac_arg 7773 else 7774 $as_echo "$as_me: failed program was:" >&5 7775 sed 's/^/| /' conftest.$ac_ext >&5 7776 7777 7778 fi 7779 6964 fi 7780 6965 rm -f core conftest.err conftest.$ac_objext 7781 6966 test "x$ac_cv_prog_cc_c89" != "xno" && break … … 7788 6973 case "x$ac_cv_prog_cc_c89" in 7789 6974 x) 7790 { $as_echo "$as_me:$ LINENO: result: none needed" >&56975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7791 6976 $as_echo "none needed" >&6; } ;; 7792 6977 xno) 7793 { $as_echo "$as_me:$ LINENO: result: unsupported" >&56978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7794 6979 $as_echo "unsupported" >&6; } ;; 7795 6980 *) 7796 6981 CC="$CC $ac_cv_prog_cc_c89" 7797 { $as_echo "$as_me:$ LINENO: result: $ac_cv_prog_cc_c89" >&56982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 7798 6983 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 7799 6984 esac 7800 6985 if test "x$ac_cv_prog_cc_c89" != xno; then : 6986 6987 fi 7801 6988 7802 6989 ac_ext=c … … 7811 6998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7812 6999 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7813 { $as_echo "$as_me:$ LINENO: checking how to run the C preprocessor" >&57000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7814 7001 $as_echo_n "checking how to run the C preprocessor... " >&6; } 7815 7002 # On Suns, sometimes $CPP names a directory. … … 7818 7005 fi 7819 7006 if test -z "$CPP"; then 7820 if test "${ac_cv_prog_CPP+set}" = set; then7007 if ${ac_cv_prog_CPP+:} false; then : 7821 7008 $as_echo_n "(cached) " >&6 7822 7009 else … … 7833 7020 # On the NeXT, cc -E runs the code through the compiler's parser, 7834 7021 # not just through cpp. "Syntax error" is here to catch this case. 7835 cat >conftest.$ac_ext <<_ACEOF 7836 /* confdefs.h. */ 7837 _ACEOF 7838 cat confdefs.h >>conftest.$ac_ext 7839 cat >>conftest.$ac_ext <<_ACEOF 7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7840 7023 /* end confdefs.h. */ 7841 7024 #ifdef __STDC__ … … 7846 7029 Syntax error 7847 7030 _ACEOF 7848 if { (ac_try="$ac_cpp conftest.$ac_ext" 7849 case "(($ac_try" in 7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7851 *) ac_try_echo=$ac_try;; 7852 esac 7853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7854 $as_echo "$ac_try_echo") >&5 7855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7856 ac_status=$? 7857 grep -v '^ *+' conftest.er1 >conftest.err 7858 rm -f conftest.er1 7859 cat conftest.err >&5 7860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7861 (exit $ac_status); } >/dev/null && { 7862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7863 test ! -s conftest.err 7864 }; then 7865 : 7866 else 7867 $as_echo "$as_me: failed program was:" >&5 7868 sed 's/^/| /' conftest.$ac_ext >&5 7869 7031 if ac_fn_c_try_cpp "$LINENO"; then : 7032 7033 else 7870 7034 # Broken: fails on valid input. 7871 7035 continue 7872 7036 fi 7873 7874 rm -f conftest.err conftest.$ac_ext 7037 rm -f conftest.err conftest.i conftest.$ac_ext 7875 7038 7876 7039 # OK, works on sane cases. Now check whether nonexistent headers 7877 7040 # can be detected and how. 7878 cat >conftest.$ac_ext <<_ACEOF 7879 /* confdefs.h. */ 7880 _ACEOF 7881 cat confdefs.h >>conftest.$ac_ext 7882 cat >>conftest.$ac_ext <<_ACEOF 7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7883 7042 /* end confdefs.h. */ 7884 7043 #include <ac_nonexistent.h> 7885 7044 _ACEOF 7886 if { (ac_try="$ac_cpp conftest.$ac_ext" 7887 case "(($ac_try" in 7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7889 *) ac_try_echo=$ac_try;; 7890 esac 7891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7892 $as_echo "$ac_try_echo") >&5 7893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7894 ac_status=$? 7895 grep -v '^ *+' conftest.er1 >conftest.err 7896 rm -f conftest.er1 7897 cat conftest.err >&5 7898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7899 (exit $ac_status); } >/dev/null && { 7900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7901 test ! -s conftest.err 7902 }; then 7045 if ac_fn_c_try_cpp "$LINENO"; then : 7903 7046 # Broken: success on invalid input. 7904 7047 continue 7905 7048 else 7906 $as_echo "$as_me: failed program was:" >&57907 sed 's/^/| /' conftest.$ac_ext >&57908 7909 7049 # Passes both tests. 7910 7050 ac_preproc_ok=: 7911 7051 break 7912 7052 fi 7913 7914 rm -f conftest.err conftest.$ac_ext 7053 rm -f conftest.err conftest.i conftest.$ac_ext 7915 7054 7916 7055 done 7917 7056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7918 rm -f conftest. err conftest.$ac_ext7919 if $ac_preproc_ok; then 7057 rm -f conftest.i conftest.err conftest.$ac_ext 7058 if $ac_preproc_ok; then : 7920 7059 break 7921 7060 fi … … 7929 7068 ac_cv_prog_CPP=$CPP 7930 7069 fi 7931 { $as_echo "$as_me:$ LINENO: result: $CPP" >&57070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7932 7071 $as_echo "$CPP" >&6; } 7933 7072 ac_preproc_ok=false … … 7940 7079 # On the NeXT, cc -E runs the code through the compiler's parser, 7941 7080 # not just through cpp. "Syntax error" is here to catch this case. 7942 cat >conftest.$ac_ext <<_ACEOF 7943 /* confdefs.h. */ 7944 _ACEOF 7945 cat confdefs.h >>conftest.$ac_ext 7946 cat >>conftest.$ac_ext <<_ACEOF 7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7947 7082 /* end confdefs.h. */ 7948 7083 #ifdef __STDC__ … … 7953 7088 Syntax error 7954 7089 _ACEOF 7955 if { (ac_try="$ac_cpp conftest.$ac_ext" 7956 case "(($ac_try" in 7957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7958 *) ac_try_echo=$ac_try;; 7959 esac 7960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7961 $as_echo "$ac_try_echo") >&5 7962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7963 ac_status=$? 7964 grep -v '^ *+' conftest.er1 >conftest.err 7965 rm -f conftest.er1 7966 cat conftest.err >&5 7967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7968 (exit $ac_status); } >/dev/null && { 7969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7970 test ! -s conftest.err 7971 }; then 7972 : 7973 else 7974 $as_echo "$as_me: failed program was:" >&5 7975 sed 's/^/| /' conftest.$ac_ext >&5 7976 7090 if ac_fn_c_try_cpp "$LINENO"; then : 7091 7092 else 7977 7093 # Broken: fails on valid input. 7978 7094 continue 7979 7095 fi 7980 7981 rm -f conftest.err conftest.$ac_ext 7096 rm -f conftest.err conftest.i conftest.$ac_ext 7982 7097 7983 7098 # OK, works on sane cases. Now check whether nonexistent headers 7984 7099 # can be detected and how. 7985 cat >conftest.$ac_ext <<_ACEOF 7986 /* confdefs.h. */ 7987 _ACEOF 7988 cat confdefs.h >>conftest.$ac_ext 7989 cat >>conftest.$ac_ext <<_ACEOF 7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7990 7101 /* end confdefs.h. */ 7991 7102 #include <ac_nonexistent.h> 7992 7103 _ACEOF 7993 if { (ac_try="$ac_cpp conftest.$ac_ext" 7994 case "(($ac_try" in 7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7996 *) ac_try_echo=$ac_try;; 7997 esac 7998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7999 $as_echo "$ac_try_echo") >&5 8000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8001 ac_status=$? 8002 grep -v '^ *+' conftest.er1 >conftest.err 8003 rm -f conftest.er1 8004 cat conftest.err >&5 8005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8006 (exit $ac_status); } >/dev/null && { 8007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8008 test ! -s conftest.err 8009 }; then 7104 if ac_fn_c_try_cpp "$LINENO"; then : 8010 7105 # Broken: success on invalid input. 8011 7106 continue 8012 7107 else 8013 $as_echo "$as_me: failed program was:" >&58014 sed 's/^/| /' conftest.$ac_ext >&58015 8016 7108 # Passes both tests. 8017 7109 ac_preproc_ok=: 8018 7110 break 8019 7111 fi 8020 8021 rm -f conftest.err conftest.$ac_ext 7112 rm -f conftest.err conftest.i conftest.$ac_ext 8022 7113 8023 7114 done 8024 7115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8025 rm -f conftest. err conftest.$ac_ext8026 if $ac_preproc_ok; then 8027 : 8028 else 8029 { { $as_echo "$as_me:$ LINENO: error: in \`$ac_pwd':" >&57116 rm -f conftest.i conftest.err conftest.$ac_ext 7117 if $ac_preproc_ok; then : 7118 7119 else 7120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8030 7121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8031 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 8032 See \`config.log' for more details." >&5 8033 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 8034 See \`config.log' for more details." >&2;} 8035 { (exit 1); exit 1; }; }; } 7122 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7123 See \`config.log' for more details" "$LINENO" 5; } 8036 7124 fi 8037 7125 … … 8056 7144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8057 7145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8058 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&57146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8059 7147 $as_echo_n "checking for $ac_word... " >&6; } 8060 if test "${ac_cv_prog_CXX+set}" = set; then7148 if ${ac_cv_prog_CXX+:} false; then : 8061 7149 $as_echo_n "(cached) " >&6 8062 7150 else … … 8069 7157 IFS=$as_save_IFS 8070 7158 test -z "$as_dir" && as_dir=. 8071 for ac_exec_ext in '' $ac_executable_extensions; do8072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then7159 for ac_exec_ext in '' $ac_executable_extensions; do 7160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8073 7161 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 8074 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&57162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8075 7163 break 2 8076 7164 fi 8077 7165 done 8078 done7166 done 8079 7167 IFS=$as_save_IFS 8080 7168 … … 8083 7171 CXX=$ac_cv_prog_CXX 8084 7172 if test -n "$CXX"; then 8085 { $as_echo "$as_me:$ LINENO: result: $CXX" >&57173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 8086 7174 $as_echo "$CXX" >&6; } 8087 7175 else 8088 { $as_echo "$as_me:$ LINENO: result: no" >&57176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8089 7177 $as_echo "no" >&6; } 8090 7178 fi … … 8100 7188 # Extract the first word of "$ac_prog", so it can be a program name with args. 8101 7189 set dummy $ac_prog; ac_word=$2 8102 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&57190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8103 7191 $as_echo_n "checking for $ac_word... " >&6; } 8104 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then7192 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 8105 7193 $as_echo_n "(cached) " >&6 8106 7194 else … … 8113 7201 IFS=$as_save_IFS 8114 7202 test -z "$as_dir" && as_dir=. 8115 for ac_exec_ext in '' $ac_executable_extensions; do8116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then7203 for ac_exec_ext in '' $ac_executable_extensions; do 7204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8117 7205 ac_cv_prog_ac_ct_CXX="$ac_prog" 8118 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&57206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8119 7207 break 2 8120 7208 fi 8121 7209 done 8122 done7210 done 8123 7211 IFS=$as_save_IFS 8124 7212 … … 8127 7215 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 8128 7216 if test -n "$ac_ct_CXX"; then 8129 { $as_echo "$as_me:$ LINENO: result: $ac_ct_CXX" >&57217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 8130 7218 $as_echo "$ac_ct_CXX" >&6; } 8131 7219 else 8132 { $as_echo "$as_me:$ LINENO: result: no" >&57220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8133 7221 $as_echo "no" >&6; } 8134 7222 fi … … 8143 7231 case $cross_compiling:$ac_tool_warned in 8144 7232 yes:) 8145 { $as_echo "$as_me:$ LINENO: WARNING: using cross tools not prefixed with host triplet" >&57233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8146 7234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8147 7235 ac_tool_warned=yes ;; … … 8154 7242 fi 8155 7243 # Provide some information about the compiler. 8156 $as_echo "$as_me:$ LINENO: checking for C++ compiler version" >&57244 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 8157 7245 set X $ac_compile 8158 7246 ac_compiler=$2 8159 { (ac_try="$ac_compiler --version >&5" 7247 for ac_option in --version -v -V -qversion; do 7248 { { ac_try="$ac_compiler $ac_option >&5" 8160 7249 case "(($ac_try" in 8161 7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8162 7251 *) ac_try_echo=$ac_try;; 8163 7252 esac 8164 eval ac_try_echo="\"\$as_me:$ LINENO: $ac_try_echo\""8165 $as_echo "$ac_try_echo" )>&58166 (eval "$ac_compiler --version >&5") 2>&57253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7254 $as_echo "$ac_try_echo"; } >&5 7255 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 8167 7256 ac_status=$? 8168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8169 (exit $ac_status); } 8170 { (ac_try="$ac_compiler -v >&5" 8171 case "(($ac_try" in 8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8173 *) ac_try_echo=$ac_try;; 8174 esac 8175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8176 $as_echo "$ac_try_echo") >&5 8177 (eval "$ac_compiler -v >&5") 2>&5 8178 ac_status=$? 8179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8180 (exit $ac_status); } 8181 { (ac_try="$ac_compiler -V >&5" 8182 case "(($ac_try" in 8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8184 *) ac_try_echo=$ac_try;; 8185 esac 8186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8187 $as_echo "$ac_try_echo") >&5 8188 (eval "$ac_compiler -V >&5") 2>&5 8189 ac_status=$? 8190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8191 (exit $ac_status); } 8192 8193 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 7257 if test -s conftest.err; then 7258 sed '10a\ 7259 ... rest of stderr output deleted ... 7260 10q' conftest.err >conftest.er1 7261 cat conftest.er1 >&5 7262 fi 7263 rm -f conftest.er1 conftest.err 7264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7265 test $ac_status = 0; } 7266 done 7267 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 8194 7269 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 8195 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then7270 if ${ac_cv_cxx_compiler_gnu+:} false; then : 8196 7271 $as_echo_n "(cached) " >&6 8197 7272 else 8198 cat >conftest.$ac_ext <<_ACEOF 8199 /* confdefs.h. */ 8200 _ACEOF 8201 cat confdefs.h >>conftest.$ac_ext 8202 cat >>conftest.$ac_ext <<_ACEOF 7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8203 7274 /* end confdefs.h. */ 8204 7275 … … 8214 7285 } 8215 7286 _ACEOF 8216 rm -f conftest.$ac_objext 8217 if { (ac_try="$ac_compile" 8218 case "(($ac_try" in 8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8220 *) ac_try_echo=$ac_try;; 8221 esac 8222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8223 $as_echo "$ac_try_echo") >&5 8224 (eval "$ac_compile") 2>conftest.er1 8225 ac_status=$? 8226 grep -v '^ *+' conftest.er1 >conftest.err 8227 rm -f conftest.er1 8228 cat conftest.err >&5 8229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8230 (exit $ac_status); } && { 8231 test -z "$ac_cxx_werror_flag" || 8232 test ! -s conftest.err 8233 } && test -s conftest.$ac_objext; then 7287 if ac_fn_cxx_try_compile "$LINENO"; then : 8234 7288 ac_compiler_gnu=yes 8235 7289 else 8236 $as_echo "$as_me: failed program was:" >&5 8237 sed 's/^/| /' conftest.$ac_ext >&5 8238 8239 ac_compiler_gnu=no 8240 fi 8241 7290 ac_compiler_gnu=no 7291 fi 8242 7292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8243 7293 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 8244 7294 8245 7295 fi 8246 { $as_echo "$as_me:$ LINENO: result: $ac_cv_cxx_compiler_gnu" >&57296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 8247 7297 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 8248 7298 if test $ac_compiler_gnu = yes; then … … 8253 7303 ac_test_CXXFLAGS=${CXXFLAGS+set} 8254 7304 ac_save_CXXFLAGS=$CXXFLAGS 8255 { $as_echo "$as_me:$ LINENO: checking whether $CXX accepts -g" >&57305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 8256 7306 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 8257 if test "${ac_cv_prog_cxx_g+set}" = set; then7307 if ${ac_cv_prog_cxx_g+:} false; then : 8258 7308 $as_echo_n "(cached) " >&6 8259 7309 else … … 8262 7312 ac_cv_prog_cxx_g=no 8263 7313 CXXFLAGS="-g" 8264 cat >conftest.$ac_ext <<_ACEOF 8265 /* confdefs.h. */ 8266 _ACEOF 8267 cat confdefs.h >>conftest.$ac_ext 8268 cat >>conftest.$ac_ext <<_ACEOF 7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8269 7315 /* end confdefs.h. */ 8270 7316 … … 8277 7323 } 8278 7324 _ACEOF 8279 rm -f conftest.$ac_objext 8280 if { (ac_try="$ac_compile" 8281 case "(($ac_try" in 8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8283 *) ac_try_echo=$ac_try;; 8284 esac 8285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8286 $as_echo "$ac_try_echo") >&5 8287 (eval "$ac_compile") 2>conftest.er1 8288 ac_status=$? 8289 grep -v '^ *+' conftest.er1 >conftest.err 8290 rm -f conftest.er1 8291 cat conftest.err >&5 8292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8293 (exit $ac_status); } && { 8294 test -z "$ac_cxx_werror_flag" || 8295 test ! -s conftest.err 8296 } && test -s conftest.$ac_objext; then 7325 if ac_fn_cxx_try_compile "$LINENO"; then : 8297 7326 ac_cv_prog_cxx_g=yes 8298 7327 else 8299 $as_echo "$as_me: failed program was:" >&5 8300 sed 's/^/| /' conftest.$ac_ext >&5 8301 8302 CXXFLAGS="" 8303 cat >conftest.$ac_ext <<_ACEOF 8304 /* confdefs.h. */ 8305 _ACEOF 8306 cat confdefs.h >>conftest.$ac_ext 8307 cat >>conftest.$ac_ext <<_ACEOF 7328 CXXFLAGS="" 7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8308 7330 /* end confdefs.h. */ 8309 7331 … … 8316 7338 } 8317 7339 _ACEOF 8318 rm -f conftest.$ac_objext 8319 if { (ac_try="$ac_compile" 8320 case "(($ac_try" in 8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8322 *) ac_try_echo=$ac_try;; 8323 esac 8324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8325 $as_echo "$ac_try_echo") >&5 8326 (eval "$ac_compile") 2>conftest.er1 8327 ac_status=$? 8328 grep -v '^ *+' conftest.er1 >conftest.err 8329 rm -f conftest.er1 8330 cat conftest.err >&5 8331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8332 (exit $ac_status); } && { 8333 test -z "$ac_cxx_werror_flag" || 8334 test ! -s conftest.err 8335 } && test -s conftest.$ac_objext; then 8336 : 8337 else 8338 $as_echo "$as_me: failed program was:" >&5 8339 sed 's/^/| /' conftest.$ac_ext >&5 8340 8341 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7340 if ac_fn_cxx_try_compile "$LINENO"; then : 7341 7342 else 7343 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 8342 7344 CXXFLAGS="-g" 8343 cat >conftest.$ac_ext <<_ACEOF 8344 /* confdefs.h. */ 8345 _ACEOF 8346 cat confdefs.h >>conftest.$ac_ext 8347 cat >>conftest.$ac_ext <<_ACEOF 7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8348 7346 /* end confdefs.h. */ 8349 7347 … … 8356 7354 } 8357 7355 _ACEOF 8358 rm -f conftest.$ac_objext 8359 if { (ac_try="$ac_compile" 8360 case "(($ac_try" in 8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8362 *) ac_try_echo=$ac_try;; 8363 esac 8364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8365 $as_echo "$ac_try_echo") >&5 8366 (eval "$ac_compile") 2>conftest.er1 8367 ac_status=$? 8368 grep -v '^ *+' conftest.er1 >conftest.err 8369 rm -f conftest.er1 8370 cat conftest.err >&5 8371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8372 (exit $ac_status); } && { 8373 test -z "$ac_cxx_werror_flag" || 8374 test ! -s conftest.err 8375 } && test -s conftest.$ac_objext; then 7356 if ac_fn_cxx_try_compile "$LINENO"; then : 8376 7357 ac_cv_prog_cxx_g=yes 8377 else 8378 $as_echo "$as_me: failed program was:" >&5 8379 sed 's/^/| /' conftest.$ac_ext >&5 8380 8381 8382 fi 8383 7358 fi 8384 7359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8385 7360 fi 8386 8387 7361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8388 7362 fi 8389 8390 7363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8391 7364 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 8392 7365 fi 8393 { $as_echo "$as_me:$ LINENO: result: $ac_cv_prog_cxx_g" >&57366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 8394 7367 $as_echo "$ac_cv_prog_cxx_g" >&6; } 8395 7368 if test "$ac_test_CXXFLAGS" = set; then … … 8419 7392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8420 7393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8421 { $as_echo "$as_me:$ LINENO: checking how to run the C++ preprocessor" >&57394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 8422 7395 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 8423 7396 if test -z "$CXXCPP"; then 8424 if test "${ac_cv_prog_CXXCPP+set}" = set; then7397 if ${ac_cv_prog_CXXCPP+:} false; then : 8425 7398 $as_echo_n "(cached) " >&6 8426 7399 else … … 8437 7410 # On the NeXT, cc -E runs the code through the compiler's parser, 8438 7411 # not just through cpp. "Syntax error" is here to catch this case. 8439 cat >conftest.$ac_ext <<_ACEOF 8440 /* confdefs.h. */ 8441 _ACEOF 8442 cat confdefs.h >>conftest.$ac_ext 8443 cat >>conftest.$ac_ext <<_ACEOF 7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8444 7413 /* end confdefs.h. */ 8445 7414 #ifdef __STDC__ … … 8450 7419 Syntax error 8451 7420 _ACEOF 8452 if { (ac_try="$ac_cpp conftest.$ac_ext" 8453 case "(($ac_try" in 8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8455 *) ac_try_echo=$ac_try;; 8456 esac 8457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8458 $as_echo "$ac_try_echo") >&5 8459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8460 ac_status=$? 8461 grep -v '^ *+' conftest.er1 >conftest.err 8462 rm -f conftest.er1 8463 cat conftest.err >&5 8464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8465 (exit $ac_status); } >/dev/null && { 8466 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8467 test ! -s conftest.err 8468 }; then 8469 : 8470 else 8471 $as_echo "$as_me: failed program was:" >&5 8472 sed 's/^/| /' conftest.$ac_ext >&5 8473 7421 if ac_fn_cxx_try_cpp "$LINENO"; then : 7422 7423 else 8474 7424 # Broken: fails on valid input. 8475 7425 continue 8476 7426 fi 8477 8478 rm -f conftest.err conftest.$ac_ext 7427 rm -f conftest.err conftest.i conftest.$ac_ext 8479 7428 8480 7429 # OK, works on sane cases. Now check whether nonexistent headers 8481 7430 # can be detected and how. 8482 cat >conftest.$ac_ext <<_ACEOF 8483 /* confdefs.h. */ 8484 _ACEOF 8485 cat confdefs.h >>conftest.$ac_ext 8486 cat >>conftest.$ac_ext <<_ACEOF 7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8487 7432 /* end confdefs.h. */ 8488 7433 #include <ac_nonexistent.h> 8489 7434 _ACEOF 8490 if { (ac_try="$ac_cpp conftest.$ac_ext" 8491 case "(($ac_try" in 8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8493 *) ac_try_echo=$ac_try;; 8494 esac 8495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8496 $as_echo "$ac_try_echo") >&5 8497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8498 ac_status=$? 8499 grep -v '^ *+' conftest.er1 >conftest.err 8500 rm -f conftest.er1 8501 cat conftest.err >&5 8502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8503 (exit $ac_status); } >/dev/null && { 8504 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8505 test ! -s conftest.err 8506 }; then 7435 if ac_fn_cxx_try_cpp "$LINENO"; then : 8507 7436 # Broken: success on invalid input. 8508 7437 continue 8509 7438 else 8510 $as_echo "$as_me: failed program was:" >&58511 sed 's/^/| /' conftest.$ac_ext >&58512 8513 7439 # Passes both tests. 8514 7440 ac_preproc_ok=: 8515 7441 break 8516 7442 fi 8517 8518 rm -f conftest.err conftest.$ac_ext 7443 rm -f conftest.err conftest.i conftest.$ac_ext 8519 7444 8520 7445 done 8521 7446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8522 rm -f conftest. err conftest.$ac_ext8523 if $ac_preproc_ok; then 7447 rm -f conftest.i conftest.err conftest.$ac_ext 7448 if $ac_preproc_ok; then : 8524 7449 break 8525 7450 fi … … 8533 7458 ac_cv_prog_CXXCPP=$CXXCPP 8534 7459 fi 8535 { $as_echo "$as_me:$ LINENO: result: $CXXCPP" >&57460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 8536 7461 $as_echo "$CXXCPP" >&6; } 8537 7462 ac_preproc_ok=false … … 8544 7469 # On the NeXT, cc -E runs the code through the compiler's parser, 8545 7470 # not just through cpp. "Syntax error" is here to catch this case. 8546 cat >conftest.$ac_ext <<_ACEOF 8547 /* confdefs.h. */ 8548 _ACEOF 8549 cat confdefs.h >>conftest.$ac_ext 8550 cat >>conftest.$ac_ext <<_ACEOF 7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8551 7472 /* end confdefs.h. */ 8552 7473 #ifdef __STDC__ … … 8557 7478 Syntax error 8558 7479 _ACEOF 8559 if { (ac_try="$ac_cpp conftest.$ac_ext" 8560 case "(($ac_try" in 8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8562 *) ac_try_echo=$ac_try;; 8563 esac 8564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8565 $as_echo "$ac_try_echo") >&5 8566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8567 ac_status=$? 8568 grep -v '^ *+' conftest.er1 >conftest.err 8569 rm -f conftest.er1 8570 cat conftest.err >&5 8571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8572 (exit $ac_status); } >/dev/null && { 8573 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8574 test ! -s conftest.err 8575 }; then 8576 : 8577 else 8578 $as_echo "$as_me: failed program was:" >&5 8579 sed 's/^/| /' conftest.$ac_ext >&5 8580 7480 if ac_fn_cxx_try_cpp "$LINENO"; then : 7481 7482 else 8581 7483 # Broken: fails on valid input. 8582 7484 continue 8583 7485 fi 8584 8585 rm -f conftest.err conftest.$ac_ext 7486 rm -f conftest.err conftest.i conftest.$ac_ext 8586 7487 8587 7488 # OK, works on sane cases. Now check whether nonexistent headers 8588 7489 # can be detected and how. 8589 cat >conftest.$ac_ext <<_ACEOF 8590 /* confdefs.h. */ 8591 _ACEOF 8592 cat confdefs.h >>conftest.$ac_ext 8593 cat >>conftest.$ac_ext <<_ACEOF 7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8594 7491 /* end confdefs.h. */ 8595 7492 #include <ac_nonexistent.h> 8596 7493 _ACEOF 8597 if { (ac_try="$ac_cpp conftest.$ac_ext" 8598 case "(($ac_try" in 8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8600 *) ac_try_echo=$ac_try;; 8601 esac 8602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8603 $as_echo "$ac_try_echo") >&5 8604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8605 ac_status=$? 8606 grep -v '^ *+' conftest.er1 >conftest.err 8607 rm -f conftest.er1 8608 cat conftest.err >&5 8609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8610 (exit $ac_status); } >/dev/null && { 8611 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8612 test ! -s conftest.err 8613 }; then 7494 if ac_fn_cxx_try_cpp "$LINENO"; then : 8614 7495 # Broken: success on invalid input. 8615 7496 continue 8616 7497 else 8617 $as_echo "$as_me: failed program was:" >&58618 sed 's/^/| /' conftest.$ac_ext >&58619 8620 7498 # Passes both tests. 8621 7499 ac_preproc_ok=: 8622 7500 break 8623 7501 fi 8624 8625 rm -f conftest.err conftest.$ac_ext 7502 rm -f conftest.err conftest.i conftest.$ac_ext 8626 7503 8627 7504 done 8628 7505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8629 rm -f conftest. err conftest.$ac_ext8630 if $ac_preproc_ok; then 8631 : 8632 else 8633 { { $as_echo "$as_me:$ LINENO: error: in \`$ac_pwd':" >&57506 rm -f conftest.i conftest.err conftest.$ac_ext 7507 if $ac_preproc_ok; then : 7508 7509 else 7510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8634 7511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8635 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 8636 See \`config.log' for more details." >&5 8637 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 8638 See \`config.log' for more details." >&2;} 8639 { (exit 1); exit 1; }; }; } 7512 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 7513 See \`config.log' for more details" "$LINENO" 5; } 8640 7514 fi 8641 7515 … … 8660 7534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8661 7535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8662 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&57536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8663 7537 $as_echo_n "checking for $ac_word... " >&6; } 8664 if test "${ac_cv_prog_CXX+set}" = set; then7538 if ${ac_cv_prog_CXX+:} false; then : 8665 7539 $as_echo_n "(cached) " >&6 8666 7540 else … … 8673 7547 IFS=$as_save_IFS 8674 7548 test -z "$as_dir" && as_dir=. 8675 for ac_exec_ext in '' $ac_executable_extensions; do8676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then7549 for ac_exec_ext in '' $ac_executable_extensions; do 7550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8677 7551 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 8678 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&57552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8679 7553 break 2 8680 7554 fi 8681 7555 done 8682 done7556 done 8683 7557 IFS=$as_save_IFS 8684 7558 … … 8687 7561 CXX=$ac_cv_prog_CXX 8688 7562 if test -n "$CXX"; then 8689 { $as_echo "$as_me:$ LINENO: result: $CXX" >&57563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 8690 7564 $as_echo "$CXX" >&6; } 8691 7565 else 8692 { $as_echo "$as_me:$ LINENO: result: no" >&57566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8693 7567 $as_echo "no" >&6; } 8694 7568 fi … … 8704 7578 # Extract the first word of "$ac_prog", so it can be a program name with args. 8705 7579 set dummy $ac_prog; ac_word=$2 8706 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&57580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8707 7581 $as_echo_n "checking for $ac_word... " >&6; } 8708 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then7582 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 8709 7583 $as_echo_n "(cached) " >&6 8710 7584 else … … 8717 7591 IFS=$as_save_IFS 8718 7592 test -z "$as_dir" && as_dir=. 8719 for ac_exec_ext in '' $ac_executable_extensions; do8720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then7593 for ac_exec_ext in '' $ac_executable_extensions; do 7594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8721 7595 ac_cv_prog_ac_ct_CXX="$ac_prog" 8722 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&57596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8723 7597 break 2 8724 7598 fi 8725 7599 done 8726 done7600 done 8727 7601 IFS=$as_save_IFS 8728 7602 … … 8731 7605 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 8732 7606 if test -n "$ac_ct_CXX"; then 8733 { $as_echo "$as_me:$ LINENO: result: $ac_ct_CXX" >&57607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 8734 7608 $as_echo "$ac_ct_CXX" >&6; } 8735 7609 else 8736 { $as_echo "$as_me:$ LINENO: result: no" >&57610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8737 7611 $as_echo "no" >&6; } 8738 7612 fi … … 8747 7621 case $cross_compiling:$ac_tool_warned in 8748 7622 yes:) 8749 { $as_echo "$as_me:$ LINENO: WARNING: using cross tools not prefixed with host triplet" >&57623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8750 7624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8751 7625 ac_tool_warned=yes ;; … … 8758 7632 fi 8759 7633 # Provide some information about the compiler. 8760 $as_echo "$as_me:$ LINENO: checking for C++ compiler version" >&57634 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 8761 7635 set X $ac_compile 8762 7636 ac_compiler=$2 8763 { (ac_try="$ac_compiler --version >&5" 7637 for ac_option in --version -v -V -qversion; do 7638 { { ac_try="$ac_compiler $ac_option >&5" 8764 7639 case "(($ac_try" in 8765 7640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8766 7641 *) ac_try_echo=$ac_try;; 8767 7642 esac 8768 eval ac_try_echo="\"\$as_me:$ LINENO: $ac_try_echo\""8769 $as_echo "$ac_try_echo" )>&58770 (eval "$ac_compiler --version >&5") 2>&57643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7644 $as_echo "$ac_try_echo"; } >&5 7645 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 8771 7646 ac_status=$? 8772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8773 (exit $ac_status); } 8774 { (ac_try="$ac_compiler -v >&5" 8775 case "(($ac_try" in 8776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8777 *) ac_try_echo=$ac_try;; 8778 esac 8779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8780 $as_echo "$ac_try_echo") >&5 8781 (eval "$ac_compiler -v >&5") 2>&5 8782 ac_status=$? 8783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8784 (exit $ac_status); } 8785 { (ac_try="$ac_compiler -V >&5" 8786 case "(($ac_try" in 8787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8788 *) ac_try_echo=$ac_try;; 8789 esac 8790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8791 $as_echo "$ac_try_echo") >&5 8792 (eval "$ac_compiler -V >&5") 2>&5 8793 ac_status=$? 8794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8795 (exit $ac_status); } 8796 8797 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 7647 if test -s conftest.err; then 7648 sed '10a\ 7649 ... rest of stderr output deleted ... 7650 10q' conftest.err >conftest.er1 7651 cat conftest.er1 >&5 7652 fi 7653 rm -f conftest.er1 conftest.err 7654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7655 test $ac_status = 0; } 7656 done 7657 7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 8798 7659 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 8799 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then7660 if ${ac_cv_cxx_compiler_gnu+:} false; then : 8800 7661 $as_echo_n "(cached) " >&6 8801 7662 else 8802 cat >conftest.$ac_ext <<_ACEOF 8803 /* confdefs.h. */ 8804 _ACEOF 8805 cat confdefs.h >>conftest.$ac_ext 8806 cat >>conftest.$ac_ext <<_ACEOF 7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8807 7664 /* end confdefs.h. */ 8808 7665 … … 8818 7675 } 8819 7676 _ACEOF 8820 rm -f conftest.$ac_objext 8821 if { (ac_try="$ac_compile" 8822 case "(($ac_try" in 8823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8824 *) ac_try_echo=$ac_try;; 8825 esac 8826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8827 $as_echo "$ac_try_echo") >&5 8828 (eval "$ac_compile") 2>conftest.er1 8829 ac_status=$? 8830 grep -v '^ *+' conftest.er1 >conftest.err 8831 rm -f conftest.er1 8832 cat conftest.err >&5 8833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8834 (exit $ac_status); } && { 8835 test -z "$ac_cxx_werror_flag" || 8836 test ! -s conftest.err 8837 } && test -s conftest.$ac_objext; then 7677 if ac_fn_cxx_try_compile "$LINENO"; then : 8838 7678 ac_compiler_gnu=yes 8839 7679 else 8840 $as_echo "$as_me: failed program was:" >&5 8841 sed 's/^/| /' conftest.$ac_ext >&5 8842 8843 ac_compiler_gnu=no 8844 fi 8845 7680 ac_compiler_gnu=no 7681 fi 8846 7682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8847 7683 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 8848 7684 8849 7685 fi 8850 { $as_echo "$as_me:$ LINENO: result: $ac_cv_cxx_compiler_gnu" >&57686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 8851 7687 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 8852 7688 if test $ac_compiler_gnu = yes; then … … 8857 7693 ac_test_CXXFLAGS=${CXXFLAGS+set} 8858 7694 ac_save_CXXFLAGS=$CXXFLAGS 8859 { $as_echo "$as_me:$ LINENO: checking whether $CXX accepts -g" >&57695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 8860 7696 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 8861 if test "${ac_cv_prog_cxx_g+set}" = set; then7697 if ${ac_cv_prog_cxx_g+:} false; then : 8862 7698 $as_echo_n "(cached) " >&6 8863 7699 else … … 8866 7702 ac_cv_prog_cxx_g=no 8867 7703 CXXFLAGS="-g" 8868 cat >conftest.$ac_ext <<_ACEOF 8869 /* confdefs.h. */ 8870 _ACEOF 8871 cat confdefs.h >>conftest.$ac_ext 8872 cat >>conftest.$ac_ext <<_ACEOF 7704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8873 7705 /* end confdefs.h. */ 8874 7706 … … 8881 7713 } 8882 7714 _ACEOF 8883 rm -f conftest.$ac_objext 8884 if { (ac_try="$ac_compile" 8885 case "(($ac_try" in 8886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8887 *) ac_try_echo=$ac_try;; 8888 esac 8889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8890 $as_echo "$ac_try_echo") >&5 8891 (eval "$ac_compile") 2>conftest.er1 8892 ac_status=$? 8893 grep -v '^ *+' conftest.er1 >conftest.err 8894 rm -f conftest.er1 8895 cat conftest.err >&5 8896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8897 (exit $ac_status); } && { 8898 test -z "$ac_cxx_werror_flag" || 8899 test ! -s conftest.err 8900 } && test -s conftest.$ac_objext; then 7715 if ac_fn_cxx_try_compile "$LINENO"; then : 8901 7716 ac_cv_prog_cxx_g=yes 8902 7717 else 8903 $as_echo "$as_me: failed program was:" >&5 8904 sed 's/^/| /' conftest.$ac_ext >&5 8905 8906 CXXFLAGS="" 8907 cat >conftest.$ac_ext <<_ACEOF 8908 /* confdefs.h. */ 8909 _ACEOF 8910 cat confdefs.h >>conftest.$ac_ext 8911 cat >>conftest.$ac_ext <<_ACEOF 7718 CXXFLAGS="" 7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8912 7720 /* end confdefs.h. */ 8913 7721 … … 8920 7728 } 8921 7729 _ACEOF 8922 rm -f conftest.$ac_objext 8923 if { (ac_try="$ac_compile" 8924 case "(($ac_try" in 8925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8926 *) ac_try_echo=$ac_try;; 8927 esac 8928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8929 $as_echo "$ac_try_echo") >&5 8930 (eval "$ac_compile") 2>conftest.er1 8931 ac_status=$? 8932 grep -v '^ *+' conftest.er1 >conftest.err 8933 rm -f conftest.er1 8934 cat conftest.err >&5 8935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8936 (exit $ac_status); } && { 8937 test -z "$ac_cxx_werror_flag" || 8938 test ! -s conftest.err 8939 } && test -s conftest.$ac_objext; then 8940 : 8941 else 8942 $as_echo "$as_me: failed program was:" >&5 8943 sed 's/^/| /' conftest.$ac_ext >&5 8944 8945 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7730 if ac_fn_cxx_try_compile "$LINENO"; then : 7731 7732 else 7733 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 8946 7734 CXXFLAGS="-g" 8947 cat >conftest.$ac_ext <<_ACEOF 8948 /* confdefs.h. */ 8949 _ACEOF 8950 cat confdefs.h >>conftest.$ac_ext 8951 cat >>conftest.$ac_ext <<_ACEOF 7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8952 7736 /* end confdefs.h. */ 8953 7737 … … 8960 7744 } 8961 7745 _ACEOF 8962 rm -f conftest.$ac_objext 8963 if { (ac_try="$ac_compile" 8964 case "(($ac_try" in 8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8966 *) ac_try_echo=$ac_try;; 8967 esac 8968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8969 $as_echo "$ac_try_echo") >&5 8970 (eval "$ac_compile") 2>conftest.er1 8971 ac_status=$? 8972 grep -v '^ *+' conftest.er1 >conftest.err 8973 rm -f conftest.er1 8974 cat conftest.err >&5 8975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8976 (exit $ac_status); } && { 8977 test -z "$ac_cxx_werror_flag" || 8978 test ! -s conftest.err 8979 } && test -s conftest.$ac_objext; then 7746 if ac_fn_cxx_try_compile "$LINENO"; then : 8980 7747 ac_cv_prog_cxx_g=yes 8981 else 8982 $as_echo "$as_me: failed program was:" >&5 8983 sed 's/^/| /' conftest.$ac_ext >&5 8984 8985 8986 fi 8987 7748 fi 8988 7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8989 7750 fi 8990 8991 7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8992 7752 fi 8993 8994 7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8995 7754 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 8996 7755 fi 8997 { $as_echo "$as_me:$ LINENO: result: $ac_cv_prog_cxx_g" >&57756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 8998 7757 $as_echo "$ac_cv_prog_cxx_g" >&6; } 8999 7758 if test "$ac_test_CXXFLAGS" = set; then … … 9026 7785 9027 7786 9028 9029 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 9030 7788 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 9031 if test "${ac_cv_c_bigendian+set}" = set; then7789 if ${ac_cv_c_bigendian+:} false; then : 9032 7790 $as_echo_n "(cached) " >&6 9033 7791 else 9034 7792 ac_cv_c_bigendian=unknown 9035 7793 # See if we're dealing with a universal compiler. 9036 cat >conftest.$ac_ext <<_ACEOF 9037 /* confdefs.h. */ 9038 _ACEOF 9039 cat confdefs.h >>conftest.$ac_ext 9040 cat >>conftest.$ac_ext <<_ACEOF 7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9041 7795 /* end confdefs.h. */ 9042 7796 #ifndef __APPLE_CC__ … … 9046 7800 9047 7801 _ACEOF 9048 rm -f conftest.$ac_objext 9049 if { (ac_try="$ac_compile" 9050 case "(($ac_try" in 9051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9052 *) ac_try_echo=$ac_try;; 9053 esac 9054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9055 $as_echo "$ac_try_echo") >&5 9056 (eval "$ac_compile") 2>conftest.er1 9057 ac_status=$? 9058 grep -v '^ *+' conftest.er1 >conftest.err 9059 rm -f conftest.er1 9060 cat conftest.err >&5 9061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9062 (exit $ac_status); } && { 9063 test -z "$ac_cxx_werror_flag" || 9064 test ! -s conftest.err 9065 } && test -s conftest.$ac_objext; then 7802 if ac_fn_cxx_try_compile "$LINENO"; then : 9066 7803 9067 7804 # Check for potential -arch flags. It is not universal unless 9068 # there are some -arch flags. Note that *ppc* also matches 9069 # ppc64. This check is also rather less than ideal. 9070 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( 9071 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; 9072 esac 9073 else 9074 $as_echo "$as_me: failed program was:" >&5 9075 sed 's/^/| /' conftest.$ac_ext >&5 9076 9077 9078 fi 9079 7805 # there are at least two -arch flags with different values. 7806 ac_arch= 7807 ac_prev= 7808 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 7809 if test -n "$ac_prev"; then 7810 case $ac_word in 7811 i?86 | x86_64 | ppc | ppc64) 7812 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 7813 ac_arch=$ac_word 7814 else 7815 ac_cv_c_bigendian=universal 7816 break 7817 fi 7818 ;; 7819 esac 7820 ac_prev= 7821 elif test "x$ac_word" = "x-arch"; then 7822 ac_prev=arch 7823 fi 7824 done 7825 fi 9080 7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9081 7827 if test $ac_cv_c_bigendian = unknown; then 9082 7828 # See if sys/param.h defines the BYTE_ORDER macro. 9083 cat >conftest.$ac_ext <<_ACEOF 9084 /* confdefs.h. */ 9085 _ACEOF 9086 cat confdefs.h >>conftest.$ac_ext 9087 cat >>conftest.$ac_ext <<_ACEOF 7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9088 7830 /* end confdefs.h. */ 9089 7831 #include <sys/types.h> … … 9103 7845 } 9104 7846 _ACEOF 9105 rm -f conftest.$ac_objext 9106 if { (ac_try="$ac_compile" 9107 case "(($ac_try" in 9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9109 *) ac_try_echo=$ac_try;; 9110 esac 9111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9112 $as_echo "$ac_try_echo") >&5 9113 (eval "$ac_compile") 2>conftest.er1 9114 ac_status=$? 9115 grep -v '^ *+' conftest.er1 >conftest.err 9116 rm -f conftest.er1 9117 cat conftest.err >&5 9118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9119 (exit $ac_status); } && { 9120 test -z "$ac_cxx_werror_flag" || 9121 test ! -s conftest.err 9122 } && test -s conftest.$ac_objext; then 7847 if ac_fn_cxx_try_compile "$LINENO"; then : 9123 7848 # It does; now see whether it defined to BIG_ENDIAN or not. 9124 cat >conftest.$ac_ext <<_ACEOF 9125 /* confdefs.h. */ 9126 _ACEOF 9127 cat confdefs.h >>conftest.$ac_ext 9128 cat >>conftest.$ac_ext <<_ACEOF 7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9129 7850 /* end confdefs.h. */ 9130 7851 #include <sys/types.h> … … 9142 7863 } 9143 7864 _ACEOF 9144 rm -f conftest.$ac_objext 9145 if { (ac_try="$ac_compile" 9146 case "(($ac_try" in 9147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9148 *) ac_try_echo=$ac_try;; 9149 esac 9150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9151 $as_echo "$ac_try_echo") >&5 9152 (eval "$ac_compile") 2>conftest.er1 9153 ac_status=$? 9154 grep -v '^ *+' conftest.er1 >conftest.err 9155 rm -f conftest.er1 9156 cat conftest.err >&5 9157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9158 (exit $ac_status); } && { 9159 test -z "$ac_cxx_werror_flag" || 9160 test ! -s conftest.err 9161 } && test -s conftest.$ac_objext; then 7865 if ac_fn_cxx_try_compile "$LINENO"; then : 9162 7866 ac_cv_c_bigendian=yes 9163 7867 else 9164 $as_echo "$as_me: failed program was:" >&5 9165 sed 's/^/| /' conftest.$ac_ext >&5 9166 9167 ac_cv_c_bigendian=no 9168 fi 9169 7868 ac_cv_c_bigendian=no 7869 fi 9170 7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9171 else 9172 $as_echo "$as_me: failed program was:" >&5 9173 sed 's/^/| /' conftest.$ac_ext >&5 9174 9175 9176 fi 9177 7871 fi 9178 7872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9179 7873 fi 9180 7874 if test $ac_cv_c_bigendian = unknown; then 9181 7875 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 9182 cat >conftest.$ac_ext <<_ACEOF 9183 /* confdefs.h. */ 9184 _ACEOF 9185 cat confdefs.h >>conftest.$ac_ext 9186 cat >>conftest.$ac_ext <<_ACEOF 7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9187 7877 /* end confdefs.h. */ 9188 7878 #include <limits.h> … … 9199 7889 } 9200 7890 _ACEOF 9201 rm -f conftest.$ac_objext 9202 if { (ac_try="$ac_compile" 9203 case "(($ac_try" in 9204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9205 *) ac_try_echo=$ac_try;; 9206 esac 9207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9208 $as_echo "$ac_try_echo") >&5 9209 (eval "$ac_compile") 2>conftest.er1 9210 ac_status=$? 9211 grep -v '^ *+' conftest.er1 >conftest.err 9212 rm -f conftest.er1 9213 cat conftest.err >&5 9214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9215 (exit $ac_status); } && { 9216 test -z "$ac_cxx_werror_flag" || 9217 test ! -s conftest.err 9218 } && test -s conftest.$ac_objext; then 7891 if ac_fn_cxx_try_compile "$LINENO"; then : 9219 7892 # It does; now see whether it defined to _BIG_ENDIAN or not. 9220 cat >conftest.$ac_ext <<_ACEOF 9221 /* confdefs.h. */ 9222 _ACEOF 9223 cat confdefs.h >>conftest.$ac_ext 9224 cat >>conftest.$ac_ext <<_ACEOF 7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9225 7894 /* end confdefs.h. */ 9226 7895 #include <limits.h> … … 9237 7906 } 9238 7907 _ACEOF 9239 rm -f conftest.$ac_objext 9240 if { (ac_try="$ac_compile" 9241 case "(($ac_try" in 9242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9243 *) ac_try_echo=$ac_try;; 9244 esac 9245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9246 $as_echo "$ac_try_echo") >&5 9247 (eval "$ac_compile") 2>conftest.er1 9248 ac_status=$? 9249 grep -v '^ *+' conftest.er1 >conftest.err 9250 rm -f conftest.er1 9251 cat conftest.err >&5 9252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9253 (exit $ac_status); } && { 9254 test -z "$ac_cxx_werror_flag" || 9255 test ! -s conftest.err 9256 } && test -s conftest.$ac_objext; then 7908 if ac_fn_cxx_try_compile "$LINENO"; then : 9257 7909 ac_cv_c_bigendian=yes 9258 7910 else 9259 $as_echo "$as_me: failed program was:" >&5 9260 sed 's/^/| /' conftest.$ac_ext >&5 9261 9262 ac_cv_c_bigendian=no 9263 fi 9264 7911 ac_cv_c_bigendian=no 7912 fi 9265 7913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9266 else 9267 $as_echo "$as_me: failed program was:" >&5 9268 sed 's/^/| /' conftest.$ac_ext >&5 9269 9270 9271 fi 9272 7914 fi 9273 7915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9274 7916 fi 9275 7917 if test $ac_cv_c_bigendian = unknown; then 9276 7918 # Compile a test program. 9277 if test "$cross_compiling" = yes; then 7919 if test "$cross_compiling" = yes; then : 9278 7920 # Try to guess by grepping values from an object file. 9279 cat >conftest.$ac_ext <<_ACEOF 9280 /* confdefs.h. */ 9281 _ACEOF 9282 cat confdefs.h >>conftest.$ac_ext 9283 cat >>conftest.$ac_ext <<_ACEOF 7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9284 7922 /* end confdefs.h. */ 9285 7923 short int ascii_mm[] = … … 9307 7945 } 9308 7946 _ACEOF 9309 rm -f conftest.$ac_objext 9310 if { (ac_try="$ac_compile" 9311 case "(($ac_try" in 9312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9313 *) ac_try_echo=$ac_try;; 9314 esac 9315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9316 $as_echo "$ac_try_echo") >&5 9317 (eval "$ac_compile") 2>conftest.er1 9318 ac_status=$? 9319 grep -v '^ *+' conftest.er1 >conftest.err 9320 rm -f conftest.er1 9321 cat conftest.err >&5 9322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9323 (exit $ac_status); } && { 9324 test -z "$ac_cxx_werror_flag" || 9325 test ! -s conftest.err 9326 } && test -s conftest.$ac_objext; then 7947 if ac_fn_cxx_try_compile "$LINENO"; then : 9327 7948 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 9328 7949 ac_cv_c_bigendian=yes … … 9336 7957 fi 9337 7958 fi 9338 else 9339 $as_echo "$as_me: failed program was:" >&5 9340 sed 's/^/| /' conftest.$ac_ext >&5 9341 9342 9343 fi 9344 7959 fi 9345 7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9346 7961 else 9347 cat >conftest.$ac_ext <<_ACEOF 9348 /* confdefs.h. */ 9349 _ACEOF 9350 cat confdefs.h >>conftest.$ac_ext 9351 cat >>conftest.$ac_ext <<_ACEOF 7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9352 7963 /* end confdefs.h. */ 9353 7964 $ac_includes_default … … 9369 7980 } 9370 7981 _ACEOF 9371 rm -f conftest$ac_exeext 9372 if { (ac_try="$ac_link" 9373 case "(($ac_try" in 9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9375 *) ac_try_echo=$ac_try;; 9376 esac 9377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9378 $as_echo "$ac_try_echo") >&5 9379 (eval "$ac_link") 2>&5 9380 ac_status=$? 9381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9383 { (case "(($ac_try" in 9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9385 *) ac_try_echo=$ac_try;; 9386 esac 9387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9388 $as_echo "$ac_try_echo") >&5 9389 (eval "$ac_try") 2>&5 9390 ac_status=$? 9391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9392 (exit $ac_status); }; }; then 7982 if ac_fn_cxx_try_run "$LINENO"; then : 9393 7983 ac_cv_c_bigendian=no 9394 7984 else 9395 $as_echo "$as_me: program exited with status $ac_status" >&5 9396 $as_echo "$as_me: failed program was:" >&5 9397 sed 's/^/| /' conftest.$ac_ext >&5 9398 9399 ( exit $ac_status ) 9400 ac_cv_c_bigendian=yes 9401 fi 9402 rm -rf conftest.dSYM 9403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9404 fi 9405 7985 ac_cv_c_bigendian=yes 7986 fi 7987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7988 conftest.$ac_objext conftest.beam conftest.$ac_ext 7989 fi 9406 7990 9407 7991 fi 9408 7992 fi 9409 { $as_echo "$as_me:$ LINENO: result: $ac_cv_c_bigendian" >&57993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 9410 7994 $as_echo "$ac_cv_c_bigendian" >&6; } 9411 7995 case $ac_cv_c_bigendian in #( 9412 7996 yes) 9413 cat >>confdefs.h <<\_ACEOF 9414 #define WORDS_BIGENDIAN 1 9415 _ACEOF 7997 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 9416 7998 ;; #( 9417 7999 no) … … 9419 8001 universal) 9420 8002 9421 cat >>confdefs.h <<\_ACEOF 9422 #define AC_APPLE_UNIVERSAL_BUILD 1 9423 _ACEOF 8003 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 9424 8004 9425 8005 ;; #( 9426 8006 *) 9427 { { $as_echo "$as_me:$LINENO: error: unknown endianness 9428 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 9429 $as_echo "$as_me: error: unknown endianness 9430 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 9431 { (exit 1); exit 1; }; } ;; 8007 as_fn_error $? "unknown endianness 8008 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 9432 8009 esac 9433 8010 … … 9436 8013 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9437 8014 # This bug is HP SR number 8606223364. 9438 { $as_echo "$as_me:$ LINENO: checking size of int" >&58015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 9439 8016 $as_echo_n "checking size of int... " >&6; } 9440 if test "${ac_cv_sizeof_int+set}" = set; then8017 if ${ac_cv_sizeof_int+:} false; then : 9441 8018 $as_echo_n "(cached) " >&6 9442 8019 else 9443 if test "$cross_compiling" = yes; then 9444 # Depending upon the size, compute the lo and hi bounds. 9445 cat >conftest.$ac_ext <<_ACEOF 9446 /* confdefs.h. */ 9447 _ACEOF 9448 cat confdefs.h >>conftest.$ac_ext 9449 cat >>conftest.$ac_ext <<_ACEOF 9450 /* end confdefs.h. */ 9451 $ac_includes_default 9452 int 9453 main () 9454 { 9455 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)]; 9456 test_array [0] = 0 9457 9458 ; 9459 return 0; 9460 } 9461 _ACEOF 9462 rm -f conftest.$ac_objext 9463 if { (ac_try="$ac_compile" 9464 case "(($ac_try" in 9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9466 *) ac_try_echo=$ac_try;; 9467 esac 9468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9469 $as_echo "$ac_try_echo") >&5 9470 (eval "$ac_compile") 2>conftest.er1 9471 ac_status=$? 9472 grep -v '^ *+' conftest.er1 >conftest.err 9473 rm -f conftest.er1 9474 cat conftest.err >&5 9475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9476 (exit $ac_status); } && { 9477 test -z "$ac_cxx_werror_flag" || 9478 test ! -s conftest.err 9479 } && test -s conftest.$ac_objext; then 9480 ac_lo=0 ac_mid=0 9481 while :; do 9482 cat >conftest.$ac_ext <<_ACEOF 9483 /* confdefs.h. */ 9484 _ACEOF 9485 cat confdefs.h >>conftest.$ac_ext 9486 cat >>conftest.$ac_ext <<_ACEOF 9487 /* end confdefs.h. */ 9488 $ac_includes_default 9489 int 9490 main () 9491 { 9492 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; 9493 test_array [0] = 0 9494 9495 ; 9496 return 0; 9497 } 9498 _ACEOF 9499 rm -f conftest.$ac_objext 9500 if { (ac_try="$ac_compile" 9501 case "(($ac_try" in 9502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9503 *) ac_try_echo=$ac_try;; 9504 esac 9505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9506 $as_echo "$ac_try_echo") >&5 9507 (eval "$ac_compile") 2>conftest.er1 9508 ac_status=$? 9509 grep -v '^ *+' conftest.er1 >conftest.err 9510 rm -f conftest.er1 9511 cat conftest.err >&5 9512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9513 (exit $ac_status); } && { 9514 test -z "$ac_cxx_werror_flag" || 9515 test ! -s conftest.err 9516 } && test -s conftest.$ac_objext; then 9517 ac_hi=$ac_mid; break 9518 else 9519 $as_echo "$as_me: failed program was:" >&5 9520 sed 's/^/| /' conftest.$ac_ext >&5 9521 9522 ac_lo=`expr $ac_mid + 1` 9523 if test $ac_lo -le $ac_mid; then 9524 ac_lo= ac_hi= 9525 break 9526 fi 9527 ac_mid=`expr 2 '*' $ac_mid + 1` 9528 fi 9529 9530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9531 done 9532 else 9533 $as_echo "$as_me: failed program was:" >&5 9534 sed 's/^/| /' conftest.$ac_ext >&5 9535 9536 cat >conftest.$ac_ext <<_ACEOF 9537 /* confdefs.h. */ 9538 _ACEOF 9539 cat confdefs.h >>conftest.$ac_ext 9540 cat >>conftest.$ac_ext <<_ACEOF 9541 /* end confdefs.h. */ 9542 $ac_includes_default 9543 int 9544 main () 9545 { 9546 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)]; 9547 test_array [0] = 0 9548 9549 ; 9550 return 0; 9551 } 9552 _ACEOF 9553 rm -f conftest.$ac_objext 9554 if { (ac_try="$ac_compile" 9555 case "(($ac_try" in 9556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9557 *) ac_try_echo=$ac_try;; 9558 esac 9559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9560 $as_echo "$ac_try_echo") >&5 9561 (eval "$ac_compile") 2>conftest.er1 9562 ac_status=$? 9563 grep -v '^ *+' conftest.er1 >conftest.err 9564 rm -f conftest.er1 9565 cat conftest.err >&5 9566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9567 (exit $ac_status); } && { 9568 test -z "$ac_cxx_werror_flag" || 9569 test ! -s conftest.err 9570 } && test -s conftest.$ac_objext; then 9571 ac_hi=-1 ac_mid=-1 9572 while :; do 9573 cat >conftest.$ac_ext <<_ACEOF 9574 /* confdefs.h. */ 9575 _ACEOF 9576 cat confdefs.h >>conftest.$ac_ext 9577 cat >>conftest.$ac_ext <<_ACEOF 9578 /* end confdefs.h. */ 9579 $ac_includes_default 9580 int 9581 main () 9582 { 9583 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)]; 9584 test_array [0] = 0 9585 9586 ; 9587 return 0; 9588 } 9589 _ACEOF 9590 rm -f conftest.$ac_objext 9591 if { (ac_try="$ac_compile" 9592 case "(($ac_try" in 9593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9594 *) ac_try_echo=$ac_try;; 9595 esac 9596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9597 $as_echo "$ac_try_echo") >&5 9598 (eval "$ac_compile") 2>conftest.er1 9599 ac_status=$? 9600 grep -v '^ *+' conftest.er1 >conftest.err 9601 rm -f conftest.er1 9602 cat conftest.err >&5 9603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9604 (exit $ac_status); } && { 9605 test -z "$ac_cxx_werror_flag" || 9606 test ! -s conftest.err 9607 } && test -s conftest.$ac_objext; then 9608 ac_lo=$ac_mid; break 9609 else 9610 $as_echo "$as_me: failed program was:" >&5 9611 sed 's/^/| /' conftest.$ac_ext >&5 9612 9613 ac_hi=`expr '(' $ac_mid ')' - 1` 9614 if test $ac_mid -le $ac_hi; then 9615 ac_lo= ac_hi= 9616 break 9617 fi 9618 ac_mid=`expr 2 '*' $ac_mid` 9619 fi 9620 9621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9622 done 9623 else 9624 $as_echo "$as_me: failed program was:" >&5 9625 sed 's/^/| /' conftest.$ac_ext >&5 9626 9627 ac_lo= ac_hi= 9628 fi 9629 9630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9631 fi 9632 9633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9634 # Binary search between lo and hi bounds. 9635 while test "x$ac_lo" != "x$ac_hi"; do 9636 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9637 cat >conftest.$ac_ext <<_ACEOF 9638 /* confdefs.h. */ 9639 _ACEOF 9640 cat confdefs.h >>conftest.$ac_ext 9641 cat >>conftest.$ac_ext <<_ACEOF 9642 /* end confdefs.h. */ 9643 $ac_includes_default 9644 int 9645 main () 9646 { 9647 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; 9648 test_array [0] = 0 9649 9650 ; 9651 return 0; 9652 } 9653 _ACEOF 9654 rm -f conftest.$ac_objext 9655 if { (ac_try="$ac_compile" 9656 case "(($ac_try" in 9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9658 *) ac_try_echo=$ac_try;; 9659 esac 9660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9661 $as_echo "$ac_try_echo") >&5 9662 (eval "$ac_compile") 2>conftest.er1 9663 ac_status=$? 9664 grep -v '^ *+' conftest.er1 >conftest.err 9665 rm -f conftest.er1 9666 cat conftest.err >&5 9667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9668 (exit $ac_status); } && { 9669 test -z "$ac_cxx_werror_flag" || 9670 test ! -s conftest.err 9671 } && test -s conftest.$ac_objext; then 9672 ac_hi=$ac_mid 9673 else 9674 $as_echo "$as_me: failed program was:" >&5 9675 sed 's/^/| /' conftest.$ac_ext >&5 9676 9677 ac_lo=`expr '(' $ac_mid ')' + 1` 9678 fi 9679 9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9681 done 9682 case $ac_lo in 9683 ?*) ac_cv_sizeof_int=$ac_lo;; 9684 '') if test "$ac_cv_type_int" = yes; then 9685 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 8020 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 8021 8022 else 8023 if test "$ac_cv_type_int" = yes; then 8024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9686 8025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9687 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) 9688 See \`config.log' for more details." >&5 9689 $as_echo "$as_me: error: cannot compute sizeof (int) 9690 See \`config.log' for more details." >&2;} 9691 { (exit 77); exit 77; }; }; } 9692 else 9693 ac_cv_sizeof_int=0 9694 fi ;; 9695 esac 9696 else 9697 cat >conftest.$ac_ext <<_ACEOF 9698 /* confdefs.h. */ 9699 _ACEOF 9700 cat confdefs.h >>conftest.$ac_ext 9701 cat >>conftest.$ac_ext <<_ACEOF 9702 /* end confdefs.h. */ 9703 $ac_includes_default 9704 static long int longval () { return (long int) (sizeof (int)); } 9705 static unsigned long int ulongval () { return (long int) (sizeof (int)); } 9706 #include <stdio.h> 9707 #include <stdlib.h> 9708 int 9709 main () 9710 { 9711 9712 FILE *f = fopen ("conftest.val", "w"); 9713 if (! f) 9714 return 1; 9715 if (((long int) (sizeof (int))) < 0) 9716 { 9717 long int i = longval (); 9718 if (i != ((long int) (sizeof (int)))) 9719 return 1; 9720 fprintf (f, "%ld", i); 9721 } 9722 else 9723 { 9724 unsigned long int i = ulongval (); 9725 if (i != ((long int) (sizeof (int)))) 9726 return 1; 9727 fprintf (f, "%lu", i); 9728 } 9729 /* Do not output a trailing newline, as this causes \r\n confusion 9730 on some platforms. */ 9731 return ferror (f) || fclose (f) != 0; 9732 9733 ; 9734 return 0; 9735 } 9736 _ACEOF 9737 rm -f conftest$ac_exeext 9738 if { (ac_try="$ac_link" 9739 case "(($ac_try" in 9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9741 *) ac_try_echo=$ac_try;; 9742 esac 9743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9744 $as_echo "$ac_try_echo") >&5 9745 (eval "$ac_link") 2>&5 9746 ac_status=$? 9747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9749 { (case "(($ac_try" in 9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9751 *) ac_try_echo=$ac_try;; 9752 esac 9753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9754 $as_echo "$ac_try_echo") >&5 9755 (eval "$ac_try") 2>&5 9756 ac_status=$? 9757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9758 (exit $ac_status); }; }; then 9759 ac_cv_sizeof_int=`cat conftest.val` 9760 else 9761 $as_echo "$as_me: program exited with status $ac_status" >&5 9762 $as_echo "$as_me: failed program was:" >&5 9763 sed 's/^/| /' conftest.$ac_ext >&5 9764 9765 ( exit $ac_status ) 9766 if test "$ac_cv_type_int" = yes; then 9767 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 9768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9769 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) 9770 See \`config.log' for more details." >&5 9771 $as_echo "$as_me: error: cannot compute sizeof (int) 9772 See \`config.log' for more details." >&2;} 9773 { (exit 77); exit 77; }; }; } 8026 as_fn_error 77 "cannot compute sizeof (int) 8027 See \`config.log' for more details" "$LINENO" 5; } 9774 8028 else 9775 8029 ac_cv_sizeof_int=0 9776 8030 fi 9777 8031 fi 9778 rm -rf conftest.dSYM 9779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9780 fi 9781 rm -f conftest.val 9782 fi 9783 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 8032 8033 fi 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 9784 8035 $as_echo "$ac_cv_sizeof_int" >&6; } 9785 8036 … … 9795 8046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9796 8047 # This bug is HP SR number 8606223364. 9797 { $as_echo "$as_me:$ LINENO: checking size of long" >&58048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 9798 8049 $as_echo_n "checking size of long... " >&6; } 9799 if test "${ac_cv_sizeof_long+set}" = set; then8050 if ${ac_cv_sizeof_long+:} false; then : 9800 8051 $as_echo_n "(cached) " >&6 9801 8052 else 9802 if test "$cross_compiling" = yes; then 9803 # Depending upon the size, compute the lo and hi bounds. 9804 cat >conftest.$ac_ext <<_ACEOF 9805 /* confdefs.h. */ 9806 _ACEOF 9807 cat confdefs.h >>conftest.$ac_ext 9808 cat >>conftest.$ac_ext <<_ACEOF 9809 /* end confdefs.h. */ 9810 $ac_includes_default 9811 int 9812 main () 9813 { 9814 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)]; 9815 test_array [0] = 0 9816 9817 ; 9818 return 0; 9819 } 9820 _ACEOF 9821 rm -f conftest.$ac_objext 9822 if { (ac_try="$ac_compile" 9823 case "(($ac_try" in 9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9825 *) ac_try_echo=$ac_try;; 9826 esac 9827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9828 $as_echo "$ac_try_echo") >&5 9829 (eval "$ac_compile") 2>conftest.er1 9830 ac_status=$? 9831 grep -v '^ *+' conftest.er1 >conftest.err 9832 rm -f conftest.er1 9833 cat conftest.err >&5 9834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9835 (exit $ac_status); } && { 9836 test -z "$ac_cxx_werror_flag" || 9837 test ! -s conftest.err 9838 } && test -s conftest.$ac_objext; then 9839 ac_lo=0 ac_mid=0 9840 while :; do 9841 cat >conftest.$ac_ext <<_ACEOF 9842 /* confdefs.h. */ 9843 _ACEOF 9844 cat confdefs.h >>conftest.$ac_ext 9845 cat >>conftest.$ac_ext <<_ACEOF 9846 /* end confdefs.h. */ 9847 $ac_includes_default 9848 int 9849 main () 9850 { 9851 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; 9852 test_array [0] = 0 9853 9854 ; 9855 return 0; 9856 } 9857 _ACEOF 9858 rm -f conftest.$ac_objext 9859 if { (ac_try="$ac_compile" 9860 case "(($ac_try" in 9861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9862 *) ac_try_echo=$ac_try;; 9863 esac 9864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9865 $as_echo "$ac_try_echo") >&5 9866 (eval "$ac_compile") 2>conftest.er1 9867 ac_status=$? 9868 grep -v '^ *+' conftest.er1 >conftest.err 9869 rm -f conftest.er1 9870 cat conftest.err >&5 9871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9872 (exit $ac_status); } && { 9873 test -z "$ac_cxx_werror_flag" || 9874 test ! -s conftest.err 9875 } && test -s conftest.$ac_objext; then 9876 ac_hi=$ac_mid; break 9877 else 9878 $as_echo "$as_me: failed program was:" >&5 9879 sed 's/^/| /' conftest.$ac_ext >&5 9880 9881 ac_lo=`expr $ac_mid + 1` 9882 if test $ac_lo -le $ac_mid; then 9883 ac_lo= ac_hi= 9884 break 9885 fi 9886 ac_mid=`expr 2 '*' $ac_mid + 1` 9887 fi 9888 9889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9890 done 9891 else 9892 $as_echo "$as_me: failed program was:" >&5 9893 sed 's/^/| /' conftest.$ac_ext >&5 9894 9895 cat >conftest.$ac_ext <<_ACEOF 9896 /* confdefs.h. */ 9897 _ACEOF 9898 cat confdefs.h >>conftest.$ac_ext 9899 cat >>conftest.$ac_ext <<_ACEOF 9900 /* end confdefs.h. */ 9901 $ac_includes_default 9902 int 9903 main () 9904 { 9905 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)]; 9906 test_array [0] = 0 9907 9908 ; 9909 return 0; 9910 } 9911 _ACEOF 9912 rm -f conftest.$ac_objext 9913 if { (ac_try="$ac_compile" 9914 case "(($ac_try" in 9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9916 *) ac_try_echo=$ac_try;; 9917 esac 9918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9919 $as_echo "$ac_try_echo") >&5 9920 (eval "$ac_compile") 2>conftest.er1 9921 ac_status=$? 9922 grep -v '^ *+' conftest.er1 >conftest.err 9923 rm -f conftest.er1 9924 cat conftest.err >&5 9925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9926 (exit $ac_status); } && { 9927 test -z "$ac_cxx_werror_flag" || 9928 test ! -s conftest.err 9929 } && test -s conftest.$ac_objext; then 9930 ac_hi=-1 ac_mid=-1 9931 while :; do 9932 cat >conftest.$ac_ext <<_ACEOF 9933 /* confdefs.h. */ 9934 _ACEOF 9935 cat confdefs.h >>conftest.$ac_ext 9936 cat >>conftest.$ac_ext <<_ACEOF 9937 /* end confdefs.h. */ 9938 $ac_includes_default 9939 int 9940 main () 9941 { 9942 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)]; 9943 test_array [0] = 0 9944 9945 ; 9946 return 0; 9947 } 9948 _ACEOF 9949 rm -f conftest.$ac_objext 9950 if { (ac_try="$ac_compile" 9951 case "(($ac_try" in 9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9953 *) ac_try_echo=$ac_try;; 9954 esac 9955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9956 $as_echo "$ac_try_echo") >&5 9957 (eval "$ac_compile") 2>conftest.er1 9958 ac_status=$? 9959 grep -v '^ *+' conftest.er1 >conftest.err 9960 rm -f conftest.er1 9961 cat conftest.err >&5 9962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9963 (exit $ac_status); } && { 9964 test -z "$ac_cxx_werror_flag" || 9965 test ! -s conftest.err 9966 } && test -s conftest.$ac_objext; then 9967 ac_lo=$ac_mid; break 9968 else 9969 $as_echo "$as_me: failed program was:" >&5 9970 sed 's/^/| /' conftest.$ac_ext >&5 9971 9972 ac_hi=`expr '(' $ac_mid ')' - 1` 9973 if test $ac_mid -le $ac_hi; then 9974 ac_lo= ac_hi= 9975 break 9976 fi 9977 ac_mid=`expr 2 '*' $ac_mid` 9978 fi 9979 9980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9981 done 9982 else 9983 $as_echo "$as_me: failed program was:" >&5 9984 sed 's/^/| /' conftest.$ac_ext >&5 9985 9986 ac_lo= ac_hi= 9987 fi 9988 9989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9990 fi 9991 9992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9993 # Binary search between lo and hi bounds. 9994 while test "x$ac_lo" != "x$ac_hi"; do 9995 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9996 cat >conftest.$ac_ext <<_ACEOF 9997 /* confdefs.h. */ 9998 _ACEOF 9999 cat confdefs.h >>conftest.$ac_ext 10000 cat >>conftest.$ac_ext <<_ACEOF 10001 /* end confdefs.h. */ 10002 $ac_includes_default 10003 int 10004 main () 10005 { 10006 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; 10007 test_array [0] = 0 10008 10009 ; 10010 return 0; 10011 } 10012 _ACEOF 10013 rm -f conftest.$ac_objext 10014 if { (ac_try="$ac_compile" 10015 case "(($ac_try" in 10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10017 *) ac_try_echo=$ac_try;; 10018 esac 10019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10020 $as_echo "$ac_try_echo") >&5 10021 (eval "$ac_compile") 2>conftest.er1 10022 ac_status=$? 10023 grep -v '^ *+' conftest.er1 >conftest.err 10024 rm -f conftest.er1 10025 cat conftest.err >&5 10026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10027 (exit $ac_status); } && { 10028 test -z "$ac_cxx_werror_flag" || 10029 test ! -s conftest.err 10030 } && test -s conftest.$ac_objext; then 10031 ac_hi=$ac_mid 10032 else 10033 $as_echo "$as_me: failed program was:" >&5 10034 sed 's/^/| /' conftest.$ac_ext >&5 10035 10036 ac_lo=`expr '(' $ac_mid ')' + 1` 10037 fi 10038 10039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10040 done 10041 case $ac_lo in 10042 ?*) ac_cv_sizeof_long=$ac_lo;; 10043 '') if test "$ac_cv_type_long" = yes; then 10044 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 8053 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 8054 8055 else 8056 if test "$ac_cv_type_long" = yes; then 8057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10045 8058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10046 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) 10047 See \`config.log' for more details." >&5 10048 $as_echo "$as_me: error: cannot compute sizeof (long) 10049 See \`config.log' for more details." >&2;} 10050 { (exit 77); exit 77; }; }; } 10051 else 10052 ac_cv_sizeof_long=0 10053 fi ;; 10054 esac 10055 else 10056 cat >conftest.$ac_ext <<_ACEOF 10057 /* confdefs.h. */ 10058 _ACEOF 10059 cat confdefs.h >>conftest.$ac_ext 10060 cat >>conftest.$ac_ext <<_ACEOF 10061 /* end confdefs.h. */ 10062 $ac_includes_default 10063 static long int longval () { return (long int) (sizeof (long)); } 10064 static unsigned long int ulongval () { return (long int) (sizeof (long)); } 10065 #include <stdio.h> 10066 #include <stdlib.h> 10067 int 10068 main () 10069 { 10070 10071 FILE *f = fopen ("conftest.val", "w"); 10072 if (! f) 10073 return 1; 10074 if (((long int) (sizeof (long))) < 0) 10075 { 10076 long int i = longval (); 10077 if (i != ((long int) (sizeof (long)))) 10078 return 1; 10079 fprintf (f, "%ld", i); 10080 } 10081 else 10082 { 10083 unsigned long int i = ulongval (); 10084 if (i != ((long int) (sizeof (long)))) 10085 return 1; 10086 fprintf (f, "%lu", i); 10087 } 10088 /* Do not output a trailing newline, as this causes \r\n confusion 10089 on some platforms. */ 10090 return ferror (f) || fclose (f) != 0; 10091 10092 ; 10093 return 0; 10094 } 10095 _ACEOF 10096 rm -f conftest$ac_exeext 10097 if { (ac_try="$ac_link" 10098 case "(($ac_try" in 10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10100 *) ac_try_echo=$ac_try;; 10101 esac 10102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10103 $as_echo "$ac_try_echo") >&5 10104 (eval "$ac_link") 2>&5 10105 ac_status=$? 10106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10108 { (case "(($ac_try" in 10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10110 *) ac_try_echo=$ac_try;; 10111 esac 10112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10113 $as_echo "$ac_try_echo") >&5 10114 (eval "$ac_try") 2>&5 10115 ac_status=$? 10116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10117 (exit $ac_status); }; }; then 10118 ac_cv_sizeof_long=`cat conftest.val` 10119 else 10120 $as_echo "$as_me: program exited with status $ac_status" >&5 10121 $as_echo "$as_me: failed program was:" >&5 10122 sed 's/^/| /' conftest.$ac_ext >&5 10123 10124 ( exit $ac_status ) 10125 if test "$ac_cv_type_long" = yes; then 10126 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 10127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10128 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) 10129 See \`config.log' for more details." >&5 10130 $as_echo "$as_me: error: cannot compute sizeof (long) 10131 See \`config.log' for more details." >&2;} 10132 { (exit 77); exit 77; }; }; } 8059 as_fn_error 77 "cannot compute sizeof (long) 8060 See \`config.log' for more details" "$LINENO" 5; } 10133 8061 else 10134 8062 ac_cv_sizeof_long=0 10135 8063 fi 10136 8064 fi 10137 rm -rf conftest.dSYM 10138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10139 fi 10140 rm -f conftest.val 10141 fi 10142 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 8065 8066 fi 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 10143 8068 $as_echo "$ac_cv_sizeof_long" >&6; } 10144 8069 … … 10154 8079 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10155 8080 # This bug is HP SR number 8606223364. 10156 { $as_echo "$as_me:$ LINENO: checking size of long long" >&58081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 10157 8082 $as_echo_n "checking size of long long... " >&6; } 10158 if test "${ac_cv_sizeof_long_long+set}" = set; then8083 if ${ac_cv_sizeof_long_long+:} false; then : 10159 8084 $as_echo_n "(cached) " >&6 10160 8085 else 10161 if test "$cross_compiling" = yes; then 10162 # Depending upon the size, compute the lo and hi bounds. 10163 cat >conftest.$ac_ext <<_ACEOF 10164 /* confdefs.h. */ 10165 _ACEOF 10166 cat confdefs.h >>conftest.$ac_ext 10167 cat >>conftest.$ac_ext <<_ACEOF 10168 /* end confdefs.h. */ 10169 $ac_includes_default 10170 int 10171 main () 10172 { 10173 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)]; 10174 test_array [0] = 0 10175 10176 ; 10177 return 0; 10178 } 10179 _ACEOF 10180 rm -f conftest.$ac_objext 10181 if { (ac_try="$ac_compile" 10182 case "(($ac_try" in 10183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10184 *) ac_try_echo=$ac_try;; 10185 esac 10186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10187 $as_echo "$ac_try_echo") >&5 10188 (eval "$ac_compile") 2>conftest.er1 10189 ac_status=$? 10190 grep -v '^ *+' conftest.er1 >conftest.err 10191 rm -f conftest.er1 10192 cat conftest.err >&5 10193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10194 (exit $ac_status); } && { 10195 test -z "$ac_cxx_werror_flag" || 10196 test ! -s conftest.err 10197 } && test -s conftest.$ac_objext; then 10198 ac_lo=0 ac_mid=0 10199 while :; do 10200 cat >conftest.$ac_ext <<_ACEOF 10201 /* confdefs.h. */ 10202 _ACEOF 10203 cat confdefs.h >>conftest.$ac_ext 10204 cat >>conftest.$ac_ext <<_ACEOF 10205 /* end confdefs.h. */ 10206 $ac_includes_default 10207 int 10208 main () 10209 { 10210 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; 10211 test_array [0] = 0 10212 10213 ; 10214 return 0; 10215 } 10216 _ACEOF 10217 rm -f conftest.$ac_objext 10218 if { (ac_try="$ac_compile" 10219 case "(($ac_try" in 10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10221 *) ac_try_echo=$ac_try;; 10222 esac 10223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10224 $as_echo "$ac_try_echo") >&5 10225 (eval "$ac_compile") 2>conftest.er1 10226 ac_status=$? 10227 grep -v '^ *+' conftest.er1 >conftest.err 10228 rm -f conftest.er1 10229 cat conftest.err >&5 10230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10231 (exit $ac_status); } && { 10232 test -z "$ac_cxx_werror_flag" || 10233 test ! -s conftest.err 10234 } && test -s conftest.$ac_objext; then 10235 ac_hi=$ac_mid; break 10236 else 10237 $as_echo "$as_me: failed program was:" >&5 10238 sed 's/^/| /' conftest.$ac_ext >&5 10239 10240 ac_lo=`expr $ac_mid + 1` 10241 if test $ac_lo -le $ac_mid; then 10242 ac_lo= ac_hi= 10243 break 10244 fi 10245 ac_mid=`expr 2 '*' $ac_mid + 1` 10246 fi 10247 10248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10249 done 10250 else 10251 $as_echo "$as_me: failed program was:" >&5 10252 sed 's/^/| /' conftest.$ac_ext >&5 10253 10254 cat >conftest.$ac_ext <<_ACEOF 10255 /* confdefs.h. */ 10256 _ACEOF 10257 cat confdefs.h >>conftest.$ac_ext 10258 cat >>conftest.$ac_ext <<_ACEOF 10259 /* end confdefs.h. */ 10260 $ac_includes_default 10261 int 10262 main () 10263 { 10264 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)]; 10265 test_array [0] = 0 10266 10267 ; 10268 return 0; 10269 } 10270 _ACEOF 10271 rm -f conftest.$ac_objext 10272 if { (ac_try="$ac_compile" 10273 case "(($ac_try" in 10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10275 *) ac_try_echo=$ac_try;; 10276 esac 10277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10278 $as_echo "$ac_try_echo") >&5 10279 (eval "$ac_compile") 2>conftest.er1 10280 ac_status=$? 10281 grep -v '^ *+' conftest.er1 >conftest.err 10282 rm -f conftest.er1 10283 cat conftest.err >&5 10284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10285 (exit $ac_status); } && { 10286 test -z "$ac_cxx_werror_flag" || 10287 test ! -s conftest.err 10288 } && test -s conftest.$ac_objext; then 10289 ac_hi=-1 ac_mid=-1 10290 while :; do 10291 cat >conftest.$ac_ext <<_ACEOF 10292 /* confdefs.h. */ 10293 _ACEOF 10294 cat confdefs.h >>conftest.$ac_ext 10295 cat >>conftest.$ac_ext <<_ACEOF 10296 /* end confdefs.h. */ 10297 $ac_includes_default 10298 int 10299 main () 10300 { 10301 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)]; 10302 test_array [0] = 0 10303 10304 ; 10305 return 0; 10306 } 10307 _ACEOF 10308 rm -f conftest.$ac_objext 10309 if { (ac_try="$ac_compile" 10310 case "(($ac_try" in 10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10312 *) ac_try_echo=$ac_try;; 10313 esac 10314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10315 $as_echo "$ac_try_echo") >&5 10316 (eval "$ac_compile") 2>conftest.er1 10317 ac_status=$? 10318 grep -v '^ *+' conftest.er1 >conftest.err 10319 rm -f conftest.er1 10320 cat conftest.err >&5 10321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10322 (exit $ac_status); } && { 10323 test -z "$ac_cxx_werror_flag" || 10324 test ! -s conftest.err 10325 } && test -s conftest.$ac_objext; then 10326 ac_lo=$ac_mid; break 10327 else 10328 $as_echo "$as_me: failed program was:" >&5 10329 sed 's/^/| /' conftest.$ac_ext >&5 10330 10331 ac_hi=`expr '(' $ac_mid ')' - 1` 10332 if test $ac_mid -le $ac_hi; then 10333 ac_lo= ac_hi= 10334 break 10335 fi 10336 ac_mid=`expr 2 '*' $ac_mid` 10337 fi 10338 10339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10340 done 10341 else 10342 $as_echo "$as_me: failed program was:" >&5 10343 sed 's/^/| /' conftest.$ac_ext >&5 10344 10345 ac_lo= ac_hi= 10346 fi 10347 10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10349 fi 10350 10351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10352 # Binary search between lo and hi bounds. 10353 while test "x$ac_lo" != "x$ac_hi"; do 10354 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10355 cat >conftest.$ac_ext <<_ACEOF 10356 /* confdefs.h. */ 10357 _ACEOF 10358 cat confdefs.h >>conftest.$ac_ext 10359 cat >>conftest.$ac_ext <<_ACEOF 10360 /* end confdefs.h. */ 10361 $ac_includes_default 10362 int 10363 main () 10364 { 10365 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; 10366 test_array [0] = 0 10367 10368 ; 10369 return 0; 10370 } 10371 _ACEOF 10372 rm -f conftest.$ac_objext 10373 if { (ac_try="$ac_compile" 10374 case "(($ac_try" in 10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10376 *) ac_try_echo=$ac_try;; 10377 esac 10378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10379 $as_echo "$ac_try_echo") >&5 10380 (eval "$ac_compile") 2>conftest.er1 10381 ac_status=$? 10382 grep -v '^ *+' conftest.er1 >conftest.err 10383 rm -f conftest.er1 10384 cat conftest.err >&5 10385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10386 (exit $ac_status); } && { 10387 test -z "$ac_cxx_werror_flag" || 10388 test ! -s conftest.err 10389 } && test -s conftest.$ac_objext; then 10390 ac_hi=$ac_mid 10391 else 10392 $as_echo "$as_me: failed program was:" >&5 10393 sed 's/^/| /' conftest.$ac_ext >&5 10394 10395 ac_lo=`expr '(' $ac_mid ')' + 1` 10396 fi 10397 10398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10399 done 10400 case $ac_lo in 10401 ?*) ac_cv_sizeof_long_long=$ac_lo;; 10402 '') if test "$ac_cv_type_long_long" = yes; then 10403 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 8086 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 8087 8088 else 8089 if test "$ac_cv_type_long_long" = yes; then 8090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10404 8091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10405 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 10406 See \`config.log' for more details." >&5 10407 $as_echo "$as_me: error: cannot compute sizeof (long long) 10408 See \`config.log' for more details." >&2;} 10409 { (exit 77); exit 77; }; }; } 10410 else 10411 ac_cv_sizeof_long_long=0 10412 fi ;; 10413 esac 10414 else 10415 cat >conftest.$ac_ext <<_ACEOF 10416 /* confdefs.h. */ 10417 _ACEOF 10418 cat confdefs.h >>conftest.$ac_ext 10419 cat >>conftest.$ac_ext <<_ACEOF 10420 /* end confdefs.h. */ 10421 $ac_includes_default 10422 static long int longval () { return (long int) (sizeof (long long)); } 10423 static unsigned long int ulongval () { return (long int) (sizeof (long long)); } 10424 #include <stdio.h> 10425 #include <stdlib.h> 10426 int 10427 main () 10428 { 10429 10430 FILE *f = fopen ("conftest.val", "w"); 10431 if (! f) 10432 return 1; 10433 if (((long int) (sizeof (long long))) < 0) 10434 { 10435 long int i = longval (); 10436 if (i != ((long int) (sizeof (long long)))) 10437 return 1; 10438 fprintf (f, "%ld", i); 10439 } 10440 else 10441 { 10442 unsigned long int i = ulongval (); 10443 if (i != ((long int) (sizeof (long long)))) 10444 return 1; 10445 fprintf (f, "%lu", i); 10446 } 10447 /* Do not output a trailing newline, as this causes \r\n confusion 10448 on some platforms. */ 10449 return ferror (f) || fclose (f) != 0; 10450 10451 ; 10452 return 0; 10453 } 10454 _ACEOF 10455 rm -f conftest$ac_exeext 10456 if { (ac_try="$ac_link" 10457 case "(($ac_try" in 10458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10459 *) ac_try_echo=$ac_try;; 10460 esac 10461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10462 $as_echo "$ac_try_echo") >&5 10463 (eval "$ac_link") 2>&5 10464 ac_status=$? 10465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10467 { (case "(($ac_try" in 10468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10469 *) ac_try_echo=$ac_try;; 10470 esac 10471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10472 $as_echo "$ac_try_echo") >&5 10473 (eval "$ac_try") 2>&5 10474 ac_status=$? 10475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10476 (exit $ac_status); }; }; then 10477 ac_cv_sizeof_long_long=`cat conftest.val` 10478 else 10479 $as_echo "$as_me: program exited with status $ac_status" >&5 10480 $as_echo "$as_me: failed program was:" >&5 10481 sed 's/^/| /' conftest.$ac_ext >&5 10482 10483 ( exit $ac_status ) 10484 if test "$ac_cv_type_long_long" = yes; then 10485 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 10486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10487 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 10488 See \`config.log' for more details." >&5 10489 $as_echo "$as_me: error: cannot compute sizeof (long long) 10490 See \`config.log' for more details." >&2;} 10491 { (exit 77); exit 77; }; }; } 8092 as_fn_error 77 "cannot compute sizeof (long long) 8093 See \`config.log' for more details" "$LINENO" 5; } 10492 8094 else 10493 8095 ac_cv_sizeof_long_long=0 10494 8096 fi 10495 8097 fi 10496 rm -rf conftest.dSYM 10497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10498 fi 10499 rm -f conftest.val 10500 fi 10501 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 8098 8099 fi 8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 10502 8101 $as_echo "$ac_cv_sizeof_long_long" >&6; } 10503 8102 … … 10513 8112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10514 8113 # This bug is HP SR number 8606223364. 10515 { $as_echo "$as_me:$ LINENO: checking size of void *" >&58114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 10516 8115 $as_echo_n "checking size of void *... " >&6; } 10517 if test "${ac_cv_sizeof_void_p+set}" = set; then8116 if ${ac_cv_sizeof_void_p+:} false; then : 10518 8117 $as_echo_n "(cached) " >&6 10519 8118 else 10520 if test "$cross_compiling" = yes; then 10521 # Depending upon the size, compute the lo and hi bounds. 10522 cat >conftest.$ac_ext <<_ACEOF 10523 /* confdefs.h. */ 10524 _ACEOF 10525 cat confdefs.h >>conftest.$ac_ext 10526 cat >>conftest.$ac_ext <<_ACEOF 10527 /* end confdefs.h. */ 10528 $ac_includes_default 10529 int 10530 main () 10531 { 10532 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)]; 10533 test_array [0] = 0 10534 10535 ; 10536 return 0; 10537 } 10538 _ACEOF 10539 rm -f conftest.$ac_objext 10540 if { (ac_try="$ac_compile" 10541 case "(($ac_try" in 10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10543 *) ac_try_echo=$ac_try;; 10544 esac 10545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10546 $as_echo "$ac_try_echo") >&5 10547 (eval "$ac_compile") 2>conftest.er1 10548 ac_status=$? 10549 grep -v '^ *+' conftest.er1 >conftest.err 10550 rm -f conftest.er1 10551 cat conftest.err >&5 10552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10553 (exit $ac_status); } && { 10554 test -z "$ac_cxx_werror_flag" || 10555 test ! -s conftest.err 10556 } && test -s conftest.$ac_objext; then 10557 ac_lo=0 ac_mid=0 10558 while :; do 10559 cat >conftest.$ac_ext <<_ACEOF 10560 /* confdefs.h. */ 10561 _ACEOF 10562 cat confdefs.h >>conftest.$ac_ext 10563 cat >>conftest.$ac_ext <<_ACEOF 10564 /* end confdefs.h. */ 10565 $ac_includes_default 10566 int 10567 main () 10568 { 10569 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)]; 10570 test_array [0] = 0 10571 10572 ; 10573 return 0; 10574 } 10575 _ACEOF 10576 rm -f conftest.$ac_objext 10577 if { (ac_try="$ac_compile" 10578 case "(($ac_try" in 10579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10580 *) ac_try_echo=$ac_try;; 10581 esac 10582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10583 $as_echo "$ac_try_echo") >&5 10584 (eval "$ac_compile") 2>conftest.er1 10585 ac_status=$? 10586 grep -v '^ *+' conftest.er1 >conftest.err 10587 rm -f conftest.er1 10588 cat conftest.err >&5 10589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10590 (exit $ac_status); } && { 10591 test -z "$ac_cxx_werror_flag" || 10592 test ! -s conftest.err 10593 } && test -s conftest.$ac_objext; then 10594 ac_hi=$ac_mid; break 10595 else 10596 $as_echo "$as_me: failed program was:" >&5 10597 sed 's/^/| /' conftest.$ac_ext >&5 10598 10599 ac_lo=`expr $ac_mid + 1` 10600 if test $ac_lo -le $ac_mid; then 10601 ac_lo= ac_hi= 10602 break 10603 fi 10604 ac_mid=`expr 2 '*' $ac_mid + 1` 10605 fi 10606 10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10608 done 10609 else 10610 $as_echo "$as_me: failed program was:" >&5 10611 sed 's/^/| /' conftest.$ac_ext >&5 10612 10613 cat >conftest.$ac_ext <<_ACEOF 10614 /* confdefs.h. */ 10615 _ACEOF 10616 cat confdefs.h >>conftest.$ac_ext 10617 cat >>conftest.$ac_ext <<_ACEOF 10618 /* end confdefs.h. */ 10619 $ac_includes_default 10620 int 10621 main () 10622 { 10623 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)]; 10624 test_array [0] = 0 10625 10626 ; 10627 return 0; 10628 } 10629 _ACEOF 10630 rm -f conftest.$ac_objext 10631 if { (ac_try="$ac_compile" 10632 case "(($ac_try" in 10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10634 *) ac_try_echo=$ac_try;; 10635 esac 10636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10637 $as_echo "$ac_try_echo") >&5 10638 (eval "$ac_compile") 2>conftest.er1 10639 ac_status=$? 10640 grep -v '^ *+' conftest.er1 >conftest.err 10641 rm -f conftest.er1 10642 cat conftest.err >&5 10643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10644 (exit $ac_status); } && { 10645 test -z "$ac_cxx_werror_flag" || 10646 test ! -s conftest.err 10647 } && test -s conftest.$ac_objext; then 10648 ac_hi=-1 ac_mid=-1 10649 while :; do 10650 cat >conftest.$ac_ext <<_ACEOF 10651 /* confdefs.h. */ 10652 _ACEOF 10653 cat confdefs.h >>conftest.$ac_ext 10654 cat >>conftest.$ac_ext <<_ACEOF 10655 /* end confdefs.h. */ 10656 $ac_includes_default 10657 int 10658 main () 10659 { 10660 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)]; 10661 test_array [0] = 0 10662 10663 ; 10664 return 0; 10665 } 10666 _ACEOF 10667 rm -f conftest.$ac_objext 10668 if { (ac_try="$ac_compile" 10669 case "(($ac_try" in 10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10671 *) ac_try_echo=$ac_try;; 10672 esac 10673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10674 $as_echo "$ac_try_echo") >&5 10675 (eval "$ac_compile") 2>conftest.er1 10676 ac_status=$? 10677 grep -v '^ *+' conftest.er1 >conftest.err 10678 rm -f conftest.er1 10679 cat conftest.err >&5 10680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10681 (exit $ac_status); } && { 10682 test -z "$ac_cxx_werror_flag" || 10683 test ! -s conftest.err 10684 } && test -s conftest.$ac_objext; then 10685 ac_lo=$ac_mid; break 10686 else 10687 $as_echo "$as_me: failed program was:" >&5 10688 sed 's/^/| /' conftest.$ac_ext >&5 10689 10690 ac_hi=`expr '(' $ac_mid ')' - 1` 10691 if test $ac_mid -le $ac_hi; then 10692 ac_lo= ac_hi= 10693 break 10694 fi 10695 ac_mid=`expr 2 '*' $ac_mid` 10696 fi 10697 10698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10699 done 10700 else 10701 $as_echo "$as_me: failed program was:" >&5 10702 sed 's/^/| /' conftest.$ac_ext >&5 10703 10704 ac_lo= ac_hi= 10705 fi 10706 10707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10708 fi 10709 10710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10711 # Binary search between lo and hi bounds. 10712 while test "x$ac_lo" != "x$ac_hi"; do 10713 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10714 cat >conftest.$ac_ext <<_ACEOF 10715 /* confdefs.h. */ 10716 _ACEOF 10717 cat confdefs.h >>conftest.$ac_ext 10718 cat >>conftest.$ac_ext <<_ACEOF 10719 /* end confdefs.h. */ 10720 $ac_includes_default 10721 int 10722 main () 10723 { 10724 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)]; 10725 test_array [0] = 0 10726 10727 ; 10728 return 0; 10729 } 10730 _ACEOF 10731 rm -f conftest.$ac_objext 10732 if { (ac_try="$ac_compile" 10733 case "(($ac_try" in 10734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10735 *) ac_try_echo=$ac_try;; 10736 esac 10737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10738 $as_echo "$ac_try_echo") >&5 10739 (eval "$ac_compile") 2>conftest.er1 10740 ac_status=$? 10741 grep -v '^ *+' conftest.er1 >conftest.err 10742 rm -f conftest.er1 10743 cat conftest.err >&5 10744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10745 (exit $ac_status); } && { 10746 test -z "$ac_cxx_werror_flag" || 10747 test ! -s conftest.err 10748 } && test -s conftest.$ac_objext; then 10749 ac_hi=$ac_mid 10750 else 10751 $as_echo "$as_me: failed program was:" >&5 10752 sed 's/^/| /' conftest.$ac_ext >&5 10753 10754 ac_lo=`expr '(' $ac_mid ')' + 1` 10755 fi 10756 10757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10758 done 10759 case $ac_lo in 10760 ?*) ac_cv_sizeof_void_p=$ac_lo;; 10761 '') if test "$ac_cv_type_void_p" = yes; then 10762 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 8119 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 8120 8121 else 8122 if test "$ac_cv_type_void_p" = yes; then 8123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10763 8124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10764 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *) 10765 See \`config.log' for more details." >&5 10766 $as_echo "$as_me: error: cannot compute sizeof (void *) 10767 See \`config.log' for more details." >&2;} 10768 { (exit 77); exit 77; }; }; } 10769 else 10770 ac_cv_sizeof_void_p=0 10771 fi ;; 10772 esac 10773 else 10774 cat >conftest.$ac_ext <<_ACEOF 10775 /* confdefs.h. */ 10776 _ACEOF 10777 cat confdefs.h >>conftest.$ac_ext 10778 cat >>conftest.$ac_ext <<_ACEOF 10779 /* end confdefs.h. */ 10780 $ac_includes_default 10781 static long int longval () { return (long int) (sizeof (void *)); } 10782 static unsigned long int ulongval () { return (long int) (sizeof (void *)); } 10783 #include <stdio.h> 10784 #include <stdlib.h> 10785 int 10786 main () 10787 { 10788 10789 FILE *f = fopen ("conftest.val", "w"); 10790 if (! f) 10791 return 1; 10792 if (((long int) (sizeof (void *))) < 0) 10793 { 10794 long int i = longval (); 10795 if (i != ((long int) (sizeof (void *)))) 10796 return 1; 10797 fprintf (f, "%ld", i); 10798 } 10799 else 10800 { 10801 unsigned long int i = ulongval (); 10802 if (i != ((long int) (sizeof (void *)))) 10803 return 1; 10804 fprintf (f, "%lu", i); 10805 } 10806 /* Do not output a trailing newline, as this causes \r\n confusion 10807 on some platforms. */ 10808 return ferror (f) || fclose (f) != 0; 10809 10810 ; 10811 return 0; 10812 } 10813 _ACEOF 10814 rm -f conftest$ac_exeext 10815 if { (ac_try="$ac_link" 10816 case "(($ac_try" in 10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10818 *) ac_try_echo=$ac_try;; 10819 esac 10820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10821 $as_echo "$ac_try_echo") >&5 10822 (eval "$ac_link") 2>&5 10823 ac_status=$? 10824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10826 { (case "(($ac_try" in 10827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10828 *) ac_try_echo=$ac_try;; 10829 esac 10830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10831 $as_echo "$ac_try_echo") >&5 10832 (eval "$ac_try") 2>&5 10833 ac_status=$? 10834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10835 (exit $ac_status); }; }; then 10836 ac_cv_sizeof_void_p=`cat conftest.val` 10837 else 10838 $as_echo "$as_me: program exited with status $ac_status" >&5 10839 $as_echo "$as_me: failed program was:" >&5 10840 sed 's/^/| /' conftest.$ac_ext >&5 10841 10842 ( exit $ac_status ) 10843 if test "$ac_cv_type_void_p" = yes; then 10844 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 10845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10846 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *) 10847 See \`config.log' for more details." >&5 10848 $as_echo "$as_me: error: cannot compute sizeof (void *) 10849 See \`config.log' for more details." >&2;} 10850 { (exit 77); exit 77; }; }; } 8125 as_fn_error 77 "cannot compute sizeof (void *) 8126 See \`config.log' for more details" "$LINENO" 5; } 10851 8127 else 10852 8128 ac_cv_sizeof_void_p=0 10853 8129 fi 10854 8130 fi 10855 rm -rf conftest.dSYM 10856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10857 fi 10858 rm -f conftest.val 10859 fi 10860 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 8131 8132 fi 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 10861 8134 $as_echo "$ac_cv_sizeof_void_p" >&6; } 10862 8135 … … 10872 8145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10873 8146 # This bug is HP SR number 8606223364. 10874 { $as_echo "$as_me:$ LINENO: checking size of float" >&58147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 10875 8148 $as_echo_n "checking size of float... " >&6; } 10876 if test "${ac_cv_sizeof_float+set}" = set; then8149 if ${ac_cv_sizeof_float+:} false; then : 10877 8150 $as_echo_n "(cached) " >&6 10878 8151 else 10879 if test "$cross_compiling" = yes; then 10880 # Depending upon the size, compute the lo and hi bounds. 10881 cat >conftest.$ac_ext <<_ACEOF 10882 /* confdefs.h. */ 10883 _ACEOF 10884 cat confdefs.h >>conftest.$ac_ext 10885 cat >>conftest.$ac_ext <<_ACEOF 10886 /* end confdefs.h. */ 10887 $ac_includes_default 10888 int 10889 main () 10890 { 10891 static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= 0)]; 10892 test_array [0] = 0 10893 10894 ; 10895 return 0; 10896 } 10897 _ACEOF 10898 rm -f conftest.$ac_objext 10899 if { (ac_try="$ac_compile" 10900 case "(($ac_try" in 10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10902 *) ac_try_echo=$ac_try;; 10903 esac 10904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10905 $as_echo "$ac_try_echo") >&5 10906 (eval "$ac_compile") 2>conftest.er1 10907 ac_status=$? 10908 grep -v '^ *+' conftest.er1 >conftest.err 10909 rm -f conftest.er1 10910 cat conftest.err >&5 10911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10912 (exit $ac_status); } && { 10913 test -z "$ac_cxx_werror_flag" || 10914 test ! -s conftest.err 10915 } && test -s conftest.$ac_objext; then 10916 ac_lo=0 ac_mid=0 10917 while :; do 10918 cat >conftest.$ac_ext <<_ACEOF 10919 /* confdefs.h. */ 10920 _ACEOF 10921 cat confdefs.h >>conftest.$ac_ext 10922 cat >>conftest.$ac_ext <<_ACEOF 10923 /* end confdefs.h. */ 10924 $ac_includes_default 10925 int 10926 main () 10927 { 10928 static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)]; 10929 test_array [0] = 0 10930 10931 ; 10932 return 0; 10933 } 10934 _ACEOF 10935 rm -f conftest.$ac_objext 10936 if { (ac_try="$ac_compile" 10937 case "(($ac_try" in 10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10939 *) ac_try_echo=$ac_try;; 10940 esac 10941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10942 $as_echo "$ac_try_echo") >&5 10943 (eval "$ac_compile") 2>conftest.er1 10944 ac_status=$? 10945 grep -v '^ *+' conftest.er1 >conftest.err 10946 rm -f conftest.er1 10947 cat conftest.err >&5 10948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10949 (exit $ac_status); } && { 10950 test -z "$ac_cxx_werror_flag" || 10951 test ! -s conftest.err 10952 } && test -s conftest.$ac_objext; then 10953 ac_hi=$ac_mid; break 10954 else 10955 $as_echo "$as_me: failed program was:" >&5 10956 sed 's/^/| /' conftest.$ac_ext >&5 10957 10958 ac_lo=`expr $ac_mid + 1` 10959 if test $ac_lo -le $ac_mid; then 10960 ac_lo= ac_hi= 10961 break 10962 fi 10963 ac_mid=`expr 2 '*' $ac_mid + 1` 10964 fi 10965 10966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10967 done 10968 else 10969 $as_echo "$as_me: failed program was:" >&5 10970 sed 's/^/| /' conftest.$ac_ext >&5 10971 10972 cat >conftest.$ac_ext <<_ACEOF 10973 /* confdefs.h. */ 10974 _ACEOF 10975 cat confdefs.h >>conftest.$ac_ext 10976 cat >>conftest.$ac_ext <<_ACEOF 10977 /* end confdefs.h. */ 10978 $ac_includes_default 10979 int 10980 main () 10981 { 10982 static int test_array [1 - 2 * !(((long int) (sizeof (float))) < 0)]; 10983 test_array [0] = 0 10984 10985 ; 10986 return 0; 10987 } 10988 _ACEOF 10989 rm -f conftest.$ac_objext 10990 if { (ac_try="$ac_compile" 10991 case "(($ac_try" in 10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10993 *) ac_try_echo=$ac_try;; 10994 esac 10995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10996 $as_echo "$ac_try_echo") >&5 10997 (eval "$ac_compile") 2>conftest.er1 10998 ac_status=$? 10999 grep -v '^ *+' conftest.er1 >conftest.err 11000 rm -f conftest.er1 11001 cat conftest.err >&5 11002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11003 (exit $ac_status); } && { 11004 test -z "$ac_cxx_werror_flag" || 11005 test ! -s conftest.err 11006 } && test -s conftest.$ac_objext; then 11007 ac_hi=-1 ac_mid=-1 11008 while :; do 11009 cat >conftest.$ac_ext <<_ACEOF 11010 /* confdefs.h. */ 11011 _ACEOF 11012 cat confdefs.h >>conftest.$ac_ext 11013 cat >>conftest.$ac_ext <<_ACEOF 11014 /* end confdefs.h. */ 11015 $ac_includes_default 11016 int 11017 main () 11018 { 11019 static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= $ac_mid)]; 11020 test_array [0] = 0 11021 11022 ; 11023 return 0; 11024 } 11025 _ACEOF 11026 rm -f conftest.$ac_objext 11027 if { (ac_try="$ac_compile" 11028 case "(($ac_try" in 11029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11030 *) ac_try_echo=$ac_try;; 11031 esac 11032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11033 $as_echo "$ac_try_echo") >&5 11034 (eval "$ac_compile") 2>conftest.er1 11035 ac_status=$? 11036 grep -v '^ *+' conftest.er1 >conftest.err 11037 rm -f conftest.er1 11038 cat conftest.err >&5 11039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11040 (exit $ac_status); } && { 11041 test -z "$ac_cxx_werror_flag" || 11042 test ! -s conftest.err 11043 } && test -s conftest.$ac_objext; then 11044 ac_lo=$ac_mid; break 11045 else 11046 $as_echo "$as_me: failed program was:" >&5 11047 sed 's/^/| /' conftest.$ac_ext >&5 11048 11049 ac_hi=`expr '(' $ac_mid ')' - 1` 11050 if test $ac_mid -le $ac_hi; then 11051 ac_lo= ac_hi= 11052 break 11053 fi 11054 ac_mid=`expr 2 '*' $ac_mid` 11055 fi 11056 11057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11058 done 11059 else 11060 $as_echo "$as_me: failed program was:" >&5 11061 sed 's/^/| /' conftest.$ac_ext >&5 11062 11063 ac_lo= ac_hi= 11064 fi 11065 11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11067 fi 11068 11069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11070 # Binary search between lo and hi bounds. 11071 while test "x$ac_lo" != "x$ac_hi"; do 11072 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 11073 cat >conftest.$ac_ext <<_ACEOF 11074 /* confdefs.h. */ 11075 _ACEOF 11076 cat confdefs.h >>conftest.$ac_ext 11077 cat >>conftest.$ac_ext <<_ACEOF 11078 /* end confdefs.h. */ 11079 $ac_includes_default 11080 int 11081 main () 11082 { 11083 static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)]; 11084 test_array [0] = 0 11085 11086 ; 11087 return 0; 11088 } 11089 _ACEOF 11090 rm -f conftest.$ac_objext 11091 if { (ac_try="$ac_compile" 11092 case "(($ac_try" in 11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11094 *) ac_try_echo=$ac_try;; 11095 esac 11096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11097 $as_echo "$ac_try_echo") >&5 11098 (eval "$ac_compile") 2>conftest.er1 11099 ac_status=$? 11100 grep -v '^ *+' conftest.er1 >conftest.err 11101 rm -f conftest.er1 11102 cat conftest.err >&5 11103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11104 (exit $ac_status); } && { 11105 test -z "$ac_cxx_werror_flag" || 11106 test ! -s conftest.err 11107 } && test -s conftest.$ac_objext; then 11108 ac_hi=$ac_mid 11109 else 11110 $as_echo "$as_me: failed program was:" >&5 11111 sed 's/^/| /' conftest.$ac_ext >&5 11112 11113 ac_lo=`expr '(' $ac_mid ')' + 1` 11114 fi 11115 11116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11117 done 11118 case $ac_lo in 11119 ?*) ac_cv_sizeof_float=$ac_lo;; 11120 '') if test "$ac_cv_type_float" = yes; then 11121 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 8152 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 8153 8154 else 8155 if test "$ac_cv_type_float" = yes; then 8156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11122 8157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11123 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float) 11124 See \`config.log' for more details." >&5 11125 $as_echo "$as_me: error: cannot compute sizeof (float) 11126 See \`config.log' for more details." >&2;} 11127 { (exit 77); exit 77; }; }; } 11128 else 11129 ac_cv_sizeof_float=0 11130 fi ;; 11131 esac 11132 else 11133 cat >conftest.$ac_ext <<_ACEOF 11134 /* confdefs.h. */ 11135 _ACEOF 11136 cat confdefs.h >>conftest.$ac_ext 11137 cat >>conftest.$ac_ext <<_ACEOF 11138 /* end confdefs.h. */ 11139 $ac_includes_default 11140 static long int longval () { return (long int) (sizeof (float)); } 11141 static unsigned long int ulongval () { return (long int) (sizeof (float)); } 11142 #include <stdio.h> 11143 #include <stdlib.h> 11144 int 11145 main () 11146 { 11147 11148 FILE *f = fopen ("conftest.val", "w"); 11149 if (! f) 11150 return 1; 11151 if (((long int) (sizeof (float))) < 0) 11152 { 11153 long int i = longval (); 11154 if (i != ((long int) (sizeof (float)))) 11155 return 1; 11156 fprintf (f, "%ld", i); 11157 } 11158 else 11159 { 11160 unsigned long int i = ulongval (); 11161 if (i != ((long int) (sizeof (float)))) 11162 return 1; 11163 fprintf (f, "%lu", i); 11164 } 11165 /* Do not output a trailing newline, as this causes \r\n confusion 11166 on some platforms. */ 11167 return ferror (f) || fclose (f) != 0; 11168 11169 ; 11170 return 0; 11171 } 11172 _ACEOF 11173 rm -f conftest$ac_exeext 11174 if { (ac_try="$ac_link" 11175 case "(($ac_try" in 11176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11177 *) ac_try_echo=$ac_try;; 11178 esac 11179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11180 $as_echo "$ac_try_echo") >&5 11181 (eval "$ac_link") 2>&5 11182 ac_status=$? 11183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11185 { (case "(($ac_try" in 11186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11187 *) ac_try_echo=$ac_try;; 11188 esac 11189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11190 $as_echo "$ac_try_echo") >&5 11191 (eval "$ac_try") 2>&5 11192 ac_status=$? 11193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11194 (exit $ac_status); }; }; then 11195 ac_cv_sizeof_float=`cat conftest.val` 11196 else 11197 $as_echo "$as_me: program exited with status $ac_status" >&5 11198 $as_echo "$as_me: failed program was:" >&5 11199 sed 's/^/| /' conftest.$ac_ext >&5 11200 11201 ( exit $ac_status ) 11202 if test "$ac_cv_type_float" = yes; then 11203 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 11204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11205 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float) 11206 See \`config.log' for more details." >&5 11207 $as_echo "$as_me: error: cannot compute sizeof (float) 11208 See \`config.log' for more details." >&2;} 11209 { (exit 77); exit 77; }; }; } 8158 as_fn_error 77 "cannot compute sizeof (float) 8159 See \`config.log' for more details" "$LINENO" 5; } 11210 8160 else 11211 8161 ac_cv_sizeof_float=0 11212 8162 fi 11213 8163 fi 11214 rm -rf conftest.dSYM 11215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11216 fi 11217 rm -f conftest.val 11218 fi 11219 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 8164 8165 fi 8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 11220 8167 $as_echo "$ac_cv_sizeof_float" >&6; } 11221 8168 … … 11275 8222 11276 8223 RP_DIR="" 11277 { $as_echo "$as_me:$ LINENO: checking for rappture" >&58224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rappture" >&5 11278 8225 $as_echo_n "checking for rappture... " >&6; } 11279 8226 if test "$with_rappture" == "yes" ; then … … 11284 8231 RP_INC_SPEC="-I$dir/include -I$dir/include/rappture2" 11285 8232 RP_LIB_DIR="$dir/lib" 11286 { $as_echo "$as_me:$ LINENO: result: $dir" >&58233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dir" >&5 11287 8234 $as_echo "$dir" >&6; } 11288 8235 break … … 11291 8238 else 11292 8239 if test ! -d "$with_rappture" ; then 11293 { { $as_echo "$as_me:$LINENO: error: --with-rappture: no such directory $with_rappture" >&5 11294 $as_echo "$as_me: error: --with-rappture: no such directory $with_rappture" >&2;} 11295 { (exit 1); exit 1; }; } 8240 as_fn_error $? "--with-rappture: no such directory $with_rappture" "$LINENO" 5 11296 8241 fi 11297 8242 RP_DIR=$with_rappture … … 11300 8245 fi 11301 8246 if test "x${RP_DIR}" = "x" ; then 11302 { { $as_echo "$as_me:$LINENO: error: cannot find rappture.h and librappture2.a, try using --with-rappture" >&5 11303 $as_echo "$as_me: error: cannot find rappture.h and librappture2.a, try using --with-rappture" >&2;} 11304 { (exit 1); exit 1; }; } 11305 else 11306 { $as_echo "$as_me:$LINENO: result: $with_rappture" >&5 8247 as_fn_error $? "cannot find rappture.h and librappture2.a, try using --with-rappture" "$LINENO" 5 8248 else 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_rappture" >&5 11307 8250 $as_echo "$with_rappture" >&6; } 11308 8251 fi … … 11339 8282 CPPFLAGS=$VTK_INC_SPEC 11340 8283 11341 11342 8284 for ac_header in vtkSmartPointer.h 11343 do 11344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11346 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11347 $as_echo_n "checking for $ac_header... " >&6; } 11348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11349 $as_echo_n "(cached) " >&6 11350 fi 11351 ac_res=`eval 'as_val=${'$as_ac_Header'} 11352 $as_echo "$as_val"'` 11353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11354 $as_echo "$ac_res" >&6; } 11355 else 11356 # Is the header compilable? 11357 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 11358 $as_echo_n "checking $ac_header usability... " >&6; } 11359 cat >conftest.$ac_ext <<_ACEOF 11360 /* confdefs.h. */ 11361 _ACEOF 11362 cat confdefs.h >>conftest.$ac_ext 11363 cat >>conftest.$ac_ext <<_ACEOF 11364 /* end confdefs.h. */ 11365 $ac_includes_default 11366 #include <$ac_header> 11367 _ACEOF 11368 rm -f conftest.$ac_objext 11369 if { (ac_try="$ac_compile" 11370 case "(($ac_try" in 11371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11372 *) ac_try_echo=$ac_try;; 11373 esac 11374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11375 $as_echo "$ac_try_echo") >&5 11376 (eval "$ac_compile") 2>conftest.er1 11377 ac_status=$? 11378 grep -v '^ *+' conftest.er1 >conftest.err 11379 rm -f conftest.er1 11380 cat conftest.err >&5 11381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11382 (exit $ac_status); } && { 11383 test -z "$ac_cxx_werror_flag" || 11384 test ! -s conftest.err 11385 } && test -s conftest.$ac_objext; then 11386 ac_header_compiler=yes 11387 else 11388 $as_echo "$as_me: failed program was:" >&5 11389 sed 's/^/| /' conftest.$ac_ext >&5 11390 11391 ac_header_compiler=no 11392 fi 11393 11394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11395 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11396 $as_echo "$ac_header_compiler" >&6; } 11397 11398 # Is the header present? 11399 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 11400 $as_echo_n "checking $ac_header presence... " >&6; } 11401 cat >conftest.$ac_ext <<_ACEOF 11402 /* confdefs.h. */ 11403 _ACEOF 11404 cat confdefs.h >>conftest.$ac_ext 11405 cat >>conftest.$ac_ext <<_ACEOF 11406 /* end confdefs.h. */ 11407 #include <$ac_header> 11408 _ACEOF 11409 if { (ac_try="$ac_cpp conftest.$ac_ext" 11410 case "(($ac_try" in 11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11412 *) ac_try_echo=$ac_try;; 11413 esac 11414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11415 $as_echo "$ac_try_echo") >&5 11416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11417 ac_status=$? 11418 grep -v '^ *+' conftest.er1 >conftest.err 11419 rm -f conftest.er1 11420 cat conftest.err >&5 11421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11422 (exit $ac_status); } >/dev/null && { 11423 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 11424 test ! -s conftest.err 11425 }; then 11426 ac_header_preproc=yes 11427 else 11428 $as_echo "$as_me: failed program was:" >&5 11429 sed 's/^/| /' conftest.$ac_ext >&5 11430 11431 ac_header_preproc=no 11432 fi 11433 11434 rm -f conftest.err conftest.$ac_ext 11435 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11436 $as_echo "$ac_header_preproc" >&6; } 11437 11438 # So? What about this header? 11439 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 11440 yes:no: ) 11441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11442 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11444 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11445 ac_header_preproc=yes 11446 ;; 11447 no:yes:* ) 11448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11449 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11451 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11453 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11455 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11457 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11459 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11460 ( cat <<\_ASBOX 11461 ## ----------------------------------- ## 11462 ## Report this to rappture@nanohub.org ## 11463 ## ----------------------------------- ## 11464 _ASBOX 11465 ) | sed "s/^/$as_me: WARNING: /" >&2 11466 ;; 11467 esac 11468 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11469 $as_echo_n "checking for $ac_header... " >&6; } 11470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11471 $as_echo_n "(cached) " >&6 11472 else 11473 eval "$as_ac_Header=\$ac_header_preproc" 11474 fi 11475 ac_res=`eval 'as_val=${'$as_ac_Header'} 11476 $as_echo "$as_val"'` 11477 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11478 $as_echo "$ac_res" >&6; } 11479 11480 fi 11481 as_val=`eval 'as_val=${'$as_ac_Header'} 11482 $as_echo "$as_val"'` 11483 if test "x$as_val" = x""yes; then 8285 do : 8286 ac_fn_cxx_check_header_mongrel "$LINENO" "vtkSmartPointer.h" "ac_cv_header_vtkSmartPointer_h" "$ac_includes_default" 8287 if test "x$ac_cv_header_vtkSmartPointer_h" = xyes; then : 8288 cat >>confdefs.h <<_ACEOF 8289 #define HAVE_VTKSMARTPOINTER_H 1 8290 _ACEOF 8291 8292 else 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find vtkSmartPointer.h" >&5 8294 $as_echo "$as_me: WARNING: cannot find vtkSmartPointer.h" >&2;} 8295 fi 8296 8297 done 8298 8299 CPPFLAGS=$save_CPPFLAGS 8300 8301 ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glui.h" "ac_cv_header_GL_glui_h" "$ac_includes_default" 8302 if test "x$ac_cv_header_GL_glui_h" = xyes; then : 8303 8304 fi 8305 8306 8307 ac_fn_cxx_check_header_mongrel "$LINENO" "glui.h" "ac_cv_header_glui_h" "$ac_includes_default" 8308 if test "x$ac_cv_header_glui_h" = xyes; then : 8309 8310 fi 8311 8312 8313 ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default" 8314 if test "x$ac_cv_header_GL_glut_h" = xyes; then : 8315 8316 fi 8317 8318 8319 ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glew.h" "ac_cv_header_GL_glew_h" "$ac_includes_default" 8320 if test "x$ac_cv_header_GL_glew_h" = xyes; then : 8321 8322 fi 8323 8324 8325 8326 for ac_header in stdio.h unistd.h stdlib.h string.h sys/types.h 8327 do : 8328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8329 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8330 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11484 8331 cat >>confdefs.h <<_ACEOF 11485 8332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11486 8333 _ACEOF 11487 8334 11488 else11489 { $as_echo "$as_me:$LINENO: WARNING: cannot find vtkSmartPointer.h" >&511490 $as_echo "$as_me: WARNING: cannot find vtkSmartPointer.h" >&2;}11491 8335 fi 11492 8336 11493 8337 done 11494 8338 11495 CPPFLAGS=$save_CPPFLAGS 11496 11497 if test "${ac_cv_header_GL_glui_h+set}" = set; then 11498 { $as_echo "$as_me:$LINENO: checking for GL/glui.h" >&5 11499 $as_echo_n "checking for GL/glui.h... " >&6; } 11500 if test "${ac_cv_header_GL_glui_h+set}" = set; then 11501 $as_echo_n "(cached) " >&6 11502 fi 11503 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glui_h" >&5 11504 $as_echo "$ac_cv_header_GL_glui_h" >&6; } 11505 else 11506 # Is the header compilable? 11507 { $as_echo "$as_me:$LINENO: checking GL/glui.h usability" >&5 11508 $as_echo_n "checking GL/glui.h usability... " >&6; } 11509 cat >conftest.$ac_ext <<_ACEOF 11510 /* confdefs.h. */ 11511 _ACEOF 11512 cat confdefs.h >>conftest.$ac_ext 11513 cat >>conftest.$ac_ext <<_ACEOF 11514 /* end confdefs.h. */ 11515 $ac_includes_default 11516 #include <GL/glui.h> 11517 _ACEOF 11518 rm -f conftest.$ac_objext 11519 if { (ac_try="$ac_compile" 11520 case "(($ac_try" in 11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11522 *) ac_try_echo=$ac_try;; 11523 esac 11524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11525 $as_echo "$ac_try_echo") >&5 11526 (eval "$ac_compile") 2>conftest.er1 11527 ac_status=$? 11528 grep -v '^ *+' conftest.er1 >conftest.err 11529 rm -f conftest.er1 11530 cat conftest.err >&5 11531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11532 (exit $ac_status); } && { 11533 test -z "$ac_cxx_werror_flag" || 11534 test ! -s conftest.err 11535 } && test -s conftest.$ac_objext; then 11536 ac_header_compiler=yes 11537 else 11538 $as_echo "$as_me: failed program was:" >&5 11539 sed 's/^/| /' conftest.$ac_ext >&5 11540 11541 ac_header_compiler=no 11542 fi 11543 11544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11545 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11546 $as_echo "$ac_header_compiler" >&6; } 11547 11548 # Is the header present? 11549 { $as_echo "$as_me:$LINENO: checking GL/glui.h presence" >&5 11550 $as_echo_n "checking GL/glui.h presence... " >&6; } 11551 cat >conftest.$ac_ext <<_ACEOF 11552 /* confdefs.h. */ 11553 _ACEOF 11554 cat confdefs.h >>conftest.$ac_ext 11555 cat >>conftest.$ac_ext <<_ACEOF 11556 /* end confdefs.h. */ 11557 #include <GL/glui.h> 11558 _ACEOF 11559 if { (ac_try="$ac_cpp conftest.$ac_ext" 11560 case "(($ac_try" in 11561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11562 *) ac_try_echo=$ac_try;; 11563 esac 11564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11565 $as_echo "$ac_try_echo") >&5 11566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11567 ac_status=$? 11568 grep -v '^ *+' conftest.er1 >conftest.err 11569 rm -f conftest.er1 11570 cat conftest.err >&5 11571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11572 (exit $ac_status); } >/dev/null && { 11573 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 11574 test ! -s conftest.err 11575 }; then 11576 ac_header_preproc=yes 11577 else 11578 $as_echo "$as_me: failed program was:" >&5 11579 sed 's/^/| /' conftest.$ac_ext >&5 11580 11581 ac_header_preproc=no 11582 fi 11583 11584 rm -f conftest.err conftest.$ac_ext 11585 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11586 $as_echo "$ac_header_preproc" >&6; } 11587 11588 # So? What about this header? 11589 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 11590 yes:no: ) 11591 { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: accepted by the compiler, rejected by the preprocessor!" >&5 11592 $as_echo "$as_me: WARNING: GL/glui.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11593 { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: proceeding with the compiler's result" >&5 11594 $as_echo "$as_me: WARNING: GL/glui.h: proceeding with the compiler's result" >&2;} 11595 ac_header_preproc=yes 11596 ;; 11597 no:yes:* ) 11598 { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: present but cannot be compiled" >&5 11599 $as_echo "$as_me: WARNING: GL/glui.h: present but cannot be compiled" >&2;} 11600 { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: check for missing prerequisite headers?" >&5 11601 $as_echo "$as_me: WARNING: GL/glui.h: check for missing prerequisite headers?" >&2;} 11602 { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: see the Autoconf documentation" >&5 11603 $as_echo "$as_me: WARNING: GL/glui.h: see the Autoconf documentation" >&2;} 11604 { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: section \"Present But Cannot Be Compiled\"" >&5 11605 $as_echo "$as_me: WARNING: GL/glui.h: section \"Present But Cannot Be Compiled\"" >&2;} 11606 { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: proceeding with the preprocessor's result" >&5 11607 $as_echo "$as_me: WARNING: GL/glui.h: proceeding with the preprocessor's result" >&2;} 11608 { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: in the future, the compiler will take precedence" >&5 11609 $as_echo "$as_me: WARNING: GL/glui.h: in the future, the compiler will take precedence" >&2;} 11610 ( cat <<\_ASBOX 11611 ## ----------------------------------- ## 11612 ## Report this to rappture@nanohub.org ## 11613 ## ----------------------------------- ## 11614 _ASBOX 11615 ) | sed "s/^/$as_me: WARNING: /" >&2 11616 ;; 11617 esac 11618 { $as_echo "$as_me:$LINENO: checking for GL/glui.h" >&5 11619 $as_echo_n "checking for GL/glui.h... " >&6; } 11620 if test "${ac_cv_header_GL_glui_h+set}" = set; then 11621 $as_echo_n "(cached) " >&6 11622 else 11623 ac_cv_header_GL_glui_h=$ac_header_preproc 11624 fi 11625 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glui_h" >&5 11626 $as_echo "$ac_cv_header_GL_glui_h" >&6; } 11627 11628 fi 11629 11630 11631 if test "${ac_cv_header_glui_h+set}" = set; then 11632 { $as_echo "$as_me:$LINENO: checking for glui.h" >&5 11633 $as_echo_n "checking for glui.h... " >&6; } 11634 if test "${ac_cv_header_glui_h+set}" = set; then 11635 $as_echo_n "(cached) " >&6 11636 fi 11637 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glui_h" >&5 11638 $as_echo "$ac_cv_header_glui_h" >&6; } 11639 else 11640 # Is the header compilable? 11641 { $as_echo "$as_me:$LINENO: checking glui.h usability" >&5 11642 $as_echo_n "checking glui.h usability... " >&6; } 11643 cat >conftest.$ac_ext <<_ACEOF 11644 /* confdefs.h. */ 11645 _ACEOF 11646 cat confdefs.h >>conftest.$ac_ext 11647 cat >>conftest.$ac_ext <<_ACEOF 11648 /* end confdefs.h. */ 11649 $ac_includes_default 11650 #include <glui.h> 11651 _ACEOF 11652 rm -f conftest.$ac_objext 11653 if { (ac_try="$ac_compile" 11654 case "(($ac_try" in 11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11656 *) ac_try_echo=$ac_try;; 11657 esac 11658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11659 $as_echo "$ac_try_echo") >&5 11660 (eval "$ac_compile") 2>conftest.er1 11661 ac_status=$? 11662 grep -v '^ *+' conftest.er1 >conftest.err 11663 rm -f conftest.er1 11664 cat conftest.err >&5 11665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11666 (exit $ac_status); } && { 11667 test -z "$ac_cxx_werror_flag" || 11668 test ! -s conftest.err 11669 } && test -s conftest.$ac_objext; then 11670 ac_header_compiler=yes 11671 else 11672 $as_echo "$as_me: failed program was:" >&5 11673 sed 's/^/| /' conftest.$ac_ext >&5 11674 11675 ac_header_compiler=no 11676 fi 11677 11678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11679 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11680 $as_echo "$ac_header_compiler" >&6; } 11681 11682 # Is the header present? 11683 { $as_echo "$as_me:$LINENO: checking glui.h presence" >&5 11684 $as_echo_n "checking glui.h presence... " >&6; } 11685 cat >conftest.$ac_ext <<_ACEOF 11686 /* confdefs.h. */ 11687 _ACEOF 11688 cat confdefs.h >>conftest.$ac_ext 11689 cat >>conftest.$ac_ext <<_ACEOF 11690 /* end confdefs.h. */ 11691 #include <glui.h> 11692 _ACEOF 11693 if { (ac_try="$ac_cpp conftest.$ac_ext" 11694 case "(($ac_try" in 11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11696 *) ac_try_echo=$ac_try;; 11697 esac 11698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11699 $as_echo "$ac_try_echo") >&5 11700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11701 ac_status=$? 11702 grep -v '^ *+' conftest.er1 >conftest.err 11703 rm -f conftest.er1 11704 cat conftest.err >&5 11705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11706 (exit $ac_status); } >/dev/null && { 11707 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 11708 test ! -s conftest.err 11709 }; then 11710 ac_header_preproc=yes 11711 else 11712 $as_echo "$as_me: failed program was:" >&5 11713 sed 's/^/| /' conftest.$ac_ext >&5 11714 11715 ac_header_preproc=no 11716 fi 11717 11718 rm -f conftest.err conftest.$ac_ext 11719 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11720 $as_echo "$ac_header_preproc" >&6; } 11721 11722 # So? What about this header? 11723 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 11724 yes:no: ) 11725 { $as_echo "$as_me:$LINENO: WARNING: glui.h: accepted by the compiler, rejected by the preprocessor!" >&5 11726 $as_echo "$as_me: WARNING: glui.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11727 { $as_echo "$as_me:$LINENO: WARNING: glui.h: proceeding with the compiler's result" >&5 11728 $as_echo "$as_me: WARNING: glui.h: proceeding with the compiler's result" >&2;} 11729 ac_header_preproc=yes 11730 ;; 11731 no:yes:* ) 11732 { $as_echo "$as_me:$LINENO: WARNING: glui.h: present but cannot be compiled" >&5 11733 $as_echo "$as_me: WARNING: glui.h: present but cannot be compiled" >&2;} 11734 { $as_echo "$as_me:$LINENO: WARNING: glui.h: check for missing prerequisite headers?" >&5 11735 $as_echo "$as_me: WARNING: glui.h: check for missing prerequisite headers?" >&2;} 11736 { $as_echo "$as_me:$LINENO: WARNING: glui.h: see the Autoconf documentation" >&5 11737 $as_echo "$as_me: WARNING: glui.h: see the Autoconf documentation" >&2;} 11738 { $as_echo "$as_me:$LINENO: WARNING: glui.h: section \"Present But Cannot Be Compiled\"" >&5 11739 $as_echo "$as_me: WARNING: glui.h: section \"Present But Cannot Be Compiled\"" >&2;} 11740 { $as_echo "$as_me:$LINENO: WARNING: glui.h: proceeding with the preprocessor's result" >&5 11741 $as_echo "$as_me: WARNING: glui.h: proceeding with the preprocessor's result" >&2;} 11742 { $as_echo "$as_me:$LINENO: WARNING: glui.h: in the future, the compiler will take precedence" >&5 11743 $as_echo "$as_me: WARNING: glui.h: in the future, the compiler will take precedence" >&2;} 11744 ( cat <<\_ASBOX 11745 ## ----------------------------------- ## 11746 ## Report this to rappture@nanohub.org ## 11747 ## ----------------------------------- ## 11748 _ASBOX 11749 ) | sed "s/^/$as_me: WARNING: /" >&2 11750 ;; 11751 esac 11752 { $as_echo "$as_me:$LINENO: checking for glui.h" >&5 11753 $as_echo_n "checking for glui.h... " >&6; } 11754 if test "${ac_cv_header_glui_h+set}" = set; then 11755 $as_echo_n "(cached) " >&6 11756 else 11757 ac_cv_header_glui_h=$ac_header_preproc 11758 fi 11759 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glui_h" >&5 11760 $as_echo "$ac_cv_header_glui_h" >&6; } 11761 11762 fi 11763 11764 11765 if test "${ac_cv_header_GL_glut_h+set}" = set; then 11766 { $as_echo "$as_me:$LINENO: checking for GL/glut.h" >&5 11767 $as_echo_n "checking for GL/glut.h... " >&6; } 11768 if test "${ac_cv_header_GL_glut_h+set}" = set; then 11769 $as_echo_n "(cached) " >&6 11770 fi 11771 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5 11772 $as_echo "$ac_cv_header_GL_glut_h" >&6; } 11773 else 11774 # Is the header compilable? 11775 { $as_echo "$as_me:$LINENO: checking GL/glut.h usability" >&5 11776 $as_echo_n "checking GL/glut.h usability... " >&6; } 11777 cat >conftest.$ac_ext <<_ACEOF 11778 /* confdefs.h. */ 11779 _ACEOF 11780 cat confdefs.h >>conftest.$ac_ext 11781 cat >>conftest.$ac_ext <<_ACEOF 11782 /* end confdefs.h. */ 11783 $ac_includes_default 11784 #include <GL/glut.h> 11785 _ACEOF 11786 rm -f conftest.$ac_objext 11787 if { (ac_try="$ac_compile" 11788 case "(($ac_try" in 11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11790 *) ac_try_echo=$ac_try;; 11791 esac 11792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11793 $as_echo "$ac_try_echo") >&5 11794 (eval "$ac_compile") 2>conftest.er1 11795 ac_status=$? 11796 grep -v '^ *+' conftest.er1 >conftest.err 11797 rm -f conftest.er1 11798 cat conftest.err >&5 11799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11800 (exit $ac_status); } && { 11801 test -z "$ac_cxx_werror_flag" || 11802 test ! -s conftest.err 11803 } && test -s conftest.$ac_objext; then 11804 ac_header_compiler=yes 11805 else 11806 $as_echo "$as_me: failed program was:" >&5 11807 sed 's/^/| /' conftest.$ac_ext >&5 11808 11809 ac_header_compiler=no 11810 fi 11811 11812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11813 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11814 $as_echo "$ac_header_compiler" >&6; } 11815 11816 # Is the header present? 11817 { $as_echo "$as_me:$LINENO: checking GL/glut.h presence" >&5 11818 $as_echo_n "checking GL/glut.h presence... " >&6; } 11819 cat >conftest.$ac_ext <<_ACEOF 11820 /* confdefs.h. */ 11821 _ACEOF 11822 cat confdefs.h >>conftest.$ac_ext 11823 cat >>conftest.$ac_ext <<_ACEOF 11824 /* end confdefs.h. */ 11825 #include <GL/glut.h> 11826 _ACEOF 11827 if { (ac_try="$ac_cpp conftest.$ac_ext" 11828 case "(($ac_try" in 11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11830 *) ac_try_echo=$ac_try;; 11831 esac 11832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11833 $as_echo "$ac_try_echo") >&5 11834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11835 ac_status=$? 11836 grep -v '^ *+' conftest.er1 >conftest.err 11837 rm -f conftest.er1 11838 cat conftest.err >&5 11839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11840 (exit $ac_status); } >/dev/null && { 11841 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 11842 test ! -s conftest.err 11843 }; then 11844 ac_header_preproc=yes 11845 else 11846 $as_echo "$as_me: failed program was:" >&5 11847 sed 's/^/| /' conftest.$ac_ext >&5 11848 11849 ac_header_preproc=no 11850 fi 11851 11852 rm -f conftest.err conftest.$ac_ext 11853 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11854 $as_echo "$ac_header_preproc" >&6; } 11855 11856 # So? What about this header? 11857 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 11858 yes:no: ) 11859 { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&5 11860 $as_echo "$as_me: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11861 { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the compiler's result" >&5 11862 $as_echo "$as_me: WARNING: GL/glut.h: proceeding with the compiler's result" >&2;} 11863 ac_header_preproc=yes 11864 ;; 11865 no:yes:* ) 11866 { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: present but cannot be compiled" >&5 11867 $as_echo "$as_me: WARNING: GL/glut.h: present but cannot be compiled" >&2;} 11868 { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: check for missing prerequisite headers?" >&5 11869 $as_echo "$as_me: WARNING: GL/glut.h: check for missing prerequisite headers?" >&2;} 11870 { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: see the Autoconf documentation" >&5 11871 $as_echo "$as_me: WARNING: GL/glut.h: see the Autoconf documentation" >&2;} 11872 { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: section \"Present But Cannot Be Compiled\"" >&5 11873 $as_echo "$as_me: WARNING: GL/glut.h: section \"Present But Cannot Be Compiled\"" >&2;} 11874 { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&5 11875 $as_echo "$as_me: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&2;} 11876 { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&5 11877 $as_echo "$as_me: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&2;} 11878 ( cat <<\_ASBOX 11879 ## ----------------------------------- ## 11880 ## Report this to rappture@nanohub.org ## 11881 ## ----------------------------------- ## 11882 _ASBOX 11883 ) | sed "s/^/$as_me: WARNING: /" >&2 11884 ;; 11885 esac 11886 { $as_echo "$as_me:$LINENO: checking for GL/glut.h" >&5 11887 $as_echo_n "checking for GL/glut.h... " >&6; } 11888 if test "${ac_cv_header_GL_glut_h+set}" = set; then 11889 $as_echo_n "(cached) " >&6 11890 else 11891 ac_cv_header_GL_glut_h=$ac_header_preproc 11892 fi 11893 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5 11894 $as_echo "$ac_cv_header_GL_glut_h" >&6; } 11895 11896 fi 11897 11898 11899 if test "${ac_cv_header_GL_glew_h+set}" = set; then 11900 { $as_echo "$as_me:$LINENO: checking for GL/glew.h" >&5 11901 $as_echo_n "checking for GL/glew.h... " >&6; } 11902 if test "${ac_cv_header_GL_glew_h+set}" = set; then 11903 $as_echo_n "(cached) " >&6 11904 fi 11905 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glew_h" >&5 11906 $as_echo "$ac_cv_header_GL_glew_h" >&6; } 11907 else 11908 # Is the header compilable? 11909 { $as_echo "$as_me:$LINENO: checking GL/glew.h usability" >&5 11910 $as_echo_n "checking GL/glew.h usability... " >&6; } 11911 cat >conftest.$ac_ext <<_ACEOF 11912 /* confdefs.h. */ 11913 _ACEOF 11914 cat confdefs.h >>conftest.$ac_ext 11915 cat >>conftest.$ac_ext <<_ACEOF 11916 /* end confdefs.h. */ 11917 $ac_includes_default 11918 #include <GL/glew.h> 11919 _ACEOF 11920 rm -f conftest.$ac_objext 11921 if { (ac_try="$ac_compile" 11922 case "(($ac_try" in 11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11924 *) ac_try_echo=$ac_try;; 11925 esac 11926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11927 $as_echo "$ac_try_echo") >&5 11928 (eval "$ac_compile") 2>conftest.er1 11929 ac_status=$? 11930 grep -v '^ *+' conftest.er1 >conftest.err 11931 rm -f conftest.er1 11932 cat conftest.err >&5 11933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11934 (exit $ac_status); } && { 11935 test -z "$ac_cxx_werror_flag" || 11936 test ! -s conftest.err 11937 } && test -s conftest.$ac_objext; then 11938 ac_header_compiler=yes 11939 else 11940 $as_echo "$as_me: failed program was:" >&5 11941 sed 's/^/| /' conftest.$ac_ext >&5 11942 11943 ac_header_compiler=no 11944 fi 11945 11946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11947 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11948 $as_echo "$ac_header_compiler" >&6; } 11949 11950 # Is the header present? 11951 { $as_echo "$as_me:$LINENO: checking GL/glew.h presence" >&5 11952 $as_echo_n "checking GL/glew.h presence... " >&6; } 11953 cat >conftest.$ac_ext <<_ACEOF 11954 /* confdefs.h. */ 11955 _ACEOF 11956 cat confdefs.h >>conftest.$ac_ext 11957 cat >>conftest.$ac_ext <<_ACEOF 11958 /* end confdefs.h. */ 11959 #include <GL/glew.h> 11960 _ACEOF 11961 if { (ac_try="$ac_cpp conftest.$ac_ext" 11962 case "(($ac_try" in 11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11964 *) ac_try_echo=$ac_try;; 11965 esac 11966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11967 $as_echo "$ac_try_echo") >&5 11968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11969 ac_status=$? 11970 grep -v '^ *+' conftest.er1 >conftest.err 11971 rm -f conftest.er1 11972 cat conftest.err >&5 11973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11974 (exit $ac_status); } >/dev/null && { 11975 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 11976 test ! -s conftest.err 11977 }; then 11978 ac_header_preproc=yes 11979 else 11980 $as_echo "$as_me: failed program was:" >&5 11981 sed 's/^/| /' conftest.$ac_ext >&5 11982 11983 ac_header_preproc=no 11984 fi 11985 11986 rm -f conftest.err conftest.$ac_ext 11987 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11988 $as_echo "$ac_header_preproc" >&6; } 11989 11990 # So? What about this header? 11991 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 11992 yes:no: ) 11993 { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: accepted by the compiler, rejected by the preprocessor!" >&5 11994 $as_echo "$as_me: WARNING: GL/glew.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11995 { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: proceeding with the compiler's result" >&5 11996 $as_echo "$as_me: WARNING: GL/glew.h: proceeding with the compiler's result" >&2;} 11997 ac_header_preproc=yes 11998 ;; 11999 no:yes:* ) 12000 { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: present but cannot be compiled" >&5 12001 $as_echo "$as_me: WARNING: GL/glew.h: present but cannot be compiled" >&2;} 12002 { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: check for missing prerequisite headers?" >&5 12003 $as_echo "$as_me: WARNING: GL/glew.h: check for missing prerequisite headers?" >&2;} 12004 { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: see the Autoconf documentation" >&5 12005 $as_echo "$as_me: WARNING: GL/glew.h: see the Autoconf documentation" >&2;} 12006 { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: section \"Present But Cannot Be Compiled\"" >&5 12007 $as_echo "$as_me: WARNING: GL/glew.h: section \"Present But Cannot Be Compiled\"" >&2;} 12008 { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: proceeding with the preprocessor's result" >&5 12009 $as_echo "$as_me: WARNING: GL/glew.h: proceeding with the preprocessor's result" >&2;} 12010 { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: in the future, the compiler will take precedence" >&5 12011 $as_echo "$as_me: WARNING: GL/glew.h: in the future, the compiler will take precedence" >&2;} 12012 ( cat <<\_ASBOX 12013 ## ----------------------------------- ## 12014 ## Report this to rappture@nanohub.org ## 12015 ## ----------------------------------- ## 12016 _ASBOX 12017 ) | sed "s/^/$as_me: WARNING: /" >&2 12018 ;; 12019 esac 12020 { $as_echo "$as_me:$LINENO: checking for GL/glew.h" >&5 12021 $as_echo_n "checking for GL/glew.h... " >&6; } 12022 if test "${ac_cv_header_GL_glew_h+set}" = set; then 12023 $as_echo_n "(cached) " >&6 12024 else 12025 ac_cv_header_GL_glew_h=$ac_header_preproc 12026 fi 12027 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glew_h" >&5 12028 $as_echo "$ac_cv_header_GL_glew_h" >&6; } 12029 12030 fi 12031 12032 12033 12034 12035 12036 12037 12038 12039 for ac_header in stdio.h unistd.h stdlib.h string.h sys/types.h 12040 do 12041 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12043 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12044 $as_echo_n "checking for $ac_header... " >&6; } 12045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12046 $as_echo_n "(cached) " >&6 12047 fi 12048 ac_res=`eval 'as_val=${'$as_ac_Header'} 12049 $as_echo "$as_val"'` 12050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12051 $as_echo "$ac_res" >&6; } 12052 else 12053 # Is the header compilable? 12054 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12055 $as_echo_n "checking $ac_header usability... " >&6; } 12056 cat >conftest.$ac_ext <<_ACEOF 12057 /* confdefs.h. */ 12058 _ACEOF 12059 cat confdefs.h >>conftest.$ac_ext 12060 cat >>conftest.$ac_ext <<_ACEOF 12061 /* end confdefs.h. */ 12062 $ac_includes_default 12063 #include <$ac_header> 12064 _ACEOF 12065 rm -f conftest.$ac_objext 12066 if { (ac_try="$ac_compile" 12067 case "(($ac_try" in 12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12069 *) ac_try_echo=$ac_try;; 12070 esac 12071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12072 $as_echo "$ac_try_echo") >&5 12073 (eval "$ac_compile") 2>conftest.er1 12074 ac_status=$? 12075 grep -v '^ *+' conftest.er1 >conftest.err 12076 rm -f conftest.er1 12077 cat conftest.err >&5 12078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12079 (exit $ac_status); } && { 12080 test -z "$ac_cxx_werror_flag" || 12081 test ! -s conftest.err 12082 } && test -s conftest.$ac_objext; then 12083 ac_header_compiler=yes 12084 else 12085 $as_echo "$as_me: failed program was:" >&5 12086 sed 's/^/| /' conftest.$ac_ext >&5 12087 12088 ac_header_compiler=no 12089 fi 12090 12091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12092 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12093 $as_echo "$ac_header_compiler" >&6; } 12094 12095 # Is the header present? 12096 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12097 $as_echo_n "checking $ac_header presence... " >&6; } 12098 cat >conftest.$ac_ext <<_ACEOF 12099 /* confdefs.h. */ 12100 _ACEOF 12101 cat confdefs.h >>conftest.$ac_ext 12102 cat >>conftest.$ac_ext <<_ACEOF 12103 /* end confdefs.h. */ 12104 #include <$ac_header> 12105 _ACEOF 12106 if { (ac_try="$ac_cpp conftest.$ac_ext" 12107 case "(($ac_try" in 12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12109 *) ac_try_echo=$ac_try;; 12110 esac 12111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12112 $as_echo "$ac_try_echo") >&5 12113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12114 ac_status=$? 12115 grep -v '^ *+' conftest.er1 >conftest.err 12116 rm -f conftest.er1 12117 cat conftest.err >&5 12118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12119 (exit $ac_status); } >/dev/null && { 12120 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 12121 test ! -s conftest.err 12122 }; then 12123 ac_header_preproc=yes 12124 else 12125 $as_echo "$as_me: failed program was:" >&5 12126 sed 's/^/| /' conftest.$ac_ext >&5 12127 12128 ac_header_preproc=no 12129 fi 12130 12131 rm -f conftest.err conftest.$ac_ext 12132 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12133 $as_echo "$ac_header_preproc" >&6; } 12134 12135 # So? What about this header? 12136 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 12137 yes:no: ) 12138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12139 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12141 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12142 ac_header_preproc=yes 12143 ;; 12144 no:yes:* ) 12145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12146 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12148 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12150 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12152 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12154 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12156 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12157 ( cat <<\_ASBOX 12158 ## ----------------------------------- ## 12159 ## Report this to rappture@nanohub.org ## 12160 ## ----------------------------------- ## 12161 _ASBOX 12162 ) | sed "s/^/$as_me: WARNING: /" >&2 12163 ;; 12164 esac 12165 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12166 $as_echo_n "checking for $ac_header... " >&6; } 12167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12168 $as_echo_n "(cached) " >&6 12169 else 12170 eval "$as_ac_Header=\$ac_header_preproc" 12171 fi 12172 ac_res=`eval 'as_val=${'$as_ac_Header'} 12173 $as_echo "$as_val"'` 12174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12175 $as_echo "$ac_res" >&6; } 12176 12177 fi 12178 as_val=`eval 'as_val=${'$as_ac_Header'} 12179 $as_echo "$as_val"'` 12180 if test "x$as_val" = x""yes; then 8339 for ac_header in sys/socket.h sys/time.h netinet/in.h arpa/inet.h netdb.h 8340 do : 8341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8342 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8343 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12181 8344 cat >>confdefs.h <<_ACEOF 12182 8345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 … … 12188 8351 12189 8352 12190 12191 12192 12193 12194 for ac_header in sys/socket.h sys/time.h netinet/in.h arpa/inet.h netdb.h 12195 do 12196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12198 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12199 $as_echo_n "checking for $ac_header... " >&6; } 12200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12201 $as_echo_n "(cached) " >&6 12202 fi 12203 ac_res=`eval 'as_val=${'$as_ac_Header'} 12204 $as_echo "$as_val"'` 12205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12206 $as_echo "$ac_res" >&6; } 12207 else 12208 # Is the header compilable? 12209 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12210 $as_echo_n "checking $ac_header usability... " >&6; } 12211 cat >conftest.$ac_ext <<_ACEOF 12212 /* confdefs.h. */ 12213 _ACEOF 12214 cat confdefs.h >>conftest.$ac_ext 12215 cat >>conftest.$ac_ext <<_ACEOF 12216 /* end confdefs.h. */ 12217 $ac_includes_default 12218 #include <$ac_header> 12219 _ACEOF 12220 rm -f conftest.$ac_objext 12221 if { (ac_try="$ac_compile" 12222 case "(($ac_try" in 12223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12224 *) ac_try_echo=$ac_try;; 12225 esac 12226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12227 $as_echo "$ac_try_echo") >&5 12228 (eval "$ac_compile") 2>conftest.er1 12229 ac_status=$? 12230 grep -v '^ *+' conftest.er1 >conftest.err 12231 rm -f conftest.er1 12232 cat conftest.err >&5 12233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12234 (exit $ac_status); } && { 12235 test -z "$ac_cxx_werror_flag" || 12236 test ! -s conftest.err 12237 } && test -s conftest.$ac_objext; then 12238 ac_header_compiler=yes 12239 else 12240 $as_echo "$as_me: failed program was:" >&5 12241 sed 's/^/| /' conftest.$ac_ext >&5 12242 12243 ac_header_compiler=no 12244 fi 12245 12246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12247 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12248 $as_echo "$ac_header_compiler" >&6; } 12249 12250 # Is the header present? 12251 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12252 $as_echo_n "checking $ac_header presence... " >&6; } 12253 cat >conftest.$ac_ext <<_ACEOF 12254 /* confdefs.h. */ 12255 _ACEOF 12256 cat confdefs.h >>conftest.$ac_ext 12257 cat >>conftest.$ac_ext <<_ACEOF 12258 /* end confdefs.h. */ 12259 #include <$ac_header> 12260 _ACEOF 12261 if { (ac_try="$ac_cpp conftest.$ac_ext" 12262 case "(($ac_try" in 12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12264 *) ac_try_echo=$ac_try;; 12265 esac 12266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12267 $as_echo "$ac_try_echo") >&5 12268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12269 ac_status=$? 12270 grep -v '^ *+' conftest.er1 >conftest.err 12271 rm -f conftest.er1 12272 cat conftest.err >&5 12273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12274 (exit $ac_status); } >/dev/null && { 12275 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 12276 test ! -s conftest.err 12277 }; then 12278 ac_header_preproc=yes 12279 else 12280 $as_echo "$as_me: failed program was:" >&5 12281 sed 's/^/| /' conftest.$ac_ext >&5 12282 12283 ac_header_preproc=no 12284 fi 12285 12286 rm -f conftest.err conftest.$ac_ext 12287 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12288 $as_echo "$ac_header_preproc" >&6; } 12289 12290 # So? What about this header? 12291 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 12292 yes:no: ) 12293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12294 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12296 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12297 ac_header_preproc=yes 12298 ;; 12299 no:yes:* ) 12300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12301 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12303 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12305 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12307 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12309 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12311 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12312 ( cat <<\_ASBOX 12313 ## ----------------------------------- ## 12314 ## Report this to rappture@nanohub.org ## 12315 ## ----------------------------------- ## 12316 _ASBOX 12317 ) | sed "s/^/$as_me: WARNING: /" >&2 12318 ;; 12319 esac 12320 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12321 $as_echo_n "checking for $ac_header... " >&6; } 12322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12323 $as_echo_n "(cached) " >&6 12324 else 12325 eval "$as_ac_Header=\$ac_header_preproc" 12326 fi 12327 ac_res=`eval 'as_val=${'$as_ac_Header'} 12328 $as_echo "$as_val"'` 12329 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12330 $as_echo "$ac_res" >&6; } 12331 12332 fi 12333 as_val=`eval 'as_val=${'$as_ac_Header'} 12334 $as_echo "$as_val"'` 12335 if test "x$as_val" = x""yes; then 8353 for ac_func in accept4 8354 do : 8355 ac_fn_cxx_check_func "$LINENO" "accept4" "ac_cv_func_accept4" 8356 if test "x$ac_cv_func_accept4" = xyes; then : 12336 8357 cat >>confdefs.h <<_ACEOF 12337 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12338 _ACEOF 12339 12340 fi 12341 8358 #define HAVE_ACCEPT4 1 8359 _ACEOF 8360 8361 fi 12342 8362 done 12343 8363 12344 8364 12345 12346 for ac_func in accept4 12347 do 12348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12349 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 12350 $as_echo_n "checking for $ac_func... " >&6; } 12351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12352 $as_echo_n "(cached) " >&6 12353 else 12354 cat >conftest.$ac_ext <<_ACEOF 12355 /* confdefs.h. */ 12356 _ACEOF 12357 cat confdefs.h >>conftest.$ac_ext 12358 cat >>conftest.$ac_ext <<_ACEOF 12359 /* end confdefs.h. */ 12360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12361 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12362 #define $ac_func innocuous_$ac_func 12363 12364 /* System header to define __stub macros and hopefully few prototypes, 12365 which can conflict with char $ac_func (); below. 12366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12367 <limits.h> exists even on freestanding compilers. */ 12368 12369 #ifdef __STDC__ 12370 # include <limits.h> 12371 #else 12372 # include <assert.h> 12373 #endif 12374 12375 #undef $ac_func 12376 12377 /* Override any GCC internal prototype to avoid an error. 12378 Use char because int might match the return type of a GCC 12379 builtin and then its argument prototype would still apply. */ 12380 #ifdef __cplusplus 12381 extern "C" 12382 #endif 12383 char $ac_func (); 12384 /* The GNU C library defines this for functions which it implements 12385 to always fail with ENOSYS. Some functions are actually named 12386 something starting with __ and the normal name is an alias. */ 12387 #if defined __stub_$ac_func || defined __stub___$ac_func 12388 choke me 12389 #endif 12390 12391 int 12392 main () 12393 { 12394 return $ac_func (); 12395 ; 12396 return 0; 12397 } 12398 _ACEOF 12399 rm -f conftest.$ac_objext conftest$ac_exeext 12400 if { (ac_try="$ac_link" 12401 case "(($ac_try" in 12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12403 *) ac_try_echo=$ac_try;; 12404 esac 12405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12406 $as_echo "$ac_try_echo") >&5 12407 (eval "$ac_link") 2>conftest.er1 12408 ac_status=$? 12409 grep -v '^ *+' conftest.er1 >conftest.err 12410 rm -f conftest.er1 12411 cat conftest.err >&5 12412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12413 (exit $ac_status); } && { 12414 test -z "$ac_cxx_werror_flag" || 12415 test ! -s conftest.err 12416 } && test -s conftest$ac_exeext && { 12417 test "$cross_compiling" = yes || 12418 $as_test_x conftest$ac_exeext 12419 }; then 12420 eval "$as_ac_var=yes" 12421 else 12422 $as_echo "$as_me: failed program was:" >&5 12423 sed 's/^/| /' conftest.$ac_ext >&5 12424 12425 eval "$as_ac_var=no" 12426 fi 12427 12428 rm -rf conftest.dSYM 12429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12430 conftest$ac_exeext conftest.$ac_ext 12431 fi 12432 ac_res=`eval 'as_val=${'$as_ac_var'} 12433 $as_echo "$as_val"'` 12434 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12435 $as_echo "$ac_res" >&6; } 12436 as_val=`eval 'as_val=${'$as_ac_var'} 12437 $as_echo "$as_val"'` 12438 if test "x$as_val" = x""yes; then 12439 cat >>confdefs.h <<_ACEOF 12440 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12441 _ACEOF 12442 12443 fi 12444 done 12445 12446 12447 { $as_echo "$as_me:$LINENO: checking for OpenDX headers" >&5 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenDX headers" >&5 12448 8366 $as_echo_n "checking for OpenDX headers... " >&6; } 12449 8367 DX_INC_DIR="" … … 12459 8377 done 12460 8378 if test "x${DX_INC_DIR}" = "x" ; then 12461 { $as_echo "$as_me:$ LINENO: WARNING: cannot find OpenDX include files" >&58379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find OpenDX include files" >&5 12462 8380 $as_echo "$as_me: WARNING: cannot find OpenDX include files" >&2;} 12463 8381 DX_INC_SPEC="" … … 12468 8386 fi 12469 8387 12470 { $as_echo "$as_me:$ LINENO: result: ${DX_INC_DIR}" >&58388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${DX_INC_DIR}" >&5 12471 8389 $as_echo "${DX_INC_DIR}" >&6; } 12472 8390 save_CPPFLAGS=${CPPFLAGS} 12473 8391 CPPFLAGS="$DX_INC_SPEC $CPPFLAGS" 12474 12475 8392 for ac_header in dx/dx.h 12476 do 12477 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12479 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12480 $as_echo_n "checking for $ac_header... " >&6; } 12481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12482 $as_echo_n "(cached) " >&6 12483 fi 12484 ac_res=`eval 'as_val=${'$as_ac_Header'} 12485 $as_echo "$as_val"'` 12486 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12487 $as_echo "$ac_res" >&6; } 12488 else 12489 # Is the header compilable? 12490 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12491 $as_echo_n "checking $ac_header usability... " >&6; } 12492 cat >conftest.$ac_ext <<_ACEOF 12493 /* confdefs.h. */ 12494 _ACEOF 12495 cat confdefs.h >>conftest.$ac_ext 12496 cat >>conftest.$ac_ext <<_ACEOF 12497 /* end confdefs.h. */ 12498 $ac_includes_default 12499 #include <$ac_header> 12500 _ACEOF 12501 rm -f conftest.$ac_objext 12502 if { (ac_try="$ac_compile" 12503 case "(($ac_try" in 12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12505 *) ac_try_echo=$ac_try;; 12506 esac 12507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12508 $as_echo "$ac_try_echo") >&5 12509 (eval "$ac_compile") 2>conftest.er1 12510 ac_status=$? 12511 grep -v '^ *+' conftest.er1 >conftest.err 12512 rm -f conftest.er1 12513 cat conftest.err >&5 12514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12515 (exit $ac_status); } && { 12516 test -z "$ac_cxx_werror_flag" || 12517 test ! -s conftest.err 12518 } && test -s conftest.$ac_objext; then 12519 ac_header_compiler=yes 12520 else 12521 $as_echo "$as_me: failed program was:" >&5 12522 sed 's/^/| /' conftest.$ac_ext >&5 12523 12524 ac_header_compiler=no 12525 fi 12526 12527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12528 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12529 $as_echo "$ac_header_compiler" >&6; } 12530 12531 # Is the header present? 12532 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12533 $as_echo_n "checking $ac_header presence... " >&6; } 12534 cat >conftest.$ac_ext <<_ACEOF 12535 /* confdefs.h. */ 12536 _ACEOF 12537 cat confdefs.h >>conftest.$ac_ext 12538 cat >>conftest.$ac_ext <<_ACEOF 12539 /* end confdefs.h. */ 12540 #include <$ac_header> 12541 _ACEOF 12542 if { (ac_try="$ac_cpp conftest.$ac_ext" 12543 case "(($ac_try" in 12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12545 *) ac_try_echo=$ac_try;; 12546 esac 12547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12548 $as_echo "$ac_try_echo") >&5 12549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12550 ac_status=$? 12551 grep -v '^ *+' conftest.er1 >conftest.err 12552 rm -f conftest.er1 12553 cat conftest.err >&5 12554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12555 (exit $ac_status); } >/dev/null && { 12556 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 12557 test ! -s conftest.err 12558 }; then 12559 ac_header_preproc=yes 12560 else 12561 $as_echo "$as_me: failed program was:" >&5 12562 sed 's/^/| /' conftest.$ac_ext >&5 12563 12564 ac_header_preproc=no 12565 fi 12566 12567 rm -f conftest.err conftest.$ac_ext 12568 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12569 $as_echo "$ac_header_preproc" >&6; } 12570 12571 # So? What about this header? 12572 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 12573 yes:no: ) 12574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12575 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12577 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12578 ac_header_preproc=yes 12579 ;; 12580 no:yes:* ) 12581 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12582 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12583 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12584 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12586 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12588 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12590 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12592 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12593 ( cat <<\_ASBOX 12594 ## ----------------------------------- ## 12595 ## Report this to rappture@nanohub.org ## 12596 ## ----------------------------------- ## 12597 _ASBOX 12598 ) | sed "s/^/$as_me: WARNING: /" >&2 12599 ;; 12600 esac 12601 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12602 $as_echo_n "checking for $ac_header... " >&6; } 12603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12604 $as_echo_n "(cached) " >&6 12605 else 12606 eval "$as_ac_Header=\$ac_header_preproc" 12607 fi 12608 ac_res=`eval 'as_val=${'$as_ac_Header'} 12609 $as_echo "$as_val"'` 12610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12611 $as_echo "$ac_res" >&6; } 12612 12613 fi 12614 as_val=`eval 'as_val=${'$as_ac_Header'} 12615 $as_echo "$as_val"'` 12616 if test "x$as_val" = x""yes; then 8393 do : 8394 ac_fn_cxx_check_header_mongrel "$LINENO" "dx/dx.h" "ac_cv_header_dx_dx_h" "$ac_includes_default" 8395 if test "x$ac_cv_header_dx_dx_h" = xyes; then : 12617 8396 cat >>confdefs.h <<_ACEOF 12618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp`18397 #define HAVE_DX_DX_H 1 12619 8398 _ACEOF 12620 8399 … … 12637 8416 LDFLAGS="-L$dir $LDFLAGS" 12638 8417 unset ac_cv_lib_DXcallm_DXGetComponentValue 12639 { $as_echo "$as_me:$ LINENO: checking for DXGetComponentValue in -lDXcallm" >&58418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DXGetComponentValue in -lDXcallm" >&5 12640 8419 $as_echo_n "checking for DXGetComponentValue in -lDXcallm... " >&6; } 12641 if test "${ac_cv_lib_DXcallm_DXGetComponentValue+set}" = set; then8420 if ${ac_cv_lib_DXcallm_DXGetComponentValue+:} false; then : 12642 8421 $as_echo_n "(cached) " >&6 12643 8422 else 12644 8423 ac_check_lib_save_LIBS=$LIBS 12645 8424 LIBS="-lDXcallm -lX11 $LIBS" 12646 cat >conftest.$ac_ext <<_ACEOF 12647 /* confdefs.h. */ 12648 _ACEOF 12649 cat confdefs.h >>conftest.$ac_ext 12650 cat >>conftest.$ac_ext <<_ACEOF 8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12651 8426 /* end confdefs.h. */ 12652 8427 … … 12666 8441 } 12667 8442 _ACEOF 12668 rm -f conftest.$ac_objext conftest$ac_exeext 12669 if { (ac_try="$ac_link" 12670 case "(($ac_try" in 12671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12672 *) ac_try_echo=$ac_try;; 12673 esac 12674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12675 $as_echo "$ac_try_echo") >&5 12676 (eval "$ac_link") 2>conftest.er1 12677 ac_status=$? 12678 grep -v '^ *+' conftest.er1 >conftest.err 12679 rm -f conftest.er1 12680 cat conftest.err >&5 12681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12682 (exit $ac_status); } && { 12683 test -z "$ac_cxx_werror_flag" || 12684 test ! -s conftest.err 12685 } && test -s conftest$ac_exeext && { 12686 test "$cross_compiling" = yes || 12687 $as_test_x conftest$ac_exeext 12688 }; then 8443 if ac_fn_cxx_try_link "$LINENO"; then : 12689 8444 ac_cv_lib_DXcallm_DXGetComponentValue=yes 12690 8445 else 12691 $as_echo "$as_me: failed program was:" >&5 12692 sed 's/^/| /' conftest.$ac_ext >&5 12693 12694 ac_cv_lib_DXcallm_DXGetComponentValue=no 12695 fi 12696 12697 rm -rf conftest.dSYM 12698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12699 conftest$ac_exeext conftest.$ac_ext 8446 ac_cv_lib_DXcallm_DXGetComponentValue=no 8447 fi 8448 rm -f core conftest.err conftest.$ac_objext \ 8449 conftest$ac_exeext conftest.$ac_ext 12700 8450 LIBS=$ac_check_lib_save_LIBS 12701 8451 fi 12702 { $as_echo "$as_me:$ LINENO: result: $ac_cv_lib_DXcallm_DXGetComponentValue" >&58452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_DXcallm_DXGetComponentValue" >&5 12703 8453 $as_echo "$ac_cv_lib_DXcallm_DXGetComponentValue" >&6; } 12704 if test "x$ac_cv_lib_DXcallm_DXGetComponentValue" = x ""yes; then8454 if test "x$ac_cv_lib_DXcallm_DXGetComponentValue" = xyes; then : 12705 8455 found=yes 12706 8456 else … … 12715 8465 done 12716 8466 if test "x${DX_LIB_DIR}" = "x" ; then 12717 { $as_echo "$as_me:$ LINENO: WARNING: cannot find OpenDX libraries" >&58467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find OpenDX libraries" >&5 12718 8468 $as_echo "$as_me: WARNING: cannot find OpenDX libraries" >&2;} 12719 8469 fi 12720 8470 12721 { $as_echo "$as_me:$ LINENO: checking for libDXcallm library" >&58471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libDXcallm library" >&5 12722 8472 $as_echo_n "checking for libDXcallm library... " >&6; } 12723 8473 if test "x${DX_LIB_DIR}" = "x" -o "${DX_LIB_DIR}" = "/usr/lib" -o "${DX_LIB_DIR}" = "/usr/lib64"; then … … 12726 8476 DX_LIB_SPEC="-L${DX_LIB_DIR} -lDXcallm" 12727 8477 fi 12728 { $as_echo "$as_me:$ LINENO: result: $DX_LIB_SPEC" >&58478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LIB_SPEC" >&5 12729 8479 $as_echo "$DX_LIB_SPEC" >&6; } 12730 8480 … … 12736 8486 fi 12737 8487 12738 12739 12740 12741 12742 12743 12744 8488 for ac_header in ffmpeg/avcodec.h libavcodec/avcodec.h ffmpeg/avformat.h libavformat/avformat.h ffmpeg/avutil.h libavutil/avutil.h 12745 do 12746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12747 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12748 $as_echo_n "checking for $ac_header... " >&6; } 12749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12750 $as_echo_n "(cached) " >&6 12751 else 12752 cat >conftest.$ac_ext <<_ACEOF 12753 /* confdefs.h. */ 12754 _ACEOF 12755 cat confdefs.h >>conftest.$ac_ext 12756 cat >>conftest.$ac_ext <<_ACEOF 12757 /* end confdefs.h. */ 12758 8489 do : 8490 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8491 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 12759 8492 #define __STDC_CONSTANT_MACROS 1 12760 8493 12761 12762 #include <$ac_header> 12763 _ACEOF 12764 rm -f conftest.$ac_objext 12765 if { (ac_try="$ac_compile" 12766 case "(($ac_try" in 12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12768 *) ac_try_echo=$ac_try;; 12769 esac 12770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12771 $as_echo "$ac_try_echo") >&5 12772 (eval "$ac_compile") 2>conftest.er1 12773 ac_status=$? 12774 grep -v '^ *+' conftest.er1 >conftest.err 12775 rm -f conftest.er1 12776 cat conftest.err >&5 12777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12778 (exit $ac_status); } && { 12779 test -z "$ac_cxx_werror_flag" || 12780 test ! -s conftest.err 12781 } && test -s conftest.$ac_objext; then 12782 eval "$as_ac_Header=yes" 12783 else 12784 $as_echo "$as_me: failed program was:" >&5 12785 sed 's/^/| /' conftest.$ac_ext >&5 12786 12787 eval "$as_ac_Header=no" 12788 fi 12789 12790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12791 fi 12792 ac_res=`eval 'as_val=${'$as_ac_Header'} 12793 $as_echo "$as_val"'` 12794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12795 $as_echo "$ac_res" >&6; } 12796 as_val=`eval 'as_val=${'$as_ac_Header'} 12797 $as_echo "$as_val"'` 12798 if test "x$as_val" = x""yes; then 8494 " 8495 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12799 8496 cat >>confdefs.h <<_ACEOF 12800 8497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 … … 12807 8504 CPPFLAGS=$save_CPPFLAGS 12808 8505 12809 12810 { $as_echo "$as_me:$LINENO: checking for main in -lavcodec" >&5 8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavcodec" >&5 12811 8507 $as_echo_n "checking for main in -lavcodec... " >&6; } 12812 if test "${ac_cv_lib_avcodec_main+set}" = set; then8508 if ${ac_cv_lib_avcodec_main+:} false; then : 12813 8509 $as_echo_n "(cached) " >&6 12814 8510 else 12815 8511 ac_check_lib_save_LIBS=$LIBS 12816 8512 LIBS="-lavcodec $LIBS" 12817 cat >conftest.$ac_ext <<_ACEOF 12818 /* confdefs.h. */ 12819 _ACEOF 12820 cat confdefs.h >>conftest.$ac_ext 12821 cat >>conftest.$ac_ext <<_ACEOF 8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12822 8514 /* end confdefs.h. */ 12823 8515 … … 12831 8523 } 12832 8524 _ACEOF 12833 rm -f conftest.$ac_objext conftest$ac_exeext 12834 if { (ac_try="$ac_link" 12835 case "(($ac_try" in 12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12837 *) ac_try_echo=$ac_try;; 12838 esac 12839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12840 $as_echo "$ac_try_echo") >&5 12841 (eval "$ac_link") 2>conftest.er1 12842 ac_status=$? 12843 grep -v '^ *+' conftest.er1 >conftest.err 12844 rm -f conftest.er1 12845 cat conftest.err >&5 12846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12847 (exit $ac_status); } && { 12848 test -z "$ac_cxx_werror_flag" || 12849 test ! -s conftest.err 12850 } && test -s conftest$ac_exeext && { 12851 test "$cross_compiling" = yes || 12852 $as_test_x conftest$ac_exeext 12853 }; then 8525 if ac_fn_cxx_try_link "$LINENO"; then : 12854 8526 ac_cv_lib_avcodec_main=yes 12855 8527 else 12856 $as_echo "$as_me: failed program was:" >&5 12857 sed 's/^/| /' conftest.$ac_ext >&5 12858 12859 ac_cv_lib_avcodec_main=no 12860 fi 12861 12862 rm -rf conftest.dSYM 12863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12864 conftest$ac_exeext conftest.$ac_ext 8528 ac_cv_lib_avcodec_main=no 8529 fi 8530 rm -f core conftest.err conftest.$ac_objext \ 8531 conftest$ac_exeext conftest.$ac_ext 12865 8532 LIBS=$ac_check_lib_save_LIBS 12866 8533 fi 12867 { $as_echo "$as_me:$ LINENO: result: $ac_cv_lib_avcodec_main" >&58534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_main" >&5 12868 8535 $as_echo "$ac_cv_lib_avcodec_main" >&6; } 12869 if test "x$ac_cv_lib_avcodec_main" = x ""yes; then8536 if test "x$ac_cv_lib_avcodec_main" = xyes; then : 12870 8537 cat >>confdefs.h <<_ACEOF 12871 8538 #define HAVE_LIBAVCODEC 1 … … 12875 8542 12876 8543 else 12877 { { $as_echo "$as_me:$LINENO: error: requires libavcodec" >&5 12878 $as_echo "$as_me: error: requires libavcodec" >&2;} 12879 { (exit 1); exit 1; }; } 12880 fi 12881 12882 12883 { $as_echo "$as_me:$LINENO: checking for main in -lavutil" >&5 8544 as_fn_error $? "requires libavcodec" "$LINENO" 5 8545 fi 8546 8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavutil" >&5 12884 8548 $as_echo_n "checking for main in -lavutil... " >&6; } 12885 if test "${ac_cv_lib_avutil_main+set}" = set; then8549 if ${ac_cv_lib_avutil_main+:} false; then : 12886 8550 $as_echo_n "(cached) " >&6 12887 8551 else 12888 8552 ac_check_lib_save_LIBS=$LIBS 12889 8553 LIBS="-lavutil $LIBS" 12890 cat >conftest.$ac_ext <<_ACEOF 12891 /* confdefs.h. */ 12892 _ACEOF 12893 cat confdefs.h >>conftest.$ac_ext 12894 cat >>conftest.$ac_ext <<_ACEOF 8554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12895 8555 /* end confdefs.h. */ 12896 8556 … … 12904 8564 } 12905 8565 _ACEOF 12906 rm -f conftest.$ac_objext conftest$ac_exeext 12907 if { (ac_try="$ac_link" 12908 case "(($ac_try" in 12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12910 *) ac_try_echo=$ac_try;; 12911 esac 12912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12913 $as_echo "$ac_try_echo") >&5 12914 (eval "$ac_link") 2>conftest.er1 12915 ac_status=$? 12916 grep -v '^ *+' conftest.er1 >conftest.err 12917 rm -f conftest.er1 12918 cat conftest.err >&5 12919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12920 (exit $ac_status); } && { 12921 test -z "$ac_cxx_werror_flag" || 12922 test ! -s conftest.err 12923 } && test -s conftest$ac_exeext && { 12924 test "$cross_compiling" = yes || 12925 $as_test_x conftest$ac_exeext 12926 }; then 8566 if ac_fn_cxx_try_link "$LINENO"; then : 12927 8567 ac_cv_lib_avutil_main=yes 12928 8568 else 12929 $as_echo "$as_me: failed program was:" >&5 12930 sed 's/^/| /' conftest.$ac_ext >&5 12931 12932 ac_cv_lib_avutil_main=no 12933 fi 12934 12935 rm -rf conftest.dSYM 12936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12937 conftest$ac_exeext conftest.$ac_ext 8569 ac_cv_lib_avutil_main=no 8570 fi 8571 rm -f core conftest.err conftest.$ac_objext \ 8572 conftest$ac_exeext conftest.$ac_ext 12938 8573 LIBS=$ac_check_lib_save_LIBS 12939 8574 fi 12940 { $as_echo "$as_me:$ LINENO: result: $ac_cv_lib_avutil_main" >&58575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_main" >&5 12941 8576 $as_echo "$ac_cv_lib_avutil_main" >&6; } 12942 if test "x$ac_cv_lib_avutil_main" = x ""yes; then8577 if test "x$ac_cv_lib_avutil_main" = xyes; then : 12943 8578 cat >>confdefs.h <<_ACEOF 12944 8579 #define HAVE_LIBAVUTIL 1 … … 12948 8583 12949 8584 else 12950 { { $as_echo "$as_me:$LINENO: error: requires libavutil" >&5 12951 $as_echo "$as_me: error: requires libavutil" >&2;} 12952 { (exit 1); exit 1; }; } 12953 fi 12954 12955 12956 { $as_echo "$as_me:$LINENO: checking for main in -lavformat" >&5 8585 as_fn_error $? "requires libavutil" "$LINENO" 5 8586 fi 8587 8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavformat" >&5 12957 8589 $as_echo_n "checking for main in -lavformat... " >&6; } 12958 if test "${ac_cv_lib_avformat_main+set}" = set; then8590 if ${ac_cv_lib_avformat_main+:} false; then : 12959 8591 $as_echo_n "(cached) " >&6 12960 8592 else 12961 8593 ac_check_lib_save_LIBS=$LIBS 12962 8594 LIBS="-lavformat $LIBS" 12963 cat >conftest.$ac_ext <<_ACEOF 12964 /* confdefs.h. */ 12965 _ACEOF 12966 cat confdefs.h >>conftest.$ac_ext 12967 cat >>conftest.$ac_ext <<_ACEOF 8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12968 8596 /* end confdefs.h. */ 12969 8597 … … 12977 8605 } 12978 8606 _ACEOF 12979 rm -f conftest.$ac_objext conftest$ac_exeext 12980 if { (ac_try="$ac_link" 12981 case "(($ac_try" in 12982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12983 *) ac_try_echo=$ac_try;; 12984 esac 12985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12986 $as_echo "$ac_try_echo") >&5 12987 (eval "$ac_link") 2>conftest.er1 12988 ac_status=$? 12989 grep -v '^ *+' conftest.er1 >conftest.err 12990 rm -f conftest.er1 12991 cat conftest.err >&5 12992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12993 (exit $ac_status); } && { 12994 test -z "$ac_cxx_werror_flag" || 12995 test ! -s conftest.err 12996 } && test -s conftest$ac_exeext && { 12997 test "$cross_compiling" = yes || 12998 $as_test_x conftest$ac_exeext 12999 }; then 8607 if ac_fn_cxx_try_link "$LINENO"; then : 13000 8608 ac_cv_lib_avformat_main=yes 13001 8609 else 13002 $as_echo "$as_me: failed program was:" >&5 13003 sed 's/^/| /' conftest.$ac_ext >&5 13004 13005 ac_cv_lib_avformat_main=no 13006 fi 13007 13008 rm -rf conftest.dSYM 13009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13010 conftest$ac_exeext conftest.$ac_ext 8610 ac_cv_lib_avformat_main=no 8611 fi 8612 rm -f core conftest.err conftest.$ac_objext \ 8613 conftest$ac_exeext conftest.$ac_ext 13011 8614 LIBS=$ac_check_lib_save_LIBS 13012 8615 fi 13013 { $as_echo "$as_me:$ LINENO: result: $ac_cv_lib_avformat_main" >&58616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_main" >&5 13014 8617 $as_echo "$ac_cv_lib_avformat_main" >&6; } 13015 if test "x$ac_cv_lib_avformat_main" = x ""yes; then8618 if test "x$ac_cv_lib_avformat_main" = xyes; then : 13016 8619 cat >>confdefs.h <<_ACEOF 13017 8620 #define HAVE_LIBAVFORMAT 1 … … 13021 8624 13022 8625 else 13023 { { $as_echo "$as_me:$LINENO: error: requires libavformat" >&5 13024 $as_echo "$as_me: error: requires libavformat" >&2;} 13025 { (exit 1); exit 1; }; } 13026 fi 13027 13028 13029 { $as_echo "$as_me:$LINENO: checking for main in -lswscale" >&5 8626 as_fn_error $? "requires libavformat" "$LINENO" 5 8627 fi 8628 8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lswscale" >&5 13030 8630 $as_echo_n "checking for main in -lswscale... " >&6; } 13031 if test "${ac_cv_lib_swscale_main+set}" = set; then8631 if ${ac_cv_lib_swscale_main+:} false; then : 13032 8632 $as_echo_n "(cached) " >&6 13033 8633 else 13034 8634 ac_check_lib_save_LIBS=$LIBS 13035 8635 LIBS="-lswscale $LIBS" 13036 cat >conftest.$ac_ext <<_ACEOF 13037 /* confdefs.h. */ 13038 _ACEOF 13039 cat confdefs.h >>conftest.$ac_ext 13040 cat >>conftest.$ac_ext <<_ACEOF 8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13041 8637 /* end confdefs.h. */ 13042 8638 … … 13050 8646 } 13051 8647 _ACEOF 13052 rm -f conftest.$ac_objext conftest$ac_exeext 13053 if { (ac_try="$ac_link" 13054 case "(($ac_try" in 13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13056 *) ac_try_echo=$ac_try;; 13057 esac 13058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13059 $as_echo "$ac_try_echo") >&5 13060 (eval "$ac_link") 2>conftest.er1 13061 ac_status=$? 13062 grep -v '^ *+' conftest.er1 >conftest.err 13063 rm -f conftest.er1 13064 cat conftest.err >&5 13065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13066 (exit $ac_status); } && { 13067 test -z "$ac_cxx_werror_flag" || 13068 test ! -s conftest.err 13069 } && test -s conftest$ac_exeext && { 13070 test "$cross_compiling" = yes || 13071 $as_test_x conftest$ac_exeext 13072 }; then 8648 if ac_fn_cxx_try_link "$LINENO"; then : 13073 8649 ac_cv_lib_swscale_main=yes 13074 8650 else 13075 $as_echo "$as_me: failed program was:" >&5 13076 sed 's/^/| /' conftest.$ac_ext >&5 13077 13078 ac_cv_lib_swscale_main=no 13079 fi 13080 13081 rm -rf conftest.dSYM 13082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13083 conftest$ac_exeext conftest.$ac_ext 8651 ac_cv_lib_swscale_main=no 8652 fi 8653 rm -f core conftest.err conftest.$ac_objext \ 8654 conftest$ac_exeext conftest.$ac_ext 13084 8655 LIBS=$ac_check_lib_save_LIBS 13085 8656 fi 13086 { $as_echo "$as_me:$ LINENO: result: $ac_cv_lib_swscale_main" >&58657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_main" >&5 13087 8658 $as_echo "$ac_cv_lib_swscale_main" >&6; } 13088 if test "x$ac_cv_lib_swscale_main" = x ""yes; then8659 if test "x$ac_cv_lib_swscale_main" = xyes; then : 13089 8660 cat >>confdefs.h <<_ACEOF 13090 8661 #define HAVE_LIBSWSCALE 1 … … 13095 8666 fi 13096 8667 13097 13098 8668 for ac_func in avcodec_decode_video2 13099 do 13100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13101 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13102 $as_echo_n "checking for $ac_func... " >&6; } 13103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13104 $as_echo_n "(cached) " >&6 13105 else 13106 cat >conftest.$ac_ext <<_ACEOF 13107 /* confdefs.h. */ 13108 _ACEOF 13109 cat confdefs.h >>conftest.$ac_ext 13110 cat >>conftest.$ac_ext <<_ACEOF 13111 /* end confdefs.h. */ 13112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13113 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13114 #define $ac_func innocuous_$ac_func 13115 13116 /* System header to define __stub macros and hopefully few prototypes, 13117 which can conflict with char $ac_func (); below. 13118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13119 <limits.h> exists even on freestanding compilers. */ 13120 13121 #ifdef __STDC__ 13122 # include <limits.h> 13123 #else 13124 # include <assert.h> 13125 #endif 13126 13127 #undef $ac_func 13128 13129 /* Override any GCC internal prototype to avoid an error. 13130 Use char because int might match the return type of a GCC 13131 builtin and then its argument prototype would still apply. */ 13132 #ifdef __cplusplus 13133 extern "C" 13134 #endif 13135 char $ac_func (); 13136 /* The GNU C library defines this for functions which it implements 13137 to always fail with ENOSYS. Some functions are actually named 13138 something starting with __ and the normal name is an alias. */ 13139 #if defined __stub_$ac_func || defined __stub___$ac_func 13140 choke me 13141 #endif 13142 13143 int 13144 main () 13145 { 13146 return $ac_func (); 13147 ; 13148 return 0; 13149 } 13150 _ACEOF 13151 rm -f conftest.$ac_objext conftest$ac_exeext 13152 if { (ac_try="$ac_link" 13153 case "(($ac_try" in 13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13155 *) ac_try_echo=$ac_try;; 13156 esac 13157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13158 $as_echo "$ac_try_echo") >&5 13159 (eval "$ac_link") 2>conftest.er1 13160 ac_status=$? 13161 grep -v '^ *+' conftest.er1 >conftest.err 13162 rm -f conftest.er1 13163 cat conftest.err >&5 13164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13165 (exit $ac_status); } && { 13166 test -z "$ac_cxx_werror_flag" || 13167 test ! -s conftest.err 13168 } && test -s conftest$ac_exeext && { 13169 test "$cross_compiling" = yes || 13170 $as_test_x conftest$ac_exeext 13171 }; then 13172 eval "$as_ac_var=yes" 13173 else 13174 $as_echo "$as_me: failed program was:" >&5 13175 sed 's/^/| /' conftest.$ac_ext >&5 13176 13177 eval "$as_ac_var=no" 13178 fi 13179 13180 rm -rf conftest.dSYM 13181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13182 conftest$ac_exeext conftest.$ac_ext 13183 fi 13184 ac_res=`eval 'as_val=${'$as_ac_var'} 13185 $as_echo "$as_val"'` 13186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13187 $as_echo "$ac_res" >&6; } 13188 as_val=`eval 'as_val=${'$as_ac_var'} 13189 $as_echo "$as_val"'` 13190 if test "x$as_val" = x""yes; then 8669 do : 8670 ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video2" "ac_cv_func_avcodec_decode_video2" 8671 if test "x$ac_cv_func_avcodec_decode_video2" = xyes; then : 13191 8672 cat >>confdefs.h <<_ACEOF 13192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18673 #define HAVE_AVCODEC_DECODE_VIDEO2 1 13193 8674 _ACEOF 13194 8675 … … 13196 8677 done 13197 8678 13198 13199 8679 for ac_func in avcodec_decode_video 13200 do 13201 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13202 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13203 $as_echo_n "checking for $ac_func... " >&6; } 13204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13205 $as_echo_n "(cached) " >&6 13206 else 13207 cat >conftest.$ac_ext <<_ACEOF 13208 /* confdefs.h. */ 13209 _ACEOF 13210 cat confdefs.h >>conftest.$ac_ext 13211 cat >>conftest.$ac_ext <<_ACEOF 13212 /* end confdefs.h. */ 13213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13214 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13215 #define $ac_func innocuous_$ac_func 13216 13217 /* System header to define __stub macros and hopefully few prototypes, 13218 which can conflict with char $ac_func (); below. 13219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13220 <limits.h> exists even on freestanding compilers. */ 13221 13222 #ifdef __STDC__ 13223 # include <limits.h> 13224 #else 13225 # include <assert.h> 13226 #endif 13227 13228 #undef $ac_func 13229 13230 /* Override any GCC internal prototype to avoid an error. 13231 Use char because int might match the return type of a GCC 13232 builtin and then its argument prototype would still apply. */ 13233 #ifdef __cplusplus 13234 extern "C" 13235 #endif 13236 char $ac_func (); 13237 /* The GNU C library defines this for functions which it implements 13238 to always fail with ENOSYS. Some functions are actually named 13239 something starting with __ and the normal name is an alias. */ 13240 #if defined __stub_$ac_func || defined __stub___$ac_func 13241 choke me 13242 #endif 13243 13244 int 13245 main () 13246 { 13247 return $ac_func (); 13248 ; 13249 return 0; 13250 } 13251 _ACEOF 13252 rm -f conftest.$ac_objext conftest$ac_exeext 13253 if { (ac_try="$ac_link" 13254 case "(($ac_try" in 13255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13256 *) ac_try_echo=$ac_try;; 13257 esac 13258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13259 $as_echo "$ac_try_echo") >&5 13260 (eval "$ac_link") 2>conftest.er1 13261 ac_status=$? 13262 grep -v '^ *+' conftest.er1 >conftest.err 13263 rm -f conftest.er1 13264 cat conftest.err >&5 13265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13266 (exit $ac_status); } && { 13267 test -z "$ac_cxx_werror_flag" || 13268 test ! -s conftest.err 13269 } && test -s conftest$ac_exeext && { 13270 test "$cross_compiling" = yes || 13271 $as_test_x conftest$ac_exeext 13272 }; then 13273 eval "$as_ac_var=yes" 13274 else 13275 $as_echo "$as_me: failed program was:" >&5 13276 sed 's/^/| /' conftest.$ac_ext >&5 13277 13278 eval "$as_ac_var=no" 13279 fi 13280 13281 rm -rf conftest.dSYM 13282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13283 conftest$ac_exeext conftest.$ac_ext 13284 fi 13285 ac_res=`eval 'as_val=${'$as_ac_var'} 13286 $as_echo "$as_val"'` 13287 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13288 $as_echo "$ac_res" >&6; } 13289 as_val=`eval 'as_val=${'$as_ac_var'} 13290 $as_echo "$as_val"'` 13291 if test "x$as_val" = x""yes; then 8680 do : 8681 ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video" "ac_cv_func_avcodec_decode_video" 8682 if test "x$ac_cv_func_avcodec_decode_video" = xyes; then : 13292 8683 cat >>confdefs.h <<_ACEOF 13293 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18684 #define HAVE_AVCODEC_DECODE_VIDEO 1 13294 8685 _ACEOF 13295 8686 … … 13297 8688 done 13298 8689 13299 13300 8690 for ac_func in avformat_open_input 13301 do 13302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13303 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13304 $as_echo_n "checking for $ac_func... " >&6; } 13305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13306 $as_echo_n "(cached) " >&6 13307 else 13308 cat >conftest.$ac_ext <<_ACEOF 13309 /* confdefs.h. */ 13310 _ACEOF 13311 cat confdefs.h >>conftest.$ac_ext 13312 cat >>conftest.$ac_ext <<_ACEOF 13313 /* end confdefs.h. */ 13314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13315 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13316 #define $ac_func innocuous_$ac_func 13317 13318 /* System header to define __stub macros and hopefully few prototypes, 13319 which can conflict with char $ac_func (); below. 13320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13321 <limits.h> exists even on freestanding compilers. */ 13322 13323 #ifdef __STDC__ 13324 # include <limits.h> 13325 #else 13326 # include <assert.h> 13327 #endif 13328 13329 #undef $ac_func 13330 13331 /* Override any GCC internal prototype to avoid an error. 13332 Use char because int might match the return type of a GCC 13333 builtin and then its argument prototype would still apply. */ 13334 #ifdef __cplusplus 13335 extern "C" 13336 #endif 13337 char $ac_func (); 13338 /* The GNU C library defines this for functions which it implements 13339 to always fail with ENOSYS. Some functions are actually named 13340 something starting with __ and the normal name is an alias. */ 13341 #if defined __stub_$ac_func || defined __stub___$ac_func 13342 choke me 13343 #endif 13344 13345 int 13346 main () 13347 { 13348 return $ac_func (); 13349 ; 13350 return 0; 13351 } 13352 _ACEOF 13353 rm -f conftest.$ac_objext conftest$ac_exeext 13354 if { (ac_try="$ac_link" 13355 case "(($ac_try" in 13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13357 *) ac_try_echo=$ac_try;; 13358 esac 13359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13360 $as_echo "$ac_try_echo") >&5 13361 (eval "$ac_link") 2>conftest.er1 13362 ac_status=$? 13363 grep -v '^ *+' conftest.er1 >conftest.err 13364 rm -f conftest.er1 13365 cat conftest.err >&5 13366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13367 (exit $ac_status); } && { 13368 test -z "$ac_cxx_werror_flag" || 13369 test ! -s conftest.err 13370 } && test -s conftest$ac_exeext && { 13371 test "$cross_compiling" = yes || 13372 $as_test_x conftest$ac_exeext 13373 }; then 13374 eval "$as_ac_var=yes" 13375 else 13376 $as_echo "$as_me: failed program was:" >&5 13377 sed 's/^/| /' conftest.$ac_ext >&5 13378 13379 eval "$as_ac_var=no" 13380 fi 13381 13382 rm -rf conftest.dSYM 13383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13384 conftest$ac_exeext conftest.$ac_ext 13385 fi 13386 ac_res=`eval 'as_val=${'$as_ac_var'} 13387 $as_echo "$as_val"'` 13388 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13389 $as_echo "$ac_res" >&6; } 13390 as_val=`eval 'as_val=${'$as_ac_var'} 13391 $as_echo "$as_val"'` 13392 if test "x$as_val" = x""yes; then 8691 do : 8692 ac_fn_cxx_check_func "$LINENO" "avformat_open_input" "ac_cv_func_avformat_open_input" 8693 if test "x$ac_cv_func_avformat_open_input" = xyes; then : 13393 8694 cat >>confdefs.h <<_ACEOF 13394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18695 #define HAVE_AVFORMAT_OPEN_INPUT 1 13395 8696 _ACEOF 13396 8697 … … 13398 8699 done 13399 8700 13400 13401 8701 for ac_func in av_open_input_file 13402 do 13403 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13404 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13405 $as_echo_n "checking for $ac_func... " >&6; } 13406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13407 $as_echo_n "(cached) " >&6 13408 else 13409 cat >conftest.$ac_ext <<_ACEOF 13410 /* confdefs.h. */ 13411 _ACEOF 13412 cat confdefs.h >>conftest.$ac_ext 13413 cat >>conftest.$ac_ext <<_ACEOF 13414 /* end confdefs.h. */ 13415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13416 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13417 #define $ac_func innocuous_$ac_func 13418 13419 /* System header to define __stub macros and hopefully few prototypes, 13420 which can conflict with char $ac_func (); below. 13421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13422 <limits.h> exists even on freestanding compilers. */ 13423 13424 #ifdef __STDC__ 13425 # include <limits.h> 13426 #else 13427 # include <assert.h> 13428 #endif 13429 13430 #undef $ac_func 13431 13432 /* Override any GCC internal prototype to avoid an error. 13433 Use char because int might match the return type of a GCC 13434 builtin and then its argument prototype would still apply. */ 13435 #ifdef __cplusplus 13436 extern "C" 13437 #endif 13438 char $ac_func (); 13439 /* The GNU C library defines this for functions which it implements 13440 to always fail with ENOSYS. Some functions are actually named 13441 something starting with __ and the normal name is an alias. */ 13442 #if defined __stub_$ac_func || defined __stub___$ac_func 13443 choke me 13444 #endif 13445 13446 int 13447 main () 13448 { 13449 return $ac_func (); 13450 ; 13451 return 0; 13452 } 13453 _ACEOF 13454 rm -f conftest.$ac_objext conftest$ac_exeext 13455 if { (ac_try="$ac_link" 13456 case "(($ac_try" in 13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13458 *) ac_try_echo=$ac_try;; 13459 esac 13460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13461 $as_echo "$ac_try_echo") >&5 13462 (eval "$ac_link") 2>conftest.er1 13463 ac_status=$? 13464 grep -v '^ *+' conftest.er1 >conftest.err 13465 rm -f conftest.er1 13466 cat conftest.err >&5 13467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13468 (exit $ac_status); } && { 13469 test -z "$ac_cxx_werror_flag" || 13470 test ! -s conftest.err 13471 } && test -s conftest$ac_exeext && { 13472 test "$cross_compiling" = yes || 13473 $as_test_x conftest$ac_exeext 13474 }; then 13475 eval "$as_ac_var=yes" 13476 else 13477 $as_echo "$as_me: failed program was:" >&5 13478 sed 's/^/| /' conftest.$ac_ext >&5 13479 13480 eval "$as_ac_var=no" 13481 fi 13482 13483 rm -rf conftest.dSYM 13484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13485 conftest$ac_exeext conftest.$ac_ext 13486 fi 13487 ac_res=`eval 'as_val=${'$as_ac_var'} 13488 $as_echo "$as_val"'` 13489 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13490 $as_echo "$ac_res" >&6; } 13491 as_val=`eval 'as_val=${'$as_ac_var'} 13492 $as_echo "$as_val"'` 13493 if test "x$as_val" = x""yes; then 8702 do : 8703 ac_fn_cxx_check_func "$LINENO" "av_open_input_file" "ac_cv_func_av_open_input_file" 8704 if test "x$ac_cv_func_av_open_input_file" = xyes; then : 13494 8705 cat >>confdefs.h <<_ACEOF 13495 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18706 #define HAVE_AV_OPEN_INPUT_FILE 1 13496 8707 _ACEOF 13497 8708 … … 13499 8710 done 13500 8711 13501 13502 8712 for ac_func in av_guess_format 13503 do 13504 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13505 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13506 $as_echo_n "checking for $ac_func... " >&6; } 13507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13508 $as_echo_n "(cached) " >&6 13509 else 13510 cat >conftest.$ac_ext <<_ACEOF 13511 /* confdefs.h. */ 13512 _ACEOF 13513 cat confdefs.h >>conftest.$ac_ext 13514 cat >>conftest.$ac_ext <<_ACEOF 13515 /* end confdefs.h. */ 13516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13517 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13518 #define $ac_func innocuous_$ac_func 13519 13520 /* System header to define __stub macros and hopefully few prototypes, 13521 which can conflict with char $ac_func (); below. 13522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13523 <limits.h> exists even on freestanding compilers. */ 13524 13525 #ifdef __STDC__ 13526 # include <limits.h> 13527 #else 13528 # include <assert.h> 13529 #endif 13530 13531 #undef $ac_func 13532 13533 /* Override any GCC internal prototype to avoid an error. 13534 Use char because int might match the return type of a GCC 13535 builtin and then its argument prototype would still apply. */ 13536 #ifdef __cplusplus 13537 extern "C" 13538 #endif 13539 char $ac_func (); 13540 /* The GNU C library defines this for functions which it implements 13541 to always fail with ENOSYS. Some functions are actually named 13542 something starting with __ and the normal name is an alias. */ 13543 #if defined __stub_$ac_func || defined __stub___$ac_func 13544 choke me 13545 #endif 13546 13547 int 13548 main () 13549 { 13550 return $ac_func (); 13551 ; 13552 return 0; 13553 } 13554 _ACEOF 13555 rm -f conftest.$ac_objext conftest$ac_exeext 13556 if { (ac_try="$ac_link" 13557 case "(($ac_try" in 13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13559 *) ac_try_echo=$ac_try;; 13560 esac 13561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13562 $as_echo "$ac_try_echo") >&5 13563 (eval "$ac_link") 2>conftest.er1 13564 ac_status=$? 13565 grep -v '^ *+' conftest.er1 >conftest.err 13566 rm -f conftest.er1 13567 cat conftest.err >&5 13568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13569 (exit $ac_status); } && { 13570 test -z "$ac_cxx_werror_flag" || 13571 test ! -s conftest.err 13572 } && test -s conftest$ac_exeext && { 13573 test "$cross_compiling" = yes || 13574 $as_test_x conftest$ac_exeext 13575 }; then 13576 eval "$as_ac_var=yes" 13577 else 13578 $as_echo "$as_me: failed program was:" >&5 13579 sed 's/^/| /' conftest.$ac_ext >&5 13580 13581 eval "$as_ac_var=no" 13582 fi 13583 13584 rm -rf conftest.dSYM 13585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13586 conftest$ac_exeext conftest.$ac_ext 13587 fi 13588 ac_res=`eval 'as_val=${'$as_ac_var'} 13589 $as_echo "$as_val"'` 13590 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13591 $as_echo "$ac_res" >&6; } 13592 as_val=`eval 'as_val=${'$as_ac_var'} 13593 $as_echo "$as_val"'` 13594 if test "x$as_val" = x""yes; then 8713 do : 8714 ac_fn_cxx_check_func "$LINENO" "av_guess_format" "ac_cv_func_av_guess_format" 8715 if test "x$ac_cv_func_av_guess_format" = xyes; then : 13595 8716 cat >>confdefs.h <<_ACEOF 13596 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18717 #define HAVE_AV_GUESS_FORMAT 1 13597 8718 _ACEOF 13598 8719 … … 13600 8721 done 13601 8722 13602 13603 8723 for ac_func in guess_format 13604 do 13605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13606 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13607 $as_echo_n "checking for $ac_func... " >&6; } 13608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13609 $as_echo_n "(cached) " >&6 13610 else 13611 cat >conftest.$ac_ext <<_ACEOF 13612 /* confdefs.h. */ 13613 _ACEOF 13614 cat confdefs.h >>conftest.$ac_ext 13615 cat >>conftest.$ac_ext <<_ACEOF 13616 /* end confdefs.h. */ 13617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13618 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13619 #define $ac_func innocuous_$ac_func 13620 13621 /* System header to define __stub macros and hopefully few prototypes, 13622 which can conflict with char $ac_func (); below. 13623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13624 <limits.h> exists even on freestanding compilers. */ 13625 13626 #ifdef __STDC__ 13627 # include <limits.h> 13628 #else 13629 # include <assert.h> 13630 #endif 13631 13632 #undef $ac_func 13633 13634 /* Override any GCC internal prototype to avoid an error. 13635 Use char because int might match the return type of a GCC 13636 builtin and then its argument prototype would still apply. */ 13637 #ifdef __cplusplus 13638 extern "C" 13639 #endif 13640 char $ac_func (); 13641 /* The GNU C library defines this for functions which it implements 13642 to always fail with ENOSYS. Some functions are actually named 13643 something starting with __ and the normal name is an alias. */ 13644 #if defined __stub_$ac_func || defined __stub___$ac_func 13645 choke me 13646 #endif 13647 13648 int 13649 main () 13650 { 13651 return $ac_func (); 13652 ; 13653 return 0; 13654 } 13655 _ACEOF 13656 rm -f conftest.$ac_objext conftest$ac_exeext 13657 if { (ac_try="$ac_link" 13658 case "(($ac_try" in 13659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13660 *) ac_try_echo=$ac_try;; 13661 esac 13662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13663 $as_echo "$ac_try_echo") >&5 13664 (eval "$ac_link") 2>conftest.er1 13665 ac_status=$? 13666 grep -v '^ *+' conftest.er1 >conftest.err 13667 rm -f conftest.er1 13668 cat conftest.err >&5 13669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13670 (exit $ac_status); } && { 13671 test -z "$ac_cxx_werror_flag" || 13672 test ! -s conftest.err 13673 } && test -s conftest$ac_exeext && { 13674 test "$cross_compiling" = yes || 13675 $as_test_x conftest$ac_exeext 13676 }; then 13677 eval "$as_ac_var=yes" 13678 else 13679 $as_echo "$as_me: failed program was:" >&5 13680 sed 's/^/| /' conftest.$ac_ext >&5 13681 13682 eval "$as_ac_var=no" 13683 fi 13684 13685 rm -rf conftest.dSYM 13686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13687 conftest$ac_exeext conftest.$ac_ext 13688 fi 13689 ac_res=`eval 'as_val=${'$as_ac_var'} 13690 $as_echo "$as_val"'` 13691 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13692 $as_echo "$ac_res" >&6; } 13693 as_val=`eval 'as_val=${'$as_ac_var'} 13694 $as_echo "$as_val"'` 13695 if test "x$as_val" = x""yes; then 8724 do : 8725 ac_fn_cxx_check_func "$LINENO" "guess_format" "ac_cv_func_guess_format" 8726 if test "x$ac_cv_func_guess_format" = xyes; then : 13696 8727 cat >>confdefs.h <<_ACEOF 13697 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18728 #define HAVE_GUESS_FORMAT 1 13698 8729 _ACEOF 13699 8730 … … 13701 8732 done 13702 8733 13703 13704 8734 for ac_func in av_dump_format 13705 do 13706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13707 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13708 $as_echo_n "checking for $ac_func... " >&6; } 13709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13710 $as_echo_n "(cached) " >&6 13711 else 13712 cat >conftest.$ac_ext <<_ACEOF 13713 /* confdefs.h. */ 13714 _ACEOF 13715 cat confdefs.h >>conftest.$ac_ext 13716 cat >>conftest.$ac_ext <<_ACEOF 13717 /* end confdefs.h. */ 13718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13719 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13720 #define $ac_func innocuous_$ac_func 13721 13722 /* System header to define __stub macros and hopefully few prototypes, 13723 which can conflict with char $ac_func (); below. 13724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13725 <limits.h> exists even on freestanding compilers. */ 13726 13727 #ifdef __STDC__ 13728 # include <limits.h> 13729 #else 13730 # include <assert.h> 13731 #endif 13732 13733 #undef $ac_func 13734 13735 /* Override any GCC internal prototype to avoid an error. 13736 Use char because int might match the return type of a GCC 13737 builtin and then its argument prototype would still apply. */ 13738 #ifdef __cplusplus 13739 extern "C" 13740 #endif 13741 char $ac_func (); 13742 /* The GNU C library defines this for functions which it implements 13743 to always fail with ENOSYS. Some functions are actually named 13744 something starting with __ and the normal name is an alias. */ 13745 #if defined __stub_$ac_func || defined __stub___$ac_func 13746 choke me 13747 #endif 13748 13749 int 13750 main () 13751 { 13752 return $ac_func (); 13753 ; 13754 return 0; 13755 } 13756 _ACEOF 13757 rm -f conftest.$ac_objext conftest$ac_exeext 13758 if { (ac_try="$ac_link" 13759 case "(($ac_try" in 13760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13761 *) ac_try_echo=$ac_try;; 13762 esac 13763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13764 $as_echo "$ac_try_echo") >&5 13765 (eval "$ac_link") 2>conftest.er1 13766 ac_status=$? 13767 grep -v '^ *+' conftest.er1 >conftest.err 13768 rm -f conftest.er1 13769 cat conftest.err >&5 13770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13771 (exit $ac_status); } && { 13772 test -z "$ac_cxx_werror_flag" || 13773 test ! -s conftest.err 13774 } && test -s conftest$ac_exeext && { 13775 test "$cross_compiling" = yes || 13776 $as_test_x conftest$ac_exeext 13777 }; then 13778 eval "$as_ac_var=yes" 13779 else 13780 $as_echo "$as_me: failed program was:" >&5 13781 sed 's/^/| /' conftest.$ac_ext >&5 13782 13783 eval "$as_ac_var=no" 13784 fi 13785 13786 rm -rf conftest.dSYM 13787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13788 conftest$ac_exeext conftest.$ac_ext 13789 fi 13790 ac_res=`eval 'as_val=${'$as_ac_var'} 13791 $as_echo "$as_val"'` 13792 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13793 $as_echo "$ac_res" >&6; } 13794 as_val=`eval 'as_val=${'$as_ac_var'} 13795 $as_echo "$as_val"'` 13796 if test "x$as_val" = x""yes; then 8735 do : 8736 ac_fn_cxx_check_func "$LINENO" "av_dump_format" "ac_cv_func_av_dump_format" 8737 if test "x$ac_cv_func_av_dump_format" = xyes; then : 13797 8738 cat >>confdefs.h <<_ACEOF 13798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18739 #define HAVE_AV_DUMP_FORMAT 1 13799 8740 _ACEOF 13800 8741 … … 13802 8743 done 13803 8744 13804 13805 8745 for ac_func in dump_format 13806 do 13807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13808 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13809 $as_echo_n "checking for $ac_func... " >&6; } 13810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13811 $as_echo_n "(cached) " >&6 13812 else 13813 cat >conftest.$ac_ext <<_ACEOF 13814 /* confdefs.h. */ 13815 _ACEOF 13816 cat confdefs.h >>conftest.$ac_ext 13817 cat >>conftest.$ac_ext <<_ACEOF 13818 /* end confdefs.h. */ 13819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13820 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13821 #define $ac_func innocuous_$ac_func 13822 13823 /* System header to define __stub macros and hopefully few prototypes, 13824 which can conflict with char $ac_func (); below. 13825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13826 <limits.h> exists even on freestanding compilers. */ 13827 13828 #ifdef __STDC__ 13829 # include <limits.h> 13830 #else 13831 # include <assert.h> 13832 #endif 13833 13834 #undef $ac_func 13835 13836 /* Override any GCC internal prototype to avoid an error. 13837 Use char because int might match the return type of a GCC 13838 builtin and then its argument prototype would still apply. */ 13839 #ifdef __cplusplus 13840 extern "C" 13841 #endif 13842 char $ac_func (); 13843 /* The GNU C library defines this for functions which it implements 13844 to always fail with ENOSYS. Some functions are actually named 13845 something starting with __ and the normal name is an alias. */ 13846 #if defined __stub_$ac_func || defined __stub___$ac_func 13847 choke me 13848 #endif 13849 13850 int 13851 main () 13852 { 13853 return $ac_func (); 13854 ; 13855 return 0; 13856 } 13857 _ACEOF 13858 rm -f conftest.$ac_objext conftest$ac_exeext 13859 if { (ac_try="$ac_link" 13860 case "(($ac_try" in 13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13862 *) ac_try_echo=$ac_try;; 13863 esac 13864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13865 $as_echo "$ac_try_echo") >&5 13866 (eval "$ac_link") 2>conftest.er1 13867 ac_status=$? 13868 grep -v '^ *+' conftest.er1 >conftest.err 13869 rm -f conftest.er1 13870 cat conftest.err >&5 13871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13872 (exit $ac_status); } && { 13873 test -z "$ac_cxx_werror_flag" || 13874 test ! -s conftest.err 13875 } && test -s conftest$ac_exeext && { 13876 test "$cross_compiling" = yes || 13877 $as_test_x conftest$ac_exeext 13878 }; then 13879 eval "$as_ac_var=yes" 13880 else 13881 $as_echo "$as_me: failed program was:" >&5 13882 sed 's/^/| /' conftest.$ac_ext >&5 13883 13884 eval "$as_ac_var=no" 13885 fi 13886 13887 rm -rf conftest.dSYM 13888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13889 conftest$ac_exeext conftest.$ac_ext 13890 fi 13891 ac_res=`eval 'as_val=${'$as_ac_var'} 13892 $as_echo "$as_val"'` 13893 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13894 $as_echo "$ac_res" >&6; } 13895 as_val=`eval 'as_val=${'$as_ac_var'} 13896 $as_echo "$as_val"'` 13897 if test "x$as_val" = x""yes; then 8746 do : 8747 ac_fn_cxx_check_func "$LINENO" "dump_format" "ac_cv_func_dump_format" 8748 if test "x$ac_cv_func_dump_format" = xyes; then : 13898 8749 cat >>confdefs.h <<_ACEOF 13899 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18750 #define HAVE_DUMP_FORMAT 1 13900 8751 _ACEOF 13901 8752 … … 13903 8754 done 13904 8755 13905 13906 8756 for ac_func in avio_open 13907 do 13908 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13909 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13910 $as_echo_n "checking for $ac_func... " >&6; } 13911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13912 $as_echo_n "(cached) " >&6 13913 else 13914 cat >conftest.$ac_ext <<_ACEOF 13915 /* confdefs.h. */ 13916 _ACEOF 13917 cat confdefs.h >>conftest.$ac_ext 13918 cat >>conftest.$ac_ext <<_ACEOF 13919 /* end confdefs.h. */ 13920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13921 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13922 #define $ac_func innocuous_$ac_func 13923 13924 /* System header to define __stub macros and hopefully few prototypes, 13925 which can conflict with char $ac_func (); below. 13926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13927 <limits.h> exists even on freestanding compilers. */ 13928 13929 #ifdef __STDC__ 13930 # include <limits.h> 13931 #else 13932 # include <assert.h> 13933 #endif 13934 13935 #undef $ac_func 13936 13937 /* Override any GCC internal prototype to avoid an error. 13938 Use char because int might match the return type of a GCC 13939 builtin and then its argument prototype would still apply. */ 13940 #ifdef __cplusplus 13941 extern "C" 13942 #endif 13943 char $ac_func (); 13944 /* The GNU C library defines this for functions which it implements 13945 to always fail with ENOSYS. Some functions are actually named 13946 something starting with __ and the normal name is an alias. */ 13947 #if defined __stub_$ac_func || defined __stub___$ac_func 13948 choke me 13949 #endif 13950 13951 int 13952 main () 13953 { 13954 return $ac_func (); 13955 ; 13956 return 0; 13957 } 13958 _ACEOF 13959 rm -f conftest.$ac_objext conftest$ac_exeext 13960 if { (ac_try="$ac_link" 13961 case "(($ac_try" in 13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13963 *) ac_try_echo=$ac_try;; 13964 esac 13965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13966 $as_echo "$ac_try_echo") >&5 13967 (eval "$ac_link") 2>conftest.er1 13968 ac_status=$? 13969 grep -v '^ *+' conftest.er1 >conftest.err 13970 rm -f conftest.er1 13971 cat conftest.err >&5 13972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13973 (exit $ac_status); } && { 13974 test -z "$ac_cxx_werror_flag" || 13975 test ! -s conftest.err 13976 } && test -s conftest$ac_exeext && { 13977 test "$cross_compiling" = yes || 13978 $as_test_x conftest$ac_exeext 13979 }; then 13980 eval "$as_ac_var=yes" 13981 else 13982 $as_echo "$as_me: failed program was:" >&5 13983 sed 's/^/| /' conftest.$ac_ext >&5 13984 13985 eval "$as_ac_var=no" 13986 fi 13987 13988 rm -rf conftest.dSYM 13989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13990 conftest$ac_exeext conftest.$ac_ext 13991 fi 13992 ac_res=`eval 'as_val=${'$as_ac_var'} 13993 $as_echo "$as_val"'` 13994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13995 $as_echo "$ac_res" >&6; } 13996 as_val=`eval 'as_val=${'$as_ac_var'} 13997 $as_echo "$as_val"'` 13998 if test "x$as_val" = x""yes; then 8757 do : 8758 ac_fn_cxx_check_func "$LINENO" "avio_open" "ac_cv_func_avio_open" 8759 if test "x$ac_cv_func_avio_open" = xyes; then : 13999 8760 cat >>confdefs.h <<_ACEOF 14000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18761 #define HAVE_AVIO_OPEN 1 14001 8762 _ACEOF 14002 8763 … … 14004 8765 done 14005 8766 14006 14007 8767 for ac_func in url_fopen 14008 do 14009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14010 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14011 $as_echo_n "checking for $ac_func... " >&6; } 14012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14013 $as_echo_n "(cached) " >&6 14014 else 14015 cat >conftest.$ac_ext <<_ACEOF 14016 /* confdefs.h. */ 14017 _ACEOF 14018 cat confdefs.h >>conftest.$ac_ext 14019 cat >>conftest.$ac_ext <<_ACEOF 14020 /* end confdefs.h. */ 14021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14022 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14023 #define $ac_func innocuous_$ac_func 14024 14025 /* System header to define __stub macros and hopefully few prototypes, 14026 which can conflict with char $ac_func (); below. 14027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14028 <limits.h> exists even on freestanding compilers. */ 14029 14030 #ifdef __STDC__ 14031 # include <limits.h> 14032 #else 14033 # include <assert.h> 14034 #endif 14035 14036 #undef $ac_func 14037 14038 /* Override any GCC internal prototype to avoid an error. 14039 Use char because int might match the return type of a GCC 14040 builtin and then its argument prototype would still apply. */ 14041 #ifdef __cplusplus 14042 extern "C" 14043 #endif 14044 char $ac_func (); 14045 /* The GNU C library defines this for functions which it implements 14046 to always fail with ENOSYS. Some functions are actually named 14047 something starting with __ and the normal name is an alias. */ 14048 #if defined __stub_$ac_func || defined __stub___$ac_func 14049 choke me 14050 #endif 14051 14052 int 14053 main () 14054 { 14055 return $ac_func (); 14056 ; 14057 return 0; 14058 } 14059 _ACEOF 14060 rm -f conftest.$ac_objext conftest$ac_exeext 14061 if { (ac_try="$ac_link" 14062 case "(($ac_try" in 14063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14064 *) ac_try_echo=$ac_try;; 14065 esac 14066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14067 $as_echo "$ac_try_echo") >&5 14068 (eval "$ac_link") 2>conftest.er1 14069 ac_status=$? 14070 grep -v '^ *+' conftest.er1 >conftest.err 14071 rm -f conftest.er1 14072 cat conftest.err >&5 14073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14074 (exit $ac_status); } && { 14075 test -z "$ac_cxx_werror_flag" || 14076 test ! -s conftest.err 14077 } && test -s conftest$ac_exeext && { 14078 test "$cross_compiling" = yes || 14079 $as_test_x conftest$ac_exeext 14080 }; then 14081 eval "$as_ac_var=yes" 14082 else 14083 $as_echo "$as_me: failed program was:" >&5 14084 sed 's/^/| /' conftest.$ac_ext >&5 14085 14086 eval "$as_ac_var=no" 14087 fi 14088 14089 rm -rf conftest.dSYM 14090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14091 conftest$ac_exeext conftest.$ac_ext 14092 fi 14093 ac_res=`eval 'as_val=${'$as_ac_var'} 14094 $as_echo "$as_val"'` 14095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14096 $as_echo "$ac_res" >&6; } 14097 as_val=`eval 'as_val=${'$as_ac_var'} 14098 $as_echo "$as_val"'` 14099 if test "x$as_val" = x""yes; then 8768 do : 8769 ac_fn_cxx_check_func "$LINENO" "url_fopen" "ac_cv_func_url_fopen" 8770 if test "x$ac_cv_func_url_fopen" = xyes; then : 14100 8771 cat >>confdefs.h <<_ACEOF 14101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18772 #define HAVE_URL_FOPEN 1 14102 8773 _ACEOF 14103 8774 … … 14105 8776 done 14106 8777 14107 14108 8778 for ac_func in avio_close 14109 do 14110 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14111 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14112 $as_echo_n "checking for $ac_func... " >&6; } 14113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14114 $as_echo_n "(cached) " >&6 14115 else 14116 cat >conftest.$ac_ext <<_ACEOF 14117 /* confdefs.h. */ 14118 _ACEOF 14119 cat confdefs.h >>conftest.$ac_ext 14120 cat >>conftest.$ac_ext <<_ACEOF 14121 /* end confdefs.h. */ 14122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14123 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14124 #define $ac_func innocuous_$ac_func 14125 14126 /* System header to define __stub macros and hopefully few prototypes, 14127 which can conflict with char $ac_func (); below. 14128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14129 <limits.h> exists even on freestanding compilers. */ 14130 14131 #ifdef __STDC__ 14132 # include <limits.h> 14133 #else 14134 # include <assert.h> 14135 #endif 14136 14137 #undef $ac_func 14138 14139 /* Override any GCC internal prototype to avoid an error. 14140 Use char because int might match the return type of a GCC 14141 builtin and then its argument prototype would still apply. */ 14142 #ifdef __cplusplus 14143 extern "C" 14144 #endif 14145 char $ac_func (); 14146 /* The GNU C library defines this for functions which it implements 14147 to always fail with ENOSYS. Some functions are actually named 14148 something starting with __ and the normal name is an alias. */ 14149 #if defined __stub_$ac_func || defined __stub___$ac_func 14150 choke me 14151 #endif 14152 14153 int 14154 main () 14155 { 14156 return $ac_func (); 14157 ; 14158 return 0; 14159 } 14160 _ACEOF 14161 rm -f conftest.$ac_objext conftest$ac_exeext 14162 if { (ac_try="$ac_link" 14163 case "(($ac_try" in 14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14165 *) ac_try_echo=$ac_try;; 14166 esac 14167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14168 $as_echo "$ac_try_echo") >&5 14169 (eval "$ac_link") 2>conftest.er1 14170 ac_status=$? 14171 grep -v '^ *+' conftest.er1 >conftest.err 14172 rm -f conftest.er1 14173 cat conftest.err >&5 14174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14175 (exit $ac_status); } && { 14176 test -z "$ac_cxx_werror_flag" || 14177 test ! -s conftest.err 14178 } && test -s conftest$ac_exeext && { 14179 test "$cross_compiling" = yes || 14180 $as_test_x conftest$ac_exeext 14181 }; then 14182 eval "$as_ac_var=yes" 14183 else 14184 $as_echo "$as_me: failed program was:" >&5 14185 sed 's/^/| /' conftest.$ac_ext >&5 14186 14187 eval "$as_ac_var=no" 14188 fi 14189 14190 rm -rf conftest.dSYM 14191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14192 conftest$ac_exeext conftest.$ac_ext 14193 fi 14194 ac_res=`eval 'as_val=${'$as_ac_var'} 14195 $as_echo "$as_val"'` 14196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14197 $as_echo "$ac_res" >&6; } 14198 as_val=`eval 'as_val=${'$as_ac_var'} 14199 $as_echo "$as_val"'` 14200 if test "x$as_val" = x""yes; then 8779 do : 8780 ac_fn_cxx_check_func "$LINENO" "avio_close" "ac_cv_func_avio_close" 8781 if test "x$ac_cv_func_avio_close" = xyes; then : 14201 8782 cat >>confdefs.h <<_ACEOF 14202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18783 #define HAVE_AVIO_CLOSE 1 14203 8784 _ACEOF 14204 8785 … … 14206 8787 done 14207 8788 14208 14209 8789 for ac_func in url_fclose 14210 do 14211 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14212 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14213 $as_echo_n "checking for $ac_func... " >&6; } 14214 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14215 $as_echo_n "(cached) " >&6 14216 else 14217 cat >conftest.$ac_ext <<_ACEOF 14218 /* confdefs.h. */ 14219 _ACEOF 14220 cat confdefs.h >>conftest.$ac_ext 14221 cat >>conftest.$ac_ext <<_ACEOF 14222 /* end confdefs.h. */ 14223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14224 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14225 #define $ac_func innocuous_$ac_func 14226 14227 /* System header to define __stub macros and hopefully few prototypes, 14228 which can conflict with char $ac_func (); below. 14229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14230 <limits.h> exists even on freestanding compilers. */ 14231 14232 #ifdef __STDC__ 14233 # include <limits.h> 14234 #else 14235 # include <assert.h> 14236 #endif 14237 14238 #undef $ac_func 14239 14240 /* Override any GCC internal prototype to avoid an error. 14241 Use char because int might match the return type of a GCC 14242 builtin and then its argument prototype would still apply. */ 14243 #ifdef __cplusplus 14244 extern "C" 14245 #endif 14246 char $ac_func (); 14247 /* The GNU C library defines this for functions which it implements 14248 to always fail with ENOSYS. Some functions are actually named 14249 something starting with __ and the normal name is an alias. */ 14250 #if defined __stub_$ac_func || defined __stub___$ac_func 14251 choke me 14252 #endif 14253 14254 int 14255 main () 14256 { 14257 return $ac_func (); 14258 ; 14259 return 0; 14260 } 14261 _ACEOF 14262 rm -f conftest.$ac_objext conftest$ac_exeext 14263 if { (ac_try="$ac_link" 14264 case "(($ac_try" in 14265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14266 *) ac_try_echo=$ac_try;; 14267 esac 14268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14269 $as_echo "$ac_try_echo") >&5 14270 (eval "$ac_link") 2>conftest.er1 14271 ac_status=$? 14272 grep -v '^ *+' conftest.er1 >conftest.err 14273 rm -f conftest.er1 14274 cat conftest.err >&5 14275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14276 (exit $ac_status); } && { 14277 test -z "$ac_cxx_werror_flag" || 14278 test ! -s conftest.err 14279 } && test -s conftest$ac_exeext && { 14280 test "$cross_compiling" = yes || 14281 $as_test_x conftest$ac_exeext 14282 }; then 14283 eval "$as_ac_var=yes" 14284 else 14285 $as_echo "$as_me: failed program was:" >&5 14286 sed 's/^/| /' conftest.$ac_ext >&5 14287 14288 eval "$as_ac_var=no" 14289 fi 14290 14291 rm -rf conftest.dSYM 14292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14293 conftest$ac_exeext conftest.$ac_ext 14294 fi 14295 ac_res=`eval 'as_val=${'$as_ac_var'} 14296 $as_echo "$as_val"'` 14297 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14298 $as_echo "$ac_res" >&6; } 14299 as_val=`eval 'as_val=${'$as_ac_var'} 14300 $as_echo "$as_val"'` 14301 if test "x$as_val" = x""yes; then 8790 do : 8791 ac_fn_cxx_check_func "$LINENO" "url_fclose" "ac_cv_func_url_fclose" 8792 if test "x$ac_cv_func_url_fclose" = xyes; then : 14302 8793 cat >>confdefs.h <<_ACEOF 14303 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18794 #define HAVE_URL_FCLOSE 1 14304 8795 _ACEOF 14305 8796 … … 14307 8798 done 14308 8799 14309 14310 8800 for ac_func in avformat_alloc_context 14311 do 14312 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14313 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14314 $as_echo_n "checking for $ac_func... " >&6; } 14315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14316 $as_echo_n "(cached) " >&6 14317 else 14318 cat >conftest.$ac_ext <<_ACEOF 14319 /* confdefs.h. */ 14320 _ACEOF 14321 cat confdefs.h >>conftest.$ac_ext 14322 cat >>conftest.$ac_ext <<_ACEOF 14323 /* end confdefs.h. */ 14324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14325 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14326 #define $ac_func innocuous_$ac_func 14327 14328 /* System header to define __stub macros and hopefully few prototypes, 14329 which can conflict with char $ac_func (); below. 14330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14331 <limits.h> exists even on freestanding compilers. */ 14332 14333 #ifdef __STDC__ 14334 # include <limits.h> 14335 #else 14336 # include <assert.h> 14337 #endif 14338 14339 #undef $ac_func 14340 14341 /* Override any GCC internal prototype to avoid an error. 14342 Use char because int might match the return type of a GCC 14343 builtin and then its argument prototype would still apply. */ 14344 #ifdef __cplusplus 14345 extern "C" 14346 #endif 14347 char $ac_func (); 14348 /* The GNU C library defines this for functions which it implements 14349 to always fail with ENOSYS. Some functions are actually named 14350 something starting with __ and the normal name is an alias. */ 14351 #if defined __stub_$ac_func || defined __stub___$ac_func 14352 choke me 14353 #endif 14354 14355 int 14356 main () 14357 { 14358 return $ac_func (); 14359 ; 14360 return 0; 14361 } 14362 _ACEOF 14363 rm -f conftest.$ac_objext conftest$ac_exeext 14364 if { (ac_try="$ac_link" 14365 case "(($ac_try" in 14366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14367 *) ac_try_echo=$ac_try;; 14368 esac 14369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14370 $as_echo "$ac_try_echo") >&5 14371 (eval "$ac_link") 2>conftest.er1 14372 ac_status=$? 14373 grep -v '^ *+' conftest.er1 >conftest.err 14374 rm -f conftest.er1 14375 cat conftest.err >&5 14376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14377 (exit $ac_status); } && { 14378 test -z "$ac_cxx_werror_flag" || 14379 test ! -s conftest.err 14380 } && test -s conftest$ac_exeext && { 14381 test "$cross_compiling" = yes || 14382 $as_test_x conftest$ac_exeext 14383 }; then 14384 eval "$as_ac_var=yes" 14385 else 14386 $as_echo "$as_me: failed program was:" >&5 14387 sed 's/^/| /' conftest.$ac_ext >&5 14388 14389 eval "$as_ac_var=no" 14390 fi 14391 14392 rm -rf conftest.dSYM 14393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14394 conftest$ac_exeext conftest.$ac_ext 14395 fi 14396 ac_res=`eval 'as_val=${'$as_ac_var'} 14397 $as_echo "$as_val"'` 14398 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14399 $as_echo "$ac_res" >&6; } 14400 as_val=`eval 'as_val=${'$as_ac_var'} 14401 $as_echo "$as_val"'` 14402 if test "x$as_val" = x""yes; then 8801 do : 8802 ac_fn_cxx_check_func "$LINENO" "avformat_alloc_context" "ac_cv_func_avformat_alloc_context" 8803 if test "x$ac_cv_func_avformat_alloc_context" = xyes; then : 14403 8804 cat >>confdefs.h <<_ACEOF 14404 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18805 #define HAVE_AVFORMAT_ALLOC_CONTEXT 1 14405 8806 _ACEOF 14406 8807 … … 14408 8809 done 14409 8810 14410 14411 8811 for ac_func in av_alloc_format_context 14412 do 14413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14414 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14415 $as_echo_n "checking for $ac_func... " >&6; } 14416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14417 $as_echo_n "(cached) " >&6 14418 else 14419 cat >conftest.$ac_ext <<_ACEOF 14420 /* confdefs.h. */ 14421 _ACEOF 14422 cat confdefs.h >>conftest.$ac_ext 14423 cat >>conftest.$ac_ext <<_ACEOF 14424 /* end confdefs.h. */ 14425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14426 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14427 #define $ac_func innocuous_$ac_func 14428 14429 /* System header to define __stub macros and hopefully few prototypes, 14430 which can conflict with char $ac_func (); below. 14431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14432 <limits.h> exists even on freestanding compilers. */ 14433 14434 #ifdef __STDC__ 14435 # include <limits.h> 14436 #else 14437 # include <assert.h> 14438 #endif 14439 14440 #undef $ac_func 14441 14442 /* Override any GCC internal prototype to avoid an error. 14443 Use char because int might match the return type of a GCC 14444 builtin and then its argument prototype would still apply. */ 14445 #ifdef __cplusplus 14446 extern "C" 14447 #endif 14448 char $ac_func (); 14449 /* The GNU C library defines this for functions which it implements 14450 to always fail with ENOSYS. Some functions are actually named 14451 something starting with __ and the normal name is an alias. */ 14452 #if defined __stub_$ac_func || defined __stub___$ac_func 14453 choke me 14454 #endif 14455 14456 int 14457 main () 14458 { 14459 return $ac_func (); 14460 ; 14461 return 0; 14462 } 14463 _ACEOF 14464 rm -f conftest.$ac_objext conftest$ac_exeext 14465 if { (ac_try="$ac_link" 14466 case "(($ac_try" in 14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14468 *) ac_try_echo=$ac_try;; 14469 esac 14470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14471 $as_echo "$ac_try_echo") >&5 14472 (eval "$ac_link") 2>conftest.er1 14473 ac_status=$? 14474 grep -v '^ *+' conftest.er1 >conftest.err 14475 rm -f conftest.er1 14476 cat conftest.err >&5 14477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14478 (exit $ac_status); } && { 14479 test -z "$ac_cxx_werror_flag" || 14480 test ! -s conftest.err 14481 } && test -s conftest$ac_exeext && { 14482 test "$cross_compiling" = yes || 14483 $as_test_x conftest$ac_exeext 14484 }; then 14485 eval "$as_ac_var=yes" 14486 else 14487 $as_echo "$as_me: failed program was:" >&5 14488 sed 's/^/| /' conftest.$ac_ext >&5 14489 14490 eval "$as_ac_var=no" 14491 fi 14492 14493 rm -rf conftest.dSYM 14494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14495 conftest$ac_exeext conftest.$ac_ext 14496 fi 14497 ac_res=`eval 'as_val=${'$as_ac_var'} 14498 $as_echo "$as_val"'` 14499 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14500 $as_echo "$ac_res" >&6; } 14501 as_val=`eval 'as_val=${'$as_ac_var'} 14502 $as_echo "$as_val"'` 14503 if test "x$as_val" = x""yes; then 8812 do : 8813 ac_fn_cxx_check_func "$LINENO" "av_alloc_format_context" "ac_cv_func_av_alloc_format_context" 8814 if test "x$ac_cv_func_av_alloc_format_context" = xyes; then : 14504 8815 cat >>confdefs.h <<_ACEOF 14505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18816 #define HAVE_AV_ALLOC_FORMAT_CONTEXT 1 14506 8817 _ACEOF 14507 8818 … … 14509 8820 done 14510 8821 14511 14512 8822 for ac_func in av_set_parameters 14513 do 14514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14515 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14516 $as_echo_n "checking for $ac_func... " >&6; } 14517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14518 $as_echo_n "(cached) " >&6 14519 else 14520 cat >conftest.$ac_ext <<_ACEOF 14521 /* confdefs.h. */ 14522 _ACEOF 14523 cat confdefs.h >>conftest.$ac_ext 14524 cat >>conftest.$ac_ext <<_ACEOF 14525 /* end confdefs.h. */ 14526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14527 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14528 #define $ac_func innocuous_$ac_func 14529 14530 /* System header to define __stub macros and hopefully few prototypes, 14531 which can conflict with char $ac_func (); below. 14532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14533 <limits.h> exists even on freestanding compilers. */ 14534 14535 #ifdef __STDC__ 14536 # include <limits.h> 14537 #else 14538 # include <assert.h> 14539 #endif 14540 14541 #undef $ac_func 14542 14543 /* Override any GCC internal prototype to avoid an error. 14544 Use char because int might match the return type of a GCC 14545 builtin and then its argument prototype would still apply. */ 14546 #ifdef __cplusplus 14547 extern "C" 14548 #endif 14549 char $ac_func (); 14550 /* The GNU C library defines this for functions which it implements 14551 to always fail with ENOSYS. Some functions are actually named 14552 something starting with __ and the normal name is an alias. */ 14553 #if defined __stub_$ac_func || defined __stub___$ac_func 14554 choke me 14555 #endif 14556 14557 int 14558 main () 14559 { 14560 return $ac_func (); 14561 ; 14562 return 0; 14563 } 14564 _ACEOF 14565 rm -f conftest.$ac_objext conftest$ac_exeext 14566 if { (ac_try="$ac_link" 14567 case "(($ac_try" in 14568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14569 *) ac_try_echo=$ac_try;; 14570 esac 14571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14572 $as_echo "$ac_try_echo") >&5 14573 (eval "$ac_link") 2>conftest.er1 14574 ac_status=$? 14575 grep -v '^ *+' conftest.er1 >conftest.err 14576 rm -f conftest.er1 14577 cat conftest.err >&5 14578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14579 (exit $ac_status); } && { 14580 test -z "$ac_cxx_werror_flag" || 14581 test ! -s conftest.err 14582 } && test -s conftest$ac_exeext && { 14583 test "$cross_compiling" = yes || 14584 $as_test_x conftest$ac_exeext 14585 }; then 14586 eval "$as_ac_var=yes" 14587 else 14588 $as_echo "$as_me: failed program was:" >&5 14589 sed 's/^/| /' conftest.$ac_ext >&5 14590 14591 eval "$as_ac_var=no" 14592 fi 14593 14594 rm -rf conftest.dSYM 14595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14596 conftest$ac_exeext conftest.$ac_ext 14597 fi 14598 ac_res=`eval 'as_val=${'$as_ac_var'} 14599 $as_echo "$as_val"'` 14600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14601 $as_echo "$ac_res" >&6; } 14602 as_val=`eval 'as_val=${'$as_ac_var'} 14603 $as_echo "$as_val"'` 14604 if test "x$as_val" = x""yes; then 8823 do : 8824 ac_fn_cxx_check_func "$LINENO" "av_set_parameters" "ac_cv_func_av_set_parameters" 8825 if test "x$ac_cv_func_av_set_parameters" = xyes; then : 14605 8826 cat >>confdefs.h <<_ACEOF 14606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18827 #define HAVE_AV_SET_PARAMETERS 1 14607 8828 _ACEOF 14608 8829 … … 14610 8831 done 14611 8832 14612 14613 8833 for ac_func in avformat_write_header 14614 do 14615 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14616 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14617 $as_echo_n "checking for $ac_func... " >&6; } 14618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14619 $as_echo_n "(cached) " >&6 14620 else 14621 cat >conftest.$ac_ext <<_ACEOF 14622 /* confdefs.h. */ 14623 _ACEOF 14624 cat confdefs.h >>conftest.$ac_ext 14625 cat >>conftest.$ac_ext <<_ACEOF 14626 /* end confdefs.h. */ 14627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14628 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14629 #define $ac_func innocuous_$ac_func 14630 14631 /* System header to define __stub macros and hopefully few prototypes, 14632 which can conflict with char $ac_func (); below. 14633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14634 <limits.h> exists even on freestanding compilers. */ 14635 14636 #ifdef __STDC__ 14637 # include <limits.h> 14638 #else 14639 # include <assert.h> 14640 #endif 14641 14642 #undef $ac_func 14643 14644 /* Override any GCC internal prototype to avoid an error. 14645 Use char because int might match the return type of a GCC 14646 builtin and then its argument prototype would still apply. */ 14647 #ifdef __cplusplus 14648 extern "C" 14649 #endif 14650 char $ac_func (); 14651 /* The GNU C library defines this for functions which it implements 14652 to always fail with ENOSYS. Some functions are actually named 14653 something starting with __ and the normal name is an alias. */ 14654 #if defined __stub_$ac_func || defined __stub___$ac_func 14655 choke me 14656 #endif 14657 14658 int 14659 main () 14660 { 14661 return $ac_func (); 14662 ; 14663 return 0; 14664 } 14665 _ACEOF 14666 rm -f conftest.$ac_objext conftest$ac_exeext 14667 if { (ac_try="$ac_link" 14668 case "(($ac_try" in 14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14670 *) ac_try_echo=$ac_try;; 14671 esac 14672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14673 $as_echo "$ac_try_echo") >&5 14674 (eval "$ac_link") 2>conftest.er1 14675 ac_status=$? 14676 grep -v '^ *+' conftest.er1 >conftest.err 14677 rm -f conftest.er1 14678 cat conftest.err >&5 14679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14680 (exit $ac_status); } && { 14681 test -z "$ac_cxx_werror_flag" || 14682 test ! -s conftest.err 14683 } && test -s conftest$ac_exeext && { 14684 test "$cross_compiling" = yes || 14685 $as_test_x conftest$ac_exeext 14686 }; then 14687 eval "$as_ac_var=yes" 14688 else 14689 $as_echo "$as_me: failed program was:" >&5 14690 sed 's/^/| /' conftest.$ac_ext >&5 14691 14692 eval "$as_ac_var=no" 14693 fi 14694 14695 rm -rf conftest.dSYM 14696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14697 conftest$ac_exeext conftest.$ac_ext 14698 fi 14699 ac_res=`eval 'as_val=${'$as_ac_var'} 14700 $as_echo "$as_val"'` 14701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14702 $as_echo "$ac_res" >&6; } 14703 as_val=`eval 'as_val=${'$as_ac_var'} 14704 $as_echo "$as_val"'` 14705 if test "x$as_val" = x""yes; then 8834 do : 8835 ac_fn_cxx_check_func "$LINENO" "avformat_write_header" "ac_cv_func_avformat_write_header" 8836 if test "x$ac_cv_func_avformat_write_header" = xyes; then : 14706 8837 cat >>confdefs.h <<_ACEOF 14707 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18838 #define HAVE_AVFORMAT_WRITE_HEADER 1 14708 8839 _ACEOF 14709 8840 … … 14711 8842 done 14712 8843 14713 14714 8844 for ac_func in av_write_header 14715 do 14716 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14717 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14718 $as_echo_n "checking for $ac_func... " >&6; } 14719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14720 $as_echo_n "(cached) " >&6 14721 else 14722 cat >conftest.$ac_ext <<_ACEOF 14723 /* confdefs.h. */ 14724 _ACEOF 14725 cat confdefs.h >>conftest.$ac_ext 14726 cat >>conftest.$ac_ext <<_ACEOF 14727 /* end confdefs.h. */ 14728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14729 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14730 #define $ac_func innocuous_$ac_func 14731 14732 /* System header to define __stub macros and hopefully few prototypes, 14733 which can conflict with char $ac_func (); below. 14734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14735 <limits.h> exists even on freestanding compilers. */ 14736 14737 #ifdef __STDC__ 14738 # include <limits.h> 14739 #else 14740 # include <assert.h> 14741 #endif 14742 14743 #undef $ac_func 14744 14745 /* Override any GCC internal prototype to avoid an error. 14746 Use char because int might match the return type of a GCC 14747 builtin and then its argument prototype would still apply. */ 14748 #ifdef __cplusplus 14749 extern "C" 14750 #endif 14751 char $ac_func (); 14752 /* The GNU C library defines this for functions which it implements 14753 to always fail with ENOSYS. Some functions are actually named 14754 something starting with __ and the normal name is an alias. */ 14755 #if defined __stub_$ac_func || defined __stub___$ac_func 14756 choke me 14757 #endif 14758 14759 int 14760 main () 14761 { 14762 return $ac_func (); 14763 ; 14764 return 0; 14765 } 14766 _ACEOF 14767 rm -f conftest.$ac_objext conftest$ac_exeext 14768 if { (ac_try="$ac_link" 14769 case "(($ac_try" in 14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14771 *) ac_try_echo=$ac_try;; 14772 esac 14773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14774 $as_echo "$ac_try_echo") >&5 14775 (eval "$ac_link") 2>conftest.er1 14776 ac_status=$? 14777 grep -v '^ *+' conftest.er1 >conftest.err 14778 rm -f conftest.er1 14779 cat conftest.err >&5 14780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14781 (exit $ac_status); } && { 14782 test -z "$ac_cxx_werror_flag" || 14783 test ! -s conftest.err 14784 } && test -s conftest$ac_exeext && { 14785 test "$cross_compiling" = yes || 14786 $as_test_x conftest$ac_exeext 14787 }; then 14788 eval "$as_ac_var=yes" 14789 else 14790 $as_echo "$as_me: failed program was:" >&5 14791 sed 's/^/| /' conftest.$ac_ext >&5 14792 14793 eval "$as_ac_var=no" 14794 fi 14795 14796 rm -rf conftest.dSYM 14797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14798 conftest$ac_exeext conftest.$ac_ext 14799 fi 14800 ac_res=`eval 'as_val=${'$as_ac_var'} 14801 $as_echo "$as_val"'` 14802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14803 $as_echo "$ac_res" >&6; } 14804 as_val=`eval 'as_val=${'$as_ac_var'} 14805 $as_echo "$as_val"'` 14806 if test "x$as_val" = x""yes; then 8845 do : 8846 ac_fn_cxx_check_func "$LINENO" "av_write_header" "ac_cv_func_av_write_header" 8847 if test "x$ac_cv_func_av_write_header" = xyes; then : 14807 8848 cat >>confdefs.h <<_ACEOF 14808 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18849 #define HAVE_AV_WRITE_HEADER 1 14809 8850 _ACEOF 14810 8851 … … 14812 8853 done 14813 8854 14814 { $as_echo "$as_me:$LINENO: checking for av_write_trailer" >&5 14815 $as_echo_n "checking for av_write_trailer... " >&6; } 14816 if test "${ac_cv_func_av_write_trailer+set}" = set; then 14817 $as_echo_n "(cached) " >&6 14818 else 14819 cat >conftest.$ac_ext <<_ACEOF 14820 /* confdefs.h. */ 14821 _ACEOF 14822 cat confdefs.h >>conftest.$ac_ext 14823 cat >>conftest.$ac_ext <<_ACEOF 14824 /* end confdefs.h. */ 14825 /* Define av_write_trailer to an innocuous variant, in case <limits.h> declares av_write_trailer. 14826 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14827 #define av_write_trailer innocuous_av_write_trailer 14828 14829 /* System header to define __stub macros and hopefully few prototypes, 14830 which can conflict with char av_write_trailer (); below. 14831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14832 <limits.h> exists even on freestanding compilers. */ 14833 14834 #ifdef __STDC__ 14835 # include <limits.h> 14836 #else 14837 # include <assert.h> 14838 #endif 14839 14840 #undef av_write_trailer 14841 14842 /* Override any GCC internal prototype to avoid an error. 14843 Use char because int might match the return type of a GCC 14844 builtin and then its argument prototype would still apply. */ 14845 #ifdef __cplusplus 14846 extern "C" 14847 #endif 14848 char av_write_trailer (); 14849 /* The GNU C library defines this for functions which it implements 14850 to always fail with ENOSYS. Some functions are actually named 14851 something starting with __ and the normal name is an alias. */ 14852 #if defined __stub_av_write_trailer || defined __stub___av_write_trailer 14853 choke me 14854 #endif 14855 14856 int 14857 main () 14858 { 14859 return av_write_trailer (); 14860 ; 14861 return 0; 14862 } 14863 _ACEOF 14864 rm -f conftest.$ac_objext conftest$ac_exeext 14865 if { (ac_try="$ac_link" 14866 case "(($ac_try" in 14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14868 *) ac_try_echo=$ac_try;; 14869 esac 14870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14871 $as_echo "$ac_try_echo") >&5 14872 (eval "$ac_link") 2>conftest.er1 14873 ac_status=$? 14874 grep -v '^ *+' conftest.er1 >conftest.err 14875 rm -f conftest.er1 14876 cat conftest.err >&5 14877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14878 (exit $ac_status); } && { 14879 test -z "$ac_cxx_werror_flag" || 14880 test ! -s conftest.err 14881 } && test -s conftest$ac_exeext && { 14882 test "$cross_compiling" = yes || 14883 $as_test_x conftest$ac_exeext 14884 }; then 14885 ac_cv_func_av_write_trailer=yes 14886 else 14887 $as_echo "$as_me: failed program was:" >&5 14888 sed 's/^/| /' conftest.$ac_ext >&5 14889 14890 ac_cv_func_av_write_trailer=no 14891 fi 14892 14893 rm -rf conftest.dSYM 14894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14895 conftest$ac_exeext conftest.$ac_ext 14896 fi 14897 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_write_trailer" >&5 14898 $as_echo "$ac_cv_func_av_write_trailer" >&6; } 14899 if test "x$ac_cv_func_av_write_trailer" = x""yes; then 14900 : 14901 else 14902 { { $as_echo "$as_me:$LINENO: error: oops! no av_write_trailer?!?" >&5 14903 $as_echo "$as_me: error: oops! no av_write_trailer?!?" >&2;} 14904 { (exit 1); exit 1; }; } 14905 fi 14906 14907 { $as_echo "$as_me:$LINENO: checking for av_freep" >&5 14908 $as_echo_n "checking for av_freep... " >&6; } 14909 if test "${ac_cv_func_av_freep+set}" = set; then 14910 $as_echo_n "(cached) " >&6 14911 else 14912 cat >conftest.$ac_ext <<_ACEOF 14913 /* confdefs.h. */ 14914 _ACEOF 14915 cat confdefs.h >>conftest.$ac_ext 14916 cat >>conftest.$ac_ext <<_ACEOF 14917 /* end confdefs.h. */ 14918 /* Define av_freep to an innocuous variant, in case <limits.h> declares av_freep. 14919 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14920 #define av_freep innocuous_av_freep 14921 14922 /* System header to define __stub macros and hopefully few prototypes, 14923 which can conflict with char av_freep (); below. 14924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14925 <limits.h> exists even on freestanding compilers. */ 14926 14927 #ifdef __STDC__ 14928 # include <limits.h> 14929 #else 14930 # include <assert.h> 14931 #endif 14932 14933 #undef av_freep 14934 14935 /* Override any GCC internal prototype to avoid an error. 14936 Use char because int might match the return type of a GCC 14937 builtin and then its argument prototype would still apply. */ 14938 #ifdef __cplusplus 14939 extern "C" 14940 #endif 14941 char av_freep (); 14942 /* The GNU C library defines this for functions which it implements 14943 to always fail with ENOSYS. Some functions are actually named 14944 something starting with __ and the normal name is an alias. */ 14945 #if defined __stub_av_freep || defined __stub___av_freep 14946 choke me 14947 #endif 14948 14949 int 14950 main () 14951 { 14952 return av_freep (); 14953 ; 14954 return 0; 14955 } 14956 _ACEOF 14957 rm -f conftest.$ac_objext conftest$ac_exeext 14958 if { (ac_try="$ac_link" 14959 case "(($ac_try" in 14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14961 *) ac_try_echo=$ac_try;; 14962 esac 14963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14964 $as_echo "$ac_try_echo") >&5 14965 (eval "$ac_link") 2>conftest.er1 14966 ac_status=$? 14967 grep -v '^ *+' conftest.er1 >conftest.err 14968 rm -f conftest.er1 14969 cat conftest.err >&5 14970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14971 (exit $ac_status); } && { 14972 test -z "$ac_cxx_werror_flag" || 14973 test ! -s conftest.err 14974 } && test -s conftest$ac_exeext && { 14975 test "$cross_compiling" = yes || 14976 $as_test_x conftest$ac_exeext 14977 }; then 14978 ac_cv_func_av_freep=yes 14979 else 14980 $as_echo "$as_me: failed program was:" >&5 14981 sed 's/^/| /' conftest.$ac_ext >&5 14982 14983 ac_cv_func_av_freep=no 14984 fi 14985 14986 rm -rf conftest.dSYM 14987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14988 conftest$ac_exeext conftest.$ac_ext 14989 fi 14990 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_freep" >&5 14991 $as_echo "$ac_cv_func_av_freep" >&6; } 14992 if test "x$ac_cv_func_av_freep" = x""yes; then 14993 : 14994 else 14995 { { $as_echo "$as_me:$LINENO: error: oops! no av_freep ?!?" >&5 14996 $as_echo "$as_me: error: oops! no av_freep ?!?" >&2;} 14997 { (exit 1); exit 1; }; } 14998 fi 14999 15000 { $as_echo "$as_me:$LINENO: checking for av_free" >&5 15001 $as_echo_n "checking for av_free... " >&6; } 15002 if test "${ac_cv_func_av_free+set}" = set; then 15003 $as_echo_n "(cached) " >&6 15004 else 15005 cat >conftest.$ac_ext <<_ACEOF 15006 /* confdefs.h. */ 15007 _ACEOF 15008 cat confdefs.h >>conftest.$ac_ext 15009 cat >>conftest.$ac_ext <<_ACEOF 15010 /* end confdefs.h. */ 15011 /* Define av_free to an innocuous variant, in case <limits.h> declares av_free. 15012 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15013 #define av_free innocuous_av_free 15014 15015 /* System header to define __stub macros and hopefully few prototypes, 15016 which can conflict with char av_free (); below. 15017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15018 <limits.h> exists even on freestanding compilers. */ 15019 15020 #ifdef __STDC__ 15021 # include <limits.h> 15022 #else 15023 # include <assert.h> 15024 #endif 15025 15026 #undef av_free 15027 15028 /* Override any GCC internal prototype to avoid an error. 15029 Use char because int might match the return type of a GCC 15030 builtin and then its argument prototype would still apply. */ 15031 #ifdef __cplusplus 15032 extern "C" 15033 #endif 15034 char av_free (); 15035 /* The GNU C library defines this for functions which it implements 15036 to always fail with ENOSYS. Some functions are actually named 15037 something starting with __ and the normal name is an alias. */ 15038 #if defined __stub_av_free || defined __stub___av_free 15039 choke me 15040 #endif 15041 15042 int 15043 main () 15044 { 15045 return av_free (); 15046 ; 15047 return 0; 15048 } 15049 _ACEOF 15050 rm -f conftest.$ac_objext conftest$ac_exeext 15051 if { (ac_try="$ac_link" 15052 case "(($ac_try" in 15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15054 *) ac_try_echo=$ac_try;; 15055 esac 15056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15057 $as_echo "$ac_try_echo") >&5 15058 (eval "$ac_link") 2>conftest.er1 15059 ac_status=$? 15060 grep -v '^ *+' conftest.er1 >conftest.err 15061 rm -f conftest.er1 15062 cat conftest.err >&5 15063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15064 (exit $ac_status); } && { 15065 test -z "$ac_cxx_werror_flag" || 15066 test ! -s conftest.err 15067 } && test -s conftest$ac_exeext && { 15068 test "$cross_compiling" = yes || 15069 $as_test_x conftest$ac_exeext 15070 }; then 15071 ac_cv_func_av_free=yes 15072 else 15073 $as_echo "$as_me: failed program was:" >&5 15074 sed 's/^/| /' conftest.$ac_ext >&5 15075 15076 ac_cv_func_av_free=no 15077 fi 15078 15079 rm -rf conftest.dSYM 15080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15081 conftest$ac_exeext conftest.$ac_ext 15082 fi 15083 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_free" >&5 15084 $as_echo "$ac_cv_func_av_free" >&6; } 15085 if test "x$ac_cv_func_av_free" = x""yes; then 15086 : 15087 else 15088 { { $as_echo "$as_me:$LINENO: error: oops! no av_free ?!?" >&5 15089 $as_echo "$as_me: error: oops! no av_free ?!?" >&2;} 15090 { (exit 1); exit 1; }; } 15091 fi 15092 15093 { $as_echo "$as_me:$LINENO: checking for av_new_stream" >&5 15094 $as_echo_n "checking for av_new_stream... " >&6; } 15095 if test "${ac_cv_func_av_new_stream+set}" = set; then 15096 $as_echo_n "(cached) " >&6 15097 else 15098 cat >conftest.$ac_ext <<_ACEOF 15099 /* confdefs.h. */ 15100 _ACEOF 15101 cat confdefs.h >>conftest.$ac_ext 15102 cat >>conftest.$ac_ext <<_ACEOF 15103 /* end confdefs.h. */ 15104 /* Define av_new_stream to an innocuous variant, in case <limits.h> declares av_new_stream. 15105 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15106 #define av_new_stream innocuous_av_new_stream 15107 15108 /* System header to define __stub macros and hopefully few prototypes, 15109 which can conflict with char av_new_stream (); below. 15110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15111 <limits.h> exists even on freestanding compilers. */ 15112 15113 #ifdef __STDC__ 15114 # include <limits.h> 15115 #else 15116 # include <assert.h> 15117 #endif 15118 15119 #undef av_new_stream 15120 15121 /* Override any GCC internal prototype to avoid an error. 15122 Use char because int might match the return type of a GCC 15123 builtin and then its argument prototype would still apply. */ 15124 #ifdef __cplusplus 15125 extern "C" 15126 #endif 15127 char av_new_stream (); 15128 /* The GNU C library defines this for functions which it implements 15129 to always fail with ENOSYS. Some functions are actually named 15130 something starting with __ and the normal name is an alias. */ 15131 #if defined __stub_av_new_stream || defined __stub___av_new_stream 15132 choke me 15133 #endif 15134 15135 int 15136 main () 15137 { 15138 return av_new_stream (); 15139 ; 15140 return 0; 15141 } 15142 _ACEOF 15143 rm -f conftest.$ac_objext conftest$ac_exeext 15144 if { (ac_try="$ac_link" 15145 case "(($ac_try" in 15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15147 *) ac_try_echo=$ac_try;; 15148 esac 15149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15150 $as_echo "$ac_try_echo") >&5 15151 (eval "$ac_link") 2>conftest.er1 15152 ac_status=$? 15153 grep -v '^ *+' conftest.er1 >conftest.err 15154 rm -f conftest.er1 15155 cat conftest.err >&5 15156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15157 (exit $ac_status); } && { 15158 test -z "$ac_cxx_werror_flag" || 15159 test ! -s conftest.err 15160 } && test -s conftest$ac_exeext && { 15161 test "$cross_compiling" = yes || 15162 $as_test_x conftest$ac_exeext 15163 }; then 15164 ac_cv_func_av_new_stream=yes 15165 else 15166 $as_echo "$as_me: failed program was:" >&5 15167 sed 's/^/| /' conftest.$ac_ext >&5 15168 15169 ac_cv_func_av_new_stream=no 15170 fi 15171 15172 rm -rf conftest.dSYM 15173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15174 conftest$ac_exeext conftest.$ac_ext 15175 fi 15176 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_new_stream" >&5 15177 $as_echo "$ac_cv_func_av_new_stream" >&6; } 15178 if test "x$ac_cv_func_av_new_stream" = x""yes; then 15179 : 15180 else 15181 { { $as_echo "$as_me:$LINENO: error: oops! av_new_stream ?!?" >&5 15182 $as_echo "$as_me: error: oops! av_new_stream ?!?" >&2;} 15183 { (exit 1); exit 1; }; } 15184 fi 15185 15186 { $as_echo "$as_me:$LINENO: checking for av_malloc" >&5 15187 $as_echo_n "checking for av_malloc... " >&6; } 15188 if test "${ac_cv_func_av_malloc+set}" = set; then 15189 $as_echo_n "(cached) " >&6 15190 else 15191 cat >conftest.$ac_ext <<_ACEOF 15192 /* confdefs.h. */ 15193 _ACEOF 15194 cat confdefs.h >>conftest.$ac_ext 15195 cat >>conftest.$ac_ext <<_ACEOF 15196 /* end confdefs.h. */ 15197 /* Define av_malloc to an innocuous variant, in case <limits.h> declares av_malloc. 15198 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15199 #define av_malloc innocuous_av_malloc 15200 15201 /* System header to define __stub macros and hopefully few prototypes, 15202 which can conflict with char av_malloc (); below. 15203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15204 <limits.h> exists even on freestanding compilers. */ 15205 15206 #ifdef __STDC__ 15207 # include <limits.h> 15208 #else 15209 # include <assert.h> 15210 #endif 15211 15212 #undef av_malloc 15213 15214 /* Override any GCC internal prototype to avoid an error. 15215 Use char because int might match the return type of a GCC 15216 builtin and then its argument prototype would still apply. */ 15217 #ifdef __cplusplus 15218 extern "C" 15219 #endif 15220 char av_malloc (); 15221 /* The GNU C library defines this for functions which it implements 15222 to always fail with ENOSYS. Some functions are actually named 15223 something starting with __ and the normal name is an alias. */ 15224 #if defined __stub_av_malloc || defined __stub___av_malloc 15225 choke me 15226 #endif 15227 15228 int 15229 main () 15230 { 15231 return av_malloc (); 15232 ; 15233 return 0; 15234 } 15235 _ACEOF 15236 rm -f conftest.$ac_objext conftest$ac_exeext 15237 if { (ac_try="$ac_link" 15238 case "(($ac_try" in 15239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15240 *) ac_try_echo=$ac_try;; 15241 esac 15242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15243 $as_echo "$ac_try_echo") >&5 15244 (eval "$ac_link") 2>conftest.er1 15245 ac_status=$? 15246 grep -v '^ *+' conftest.er1 >conftest.err 15247 rm -f conftest.er1 15248 cat conftest.err >&5 15249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15250 (exit $ac_status); } && { 15251 test -z "$ac_cxx_werror_flag" || 15252 test ! -s conftest.err 15253 } && test -s conftest$ac_exeext && { 15254 test "$cross_compiling" = yes || 15255 $as_test_x conftest$ac_exeext 15256 }; then 15257 ac_cv_func_av_malloc=yes 15258 else 15259 $as_echo "$as_me: failed program was:" >&5 15260 sed 's/^/| /' conftest.$ac_ext >&5 15261 15262 ac_cv_func_av_malloc=no 15263 fi 15264 15265 rm -rf conftest.dSYM 15266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15267 conftest$ac_exeext conftest.$ac_ext 15268 fi 15269 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_malloc" >&5 15270 $as_echo "$ac_cv_func_av_malloc" >&6; } 15271 if test "x$ac_cv_func_av_malloc" = x""yes; then 15272 : 15273 else 15274 { { $as_echo "$as_me:$LINENO: error: oops! no av_malloc ?!?" >&5 15275 $as_echo "$as_me: error: oops! no av_malloc ?!?" >&2;} 15276 { (exit 1); exit 1; }; } 15277 fi 15278 15279 { $as_echo "$as_me:$LINENO: checking for av_init_packet" >&5 15280 $as_echo_n "checking for av_init_packet... " >&6; } 15281 if test "${ac_cv_func_av_init_packet+set}" = set; then 15282 $as_echo_n "(cached) " >&6 15283 else 15284 cat >conftest.$ac_ext <<_ACEOF 15285 /* confdefs.h. */ 15286 _ACEOF 15287 cat confdefs.h >>conftest.$ac_ext 15288 cat >>conftest.$ac_ext <<_ACEOF 15289 /* end confdefs.h. */ 15290 /* Define av_init_packet to an innocuous variant, in case <limits.h> declares av_init_packet. 15291 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15292 #define av_init_packet innocuous_av_init_packet 15293 15294 /* System header to define __stub macros and hopefully few prototypes, 15295 which can conflict with char av_init_packet (); below. 15296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15297 <limits.h> exists even on freestanding compilers. */ 15298 15299 #ifdef __STDC__ 15300 # include <limits.h> 15301 #else 15302 # include <assert.h> 15303 #endif 15304 15305 #undef av_init_packet 15306 15307 /* Override any GCC internal prototype to avoid an error. 15308 Use char because int might match the return type of a GCC 15309 builtin and then its argument prototype would still apply. */ 15310 #ifdef __cplusplus 15311 extern "C" 15312 #endif 15313 char av_init_packet (); 15314 /* The GNU C library defines this for functions which it implements 15315 to always fail with ENOSYS. Some functions are actually named 15316 something starting with __ and the normal name is an alias. */ 15317 #if defined __stub_av_init_packet || defined __stub___av_init_packet 15318 choke me 15319 #endif 15320 15321 int 15322 main () 15323 { 15324 return av_init_packet (); 15325 ; 15326 return 0; 15327 } 15328 _ACEOF 15329 rm -f conftest.$ac_objext conftest$ac_exeext 15330 if { (ac_try="$ac_link" 15331 case "(($ac_try" in 15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15333 *) ac_try_echo=$ac_try;; 15334 esac 15335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15336 $as_echo "$ac_try_echo") >&5 15337 (eval "$ac_link") 2>conftest.er1 15338 ac_status=$? 15339 grep -v '^ *+' conftest.er1 >conftest.err 15340 rm -f conftest.er1 15341 cat conftest.err >&5 15342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15343 (exit $ac_status); } && { 15344 test -z "$ac_cxx_werror_flag" || 15345 test ! -s conftest.err 15346 } && test -s conftest$ac_exeext && { 15347 test "$cross_compiling" = yes || 15348 $as_test_x conftest$ac_exeext 15349 }; then 15350 ac_cv_func_av_init_packet=yes 15351 else 15352 $as_echo "$as_me: failed program was:" >&5 15353 sed 's/^/| /' conftest.$ac_ext >&5 15354 15355 ac_cv_func_av_init_packet=no 15356 fi 15357 15358 rm -rf conftest.dSYM 15359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15360 conftest$ac_exeext conftest.$ac_ext 15361 fi 15362 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_init_packet" >&5 15363 $as_echo "$ac_cv_func_av_init_packet" >&6; } 15364 if test "x$ac_cv_func_av_init_packet" = x""yes; then 15365 : 15366 else 15367 { { $as_echo "$as_me:$LINENO: error: oops! no av_init_packet ?!?" >&5 15368 $as_echo "$as_me: error: oops! no av_init_packet ?!?" >&2;} 15369 { (exit 1); exit 1; }; } 15370 fi 15371 15372 { $as_echo "$as_me:$LINENO: checking for av_rescale_q" >&5 15373 $as_echo_n "checking for av_rescale_q... " >&6; } 15374 if test "${ac_cv_func_av_rescale_q+set}" = set; then 15375 $as_echo_n "(cached) " >&6 15376 else 15377 cat >conftest.$ac_ext <<_ACEOF 15378 /* confdefs.h. */ 15379 _ACEOF 15380 cat confdefs.h >>conftest.$ac_ext 15381 cat >>conftest.$ac_ext <<_ACEOF 15382 /* end confdefs.h. */ 15383 /* Define av_rescale_q to an innocuous variant, in case <limits.h> declares av_rescale_q. 15384 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15385 #define av_rescale_q innocuous_av_rescale_q 15386 15387 /* System header to define __stub macros and hopefully few prototypes, 15388 which can conflict with char av_rescale_q (); below. 15389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15390 <limits.h> exists even on freestanding compilers. */ 15391 15392 #ifdef __STDC__ 15393 # include <limits.h> 15394 #else 15395 # include <assert.h> 15396 #endif 15397 15398 #undef av_rescale_q 15399 15400 /* Override any GCC internal prototype to avoid an error. 15401 Use char because int might match the return type of a GCC 15402 builtin and then its argument prototype would still apply. */ 15403 #ifdef __cplusplus 15404 extern "C" 15405 #endif 15406 char av_rescale_q (); 15407 /* The GNU C library defines this for functions which it implements 15408 to always fail with ENOSYS. Some functions are actually named 15409 something starting with __ and the normal name is an alias. */ 15410 #if defined __stub_av_rescale_q || defined __stub___av_rescale_q 15411 choke me 15412 #endif 15413 15414 int 15415 main () 15416 { 15417 return av_rescale_q (); 15418 ; 15419 return 0; 15420 } 15421 _ACEOF 15422 rm -f conftest.$ac_objext conftest$ac_exeext 15423 if { (ac_try="$ac_link" 15424 case "(($ac_try" in 15425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15426 *) ac_try_echo=$ac_try;; 15427 esac 15428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15429 $as_echo "$ac_try_echo") >&5 15430 (eval "$ac_link") 2>conftest.er1 15431 ac_status=$? 15432 grep -v '^ *+' conftest.er1 >conftest.err 15433 rm -f conftest.er1 15434 cat conftest.err >&5 15435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15436 (exit $ac_status); } && { 15437 test -z "$ac_cxx_werror_flag" || 15438 test ! -s conftest.err 15439 } && test -s conftest$ac_exeext && { 15440 test "$cross_compiling" = yes || 15441 $as_test_x conftest$ac_exeext 15442 }; then 15443 ac_cv_func_av_rescale_q=yes 15444 else 15445 $as_echo "$as_me: failed program was:" >&5 15446 sed 's/^/| /' conftest.$ac_ext >&5 15447 15448 ac_cv_func_av_rescale_q=no 15449 fi 15450 15451 rm -rf conftest.dSYM 15452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15453 conftest$ac_exeext conftest.$ac_ext 15454 fi 15455 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_rescale_q" >&5 15456 $as_echo "$ac_cv_func_av_rescale_q" >&6; } 15457 if test "x$ac_cv_func_av_rescale_q" = x""yes; then 15458 : 15459 else 15460 { { $as_echo "$as_me:$LINENO: error: oops! no av_rescale_q ?!?" >&5 15461 $as_echo "$as_me: error: oops! no av_rescale_q ?!?" >&2;} 15462 { (exit 1); exit 1; }; } 15463 fi 15464 15465 { $as_echo "$as_me:$LINENO: checking for av_write_frame" >&5 15466 $as_echo_n "checking for av_write_frame... " >&6; } 15467 if test "${ac_cv_func_av_write_frame+set}" = set; then 15468 $as_echo_n "(cached) " >&6 15469 else 15470 cat >conftest.$ac_ext <<_ACEOF 15471 /* confdefs.h. */ 15472 _ACEOF 15473 cat confdefs.h >>conftest.$ac_ext 15474 cat >>conftest.$ac_ext <<_ACEOF 15475 /* end confdefs.h. */ 15476 /* Define av_write_frame to an innocuous variant, in case <limits.h> declares av_write_frame. 15477 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15478 #define av_write_frame innocuous_av_write_frame 15479 15480 /* System header to define __stub macros and hopefully few prototypes, 15481 which can conflict with char av_write_frame (); below. 15482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15483 <limits.h> exists even on freestanding compilers. */ 15484 15485 #ifdef __STDC__ 15486 # include <limits.h> 15487 #else 15488 # include <assert.h> 15489 #endif 15490 15491 #undef av_write_frame 15492 15493 /* Override any GCC internal prototype to avoid an error. 15494 Use char because int might match the return type of a GCC 15495 builtin and then its argument prototype would still apply. */ 15496 #ifdef __cplusplus 15497 extern "C" 15498 #endif 15499 char av_write_frame (); 15500 /* The GNU C library defines this for functions which it implements 15501 to always fail with ENOSYS. Some functions are actually named 15502 something starting with __ and the normal name is an alias. */ 15503 #if defined __stub_av_write_frame || defined __stub___av_write_frame 15504 choke me 15505 #endif 15506 15507 int 15508 main () 15509 { 15510 return av_write_frame (); 15511 ; 15512 return 0; 15513 } 15514 _ACEOF 15515 rm -f conftest.$ac_objext conftest$ac_exeext 15516 if { (ac_try="$ac_link" 15517 case "(($ac_try" in 15518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15519 *) ac_try_echo=$ac_try;; 15520 esac 15521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15522 $as_echo "$ac_try_echo") >&5 15523 (eval "$ac_link") 2>conftest.er1 15524 ac_status=$? 15525 grep -v '^ *+' conftest.er1 >conftest.err 15526 rm -f conftest.er1 15527 cat conftest.err >&5 15528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15529 (exit $ac_status); } && { 15530 test -z "$ac_cxx_werror_flag" || 15531 test ! -s conftest.err 15532 } && test -s conftest$ac_exeext && { 15533 test "$cross_compiling" = yes || 15534 $as_test_x conftest$ac_exeext 15535 }; then 15536 ac_cv_func_av_write_frame=yes 15537 else 15538 $as_echo "$as_me: failed program was:" >&5 15539 sed 's/^/| /' conftest.$ac_ext >&5 15540 15541 ac_cv_func_av_write_frame=no 15542 fi 15543 15544 rm -rf conftest.dSYM 15545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15546 conftest$ac_exeext conftest.$ac_ext 15547 fi 15548 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_write_frame" >&5 15549 $as_echo "$ac_cv_func_av_write_frame" >&6; } 15550 if test "x$ac_cv_func_av_write_frame" = x""yes; then 15551 : 15552 else 15553 { { $as_echo "$as_me:$LINENO: error: oops! av_write_frame ?!?" >&5 15554 $as_echo "$as_me: error: oops! av_write_frame ?!?" >&2;} 15555 { (exit 1); exit 1; }; } 15556 fi 15557 8855 ac_fn_cxx_check_func "$LINENO" "av_write_trailer" "ac_cv_func_av_write_trailer" 8856 if test "x$ac_cv_func_av_write_trailer" = xyes; then : 8857 8858 else 8859 as_fn_error $? "oops! no av_write_trailer?!?" "$LINENO" 5 8860 fi 8861 8862 ac_fn_cxx_check_func "$LINENO" "av_freep" "ac_cv_func_av_freep" 8863 if test "x$ac_cv_func_av_freep" = xyes; then : 8864 8865 else 8866 as_fn_error $? "oops! no av_freep ?!?" "$LINENO" 5 8867 fi 8868 8869 ac_fn_cxx_check_func "$LINENO" "av_free" "ac_cv_func_av_free" 8870 if test "x$ac_cv_func_av_free" = xyes; then : 8871 8872 else 8873 as_fn_error $? "oops! no av_free ?!?" "$LINENO" 5 8874 fi 8875 8876 ac_fn_cxx_check_func "$LINENO" "av_new_stream" "ac_cv_func_av_new_stream" 8877 if test "x$ac_cv_func_av_new_stream" = xyes; then : 8878 8879 else 8880 as_fn_error $? "oops! av_new_stream ?!?" "$LINENO" 5 8881 fi 8882 8883 ac_fn_cxx_check_func "$LINENO" "av_malloc" "ac_cv_func_av_malloc" 8884 if test "x$ac_cv_func_av_malloc" = xyes; then : 8885 8886 else 8887 as_fn_error $? "oops! no av_malloc ?!?" "$LINENO" 5 8888 fi 8889 8890 ac_fn_cxx_check_func "$LINENO" "av_init_packet" "ac_cv_func_av_init_packet" 8891 if test "x$ac_cv_func_av_init_packet" = xyes; then : 8892 8893 else 8894 as_fn_error $? "oops! no av_init_packet ?!?" "$LINENO" 5 8895 fi 8896 8897 ac_fn_cxx_check_func "$LINENO" "av_rescale_q" "ac_cv_func_av_rescale_q" 8898 if test "x$ac_cv_func_av_rescale_q" = xyes; then : 8899 8900 else 8901 as_fn_error $? "oops! no av_rescale_q ?!?" "$LINENO" 5 8902 fi 8903 8904 ac_fn_cxx_check_func "$LINENO" "av_write_frame" "ac_cv_func_av_write_frame" 8905 if test "x$ac_cv_func_av_write_frame" = xyes; then : 8906 8907 else 8908 as_fn_error $? "oops! av_write_frame ?!?" "$LINENO" 5 8909 fi 15558 8910 15559 8911 for ac_func in img_convert 15560 do 15561 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15562 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 15563 $as_echo_n "checking for $ac_func... " >&6; } 15564 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 15565 $as_echo_n "(cached) " >&6 15566 else 15567 cat >conftest.$ac_ext <<_ACEOF 15568 /* confdefs.h. */ 15569 _ACEOF 15570 cat confdefs.h >>conftest.$ac_ext 15571 cat >>conftest.$ac_ext <<_ACEOF 15572 /* end confdefs.h. */ 15573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 15574 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15575 #define $ac_func innocuous_$ac_func 15576 15577 /* System header to define __stub macros and hopefully few prototypes, 15578 which can conflict with char $ac_func (); below. 15579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15580 <limits.h> exists even on freestanding compilers. */ 15581 15582 #ifdef __STDC__ 15583 # include <limits.h> 15584 #else 15585 # include <assert.h> 15586 #endif 15587 15588 #undef $ac_func 15589 15590 /* Override any GCC internal prototype to avoid an error. 15591 Use char because int might match the return type of a GCC 15592 builtin and then its argument prototype would still apply. */ 15593 #ifdef __cplusplus 15594 extern "C" 15595 #endif 15596 char $ac_func (); 15597 /* The GNU C library defines this for functions which it implements 15598 to always fail with ENOSYS. Some functions are actually named 15599 something starting with __ and the normal name is an alias. */ 15600 #if defined __stub_$ac_func || defined __stub___$ac_func 15601 choke me 15602 #endif 15603 15604 int 15605 main () 15606 { 15607 return $ac_func (); 15608 ; 15609 return 0; 15610 } 15611 _ACEOF 15612 rm -f conftest.$ac_objext conftest$ac_exeext 15613 if { (ac_try="$ac_link" 15614 case "(($ac_try" in 15615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15616 *) ac_try_echo=$ac_try;; 15617 esac 15618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15619 $as_echo "$ac_try_echo") >&5 15620 (eval "$ac_link") 2>conftest.er1 15621 ac_status=$? 15622 grep -v '^ *+' conftest.er1 >conftest.err 15623 rm -f conftest.er1 15624 cat conftest.err >&5 15625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15626 (exit $ac_status); } && { 15627 test -z "$ac_cxx_werror_flag" || 15628 test ! -s conftest.err 15629 } && test -s conftest$ac_exeext && { 15630 test "$cross_compiling" = yes || 15631 $as_test_x conftest$ac_exeext 15632 }; then 15633 eval "$as_ac_var=yes" 15634 else 15635 $as_echo "$as_me: failed program was:" >&5 15636 sed 's/^/| /' conftest.$ac_ext >&5 15637 15638 eval "$as_ac_var=no" 15639 fi 15640 15641 rm -rf conftest.dSYM 15642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15643 conftest$ac_exeext conftest.$ac_ext 15644 fi 15645 ac_res=`eval 'as_val=${'$as_ac_var'} 15646 $as_echo "$as_val"'` 15647 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15648 $as_echo "$ac_res" >&6; } 15649 as_val=`eval 'as_val=${'$as_ac_var'} 15650 $as_echo "$as_val"'` 15651 if test "x$as_val" = x""yes; then 8912 do : 8913 ac_fn_cxx_check_func "$LINENO" "img_convert" "ac_cv_func_img_convert" 8914 if test "x$ac_cv_func_img_convert" = xyes; then : 15652 8915 cat >>confdefs.h <<_ACEOF 15653 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18916 #define HAVE_IMG_CONVERT 1 15654 8917 _ACEOF 15655 8918 … … 15657 8920 done 15658 8921 15659 15660 8922 for ac_func in sws_scale 15661 do 15662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15663 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 15664 $as_echo_n "checking for $ac_func... " >&6; } 15665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 15666 $as_echo_n "(cached) " >&6 15667 else 15668 cat >conftest.$ac_ext <<_ACEOF 15669 /* confdefs.h. */ 15670 _ACEOF 15671 cat confdefs.h >>conftest.$ac_ext 15672 cat >>conftest.$ac_ext <<_ACEOF 15673 /* end confdefs.h. */ 15674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 15675 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15676 #define $ac_func innocuous_$ac_func 15677 15678 /* System header to define __stub macros and hopefully few prototypes, 15679 which can conflict with char $ac_func (); below. 15680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15681 <limits.h> exists even on freestanding compilers. */ 15682 15683 #ifdef __STDC__ 15684 # include <limits.h> 15685 #else 15686 # include <assert.h> 15687 #endif 15688 15689 #undef $ac_func 15690 15691 /* Override any GCC internal prototype to avoid an error. 15692 Use char because int might match the return type of a GCC 15693 builtin and then its argument prototype would still apply. */ 15694 #ifdef __cplusplus 15695 extern "C" 15696 #endif 15697 char $ac_func (); 15698 /* The GNU C library defines this for functions which it implements 15699 to always fail with ENOSYS. Some functions are actually named 15700 something starting with __ and the normal name is an alias. */ 15701 #if defined __stub_$ac_func || defined __stub___$ac_func 15702 choke me 15703 #endif 15704 15705 int 15706 main () 15707 { 15708 return $ac_func (); 15709 ; 15710 return 0; 15711 } 15712 _ACEOF 15713 rm -f conftest.$ac_objext conftest$ac_exeext 15714 if { (ac_try="$ac_link" 15715 case "(($ac_try" in 15716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15717 *) ac_try_echo=$ac_try;; 15718 esac 15719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15720 $as_echo "$ac_try_echo") >&5 15721 (eval "$ac_link") 2>conftest.er1 15722 ac_status=$? 15723 grep -v '^ *+' conftest.er1 >conftest.err 15724 rm -f conftest.er1 15725 cat conftest.err >&5 15726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15727 (exit $ac_status); } && { 15728 test -z "$ac_cxx_werror_flag" || 15729 test ! -s conftest.err 15730 } && test -s conftest$ac_exeext && { 15731 test "$cross_compiling" = yes || 15732 $as_test_x conftest$ac_exeext 15733 }; then 15734 eval "$as_ac_var=yes" 15735 else 15736 $as_echo "$as_me: failed program was:" >&5 15737 sed 's/^/| /' conftest.$ac_ext >&5 15738 15739 eval "$as_ac_var=no" 15740 fi 15741 15742 rm -rf conftest.dSYM 15743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15744 conftest$ac_exeext conftest.$ac_ext 15745 fi 15746 ac_res=`eval 'as_val=${'$as_ac_var'} 15747 $as_echo "$as_val"'` 15748 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15749 $as_echo "$ac_res" >&6; } 15750 as_val=`eval 'as_val=${'$as_ac_var'} 15751 $as_echo "$as_val"'` 15752 if test "x$as_val" = x""yes; then 8923 do : 8924 ac_fn_cxx_check_func "$LINENO" "sws_scale" "ac_cv_func_sws_scale" 8925 if test "x$ac_cv_func_sws_scale" = xyes; then : 15753 8926 cat >>confdefs.h <<_ACEOF 15754 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp`18927 #define HAVE_SWS_SCALE 1 15755 8928 _ACEOF 15756 8929 … … 15758 8931 done 15759 8932 15760 cat >conftest.$ac_ext <<_ACEOF 15761 /* confdefs.h. */ 15762 _ACEOF 15763 cat confdefs.h >>conftest.$ac_ext 15764 cat >>conftest.$ac_ext <<_ACEOF 8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15765 8934 /* end confdefs.h. */ 15766 8935 … … 15783 8952 } 15784 8953 _ACEOF 15785 rm -f conftest.$ac_objext 15786 if { (ac_try="$ac_compile" 15787 case "(($ac_try" in 15788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15789 *) ac_try_echo=$ac_try;; 15790 esac 15791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15792 $as_echo "$ac_try_echo") >&5 15793 (eval "$ac_compile") 2>conftest.er1 15794 ac_status=$? 15795 grep -v '^ *+' conftest.er1 >conftest.err 15796 rm -f conftest.er1 15797 cat conftest.err >&5 15798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15799 (exit $ac_status); } && { 15800 test -z "$ac_cxx_werror_flag" || 15801 test ! -s conftest.err 15802 } && test -s conftest.$ac_objext; then 8954 if ac_fn_cxx_try_compile "$LINENO"; then : 15803 8955 ac_avmedia_type_video="yes" 15804 8956 else 15805 $as_echo "$as_me: failed program was:" >&5 15806 sed 's/^/| /' conftest.$ac_ext >&5 15807 15808 ac_avmedia_type_video="no" 15809 fi 15810 8957 ac_avmedia_type_video="no" 8958 fi 15811 8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15812 8960 if test "$ac_avmedia_type_video" == "yes" ; then 15813 8961 15814 cat >>confdefs.h <<\_ACEOF 15815 #define HAVE_AVMEDIA_TYPE_VIDEO 1 15816 _ACEOF 15817 15818 fi 15819 15820 15821 { $as_echo "$as_me:$LINENO: checking for avcodec_alloc_frame in -lavcodec" >&5 8962 $as_echo "#define HAVE_AVMEDIA_TYPE_VIDEO 1" >>confdefs.h 8963 8964 fi 8965 8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_alloc_frame in -lavcodec" >&5 15822 8967 $as_echo_n "checking for avcodec_alloc_frame in -lavcodec... " >&6; } 15823 if test "${ac_cv_lib_avcodec_avcodec_alloc_frame+set}" = set; then8968 if ${ac_cv_lib_avcodec_avcodec_alloc_frame+:} false; then : 15824 8969 $as_echo_n "(cached) " >&6 15825 8970 else 15826 8971 ac_check_lib_save_LIBS=$LIBS 15827 8972 LIBS="-lavcodec $LIBS" 15828 cat >conftest.$ac_ext <<_ACEOF 15829 /* confdefs.h. */ 15830 _ACEOF 15831 cat confdefs.h >>conftest.$ac_ext 15832 cat >>conftest.$ac_ext <<_ACEOF 8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15833 8974 /* end confdefs.h. */ 15834 8975 … … 15848 8989 } 15849 8990 _ACEOF 15850 rm -f conftest.$ac_objext conftest$ac_exeext 15851 if { (ac_try="$ac_link" 15852 case "(($ac_try" in 15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15854 *) ac_try_echo=$ac_try;; 15855 esac 15856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15857 $as_echo "$ac_try_echo") >&5 15858 (eval "$ac_link") 2>conftest.er1 15859 ac_status=$? 15860 grep -v '^ *+' conftest.er1 >conftest.err 15861 rm -f conftest.er1 15862 cat conftest.err >&5 15863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15864 (exit $ac_status); } && { 15865 test -z "$ac_cxx_werror_flag" || 15866 test ! -s conftest.err 15867 } && test -s conftest$ac_exeext && { 15868 test "$cross_compiling" = yes || 15869 $as_test_x conftest$ac_exeext 15870 }; then 8991 if ac_fn_cxx_try_link "$LINENO"; then : 15871 8992 ac_cv_lib_avcodec_avcodec_alloc_frame=yes 15872 8993 else 15873 $as_echo "$as_me: failed program was:" >&5 15874 sed 's/^/| /' conftest.$ac_ext >&5 15875 15876 ac_cv_lib_avcodec_avcodec_alloc_frame=no 15877 fi 15878 15879 rm -rf conftest.dSYM 15880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15881 conftest$ac_exeext conftest.$ac_ext 8994 ac_cv_lib_avcodec_avcodec_alloc_frame=no 8995 fi 8996 rm -f core conftest.err conftest.$ac_objext \ 8997 conftest$ac_exeext conftest.$ac_ext 15882 8998 LIBS=$ac_check_lib_save_LIBS 15883 8999 fi 15884 { $as_echo "$as_me:$ LINENO: result: $ac_cv_lib_avcodec_avcodec_alloc_frame" >&59000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_alloc_frame" >&5 15885 9001 $as_echo "$ac_cv_lib_avcodec_avcodec_alloc_frame" >&6; } 15886 if test "x$ac_cv_lib_avcodec_avcodec_alloc_frame" = x ""yes; then9002 if test "x$ac_cv_lib_avcodec_avcodec_alloc_frame" = xyes; then : 15887 9003 cat >>confdefs.h <<_ACEOF 15888 9004 #define HAVE_LIBAVCODEC 1 … … 15894 9010 15895 9011 # Fallback to deprecated av_alloc_format_context if avformat_alloc_context isn't found 15896 15897 { $as_echo "$as_me:$LINENO: checking for avformat_alloc_context in -lavformat" >&5 9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avformat_alloc_context in -lavformat" >&5 15898 9013 $as_echo_n "checking for avformat_alloc_context in -lavformat... " >&6; } 15899 if test "${ac_cv_lib_avformat_avformat_alloc_context+set}" = set; then9014 if ${ac_cv_lib_avformat_avformat_alloc_context+:} false; then : 15900 9015 $as_echo_n "(cached) " >&6 15901 9016 else 15902 9017 ac_check_lib_save_LIBS=$LIBS 15903 9018 LIBS="-lavformat $LIBS" 15904 cat >conftest.$ac_ext <<_ACEOF 15905 /* confdefs.h. */ 15906 _ACEOF 15907 cat confdefs.h >>conftest.$ac_ext 15908 cat >>conftest.$ac_ext <<_ACEOF 9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15909 9020 /* end confdefs.h. */ 15910 9021 … … 15924 9035 } 15925 9036 _ACEOF 15926 rm -f conftest.$ac_objext conftest$ac_exeext 15927 if { (ac_try="$ac_link" 15928 case "(($ac_try" in 15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15930 *) ac_try_echo=$ac_try;; 15931 esac 15932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15933 $as_echo "$ac_try_echo") >&5 15934 (eval "$ac_link") 2>conftest.er1 15935 ac_status=$? 15936 grep -v '^ *+' conftest.er1 >conftest.err 15937 rm -f conftest.er1 15938 cat conftest.err >&5 15939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15940 (exit $ac_status); } && { 15941 test -z "$ac_cxx_werror_flag" || 15942 test ! -s conftest.err 15943 } && test -s conftest$ac_exeext && { 15944 test "$cross_compiling" = yes || 15945 $as_test_x conftest$ac_exeext 15946 }; then 9037 if ac_fn_cxx_try_link "$LINENO"; then : 15947 9038 ac_cv_lib_avformat_avformat_alloc_context=yes 15948 9039 else 15949 $as_echo "$as_me: failed program was:" >&5 15950 sed 's/^/| /' conftest.$ac_ext >&5 15951 15952 ac_cv_lib_avformat_avformat_alloc_context=no 15953 fi 15954 15955 rm -rf conftest.dSYM 15956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15957 conftest$ac_exeext conftest.$ac_ext 9040 ac_cv_lib_avformat_avformat_alloc_context=no 9041 fi 9042 rm -f core conftest.err conftest.$ac_objext \ 9043 conftest$ac_exeext conftest.$ac_ext 15958 9044 LIBS=$ac_check_lib_save_LIBS 15959 9045 fi 15960 { $as_echo "$as_me:$ LINENO: result: $ac_cv_lib_avformat_avformat_alloc_context" >&59046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_avformat_alloc_context" >&5 15961 9047 $as_echo "$ac_cv_lib_avformat_avformat_alloc_context" >&6; } 15962 if test "x$ac_cv_lib_avformat_avformat_alloc_context" = x ""yes; then9048 if test "x$ac_cv_lib_avformat_avformat_alloc_context" = xyes; then : 15963 9049 cat >>confdefs.h <<_ACEOF 15964 9050 #define HAVE_LIBAVFORMAT 1 … … 15968 9054 15969 9055 else 15970 15971 { $as_echo "$as_me:$LINENO: checking for av_alloc_format_context in -lavformat" >&5 9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_alloc_format_context in -lavformat" >&5 15972 9057 $as_echo_n "checking for av_alloc_format_context in -lavformat... " >&6; } 15973 if test "${ac_cv_lib_avformat_av_alloc_format_context+set}" = set; then9058 if ${ac_cv_lib_avformat_av_alloc_format_context+:} false; then : 15974 9059 $as_echo_n "(cached) " >&6 15975 9060 else 15976 9061 ac_check_lib_save_LIBS=$LIBS 15977 9062 LIBS="-lavformat $LIBS" 15978 cat >conftest.$ac_ext <<_ACEOF 15979 /* confdefs.h. */ 15980 _ACEOF 15981 cat confdefs.h >>conftest.$ac_ext 15982 cat >>conftest.$ac_ext <<_ACEOF 9063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15983 9064 /* end confdefs.h. */ 15984 9065 … … 15998 9079 } 15999 9080 _ACEOF 16000 rm -f conftest.$ac_objext conftest$ac_exeext 16001 if { (ac_try="$ac_link" 16002 case "(($ac_try" in 16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16004 *) ac_try_echo=$ac_try;; 16005 esac 16006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16007 $as_echo "$ac_try_echo") >&5 16008 (eval "$ac_link") 2>conftest.er1 16009 ac_status=$? 16010 grep -v '^ *+' conftest.er1 >conftest.err 16011 rm -f conftest.er1 16012 cat conftest.err >&5 16013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16014 (exit $ac_status); } && { 16015 test -z "$ac_cxx_werror_flag" || 16016 test ! -s conftest.err 16017 } && test -s conftest$ac_exeext && { 16018 test "$cross_compiling" = yes || 16019 $as_test_x conftest$ac_exeext 16020 }; then 9081 if ac_fn_cxx_try_link "$LINENO"; then : 16021 9082 ac_cv_lib_avformat_av_alloc_format_context=yes 16022 9083 else 16023 $as_echo "$as_me: failed program was:" >&5 16024 sed 's/^/| /' conftest.$ac_ext >&5 16025 16026 ac_cv_lib_avformat_av_alloc_format_context=no 16027 fi 16028 16029 rm -rf conftest.dSYM 16030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16031 conftest$ac_exeext conftest.$ac_ext 9084 ac_cv_lib_avformat_av_alloc_format_context=no 9085 fi 9086 rm -f core conftest.err conftest.$ac_objext \ 9087 conftest$ac_exeext conftest.$ac_ext 16032 9088 LIBS=$ac_check_lib_save_LIBS 16033 9089 fi 16034 { $as_echo "$as_me:$ LINENO: result: $ac_cv_lib_avformat_av_alloc_format_context" >&59090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_alloc_format_context" >&5 16035 9091 $as_echo "$ac_cv_lib_avformat_av_alloc_format_context" >&6; } 16036 if test "x$ac_cv_lib_avformat_av_alloc_format_context" = x ""yes; then9092 if test "x$ac_cv_lib_avformat_av_alloc_format_context" = xyes; then : 16037 9093 cat >>confdefs.h <<_ACEOF 16038 9094 #define HAVE_LIBAVFORMAT 1 … … 16042 9098 16043 9099 else 16044 { $as_echo "$as_me:$ LINENO: WARNING: libavformat not usable" >&59100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libavformat not usable" >&5 16045 9101 $as_echo "$as_me: WARNING: libavformat not usable" >&2;} 16046 9102 fi … … 16050 9106 16051 9107 16052 { $as_echo "$as_me:$ LINENO: checking for nVidia Cg installation" >&59108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nVidia Cg installation" >&5 16053 9109 $as_echo_n "checking for nVidia Cg installation... " >&6; } 16054 9110 CG_DIR="" … … 16063 9119 fi 16064 9120 done 16065 { $as_echo "$as_me:$ LINENO: result: ${CG_DIR}" >&59121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CG_DIR}" >&5 16066 9122 $as_echo "${CG_DIR}" >&6; } 16067 9123 … … 16071 9127 save_CPPFLAGS=$CPPFLAGS 16072 9128 CPPFLAGS="${CG_INC_SPEC} $CPPFLAGS" 16073 16074 9129 for ac_header in Cg/cgGL.h 16075 do 16076 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16078 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16079 $as_echo_n "checking for $ac_header... " >&6; } 16080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16081 $as_echo_n "(cached) " >&6 16082 fi 16083 ac_res=`eval 'as_val=${'$as_ac_Header'} 16084 $as_echo "$as_val"'` 16085 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16086 $as_echo "$ac_res" >&6; } 16087 else 16088 # Is the header compilable? 16089 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 16090 $as_echo_n "checking $ac_header usability... " >&6; } 16091 cat >conftest.$ac_ext <<_ACEOF 16092 /* confdefs.h. */ 16093 _ACEOF 16094 cat confdefs.h >>conftest.$ac_ext 16095 cat >>conftest.$ac_ext <<_ACEOF 16096 /* end confdefs.h. */ 16097 $ac_includes_default 16098 #include <$ac_header> 16099 _ACEOF 16100 rm -f conftest.$ac_objext 16101 if { (ac_try="$ac_compile" 16102 case "(($ac_try" in 16103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16104 *) ac_try_echo=$ac_try;; 16105 esac 16106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16107 $as_echo "$ac_try_echo") >&5 16108 (eval "$ac_compile") 2>conftest.er1 16109 ac_status=$? 16110 grep -v '^ *+' conftest.er1 >conftest.err 16111 rm -f conftest.er1 16112 cat conftest.err >&5 16113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16114 (exit $ac_status); } && { 16115 test -z "$ac_cxx_werror_flag" || 16116 test ! -s conftest.err 16117 } && test -s conftest.$ac_objext; then 16118 ac_header_compiler=yes 16119 else 16120 $as_echo "$as_me: failed program was:" >&5 16121 sed 's/^/| /' conftest.$ac_ext >&5 16122 16123 ac_header_compiler=no 16124 fi 16125 16126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16127 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16128 $as_echo "$ac_header_compiler" >&6; } 16129 16130 # Is the header present? 16131 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 16132 $as_echo_n "checking $ac_header presence... " >&6; } 16133 cat >conftest.$ac_ext <<_ACEOF 16134 /* confdefs.h. */ 16135 _ACEOF 16136 cat confdefs.h >>conftest.$ac_ext 16137 cat >>conftest.$ac_ext <<_ACEOF 16138 /* end confdefs.h. */ 16139 #include <$ac_header> 16140 _ACEOF 16141 if { (ac_try="$ac_cpp conftest.$ac_ext" 16142 case "(($ac_try" in 16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16144 *) ac_try_echo=$ac_try;; 16145 esac 16146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16147 $as_echo "$ac_try_echo") >&5 16148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16149 ac_status=$? 16150 grep -v '^ *+' conftest.er1 >conftest.err 16151 rm -f conftest.er1 16152 cat conftest.err >&5 16153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16154 (exit $ac_status); } >/dev/null && { 16155 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 16156 test ! -s conftest.err 16157 }; then 16158 ac_header_preproc=yes 16159 else 16160 $as_echo "$as_me: failed program was:" >&5 16161 sed 's/^/| /' conftest.$ac_ext >&5 16162 16163 ac_header_preproc=no 16164 fi 16165 16166 rm -f conftest.err conftest.$ac_ext 16167 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16168 $as_echo "$ac_header_preproc" >&6; } 16169 16170 # So? What about this header? 16171 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 16172 yes:no: ) 16173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16174 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16176 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16177 ac_header_preproc=yes 16178 ;; 16179 no:yes:* ) 16180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16181 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16183 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16185 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16187 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16189 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16191 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16192 ( cat <<\_ASBOX 16193 ## ----------------------------------- ## 16194 ## Report this to rappture@nanohub.org ## 16195 ## ----------------------------------- ## 16196 _ASBOX 16197 ) | sed "s/^/$as_me: WARNING: /" >&2 16198 ;; 16199 esac 16200 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16201 $as_echo_n "checking for $ac_header... " >&6; } 16202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16203 $as_echo_n "(cached) " >&6 16204 else 16205 eval "$as_ac_Header=\$ac_header_preproc" 16206 fi 16207 ac_res=`eval 'as_val=${'$as_ac_Header'} 16208 $as_echo "$as_val"'` 16209 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16210 $as_echo "$ac_res" >&6; } 16211 16212 fi 16213 as_val=`eval 'as_val=${'$as_ac_Header'} 16214 $as_echo "$as_val"'` 16215 if test "x$as_val" = x""yes; then 9130 do : 9131 ac_fn_cxx_check_header_mongrel "$LINENO" "Cg/cgGL.h" "ac_cv_header_Cg_cgGL_h" "$ac_includes_default" 9132 if test "x$ac_cv_header_Cg_cgGL_h" = xyes; then : 16216 9133 cat >>confdefs.h <<_ACEOF 16217 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp`116218 _ACEOF 16219 16220 else 16221 { $as_echo "$as_me:$ LINENO: WARNING: cannot find nVidia Cg headers" >&59134 #define HAVE_CG_CGGL_H 1 9135 _ACEOF 9136 9137 else 9138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find nVidia Cg headers" >&5 16222 9139 $as_echo "$as_me: WARNING: cannot find nVidia Cg headers" >&2;} 16223 9140 fi … … 16267 9184 16268 9185 16269 ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanoscale/renderservers.tcl nanovis/Makefile nanovis/newmat11/Makefile nanovis/R2/src/Makefile nanovis/vr util/Makefile nanovis/vrmath/Makefile nanovis/imgLoaders/Makefile nanovis/transfer-function/Makefile pymolproxy/Makefile vtkvis/Doxyfile vtkvis/Makefile start_viz.sh start_nanoscale.sh"9186 ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanoscale/renderservers.tcl nanovis/Makefile nanovis/newmat11/Makefile nanovis/R2/src/Makefile nanovis/vrmath/Makefile nanovis/imgLoaders/Makefile nanovis/transfer-function/Makefile pymolproxy/Makefile vtkvis/Doxyfile vtkvis/Makefile start_viz.sh start_nanoscale.sh" 16270 9187 16271 9188 cat >confcache <<\_ACEOF … … 16296 9213 *${as_nl}*) 16297 9214 case $ac_var in #( 16298 *_cv_*) { $as_echo "$as_me:$ LINENO: WARNING: cache variable $ac_var contains a newline" >&59215 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16299 9216 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16300 9217 esac … … 16302 9219 _ | IFS | as_nl) ;; #( 16303 9220 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16304 *) $as_unset $ac_var;;9221 *) { eval $ac_var=; unset $ac_var;} ;; 16305 9222 esac ;; 16306 9223 esac … … 16310 9227 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16311 9228 *${as_nl}ac_space=\ *) 16312 # `set' does not quote correctly, so add quotes (double-quote16313 # substitution turns \\\\ into \\, and sed turns \\ into \ ).9229 # `set' does not quote correctly, so add quotes: double-quote 9230 # substitution turns \\\\ into \\, and sed turns \\ into \. 16314 9231 sed -n \ 16315 9232 "s/'/'\\\\''/g; … … 16333 9250 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16334 9251 if test -w "$cache_file"; then 16335 test "x$cache_file" != "x/dev/null" &&16336 { $as_echo "$as_me:$ LINENO: updating cache $cache_file" >&59252 if test "x$cache_file" != "x/dev/null"; then 9253 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16337 9254 $as_echo "$as_me: updating cache $cache_file" >&6;} 16338 cat confcache >$cache_file 9255 if test ! -f "$cache_file" || test -h "$cache_file"; then 9256 cat confcache >"$cache_file" 9257 else 9258 case $cache_file in #( 9259 */* | ?:*) 9260 mv -f confcache "$cache_file"$$ && 9261 mv -f "$cache_file"$$ "$cache_file" ;; #( 9262 *) 9263 mv -f confcache "$cache_file" ;; 9264 esac 9265 fi 9266 fi 16339 9267 else 16340 { $as_echo "$as_me:$ LINENO: not updating unwritable cache $cache_file" >&59268 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16341 9269 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16342 9270 fi … … 16352 9280 ac_libobjs= 16353 9281 ac_ltlibobjs= 9282 U= 16354 9283 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16355 9284 # 1. Remove the extension, and $U if already installed. … … 16358 9287 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16359 9288 # will be set to the directory where LIBOBJS objects are built. 16360 a c_libobjs="$ac_libobjs\${LIBOBJDIR}$ac_i\$U.$ac_objext"16361 a c_ltlibobjs="$ac_ltlibobjs\${LIBOBJDIR}$ac_i"'$U.lo'9289 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 9290 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16362 9291 done 16363 9292 LIBOBJS=$ac_libobjs … … 16368 9297 16369 9298 16370 : ${CONFIG_STATUS=./config.status}9299 : "${CONFIG_STATUS=./config.status}" 16371 9300 ac_write_fail=0 16372 9301 ac_clean_files_save=$ac_clean_files 16373 9302 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16374 { $as_echo "$as_me:$ LINENO: creating $CONFIG_STATUS" >&59303 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16375 9304 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16376 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9305 as_write_fail=0 9306 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16377 9307 #! $SHELL 16378 9308 # Generated by $as_me. … … 16384 9314 ac_cs_recheck=false 16385 9315 ac_cs_silent=false 9316 16386 9317 SHELL=\${CONFIG_SHELL-$SHELL} 16387 _ACEOF 16388 16389 cat >>$CONFIG_STATUS <<\_A CEOF || ac_write_fail=116390 ## -------------------- -##16391 ## M4sh Initialization. 16392 ## -------------------- -##9318 export SHELL 9319 _ASEOF 9320 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 9321 ## -------------------- ## 9322 ## M4sh Initialization. ## 9323 ## -------------------- ## 16393 9324 16394 9325 # Be more Bourne compatible 16395 9326 DUALCASE=1; export DUALCASE # for MKS sh 16396 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 9327 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16397 9328 emulate sh 16398 9329 NULLCMD=: … … 16402 9333 setopt NO_GLOB_SUBST 16403 9334 else 16404 case `(set -o) 2>/dev/null` in 16405 *posix*) set -o posix ;; 9335 case `(set -o) 2>/dev/null` in #( 9336 *posix*) : 9337 set -o posix ;; #( 9338 *) : 9339 ;; 16406 9340 esac 16407 16408 fi 16409 16410 16411 16412 16413 # PATH needs CR 16414 # Avoid depending upon Character Ranges. 16415 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16418 as_cr_digits='0123456789' 16419 as_cr_alnum=$as_cr_Letters$as_cr_digits 9341 fi 9342 16420 9343 16421 9344 as_nl=' … … 16426 9349 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16427 9350 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16428 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 9351 # Prefer a ksh shell builtin over an external printf program on Solaris, 9352 # but without wasting forks for bash or zsh. 9353 if test -z "$BASH_VERSION$ZSH_VERSION" \ 9354 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 9355 as_echo='print -r --' 9356 as_echo_n='print -rn --' 9357 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16429 9358 as_echo='printf %s\n' 16430 9359 as_echo_n='printf %s' … … 16437 9366 as_echo_n_body='eval 16438 9367 arg=$1; 16439 case $arg in 9368 case $arg in #( 16440 9369 *"$as_nl"*) 16441 9370 expr "X$arg" : "X\\(.*\\)$as_nl"; … … 16460 9389 fi 16461 9390 16462 # Support unset when possible.16463 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then16464 as_unset=unset16465 else16466 as_unset=false16467 fi16468 16469 9391 16470 9392 # IFS … … 16476 9398 16477 9399 # Find who we are. Look in the path if we contain no directory separator. 16478 case $0 in 9400 as_myself= 9401 case $0 in #(( 16479 9402 *[\\/]* ) as_myself=$0 ;; 16480 9403 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 16483 9406 IFS=$as_save_IFS 16484 9407 test -z "$as_dir" && as_dir=. 16485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break16486 done9408 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9409 done 16487 9410 IFS=$as_save_IFS 16488 9411 … … 16496 9419 if test ! -f "$as_myself"; then 16497 9420 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16498 { (exit 1); exit 1; } 16499 fi 16500 16501 # Work around bugs in pre-3.0 UWIN ksh. 16502 for as_var in ENV MAIL MAILPATH 16503 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 9421 exit 1 9422 fi 9423 9424 # Unset variables that we do not need and which cause bugs (e.g. in 9425 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 9426 # suppresses any "Segmentation fault" message there. '((' could 9427 # trigger a bug in pdksh 5.2.14. 9428 for as_var in BASH_ENV ENV MAIL MAILPATH 9429 do eval test x\${$as_var+set} = xset \ 9430 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16504 9431 done 16505 9432 PS1='$ ' … … 16513 9440 export LANGUAGE 16514 9441 16515 # Required to use basename. 9442 # CDPATH. 9443 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9444 9445 9446 # as_fn_error STATUS ERROR [LINENO LOG_FD] 9447 # ---------------------------------------- 9448 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 9449 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 9450 # script with STATUS, using 1 if that was 0. 9451 as_fn_error () 9452 { 9453 as_status=$1; test $as_status -eq 0 && as_status=1 9454 if test "$4"; then 9455 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 9456 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 9457 fi 9458 $as_echo "$as_me: error: $2" >&2 9459 as_fn_exit $as_status 9460 } # as_fn_error 9461 9462 9463 # as_fn_set_status STATUS 9464 # ----------------------- 9465 # Set $? to STATUS, without forking. 9466 as_fn_set_status () 9467 { 9468 return $1 9469 } # as_fn_set_status 9470 9471 # as_fn_exit STATUS 9472 # ----------------- 9473 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 9474 as_fn_exit () 9475 { 9476 set +e 9477 as_fn_set_status $1 9478 exit $1 9479 } # as_fn_exit 9480 9481 # as_fn_unset VAR 9482 # --------------- 9483 # Portably unset VAR. 9484 as_fn_unset () 9485 { 9486 { eval $1=; unset $1;} 9487 } 9488 as_unset=as_fn_unset 9489 # as_fn_append VAR VALUE 9490 # ---------------------- 9491 # Append the text in VALUE to the end of the definition contained in VAR. Take 9492 # advantage of any shell optimizations that allow amortized linear growth over 9493 # repeated appends, instead of the typical quadratic growth present in naive 9494 # implementations. 9495 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 9496 eval 'as_fn_append () 9497 { 9498 eval $1+=\$2 9499 }' 9500 else 9501 as_fn_append () 9502 { 9503 eval $1=\$$1\$2 9504 } 9505 fi # as_fn_append 9506 9507 # as_fn_arith ARG... 9508 # ------------------ 9509 # Perform arithmetic evaluation on the ARGs, and store the result in the 9510 # global $as_val. Take advantage of shells that can avoid forks. The arguments 9511 # must be portable across $(()) and expr. 9512 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 9513 eval 'as_fn_arith () 9514 { 9515 as_val=$(( $* )) 9516 }' 9517 else 9518 as_fn_arith () 9519 { 9520 as_val=`expr "$@" || test $? -eq 1` 9521 } 9522 fi # as_fn_arith 9523 9524 16516 9525 if expr a : '\(a\)' >/dev/null 2>&1 && 16517 9526 test "X`expr 00001 : '.*\(...\)'`" = X001; then … … 16527 9536 fi 16528 9537 16529 16530 # Name of the executable. 9538 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 9539 as_dirname=dirname 9540 else 9541 as_dirname=false 9542 fi 9543 16531 9544 as_me=`$as_basename -- "$0" || 16532 9545 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ … … 16548 9561 s/.*/./; q'` 16549 9562 16550 # CDPATH. 16551 $as_unset CDPATH 16552 16553 16554 16555 as_lineno_1=$LINENO 16556 as_lineno_2=$LINENO 16557 test "x$as_lineno_1" != "x$as_lineno_2" && 16558 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 16559 16560 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 16561 # uniformly replaced by the line number. The first 'sed' inserts a 16562 # line-number line after each line using $LINENO; the second 'sed' 16563 # does the real work. The second script uses 'N' to pair each 16564 # line-number line with the line containing $LINENO, and appends 16565 # trailing '-' during substitution so that $LINENO is not a special 16566 # case at line end. 16567 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 16568 # scripts with optimization help from Paolo Bonzini. Blame Lee 16569 # E. McMahon (1931-1989) for sed's syntax. :-) 16570 sed -n ' 16571 p 16572 /[$]LINENO/= 16573 ' <$as_myself | 16574 sed ' 16575 s/[$]LINENO.*/&-/ 16576 t lineno 16577 b 16578 :lineno 16579 N 16580 :loop 16581 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 16582 t loop 16583 s/-\n.*// 16584 ' >$as_me.lineno && 16585 chmod +x "$as_me.lineno" || 16586 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 16587 { (exit 1); exit 1; }; } 16588 16589 # Don't try to exec as it changes $[0], causing all sort of problems 16590 # (the dirname of $[0] is not the place where we might find the 16591 # original and so on. Autoconf is especially sensitive to this). 16592 . "./$as_me.lineno" 16593 # Exit status is that of the last command. 16594 exit 16595 } 16596 16597 16598 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16599 as_dirname=dirname 16600 else 16601 as_dirname=false 16602 fi 9563 # Avoid depending upon Character Ranges. 9564 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 9565 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 9566 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 9567 as_cr_digits='0123456789' 9568 as_cr_alnum=$as_cr_Letters$as_cr_digits 16603 9569 16604 9570 ECHO_C= ECHO_N= ECHO_T= 16605 case `echo -n x` in 9571 case `echo -n x` in #((((( 16606 9572 -n*) 16607 case `echo 'x \c'` in9573 case `echo 'xy\c'` in 16608 9574 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16609 *) ECHO_C='\c';; 9575 xy) ECHO_C='\c';; 9576 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 9577 ECHO_T=' ';; 16610 9578 esac;; 16611 9579 *) 16612 9580 ECHO_N='-n';; 16613 9581 esac 16614 if expr a : '\(a\)' >/dev/null 2>&1 &&16615 test "X`expr 00001 : '.*\(...\)'`" = X001; then16616 as_expr=expr16617 else16618 as_expr=false16619 fi16620 9582 16621 9583 rm -f conf$$ conf$$.exe conf$$.file … … 16632 9594 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16633 9595 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16634 # In both cases, we have to default to `cp -p '.9596 # In both cases, we have to default to `cp -pR'. 16635 9597 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16636 as_ln_s='cp -p '9598 as_ln_s='cp -pR' 16637 9599 elif ln conf$$.file conf$$ 2>/dev/null; then 16638 9600 as_ln_s=ln 16639 9601 else 16640 as_ln_s='cp -p '9602 as_ln_s='cp -pR' 16641 9603 fi 16642 9604 else 16643 as_ln_s='cp -p '9605 as_ln_s='cp -pR' 16644 9606 fi 16645 9607 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16646 9608 rmdir conf$$.dir 2>/dev/null 16647 9609 9610 9611 # as_fn_mkdir_p 9612 # ------------- 9613 # Create "$as_dir" as a directory, including parents if necessary. 9614 as_fn_mkdir_p () 9615 { 9616 9617 case $as_dir in #( 9618 -*) as_dir=./$as_dir;; 9619 esac 9620 test -d "$as_dir" || eval $as_mkdir_p || { 9621 as_dirs= 9622 while :; do 9623 case $as_dir in #( 9624 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 9625 *) as_qdir=$as_dir;; 9626 esac 9627 as_dirs="'$as_qdir' $as_dirs" 9628 as_dir=`$as_dirname -- "$as_dir" || 9629 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9630 X"$as_dir" : 'X\(//\)[^/]' \| \ 9631 X"$as_dir" : 'X\(//\)$' \| \ 9632 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 9633 $as_echo X"$as_dir" | 9634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9635 s//\1/ 9636 q 9637 } 9638 /^X\(\/\/\)[^/].*/{ 9639 s//\1/ 9640 q 9641 } 9642 /^X\(\/\/\)$/{ 9643 s//\1/ 9644 q 9645 } 9646 /^X\(\/\).*/{ 9647 s//\1/ 9648 q 9649 } 9650 s/.*/./; q'` 9651 test -d "$as_dir" && break 9652 done 9653 test -z "$as_dirs" || eval "mkdir $as_dirs" 9654 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 9655 9656 9657 } # as_fn_mkdir_p 16648 9658 if mkdir -p . 2>/dev/null; then 16649 as_mkdir_p= :9659 as_mkdir_p='mkdir -p "$as_dir"' 16650 9660 else 16651 9661 test -d ./-p && rmdir ./-p … … 16653 9663 fi 16654 9664 16655 if test -x / >/dev/null 2>&1; then 16656 as_test_x='test -x' 16657 else 16658 if ls -dL / >/dev/null 2>&1; then 16659 as_ls_L_option=L 16660 else 16661 as_ls_L_option= 16662 fi 16663 as_test_x=' 16664 eval sh -c '\'' 16665 if test -d "$1"; then 16666 test -d "$1/."; 16667 else 16668 case $1 in 16669 -*)set "./$1";; 16670 esac; 16671 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 16672 ???[sx]*):;;*)false;;esac;fi 16673 '\'' sh 16674 ' 16675 fi 16676 as_executable_p=$as_test_x 9665 9666 # as_fn_executable_p FILE 9667 # ----------------------- 9668 # Test if FILE is an executable regular file. 9669 as_fn_executable_p () 9670 { 9671 test -f "$1" && test -x "$1" 9672 } # as_fn_executable_p 9673 as_test_x='test -x' 9674 as_executable_p=as_fn_executable_p 16677 9675 16678 9676 # Sed expression to map a string onto a valid CPP name. … … 16684 9682 16685 9683 exec 6>&1 16686 16687 # Save the log message, to keep $[0] and so on meaningful, and to 9684 ## ----------------------------------- ## 9685 ## Main body of $CONFIG_STATUS script. ## 9686 ## ----------------------------------- ## 9687 _ASEOF 9688 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 9689 9690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9691 # Save the log message, to keep $0 and so on meaningful, and to 16688 9692 # report actual input values of CONFIG_FILES etc. instead of their 16689 9693 # values after options handling. 16690 9694 ac_log=" 16691 9695 This file was extended by vizservers $as_me 0.1, which was 16692 generated by GNU Autoconf 2.6 3. Invocation command line was9696 generated by GNU Autoconf 2.69. Invocation command line was 16693 9697 16694 9698 CONFIG_FILES = $CONFIG_FILES … … 16721 9725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16722 9726 ac_cs_usage="\ 16723 \`$as_me' instantiates files from templates according to the 16724 current configuration. 16725 16726 Usage: $0 [OPTION]... [FILE]... 9727 \`$as_me' instantiates files and other configuration actions 9728 from templates according to the current configuration. Unless the files 9729 and actions are specified as TAGs, all are instantiated by default. 9730 9731 Usage: $0 [OPTION]... [TAG]... 16727 9732 16728 9733 -h, --help print this help, then exit 16729 9734 -V, --version print version number and configuration settings, then exit 9735 --config print configuration, then exit 16730 9736 -q, --quiet, --silent 16731 9737 do not print progress messages … … 16743 9749 $config_headers 16744 9750 16745 Report bugs to < bug-autoconf@gnu.org>."9751 Report bugs to <rappture@nanohub.org>." 16746 9752 16747 9753 _ACEOF 16748 9754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9755 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16749 9756 ac_cs_version="\\ 16750 9757 vizservers config.status 0.1 16751 configured by $0, generated by GNU Autoconf 2.6 3,16752 with options \\" `$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"16753 16754 Copyright (C) 20 08Free Software Foundation, Inc.9758 configured by $0, generated by GNU Autoconf 2.69, 9759 with options \\"\$ac_cs_config\\" 9760 9761 Copyright (C) 2012 Free Software Foundation, Inc. 16755 9762 This config.status script is free software; the Free Software Foundation 16756 9763 gives unlimited permission to copy, distribute and modify it." … … 16769 9776 do 16770 9777 case $1 in 16771 --*= *)9778 --*=?*) 16772 9779 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16773 9780 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 9781 ac_shift=: 9782 ;; 9783 --*=) 9784 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9785 ac_optarg= 16774 9786 ac_shift=: 16775 9787 ;; … … 16787 9799 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16788 9800 $as_echo "$ac_cs_version"; exit ;; 9801 --config | --confi | --conf | --con | --co | --c ) 9802 $as_echo "$ac_cs_config"; exit ;; 16789 9803 --debug | --debu | --deb | --de | --d | -d ) 16790 9804 debug=: ;; … … 16793 9807 case $ac_optarg in 16794 9808 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9809 '') as_fn_error $? "missing file argument" ;; 16795 9810 esac 16796 CONFIG_FILES="$CONFIG_FILES'$ac_optarg'"9811 as_fn_append CONFIG_FILES " '$ac_optarg'" 16797 9812 ac_need_defaults=false;; 16798 9813 --header | --heade | --head | --hea ) … … 16801 9816 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16802 9817 esac 16803 CONFIG_HEADERS="$CONFIG_HEADERS'$ac_optarg'"9818 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16804 9819 ac_need_defaults=false;; 16805 9820 --he | --h) 16806 9821 # Conflict between --help and --header 16807 { $as_echo "$as_me: error: ambiguous option: $1 16808 Try \`$0 --help' for more information." >&2 16809 { (exit 1); exit 1; }; };; 9822 as_fn_error $? "ambiguous option: \`$1' 9823 Try \`$0 --help' for more information.";; 16810 9824 --help | --hel | -h ) 16811 9825 $as_echo "$ac_cs_usage"; exit ;; … … 16815 9829 16816 9830 # This is an error. 16817 -*) { $as_echo "$as_me: error: unrecognized option: $1 16818 Try \`$0 --help' for more information." >&2 16819 { (exit 1); exit 1; }; } ;; 16820 16821 *) ac_config_targets="$ac_config_targets $1" 9831 -*) as_fn_error $? "unrecognized option: \`$1' 9832 Try \`$0 --help' for more information." ;; 9833 9834 *) as_fn_append ac_config_targets " $1" 16822 9835 ac_need_defaults=false ;; 16823 9836 … … 16836 9849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16837 9850 if \$ac_cs_recheck; then 16838 set X '$SHELL''$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion9851 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16839 9852 shift 16840 9853 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 … … 16873 9886 "nanovis/newmat11/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/newmat11/Makefile" ;; 16874 9887 "nanovis/R2/src/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/R2/src/Makefile" ;; 16875 "nanovis/vrutil/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/vrutil/Makefile" ;;16876 9888 "nanovis/vrmath/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/vrmath/Makefile" ;; 16877 9889 "nanovis/imgLoaders/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/imgLoaders/Makefile" ;; … … 16883 9895 "start_nanoscale.sh") CONFIG_FILES="$CONFIG_FILES start_nanoscale.sh" ;; 16884 9896 16885 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 16886 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 16887 { (exit 1); exit 1; }; };; 9897 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16888 9898 esac 16889 9899 done … … 16907 9917 $debug || 16908 9918 { 16909 tmp= 9919 tmp= ac_tmp= 16910 9920 trap 'exit_status=$? 16911 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 9921 : "${ac_tmp:=$tmp}" 9922 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16912 9923 ' 0 16913 trap ' { (exit 1); exit 1; }' 1 2 13 159924 trap 'as_fn_exit 1' 1 2 13 15 16914 9925 } 16915 9926 # Create a (secure) tmp directory for tmp files. … … 16917 9928 { 16918 9929 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16919 test - n "$tmp" && test -d "$tmp"9930 test -d "$tmp" 16920 9931 } || 16921 9932 { 16922 9933 tmp=./conf$$-$RANDOM 16923 9934 (umask 077 && mkdir "$tmp") 16924 } || 16925 { 16926 $as_echo "$as_me: cannot create a temporary directory in ." >&2 16927 { (exit 1); exit 1; } 16928 } 9935 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 9936 ac_tmp=$tmp 16929 9937 16930 9938 # Set up the scripts for CONFIG_FILES section. … … 16934 9942 16935 9943 16936 ac_cr=' 16937 ' 9944 ac_cr=`echo X | tr X '\015'` 9945 # On cygwin, bash can eat \r inside `` if the user requested igncr. 9946 # But we know of no other shell where ac_cr would be empty at this 9947 # point, so we can use a bashism as a fallback. 9948 if test "x$ac_cr" = x; then 9949 eval ac_cr=\$\'\\r\' 9950 fi 16938 9951 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16939 9952 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then … … 16943 9956 fi 16944 9957 16945 echo 'BEGIN {' >"$ tmp/subs1.awk" &&9958 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16946 9959 _ACEOF 16947 9960 … … 16952 9965 echo "_ACEOF" 16953 9966 } >conf$$subs.sh || 16954 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 16955 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 16956 { (exit 1); exit 1; }; } 16957 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 9967 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9968 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16958 9969 ac_delim='%!_!# ' 16959 9970 for ac_last_try in false false false false false :; do 16960 9971 . ./conf$$subs.sh || 16961 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 16962 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 16963 { (exit 1); exit 1; }; } 9972 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16964 9973 16965 9974 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` … … 16967 9976 break 16968 9977 elif $ac_last_try; then 16969 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 16970 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 16971 { (exit 1); exit 1; }; } 9978 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16972 9979 else 16973 9980 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " … … 16977 9984 16978 9985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16979 cat >>"\$ tmp/subs1.awk" <<\\_ACAWK &&9986 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16980 9987 _ACEOF 16981 9988 sed -n ' … … 16991 9998 :nl 16992 9999 h 16993 s/\(.\{148\}\). */\1/10000 s/\(.\{148\}\)..*/\1/ 16994 10001 t more1 16995 10002 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ … … 17005 10012 :delim 17006 10013 h 17007 s/\(.\{148\}\). */\1/10014 s/\(.\{148\}\)..*/\1/ 17008 10015 t more2 17009 10016 s/["\\]/\\&/g; s/^/"/; s/$/"/ … … 17025 10032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17026 10033 _ACAWK 17027 cat >>"\$ tmp/subs1.awk" <<_ACAWK &&10034 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17028 10035 for (key in S) S_is_set[key] = 1 17029 10036 FS = "" … … 17057 10064 else 17058 10065 cat 17059 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 17060 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 17061 $as_echo "$as_me: error: could not setup config files machinery" >&2;} 17062 { (exit 1); exit 1; }; } 17063 _ACEOF 17064 17065 # VPATH may cause trouble with some makes, so we remove $(srcdir), 17066 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 10066 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 10067 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 10068 _ACEOF 10069 10070 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 10071 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17067 10072 # trailing colons and then remove the whole line if VPATH becomes empty 17068 10073 # (actually we leave an empty line to preserve line numbers). 17069 10074 if test "x$srcdir" = x.; then 17070 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 17071 s/:*\$(srcdir):*/:/ 17072 s/:*\${srcdir}:*/:/ 17073 s/:*@srcdir@:*/:/ 17074 s/^\([^=]*=[ ]*\):*/\1/ 10075 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 10076 h 10077 s/// 10078 s/^/:/ 10079 s/[ ]*$/:/ 10080 s/:\$(srcdir):/:/g 10081 s/:\${srcdir}:/:/g 10082 s/:@srcdir@:/:/g 10083 s/^:*// 17075 10084 s/:*$// 10085 x 10086 s/\(=[ ]*\).*/\1/ 10087 G 10088 s/\n// 17076 10089 s/^[^=]*=[ ]*$// 17077 10090 }' … … 17085 10098 # This happens for instance with `./config.status Makefile'. 17086 10099 if test -n "$CONFIG_HEADERS"; then 17087 cat >"$ tmp/defines.awk" <<\_ACAWK ||10100 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17088 10101 BEGIN { 17089 10102 _ACEOF … … 17097 10110 ac_delim='%!_!# ' 17098 10111 for ac_last_try in false false :; do 17099 ac_t =`sed -n "/$ac_delim/p" confdefs.h`17100 if test -z "$ac_t "; then10112 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 10113 if test -z "$ac_tt"; then 17101 10114 break 17102 10115 elif $ac_last_try; then 17103 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 17104 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 17105 { (exit 1); exit 1; }; } 10116 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17106 10117 else 17107 10118 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " … … 17188 10199 _ACEOF 17189 10200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17190 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 17191 $as_echo "$as_me: error: could not setup config headers machinery" >&2;} 17192 { (exit 1); exit 1; }; } 10201 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17193 10202 fi # test -n "$CONFIG_HEADERS" 17194 10203 … … 17203 10212 case $ac_mode$ac_tag in 17204 10213 :[FHL]*:*);; 17205 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 17206 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 17207 { (exit 1); exit 1; }; };; 10214 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17208 10215 :[FH]-) ac_tag=-:-;; 17209 10216 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; … … 17224 10231 do 17225 10232 case $ac_f in 17226 -) ac_f="$ tmp/stdin";;10233 -) ac_f="$ac_tmp/stdin";; 17227 10234 *) # Look for the file first in the build tree, then in the source tree 17228 10235 # (if the path is not absolute). The absolute path cannot be DOS-style, … … 17233 10240 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17234 10241 esac || 17235 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 17236 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 17237 { (exit 1); exit 1; }; };; 10242 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17238 10243 esac 17239 10244 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17240 a c_file_inputs="$ac_file_inputs'$ac_f'"10245 as_fn_append ac_file_inputs " '$ac_f'" 17241 10246 done 17242 10247 … … 17249 10254 if test x"$ac_file" != x-; then 17250 10255 configure_input="$ac_file. $configure_input" 17251 { $as_echo "$as_me:$ LINENO: creating $ac_file" >&510256 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17252 10257 $as_echo "$as_me: creating $ac_file" >&6;} 17253 10258 fi … … 17261 10266 17262 10267 case $ac_tag in 17263 *:-:* | *:-) cat >"$tmp/stdin" \ 17264 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 17265 $as_echo "$as_me: error: could not create $ac_file" >&2;} 17266 { (exit 1); exit 1; }; } ;; 10268 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 10269 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17267 10270 esac 17268 10271 ;; … … 17292 10295 } 17293 10296 s/.*/./; q'` 17294 { as_dir="$ac_dir" 17295 case $as_dir in #( 17296 -*) as_dir=./$as_dir;; 17297 esac 17298 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 17299 as_dirs= 17300 while :; do 17301 case $as_dir in #( 17302 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17303 *) as_qdir=$as_dir;; 17304 esac 17305 as_dirs="'$as_qdir' $as_dirs" 17306 as_dir=`$as_dirname -- "$as_dir" || 17307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17308 X"$as_dir" : 'X\(//\)[^/]' \| \ 17309 X"$as_dir" : 'X\(//\)$' \| \ 17310 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17311 $as_echo X"$as_dir" | 17312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17313 s//\1/ 17314 q 17315 } 17316 /^X\(\/\/\)[^/].*/{ 17317 s//\1/ 17318 q 17319 } 17320 /^X\(\/\/\)$/{ 17321 s//\1/ 17322 q 17323 } 17324 /^X\(\/\).*/{ 17325 s//\1/ 17326 q 17327 } 17328 s/.*/./; q'` 17329 test -d "$as_dir" && break 17330 done 17331 test -z "$as_dirs" || eval "mkdir $as_dirs" 17332 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 17333 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 17334 { (exit 1); exit 1; }; }; } 10297 as_dir="$ac_dir"; as_fn_mkdir_p 17335 10298 ac_builddir=. 17336 10299 … … 17389 10352 # FIXME: This hack should be removed a few years after 2.60. 17390 10353 ac_datarootdir_hack=; ac_datarootdir_seen= 17391 17392 10354 ac_sed_dataroot=' 17393 10355 /datarootdir/ { … … 17399 10361 /@infodir@/p 17400 10362 /@localedir@/p 17401 /@mandir@/p 17402 ' 10363 /@mandir@/p' 17403 10364 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17404 10365 *datarootdir*) ac_datarootdir_seen=yes;; 17405 10366 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17406 { $as_echo "$as_me:$ LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&510367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17407 10368 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17408 10369 _ACEOF … … 17414 10375 s&@localedir@&$localedir&g 17415 10376 s&@mandir@&$mandir&g 17416 10377 s&\\\${datarootdir}&$datarootdir&g' ;; 17417 10378 esac 17418 10379 _ACEOF … … 17442 10403 $ac_datarootdir_hack 17443 10404 " 17444 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 17445 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 17446 $as_echo "$as_me: error: could not create $ac_file" >&2;} 17447 { (exit 1); exit 1; }; } 10405 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 10406 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17448 10407 17449 10408 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17450 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 17451 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 17452 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17453 which seems to be undefined. Please make sure it is defined." >&5 10409 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 10410 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 10411 "$ac_tmp/out"`; test -z "$ac_out"; } && 10412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10413 which seems to be undefined. Please make sure it is defined" >&5 17454 10414 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17455 which seems to be undefined. Please make sure it is defined ." >&2;}17456 17457 rm -f "$ tmp/stdin"10415 which seems to be undefined. Please make sure it is defined" >&2;} 10416 10417 rm -f "$ac_tmp/stdin" 17458 10418 case $ac_file in 17459 -) cat "$ tmp/out" && rm -f "$tmp/out";;17460 *) rm -f "$ac_file" && mv "$ tmp/out" "$ac_file";;10419 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 10420 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17461 10421 esac \ 17462 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 17463 $as_echo "$as_me: error: could not create $ac_file" >&2;} 17464 { (exit 1); exit 1; }; } 10422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17465 10423 ;; 17466 10424 :H) … … 17471 10429 { 17472 10430 $as_echo "/* $configure_input */" \ 17473 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 17474 } >"$tmp/config.h" \ 17475 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 17476 $as_echo "$as_me: error: could not create $ac_file" >&2;} 17477 { (exit 1); exit 1; }; } 17478 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 17479 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 10431 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 10432 } >"$ac_tmp/config.h" \ 10433 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10434 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 10435 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17480 10436 $as_echo "$as_me: $ac_file is unchanged" >&6;} 17481 10437 else 17482 10438 rm -f "$ac_file" 17483 mv "$tmp/config.h" "$ac_file" \ 17484 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 17485 $as_echo "$as_me: error: could not create $ac_file" >&2;} 17486 { (exit 1); exit 1; }; } 10439 mv "$ac_tmp/config.h" "$ac_file" \ 10440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17487 10441 fi 17488 10442 else 17489 10443 $as_echo "/* $configure_input */" \ 17490 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 17491 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 17492 $as_echo "$as_me: error: could not create -" >&2;} 17493 { (exit 1); exit 1; }; } 10444 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 10445 || as_fn_error $? "could not create -" "$LINENO" 5 17494 10446 fi 17495 10447 ;; … … 17501 10453 17502 10454 17503 { (exit 0); exit 0; } 17504 _ACEOF 17505 chmod +x $CONFIG_STATUS 10455 as_fn_exit 0 10456 _ACEOF 17506 10457 ac_clean_files=$ac_clean_files_save 17507 10458 17508 10459 test $ac_write_fail = 0 || 17509 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 17510 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 17511 { (exit 1); exit 1; }; } 10460 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17512 10461 17513 10462 … … 17530 10479 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17531 10480 # would make configure fail if this is the last instruction. 17532 $ac_cs_success || { (exit 1); exit 1; }10481 $ac_cs_success || as_fn_exit 1 17533 10482 fi 17534 10483 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17535 { $as_echo "$as_me:$ LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&510484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17536 10485 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17537 10486 fi -
branches/blt4/packages/vizservers/configure.in
r2936 r3061 399 399 nanovis/newmat11/Makefile \ 400 400 nanovis/R2/src/Makefile \ 401 nanovis/vrutil/Makefile \402 401 nanovis/vrmath/Makefile \ 403 402 nanovis/imgLoaders/Makefile \ -
branches/blt4/packages/vizservers/nanovis/Axis.h
r2966 r3061 4 4 5 5 #include <stdlib.h> 6 #include <string.h> 6 7 7 8 #include <cmath> -
branches/blt4/packages/vizservers/nanovis/Command.cpp
r2966 r3061 1490 1490 1491 1491 static int 1492 VolumeAxisOp(ClientData clientData, Tcl_Interp *interp, int objc,1493 Tcl_Obj *const *objv)1494 {1495 const char *string = Tcl_GetString(objv[2]);1496 char c;1497 c = string[0];1498 if ((c == 'l') && (strcmp(string, "label") == 0)) {1499 int axis;1500 if (GetAxisFromObj(interp, objv[3], &axis) != TCL_OK) {1501 return TCL_ERROR;1502 }1503 std::vector<Volume *> ivol;1504 if (GetVolumes(interp, objc - 5, objv + 5, &ivol) != TCL_OK) {1505 return TCL_ERROR;1506 }1507 std::vector<Volume *>::iterator iter;1508 const char *label;1509 label = Tcl_GetString(objv[4]);1510 for (iter = ivol.begin(); iter != ivol.end(); iter++) {1511 (*iter)->setLabel(axis, label);1512 }1513 } else {1514 Tcl_AppendResult(interp, "bad option \"", string,1515 "\": should be label", (char*)NULL);1516 return TCL_ERROR;1517 }1518 return TCL_OK;1519 }1520 1521 static int1522 1492 VolumeStateOp(ClientData clientData, Tcl_Interp *interp, int objc, 1523 1493 Tcl_Obj *const *objv) … … 1557 1527 static Rappture::CmdSpec volumeOps[] = { 1558 1528 {"animation", 2, VolumeAnimationOp, 3, 0, "oper ?args?",}, 1559 {"axis", 2, VolumeAxisOp, 4, 0, "label axis value ?indices?",},1560 1529 {"data", 2, VolumeDataOp, 3, 0, "oper ?args?",}, 1561 1530 {"delete", 2, VolumeDeleteOp, 3, 0, "?name...?",}, … … 1572 1541 * ---------------------------------------------------------------------- 1573 1542 * CLIENT COMMAND: 1574 * volume axis label x|y|z <value> ?<volumeId> ...?1575 1543 * volume data state on|off ?<volumeId> ...? 1576 1544 * volume outline state on|off ?<volumeId> ...? -
branches/blt4/packages/vizservers/nanovis/FlowCmd.cpp
r2966 r3061 146 146 147 147 void 148 FlowParticles:: Render()148 FlowParticles::render() 149 149 { 150 150 TRACE("rendering particles %s\n", _name); … … 161 161 162 162 void 163 FlowParticles:: Configure()163 FlowParticles::configure() 164 164 { 165 165 _rendererPtr->setPos(FlowCmd::GetRelativePosition(&_sv.position)); … … 343 343 { 344 344 FlowParticlesIterator iter; 345 FlowParticles *particlesPtr;346 for (particlesPtr = FirstParticles(&iter);particlesPtr != NULL;345 for (FlowParticles *particlesPtr = FirstParticles(&iter); 346 particlesPtr != NULL; 347 347 particlesPtr = NextParticles(&iter)) { 348 particlesPtr-> Reset();348 particlesPtr->reset(); 349 349 } 350 350 } … … 353 353 FlowCmd::Advect() 354 354 { 355 NvVectorField *fieldPtr; 356 fieldPtr = VectorField(); 355 NvVectorField *fieldPtr = VectorField(); 357 356 fieldPtr->active(true); 358 357 FlowParticlesIterator iter; 359 FlowParticles *particlesPtr;360 for (particlesPtr = FirstParticles(&iter);particlesPtr != NULL;358 for (FlowParticles *particlesPtr = FirstParticles(&iter); 359 particlesPtr != NULL; 361 360 particlesPtr = NextParticles(&iter)) { 362 361 if (particlesPtr->visible()) { 363 particlesPtr-> Advect();362 particlesPtr->advect(); 364 363 } 365 364 } … … 372 371 _fieldPtr->render(); 373 372 FlowParticlesIterator iter; 374 FlowParticles *particlesPtr;375 for (particlesPtr = FirstParticles(&iter);particlesPtr != NULL;373 for (FlowParticles *particlesPtr = FirstParticles(&iter); 374 particlesPtr != NULL; 376 375 particlesPtr = NextParticles(&iter)) { 377 376 if (particlesPtr->visible()) { 378 particlesPtr-> Render();377 particlesPtr->render(); 379 378 } 380 379 } … … 517 516 FlowCmd::InitializeParticles() 518 517 { 519 FlowParticles *particlesPtr;520 518 FlowParticlesIterator iter; 521 for (particlesPtr = FirstParticles(&iter); particlesPtr != NULL; 519 for (FlowParticles *particlesPtr = FirstParticles(&iter); 520 particlesPtr != NULL; 522 521 particlesPtr = NextParticles(&iter)) { 523 particlesPtr-> Initialize();522 particlesPtr->initialize(); 524 523 } 525 524 } … … 571 570 NanoVis::licRenderer-> 572 571 setVectorField(_volPtr->id, loc, 573 1.0f /_volPtr->aspectRatioWidth,574 1.0f /_volPtr->aspectRatioHeight,575 1.0f /_volPtr->aspectRatioDepth,572 _volPtr->aspectRatioWidth, 573 _volPtr->aspectRatioHeight, 574 _volPtr->aspectRatioDepth, 576 575 _volPtr->wAxis.max()); 577 576 SetCurrentPosition(); … … 582 581 if (NanoVis::velocityArrowsSlice != NULL) { 583 582 NanoVis::velocityArrowsSlice-> 584 vectorField(_volPtr->id, 585 //*(volPtr->get_location()), 586 1.0f, 587 _volPtr->aspectRatioHeight / _volPtr->aspectRatioWidth, 588 _volPtr->aspectRatioDepth / _volPtr->aspectRatioWidth 589 //,volPtr->wAxis.max() 590 ); 591 TRACE("Arrows enabled set to %d\n", _sv.showArrows); 583 setVectorField(_volPtr->id, loc, 584 _volPtr->aspectRatioWidth, 585 _volPtr->aspectRatioHeight, 586 _volPtr->aspectRatioDepth, 587 _volPtr->wAxis.max()); 592 588 NanoVis::velocityArrowsSlice->axis(_sv.slicePos.axis); 593 589 NanoVis::velocityArrowsSlice->slicePos(_sv.slicePos.value); 594 590 NanoVis::velocityArrowsSlice->enabled(_sv.showArrows); 595 591 } 596 FlowParticles *particlesPtr; 592 597 593 FlowParticlesIterator partIter; 598 for (particlesPtr = FirstParticles(&partIter); particlesPtr != NULL; 594 for (FlowParticles *particlesPtr = FirstParticles(&partIter); 595 particlesPtr != NULL; 599 596 particlesPtr = NextParticles(&partIter)) { 600 particlesPtr->SetVectorField(_volPtr); 597 particlesPtr->setVectorField(_volPtr, loc, 598 _volPtr->aspectRatioWidth, 599 _volPtr->aspectRatioHeight, 600 _volPtr->aspectRatioDepth, 601 _volPtr->wAxis.max()); 601 602 } 602 603 return true; … … 1357 1358 return TCL_ERROR; 1358 1359 } 1359 if (particlesPtr-> ParseSwitches(interp, objc - 4, objv + 4) != TCL_OK) {1360 if (particlesPtr->parseSwitches(interp, objc - 4, objv + 4) != TCL_OK) { 1360 1361 delete particlesPtr; 1361 1362 return TCL_ERROR; 1362 1363 } 1363 particlesPtr-> Configure();1364 particlesPtr->configure(); 1364 1365 NanoVis::eventuallyRedraw(); 1365 1366 Tcl_SetObjResult(interp, objv[3]); … … 1377 1378 return TCL_ERROR; 1378 1379 } 1379 if (particlesPtr-> ParseSwitches(interp, objc - 4, objv + 4) != TCL_OK) {1380 return TCL_ERROR; 1381 } 1382 particlesPtr-> Configure();1380 if (particlesPtr->parseSwitches(interp, objc - 4, objv + 4) != TCL_OK) { 1381 return TCL_ERROR; 1382 } 1383 particlesPtr->configure(); 1383 1384 NanoVis::eventuallyRedraw(NanoVis::MAP_FLOWS); 1384 1385 return TCL_OK; -
branches/blt4/packages/vizservers/nanovis/FlowCmd.h
r2936 r3061 83 83 } 84 84 85 int ParseSwitches(Tcl_Interp *interp, int objc, Tcl_Obj *const *objv)85 int parseSwitches(Tcl_Interp *interp, int objc, Tcl_Obj *const *objv) 86 86 { 87 87 if (Rappture::ParseSwitches(interp, _switches, objc, objv, &_sv, … … 92 92 } 93 93 94 void Advect()94 void advect() 95 95 { 96 96 assert(_rendererPtr->active()); … … 98 98 } 99 99 100 void Render();101 102 void Reset()100 void render(); 101 102 void reset() 103 103 { 104 104 _rendererPtr->reset(); 105 105 } 106 106 107 void Initialize()107 void initialize() 108 108 { 109 109 _rendererPtr->initialize(); 110 110 } 111 111 112 void SetVectorField(Volume *volPtr) 112 void setVectorField(Volume *volPtr, const Vector3& location, 113 float scaleX, float scaleY, float scaleZ, 114 float max) 113 115 { 114 116 _rendererPtr-> 115 setVectorField(volPtr->id, 116 volPtr->location(),117 1.0f,118 volPtr->height / (float)volPtr->width,119 volPtr->depth / (float)volPtr->width,120 volPtr->wAxis.max());121 } 122 123 void Configure();117 setVectorField(volPtr->id, 118 location, 119 scaleX, 120 scaleY, 121 scaleZ, 122 max); 123 } 124 125 void configure(); 124 126 125 127 private: -
branches/blt4/packages/vizservers/nanovis/Makefile.in
r2966 r3061 44 44 VRMATH_LIB = $(VRMATH_DIR)/vrmath.a 45 45 VRMATH_LIB_SPEC = $(VRMATH_LIB) 46 VRUTIL_DIR = ./vrutil47 VRUTIL_INC_SPEC = -I$(srcdir)/$(VRUTIL_DIR)/include48 VRUTIL_LIB = $(VRUTIL_DIR)/vrutil.a49 VRUTIL_LIB_SPEC = $(VRUTIL_LIB)50 46 R2_DIR = ./R2 51 47 R2_INC_SPEC = -I$(srcdir)/$(R2_DIR)/include … … 69 65 $(MAT_LIB_SPEC) \ 70 66 $(VRMATH_LIB_SPEC) \ 71 $(VRUTIL_LIB_SPEC) \72 67 $(TCL_LIB_SPEC) \ 73 68 $(CG_LIB_SPEC) \ … … 84 79 $(MAT_INC_SPEC) \ 85 80 $(VRMATH_INC_SPEC) \ 86 $(VRUTIL_INC_SPEC) \87 81 $(TCL_INC_SPEC) \ 88 82 $(FF_INC_SPEC) \ … … 134 128 Plane.o \ 135 129 PlaneRenderer.o \ 136 Renderable.o \137 130 RenderContext.o \ 138 131 RenderVertexArray.o \ … … 155 148 156 149 resources = \ 157 $(srcdir)/resources/Font.bmp \158 150 $(srcdir)/resources/arrows.bmp \ 159 $(srcdir)/resources/arrows_red_bg.bmp \160 151 $(srcdir)/resources/particle2.bmp \ 161 152 $(srcdir)/resources/verdana.fnt \ … … 182 173 ParticleSystem.o \ 183 174 ParticleSystemFactory.o \ 175 Renderable.o \ 184 176 ScreenSnapper.o \ 185 177 Sphere.o … … 203 195 endif 204 196 205 .PHONY: all install install-resources install-shaders install-nanovis clean distclean newmat11 R2 imgloaders vrmath vrutiltransfer-function206 207 all: newmat11 R2 imgloaders vrmath vrutilnanovis197 .PHONY: all install install-resources install-shaders install-nanovis clean distclean newmat11 R2 imgloaders vrmath transfer-function 198 199 all: newmat11 R2 imgloaders vrmath nanovis 208 200 209 201 install: install-nanovis install-resources install-shaders … … 212 204 R2: $(R2_LIB) 213 205 vrmath: $(VRMATH_LIB) 214 vrutil: $(VRUTIL_LIB)215 206 imgloaders: $(IMG_LIB) 216 207 … … 221 212 $(MAKE) -C $(VRMATH_DIR) all 222 213 223 $(VRUTIL_LIB):224 $(MAKE) -C $(VRUTIL_DIR) all225 226 214 $(R2_LIB): 227 215 $(MAKE) -C $(R2_DIR)/src all … … 230 218 $(MAKE) -C $(IMG_DIR) all 231 219 232 nanovis: $(MAT_LIB) $(R2_LIB) $(IMG_LIB) $(VRMATH_LIB) $( VRUTIL_LIB) $(OBJS)220 nanovis: $(MAT_LIB) $(R2_LIB) $(IMG_LIB) $(VRMATH_LIB) $(OBJS) 233 221 $(CXX) $(CXX_SWITCHES) -o $@ $^ $(LIBS) 234 222 … … 269 257 $(MAKE) -C $(MAT_DIR) clean 270 258 $(MAKE) -C $(VRMATH_DIR) clean 271 $(MAKE) -C $(VRUTIL_DIR) clean272 259 $(MAKE) -C $(R2_DIR)/src clean 273 260 $(MAKE) -C $(IMG_DIR) clean … … 277 264 $(MAKE) -C $(MAT_DIR) distclean 278 265 $(MAKE) -C $(VRMATH_DIR) distclean 279 $(MAKE) -C $(VRUTIL_DIR) distclean280 266 $(MAKE) -C $(R2_DIR)/src distclean 281 267 $(MAKE) -C $(IMG_DIR) distclean -
branches/blt4/packages/vizservers/nanovis/Mat4x4.cpp
r2936 r3061 110 110 111 111 Vector4 112 Mat4x4::multiply _row_vector(const Vector4& v) const112 Mat4x4::multiplyRowVector(const Vector4& v) const 113 113 { 114 114 Vector4 ret; -
branches/blt4/packages/vizservers/nanovis/Mat4x4.h
r2936 r3061 35 35 Mat4x4 transpose() const; 36 36 37 Vector4 multiply _row_vector(const Vector4& v) const;37 Vector4 multiplyRowVector(const Vector4& v) const; 38 38 39 39 Vector4 transform(const Vector4& v) const; -
branches/blt4/packages/vizservers/nanovis/NvLIC.cpp
r2966 r3061 18 18 #include <assert.h> 19 19 20 #include <R2/R2FilePath.h> 20 #include "nanovis.h" 21 #include "define.h" 21 22 22 23 #include "NvLIC.h" 23 24 #include "NvShader.h" 24 #include "define.h"25 25 #include "Trace.h" 26 26 … … 31 31 NvLIC::NvLIC(int size, int width, int height, int axis, 32 32 float offset) : 33 Renderable(Vector3(0.0f, 0.0f, 0.0f)),34 33 _width(width), 35 34 _height(height), … … 58 57 glGenTextures(1, &_patternTex); 59 58 glBindTexture(GL_TEXTURE_2D, _patternTex); 60 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);61 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);62 59 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); 63 60 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); 61 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); 62 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); 64 63 glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); 65 64 … … 111 110 _renderVelShader = new NvShader(); 112 111 _renderVelShader->loadFragmentProgram("render_vel.cg", "main"); 113 114 _velTexParamRenderVel =115 _renderVelShader->getNamedParameterFromFP("vel_tex");116 117 _planeNormalParamRenderVel =118 _renderVelShader->getNamedParameterFromFP("plane_normal");119 120 _maxParam =121 _renderVelShader->getNamedParameterFromFP("vmax");122 112 123 113 makePatterns(); … … 253 243 glBindTexture(GL_TEXTURE_3D, _vectorFieldId); 254 244 255 cgGLSetTextureParameter(_velTexParamRenderVel, _vectorFieldId);256 cgGLEnableTextureParameter(_velTexParamRenderVel);257 cgGLSetParameter4f(_planeNormalParamRenderVel, 1., 1., 0., 0);258 cgGLSetParameter1f(_maxParam, _max);259 260 245 _renderVelShader->bind(); 246 _renderVelShader->setFPTextureParameter("vel_tex", _vectorFieldId); 247 _renderVelShader->setFPParameter1f("timestep", 0.0005); 248 _renderVelShader->setFPParameter1f("vmax", _max > 100.0 ? 100.0 : _max); 249 250 switch (_axis) { 251 case 0: 252 _renderVelShader->setFPParameter3f("projection_vector", 0., 1., 1.); 253 break; 254 case 1: 255 _renderVelShader->setFPParameter3f("projection_vector", 1., 0., 1.); 256 break; 257 default: 258 case 2: 259 _renderVelShader->setFPParameter3f("projection_vector", 1., 1., 0.); 260 break; 261 } 261 262 262 263 glBegin(GL_QUADS); 263 264 { 264 265 switch (_axis) { 265 case 0 : 266 // TBD.. 266 case 0: 267 267 glTexCoord3f(_offset, 0., 0.); glVertex2f(0., 0.); 268 268 glTexCoord3f(_offset, 1., 0.); glVertex2f(_size, 0.); 269 269 glTexCoord3f(_offset, 1., 1.); glVertex2f(_size, _size); 270 270 glTexCoord3f(_offset, 0., 1.); glVertex2f(0., _size); 271 break; 272 case 1 : 273 // TBD.. 271 break; 272 case 1: 274 273 glTexCoord3f(0., _offset, 0.); glVertex2f(0., 0.); 275 274 glTexCoord3f(1., _offset, 0.); glVertex2f(_size, 0.); 276 275 glTexCoord3f(1., _offset, 1.); glVertex2f(_size, _size); 277 276 glTexCoord3f(0., _offset, 1.); glVertex2f(0., _size); 278 279 case 2 277 break; 278 case 2: 280 279 glTexCoord3f(0., 0., _offset); glVertex2f(0., 0.); 281 280 glTexCoord3f(1., 0., _offset); glVertex2f(_size, 0.); … … 287 286 glEnd(); 288 287 288 _renderVelShader->disableFPTextureParameter("vel_tex"); 289 289 _renderVelShader->unbind(); 290 291 cgGLDisableTextureParameter(_velTexParamRenderVel);292 290 293 291 glBindTexture(GL_TEXTURE_3D, 0); … … 364 362 for (j = 0; j < NMESH-1; j++) { 365 363 y = DM*j; 366 glTexCoord2f(x1, y); 364 glTexCoord2f(x1, y); 367 365 getVelocity(x1, y, &px, &py); 368 366 glVertex2f(px, py); 369 367 370 glTexCoord2f(x2, y); 371 getVelocity(x2, y, &px, &py); 368 glTexCoord2f(x2, y); 369 getVelocity(x2, y, &px, &py); 372 370 glVertex2f(px, py); 373 371 } … … 382 380 glEnable(GL_TEXTURE_2D); 383 381 glCallList(_iframe % _Npat + _disListID); 384 glBegin(GL_QUAD _STRIP);382 glBegin(GL_QUADS); 385 383 { 386 384 glTexCoord2f(0.0, 0.0); glVertex2f(0.0, 0.0); 387 glTexCoord2f(0.0, _tmax); glVertex2f(0.0, 1.0);388 385 glTexCoord2f(_tmax, 0.0); glVertex2f(1.0, 0.0); 389 386 glTexCoord2f(_tmax, _tmax); glVertex2f(1.0, 1.0); 390 glEnd(); 391 } 387 glTexCoord2f(0.0, _tmax); glVertex2f(0.0, 1.0); 388 } 389 glEnd(); 392 390 glDisable(GL_TEXTURE_2D); 393 391 … … 450 448 glPushMatrix(); 451 449 452 float w = 1.0f / _scale.x;453 450 glTranslatef(_origin.x, _origin.y, _origin.z); 454 glScalef( 1.0f, 1.0f / _scale.y / w, 1.0f / _scale.z / w);451 glScalef(_scale.x, _scale.y, _scale.z); 455 452 456 453 glColor4f(1, 1, 1, 1); … … 512 509 513 510 //TRACE("(xi yi) = (%d %d), ", xi, yi); 514 vx = _sliceVector[4 * (xi+yi*_size)]; 515 vy = _sliceVector[4 * (xi+yi*_size)+1]; 511 switch (_axis) { 512 case 0: 513 vx = _sliceVector[4 * (xi+yi*_size)+2]; 514 vy = _sliceVector[4 * (xi+yi*_size)+1]; 515 break; 516 case 1: 517 vx = _sliceVector[4 * (xi+yi*_size)]; 518 vy = _sliceVector[4 * (xi+yi*_size)+2]; 519 break; 520 case 2: 521 default: 522 vx = _sliceVector[4 * (xi+yi*_size)]; 523 vy = _sliceVector[4 * (xi+yi*_size)+1]; 524 break; 525 } 516 526 r = vx*vx + vy*vy; 517 527 -
branches/blt4/packages/vizservers/nanovis/NvLIC.h
r2966 r3061 18 18 19 19 #include <GL/glew.h> 20 #include <Cg/cg.h>21 20 22 #include "config.h"23 #include "nanovis.h"24 25 #include "Renderable.h"26 21 #include "Vector3.h" 27 22 #include "Volume.h" 28 23 #include "NvShader.h" 29 24 30 class NvLIC : public Renderable25 class NvLIC 31 26 { 32 27 public: … … 92 87 93 88 int _width, _height; 94 int _size; //The lic is a square of size, it can95 // be stretched 96 float *_sliceVector; //Storage for the per slice vectors97 // driving the follow. 98 Vector3 _scale; //Scaling factor stretching the lic99 // plane to fit the actual dimensions 89 int _size; /**< The lic is a square of size, it can 90 be stretched */ 91 float *_sliceVector; /**< Storage for the per slice vectors 92 driving the flow */ 93 Vector3 _scale; /**< Scaling factor stretching the lic 94 plane to fit the actual dimensions */ 100 95 Vector3 _origin; 101 float _offset; // [0,1] offset of _axisplane102 int _axis; 96 float _offset; ///< [0,1] offset of slice plane 97 int _axis; ///< Axis normal to slice plane 103 98 104 99 //some convolve variables. They can pretty much stay fixed … … 114 109 115 110 NvShader *_renderVelShader; 116 //CG shader parameters 117 CGparameter _velTexParam; 118 CGparameter _velTexParamRenderVel; 119 CGparameter _planeNormalParamRenderVel; 120 CGparameter _maxParam; 121 111 122 112 GLuint _colorTex, _patternTex, _magTex; 123 113 GLuint _fbo, _velFbo, _sliceVectorTex; // For projecting 3d vector to 2d -
branches/blt4/packages/vizservers/nanovis/NvParticleRenderer.h
r2966 r3061 19 19 #include <GL/glew.h> 20 20 21 #include "Renderable.h"22 21 #include "NvParticleAdvectionShader.h" 23 22 #include "RenderVertexArray.h" … … 39 38 }; 40 39 41 class NvParticleRenderer : public Renderable40 class NvParticleRenderer 42 41 { 43 42 public: -
branches/blt4/packages/vizservers/nanovis/NvRegularVolumeShader.cpp
r2936 r3061 1 1 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 3 #include <GL/glew.h>4 #include <Cg/cgGL.h>5 2 6 3 #include "NvRegularVolumeShader.h" … … 18 15 { 19 16 loadFragmentProgram("one_volume.cg", "main"); 20 _mviOneVolumeParam = getNamedParameterFromFP("modelViewInv");21 _mvOneVolumeParam = getNamedParameterFromFP("modelView");22 23 _volOneVolumeParam = getNamedParameterFromFP("volume");24 _tfOneVolumeParam = getNamedParameterFromFP("tf");25 _renderParamOneVolumeParam = getNamedParameterFromFP("renderParameters");26 _optionOneVolumeParam = getNamedParameterFromFP("options");27 17 } 28 18 … … 30 20 { 31 21 //regular cubic volume 32 cgGLSetStateMatrixParameter(_mviOneVolumeParam, CG_GL_MODELVIEW_MATRIX,33 CG_GL_MATRIX_INVERSE);34 cgGLSetStateMatrixParameter(_mvOneVolumeParam, CG_GL_MODELVIEW_MATRIX,35 CG_GL_MATRIX_IDENTITY);22 setGLStateMatrixFPParameter("modelViewInv", MODELVIEW_MATRIX, 23 MATRIX_INVERSE); 24 setGLStateMatrixFPParameter("modelView", MODELVIEW_MATRIX, 25 MATRIX_IDENTITY); 36 26 37 cgGLSetTextureParameter(_volOneVolumeParam, volume->id); 38 cgGLSetTextureParameter(_tfOneVolumeParam, tfID); 39 cgGLEnableTextureParameter(_volOneVolumeParam); 40 cgGLEnableTextureParameter(_tfOneVolumeParam); 27 setFPTextureParameter("volume", volume->id); 28 setFPTextureParameter("tf", tfID); 41 29 42 30 if (!sliceMode) { 43 cgGLSetParameter4f(_renderParamOneVolumeParam,44 45 46 47 31 setFPParameter4f("renderParameters", 32 volume->numSlices(), 33 volume->opacityScale(), 34 volume->diffuse(), 35 volume->specular()); 48 36 } else { 49 cgGLSetParameter4f(_renderParamOneVolumeParam,50 51 52 53 37 setFPParameter4f("renderParameters", 38 0., 39 volume->opacityScale(), 40 volume->diffuse(), 41 volume->specular()); 54 42 } 55 43 56 cgGLSetParameter4f(_optionOneVolumeParam,57 58 59 60 44 setFPParameter4f("options", 45 0.0f, 46 volume->isosurface(), 47 0.0f, 48 0.0f); 61 49 62 50 NvShader:: bind(); … … 65 53 void NvRegularVolumeShader::unbind() 66 54 { 67 cgGLDisableTextureParameter(_volOneVolumeParam);68 cgGLDisableTextureParameter(_tfOneVolumeParam);55 disableFPTextureParameter("volume"); 56 disableFPTextureParameter("tf"); 69 57 70 58 NvShader::unbind(); -
branches/blt4/packages/vizservers/nanovis/NvRegularVolumeShader.h
r2936 r3061 10 10 public: 11 11 NvRegularVolumeShader(); 12 12 13 virtual ~NvRegularVolumeShader(); 13 14 14 15 virtual void bind(unsigned int tfID, Volume* volume, int sliceMode); 16 15 17 virtual void unbind(); 16 18 17 19 private: 18 20 void init(); 19 20 CGparameter _volOneVolumeParam;21 CGparameter _tfOneVolumeParam;22 CGparameter _mviOneVolumeParam;23 CGparameter _mvOneVolumeParam;24 CGparameter _renderParamOneVolumeParam;25 CGparameter _optionOneVolumeParam;26 21 }; 27 22 -
branches/blt4/packages/vizservers/nanovis/NvShader.cpp
r2966 r3061 49 49 50 50 CGprogram 51 LoadCgSourceProgram(CGcontext context, const char *fileName,52 CGprofile profile, const char *entryPoint)53 {54 return NvShader::loadCgSourceProgram(context, fileName,55 profile, entryPoint);56 }57 58 CGprogram59 51 NvShader::loadCgSourceProgram(CGcontext context, const char *fileName, 60 52 CGprofile profile, const char *entryPoint) 61 53 { 62 const char *path = R2FilePath::getInstance()->getPath(fileName);63 if (path == NULL) {54 std::string path = R2FilePath::getInstance()->getPath(fileName); 55 if (path.empty()) { 64 56 ERROR("can't find program \"%s\"\n", fileName); 65 57 } 66 TRACE("cg program compiling: %s\n", path );58 TRACE("cg program compiling: %s\n", path.c_str()); 67 59 CGprogram program; 68 program = cgCreateProgramFromFile(context, CG_SOURCE, path , profile,60 program = cgCreateProgramFromFile(context, CG_SOURCE, path.c_str(), profile, 69 61 entryPoint, NULL); 70 62 cgGLLoadProgram(program); … … 73 65 ERROR("Error message: %s\n", cgGetLastListing(context)); 74 66 } 75 TRACE("successfully compiled program: %s\n", path); 76 delete [] path; 67 TRACE("successfully compiled program: %s\n", path.c_str()); 77 68 return program; 78 69 } -
branches/blt4/packages/vizservers/nanovis/NvShader.h
r2966 r3061 11 11 12 12 #include "Trace.h" 13 14 extern CGprogram15 LoadCgSourceProgram(CGcontext context, const char *fileName,16 CGprofile profile, const char *entryPoint);17 13 18 14 class NvShader … … 253 249 } 254 250 255 static CGprogram256 loadCgSourceProgram(CGcontext context, const char *filename,257 CGprofile profile, const char *entryPoint);258 259 251 protected: 260 252 typedef std::tr1::unordered_map<std::string, CGparameter> ParameterHashmap; … … 316 308 static CGprofile _defaultFragmentProfile; 317 309 static CGcontext _cgContext; 310 311 private: 312 static CGprogram 313 loadCgSourceProgram(CGcontext context, const char *filename, 314 CGprofile profile, const char *entryPoint); 318 315 }; 319 316 -
branches/blt4/packages/vizservers/nanovis/NvZincBlendeVolumeShader.cpp
r2966 r3061 1 1 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 3 #include <GL/glew.h>4 #include <Cg/cgGL.h>5 2 6 3 #include "NvZincBlendeVolumeShader.h" … … 18 15 { 19 16 loadFragmentProgram("zincblende_volume.cg", "main"); 20 _tfParam = getNamedParameterFromFP("tf");21 _volumeAParam = getNamedParameterFromFP("volumeA");22 _volumeBParam = getNamedParameterFromFP("volumeB");23 _cellSizeParam = getNamedParameterFromFP("cellSize");24 _mviParam = getNamedParameterFromFP("modelViewInv");25 _renderParam = getNamedParameterFromFP("renderParameters");26 _optionOneVolumeParam = getNamedParameterFromFP("options");27 17 } 28 18 … … 30 20 { 31 21 ZincBlendeVolume *vol = (ZincBlendeVolume *)volume; 32 cgGLSetStateMatrixParameter(_mviParam, CG_GL_MODELVIEW_MATRIX,33 CG_GL_MATRIX_INVERSE);34 cgGLSetTextureParameter(_tfParam, tfID);35 cgGLSetParameter4f(_cellSizeParam,36 37 38 22 setGLStateMatrixFPParameter("modelViewInv", MODELVIEW_MATRIX, 23 MATRIX_INVERSE); 24 setFPTextureParameter("tf", tfID); 25 setFPParameter4f("cellSize", 26 vol->cellSize.x, 27 vol->cellSize.y, 28 vol->cellSize.z, 0.); 39 29 40 30 if (!sliceMode) { 41 cgGLSetParameter4f(_renderParam,42 43 44 45 31 setFPParameter4f("renderParameters", 32 vol->numSlices(), 33 vol->opacityScale(), 34 vol->diffuse(), 35 vol->specular()); 46 36 } else { 47 cgGLSetParameter4f(_renderParam,48 49 50 51 37 setFPParameter4f("renderParameters", 38 0., 39 vol->opacityScale(), 40 vol->diffuse(), 41 vol->specular()); 52 42 } 53 43 54 cgGLSetParameter4f(_optionOneVolumeParam,55 56 57 58 44 setFPParameter4f("options", 45 0.0f, 46 volume->isosurface(), 47 0.0f, 48 0.0f); 59 49 60 cgGLSetTextureParameter(_volumeAParam, vol->zincblendeTex[0]->id()); 61 cgGLSetTextureParameter(_volumeBParam, vol->zincblendeTex[1]->id()); 62 cgGLEnableTextureParameter(_volumeAParam); 63 cgGLEnableTextureParameter(_volumeBParam); 50 setFPTextureParameter("volumeA", vol->zincblendeTex[0]->id()); 51 setFPTextureParameter("volumeB", vol->zincblendeTex[1]->id()); 64 52 65 53 NvShader::bind(); … … 68 56 void NvZincBlendeVolumeShader::unbind() 69 57 { 70 cgGLDisableTextureParameter(_volumeAParam);71 cgGLDisableTextureParameter(_volumeBParam);72 cgGLDisableTextureParameter(_tfParam);58 disableFPTextureParameter("volumeA"); 59 disableFPTextureParameter("volumeB"); 60 disableFPTextureParameter("tf"); 73 61 74 62 NvShader::unbind(); -
branches/blt4/packages/vizservers/nanovis/NvZincBlendeVolumeShader.h
r2936 r3061 19 19 private: 20 20 void init(); 21 22 CGparameter _tfParam;23 CGparameter _volumeAParam;24 CGparameter _volumeBParam;25 CGparameter _cellSizeParam;26 CGparameter _mviParam;27 CGparameter _renderParam;28 CGparameter _optionOneVolumeParam;29 21 }; 30 22 -
branches/blt4/packages/vizservers/nanovis/ParticleSystem.cpp
r2936 r3061 11 11 #include <Cg/cgGL.h> 12 12 13 #include <vrutil/vrFilePath.h> 13 #include <R2/R2FilePath.h> 14 14 15 #include <Image.h> 15 16 #include <ImageLoader.h> … … 83 84 if (tail != -1) { 84 85 sprintf(buff, fileNameFormat, curIndex); 85 //std::string path = vrFilePath::getInstance()->getPath(buff);86 //std::string path = R2FilePath::getInstance()->getPath(buff); 86 87 #ifdef WANT_TRACE 87 88 float t = clock() /(float) CLOCKS_PER_SEC; … … 284 285 } 285 286 286 #ifdef USE_RGBA_ARROW 287 std::string path = vrFilePath::getInstance()->getPath("arrows_red_bg.bmp"); 288 #else 289 std::string path = vrFilePath::getInstance()->getPath("arrows.bmp"); 290 #endif 287 std::string path = R2FilePath::getInstance()->getPath("arrows.bmp"); 288 291 289 if (!path.empty()) { 292 290 ImageLoader *loader = ImageLoaderFactory::getInstance()->createLoader("bmp"); … … 301 299 if (bytes != NULL) { 302 300 #ifdef USE_RGBA_ARROW 303 for (unsigned int y = 0; y < image->getHeight(); ++y) {304 for (unsigned int x = 0; x < image->getWidth(); ++x, bytes += 4) {305 bytes[3] = (bytes[0] > 127 &&306 bytes[1] < 127 &&307 bytes[2] < 127) ? 0 : 255;308 }309 }310 301 _arrows = new Texture2D(image->getWidth(), image->getHeight(), 311 302 GL_UNSIGNED_BYTE, GL_LINEAR, 4, NULL); … … 428 419 _context = NvShader::getCgContext(); 429 420 430 std::string path = vrFilePath::getInstance()->getPath("distance.cg");421 std::string path = R2FilePath::getInstance()->getPath("distance.cg"); 431 422 _distanceInitFP = 432 423 cgCreateProgramFromFile(_context, CG_SOURCE, path.c_str(), … … 445 436 cgGLLoadProgram(_distanceSortLookupFP); 446 437 447 path = vrFilePath::getInstance()->getPath("mergesort.cg");438 path = R2FilePath::getInstance()->getPath("mergesort.cg"); 448 439 _sortRecursionFP = 449 440 cgCreateProgramFromFile(_context, CG_SOURCE, path.c_str(), … … 463 454 _seStepParam = cgGetNamedParameter(_sortEndFP, "step"); 464 455 465 path = vrFilePath::getInstance()->getPath("passthrough.cg");456 path = R2FilePath::getInstance()->getPath("passthrough.cg"); 466 457 _passthroughFP = 467 458 cgCreateProgramFromFile(_context, CG_SOURCE, path.c_str(), … … 472 463 _biasParam = cgGetNamedParameter(_passthroughFP, "bias"); 473 464 474 path = vrFilePath::getInstance()->getPath("moveparticles.cg");465 path = R2FilePath::getInstance()->getPath("moveparticles.cg"); 475 466 _moveParticlesFP = 476 467 cgCreateProgramFromFile(_context, CG_SOURCE, path.c_str(), … … 484 475 _mpScale= cgGetNamedParameter(_moveParticlesFP, "scale"); 485 476 486 path = vrFilePath::getInstance()->getPath("particlevp.cg");477 path = R2FilePath::getInstance()->getPath("particlevp.cg"); 487 478 _particleVP = 488 479 cgCreateProgramFromFile(_context, CG_SOURCE, path.c_str(), … … 494 485 _mvCurrentTimeParam = cgGetNamedParameter(_particleVP, "currentTime"); 495 486 496 path = vrFilePath::getInstance()->getPath("particlefp.cg");487 path = R2FilePath::getInstance()->getPath("particlefp.cg"); 497 488 _particleFP = 498 489 cgCreateProgramFromFile(_context, CG_SOURCE, path.c_str(), … … 501 492 _vectorParticleParam = cgGetNamedParameter(_particleVP, "vfield"); 502 493 503 path = vrFilePath::getInstance()->getPath("moveparticles.cg");494 path = R2FilePath::getInstance()->getPath("moveparticles.cg"); 504 495 _initParticlePosFP = 505 496 cgCreateProgramFromFile(_context, CG_SOURCE, path.c_str(), … … 1613 1604 if (_drawBBoxEnabled) drawUnitBox(); 1614 1605 glColor3f(1, 1, 1); 1606 1615 1607 glDepthMask(GL_FALSE); 1616 1608 glEnable(GL_BLEND); … … 1619 1611 glBlendFunc(GL_SRC_ALPHA, GL_ONE); 1620 1612 #else 1621 glEnable(GL_ALPHA_TEST);1622 //glAlphaFunc(GL_GEQUAL, 0.5);1623 1613 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 1624 1614 #endif 1615 glEnable(GL_ALPHA_TEST); 1616 glAlphaFunc(GL_GREATER, 0.6); 1617 1625 1618 glEnable(GL_POINT_SPRITE_ARB); 1626 1619 glPointSize(_pointSize); … … 1629 1622 1630 1623 #ifndef TEST 1631 _arrows->activate(); //_arrows->bind(0);1624 _arrows->activate(); 1632 1625 glEnable(GL_TEXTURE_2D); 1633 //glPointParameterfARB( GL_POINT_FADE_THRESHOLD_SIZE_ARB, 60.0f ); 1634 glPointParameterfARB( GL_POINT_FADE_THRESHOLD_SIZE_ARB, 0.0f ); 1635 1636 glPointParameterfARB( GL_POINT_SIZE_MIN_ARB, 1.0f); 1637 glPointParameterfARB( GL_POINT_SIZE_MAX_ARB, 100.0f); 1638 glTexEnvf( GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE ); 1626 glPointParameterfARB(GL_POINT_FADE_THRESHOLD_SIZE_ARB, 0.0f); 1627 1628 glPointParameterfARB(GL_POINT_SIZE_MIN_ARB, 1.0f); 1629 glPointParameterfARB(GL_POINT_SIZE_MAX_ARB, 100.0f); 1630 glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE); 1639 1631 1640 1632 cgGLBindProgram(_particleVP); -
branches/blt4/packages/vizservers/nanovis/ParticleSystemFactory.cpp
r2936 r3061 5 5 #include <expat.h> 6 6 7 #include < vrutil/vrFilePath.h>7 #include <R2/R2FilePath.h> 8 8 9 9 #include "ParticleSystemFactory.h" … … 144 144 char buff[256]; 145 145 sprintf(buff, fileName.c_str(), startIndex); 146 std::string path = vrFilePath::getInstance()->getPath(buff);146 std::string path = R2FilePath::getInstance()->getPath(buff); 147 147 if (path.size()) { 148 148 std::string dir; … … 169 169 } 170 170 } else { 171 std::string path = vrFilePath::getInstance()->getPath(fileName.c_str());171 std::string path = R2FilePath::getInstance()->getPath(fileName.c_str()); 172 172 _newParticleSystem = 173 173 new ParticleSystem(width, height, path.c_str(), -
branches/blt4/packages/vizservers/nanovis/Plane.cpp
r2936 r3061 43 43 44 44 Mat4x4 inv = mat.inverse(); 45 Vector4 new_coeffs = inv.multiply _row_vector(coeffs);45 Vector4 new_coeffs = inv.multiplyRowVector(coeffs); 46 46 a = new_coeffs.x; 47 47 b = new_coeffs.y; -
branches/blt4/packages/vizservers/nanovis/PointSetRenderer.cpp
r2966 r3061 17 17 { 18 18 _shader = new PointShader(); 19 const char *path = R2FilePath::getInstance()->getPath("particle2.bmp");20 if (path == NULL) {21 ERROR(" pointset file not found - %s\n", path);19 std::string path = R2FilePath::getInstance()->getPath("particle2.bmp"); 20 if (path.empty()) { 21 ERROR("Particle image not found\n"); 22 22 return; 23 23 } 24 24 25 25 ImageLoader *loader = ImageLoaderFactory::getInstance()->createLoader("bmp"); 26 Image *image = loader->load(path, Image::IMG_RGBA); 27 delete [] path; 26 Image *image = loader->load(path.c_str(), Image::IMG_RGBA); 28 27 unsigned char *bytes = (unsigned char *)image->getImageBuffer(); 29 28 if (bytes) { … … 40 39 4, image->getImageBuffer()); 41 40 } else { 42 ERROR(" fail to load image [%s]\n", "particle2.bmp");41 ERROR("Failed to load particle image\n"); 43 42 } 44 43 -
branches/blt4/packages/vizservers/nanovis/R2/include/R2/R2FilePath.h
r2936 r3061 4 4 5 5 #include <list> 6 7 #include <R2/R2string.h> 6 #include <string> 8 7 9 8 class R2FilePath … … 17 16 * @return return full path of the file, but if not found, return "" 18 17 */ 19 const char *getPath(const char *fileName);18 std::string getPath(const char *fileName); 20 19 21 20 /** … … 31 30 32 31 private: 33 typedef std::list< R2string> R2stringList;34 typedef std::list< R2string>::iterator R2stringListIter;32 typedef std::list<std::string> StringList; 33 typedef std::list<std::string>::iterator StringListIter; 35 34 36 35 /// application directory 37 static R2string _curDirectory;36 static std::string _curDirectory; 38 37 39 38 /// R2FilePath instance … … 41 40 42 41 /// all default file paths 43 R2stringList _pathList;42 StringList _pathList; 44 43 }; 45 44 -
branches/blt4/packages/vizservers/nanovis/R2/include/R2/R2Fonts.h
r2936 r3061 4 4 5 5 #include <vector> 6 #include <string> 6 7 7 8 #include <R2/R2.h> 8 9 #include <R2/R2Object.h> 9 #include <R2/R2string.h>10 10 11 11 class R2Fonts : public R2Object 12 12 { 13 13 struct R2FontAttributes { 14 char *_fontName;14 std::string _fontName; 15 15 int _textureWidth; 16 16 int _textureHeight; … … 29 29 R2CharInfo _chars[256]; 30 30 }; 31 31 32 32 typedef std::vector<R2FontAttributes> R2FontVector; 33 33 -
branches/blt4/packages/vizservers/nanovis/R2/src/Makefile.in
r2936 r3061 44 44 R2IndexBuffer.o \ 45 45 R2Object.o \ 46 R2VertexBuffer.o \ 47 R2string.o 46 R2VertexBuffer.o 48 47 49 48 R2LIB = R2.a -
branches/blt4/packages/vizservers/nanovis/R2/src/R2FilePath.cpp
r2936 r3061 13 13 #include "Trace.h" 14 14 15 R2string R2FilePath::_curDirectory;15 std::string R2FilePath::_curDirectory; 16 16 R2FilePath R2FilePath::_instance; 17 17 18 char seps[] = ":";18 static char seps[] = ":"; 19 19 20 20 R2FilePath::R2FilePath() … … 22 22 char buff[BUFSIZ+2]; 23 23 #ifdef _WIN32 24 _getcwd(buff, 255);24 _getcwd(buff, sizeof(buff)-1); 25 25 #else 26 if (getcwd(buff, BUFSIZ) == NULL) {26 if (getcwd(buff, sizeof(buff)-1) == NULL) { 27 27 ERROR("can't get current working directory\n"); 28 28 } … … 37 37 R2FilePath::setPath(const char *filePath) 38 38 { 39 char buff[25 5];39 char buff[256]; 40 40 41 41 if (filePath == NULL) { … … 55 55 if (*p == '/') { 56 56 if (*last == '/' || *last == '\\') { 57 _pathList.push_back( R2string(p));57 _pathList.push_back(std::string(p)); 58 58 } else { 59 _pathList.push_back( R2string(p) + "/");59 _pathList.push_back(std::string(p) + "/"); 60 60 } 61 61 } else { 62 62 if (*last == '/' || *last == '\\') { 63 _pathList.push_back(_curDirectory + R2string(p));63 _pathList.push_back(_curDirectory + std::string(p)); 64 64 } else { 65 _pathList.push_back(_curDirectory + R2string(p) + "/");65 _pathList.push_back(_curDirectory + std::string(p) + "/"); 66 66 } 67 67 } … … 76 76 } 77 77 78 const char * 78 std::string 79 79 R2FilePath::getPath(const char* fileName) 80 80 { 81 R2string path;81 std::string path; 82 82 83 R2stringListIter iter; 84 int nameLength = strlen(fileName); 85 for (iter = _pathList.begin(); iter != _pathList.end(); ++iter) { 86 char *path; 83 for (StringListIter iter = _pathList.begin(); 84 iter != _pathList.end(); ++iter) { 85 path = *iter + std::string(fileName); 87 86 88 path = new char[strlen((char *)(*iter)) + 1 + nameLength + 1]; 89 //sprintf(path, "%s/%s", (char *)(*iter), fileName); 90 sprintf(path, "%s%s", (char *)(*iter), fileName); 91 if (access(path, R_OK) == 0) { 87 if (access(path.c_str(), R_OK) == 0) { 92 88 return path; 89 } else { 90 path = ""; 93 91 } 94 delete [] path;95 92 } 96 return NULL;93 return path; 97 94 } 98 95 99 96 void 100 R2FilePath::setWorkingDirectory(int argc, const char **argv)97 R2FilePath::setWorkingDirectory(int argc, const char **argv) 101 98 { 102 char buff[25 5];99 char buff[256]; 103 100 104 101 strcpy(buff, argv[0]); 105 102 for (int i = strlen(buff) - 1; i >= 0; --i) { 106 103 if (buff[i] == '\\' || buff[i] == '/') { 107 buff[i] = '/'; 108 buff[i + 1] = '\0'; 104 buff[i] = '/'; 105 buff[i + 1] = '\0'; 109 106 break; 110 107 } -
branches/blt4/packages/vizservers/nanovis/R2/src/R2Fonts.cpp
r2966 r3061 34 34 unsigned int i; 35 35 for (i = 0; i < _fonts.size(); ++i) { 36 if (strcmp(_fonts[i]._fontName , fontName) == 0) {36 if (strcmp(_fonts[i]._fontName.c_str(), fontName) == 0) { 37 37 _fontIndex = i; 38 38 break; … … 142 142 bool bSuccess = false; 143 143 144 const char *path = R2FilePath::getInstance()->getPath(fontFileName);145 if (path == NULL) {144 std::string path = R2FilePath::getInstance()->getPath(fontFileName); 145 if (path.empty()) { 146 146 return false; 147 147 } 148 std::ifstream fsInput(path , std::ios::binary);148 std::ifstream fsInput(path.c_str(), std::ios::binary); 149 149 if (fsInput) { 150 sFont._fontName = new char [strlen(fontName)+1]; 151 strcpy(sFont._fontName, fontName); 150 sFont._fontName = fontName; 152 151 153 152 // make sure this file is the correct type by checking the header … … 230 229 fsInput.close(); 231 230 } 232 delete [] path;233 231 return bSuccess; 234 232 } -
branches/blt4/packages/vizservers/nanovis/VelocityArrowsSlice.cpp
r2936 r3061 1 1 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 2 #include "nvconf.h" 3 4 #include <math.h> 3 5 4 6 #include <GL/glew.h> … … 14 16 #include "NvShader.h" 15 17 16 VelocityArrowsSlice::VelocityArrowsSlice() 17 { 18 _enabled = false; 19 _context = NvShader::getCgContext(); 20 _vectorFieldGraphicsID = 0; 21 _vfXscale = _vfYscale = _vfZscale = 0; 22 _slicePos = 0.5f; 23 _vertexBufferGraphicsID = 0; 18 static inline float deg2rad(float deg) 19 { 20 return ((deg * M_PI) / 180.); 21 } 22 23 static inline float rad2deg(float rad) 24 { 25 return ((rad * 180.) / M_PI); 26 } 27 28 VelocityArrowsSlice::VelocityArrowsSlice() : 29 _vectorFieldGraphicsID(0), 30 _vfXscale(0), 31 _vfYscale(0), 32 _vfZscale(0), 33 _slicePos(0.5f), 34 _axis(2), 35 _fbo(0), 36 _tex(0), 37 _maxPointSize(1.0f), 38 _renderTargetWidth(128), 39 _renderTargetHeight(128), 40 _velocities(NULL), 41 _projectionVector(1, 1, 0), 42 _tickCountForMinSizeAxis(10), 43 _tickCountX(0), 44 _tickCountY(0), 45 _tickCountZ(0), 46 _pointCount(0), 47 _maxVelocityScale(1, 1, 1), 48 _arrowColor(1, 1, 0), 49 _enabled(false), 50 _dirty(true), 51 _vertexBufferGraphicsID(0), 52 _arrowsTex(NULL), 53 _renderMode(LINES) 54 { 24 55 axis(2); 25 //_renderMode = GLYPHS; 26 _renderMode = LINES; 27 28 _tickCountForMinSizeAxis = 10; 29 30 _queryVelocityFP = 31 LoadCgSourceProgram(_context, "queryvelocity.cg", CG_PROFILE_FP40, "main"); 32 33 _qvVectorFieldParam = cgGetNamedParameter(_queryVelocityFP, "vfield"); 34 35 _dirty = true; 36 _dirtySamplingPosition = true; 37 _dirtyRenderTarget = true; 38 _maxVelocityScale.x = _maxVelocityScale.y = _maxVelocityScale.z = 1.0f; 39 40 _renderTargetWidth = 128; 41 _renderTargetHeight = 128; 42 _velocities = new Vector3[_renderTargetWidth * _renderTargetHeight]; 43 44 ::glGenBuffers(1, &_vertexBufferGraphicsID); 45 glBindBufferARB(GL_ARRAY_BUFFER_ARB, _vertexBufferGraphicsID); 46 glBufferDataARB(GL_ARRAY_BUFFER, _renderTargetWidth * _renderTargetHeight * 3 * sizeof(float), 47 0, GL_DYNAMIC_DRAW_ARB); 48 glBindBufferARB(GL_ARRAY_BUFFER, 0); 56 57 _queryVelocityFP.loadFragmentProgram("queryvelocity.cg", "main"); 58 59 _particleShader.loadVertexProgram("velocityslicevp.cg", "vpmain"); 60 _particleShader.loadFragmentProgram("velocityslicefp.cg", "fpmain"); 61 49 62 createRenderTarget(); 50 _pointCount = 0; 51 52 _particleVP = 53 LoadCgSourceProgram(_context, "velocityslicevp.cg", CG_PROFILE_VP40, "vpmain"); 54 55 _mvpParticleParam = cgGetNamedParameter(_particleVP, "mvp"); 56 _mvParticleParam = cgGetNamedParameter(_particleVP, "modelview"); 57 _mvTanHalfFOVParam = cgGetNamedParameter(_particleVP, "tanHalfFOV"); 58 59 // TBD.. 60 _particleFP = 61 LoadCgSourceProgram(_context, "velocityslicefp.cg", CG_PROFILE_FP40, "fpmain"); 62 63 _vectorParticleParam = cgGetNamedParameter(_particleVP, "vfield"); 64 65 const char *path = R2FilePath::getInstance()->getPath("arrows.bmp"); 66 if (path != NULL) { 63 64 std::string path = R2FilePath::getInstance()->getPath("arrows.bmp"); 65 if (!path.empty()) { 67 66 ImageLoader *loader = ImageLoaderFactory::getInstance()->createLoader("bmp"); 68 67 if (loader != NULL) { 69 Image *image = loader->load(path, Image::IMG_RGBA); 70 delete [] path; 68 Image *image = loader->load(path.c_str(), Image::IMG_RGBA); 71 69 if (image != NULL) { 72 70 unsigned char *bytes = (unsigned char *)image->getImageBuffer(); 73 71 if (bytes != NULL) { 74 for (unsigned int y = 0; y < image->getHeight(); ++y) {75 for (unsigned int x = 0; x < image->getWidth(); ++x, bytes += 4) {76 bytes[3] = (bytes[0] == 0 &&77 bytes[1] == 0 &&78 bytes[2] == 0) ? 0 : 255;79 }80 }81 82 72 _arrowsTex = new Texture2D(image->getWidth(), image->getHeight(), 83 73 GL_UNSIGNED_BYTE, GL_LINEAR, 4, NULL); … … 88 78 delete image; 89 79 } else { 90 ERROR("Failed to load image: arrows.bmp\n");80 ERROR("Failed to load arrows image\n"); 91 81 } 92 82 delete loader; 93 83 } else { 94 delete [] path; 95 ERROR("Couldn't find loader for arrows.bmp\n"); 84 ERROR("Couldn't find loader for arrows image\n"); 96 85 } 97 86 } else { 98 ERROR("Couldn't find path to arrows.bmp\n"); 99 } 100 101 _arrowColor.set(1, 1, 0); 87 ERROR("Couldn't find arrows image\n"); 88 } 102 89 103 90 GLfloat minMax[2]; … … 115 102 VelocityArrowsSlice::~VelocityArrowsSlice() 116 103 { 117 cgDestroyProgram(_queryVelocityFP); 118 glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, _fbo); 119 glDeleteTextures(1, &_tex); 120 glDeleteFramebuffersEXT(1, &_fbo); 121 122 delete _arrowsTex; 123 124 cgDestroyProgram(_particleFP); 125 cgDestroyProgram(_particleVP); 126 127 glDeleteBuffers(1, &_vertexBufferGraphicsID); 128 delete [] _velocities; 104 if (_tex != 0) { 105 glDeleteTextures(1, &_tex); 106 } 107 if (_fbo != 0) { 108 glDeleteFramebuffersEXT(1, &_fbo); 109 } 110 if (_arrowsTex != NULL) { 111 delete _arrowsTex; 112 } 113 if (_vertexBufferGraphicsID != 0) { 114 glDeleteBuffers(1, &_vertexBufferGraphicsID); 115 } 116 if (_velocities != NULL) { 117 delete [] _velocities; 118 } 129 119 } 130 120 131 121 void VelocityArrowsSlice::createRenderTarget() 132 122 { 123 if (_velocities != NULL) { 124 delete [] _velocities; 125 } 126 _velocities = new Vector3[_renderTargetWidth * _renderTargetHeight]; 127 128 if (_vertexBufferGraphicsID != 0) { 129 glDeleteBuffers(1, &_vertexBufferGraphicsID); 130 } 131 132 glGenBuffers(1, &_vertexBufferGraphicsID); 133 glBindBufferARB(GL_ARRAY_BUFFER_ARB, _vertexBufferGraphicsID); 134 glBufferDataARB(GL_ARRAY_BUFFER_ARB, _renderTargetWidth * _renderTargetHeight * 3 * sizeof(float), 135 0, GL_DYNAMIC_DRAW_ARB); 136 glBindBufferARB(GL_ARRAY_BUFFER_ARB, 0); 137 138 if (_tex != 0) { 139 glDeleteTextures(1, &_tex); 140 } 141 if (_fbo != 0) { 142 glDeleteFramebuffersEXT(1, &_fbo); 143 } 144 133 145 glGenFramebuffersEXT(1, &_fbo); 134 146 glGenTextures(1, &_tex); 135 147 int fboOrig; 148 glGetIntegerv(GL_FRAMEBUFFER_BINDING_EXT, &fboOrig); 136 149 glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, _fbo); 137 138 glViewport(0, 0, _renderTargetWidth, _renderTargetHeight);139 glMatrixMode(GL_PROJECTION);140 glLoadIdentity();141 glOrtho(0, _renderTargetWidth, 0, _renderTargetHeight, -10.0f, 10.0f);142 glMatrixMode(GL_MODELVIEW);143 glLoadIdentity();144 150 145 151 glBindTexture(GL_TEXTURE_RECTANGLE_ARB, _tex); … … 156 162 GL_TEXTURE_RECTANGLE_ARB, _tex, 0); 157 163 158 glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);164 glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fboOrig); 159 165 } 160 166 … … 179 185 break; 180 186 } 181 _dirtySamplingPosition = true; 182 _dirtyRenderTarget = true; 183 //_dirty = true; 187 _dirty = true; 184 188 } 185 189 … … 188 192 if (!_enabled) return; 189 193 194 glPushAttrib(GL_VIEWPORT_BIT | GL_ENABLE_BIT); 195 int fboOrig; 196 glGetIntegerv(GL_FRAMEBUFFER_BINDING_EXT, &fboOrig); 197 190 198 glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, _fbo); 199 200 _queryVelocityFP.bind(); 201 _queryVelocityFP.setFPTextureParameter("vfield", _vectorFieldGraphicsID); 202 191 203 glDisable(GL_DEPTH_TEST); 192 cgGLBindProgram(_queryVelocityFP);193 cgGLEnableProfile(CG_PROFILE_FP40);194 cgGLSetTextureParameter(_qvVectorFieldParam, _vectorFieldGraphicsID);195 cgGLEnableTextureParameter(_qvVectorFieldParam);196 197 glPushAttrib(GL_VIEWPORT_BIT);198 204 glViewport(0, 0, _renderTargetWidth, _renderTargetHeight); 199 205 glMatrixMode(GL_PROJECTION); … … 205 211 glLoadIdentity(); 206 212 207 glBegin(GL_POINTS); 208 209 for (unsigned int index = 0; index < _samplingPositions.size(); ++index) { 210 glMultiTexCoord3f(0, 211 _samplingPositions[index].x, 212 _samplingPositions[index].y, 213 _samplingPositions[index].z); 214 glVertex2f(index % _renderTargetWidth, 215 index / _renderTargetHeight); 216 } 217 213 glBegin(GL_QUADS); 214 switch (_axis) { 215 case 0: 216 glTexCoord3f(_slicePos, 0, 0); glVertex2i(0, 0); 217 glTexCoord3f(_slicePos, 1, 0); glVertex2i(_renderTargetWidth, 0); 218 glTexCoord3f(_slicePos, 1, 1); glVertex2i(_renderTargetWidth, _renderTargetHeight); 219 glTexCoord3f(_slicePos, 0, 1); glVertex2i(0, _renderTargetHeight); 220 break; 221 case 1: 222 glTexCoord3f(0, _slicePos, 0); glVertex2i(0, 0); 223 glTexCoord3f(1, _slicePos, 0); glVertex2i(_renderTargetWidth, 0); 224 glTexCoord3f(1, _slicePos, 1); glVertex2i(_renderTargetWidth, _renderTargetHeight); 225 glTexCoord3f(0, _slicePos, 1); glVertex2i(0, _renderTargetHeight); 226 break; 227 case 2: 228 default: 229 glTexCoord3f(0, 0, _slicePos); glVertex2i(0, 0); 230 glTexCoord3f(1, 0, _slicePos); glVertex2i(_renderTargetWidth, 0); 231 glTexCoord3f(1, 1, _slicePos); glVertex2i(_renderTargetWidth, _renderTargetHeight); 232 glTexCoord3f(0, 1, _slicePos); glVertex2i(0, _renderTargetHeight); 233 break; 234 } 218 235 glEnd(); 219 236 220 glDisable(GL_TEXTURE_RECTANGLE_ARB); 221 cgGLDisableTextureParameter(_qvVectorFieldParam); 222 cgGLDisableProfile(CG_PROFILE_FP40); 237 _queryVelocityFP.disableFPTextureParameter("vfield"); 238 _queryVelocityFP.unbind(); 223 239 224 240 glReadPixels(0, 0, _renderTargetWidth, _renderTargetHeight, GL_RGB, GL_FLOAT, _velocities); … … 228 244 glMatrixMode(GL_MODELVIEW); 229 245 glPopMatrix(); 246 247 glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fboOrig); 248 230 249 glPopAttrib(); 231 232 glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0); 250 } 251 252 static void drawLineArrow(int axis) 253 { 254 glBegin(GL_LINES); 255 switch (axis) { 256 case 0: // ZY plane 257 glVertex3f(0.0, 0.0, 0.0); 258 glVertex3f(0.0, 0.0, 1.0); 259 260 glVertex3f(0.0, 0.0, 1.0); 261 glVertex3f(0.0, 0.25, 0.75); 262 263 glVertex3f(0.0, 0.0, 1.0); 264 glVertex3f(0.0, -0.25, 0.75); 265 break; 266 case 1: // XZ plane 267 glVertex3f(0.0, 0.0, 0.0); 268 glVertex3f(1.0, 0.0, 0.0); 269 270 glVertex3f(1.0, 0.0, 0.0); 271 glVertex3f(0.75, 0.0, 0.25); 272 273 glVertex3f(1.0, 0.0, 0.0); 274 glVertex3f(0.75, 0.0, -0.25); 275 break; 276 case 2: // XY plane 277 default: 278 glVertex3f(0.0, 0.0, 0.0); 279 glVertex3f(1.0, 0.0, 0.0); 280 281 glVertex3f(1.0, 0.0, 0.0); 282 glVertex3f(0.75, 0.25, 0.0); 283 284 glVertex3f(1.0, 0.0, 0.0); 285 glVertex3f(0.75, -0.25, 0.0); 286 break; 287 } 288 glEnd(); 233 289 } 234 290 … … 244 300 } 245 301 302 TRACE("_vf: %g %g %g\n", _vfXscale,_vfYscale, _vfZscale); 303 TRACE("_maxVelocityScale: %g %g %g\n", 304 _maxVelocityScale.x, _maxVelocityScale.y, _maxVelocityScale.z); 305 306 glPushAttrib(GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 307 308 glMatrixMode(GL_MODELVIEW); 246 309 glPushMatrix(); 247 310 248 311 glScalef(_vfXscale,_vfYscale, _vfZscale); 249 312 glTranslatef(-0.5f, -0.5f, -0.5f); 313 250 314 if (_renderMode == LINES) { 251 glPushAttrib(GL_ENABLE_BIT);252 315 glDisable(GL_TEXTURE_2D); 253 316 glDisable(GL_LIGHTING); 254 317 glLineWidth(2.0); 255 318 glColor3f(_arrowColor.x, _arrowColor.y, _arrowColor.z); 256 glBegin(GL_LINES);319 257 320 Vector3 pos; 258 Vector3 pos2; 259 Vector3 vel(1, 0, 0); 260 Vector3 v, v2; 261 if (_axis == 2) { 262 int index = 0; 263 for (int y = 1; y <= _tickCountY; ++y) { 264 for (int x = 1; x <= _tickCountX; ++x, ++index) { 265 pos = _samplingPositions[index]; 266 pos2 = _velocities[index].scale(_projectionVector).scale(_maxVelocityScale) + pos; 267 glVertex3f(pos.x, pos.y, pos.z); 268 glVertex3f(pos2.x, pos2.y, pos2.z); 321 Vector3 vel; 322 Vector3 refVec; 323 Vector3 blue(0, 0, 1); 324 Vector3 red(1, 0, 0); 325 326 int index = 0, icount, jcount; 327 switch (_axis) { 328 case 0: 329 icount = _tickCountZ; 330 jcount = _tickCountY; 331 refVec.set(0, 0, 1); 332 break; 333 case 1: 334 icount = _tickCountZ; 335 jcount = _tickCountX; 336 refVec.set(1, 0, 0); 337 break; 338 case 2: 339 default: 340 icount = _tickCountY; 341 jcount = _tickCountX; 342 refVec.set(1, 0, 0); 343 break; 344 } 345 346 for (int i = 0; i < icount; ++i) { 347 for (int j = 0; j < jcount; ++j, ++index) { 348 pos = _samplingPositions[index]; 349 // Normalized velocity: [-1,1] components 350 // Project 3D vector onto sample plane 351 vel = _velocities[index].scale(_projectionVector); 352 // Length: [0,1] 353 double length = vel.length(); 354 if (length < 0.0 || length > 1.0) { 355 TRACE("***vec: (%g, %g, %g) length: %g***\n", vel.x, vel.y, vel.z, length); 356 continue; 357 } 358 if (length > 1.0e-6) { 359 Vector3 vnorm = vel.normalize(); 360 Vector3 rotationAxis = refVec.cross(vnorm); 361 double angle = rad2deg(acos(refVec.dot(vnorm))); 362 Vector3 color = blue * (1.0 - length) + red * length; 363 float scale = length; 364 if (scale < 0.10) scale = 0.10; 365 glMatrixMode(GL_MODELVIEW); 366 glPushMatrix(); 367 glColor3f(color.x, color.y, color.z); 368 glTranslatef(pos.x, pos.y, pos.z); 369 glScalef(2.0 * _maxVelocityScale.x, 370 2.0 * _maxVelocityScale.y, 371 2.0 * _maxVelocityScale.z); 372 glScalef(scale, scale, scale); 373 if (angle > 1.0e-6 || angle < -1.0e-6) 374 glRotated(angle, rotationAxis.x, rotationAxis.y, rotationAxis.z); 375 drawLineArrow(_axis); 376 glPopMatrix(); 269 377 } 270 378 } 271 } else if (_axis == 1) { 272 int index = 0; 273 for (int z = 1; z <= _tickCountZ; ++z) { 274 for (int x = 1; x <= _tickCountX; ++x, ++index) { 275 pos = _samplingPositions[index]; 276 pos2 = _velocities[index].scale(_projectionVector).scale(_maxVelocityScale) + pos; 277 278 glVertex3f(pos.x, pos.y, pos.z); 279 glVertex3f(pos2.x, pos2.y, pos2.z); 280 } 281 } 282 } else if (_axis == 0) { 283 int index = 0; 284 for (int z = 1; z <= _tickCountZ; ++z) { 285 for (int y = 1; y <= _tickCountY; ++y, ++index) { 286 pos = _samplingPositions[index]; 287 pos2 = _velocities[index].scale(_projectionVector).scale(_maxVelocityScale) + pos; 288 289 glVertex3f(pos.x, pos.y, pos.z); 290 glVertex3f(pos2.x, pos2.y, pos2.z); 291 } 292 } 293 } 294 295 glEnd(); 379 } 380 296 381 glLineWidth(1.0); 297 glPopAttrib();298 382 } else { 299 glColor3f(_arrowColor.x, _arrowColor.y, _arrowColor.z); 383 glColor4f(_arrowColor.x, _arrowColor.y, _arrowColor.z, 1.0f); 384 glEnable(GL_DEPTH_TEST); 385 glDisable(GL_LIGHTING); 386 #if 0 387 glBlendFunc(GL_SRC_ALPHA, GL_ONE); 300 388 glEnable(GL_BLEND); 301 glBlendFunc(GL_SRC_ALPHA, GL_ONE); 389 glDepthMask(GL_FALSE); 390 #else 391 glDisable(GL_BLEND); 392 #endif 393 glAlphaFunc(GL_GREATER, 0.6); 394 glEnable(GL_ALPHA_TEST); 302 395 glEnable(GL_POINT_SPRITE_ARB); 303 396 glPointSize(20); … … 306 399 _arrowsTex->activate(); 307 400 glEnable(GL_TEXTURE_2D); 308 401 glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); 402 403 GLfloat atten[] = {1, 0, 0}; 404 glPointParameterfvARB(GL_POINT_DISTANCE_ATTENUATION_ARB, atten); 309 405 glPointParameterfARB(GL_POINT_FADE_THRESHOLD_SIZE_ARB, 0.0f); 310 406 glPointParameterfARB(GL_POINT_SIZE_MIN_ARB, 1.0f); … … 312 408 glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE); 313 409 314 cgGLBindProgram(_particleVP); 315 cgGLBindProgram(_particleFP); 316 cgGLEnableProfile(CG_PROFILE_VP40); 317 cgGLEnableProfile(CG_PROFILE_FP40); 318 319 cgGLSetTextureParameter(_vectorParticleParam, _vectorFieldGraphicsID); 320 cgGLEnableTextureParameter(_vectorParticleParam); 321 322 //cgSetParameter1f(_mvTanHalfFOVParam, -tan(_fov * 0.5) * _screenHeight * 0.5); 323 cgSetParameter1f(_mvTanHalfFOVParam, tan(30. * 0.5) * NanoVis::winHeight * 0.5); 324 325 cgGLSetStateMatrixParameter(_mvpParticleParam, 326 CG_GL_MODELVIEW_PROJECTION_MATRIX, 327 CG_GL_MATRIX_IDENTITY); 328 cgGLSetStateMatrixParameter(_mvParticleParam, 329 CG_GL_MODELVIEW_MATRIX, 330 CG_GL_MATRIX_IDENTITY); 410 _particleShader.bind(); 411 _particleShader.setVPTextureParameter("vfield", _vectorFieldGraphicsID); 412 _particleShader.setFPTextureParameter("arrows", _arrowsTex->id()); 413 _particleShader.setVPParameter1f("tanHalfFOV", 414 tan(30. * 0.5) * NanoVis::winHeight * 0.5); 415 _particleShader.setGLStateMatrixVPParameter("modelview", 416 NvShader::MODELVIEW_MATRIX, 417 NvShader::MATRIX_IDENTITY); 418 _particleShader.setGLStateMatrixVPParameter("mvp", 419 NvShader::MODELVIEW_PROJECTION_MATRIX, 420 NvShader::MATRIX_IDENTITY); 331 421 332 422 glEnableClientState(GL_VERTEX_ARRAY); … … 340 430 341 431 glDisableClientState(GL_VERTEX_ARRAY); 342 343 cgGLDisableProfile(CG_PROFILE_VP40); 344 cgGLDisableProfile(CG_PROFILE_FP40); 345 346 glDepthMask(GL_TRUE); 347 432 glDisable(GL_VERTEX_PROGRAM_POINT_SIZE_ARB); 348 433 glDisable(GL_POINT_SPRITE_ARB); 349 glDisable(GL_VERTEX_PROGRAM_POINT_SIZE_ARB); 350 351 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 352 glDisable(GL_BLEND); 434 435 _particleShader.disableVPTextureParameter("vfield"); 436 _particleShader.disableFPTextureParameter("arrows"); 437 _particleShader.unbind(); 438 439 glActiveTexture(GL_TEXTURE0); 440 glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_FALSE); 353 441 _arrowsTex->deactivate(); 354 442 } 443 355 444 glPopMatrix(); 445 glPopAttrib(); 356 446 } 357 447 358 448 void 359 VelocityArrowsSlice:: vectorField(unsigned int vfGraphicsID,360 float xScale, float yScale, float zScale)449 VelocityArrowsSlice::setVectorField(unsigned int vfGraphicsID, const Vector3& origin, 450 float xScale, float yScale, float zScale, float max) 361 451 { 362 452 _vectorFieldGraphicsID = vfGraphicsID; … … 365 455 _vfZscale = zScale; 366 456 367 //_dirty = true;457 _dirty = true; 368 458 } 369 459 … … 371 461 { 372 462 if (_vfXscale < _vfYscale) { 373 if (_vfXscale < _vfZscale ) {463 if (_vfXscale < _vfZscale || _vfZscale == 0.0) { 374 464 // vfXscale 375 465 _tickCountX = _tickCountForMinSizeAxis; … … 379 469 _tickCountY = (int)(_vfYscale/step); 380 470 _tickCountZ = (int)(_vfZscale/step); 381 //vscalex = 1;382 //vscaley = _vfXscale / _vfXscale;383 //vscalez = _vfZscale / _vfXscale;384 471 } else { 385 472 // vfZscale … … 389 476 _tickCountX = (int)(_vfXscale/step); 390 477 _tickCountY = (int)(_vfYscale/step); 391 //vscalex = _vfXscale / _vfZscale;392 //vscaley = _vfYscale / _vfZscale;393 //vscalez = 1;394 478 } 395 479 } else { 396 if (_vfYscale < _vfZscale ) {480 if (_vfYscale < _vfZscale || _vfZscale == 0.0) { 397 481 // _vfYscale 398 482 _tickCountY = _tickCountForMinSizeAxis; … … 401 485 _tickCountX = (int)(_vfXscale/step); 402 486 _tickCountZ = (int)(_vfZscale/step); 403 404 //vscalex = _vfXscale / _vfYscale;405 //vscaley = 1;406 //vscalez = _vfZscale / _vfYscale;407 487 } else { 408 488 // vfZscale … … 412 492 _tickCountX = (int)(_vfXscale/step); 413 493 _tickCountY = (int)(_vfYscale/step); 414 415 //vscalex = _vfXscale / _vfZscale; 416 //vscaley = _vfYscale / _vfZscale; 417 //vscalez = 1; 418 } 494 } 495 } 496 497 switch (_axis) { 498 case 0: 499 _tickCountX = 1; 500 _renderTargetWidth = _tickCountY; 501 _renderTargetHeight = _tickCountZ; 502 break; 503 case 1: 504 _tickCountY = 1; 505 _renderTargetWidth = _tickCountX; 506 _renderTargetHeight = _tickCountZ; 507 break; 508 default: 509 case 2: 510 _tickCountZ = 1; 511 _renderTargetWidth = _tickCountX; 512 _renderTargetHeight = _tickCountY; 513 break; 419 514 } 420 515 … … 422 517 _maxVelocityScale.y = (1.0f / _tickCountY) * 0.8f; 423 518 _maxVelocityScale.z = (1.0f / _tickCountZ) * 0.8f; 519 520 TRACE("Tick counts: %d %d %d\n", _tickCountX, _tickCountY, _tickCountZ); 424 521 425 522 int pointCount = _tickCountX * _tickCountY * _tickCountZ; … … 430 527 } 431 528 432 if (_renderMode == LINES) { 433 Vector3 pos; 434 if (_axis == 2) { 435 for (int y = 1; y <= _tickCountY; ++y) { 436 for (int x = 1; x <= _tickCountX; ++x) { 437 pos.x = (1.0f / (_tickCountX + 1)) * x; 438 pos.y = (1.0f / (_tickCountY + 1)) * y; 439 pos.z = _slicePos; 529 createRenderTarget(); 530 531 Vector3 pos; 532 Vector3 *pinfo = NULL; 533 if (_renderMode == GLYPHS) { 534 glBindBufferARB(GL_ARRAY_BUFFER_ARB, _vertexBufferGraphicsID); 535 pinfo = (Vector3 *)glMapBufferARB(GL_ARRAY_BUFFER_ARB, GL_WRITE_ONLY_ARB); 536 } 537 538 if (_axis == 2) { 539 for (int y = 1; y <= _tickCountY; ++y) { 540 for (int x = 1; x <= _tickCountX; ++x) { 541 pos.x = (1.0f / (_tickCountX + 1)) * x; 542 pos.y = (1.0f / (_tickCountY + 1)) * y; 543 pos.z = _slicePos; 544 if (_renderMode == LINES) { 440 545 _samplingPositions.push_back(pos); 441 } 442 } 443 } else if (_axis == 1) { 444 for (int z = 1; z <= _tickCountZ; ++z) { 445 for (int x = 1; x <= _tickCountX; ++x) { 446 pos.x = (1.0f / (_tickCountX + 1)) * x; 447 pos.y = _slicePos; 448 pos.z = (1.0f / (_tickCountZ + 1)) * z; 449 _samplingPositions.push_back(pos); 450 } 451 } 452 } else if (_axis == 0) { 453 for (int z = 1; z <= _tickCountZ; ++z) { 454 for (int y = 1; y <= _tickCountY; ++y) { 455 pos.x = _slicePos; 456 pos.y = (1.0f / (_tickCountY + 1)) * y; 457 pos.z = (1.0f / (_tickCountZ + 1)) * z; 458 _samplingPositions.push_back(pos); 459 } 460 } 461 } 462 } else { 463 glBindBufferARB(GL_ARRAY_BUFFER_ARB, _vertexBufferGraphicsID); 464 Vector3 *pinfo = (Vector3 *)glMapBufferARB(GL_ARRAY_BUFFER, GL_WRITE_ONLY_ARB); 465 466 Vector3 pos; 467 if (_axis == 2) { 468 for (int y = 1; y <= _tickCountY; ++y) { 469 for (int x = 1; x <= _tickCountX; ++x) { 470 pos.x = (1.0f / (_tickCountX + 1)) * x; 471 pos.y = (1.0f / (_tickCountY + 1)) * y; 472 pos.z = _slicePos; 473 546 } else { 474 547 *pinfo = pos; 475 548 ++pinfo; 476 549 } 477 550 } 478 } else if (_axis == 1) { 479 for (int z = 1; z <= _tickCountZ; ++z) { 480 for (int x = 1; x <= _tickCountX; ++x) { 481 pos.x = (1.0f / (_tickCountX + 1)) * x; 482 pos.y = _slicePos; 483 pos.z = (1.0f / (_tickCountZ + 1)) * z; 484 551 } 552 } else if (_axis == 1) { 553 for (int z = 1; z <= _tickCountZ; ++z) { 554 for (int x = 1; x <= _tickCountX; ++x) { 555 pos.x = (1.0f / (_tickCountX + 1)) * x; 556 pos.y = _slicePos; 557 pos.z = (1.0f / (_tickCountZ + 1)) * z; 558 if (_renderMode == LINES) { 559 _samplingPositions.push_back(pos); 560 } else { 485 561 *pinfo = pos; 486 562 ++pinfo; 487 563 } 488 564 } 489 } else if (_axis == 0) { 490 for (int z = 1; z <= _tickCountZ; ++z) { 491 for (int y = 1; y <= _tickCountY; ++y) { 492 pos.x = _slicePos; 493 pos.y = (1.0f / (_tickCountY + 1)) * y; 494 pos.z = (1.0f / (_tickCountZ + 1)) * z; 495 565 } 566 } else if (_axis == 0) { 567 for (int z = 1; z <= _tickCountZ; ++z) { 568 for (int y = 1; y <= _tickCountY; ++y) { 569 pos.x = _slicePos; 570 pos.y = (1.0f / (_tickCountY + 1)) * y; 571 pos.z = (1.0f / (_tickCountZ + 1)) * z; 572 if (_renderMode == LINES) { 573 _samplingPositions.push_back(pos); 574 } else { 496 575 *pinfo = pos; 497 576 ++pinfo; … … 499 578 } 500 579 } 501 580 } 581 582 if (_renderMode == GLYPHS) { 502 583 glUnmapBufferARB(GL_ARRAY_BUFFER_ARB); 503 584 } -
branches/blt4/packages/vizservers/nanovis/VelocityArrowsSlice.h
r2966 r3061 5 5 #include <vector> 6 6 7 #include <Cg/cg.h>8 #include <Cg/cgGL.h>9 10 7 #include "Texture2D.h" 11 8 #include "Vector3.h" 9 #include "NvShader.h" 12 10 13 11 class VelocityArrowsSlice … … 23 21 ~VelocityArrowsSlice(); 24 22 25 void vectorField(unsigned int vfGraphicsID, float xScale, float yScale, float zScale); 23 void setVectorField(unsigned int vfGraphicsID, const Vector3& origin, 24 float xScale, float yScale, float zScale, float max); 26 25 27 26 void axis(int axis); … … 99 98 float _maxPointSize; 100 99 101 CGcontext _context;102 CGprogram _queryVelocityFP; 103 CGparameter _qvVectorFieldParam;100 NvShader _queryVelocityFP; 101 102 NvShader _particleShader; 104 103 105 104 int _renderTargetWidth; … … 126 125 unsigned int _vertexBufferGraphicsID; 127 126 128 CGprogram _particleVP;129 CGparameter _mvpParticleParam;130 CGparameter _mvParticleParam;131 CGparameter _mvTanHalfFOVParam;132 CGparameter _mvCurrentTimeParam;133 134 CGprogram _particleFP;135 CGparameter _vectorParticleParam;136 137 127 Texture2D *_arrowsTex; 138 128 -
branches/blt4/packages/vizservers/nanovis/Volume.cpp
r2936 r3061 85 85 addCutplane(3, 0.5f); 86 86 87 //initialize the labels88 label[0] = "X Label";89 label[1] = "Y Label";90 label[2] = "Z Label";91 92 87 TRACE("End -- Volume constructor\n"); 93 88 } -
branches/blt4/packages/vizservers/nanovis/Volume.h
r2936 r3061 241 241 void getOutlineColor(float *rgb); 242 242 243 /// change the label displayed on an axis244 void setLabel(int axis, const char *txt);245 246 243 void setPhysicalBBox(const Vector3& min, const Vector3& max); 247 244 … … 285 282 286 283 AxisRange xAxis, yAxis, zAxis, wAxis; 287 std::string label[3]; ///< the labels along each axis 0:x, 1:y, 2:z288 284 289 285 static bool updatePending; … … 403 399 404 400 inline void 405 Volume::setLabel(int axis, const char* txt)406 {407 label[axis] = txt;408 }409 410 inline void411 401 Volume::setPhysicalBBox(const Vector3& min, const Vector3& max) 412 402 { -
branches/blt4/packages/vizservers/nanovis/VolumeRenderer.cpp
r2936 r3061 15 15 */ 16 16 #include <stdlib.h> 17 #include < assert.h>18 #include <time.h> 19 #include < sys/time.h>17 #include <float.h> 18 19 #include <vector> 20 20 21 21 #include <GL/glew.h> 22 #include <GL/glut.h>23 22 24 23 #include <tcl.h> 25 26 #include <vector>27 28 #include <R2/R2string.h>29 #include <R2/R2FilePath.h>30 24 31 25 #include "nanovis.h" 32 26 #include "VolumeRenderer.h" 33 27 #include "ConvexPolygon.h" 34 35 28 #include "NvStdVertexShader.h" 36 29 #include "Trace.h" 37 #include "Grid.h" 38 39 #define NUMDIGITS 6 40 41 VolumeRenderer::VolumeRenderer() : 42 _sliceMode(false), 43 _volumeMode(true) 30 31 VolumeRenderer::VolumeRenderer() 44 32 { 45 33 initShaders(); 46 34 47 const char *path = R2FilePath::getInstance()->getPath("Font.bmp");48 if (path == NULL) {49 ERROR("can't find Font.bmp\n");50 assert(path != NULL);51 }52 initFont(path);53 delete [] path;54 35 _volumeInterpolator = new VolumeInterpolator(); 55 36 } … … 165 146 Mat4x4 model_view_no_trans_inverse, model_view_trans_inverse; 166 147 167 double zNear, zFar;168 169 148 //initialize volume plane with world coordinates 170 149 Plane volume_planes[6]; … … 215 194 glPopMatrix(); 216 195 217 //draw labels218 glPushMatrix();219 glTranslatef(shift_4d.x, shift_4d.y, shift_4d.z);220 if (volPtr->outline()) {221 //drawLabel(i);222 }223 glPopMatrix();224 225 196 //transform volume_planes to eye coordinates. 226 197 for (size_t j = 0; j < 6; j++) { 227 198 volume_planes[j].transform(model_view_no_trans); 228 199 } 229 getNearFarZ(mv_no_trans, zNear, zFar); 200 double eyeMinX, eyeMaxX, eyeMinY, eyeMaxY, zNear, zFar; 201 getEyeSpaceBounds(model_view_no_trans, 202 eyeMinX, eyeMaxX, 203 eyeMinY, eyeMaxY, 204 zNear, zFar); 230 205 231 206 //compute actual rendering slices … … 242 217 actual_slices[i] = n_actual_slices; 243 218 219 // These are object coordinates 244 220 Vector4 vert1 = (Vector4(-10, -10, -0.5, 1)); 245 221 Vector4 vert2 = (Vector4(-10, +10, -0.5, 1)); … … 321 297 //Now do volume rendering 322 298 323 vert1 = (Vector4(-10, -10, -0.5, 1)); 324 vert2 = (Vector4(-10, +10, -0.5, 1)); 325 vert3 = (Vector4(+10, +10, -0.5, 1)); 326 vert4 = (Vector4(+10, -10, -0.5, 1)); 299 // Initialize view-aligned quads with eye space bounds of 300 // volume 301 vert1 = (Vector4(eyeMinX, eyeMinY, -0.5, 1)); 302 vert2 = (Vector4(eyeMaxX, eyeMinY, -0.5, 1)); 303 vert3 = (Vector4(eyeMaxX, eyeMaxY, -0.5, 1)); 304 vert4 = (Vector4(eyeMinX, eyeMaxY, -0.5, 1)); 327 305 328 306 size_t counter = 0; … … 340 318 poly->setId(i); 341 319 342 // Setting Z-coordinate320 // Set eye space Z-coordinate of slice 343 321 vert1.z = slice_z; 344 322 vert2.z = slice_z; … … 487 465 glEnd(); 488 466 489 #ifdef notdef490 /* Rappture doesn't supply axis units yet. So turn labeling off until we491 * can display the proper units with the distance of each bounding box492 * dimension.493 */494 glColor4f(1.0f, 1.0f, 0.0f, 1.0f);495 496 if (NanoVis::fonts != NULL) {497 double mv[16], prjm[16];498 int viewport[4];499 double wx, wy, wz;500 double dx, dy, dz;501 502 glGetDoublev(GL_MODELVIEW_MATRIX, mv);503 glGetDoublev(GL_PROJECTION_MATRIX, prjm);504 glGetIntegerv(GL_VIEWPORT, viewport);505 506 NanoVis::fonts->begin();507 dx = x1 - x0;508 dy = y1 - y0;509 dz = z1 - z0;510 if (gluProject((x0 + x1) * 0.5, y0, z0, mv, prjm, viewport,511 &wx, &wy, &wz)) {512 char buff[20];513 double min, max;514 515 NanoVis::grid->xAxis.GetDataLimits(min, max);516 glLoadIdentity();517 glTranslatef((int)wx, viewport[3] - (int) wy, 0.0f);518 const char *units;519 units = NanoVis::grid->xAxis.GetUnits();520 sprintf(buff, "%.*g %s", NUMDIGITS, max - min, units);521 NanoVis::fonts->draw(buff);522 }523 if (gluProject(x0, (y0 + y1) * 0.5, z0, mv, prjm, viewport, &524 wx, &wy, &wz)) {525 char buff[20];526 double min, max;527 528 NanoVis::grid->yAxis.GetDataLimits(min, max);529 glLoadIdentity();530 glTranslatef((int)wx, viewport[3] - (int) wy, 0.0f);531 const char *units;532 units = NanoVis::grid->yAxis.GetUnits();533 sprintf(buff, "%.*g %s", NUMDIGITS, max - min, units);534 NanoVis::fonts->draw(buff);535 }536 if (gluProject(x0, y0, (z0 + z1) * 0.5, mv, prjm, viewport,537 &wx, &wy, &wz)) {538 glLoadIdentity();539 glTranslatef((int)wx, viewport[3] - (int) wy, 0.0f);540 541 double min, max;542 NanoVis::grid->zAxis.GetDataLimits(min, max);543 const char *units;544 units = NanoVis::grid->zAxis.GetUnits();545 char buff[20];546 sprintf(buff, "%.*g %s", NUMDIGITS, max - min, units);547 NanoVis::fonts->draw(buff);548 }549 NanoVis::fonts->end();550 };551 #endif552 467 glPopMatrix(); 553 468 glPopAttrib(); … … 574 489 } 575 490 576 void VolumeRenderer::getNearFarZ(const Mat4x4& mv, double& zNear, double& zFar) 491 void VolumeRenderer::getEyeSpaceBounds(const Mat4x4& mv, 492 double& xMin, double& xMax, 493 double& yMin, double& yMax, 494 double& zNear, double& zFar) 577 495 { 578 496 double x0 = 0; … … 584 502 585 503 double zMin, zMax; 586 zMin = 10000; 587 zMax = -10000; 504 xMin = DBL_MAX; 505 xMax = -DBL_MAX; 506 yMin = DBL_MAX; 507 yMax = -DBL_MAX; 508 zMin = DBL_MAX; 509 zMax = -DBL_MAX; 588 510 589 511 double vertex[8][4]; … … 599 521 600 522 for (int i = 0; i < 8; i++) { 601 Vector4 tmp = mv.transform(Vector4(vertex[i][0], vertex[i][1], vertex[i][2], vertex[i][3])); 602 tmp.perspectiveDivide(); 603 vertex[i][2] = tmp.z; 604 if (vertex[i][2] < zMin) zMin = vertex[i][2]; 605 if (vertex[i][2] > zMax) zMax = vertex[i][2]; 523 Vector4 eyeVert = mv.transform(Vector4(vertex[i][0], 524 vertex[i][1], 525 vertex[i][2], 526 vertex[i][3])); 527 if (eyeVert.x < xMin) xMin = eyeVert.x; 528 if (eyeVert.x > xMax) xMax = eyeVert.x; 529 if (eyeVert.y < yMin) yMin = eyeVert.y; 530 if (eyeVert.y > yMax) yMax = eyeVert.y; 531 if (eyeVert.z < zMin) zMin = eyeVert.z; 532 if (eyeVert.z > zMax) zMax = eyeVert.z; 606 533 } 607 534 … … 609 536 zFar = zMin; 610 537 } 611 612 bool613 VolumeRenderer::initFont(const char *filename)614 {615 FILE *f;616 unsigned short int bfType;617 int bfOffBits;618 short int biPlanes;619 short int biBitCount;620 int biSizeImage;621 int width, height;622 int i;623 unsigned char temp;624 unsigned char* data;625 /* make sure the file is there and open it read-only (binary) */626 f = fopen(filename, "rb");627 if (f == NULL) {628 ERROR("can't open font file \"%s\"\n", filename);629 return false;630 }631 632 if (fread(&bfType, sizeof(short int), 1, f) != 1) {633 ERROR("can't read %lu bytes from font file \"%s\"\n",634 (unsigned long)sizeof(short int), filename);635 goto error;636 }637 638 /* check if file is a bitmap */639 if (bfType != 19778) {640 ERROR("not a bmp file.\n");641 goto error;642 }643 644 /* get the file size */645 /* skip file size and reserved fields of bitmap file header */646 fseek(f, 8, SEEK_CUR);647 648 /* get the position of the actual bitmap data */649 if (fread(&bfOffBits, sizeof(int), 1, f) != 1) {650 ERROR("error reading file.\n");651 goto error;652 }653 //TRACE("Data at Offset: %ld\n", bfOffBits);654 655 /* skip size of bitmap info header */656 fseek(f, 4, SEEK_CUR);657 658 /* get the width of the bitmap */659 if (fread(&width, sizeof(int), 1, f) != 1) {660 ERROR("error reading file.\n");661 goto error;662 }663 //TRACE("Width of Bitmap: %d\n", texture->width);664 665 /* get the height of the bitmap */666 if (fread(&height, sizeof(int), 1, f) != 1) {667 ERROR("error reading file.\n");668 goto error;669 }670 //TRACE("Height of Bitmap: %d\n", texture->height);671 672 /* get the number of planes (must be set to 1) */673 if (fread(&biPlanes, sizeof(short int), 1, f) != 1) {674 ERROR("error reading file.\n");675 goto error;676 }677 if (biPlanes != 1) {678 ERROR("number of Planes not 1!\n");679 goto error;680 }681 682 /* get the number of bits per pixel */683 if (fread(&biBitCount, sizeof(short int), 1, f) != 1) {684 ERROR("error reading file.\n");685 goto error;686 }687 688 //TRACE("Bits per Pixel: %d\n", biBitCount);689 if (biBitCount != 24) {690 ERROR("Bits per Pixel not 24\n");691 goto error;692 }693 694 /* calculate the size of the image in bytes */695 biSizeImage = width * height * 3 * sizeof(unsigned char);696 data = (unsigned char*) malloc(biSizeImage);697 if (data == NULL) {698 ERROR("Can't allocate memory for image\n");699 goto error;700 }701 702 /* seek to the actual data */703 fseek(f, bfOffBits, SEEK_SET);704 if (fread(data, biSizeImage, 1, f) != 1) {705 ERROR("Error loading file!\n");706 goto error;707 }708 fclose(f);709 710 /* swap red and blue (bgr -> rgb) */711 for (i = 0; i < biSizeImage; i += 3) {712 temp = data[i];713 data[i] = data[i + 2];714 data[i + 2] = temp;715 }716 717 //insert alpha channel718 unsigned char* data_with_alpha;719 data_with_alpha = (unsigned char*)720 malloc(width*height*4*sizeof(unsigned char));721 for (int i = 0; i < height; i++) {722 for (int j = 0; j < width; j++) {723 unsigned char r, g, b, a;724 r = data[3*(i*width+j)];725 g = data[3*(i*width+j)+1];726 b = data[3*(i*width+j)+2];727 728 if (r==0 && g==0 && b==0)729 a = 0;730 else731 a = 255;732 733 data_with_alpha[4*(i*width+j)] = r;734 data_with_alpha[4*(i*width+j) + 1] = g;735 data_with_alpha[4*(i*width+j) + 2] = b;736 data_with_alpha[4*(i*width+j) + 3] = a;737 }738 }739 free(data);740 741 //create opengl texture742 glGenTextures(1, &_fontTexture);743 glBindTexture(GL_TEXTURE_2D, _fontTexture);744 //glTexImage2D(GL_TEXTURE_2D, 0, 3, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, data);745 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, data_with_alpha);746 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);747 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);748 glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);749 750 free(data_with_alpha);751 752 buildFont();753 return (glGetError()==0);754 755 error:756 fclose(f);757 return false;758 }759 760 void761 VolumeRenderer::drawLabel(Volume* vol)762 {763 //glEnable(GL_TEXTURE_2D);764 glDisable(GL_TEXTURE_2D);765 glEnable(GL_DEPTH_TEST);766 767 //x768 glColor3f(0.5, 0.5, 0.5);769 770 int length = vol->label[0].size();771 glPushMatrix();772 773 glTranslatef(.5 * vol->aspectRatioWidth,774 vol->aspectRatioHeight,775 -0.1 * vol->aspectRatioDepth);776 glRotatef(180, 0, 0, 1);777 glRotatef(90, 1, 0, 0);778 779 glScalef(0.0008, 0.0008, 0.0008);780 for (int i = 0; i < length; i++) {781 glutStrokeCharacter(GLUT_STROKE_ROMAN, vol->label[0].c_str()[i]);782 glTranslatef(0.04, 0., 0.);783 }784 glPopMatrix();785 786 //y787 length = vol->label[1].size();788 glPushMatrix();789 glTranslatef(vol->aspectRatioWidth,790 0.5*vol->aspectRatioHeight,791 -0.1*vol->aspectRatioDepth);792 glRotatef(90, 0, 1, 0);793 glRotatef(90, 0, 0, 1);794 795 glScalef(0.0008, 0.0008, 0.0008);796 for (int i = 0; i < length; i++) {797 glutStrokeCharacter(GLUT_STROKE_ROMAN, vol->label[1].c_str()[i]);798 glTranslatef(0.04, 0., 0.);799 }800 glPopMatrix();801 802 //z803 length = vol->label[2].size();804 glPushMatrix();805 glTranslatef(0.,806 1. * vol->aspectRatioHeight,807 0.5 * vol->aspectRatioDepth);808 glRotatef(90, 0, 1, 0);809 810 glScalef(0.0008, 0.0008, 0.0008);811 for (int i = 0; i < length; i++) {812 glutStrokeCharacter(GLUT_STROKE_ROMAN, vol->label[2].c_str()[i]);813 glTranslatef(0.04, 0., 0.);814 }815 glPopMatrix();816 817 glDisable(GL_TEXTURE_2D);818 }819 820 void821 VolumeRenderer::buildFont()822 {823 GLfloat cx, cy; /* the character coordinates in our texture */824 _fontBase = glGenLists(256);825 glBindTexture(GL_TEXTURE_2D, _fontTexture);826 for (int loop = 0; loop < 256; loop++) {827 cx = (float) (loop % 16) / 16.0f;828 cy = (float) (loop / 16) / 16.0f;829 glNewList(_fontBase + loop, GL_COMPILE);830 glBegin(GL_QUADS);831 glTexCoord2f(cx, 1 - cy - 0.0625f);832 glVertex3f(0, 0, 0);833 glTexCoord2f(cx + 0.0625f, 1 - cy - 0.0625f);834 glVertex3f(0.04, 0, 0);835 glTexCoord2f(cx + 0.0625f, 1 - cy);836 glVertex3f(0.04, 0.04, 0);837 glTexCoord2f(cx, 1 - cy);838 glVertex3f(0, 0.04, 0);839 glEnd();840 glTranslated(0.04, 0, 0);841 glEndList();842 }843 }844 845 void846 VolumeRenderer::glPrint(char* string, int set)847 {848 if (set > 1) {849 set = 1;850 }851 glBindTexture(GL_TEXTURE_2D, _fontTexture);852 glListBase(_fontBase - 32 + (128 * set));853 glCallLists(strlen(string), GL_BYTE, string);854 } -
branches/blt4/packages/vizservers/nanovis/VolumeRenderer.h
r2966 r3061 16 16 #ifndef _VOLUME_RENDERER_H_ 17 17 #define _VOLUME_RENDERER_H_ 18 19 #include <GL/glew.h>20 #include <Cg/cgGL.h>21 18 22 19 #include "Mat4x4.h" … … 40 37 41 38 void diffuse(float val); 42 43 /// control independently44 void setSliceMode(bool val)45 {46 _sliceMode = val;47 }48 49 void setVolumeMode(bool val)50 {51 _volumeMode = val;52 }53 54 /// switch_cutplane_mode55 void switchSliceMode()56 {57 _sliceMode = (!_sliceMode);58 }59 60 void switchVolumeMode()61 {62 _volumeMode = (!_volumeMode);63 }64 39 65 40 void clearAnimatedVolumeInfo() … … 88 63 } 89 64 90 friend class NanoVis;91 92 65 private: 93 66 void initShaders(); … … 101 74 float r, float g, float b, float line_width); 102 75 103 void getNearFarZ(const Mat4x4& mv, double& zNear, double& zFar); 104 105 bool initFont(const char *filename); 106 107 /// there are two sets of font in the texture. 0, 1 108 void glPrint(char *string, int set); 109 110 /// draw label using bitmap texture 111 void drawLabel(Volume *vol); 112 113 /// Register the location of each alphabet in 114 void buildFont(); 76 void getEyeSpaceBounds(const Mat4x4& mv, 77 double& xMin, double& xMax, 78 double& yMin, double& yMax, 79 double& zNear, double& zFar); 115 80 116 81 VolumeInterpolator *_volumeInterpolator; 117 118 bool _sliceMode; ///< enable cut planes119 bool _volumeMode; ///< enable full volume rendering120 82 121 83 /** … … 144 106 */ 145 107 NvStdVertexShader *_stdVertexShader; 146 147 //standard vertex shader parameters148 CGparameter _mvpVertStdParam;149 CGparameter _mviVertStdParam;150 GLuint _fontBase; ///< The base of the font display list.151 GLuint _fontTexture; ///< The id of the font texture152 108 }; 153 109 -
branches/blt4/packages/vizservers/nanovis/nanovis.cpp
r2966 r3061 47 47 #include <R2/R2FilePath.h> 48 48 #include <R2/R2Fonts.h> 49 50 #include <vrutil/vrFilePath.h>51 49 52 50 #include <BMPImageLoaderImpl.h> … … 742 740 } 743 741 742 // NVIDIA driver may report OpenGL 2.1, but not support PBOs in 743 // indirect GLX contexts 744 if (!GLEW_ARB_pixel_buffer_object) { 745 ERROR("Pixel buffer objects are not supported by driver, please check that the user running nanovis has permissions to create a direct rendering context (e.g. user has read/write access to /dev/nvidia* device nodes in Linux).\n"); 746 doExit(1); 747 } 748 744 749 // Additional extensions not in 2.1 core 745 750 … … 774 779 doExit(1); 775 780 } 776 777 vrFilePath::getInstance()->setPath(path);778 781 779 782 ImageLoaderFactory::getInstance()->addLoaderImpl("bmp", new BMPImageLoaderImpl()); … … 1420 1423 void NanoVis::update() 1421 1424 { 1422 if (volRenderer->_volumeInterpolator->isStarted()) { 1425 VolumeInterpolator *volInterp = volRenderer->getVolumeInterpolator(); 1426 if (volInterp->isStarted()) { 1423 1427 struct timeval clock; 1424 1428 gettimeofday(&clock, NULL); … … 1426 1430 1427 1431 elapsed_time = clock.tv_sec + clock.tv_usec/1000000.0 - 1428 vol Renderer->_volumeInterpolator->getStartTime();1432 volInterp->getStartTime(); 1429 1433 1430 1434 TRACE("%lf %lf\n", elapsed_time, 1431 volRenderer->_volumeInterpolator->getInterval());1435 volInterp->getInterval()); 1432 1436 float fraction; 1433 1437 float f; 1434 1438 1435 f = fmod((float) elapsed_time, (float)vol Renderer->_volumeInterpolator->getInterval());1439 f = fmod((float) elapsed_time, (float)volInterp->getInterval()); 1436 1440 if (f == 0.0) { 1437 1441 fraction = 0.0f; 1438 1442 } else { 1439 fraction = f / vol Renderer->_volumeInterpolator->getInterval();1443 fraction = f / volInterp->getInterval(); 1440 1444 } 1441 1445 TRACE("fraction : %f\n", fraction); 1442 vol Renderer->_volumeInterpolator->update(fraction);1446 volInterp->update(fraction); 1443 1447 } 1444 1448 } … … 2352 2356 2353 2357 R2FilePath::getInstance()->setWorkingDirectory(argc, (const char**) argv); 2354 vrFilePath::getInstance()->setWorkingDirectory(argc, (const char**) argv);2355 2358 2356 2359 #ifdef XINETD -
branches/blt4/packages/vizservers/nanovis/protocol-nanovis.txt
r2966 r3061 126 126 -size <val> 127 127 128 volume axis label <x|y|z> <value> <?names?>129 128 volume data state <on|off> <?names?> 130 129 volume data follows <size> <tag> -
branches/blt4/packages/vizservers/nanovis/shaders/render_vel.cg
r2936 r3061 12 12 */ 13 13 14 // update positions based on velocity14 // Project and sample 3D vector field on a 2D plane 15 15 16 16 #include "common.cg" … … 18 18 float4 main(in float3 uvw : TEXCOORD0, 19 19 uniform sampler3D vel_tex, 20 uniform float4 plane_normal, 20 uniform float3 projection_vector, 21 uniform float timestep, 21 22 uniform float vmax) : COLOR 22 23 { 23 //float4 vel = float4(tex3D(vel_tex, uvw).xyz, 0) - float4(0.5, 0.5, 0.5, 0.0); 24 float4 vel = float4(tex3D(vel_tex, uvw).yzw, 0) - float4(0.5, 0.5, 0.5, 0.0); 25 vel = vel * (vmax * 2); 26 float4 ret = plane_normal * vel * 0.0005; 27 28 return float4(ret.xyz, 1); 24 float3 velocity = tex3D(vel_tex, uvw).yzw * 2.0 - float3(1.0, 1.0, 1.0); 25 velocity = velocity * projection_vector * vmax * timestep; 26 return float4(velocity, 1); 29 27 } 30 -
branches/blt4/packages/vizservers/nanovis/shaders/velocityslicefp.cg
r2936 r3061 4 4 5 5 float4 fpmain(float2 texCoord : TEXCOORD0, 6 float 3 color : COLOR,6 float4 color : COLOR0, 7 7 float2 center : TEXCOORD2, 8 8 float4 rotation : TEXCOORD3, 9 uniform sampler2D arrows : register(s0)) : COLOR9 uniform sampler2D arrows : TEXUNIT0) : COLOR 10 10 { 11 11 float2 newTexCoord = float2((texCoord.x - 0.5) / NUM_SUBIMAGE_X, (texCoord.y - 0.5) / NUM_SUBIMAGE_Y); … … 17 17 rotTexCoord = rotTexCoord + center; 18 18 19 return float4(tex2D(arrows, rotTexCoord.xy).xyz * color, 1.0);19 return tex2D(arrows, rotTexCoord.xy) * color; 20 20 } -
branches/blt4/packages/vizservers/nanovis/shaders/velocityslicevp.cg
r2936 r3061 10 10 out float4 rotation : TEXCOORD3, 11 11 out float4 pointSize : PSIZE, 12 uniform sampler3D vfield ,12 uniform sampler3D vfield : TEXUNIT1, 13 13 uniform float tanHalfFOV, 14 14 uniform float4x4 modelview,
Note: See TracChangeset
for help on using the changeset viewer.